diff --git a/clients/google-api-services-networkservices/v1/2.0.0/README.md b/clients/google-api-services-networkservices/v1/2.0.0/README.md index 64edbfba827..0ad596e8a93 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/README.md +++ b/clients/google-api-services-networkservices/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-networkservices - v1-rev20260710-2.0.0 + v1-rev20260724-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-networkservices:v1-rev20260710-2.0.0' + implementation 'com.google.apis:google-api-services-networkservices:v1-rev20260724-2.0.0' } ``` diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/NetworkServices.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/NetworkServices.java index dd5c1438d4e..2a162bbc157 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/NetworkServices.java +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/NetworkServices.java @@ -552,6 +552,870 @@ public List set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the AgentConnectivityTemplates collection. + * + *

The typical use is:

+ *
+       *   {@code NetworkServices networkservices = new NetworkServices(...);}
+       *   {@code NetworkServices.AgentConnectivityTemplates.List request = networkservices.agentConnectivityTemplates().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public AgentConnectivityTemplates agentConnectivityTemplates() { + return new AgentConnectivityTemplates(); + } + + /** + * The "agentConnectivityTemplates" collection of methods. + */ + public class AgentConnectivityTemplates { + + /** + * Creates a new AgentConnectivityTemplate in a given project and location. + * + * Create a request for the method "agentConnectivityTemplates.create". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource of the AgentConnectivityTemplate. Must be in the format + * `projects/locations`. + * @param content the {@link com.google.api.services.networkservices.v1.model.AgentConnectivityTemplate} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.networkservices.v1.model.AgentConnectivityTemplate content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends NetworkServicesRequest { + + private static final String REST_PATH = "v1/{+parent}/agentConnectivityTemplates"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a new AgentConnectivityTemplate in a given project and location. + * + * Create a request for the method "agentConnectivityTemplates.create". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

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

+ * + * @param parent Required. The parent resource of the AgentConnectivityTemplate. Must be in the format + * `projects/locations`. + * @param content the {@link com.google.api.services.networkservices.v1.model.AgentConnectivityTemplate} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.networkservices.v1.model.AgentConnectivityTemplate content) { + super(NetworkServices.this, "POST", REST_PATH, content, com.google.api.services.networkservices.v1.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource of the AgentConnectivityTemplate. Must be in the format + * `projects/locations`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the AgentConnectivityTemplate. Must be in the format + `projects/locations`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource of the AgentConnectivityTemplate. Must be in the format + * `projects/locations`. + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Required. Short name of the AgentConnectivityTemplate resource to be created. */ + @com.google.api.client.util.Key + private java.lang.String agentConnectivityTemplateId; + + /** Required. Short name of the AgentConnectivityTemplate resource to be created. + */ + public java.lang.String getAgentConnectivityTemplateId() { + return agentConnectivityTemplateId; + } + + /** Required. Short name of the AgentConnectivityTemplate resource to be created. */ + public Create setAgentConnectivityTemplateId(java.lang.String agentConnectivityTemplateId) { + this.agentConnectivityTemplateId = agentConnectivityTemplateId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single AgentConnectivityTemplate. + * + * Create a request for the method "agentConnectivityTemplates.delete". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. A name of the AgentConnectivityTemplate to delete. Must be in the format + * `projects/locations/agentConnectivityTemplates`. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends NetworkServicesRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agentConnectivityTemplates/[^/]+$"); + + /** + * Deletes a single AgentConnectivityTemplate. + * + * Create a request for the method "agentConnectivityTemplates.delete". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. A name of the AgentConnectivityTemplate to delete. Must be in the format + * `projects/locations/agentConnectivityTemplates`. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(NetworkServices.this, "DELETE", REST_PATH, null, com.google.api.services.networkservices.v1.model.Operation.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/[^/]+/agentConnectivityTemplates/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. A name of the AgentConnectivityTemplate to delete. Must be in the format + * `projects/locations/agentConnectivityTemplates`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. A name of the AgentConnectivityTemplate to delete. Must be in the format + `projects/locations/agentConnectivityTemplates`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. A name of the AgentConnectivityTemplate to delete. Must be in the format + * `projects/locations/agentConnectivityTemplates`. + */ + public Delete 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/[^/]+/agentConnectivityTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The etag of the AgentConnectivityTemplate to delete. */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The etag of the AgentConnectivityTemplate to delete. + */ + public java.lang.String getEtag() { + return etag; + } + + /** Optional. The etag of the AgentConnectivityTemplate to delete. */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single AgentConnectivityTemplate. + * + * Create a request for the method "agentConnectivityTemplates.get". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. A name of the AgentConnectivityTemplate to get. Must be in the format + * `projects/locations/agentConnectivityTemplates`. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends NetworkServicesRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agentConnectivityTemplates/[^/]+$"); + + /** + * Gets details of a single AgentConnectivityTemplate. + * + * Create a request for the method "agentConnectivityTemplates.get". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. A name of the AgentConnectivityTemplate to get. Must be in the format + * `projects/locations/agentConnectivityTemplates`. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.AgentConnectivityTemplate.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/[^/]+/agentConnectivityTemplates/[^/]+$"); + } + } + + @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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. A name of the AgentConnectivityTemplate to get. Must be in the format + * `projects/locations/agentConnectivityTemplates`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. A name of the AgentConnectivityTemplate to get. Must be in the format + `projects/locations/agentConnectivityTemplates`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. A name of the AgentConnectivityTemplate to get. Must be in the format + * `projects/locations/agentConnectivityTemplates`. + */ + public Get 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/[^/]+/agentConnectivityTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists AgentConnectivityTemplates in a given project and location. + * + * Create a request for the method "agentConnectivityTemplates.list". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The project and location from which the AgentConnectivityTemplates should be listed, + * specified in the format `projects/locations`. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends NetworkServicesRequest { + + private static final String REST_PATH = "v1/{+parent}/agentConnectivityTemplates"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists AgentConnectivityTemplates in a given project and location. + * + * Create a request for the method "agentConnectivityTemplates.list". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param parent Required. The project and location from which the AgentConnectivityTemplates should be listed, + * specified in the format `projects/locations`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1.model.ListAgentConnectivityTemplatesResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The project and location from which the AgentConnectivityTemplates should be + * listed, specified in the format `projects/locations`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The project and location from which the AgentConnectivityTemplates should be listed, + specified in the format `projects/locations`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The project and location from which the AgentConnectivityTemplates should be + * listed, specified in the format `projects/locations`. + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Maximum number of AgentConnectivityTemplates to return per call. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of AgentConnectivityTemplates to return per call. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. Maximum number of AgentConnectivityTemplates to return per call. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The value returned by the last `ListAgentConnectivityTemplatesResponse` + * Indicates that this is a continuation of a prior `ListAgentConnectivityTemplates` call, + * and that the system should return the next page of data. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The value returned by the last `ListAgentConnectivityTemplatesResponse` Indicates that + this is a continuation of a prior `ListAgentConnectivityTemplates` call, and that the system should + return the next page of data. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The value returned by the last `ListAgentConnectivityTemplatesResponse` + * Indicates that this is a continuation of a prior `ListAgentConnectivityTemplates` call, + * and that the system should return the next page of data. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Optional. If true, allow partial responses for multi-regional Aggregated List requests. + * Otherwise if one of the locations is down or unreachable, the Aggregated List request + * will fail. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise + if one of the locations is down or unreachable, the Aggregated List request will fail. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Optional. If true, allow partial responses for multi-regional Aggregated List requests. + * Otherwise if one of the locations is down or unreachable, the Aggregated List request + * will fail. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the parameters of a single AgentConnectivityTemplate. + * + * Create a request for the method "agentConnectivityTemplates.patch". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern + * `projects/locations/agentConnectivityTemplates/`. + * @param content the {@link com.google.api.services.networkservices.v1.model.AgentConnectivityTemplate} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1.model.AgentConnectivityTemplate content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends NetworkServicesRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agentConnectivityTemplates/[^/]+$"); + + /** + * Updates the parameters of a single AgentConnectivityTemplate. + * + * Create a request for the method "agentConnectivityTemplates.patch". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern + * `projects/locations/agentConnectivityTemplates/`. + * @param content the {@link com.google.api.services.networkservices.v1.model.AgentConnectivityTemplate} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.networkservices.v1.model.AgentConnectivityTemplate content) { + super(NetworkServices.this, "PATCH", REST_PATH, content, com.google.api.services.networkservices.v1.model.Operation.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/[^/]+/agentConnectivityTemplates/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern + * `projects/locations/agentConnectivityTemplates/`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern + `projects/locations/agentConnectivityTemplates/`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern + * `projects/locations/agentConnectivityTemplates/`. + */ + public Patch 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/[^/]+/agentConnectivityTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * AgentConnectivityTemplate resource by the update. The fields specified in the + * update_mask are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. If the user does not provide a mask then all fields + * will be overwritten. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to specify the fields to be overwritten in the + AgentConnectivityTemplate resource by the update. The fields specified in the update_mask are + relative to the resource, not the full request. A field will be overwritten if it is in the mask. + If the user does not provide a mask then all fields will be overwritten. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * AgentConnectivityTemplate resource by the update. The fields specified in the + * update_mask are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. If the user does not provide a mask then all fields + * will be overwritten. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } /** * An accessor for creating requests from the AgentGateways collection. * diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/AgentConnectivityTemplate.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/AgentConnectivityTemplate.java new file mode 100644 index 00000000000..00fab16400e --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/AgentConnectivityTemplate.java @@ -0,0 +1,273 @@ +/* + * 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.networkservices.v1.model; + +/** + * AgentConnectivityTemplate represents a reusable network configuration. + * + *

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 Network Services 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 AgentConnectivityTemplate extends com.google.api.client.json.GenericJson { + + /** + * Required. Immutable. The path of the access. Maps roughly to ingress/egress, though we keep + * CLIENT_TO_AGENT and AGENT_TO_ANYWHERE as carryovers from Agent Gateway's original resource + * model. The path is immutable once set. Exactly one path can be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String accessPath; + + /** + * Optional. The types of network access provided to the gateway. Both PUBLIC and PRIVATE can be + * configured. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List accessTypes; + + /** + * Output only. The timestamp when the resource was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. A free-text description of the resource. Max length 1024 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. Configuration for egress network traffic. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EgressNetworkConfig egressNetworkConfig; + + /** + * Optional. Etag of the resource. If this is provided, it must match the server's etag. If the + * provided etag does not match the server's etag, the request will fail with a 409 ABORTED error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. Set of label tags associated with the AgentConnectivityTemplate resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern + * `projects/locations/agentConnectivityTemplates/`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The timestamp when the resource was updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. Immutable. The path of the access. Maps roughly to ingress/egress, though we keep + * CLIENT_TO_AGENT and AGENT_TO_ANYWHERE as carryovers from Agent Gateway's original resource + * model. The path is immutable once set. Exactly one path can be set. + * @return value or {@code null} for none + */ + public java.lang.String getAccessPath() { + return accessPath; + } + + /** + * Required. Immutable. The path of the access. Maps roughly to ingress/egress, though we keep + * CLIENT_TO_AGENT and AGENT_TO_ANYWHERE as carryovers from Agent Gateway's original resource + * model. The path is immutable once set. Exactly one path can be set. + * @param accessPath accessPath or {@code null} for none + */ + public AgentConnectivityTemplate setAccessPath(java.lang.String accessPath) { + this.accessPath = accessPath; + return this; + } + + /** + * Optional. The types of network access provided to the gateway. Both PUBLIC and PRIVATE can be + * configured. + * @return value or {@code null} for none + */ + public java.util.List getAccessTypes() { + return accessTypes; + } + + /** + * Optional. The types of network access provided to the gateway. Both PUBLIC and PRIVATE can be + * configured. + * @param accessTypes accessTypes or {@code null} for none + */ + public AgentConnectivityTemplate setAccessTypes(java.util.List accessTypes) { + this.accessTypes = accessTypes; + return this; + } + + /** + * Output only. The timestamp when the resource was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The timestamp when the resource was created. + * @param createTime createTime or {@code null} for none + */ + public AgentConnectivityTemplate setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. A free-text description of the resource. Max length 1024 characters. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. A free-text description of the resource. Max length 1024 characters. + * @param description description or {@code null} for none + */ + public AgentConnectivityTemplate setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. Configuration for egress network traffic. + * @return value or {@code null} for none + */ + public EgressNetworkConfig getEgressNetworkConfig() { + return egressNetworkConfig; + } + + /** + * Optional. Configuration for egress network traffic. + * @param egressNetworkConfig egressNetworkConfig or {@code null} for none + */ + public AgentConnectivityTemplate setEgressNetworkConfig(EgressNetworkConfig egressNetworkConfig) { + this.egressNetworkConfig = egressNetworkConfig; + return this; + } + + /** + * Optional. Etag of the resource. If this is provided, it must match the server's etag. If the + * provided etag does not match the server's etag, the request will fail with a 409 ABORTED error. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. Etag of the resource. If this is provided, it must match the server's etag. If the + * provided etag does not match the server's etag, the request will fail with a 409 ABORTED error. + * @param etag etag or {@code null} for none + */ + public AgentConnectivityTemplate setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Set of label tags associated with the AgentConnectivityTemplate resource. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Set of label tags associated with the AgentConnectivityTemplate resource. + * @param labels labels or {@code null} for none + */ + public AgentConnectivityTemplate setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern + * `projects/locations/agentConnectivityTemplates/`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern + * `projects/locations/agentConnectivityTemplates/`. + * @param name name or {@code null} for none + */ + public AgentConnectivityTemplate setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The timestamp when the resource was updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The timestamp when the resource was updated. + * @param updateTime updateTime or {@code null} for none + */ + public AgentConnectivityTemplate setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public AgentConnectivityTemplate set(String fieldName, Object value) { + return (AgentConnectivityTemplate) super.set(fieldName, value); + } + + @Override + public AgentConnectivityTemplate clone() { + return (AgentConnectivityTemplate) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/DnsPeeringConfig.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/DnsPeeringConfig.java new file mode 100644 index 00000000000..299ec8bd36d --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/DnsPeeringConfig.java @@ -0,0 +1,93 @@ +/* + * 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.networkservices.v1.model; + +/** + * DNS Peering configuration. + * + *

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 Network Services 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 DnsPeeringConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The domain to peer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String domain; + + /** + * Optional. The target network resource name for DNS peering. Format: + * projects/{project}/global/networks/{network_id} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetNetwork; + + /** + * Optional. The domain to peer. + * @return value or {@code null} for none + */ + public java.lang.String getDomain() { + return domain; + } + + /** + * Optional. The domain to peer. + * @param domain domain or {@code null} for none + */ + public DnsPeeringConfig setDomain(java.lang.String domain) { + this.domain = domain; + return this; + } + + /** + * Optional. The target network resource name for DNS peering. Format: + * projects/{project}/global/networks/{network_id} + * @return value or {@code null} for none + */ + public java.lang.String getTargetNetwork() { + return targetNetwork; + } + + /** + * Optional. The target network resource name for DNS peering. Format: + * projects/{project}/global/networks/{network_id} + * @param targetNetwork targetNetwork or {@code null} for none + */ + public DnsPeeringConfig setTargetNetwork(java.lang.String targetNetwork) { + this.targetNetwork = targetNetwork; + return this; + } + + @Override + public DnsPeeringConfig set(String fieldName, Object value) { + return (DnsPeeringConfig) super.set(fieldName, value); + } + + @Override + public DnsPeeringConfig clone() { + return (DnsPeeringConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/EgressNetworkConfig.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/EgressNetworkConfig.java new file mode 100644 index 00000000000..6ba2bd92920 --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/EgressNetworkConfig.java @@ -0,0 +1,168 @@ +/* + * 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.networkservices.v1.model; + +/** + * Model definition for EgressNetworkConfig. + * + *

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 Network Services 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 EgressNetworkConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. DNS Peering configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DnsPeeringConfig dnsPeeringConfig; + + /** + * Optional. The network attachment resource name. Format: + * projects/{project}/regions/{region}/networkAttachments/{network_attachment_id} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String networkAttachment; + + /** + * Optional. The TLS configuration for the egress traffic. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EgressNetworkConfigTlsConfig tlsConfig; + + /** + * Optional. The trust config resource name. Format: + * projects/{project}/locations/{location}/trustConfigs/{trust_config} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String trustConfig; + + /** + * Optional. The VPC egress setting. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String vpcEgress; + + /** + * Optional. DNS Peering configuration. + * @return value or {@code null} for none + */ + public DnsPeeringConfig getDnsPeeringConfig() { + return dnsPeeringConfig; + } + + /** + * Optional. DNS Peering configuration. + * @param dnsPeeringConfig dnsPeeringConfig or {@code null} for none + */ + public EgressNetworkConfig setDnsPeeringConfig(DnsPeeringConfig dnsPeeringConfig) { + this.dnsPeeringConfig = dnsPeeringConfig; + return this; + } + + /** + * Optional. The network attachment resource name. Format: + * projects/{project}/regions/{region}/networkAttachments/{network_attachment_id} + * @return value or {@code null} for none + */ + public java.lang.String getNetworkAttachment() { + return networkAttachment; + } + + /** + * Optional. The network attachment resource name. Format: + * projects/{project}/regions/{region}/networkAttachments/{network_attachment_id} + * @param networkAttachment networkAttachment or {@code null} for none + */ + public EgressNetworkConfig setNetworkAttachment(java.lang.String networkAttachment) { + this.networkAttachment = networkAttachment; + return this; + } + + /** + * Optional. The TLS configuration for the egress traffic. + * @return value or {@code null} for none + */ + public EgressNetworkConfigTlsConfig getTlsConfig() { + return tlsConfig; + } + + /** + * Optional. The TLS configuration for the egress traffic. + * @param tlsConfig tlsConfig or {@code null} for none + */ + public EgressNetworkConfig setTlsConfig(EgressNetworkConfigTlsConfig tlsConfig) { + this.tlsConfig = tlsConfig; + return this; + } + + /** + * Optional. The trust config resource name. Format: + * projects/{project}/locations/{location}/trustConfigs/{trust_config} + * @return value or {@code null} for none + */ + public java.lang.String getTrustConfig() { + return trustConfig; + } + + /** + * Optional. The trust config resource name. Format: + * projects/{project}/locations/{location}/trustConfigs/{trust_config} + * @param trustConfig trustConfig or {@code null} for none + */ + public EgressNetworkConfig setTrustConfig(java.lang.String trustConfig) { + this.trustConfig = trustConfig; + return this; + } + + /** + * Optional. The VPC egress setting. + * @return value or {@code null} for none + */ + public java.lang.String getVpcEgress() { + return vpcEgress; + } + + /** + * Optional. The VPC egress setting. + * @param vpcEgress vpcEgress or {@code null} for none + */ + public EgressNetworkConfig setVpcEgress(java.lang.String vpcEgress) { + this.vpcEgress = vpcEgress; + return this; + } + + @Override + public EgressNetworkConfig set(String fieldName, Object value) { + return (EgressNetworkConfig) super.set(fieldName, value); + } + + @Override + public EgressNetworkConfig clone() { + return (EgressNetworkConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/EgressNetworkConfigTlsConfig.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/EgressNetworkConfigTlsConfig.java new file mode 100644 index 00000000000..b5c9e91c3fd --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/EgressNetworkConfigTlsConfig.java @@ -0,0 +1,93 @@ +/* + * 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.networkservices.v1.model; + +/** + * Configuration for TLS connections. + * + *

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 Network Services 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 EgressNetworkConfigTlsConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The additional roots to trust. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String additionalRoots; + + /** + * Optional. The trust config resource name. Format: + * projects/{project}/locations/{location}/trustConfigs/{trust_config} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String trustConfig; + + /** + * Optional. The additional roots to trust. + * @return value or {@code null} for none + */ + public java.lang.String getAdditionalRoots() { + return additionalRoots; + } + + /** + * Optional. The additional roots to trust. + * @param additionalRoots additionalRoots or {@code null} for none + */ + public EgressNetworkConfigTlsConfig setAdditionalRoots(java.lang.String additionalRoots) { + this.additionalRoots = additionalRoots; + return this; + } + + /** + * Optional. The trust config resource name. Format: + * projects/{project}/locations/{location}/trustConfigs/{trust_config} + * @return value or {@code null} for none + */ + public java.lang.String getTrustConfig() { + return trustConfig; + } + + /** + * Optional. The trust config resource name. Format: + * projects/{project}/locations/{location}/trustConfigs/{trust_config} + * @param trustConfig trustConfig or {@code null} for none + */ + public EgressNetworkConfigTlsConfig setTrustConfig(java.lang.String trustConfig) { + this.trustConfig = trustConfig; + return this; + } + + @Override + public EgressNetworkConfigTlsConfig set(String fieldName, Object value) { + return (EgressNetworkConfigTlsConfig) super.set(fieldName, value); + } + + @Override + public EgressNetworkConfigTlsConfig clone() { + return (EgressNetworkConfigTlsConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ListAgentConnectivityTemplatesResponse.java b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ListAgentConnectivityTemplatesResponse.java new file mode 100644 index 00000000000..ed4c02a8a0e --- /dev/null +++ b/clients/google-api-services-networkservices/v1/2.0.0/com/google/api/services/networkservices/v1/model/ListAgentConnectivityTemplatesResponse.java @@ -0,0 +1,129 @@ +/* + * 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.networkservices.v1.model; + +/** + * Response returned by the ListAgentConnectivityTemplates method. + * + *

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 Network Services 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 ListAgentConnectivityTemplatesResponse extends com.google.api.client.json.GenericJson { + + /** + * List of AgentConnectivityTemplate resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List agentConnectivityTemplates; + + static { + // hack to force ProGuard to consider AgentConnectivityTemplate used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AgentConnectivityTemplate.class); + } + + /** + * If there might be more results than those appearing in this response, then `next_page_token` is + * included. To get the next set of results, call this method again using the value of + * `next_page_token` as `page_token`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Unordered list. Unreachable resources. Populated when the request attempts to list all + * resources across all supported locations, while some locations are temporarily unavailable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * List of AgentConnectivityTemplate resources. + * @return value or {@code null} for none + */ + public java.util.List getAgentConnectivityTemplates() { + return agentConnectivityTemplates; + } + + /** + * List of AgentConnectivityTemplate resources. + * @param agentConnectivityTemplates agentConnectivityTemplates or {@code null} for none + */ + public ListAgentConnectivityTemplatesResponse setAgentConnectivityTemplates(java.util.List agentConnectivityTemplates) { + this.agentConnectivityTemplates = agentConnectivityTemplates; + return this; + } + + /** + * If there might be more results than those appearing in this response, then `next_page_token` is + * included. To get the next set of results, call this method again using the value of + * `next_page_token` as `page_token`. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * If there might be more results than those appearing in this response, then `next_page_token` is + * included. To get the next set of results, call this method again using the value of + * `next_page_token` as `page_token`. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAgentConnectivityTemplatesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Unordered list. Unreachable resources. Populated when the request attempts to list all + * resources across all supported locations, while some locations are temporarily unavailable. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Unreachable resources. Populated when the request attempts to list all + * resources across all supported locations, while some locations are temporarily unavailable. + * @param unreachable unreachable or {@code null} for none + */ + public ListAgentConnectivityTemplatesResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListAgentConnectivityTemplatesResponse set(String fieldName, Object value) { + return (ListAgentConnectivityTemplatesResponse) super.set(fieldName, value); + } + + @Override + public ListAgentConnectivityTemplatesResponse clone() { + return (ListAgentConnectivityTemplatesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1/2.0.0/pom.xml b/clients/google-api-services-networkservices/v1/2.0.0/pom.xml index b742eb861f9..5e57f29c4a0 100644 --- a/clients/google-api-services-networkservices/v1/2.0.0/pom.xml +++ b/clients/google-api-services-networkservices/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-networkservices - v1-rev20260710-2.0.0 - Network Services API v1-rev20260710-2.0.0 + v1-rev20260724-2.0.0 + Network Services API v1-rev20260724-2.0.0 jar 2011 diff --git a/clients/google-api-services-networkservices/v1/README.md b/clients/google-api-services-networkservices/v1/README.md index 64edbfba827..0ad596e8a93 100644 --- a/clients/google-api-services-networkservices/v1/README.md +++ b/clients/google-api-services-networkservices/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-networkservices - v1-rev20260710-2.0.0 + v1-rev20260724-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-networkservices:v1-rev20260710-2.0.0' + implementation 'com.google.apis:google-api-services-networkservices:v1-rev20260724-2.0.0' } ``` diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/README.md b/clients/google-api-services-networkservices/v1beta1/2.0.0/README.md index a3d1ad6eb77..4d96e8cb026 100644 --- a/clients/google-api-services-networkservices/v1beta1/2.0.0/README.md +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-networkservices - v1beta1-rev20260710-2.0.0 + v1beta1-rev20260724-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-networkservices:v1beta1-rev20260710-2.0.0' + implementation 'com.google.apis:google-api-services-networkservices:v1beta1-rev20260724-2.0.0' } ``` diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/NetworkServices.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/NetworkServices.java index 4ae54147e10..9486dfe6041 100644 --- a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/NetworkServices.java +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/NetworkServices.java @@ -552,6 +552,870 @@ public List set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the AgentConnectivityTemplates collection. + * + *

The typical use is:

+ *
+       *   {@code NetworkServices networkservices = new NetworkServices(...);}
+       *   {@code NetworkServices.AgentConnectivityTemplates.List request = networkservices.agentConnectivityTemplates().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public AgentConnectivityTemplates agentConnectivityTemplates() { + return new AgentConnectivityTemplates(); + } + + /** + * The "agentConnectivityTemplates" collection of methods. + */ + public class AgentConnectivityTemplates { + + /** + * Creates a new AgentConnectivityTemplate in a given project and location. + * + * Create a request for the method "agentConnectivityTemplates.create". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource of the AgentConnectivityTemplate. Must be in the format + * `projects/locations`. + * @param content the {@link com.google.api.services.networkservices.v1beta1.model.AgentConnectivityTemplate} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.networkservices.v1beta1.model.AgentConnectivityTemplate content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends NetworkServicesRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/agentConnectivityTemplates"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a new AgentConnectivityTemplate in a given project and location. + * + * Create a request for the method "agentConnectivityTemplates.create". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + *

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

+ * + * @param parent Required. The parent resource of the AgentConnectivityTemplate. Must be in the format + * `projects/locations`. + * @param content the {@link com.google.api.services.networkservices.v1beta1.model.AgentConnectivityTemplate} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.networkservices.v1beta1.model.AgentConnectivityTemplate content) { + super(NetworkServices.this, "POST", REST_PATH, content, com.google.api.services.networkservices.v1beta1.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource of the AgentConnectivityTemplate. Must be in the format + * `projects/locations`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the AgentConnectivityTemplate. Must be in the format + `projects/locations`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource of the AgentConnectivityTemplate. Must be in the format + * `projects/locations`. + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Required. Short name of the AgentConnectivityTemplate resource to be created. */ + @com.google.api.client.util.Key + private java.lang.String agentConnectivityTemplateId; + + /** Required. Short name of the AgentConnectivityTemplate resource to be created. + */ + public java.lang.String getAgentConnectivityTemplateId() { + return agentConnectivityTemplateId; + } + + /** Required. Short name of the AgentConnectivityTemplate resource to be created. */ + public Create setAgentConnectivityTemplateId(java.lang.String agentConnectivityTemplateId) { + this.agentConnectivityTemplateId = agentConnectivityTemplateId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single AgentConnectivityTemplate. + * + * Create a request for the method "agentConnectivityTemplates.delete". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. A name of the AgentConnectivityTemplate to delete. Must be in the format + * `projects/locations/agentConnectivityTemplates`. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends NetworkServicesRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agentConnectivityTemplates/[^/]+$"); + + /** + * Deletes a single AgentConnectivityTemplate. + * + * Create a request for the method "agentConnectivityTemplates.delete". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. A name of the AgentConnectivityTemplate to delete. Must be in the format + * `projects/locations/agentConnectivityTemplates`. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(NetworkServices.this, "DELETE", REST_PATH, null, com.google.api.services.networkservices.v1beta1.model.Operation.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/[^/]+/agentConnectivityTemplates/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. A name of the AgentConnectivityTemplate to delete. Must be in the format + * `projects/locations/agentConnectivityTemplates`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. A name of the AgentConnectivityTemplate to delete. Must be in the format + `projects/locations/agentConnectivityTemplates`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. A name of the AgentConnectivityTemplate to delete. Must be in the format + * `projects/locations/agentConnectivityTemplates`. + */ + public Delete 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/[^/]+/agentConnectivityTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The etag of the AgentConnectivityTemplate to delete. */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The etag of the AgentConnectivityTemplate to delete. + */ + public java.lang.String getEtag() { + return etag; + } + + /** Optional. The etag of the AgentConnectivityTemplate to delete. */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single AgentConnectivityTemplate. + * + * Create a request for the method "agentConnectivityTemplates.get". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. A name of the AgentConnectivityTemplate to get. Must be in the format + * `projects/locations/agentConnectivityTemplates`. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends NetworkServicesRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agentConnectivityTemplates/[^/]+$"); + + /** + * Gets details of a single AgentConnectivityTemplate. + * + * Create a request for the method "agentConnectivityTemplates.get". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. A name of the AgentConnectivityTemplate to get. Must be in the format + * `projects/locations/agentConnectivityTemplates`. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1beta1.model.AgentConnectivityTemplate.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/[^/]+/agentConnectivityTemplates/[^/]+$"); + } + } + + @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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. A name of the AgentConnectivityTemplate to get. Must be in the format + * `projects/locations/agentConnectivityTemplates`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. A name of the AgentConnectivityTemplate to get. Must be in the format + `projects/locations/agentConnectivityTemplates`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. A name of the AgentConnectivityTemplate to get. Must be in the format + * `projects/locations/agentConnectivityTemplates`. + */ + public Get 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/[^/]+/agentConnectivityTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists AgentConnectivityTemplates in a given project and location. + * + * Create a request for the method "agentConnectivityTemplates.list". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The project and location from which the AgentConnectivityTemplates should be listed, + * specified in the format `projects/locations`. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends NetworkServicesRequest { + + private static final String REST_PATH = "v1beta1/{+parent}/agentConnectivityTemplates"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists AgentConnectivityTemplates in a given project and location. + * + * Create a request for the method "agentConnectivityTemplates.list". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

+ * + * @param parent Required. The project and location from which the AgentConnectivityTemplates should be listed, + * specified in the format `projects/locations`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1beta1.model.ListAgentConnectivityTemplatesResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The project and location from which the AgentConnectivityTemplates should be + * listed, specified in the format `projects/locations`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The project and location from which the AgentConnectivityTemplates should be listed, + specified in the format `projects/locations`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The project and location from which the AgentConnectivityTemplates should be + * listed, specified in the format `projects/locations`. + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Maximum number of AgentConnectivityTemplates to return per call. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of AgentConnectivityTemplates to return per call. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. Maximum number of AgentConnectivityTemplates to return per call. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The value returned by the last `ListAgentConnectivityTemplatesResponse` + * Indicates that this is a continuation of a prior `ListAgentConnectivityTemplates` call, + * and that the system should return the next page of data. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The value returned by the last `ListAgentConnectivityTemplatesResponse` Indicates that + this is a continuation of a prior `ListAgentConnectivityTemplates` call, and that the system should + return the next page of data. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The value returned by the last `ListAgentConnectivityTemplatesResponse` + * Indicates that this is a continuation of a prior `ListAgentConnectivityTemplates` call, + * and that the system should return the next page of data. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Optional. If true, allow partial responses for multi-regional Aggregated List requests. + * Otherwise if one of the locations is down or unreachable, the Aggregated List request + * will fail. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise + if one of the locations is down or unreachable, the Aggregated List request will fail. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * Optional. If true, allow partial responses for multi-regional Aggregated List requests. + * Otherwise if one of the locations is down or unreachable, the Aggregated List request + * will fail. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the parameters of a single AgentConnectivityTemplate. + * + * Create a request for the method "agentConnectivityTemplates.patch". + * + * This request holds the parameters needed by the networkservices server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern + * `projects/locations/agentConnectivityTemplates/`. + * @param content the {@link com.google.api.services.networkservices.v1beta1.model.AgentConnectivityTemplate} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1beta1.model.AgentConnectivityTemplate content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends NetworkServicesRequest { + + private static final String REST_PATH = "v1beta1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/agentConnectivityTemplates/[^/]+$"); + + /** + * Updates the parameters of a single AgentConnectivityTemplate. + * + * Create a request for the method "agentConnectivityTemplates.patch". + * + * This request holds the parameters needed by the the networkservices server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern + * `projects/locations/agentConnectivityTemplates/`. + * @param content the {@link com.google.api.services.networkservices.v1beta1.model.AgentConnectivityTemplate} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.networkservices.v1beta1.model.AgentConnectivityTemplate content) { + super(NetworkServices.this, "PATCH", REST_PATH, content, com.google.api.services.networkservices.v1beta1.model.Operation.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/[^/]+/agentConnectivityTemplates/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern + * `projects/locations/agentConnectivityTemplates/`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern + `projects/locations/agentConnectivityTemplates/`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern + * `projects/locations/agentConnectivityTemplates/`. + */ + public Patch 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/[^/]+/agentConnectivityTemplates/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * AgentConnectivityTemplate resource by the update. The fields specified in the + * update_mask are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. If the user does not provide a mask then all fields + * will be overwritten. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to specify the fields to be overwritten in the + AgentConnectivityTemplate resource by the update. The fields specified in the update_mask are + relative to the resource, not the full request. A field will be overwritten if it is in the mask. + If the user does not provide a mask then all fields will be overwritten. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the + * AgentConnectivityTemplate resource by the update. The fields specified in the + * update_mask are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. If the user does not provide a mask then all fields + * will be overwritten. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } /** * An accessor for creating requests from the AgentGateways collection. * diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/AgentConnectivityTemplate.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/AgentConnectivityTemplate.java new file mode 100644 index 00000000000..145c6ac2aff --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/AgentConnectivityTemplate.java @@ -0,0 +1,273 @@ +/* + * 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.networkservices.v1beta1.model; + +/** + * AgentConnectivityTemplate represents a reusable network configuration. + * + *

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 Network Services 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 AgentConnectivityTemplate extends com.google.api.client.json.GenericJson { + + /** + * Required. Immutable. The path of the access. Maps roughly to ingress/egress, though we keep + * CLIENT_TO_AGENT and AGENT_TO_ANYWHERE as carryovers from Agent Gateway's original resource + * model. The path is immutable once set. Exactly one path can be set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String accessPath; + + /** + * Optional. The types of network access provided to the gateway. Both PUBLIC and PRIVATE can be + * configured. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List accessTypes; + + /** + * Output only. The timestamp when the resource was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. A free-text description of the resource. Max length 1024 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. Configuration for egress network traffic. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EgressNetworkConfig egressNetworkConfig; + + /** + * Optional. Etag of the resource. If this is provided, it must match the server's etag. If the + * provided etag does not match the server's etag, the request will fail with a 409 ABORTED error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. Set of label tags associated with the AgentConnectivityTemplate resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern + * `projects/locations/agentConnectivityTemplates/`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The timestamp when the resource was updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. Immutable. The path of the access. Maps roughly to ingress/egress, though we keep + * CLIENT_TO_AGENT and AGENT_TO_ANYWHERE as carryovers from Agent Gateway's original resource + * model. The path is immutable once set. Exactly one path can be set. + * @return value or {@code null} for none + */ + public java.lang.String getAccessPath() { + return accessPath; + } + + /** + * Required. Immutable. The path of the access. Maps roughly to ingress/egress, though we keep + * CLIENT_TO_AGENT and AGENT_TO_ANYWHERE as carryovers from Agent Gateway's original resource + * model. The path is immutable once set. Exactly one path can be set. + * @param accessPath accessPath or {@code null} for none + */ + public AgentConnectivityTemplate setAccessPath(java.lang.String accessPath) { + this.accessPath = accessPath; + return this; + } + + /** + * Optional. The types of network access provided to the gateway. Both PUBLIC and PRIVATE can be + * configured. + * @return value or {@code null} for none + */ + public java.util.List getAccessTypes() { + return accessTypes; + } + + /** + * Optional. The types of network access provided to the gateway. Both PUBLIC and PRIVATE can be + * configured. + * @param accessTypes accessTypes or {@code null} for none + */ + public AgentConnectivityTemplate setAccessTypes(java.util.List accessTypes) { + this.accessTypes = accessTypes; + return this; + } + + /** + * Output only. The timestamp when the resource was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The timestamp when the resource was created. + * @param createTime createTime or {@code null} for none + */ + public AgentConnectivityTemplate setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. A free-text description of the resource. Max length 1024 characters. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. A free-text description of the resource. Max length 1024 characters. + * @param description description or {@code null} for none + */ + public AgentConnectivityTemplate setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. Configuration for egress network traffic. + * @return value or {@code null} for none + */ + public EgressNetworkConfig getEgressNetworkConfig() { + return egressNetworkConfig; + } + + /** + * Optional. Configuration for egress network traffic. + * @param egressNetworkConfig egressNetworkConfig or {@code null} for none + */ + public AgentConnectivityTemplate setEgressNetworkConfig(EgressNetworkConfig egressNetworkConfig) { + this.egressNetworkConfig = egressNetworkConfig; + return this; + } + + /** + * Optional. Etag of the resource. If this is provided, it must match the server's etag. If the + * provided etag does not match the server's etag, the request will fail with a 409 ABORTED error. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. Etag of the resource. If this is provided, it must match the server's etag. If the + * provided etag does not match the server's etag, the request will fail with a 409 ABORTED error. + * @param etag etag or {@code null} for none + */ + public AgentConnectivityTemplate setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Set of label tags associated with the AgentConnectivityTemplate resource. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Set of label tags associated with the AgentConnectivityTemplate resource. + * @param labels labels or {@code null} for none + */ + public AgentConnectivityTemplate setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern + * `projects/locations/agentConnectivityTemplates/`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern + * `projects/locations/agentConnectivityTemplates/`. + * @param name name or {@code null} for none + */ + public AgentConnectivityTemplate setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The timestamp when the resource was updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The timestamp when the resource was updated. + * @param updateTime updateTime or {@code null} for none + */ + public AgentConnectivityTemplate setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public AgentConnectivityTemplate set(String fieldName, Object value) { + return (AgentConnectivityTemplate) super.set(fieldName, value); + } + + @Override + public AgentConnectivityTemplate clone() { + return (AgentConnectivityTemplate) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/DnsPeeringConfig.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/DnsPeeringConfig.java new file mode 100644 index 00000000000..9625fa82d1d --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/DnsPeeringConfig.java @@ -0,0 +1,93 @@ +/* + * 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.networkservices.v1beta1.model; + +/** + * DNS Peering configuration. + * + *

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 Network Services 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 DnsPeeringConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The domain to peer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String domain; + + /** + * Optional. The target network resource name for DNS peering. Format: + * projects/{project}/global/networks/{network_id} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetNetwork; + + /** + * Optional. The domain to peer. + * @return value or {@code null} for none + */ + public java.lang.String getDomain() { + return domain; + } + + /** + * Optional. The domain to peer. + * @param domain domain or {@code null} for none + */ + public DnsPeeringConfig setDomain(java.lang.String domain) { + this.domain = domain; + return this; + } + + /** + * Optional. The target network resource name for DNS peering. Format: + * projects/{project}/global/networks/{network_id} + * @return value or {@code null} for none + */ + public java.lang.String getTargetNetwork() { + return targetNetwork; + } + + /** + * Optional. The target network resource name for DNS peering. Format: + * projects/{project}/global/networks/{network_id} + * @param targetNetwork targetNetwork or {@code null} for none + */ + public DnsPeeringConfig setTargetNetwork(java.lang.String targetNetwork) { + this.targetNetwork = targetNetwork; + return this; + } + + @Override + public DnsPeeringConfig set(String fieldName, Object value) { + return (DnsPeeringConfig) super.set(fieldName, value); + } + + @Override + public DnsPeeringConfig clone() { + return (DnsPeeringConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/EgressNetworkConfig.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/EgressNetworkConfig.java new file mode 100644 index 00000000000..e16666314ee --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/EgressNetworkConfig.java @@ -0,0 +1,168 @@ +/* + * 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.networkservices.v1beta1.model; + +/** + * Model definition for EgressNetworkConfig. + * + *

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 Network Services 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 EgressNetworkConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. DNS Peering configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DnsPeeringConfig dnsPeeringConfig; + + /** + * Optional. The network attachment resource name. Format: + * projects/{project}/regions/{region}/networkAttachments/{network_attachment_id} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String networkAttachment; + + /** + * Optional. The TLS configuration for the egress traffic. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EgressNetworkConfigTlsConfig tlsConfig; + + /** + * Optional. The trust config resource name. Format: + * projects/{project}/locations/{location}/trustConfigs/{trust_config} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String trustConfig; + + /** + * Optional. The VPC egress setting. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String vpcEgress; + + /** + * Optional. DNS Peering configuration. + * @return value or {@code null} for none + */ + public DnsPeeringConfig getDnsPeeringConfig() { + return dnsPeeringConfig; + } + + /** + * Optional. DNS Peering configuration. + * @param dnsPeeringConfig dnsPeeringConfig or {@code null} for none + */ + public EgressNetworkConfig setDnsPeeringConfig(DnsPeeringConfig dnsPeeringConfig) { + this.dnsPeeringConfig = dnsPeeringConfig; + return this; + } + + /** + * Optional. The network attachment resource name. Format: + * projects/{project}/regions/{region}/networkAttachments/{network_attachment_id} + * @return value or {@code null} for none + */ + public java.lang.String getNetworkAttachment() { + return networkAttachment; + } + + /** + * Optional. The network attachment resource name. Format: + * projects/{project}/regions/{region}/networkAttachments/{network_attachment_id} + * @param networkAttachment networkAttachment or {@code null} for none + */ + public EgressNetworkConfig setNetworkAttachment(java.lang.String networkAttachment) { + this.networkAttachment = networkAttachment; + return this; + } + + /** + * Optional. The TLS configuration for the egress traffic. + * @return value or {@code null} for none + */ + public EgressNetworkConfigTlsConfig getTlsConfig() { + return tlsConfig; + } + + /** + * Optional. The TLS configuration for the egress traffic. + * @param tlsConfig tlsConfig or {@code null} for none + */ + public EgressNetworkConfig setTlsConfig(EgressNetworkConfigTlsConfig tlsConfig) { + this.tlsConfig = tlsConfig; + return this; + } + + /** + * Optional. The trust config resource name. Format: + * projects/{project}/locations/{location}/trustConfigs/{trust_config} + * @return value or {@code null} for none + */ + public java.lang.String getTrustConfig() { + return trustConfig; + } + + /** + * Optional. The trust config resource name. Format: + * projects/{project}/locations/{location}/trustConfigs/{trust_config} + * @param trustConfig trustConfig or {@code null} for none + */ + public EgressNetworkConfig setTrustConfig(java.lang.String trustConfig) { + this.trustConfig = trustConfig; + return this; + } + + /** + * Optional. The VPC egress setting. + * @return value or {@code null} for none + */ + public java.lang.String getVpcEgress() { + return vpcEgress; + } + + /** + * Optional. The VPC egress setting. + * @param vpcEgress vpcEgress or {@code null} for none + */ + public EgressNetworkConfig setVpcEgress(java.lang.String vpcEgress) { + this.vpcEgress = vpcEgress; + return this; + } + + @Override + public EgressNetworkConfig set(String fieldName, Object value) { + return (EgressNetworkConfig) super.set(fieldName, value); + } + + @Override + public EgressNetworkConfig clone() { + return (EgressNetworkConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/EgressNetworkConfigTlsConfig.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/EgressNetworkConfigTlsConfig.java new file mode 100644 index 00000000000..2164cd6b255 --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/EgressNetworkConfigTlsConfig.java @@ -0,0 +1,93 @@ +/* + * 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.networkservices.v1beta1.model; + +/** + * Configuration for TLS connections. + * + *

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 Network Services 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 EgressNetworkConfigTlsConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The additional roots to trust. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String additionalRoots; + + /** + * Optional. The trust config resource name. Format: + * projects/{project}/locations/{location}/trustConfigs/{trust_config} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String trustConfig; + + /** + * Optional. The additional roots to trust. + * @return value or {@code null} for none + */ + public java.lang.String getAdditionalRoots() { + return additionalRoots; + } + + /** + * Optional. The additional roots to trust. + * @param additionalRoots additionalRoots or {@code null} for none + */ + public EgressNetworkConfigTlsConfig setAdditionalRoots(java.lang.String additionalRoots) { + this.additionalRoots = additionalRoots; + return this; + } + + /** + * Optional. The trust config resource name. Format: + * projects/{project}/locations/{location}/trustConfigs/{trust_config} + * @return value or {@code null} for none + */ + public java.lang.String getTrustConfig() { + return trustConfig; + } + + /** + * Optional. The trust config resource name. Format: + * projects/{project}/locations/{location}/trustConfigs/{trust_config} + * @param trustConfig trustConfig or {@code null} for none + */ + public EgressNetworkConfigTlsConfig setTrustConfig(java.lang.String trustConfig) { + this.trustConfig = trustConfig; + return this; + } + + @Override + public EgressNetworkConfigTlsConfig set(String fieldName, Object value) { + return (EgressNetworkConfigTlsConfig) super.set(fieldName, value); + } + + @Override + public EgressNetworkConfigTlsConfig clone() { + return (EgressNetworkConfigTlsConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ListAgentConnectivityTemplatesResponse.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ListAgentConnectivityTemplatesResponse.java new file mode 100644 index 00000000000..a1fcec255fb --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ListAgentConnectivityTemplatesResponse.java @@ -0,0 +1,129 @@ +/* + * 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.networkservices.v1beta1.model; + +/** + * Response returned by the ListAgentConnectivityTemplates method. + * + *

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 Network Services 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 ListAgentConnectivityTemplatesResponse extends com.google.api.client.json.GenericJson { + + /** + * List of AgentConnectivityTemplate resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List agentConnectivityTemplates; + + static { + // hack to force ProGuard to consider AgentConnectivityTemplate used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AgentConnectivityTemplate.class); + } + + /** + * If there might be more results than those appearing in this response, then `next_page_token` is + * included. To get the next set of results, call this method again using the value of + * `next_page_token` as `page_token`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Unordered list. Unreachable resources. Populated when the request attempts to list all + * resources across all supported locations, while some locations are temporarily unavailable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * List of AgentConnectivityTemplate resources. + * @return value or {@code null} for none + */ + public java.util.List getAgentConnectivityTemplates() { + return agentConnectivityTemplates; + } + + /** + * List of AgentConnectivityTemplate resources. + * @param agentConnectivityTemplates agentConnectivityTemplates or {@code null} for none + */ + public ListAgentConnectivityTemplatesResponse setAgentConnectivityTemplates(java.util.List agentConnectivityTemplates) { + this.agentConnectivityTemplates = agentConnectivityTemplates; + return this; + } + + /** + * If there might be more results than those appearing in this response, then `next_page_token` is + * included. To get the next set of results, call this method again using the value of + * `next_page_token` as `page_token`. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * If there might be more results than those appearing in this response, then `next_page_token` is + * included. To get the next set of results, call this method again using the value of + * `next_page_token` as `page_token`. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAgentConnectivityTemplatesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Unordered list. Unreachable resources. Populated when the request attempts to list all + * resources across all supported locations, while some locations are temporarily unavailable. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Unreachable resources. Populated when the request attempts to list all + * resources across all supported locations, while some locations are temporarily unavailable. + * @param unreachable unreachable or {@code null} for none + */ + public ListAgentConnectivityTemplatesResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListAgentConnectivityTemplatesResponse set(String fieldName, Object value) { + return (ListAgentConnectivityTemplatesResponse) super.set(fieldName, value); + } + + @Override + public ListAgentConnectivityTemplatesResponse clone() { + return (ListAgentConnectivityTemplatesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/pom.xml b/clients/google-api-services-networkservices/v1beta1/2.0.0/pom.xml index 574a6b09eab..75cb3895e9f 100644 --- a/clients/google-api-services-networkservices/v1beta1/2.0.0/pom.xml +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-networkservices - v1beta1-rev20260710-2.0.0 - Network Services API v1beta1-rev20260710-2.0.0 + v1beta1-rev20260724-2.0.0 + Network Services API v1beta1-rev20260724-2.0.0 jar 2011 diff --git a/clients/google-api-services-networkservices/v1beta1/README.md b/clients/google-api-services-networkservices/v1beta1/README.md index a3d1ad6eb77..4d96e8cb026 100644 --- a/clients/google-api-services-networkservices/v1beta1/README.md +++ b/clients/google-api-services-networkservices/v1beta1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-networkservices - v1beta1-rev20260710-2.0.0 + v1beta1-rev20260724-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-networkservices:v1beta1-rev20260710-2.0.0' + implementation 'com.google.apis:google-api-services-networkservices:v1beta1-rev20260724-2.0.0' } ```