From f9daa8646a26d6484b0038f7446eef0883d2c675 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Tue, 28 Jan 2025 01:35:37 +0000 Subject: [PATCH] fix(contactcenteraiplatform): update the API #### contactcenteraiplatform:v1alpha1 The following keys were changed: - resources.projects.resources.locations.resources.operations.methods.cancel.description - schemas.ContactCenter.description - schemas.GoogleCloudCommonOperationMetadata.properties.cancelRequested.description - schemas.InstanceConfig.properties.instanceSize.enum - schemas.InstanceConfig.properties.instanceSize.enumDescriptions - schemas.Quota.properties.contactCenterInstanceSize.enum - schemas.Quota.properties.contactCenterInstanceSize.enumDescriptions - schemas.TimeOfDay.properties.hours.description - schemas.TimeOfDay.properties.minutes.description - schemas.TimeOfDay.properties.nanos.description - schemas.TimeOfDay.properties.seconds.description --- .../contactcenteraiplatform-v1alpha1.json | 40 +++++++++++++------ src/apis/contactcenteraiplatform/v1alpha1.ts | 14 +++---- 2 files changed, 35 insertions(+), 19 deletions(-) diff --git a/discovery/contactcenteraiplatform-v1alpha1.json b/discovery/contactcenteraiplatform-v1alpha1.json index ac2e60fa84..14da7cf56d 100644 --- a/discovery/contactcenteraiplatform-v1alpha1.json +++ b/discovery/contactcenteraiplatform-v1alpha1.json @@ -387,7 +387,7 @@ "operations": { "methods": { "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", "httpMethod": "POST", "id": "contactcenteraiplatform.projects.locations.operations.cancel", @@ -512,7 +512,7 @@ } } }, - "revision": "20240904", + "revision": "20241205", "rootUrl": "https://contactcenteraiplatform.googleapis.com/", "schemas": { "AdminUser": { @@ -555,7 +555,7 @@ "type": "object" }, "ContactCenter": { - "description": "Message describing ContactCenter object Next ID: 23", + "description": "Message describing ContactCenter object Next ID: 24", "id": "ContactCenter", "properties": { "adminUser": { @@ -738,7 +738,7 @@ "type": "string" }, "cancelRequested": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", "readOnly": true, "type": "boolean" }, @@ -792,7 +792,11 @@ "MULTIREGION_LARGE", "MULTIREGION_XLARGE", "MULTIREGION_2XLARGE", - "MULTIREGION_3XLARGE" + "MULTIREGION_3XLARGE", + "DEV_SMALL", + "SANDBOX_SMALL", + "TRIAL_SMALL", + "TIME_LIMITED_TRIAL_SMALL" ], "enumDescriptions": [ "The default value. This value is used if the state is omitted.", @@ -808,7 +812,11 @@ "Instance Size MULTIREGION_LARGE", "Instance Size MULTIREGION_XLARGE", "Instance Size MULTIREGION_2XLARGE.", - "Instance Size MULTIREGION_3XLARGE." + "Instance Size MULTIREGION_3XLARGE.", + "Instance Size DEV_SMALL", + "Instance Size SANDBOX_SMALL", + "Instance Size TRIAL_SMALL", + "Instance Size TIME_LIMITED_TRIAL_SMALL" ], "type": "string" } @@ -1076,7 +1084,11 @@ "MULTIREGION_LARGE", "MULTIREGION_XLARGE", "MULTIREGION_2XLARGE", - "MULTIREGION_3XLARGE" + "MULTIREGION_3XLARGE", + "DEV_SMALL", + "SANDBOX_SMALL", + "TRIAL_SMALL", + "TIME_LIMITED_TRIAL_SMALL" ], "enumDescriptions": [ "The default value. This value is used if the state is omitted.", @@ -1092,7 +1104,11 @@ "Instance Size MULTIREGION_LARGE", "Instance Size MULTIREGION_XLARGE", "Instance Size MULTIREGION_2XLARGE.", - "Instance Size MULTIREGION_3XLARGE." + "Instance Size MULTIREGION_3XLARGE.", + "Instance Size DEV_SMALL", + "Instance Size SANDBOX_SMALL", + "Instance Size TRIAL_SMALL", + "Instance Size TIME_LIMITED_TRIAL_SMALL" ], "type": "string" } @@ -1220,22 +1236,22 @@ "id": "TimeOfDay", "properties": { "hours": { - "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "description": "Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", "format": "int32", "type": "integer" }, "minutes": { - "description": "Minutes of hour of day. Must be from 0 to 59.", + "description": "Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.", "format": "int32", "type": "integer" }, "nanos": { - "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "description": "Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.", "format": "int32", "type": "integer" }, "seconds": { - "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "description": "Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.", "format": "int32", "type": "integer" } diff --git a/src/apis/contactcenteraiplatform/v1alpha1.ts b/src/apis/contactcenteraiplatform/v1alpha1.ts index eb8281563f..f900125b6d 100644 --- a/src/apis/contactcenteraiplatform/v1alpha1.ts +++ b/src/apis/contactcenteraiplatform/v1alpha1.ts @@ -155,7 +155,7 @@ export namespace contactcenteraiplatform_v1alpha1 { serviceAttachmentNames?: string[] | null; } /** - * Message describing ContactCenter object Next ID: 23 + * Message describing ContactCenter object Next ID: 24 */ export interface Schema$ContactCenter { /** @@ -278,7 +278,7 @@ export namespace contactcenteraiplatform_v1alpha1 { */ apiVersion?: string | null; /** - * Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */ cancelRequested?: boolean | null; /** @@ -543,19 +543,19 @@ export namespace contactcenteraiplatform_v1alpha1 { */ export interface Schema$TimeOfDay { /** - * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. + * Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time. */ hours?: number | null; /** - * Minutes of hour of day. Must be from 0 to 59. + * Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59. */ minutes?: number | null; /** - * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + * Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999. */ nanos?: number | null; /** - * Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds. + * Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds. */ seconds?: number | null; } @@ -1473,7 +1473,7 @@ export namespace contactcenteraiplatform_v1alpha1 { } /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.