{@link GenerateToolspecOverride#initialize(com.google.api.client.googleap + * is.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.
+ * + * @param name Required. Resource name format: projects/{project}/locations/{location}/connections/{connection} + * @param content the {@link com.google.api.services.connectors.v1.model.GenerateConnectionToolspecOverrideRequest} + * @since 1.13 + */ + protected GenerateToolspecOverride(java.lang.String name, com.google.api.services.connectors.v1.model.GenerateConnectionToolspecOverrideRequest content) { + super(Connectors.this, "POST", REST_PATH, content, com.google.api.services.connectors.v1.model.GenerateConnectionToolspecOverrideResponse.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/[^/]+/connections/[^/]+$"); + } + } + + @Override + public GenerateToolspecOverride set$Xgafv(java.lang.String $Xgafv) { + return (GenerateToolspecOverride) super.set$Xgafv($Xgafv); + } + + @Override + public GenerateToolspecOverride setAccessToken(java.lang.String accessToken) { + return (GenerateToolspecOverride) super.setAccessToken(accessToken); + } + + @Override + public GenerateToolspecOverride setAlt(java.lang.String alt) { + return (GenerateToolspecOverride) super.setAlt(alt); + } + + @Override + public GenerateToolspecOverride setCallback(java.lang.String callback) { + return (GenerateToolspecOverride) super.setCallback(callback); + } + + @Override + public GenerateToolspecOverride setFields(java.lang.String fields) { + return (GenerateToolspecOverride) super.setFields(fields); + } + + @Override + public GenerateToolspecOverride setKey(java.lang.String key) { + return (GenerateToolspecOverride) super.setKey(key); + } + + @Override + public GenerateToolspecOverride setOauthToken(java.lang.String oauthToken) { + return (GenerateToolspecOverride) super.setOauthToken(oauthToken); + } + + @Override + public GenerateToolspecOverride setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GenerateToolspecOverride) super.setPrettyPrint(prettyPrint); + } + + @Override + public GenerateToolspecOverride setQuotaUser(java.lang.String quotaUser) { + return (GenerateToolspecOverride) super.setQuotaUser(quotaUser); + } + + @Override + public GenerateToolspecOverride setUploadType(java.lang.String uploadType) { + return (GenerateToolspecOverride) super.setUploadType(uploadType); + } + + @Override + public GenerateToolspecOverride setUploadProtocol(java.lang.String uploadProtocol) { + return (GenerateToolspecOverride) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Resource name format: + * projects/{project}/locations/{location}/connections/{connection} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name format: projects/{project}/locations/{location}/connections/{connection} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name format: + * projects/{project}/locations/{location}/connections/{connection} + */ + public GenerateToolspecOverride 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/[^/]+/connections/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public GenerateToolspecOverride set(String parameterName, Object value) { + return (GenerateToolspecOverride) super.set(parameterName, value); + } + } /** * Gets details of a single Connection. * @@ -2164,6 +2310,144 @@ public ListenEvent set(String parameterName, Object value) { return (ListenEvent) super.set(parameterName, value); } } + /** + * Updates Toolspec Override for a connection with the admin provided descriptions. + * + * Create a request for the method "connections.modifyToolspecOverride". + * + * This request holds the parameters needed by the connectors server. After setting any optional + * parameters, call the {@link ModifyToolspecOverride#execute()} method to invoke the remote + * operation. + * + * @param name Required. Resource name format: projects/{project}/locations/{location}/connections/{connection} + * @param content the {@link com.google.api.services.connectors.v1.model.ModifyConnectionToolspecOverrideRequest} + * @return the request + */ + public ModifyToolspecOverride modifyToolspecOverride(java.lang.String name, com.google.api.services.connectors.v1.model.ModifyConnectionToolspecOverrideRequest content) throws java.io.IOException { + ModifyToolspecOverride result = new ModifyToolspecOverride(name, content); + initialize(result); + return result; + } + + public class ModifyToolspecOverride extends ConnectorsRequest{@link ModifyToolspecOverride#initialize(com.google.api.client.googleapis + * .services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
+ * + * @param name Required. Resource name format: projects/{project}/locations/{location}/connections/{connection} + * @param content the {@link com.google.api.services.connectors.v1.model.ModifyConnectionToolspecOverrideRequest} + * @since 1.13 + */ + protected ModifyToolspecOverride(java.lang.String name, com.google.api.services.connectors.v1.model.ModifyConnectionToolspecOverrideRequest content) { + super(Connectors.this, "POST", REST_PATH, content, com.google.api.services.connectors.v1.model.ModifyConnectionToolspecOverrideResponse.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/[^/]+/connections/[^/]+$"); + } + } + + @Override + public ModifyToolspecOverride set$Xgafv(java.lang.String $Xgafv) { + return (ModifyToolspecOverride) super.set$Xgafv($Xgafv); + } + + @Override + public ModifyToolspecOverride setAccessToken(java.lang.String accessToken) { + return (ModifyToolspecOverride) super.setAccessToken(accessToken); + } + + @Override + public ModifyToolspecOverride setAlt(java.lang.String alt) { + return (ModifyToolspecOverride) super.setAlt(alt); + } + + @Override + public ModifyToolspecOverride setCallback(java.lang.String callback) { + return (ModifyToolspecOverride) super.setCallback(callback); + } + + @Override + public ModifyToolspecOverride setFields(java.lang.String fields) { + return (ModifyToolspecOverride) super.setFields(fields); + } + + @Override + public ModifyToolspecOverride setKey(java.lang.String key) { + return (ModifyToolspecOverride) super.setKey(key); + } + + @Override + public ModifyToolspecOverride setOauthToken(java.lang.String oauthToken) { + return (ModifyToolspecOverride) super.setOauthToken(oauthToken); + } + + @Override + public ModifyToolspecOverride setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ModifyToolspecOverride) super.setPrettyPrint(prettyPrint); + } + + @Override + public ModifyToolspecOverride setQuotaUser(java.lang.String quotaUser) { + return (ModifyToolspecOverride) super.setQuotaUser(quotaUser); + } + + @Override + public ModifyToolspecOverride setUploadType(java.lang.String uploadType) { + return (ModifyToolspecOverride) super.setUploadType(uploadType); + } + + @Override + public ModifyToolspecOverride setUploadProtocol(java.lang.String uploadProtocol) { + return (ModifyToolspecOverride) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Resource name format: + * projects/{project}/locations/{location}/connections/{connection} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name format: projects/{project}/locations/{location}/connections/{connection} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name format: + * projects/{project}/locations/{location}/connections/{connection} + */ + public ModifyToolspecOverride 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/[^/]+/connections/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public ModifyToolspecOverride set(String parameterName, Object value) { + return (ModifyToolspecOverride) super.set(parameterName, value); + } + } /** * Updates the parameters of a single Connection. * @@ -2347,6 +2631,144 @@ public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } + /** + * Deletes all Toolspec Override for a connection. + * + * Create a request for the method "connections.removeToolspecOverride". + * + * This request holds the parameters needed by the connectors server. After setting any optional + * parameters, call the {@link RemoveToolspecOverride#execute()} method to invoke the remote + * operation. + * + * @param name Required. Resource name format: projects/{project}/locations/{location}/connections/{connection} + * @param content the {@link com.google.api.services.connectors.v1.model.RemoveConnectionToolspecOverrideRequest} + * @return the request + */ + public RemoveToolspecOverride removeToolspecOverride(java.lang.String name, com.google.api.services.connectors.v1.model.RemoveConnectionToolspecOverrideRequest content) throws java.io.IOException { + RemoveToolspecOverride result = new RemoveToolspecOverride(name, content); + initialize(result); + return result; + } + + public class RemoveToolspecOverride extends ConnectorsRequest{@link RemoveToolspecOverride#initialize(com.google.api.client.googleapis + * .services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
+ * + * @param name Required. Resource name format: projects/{project}/locations/{location}/connections/{connection} + * @param content the {@link com.google.api.services.connectors.v1.model.RemoveConnectionToolspecOverrideRequest} + * @since 1.13 + */ + protected RemoveToolspecOverride(java.lang.String name, com.google.api.services.connectors.v1.model.RemoveConnectionToolspecOverrideRequest content) { + super(Connectors.this, "POST", REST_PATH, content, com.google.api.services.connectors.v1.model.Empty.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/[^/]+/connections/[^/]+$"); + } + } + + @Override + public RemoveToolspecOverride set$Xgafv(java.lang.String $Xgafv) { + return (RemoveToolspecOverride) super.set$Xgafv($Xgafv); + } + + @Override + public RemoveToolspecOverride setAccessToken(java.lang.String accessToken) { + return (RemoveToolspecOverride) super.setAccessToken(accessToken); + } + + @Override + public RemoveToolspecOverride setAlt(java.lang.String alt) { + return (RemoveToolspecOverride) super.setAlt(alt); + } + + @Override + public RemoveToolspecOverride setCallback(java.lang.String callback) { + return (RemoveToolspecOverride) super.setCallback(callback); + } + + @Override + public RemoveToolspecOverride setFields(java.lang.String fields) { + return (RemoveToolspecOverride) super.setFields(fields); + } + + @Override + public RemoveToolspecOverride setKey(java.lang.String key) { + return (RemoveToolspecOverride) super.setKey(key); + } + + @Override + public RemoveToolspecOverride setOauthToken(java.lang.String oauthToken) { + return (RemoveToolspecOverride) super.setOauthToken(oauthToken); + } + + @Override + public RemoveToolspecOverride setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemoveToolspecOverride) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemoveToolspecOverride setQuotaUser(java.lang.String quotaUser) { + return (RemoveToolspecOverride) super.setQuotaUser(quotaUser); + } + + @Override + public RemoveToolspecOverride setUploadType(java.lang.String uploadType) { + return (RemoveToolspecOverride) super.setUploadType(uploadType); + } + + @Override + public RemoveToolspecOverride setUploadProtocol(java.lang.String uploadProtocol) { + return (RemoveToolspecOverride) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Resource name format: + * projects/{project}/locations/{location}/connections/{connection} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name format: projects/{project}/locations/{location}/connections/{connection} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name format: + * projects/{project}/locations/{location}/connections/{connection} + */ + public RemoveToolspecOverride 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/[^/]+/connections/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public RemoveToolspecOverride set(String parameterName, Object value) { + return (RemoveToolspecOverride) super.set(parameterName, value); + } + } /** * RepaiEventing tries to repair eventing related event subscriptions. * diff --git a/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/GenerateConnectionToolspecOverrideRequest.java b/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/GenerateConnectionToolspecOverrideRequest.java new file mode 100644 index 00000000000..6f0ebf8f6ca --- /dev/null +++ b/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/GenerateConnectionToolspecOverrideRequest.java @@ -0,0 +1,66 @@ +/* + * 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.connectors.v1.model; + +/** + * Request message for GenerateConnectionToolspecOverride API. + * + *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 Connectors 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 GenerateConnectionToolspecOverrideRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. List of tools for which the tool spec override is to be generated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Connectors 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 GenerateConnectionToolspecOverrideResponse extends com.google.api.client.json.GenericJson { + + /** + * Toolspec overrides for the connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolspecOverride toolspecOverride; + + /** + * Toolspec overrides for the connection. + * @return value or {@code null} for none + */ + public ToolspecOverride getToolspecOverride() { + return toolspecOverride; + } + + /** + * Toolspec overrides for the connection. + * @param toolspecOverride toolspecOverride or {@code null} for none + */ + public GenerateConnectionToolspecOverrideResponse setToolspecOverride(ToolspecOverride toolspecOverride) { + this.toolspecOverride = toolspecOverride; + return this; + } + + @Override + public GenerateConnectionToolspecOverrideResponse set(String fieldName, Object value) { + return (GenerateConnectionToolspecOverrideResponse) super.set(fieldName, value); + } + + @Override + public GenerateConnectionToolspecOverrideResponse clone() { + return (GenerateConnectionToolspecOverrideResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/ModifyConnectionToolspecOverrideRequest.java b/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/ModifyConnectionToolspecOverrideRequest.java new file mode 100644 index 00000000000..b2f2c0d062a --- /dev/null +++ b/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/ModifyConnectionToolspecOverrideRequest.java @@ -0,0 +1,66 @@ +/* + * 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.connectors.v1.model; + +/** + * Request message for ModifyConnectionToolspecOverride API. + * + *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 Connectors 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 ModifyConnectionToolspecOverrideRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. Toolspec overrides to be modified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolspecOverride toolspecOverride; + + /** + * Required. Toolspec overrides to be modified. + * @return value or {@code null} for none + */ + public ToolspecOverride getToolspecOverride() { + return toolspecOverride; + } + + /** + * Required. Toolspec overrides to be modified. + * @param toolspecOverride toolspecOverride or {@code null} for none + */ + public ModifyConnectionToolspecOverrideRequest setToolspecOverride(ToolspecOverride toolspecOverride) { + this.toolspecOverride = toolspecOverride; + return this; + } + + @Override + public ModifyConnectionToolspecOverrideRequest set(String fieldName, Object value) { + return (ModifyConnectionToolspecOverrideRequest) super.set(fieldName, value); + } + + @Override + public ModifyConnectionToolspecOverrideRequest clone() { + return (ModifyConnectionToolspecOverrideRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/ModifyConnectionToolspecOverrideResponse.java b/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/ModifyConnectionToolspecOverrideResponse.java new file mode 100644 index 00000000000..fbdfd91b5aa --- /dev/null +++ b/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/ModifyConnectionToolspecOverrideResponse.java @@ -0,0 +1,66 @@ +/* + * 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.connectors.v1.model; + +/** + * Response message for ModifyConnectionToolspecOverride API. + * + *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 Connectors 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 ModifyConnectionToolspecOverrideResponse extends com.google.api.client.json.GenericJson { + + /** + * Toolspec overrides for the connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolspecOverride toolspecOverrides; + + /** + * Toolspec overrides for the connection. + * @return value or {@code null} for none + */ + public ToolspecOverride getToolspecOverrides() { + return toolspecOverrides; + } + + /** + * Toolspec overrides for the connection. + * @param toolspecOverrides toolspecOverrides or {@code null} for none + */ + public ModifyConnectionToolspecOverrideResponse setToolspecOverrides(ToolspecOverride toolspecOverrides) { + this.toolspecOverrides = toolspecOverrides; + return this; + } + + @Override + public ModifyConnectionToolspecOverrideResponse set(String fieldName, Object value) { + return (ModifyConnectionToolspecOverrideResponse) super.set(fieldName, value); + } + + @Override + public ModifyConnectionToolspecOverrideResponse clone() { + return (ModifyConnectionToolspecOverrideResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/RemoveConnectionToolspecOverrideRequest.java b/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/RemoveConnectionToolspecOverrideRequest.java new file mode 100644 index 00000000000..dcf8d031b86 --- /dev/null +++ b/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/RemoveConnectionToolspecOverrideRequest.java @@ -0,0 +1,42 @@ +/* + * 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.connectors.v1.model; + +/** + * Request message for RemoveConnectionToolspecOverride API. + * + *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 Connectors 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 RemoveConnectionToolspecOverrideRequest extends com.google.api.client.json.GenericJson { + + @Override + public RemoveConnectionToolspecOverrideRequest set(String fieldName, Object value) { + return (RemoveConnectionToolspecOverrideRequest) super.set(fieldName, value); + } + + @Override + public RemoveConnectionToolspecOverrideRequest clone() { + return (RemoveConnectionToolspecOverrideRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/ToolName.java b/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/ToolName.java new file mode 100644 index 00000000000..788d63a3ee4 --- /dev/null +++ b/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/ToolName.java @@ -0,0 +1,114 @@ +/* + * 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.connectors.v1.model; + +/** + * Tool name for which the tool spec override is to be generated. + * + *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 Connectors 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 ToolName extends com.google.api.client.json.GenericJson { + + /** + * Optional. Entity type name for which the tool was generated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String entityType; + + /** + * Required. Tool name that was generated in the list tools call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Operation for which the tool was generated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** + * Optional. Entity type name for which the tool was generated. + * @return value or {@code null} for none + */ + public java.lang.String getEntityType() { + return entityType; + } + + /** + * Optional. Entity type name for which the tool was generated. + * @param entityType entityType or {@code null} for none + */ + public ToolName setEntityType(java.lang.String entityType) { + this.entityType = entityType; + return this; + } + + /** + * Required. Tool name that was generated in the list tools call. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Tool name that was generated in the list tools call. + * @param name name or {@code null} for none + */ + public ToolName setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Operation for which the tool was generated. + * @return value or {@code null} for none + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Optional. Operation for which the tool was generated. + * @param operation operation or {@code null} for none + */ + public ToolName setOperation(java.lang.String operation) { + this.operation = operation; + return this; + } + + @Override + public ToolName set(String fieldName, Object value) { + return (ToolName) super.set(fieldName, value); + } + + @Override + public ToolName clone() { + return (ToolName) super.clone(); + } + +} diff --git a/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/ToolspecOverride.java b/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/ToolspecOverride.java new file mode 100644 index 00000000000..233254b9cf5 --- /dev/null +++ b/clients/google-api-services-connectors/v1/2.0.0/com/google/api/services/connectors/v1/model/ToolspecOverride.java @@ -0,0 +1,121 @@ +/* + * 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.connectors.v1.model; + +/** + * Toolspec overrides for a connection only holds the information that is to be displayed in the UI + * for admins. + * + *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 Connectors 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 ToolspecOverride extends com.google.api.client.json.GenericJson { + + /** + * Output only. Created time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Required. List of tools defined in the tool spec. Marking this field as required as this is the + * only field that is editable by the user in modify API so we should have at least one tool in + * the list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List{@link GenerateConnectionToolspecOverride#initialize(com.googl + * e.api.client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize + * this instance immediately after invoking the constructor.
+ * + * @param name Required. Resource name of the Connection. Format: + * projects/{project}/locations/{location}/connections/{connection} + * @param content the {@link com.google.api.services.connectors.v2.model.GenerateCustomToolspecRequest} + * @since 1.13 + */ + protected GenerateConnectionToolspecOverride(java.lang.String name, com.google.api.services.connectors.v2.model.GenerateCustomToolspecRequest content) { + super(Connectors.this, "POST", REST_PATH, content, com.google.api.services.connectors.v2.model.GenerateCustomToolspecResponse.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/[^/]+/connections/[^/]+$"); + } + } + + @Override + public GenerateConnectionToolspecOverride set$Xgafv(java.lang.String $Xgafv) { + return (GenerateConnectionToolspecOverride) super.set$Xgafv($Xgafv); + } + + @Override + public GenerateConnectionToolspecOverride setAccessToken(java.lang.String accessToken) { + return (GenerateConnectionToolspecOverride) super.setAccessToken(accessToken); + } + + @Override + public GenerateConnectionToolspecOverride setAlt(java.lang.String alt) { + return (GenerateConnectionToolspecOverride) super.setAlt(alt); + } + + @Override + public GenerateConnectionToolspecOverride setCallback(java.lang.String callback) { + return (GenerateConnectionToolspecOverride) super.setCallback(callback); + } + + @Override + public GenerateConnectionToolspecOverride setFields(java.lang.String fields) { + return (GenerateConnectionToolspecOverride) super.setFields(fields); + } + + @Override + public GenerateConnectionToolspecOverride setKey(java.lang.String key) { + return (GenerateConnectionToolspecOverride) super.setKey(key); + } + + @Override + public GenerateConnectionToolspecOverride setOauthToken(java.lang.String oauthToken) { + return (GenerateConnectionToolspecOverride) super.setOauthToken(oauthToken); + } + + @Override + public GenerateConnectionToolspecOverride setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GenerateConnectionToolspecOverride) super.setPrettyPrint(prettyPrint); + } + + @Override + public GenerateConnectionToolspecOverride setQuotaUser(java.lang.String quotaUser) { + return (GenerateConnectionToolspecOverride) super.setQuotaUser(quotaUser); + } + + @Override + public GenerateConnectionToolspecOverride setUploadType(java.lang.String uploadType) { + return (GenerateConnectionToolspecOverride) super.setUploadType(uploadType); + } + + @Override + public GenerateConnectionToolspecOverride setUploadProtocol(java.lang.String uploadProtocol) { + return (GenerateConnectionToolspecOverride) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Resource name of the Connection. Format: + * projects/{project}/locations/{location}/connections/{connection} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name of the Connection. Format: + projects/{project}/locations/{location}/connections/{connection} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name of the Connection. Format: + * projects/{project}/locations/{location}/connections/{connection} + */ + public GenerateConnectionToolspecOverride 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/[^/]+/connections/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public GenerateConnectionToolspecOverride set(String parameterName, Object value) { + return (GenerateConnectionToolspecOverride) super.set(parameterName, value); + } + } + /** + * Lists custom tool names. + * + * Create a request for the method "connections.listCustomToolNames". + * + * This request holds the parameters needed by the connectors server. After setting any optional + * parameters, call the {@link ListCustomToolNames#execute()} method to invoke the remote operation. + * + * @param name Required. Resource name of the Connection. Format: + * projects/{project}/locations/{location}/connections/{connection} + * @return the request + */ + public ListCustomToolNames listCustomToolNames(java.lang.String name) throws java.io.IOException { + ListCustomToolNames result = new ListCustomToolNames(name); + initialize(result); + return result; + } + + public class ListCustomToolNames extends ConnectorsRequest{@link ListCustomToolNames#initialize(com.google.api.client.googleapis.services. + * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param name Required. Resource name of the Connection. Format: + * projects/{project}/locations/{location}/connections/{connection} + * @since 1.13 + */ + protected ListCustomToolNames(java.lang.String name) { + super(Connectors.this, "GET", REST_PATH, null, com.google.api.services.connectors.v2.model.ListCustomToolNamesResponse.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/[^/]+/connections/[^/]+$"); + } + } + + @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 ListCustomToolNames set$Xgafv(java.lang.String $Xgafv) { + return (ListCustomToolNames) super.set$Xgafv($Xgafv); + } + + @Override + public ListCustomToolNames setAccessToken(java.lang.String accessToken) { + return (ListCustomToolNames) super.setAccessToken(accessToken); + } + + @Override + public ListCustomToolNames setAlt(java.lang.String alt) { + return (ListCustomToolNames) super.setAlt(alt); + } + + @Override + public ListCustomToolNames setCallback(java.lang.String callback) { + return (ListCustomToolNames) super.setCallback(callback); + } + + @Override + public ListCustomToolNames setFields(java.lang.String fields) { + return (ListCustomToolNames) super.setFields(fields); + } + + @Override + public ListCustomToolNames setKey(java.lang.String key) { + return (ListCustomToolNames) super.setKey(key); + } + + @Override + public ListCustomToolNames setOauthToken(java.lang.String oauthToken) { + return (ListCustomToolNames) super.setOauthToken(oauthToken); + } + + @Override + public ListCustomToolNames setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListCustomToolNames) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListCustomToolNames setQuotaUser(java.lang.String quotaUser) { + return (ListCustomToolNames) super.setQuotaUser(quotaUser); + } + + @Override + public ListCustomToolNames setUploadType(java.lang.String uploadType) { + return (ListCustomToolNames) super.setUploadType(uploadType); + } + + @Override + public ListCustomToolNames setUploadProtocol(java.lang.String uploadProtocol) { + return (ListCustomToolNames) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. Resource name of the Connection. Format: + * projects/{project}/locations/{location}/connections/{connection} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Resource name of the Connection. Format: + projects/{project}/locations/{location}/connections/{connection} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Resource name of the Connection. Format: + * projects/{project}/locations/{location}/connections/{connection} + */ + public ListCustomToolNames 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/[^/]+/connections/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public ListCustomToolNames set(String parameterName, Object value) { + return (ListCustomToolNames) super.set(parameterName, value); + } + } /** * RefreshAccessToken exchanges the OAuth refresh token (and other necessary data) for a new access * token (and new associated credentials). diff --git a/clients/google-api-services-connectors/v2/2.0.0/com/google/api/services/connectors/v2/model/GenerateCustomToolspecRequest.java b/clients/google-api-services-connectors/v2/2.0.0/com/google/api/services/connectors/v2/model/GenerateCustomToolspecRequest.java new file mode 100644 index 00000000000..da5c3261753 --- /dev/null +++ b/clients/google-api-services-connectors/v2/2.0.0/com/google/api/services/connectors/v2/model/GenerateCustomToolspecRequest.java @@ -0,0 +1,66 @@ +/* + * 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.connectors.v2.model; + +/** + * Model definition for GenerateCustomToolspecRequest. + * + *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 Connectors 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 GenerateCustomToolspecRequest extends com.google.api.client.json.GenericJson { + + /** + * list of tools to be generated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Connectors 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 GenerateCustomToolspecResponse extends com.google.api.client.json.GenericJson { + + /** + * tool spec that has tool_defitions array containing the tools for all sted tool_names. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolSpec toolSpec; + + /** + * tool spec that has tool_defitions array containing the tools for all sted tool_names. + * @return value or {@code null} for none + */ + public ToolSpec getToolSpec() { + return toolSpec; + } + + /** + * tool spec that has tool_defitions array containing the tools for all sted tool_names. + * @param toolSpec toolSpec or {@code null} for none + */ + public GenerateCustomToolspecResponse setToolSpec(ToolSpec toolSpec) { + this.toolSpec = toolSpec; + return this; + } + + @Override + public GenerateCustomToolspecResponse set(String fieldName, Object value) { + return (GenerateCustomToolspecResponse) super.set(fieldName, value); + } + + @Override + public GenerateCustomToolspecResponse clone() { + return (GenerateCustomToolspecResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-connectors/v2/2.0.0/com/google/api/services/connectors/v2/model/ListCustomToolNamesResponse.java b/clients/google-api-services-connectors/v2/2.0.0/com/google/api/services/connectors/v2/model/ListCustomToolNamesResponse.java new file mode 100644 index 00000000000..bb0ab0f7bbb --- /dev/null +++ b/clients/google-api-services-connectors/v2/2.0.0/com/google/api/services/connectors/v2/model/ListCustomToolNamesResponse.java @@ -0,0 +1,66 @@ +/* + * 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.connectors.v2.model; + +/** + * Model definition for ListCustomToolNamesResponse. + * + *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 Connectors 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 ListCustomToolNamesResponse extends com.google.api.client.json.GenericJson { + + /** + * List of custom tools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Connectors 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 ToolName extends com.google.api.client.json.GenericJson { + + /** + * Entity name for which the tool was generated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String entityName; + + /** + * Tool name that was generated in the list tools call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Operation for which the tool was generated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** + * Entity name for which the tool was generated. + * @return value or {@code null} for none + */ + public java.lang.String getEntityName() { + return entityName; + } + + /** + * Entity name for which the tool was generated. + * @param entityName entityName or {@code null} for none + */ + public ToolName setEntityName(java.lang.String entityName) { + this.entityName = entityName; + return this; + } + + /** + * Tool name that was generated in the list tools call. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Tool name that was generated in the list tools call. + * @param name name or {@code null} for none + */ + public ToolName setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Operation for which the tool was generated. + * @return value or {@code null} for none + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Operation for which the tool was generated. + * @param operation operation or {@code null} for none + */ + public ToolName setOperation(java.lang.String operation) { + this.operation = operation; + return this; + } + + @Override + public ToolName set(String fieldName, Object value) { + return (ToolName) super.set(fieldName, value); + } + + @Override + public ToolName clone() { + return (ToolName) super.clone(); + } + +} diff --git a/clients/google-api-services-connectors/v2/2.0.0/pom.xml b/clients/google-api-services-connectors/v2/2.0.0/pom.xml index 72c7589c907..aeec653d699 100644 --- a/clients/google-api-services-connectors/v2/2.0.0/pom.xml +++ b/clients/google-api-services-connectors/v2/2.0.0/pom.xml @@ -8,8 +8,8 @@