From 9d5db092e67f483c9be9030edfe0a38988a19721 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Mon, 29 Jul 2024 18:07:16 -0700 Subject: [PATCH] chore: regenerate contactcenterinsights client --- .../v1/2.0.0/README.md | 4 +- .../v1/Contactcenterinsights.java | 308 ++++++++++++++++++ ...ContactcenterinsightsV1EncryptionSpec.java | 104 ++++++ ...htsV1InitializeEncryptionSpecMetadata.java | 142 ++++++++ ...ghtsV1InitializeEncryptionSpecRequest.java | 73 +++++ ...htsV1InitializeEncryptionSpecResponse.java | 43 +++ ...tcenterinsightsV1alpha1EncryptionSpec.java | 104 ++++++ ...lpha1InitializeEncryptionSpecMetadata.java | 142 ++++++++ ...alpha1InitializeEncryptionSpecRequest.java | 73 +++++ ...lpha1InitializeEncryptionSpecResponse.java | 43 +++ .../v1/2.0.0/pom.xml | 4 +- .../v1/README.md | 4 +- 12 files changed, 1038 insertions(+), 6 deletions(-) create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1EncryptionSpec.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse.java diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/README.md b/clients/google-api-services-contactcenterinsights/v1/2.0.0/README.md index 46a0486d6ed..53bf6e7be11 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/README.md +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-contactcenterinsights - v1-rev20240701-2.0.0 + v1-rev20240723-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-contactcenterinsights:v1-rev20240701-2.0.0' + implementation 'com.google.apis:google-api-services-contactcenterinsights:v1-rev20240723-2.0.0' } ``` diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/Contactcenterinsights.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/Contactcenterinsights.java index 1f9f28bcbeb..741a46205f2 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/Contactcenterinsights.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/Contactcenterinsights.java @@ -173,6 +173,146 @@ public Locations locations() { */ public class Locations { + /** + * Gets location-level encryption key specification. + * + * Create a request for the method "locations.getEncryptionSpec". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link GetEncryptionSpec#execute()} method to invoke the remote + * operation. + * + * @param name Required. The name of the encryption spec resource to get. + * @return the request + */ + public GetEncryptionSpec getEncryptionSpec(java.lang.String name) throws java.io.IOException { + GetEncryptionSpec result = new GetEncryptionSpec(name); + initialize(result); + return result; + } + + public class GetEncryptionSpec extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/encryptionSpec$"); + + /** + * Gets location-level encryption key specification. + * + * Create a request for the method "locations.getEncryptionSpec". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link GetEncryptionSpec#execute()} method to invoke + * the remote operation.

{@link GetEncryptionSpec#initialize(com.google.api.client.googleapis. + * services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.

+ * + * @param name Required. The name of the encryption spec resource to get. + * @since 1.13 + */ + protected GetEncryptionSpec(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1EncryptionSpec.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/encryptionSpec$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public GetEncryptionSpec set$Xgafv(java.lang.String $Xgafv) { + return (GetEncryptionSpec) super.set$Xgafv($Xgafv); + } + + @Override + public GetEncryptionSpec setAccessToken(java.lang.String accessToken) { + return (GetEncryptionSpec) super.setAccessToken(accessToken); + } + + @Override + public GetEncryptionSpec setAlt(java.lang.String alt) { + return (GetEncryptionSpec) super.setAlt(alt); + } + + @Override + public GetEncryptionSpec setCallback(java.lang.String callback) { + return (GetEncryptionSpec) super.setCallback(callback); + } + + @Override + public GetEncryptionSpec setFields(java.lang.String fields) { + return (GetEncryptionSpec) super.setFields(fields); + } + + @Override + public GetEncryptionSpec setKey(java.lang.String key) { + return (GetEncryptionSpec) super.setKey(key); + } + + @Override + public GetEncryptionSpec setOauthToken(java.lang.String oauthToken) { + return (GetEncryptionSpec) super.setOauthToken(oauthToken); + } + + @Override + public GetEncryptionSpec setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetEncryptionSpec) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetEncryptionSpec setQuotaUser(java.lang.String quotaUser) { + return (GetEncryptionSpec) super.setQuotaUser(quotaUser); + } + + @Override + public GetEncryptionSpec setUploadType(java.lang.String uploadType) { + return (GetEncryptionSpec) super.setUploadType(uploadType); + } + + @Override + public GetEncryptionSpec setUploadProtocol(java.lang.String uploadProtocol) { + return (GetEncryptionSpec) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the encryption spec resource to get. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the encryption spec resource to get. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the encryption spec resource to get. */ + public GetEncryptionSpec setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/encryptionSpec$"); + } + this.name = name; + return this; + } + + @Override + public GetEncryptionSpec set(String parameterName, Object value) { + return (GetEncryptionSpec) super.set(parameterName, value); + } + } /** * Gets project-level settings. * @@ -2731,6 +2871,174 @@ public List set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the EncryptionSpec collection. + * + *

The typical use is:

+ *
+       *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+       *   {@code Contactcenterinsights.EncryptionSpec.List request = contactcenterinsights.encryptionSpec().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public EncryptionSpec encryptionSpec() { + return new EncryptionSpec(); + } + + /** + * The "encryptionSpec" collection of methods. + */ + public class EncryptionSpec { + + /** + * Initializes a location-level encryption key specification. An error will be thrown if the + * location has resources already created before the initialization. Once the encryption + * specification is initialized at a location, it is immutable and all newly created resources under + * the location will be encrypted with the existing specification. + * + * Create a request for the method "encryptionSpec.initialize". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Initialize#execute()} method to invoke the remote operation. + * + * @param name Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest} + * @return the request + */ + public Initialize initialize(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest content) throws java.io.IOException { + Initialize result = new Initialize(name, content); + initialize(result); + return result; + } + + public class Initialize extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}:initialize"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/encryptionSpec$"); + + /** + * Initializes a location-level encryption key specification. An error will be thrown if the + * location has resources already created before the initialization. Once the encryption + * specification is initialized at a location, it is immutable and all newly created resources + * under the location will be encrypted with the existing specification. + * + * Create a request for the method "encryptionSpec.initialize". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Initialize#execute()} method to invoke the + * remote operation.

{@link + * Initialize#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest} + * @since 1.13 + */ + protected Initialize(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/encryptionSpec$"); + } + } + + @Override + public Initialize set$Xgafv(java.lang.String $Xgafv) { + return (Initialize) super.set$Xgafv($Xgafv); + } + + @Override + public Initialize setAccessToken(java.lang.String accessToken) { + return (Initialize) super.setAccessToken(accessToken); + } + + @Override + public Initialize setAlt(java.lang.String alt) { + return (Initialize) super.setAlt(alt); + } + + @Override + public Initialize setCallback(java.lang.String callback) { + return (Initialize) super.setCallback(callback); + } + + @Override + public Initialize setFields(java.lang.String fields) { + return (Initialize) super.setFields(fields); + } + + @Override + public Initialize setKey(java.lang.String key) { + return (Initialize) super.setKey(key); + } + + @Override + public Initialize setOauthToken(java.lang.String oauthToken) { + return (Initialize) super.setOauthToken(oauthToken); + } + + @Override + public Initialize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Initialize) super.setPrettyPrint(prettyPrint); + } + + @Override + public Initialize setQuotaUser(java.lang.String quotaUser) { + return (Initialize) super.setQuotaUser(quotaUser); + } + + @Override + public Initialize setUploadType(java.lang.String uploadType) { + return (Initialize) super.setUploadType(uploadType); + } + + @Override + public Initialize setUploadProtocol(java.lang.String uploadProtocol) { + return (Initialize) super.setUploadProtocol(uploadProtocol); + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Immutable. The resource name of the encryption key specification resource. Format: + projects/{project}/locations/{location}/encryptionSpec + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + */ + public Initialize setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/encryptionSpec$"); + } + this.name = name; + return this; + } + + @Override + public Initialize set(String parameterName, Object value) { + return (Initialize) super.set(parameterName, value); + } + } + + } /** * An accessor for creating requests from the Insightsdata collection. * diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1EncryptionSpec.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1EncryptionSpec.java new file mode 100644 index 00000000000..7f2b74d476c --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1EncryptionSpec.java @@ -0,0 +1,104 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A customer-managed encryption key specification that can be applied to all created resources + * (e.g. Conversation). + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1EncryptionSpec extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by the default Google encryption key. Only the + * key in the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kmsKey; + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by the default Google encryption key. Only the + * key in the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * @return value or {@code null} for none + */ + public java.lang.String getKmsKey() { + return kmsKey; + } + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by the default Google encryption key. Only the + * key in the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * @param kmsKey kmsKey or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1EncryptionSpec setKmsKey(java.lang.String kmsKey) { + this.kmsKey = kmsKey; + return this; + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1EncryptionSpec setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1EncryptionSpec set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1EncryptionSpec) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1EncryptionSpec clone() { + return (GoogleCloudContactcenterinsightsV1EncryptionSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata.java new file mode 100644 index 00000000000..9fadc7781da --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata.java @@ -0,0 +1,142 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Metadata for initializing a location-level encryption specification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Partial errors during initialising operation that might cause the operation output to be + * incomplete. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List partialErrors; + + /** + * Output only. The original request for initialization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest request; + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Partial errors during initialising operation that might cause the operation output to be + * incomplete. + * @return value or {@code null} for none + */ + public java.util.List getPartialErrors() { + return partialErrors; + } + + /** + * Partial errors during initialising operation that might cause the operation output to be + * incomplete. + * @param partialErrors partialErrors or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata setPartialErrors(java.util.List partialErrors) { + this.partialErrors = partialErrors; + return this; + } + + /** + * Output only. The original request for initialization. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest getRequest() { + return request; + } + + /** + * Output only. The original request for initialization. + * @param request request or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata setRequest(GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest request) { + this.request = request; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata clone() { + return (GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest.java new file mode 100644 index 00000000000..2a5aba284a3 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest.java @@ -0,0 +1,73 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The request to initialize a location-level encryption specification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the kms_key_name is left empty, no encryption will be enforced. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1EncryptionSpec encryptionSpec; + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the kms_key_name is left empty, no encryption will be enforced. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1EncryptionSpec getEncryptionSpec() { + return encryptionSpec; + } + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the kms_key_name is left empty, no encryption will be enforced. + * @param encryptionSpec encryptionSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest setEncryptionSpec(GoogleCloudContactcenterinsightsV1EncryptionSpec encryptionSpec) { + this.encryptionSpec = encryptionSpec; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest clone() { + return (GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse.java new file mode 100644 index 00000000000..79e0c9b64fe --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The response to initialize a location-level encryption specification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse clone() { + return (GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec.java new file mode 100644 index 00000000000..4c1e3d0ee7b --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec.java @@ -0,0 +1,104 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A customer-managed encryption key specification that can be applied to all created resources + * (e.g. Conversation). + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by the default Google encryption key. Only the + * key in the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kmsKey; + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by the default Google encryption key. Only the + * key in the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * @return value or {@code null} for none + */ + public java.lang.String getKmsKey() { + return kmsKey; + } + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by the default Google encryption key. Only the + * key in the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * @param kmsKey kmsKey or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec setKmsKey(java.lang.String kmsKey) { + this.kmsKey = kmsKey; + return this; + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec clone() { + return (GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata.java new file mode 100644 index 00000000000..fc329599164 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata.java @@ -0,0 +1,142 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Metadata for initializing a location-level encryption specification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Partial errors during initialising operation that might cause the operation output to be + * incomplete. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List partialErrors; + + /** + * Output only. The original request for initialization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest request; + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Partial errors during initialising operation that might cause the operation output to be + * incomplete. + * @return value or {@code null} for none + */ + public java.util.List getPartialErrors() { + return partialErrors; + } + + /** + * Partial errors during initialising operation that might cause the operation output to be + * incomplete. + * @param partialErrors partialErrors or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata setPartialErrors(java.util.List partialErrors) { + this.partialErrors = partialErrors; + return this; + } + + /** + * Output only. The original request for initialization. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest getRequest() { + return request; + } + + /** + * Output only. The original request for initialization. + * @param request request or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata setRequest(GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest request) { + this.request = request; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata clone() { + return (GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest.java new file mode 100644 index 00000000000..b1e170a6e65 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest.java @@ -0,0 +1,73 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The request to initialize a location-level encryption specification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the kms_key_name is left empty, no encryption will be enforced. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec encryptionSpec; + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the kms_key_name is left empty, no encryption will be enforced. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec getEncryptionSpec() { + return encryptionSpec; + } + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the kms_key_name is left empty, no encryption will be enforced. + * @param encryptionSpec encryptionSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest setEncryptionSpec(GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec encryptionSpec) { + this.encryptionSpec = encryptionSpec; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest clone() { + return (GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse.java new file mode 100644 index 00000000000..231932add32 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The response to initialize a location-level encryption specification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse clone() { + return (GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/pom.xml b/clients/google-api-services-contactcenterinsights/v1/2.0.0/pom.xml index 443f353b7e2..6e3cfbd684b 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/pom.xml +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-contactcenterinsights - v1-rev20240701-2.0.0 - Contact Center AI Insights API v1-rev20240701-2.0.0 + v1-rev20240723-2.0.0 + Contact Center AI Insights API v1-rev20240723-2.0.0 jar 2011 diff --git a/clients/google-api-services-contactcenterinsights/v1/README.md b/clients/google-api-services-contactcenterinsights/v1/README.md index 46a0486d6ed..53bf6e7be11 100644 --- a/clients/google-api-services-contactcenterinsights/v1/README.md +++ b/clients/google-api-services-contactcenterinsights/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-contactcenterinsights - v1-rev20240701-2.0.0 + v1-rev20240723-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-contactcenterinsights:v1-rev20240701-2.0.0' + implementation 'com.google.apis:google-api-services-contactcenterinsights:v1-rev20240723-2.0.0' } ```