diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/README.md b/clients/google-api-services-networkconnectivity/v1/2.0.0/README.md index 5507970164b..418fb7f1427 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/README.md +++ b/clients/google-api-services-networkconnectivity/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-networkconnectivity - v1-rev20260618-2.0.0 + v1-rev20260715-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-networkconnectivity:v1-rev20260618-2.0.0' + implementation 'com.google.apis:google-api-services-networkconnectivity:v1-rev20260715-2.0.0' } ``` diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/Networkconnectivity.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/Networkconnectivity.java index e6e0803b8db..515c52d0e8f 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/Networkconnectivity.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/Networkconnectivity.java @@ -11538,6 +11538,710 @@ public List set(String parameterName, Object value) { } } + } + /** + * An accessor for creating requests from the PscAuthorizationPolicies collection. + * + *

The typical use is:

+ *
+       *   {@code Networkconnectivity networkconnectivity = new Networkconnectivity(...);}
+       *   {@code Networkconnectivity.PscAuthorizationPolicies.List request = networkconnectivity.pscAuthorizationPolicies().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public PscAuthorizationPolicies pscAuthorizationPolicies() { + return new PscAuthorizationPolicies(); + } + + /** + * The "pscAuthorizationPolicies" collection of methods. + */ + public class PscAuthorizationPolicies { + + /** + * Creates a new PscAuthorizationPolicy in a given project and location. + * + * Create a request for the method "pscAuthorizationPolicies.create". + * + * This request holds the parameters needed by the networkconnectivity server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource's name of the PscAuthorizationPolicy. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.PscAuthorizationPolicy} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.networkconnectivity.v1.model.PscAuthorizationPolicy content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends NetworkconnectivityRequest { + + private static final String REST_PATH = "v1/{+parent}/pscAuthorizationPolicies"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a new PscAuthorizationPolicy in a given project and location. + * + * Create a request for the method "pscAuthorizationPolicies.create". + * + * This request holds the parameters needed by the the networkconnectivity 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's name of the PscAuthorizationPolicy. + * @param content the {@link com.google.api.services.networkconnectivity.v1.model.PscAuthorizationPolicy} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.networkconnectivity.v1.model.PscAuthorizationPolicy content) { + super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.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's name of the PscAuthorizationPolicy. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource's name of the PscAuthorizationPolicy. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource's name of the PscAuthorizationPolicy. */ + 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. Resource ID of the PscAuthorizationPolicy. */ + @com.google.api.client.util.Key + private java.lang.String pscAuthorizationPolicyId; + + /** Required. Resource ID of the PscAuthorizationPolicy. + */ + public java.lang.String getPscAuthorizationPolicyId() { + return pscAuthorizationPolicyId; + } + + /** Required. Resource ID of the PscAuthorizationPolicy. */ + public Create setPscAuthorizationPolicyId(java.lang.String pscAuthorizationPolicyId) { + this.pscAuthorizationPolicyId = pscAuthorizationPolicyId; + return this; + } + + /** Optional. An optional request ID to identify requests. */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** Optional. An optional request ID to identify requests. */ + public Create setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single PscAuthorizationPolicy. + * + * Create a request for the method "pscAuthorizationPolicies.delete". + * + * This request holds the parameters needed by the networkconnectivity server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the PscAuthorizationPolicy to delete. + * @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 NetworkconnectivityRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/pscAuthorizationPolicies/[^/]+$"); + + /** + * Deletes a single PscAuthorizationPolicy. + * + * Create a request for the method "pscAuthorizationPolicies.delete". + * + * This request holds the parameters needed by the the networkconnectivity 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. The name of the PscAuthorizationPolicy to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Networkconnectivity.this, "DELETE", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/pscAuthorizationPolicies/[^/]+$"); + } + } + + @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. The name of the PscAuthorizationPolicy to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the PscAuthorizationPolicy to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the PscAuthorizationPolicy to delete. */ + 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/[^/]+/pscAuthorizationPolicies/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The etag of the PscAuthorizationPolicy to delete. */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The etag of the PscAuthorizationPolicy to delete. + */ + public java.lang.String getEtag() { + return etag; + } + + /** Optional. The etag of the PscAuthorizationPolicy to delete. */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** Optional. An optional request ID to identify requests. */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** Optional. An optional request ID to identify requests. */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single PscAuthorizationPolicy. + * + * Create a request for the method "pscAuthorizationPolicies.get". + * + * This request holds the parameters needed by the networkconnectivity server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. Name of the PscAuthorizationPolicy to get. + * @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 NetworkconnectivityRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/pscAuthorizationPolicies/[^/]+$"); + + /** + * Gets details of a single PscAuthorizationPolicy. + * + * Create a request for the method "pscAuthorizationPolicies.get". + * + * This request holds the parameters needed by the the networkconnectivity 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. Name of the PscAuthorizationPolicy to get. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.PscAuthorizationPolicy.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/[^/]+/pscAuthorizationPolicies/[^/]+$"); + } + } + + @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. Name of the PscAuthorizationPolicy to get. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Name of the PscAuthorizationPolicy to get. + */ + public java.lang.String getName() { + return name; + } + + /** Required. Name of the PscAuthorizationPolicy to get. */ + 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/[^/]+/pscAuthorizationPolicies/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists PscAuthorizationPolicies in a given project and location. + * + * Create a request for the method "pscAuthorizationPolicies.list". + * + * This request holds the parameters needed by the networkconnectivity server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource's name. + * @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 NetworkconnectivityRequest { + + private static final String REST_PATH = "v1/{+parent}/pscAuthorizationPolicies"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists PscAuthorizationPolicies in a given project and location. + * + * Create a request for the method "pscAuthorizationPolicies.list". + * + * This request holds the parameters needed by the the networkconnectivity 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 parent resource's name. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Networkconnectivity.this, "GET", REST_PATH, null, com.google.api.services.networkconnectivity.v1.model.ListPscAuthorizationPoliciesResponse.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 parent resource's name. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource's name. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource's name. */ + 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. Filter expression to restrict the results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter expression to restrict the results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filter expression to restrict the results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Sort order of the results. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Sort order of the results. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Sort order of the results. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of PscAuthorizationPolicies to return in a single page. + * The service may return fewer than this value. If unspecified, at most 50 + * PscAuthorizationPolicies will be returned. The maximum value is 1000; values above 1000 + * will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of PscAuthorizationPolicies to return in a single page. The service + may return fewer than this value. If unspecified, at most 50 PscAuthorizationPolicies will be + returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of PscAuthorizationPolicies to return in a single page. + * The service may return fewer than this value. If unspecified, at most 50 + * PscAuthorizationPolicies will be returned. The maximum value is 1000; values above 1000 + * will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListPscAuthorizationPolicies` call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListPscAuthorizationPolicies` call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListPscAuthorizationPolicies` call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + } /** * An accessor for creating requests from the RegionalEndpoints collection. diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/GoogleRpcErrorInfo.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/GoogleRpcErrorInfo.java index 3a8b1eefb66..dd9d07e8038 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/GoogleRpcErrorInfo.java +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/GoogleRpcErrorInfo.java @@ -60,7 +60,7 @@ public final class GoogleRpcErrorInfo extends com.google.api.client.json.Generic private java.util.Map metadata; /** - * The reason of the error. This is a constant value that identifies the proximate cause of the + * The reason for the error. This is a constant value that identifies the proximate cause of the * error. Error reasons are unique within a particular domain of errors. This should be at most 63 * characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. * The value may be {@code null}. @@ -121,7 +121,7 @@ public GoogleRpcErrorInfo setMetadata(java.util.Map me } /** - * The reason of the error. This is a constant value that identifies the proximate cause of the + * The reason for the error. This is a constant value that identifies the proximate cause of the * error. Error reasons are unique within a particular domain of errors. This should be at most 63 * characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. * @return value or {@code null} for none @@ -131,7 +131,7 @@ public java.lang.String getReason() { } /** - * The reason of the error. This is a constant value that identifies the proximate cause of the + * The reason for the error. This is a constant value that identifies the proximate cause of the * error. Error reasons are unique within a particular domain of errors. This should be at most 63 * characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. * @param reason reason or {@code null} for none diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ListPscAuthorizationPoliciesResponse.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ListPscAuthorizationPoliciesResponse.java new file mode 100644 index 00000000000..8a4ab339cc0 --- /dev/null +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ListPscAuthorizationPoliciesResponse.java @@ -0,0 +1,115 @@ +/* + * 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.networkconnectivity.v1.model; + +/** + * Response for ListPscAuthorizationPolicies. + * + *

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 Connectivity 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 ListPscAuthorizationPoliciesResponse extends com.google.api.client.json.GenericJson { + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of PscAuthorizationPolicies. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List pscAuthorizationPolicies; + + /** + * Unordered list. Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListPscAuthorizationPoliciesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The list of PscAuthorizationPolicies. + * @return value or {@code null} for none + */ + public java.util.List getPscAuthorizationPolicies() { + return pscAuthorizationPolicies; + } + + /** + * The list of PscAuthorizationPolicies. + * @param pscAuthorizationPolicies pscAuthorizationPolicies or {@code null} for none + */ + public ListPscAuthorizationPoliciesResponse setPscAuthorizationPolicies(java.util.List pscAuthorizationPolicies) { + this.pscAuthorizationPolicies = pscAuthorizationPolicies; + return this; + } + + /** + * Unordered list. Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListPscAuthorizationPoliciesResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListPscAuthorizationPoliciesResponse set(String fieldName, Object value) { + return (ListPscAuthorizationPoliciesResponse) super.set(fieldName, value); + } + + @Override + public ListPscAuthorizationPoliciesResponse clone() { + return (ListPscAuthorizationPoliciesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/PscAuthorizationPolicy.java b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/PscAuthorizationPolicy.java new file mode 100644 index 00000000000..d38e7be2c87 --- /dev/null +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/PscAuthorizationPolicy.java @@ -0,0 +1,298 @@ +/* + * 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.networkconnectivity.v1.model; + +/** + * Represents a PSC Authorization Policy. + * + *

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 Connectivity 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 PscAuthorizationPolicy extends com.google.api.client.json.GenericJson { + + /** + * Required. The authorization mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String authorizationMode; + + /** + * Required. List of authorized consumer resources allowed to connect. Supported values are: 1. + * Project resource name (e.g., `projects/{project_id}`) 2. Wildcard `"*"` (grants global ingress + * authorization to the target). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List authorizedClientResources; + + /** + * Output only. The time when the PscAuthorizationPolicy was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. A description of this resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. The etag of the PscAuthorizationPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. User-defined labels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Identifier. The name of the PscAuthorizationPolicy. Format: + * projects/{project}/locations/{location}/pscAuthorizationPolicies/{psc_authorization_policy} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The full absolute URI of the targeted resource governed by this policy. For example, + * for an AgentRegistry resource, the format is: + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetResourceUri; + + /** + * Output only. The unique identifier of the PscAuthorizationPolicy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uid; + + /** + * Output only. The time when the PscAuthorizationPolicy was updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. The authorization mode. + * @return value or {@code null} for none + */ + public java.lang.String getAuthorizationMode() { + return authorizationMode; + } + + /** + * Required. The authorization mode. + * @param authorizationMode authorizationMode or {@code null} for none + */ + public PscAuthorizationPolicy setAuthorizationMode(java.lang.String authorizationMode) { + this.authorizationMode = authorizationMode; + return this; + } + + /** + * Required. List of authorized consumer resources allowed to connect. Supported values are: 1. + * Project resource name (e.g., `projects/{project_id}`) 2. Wildcard `"*"` (grants global ingress + * authorization to the target). + * @return value or {@code null} for none + */ + public java.util.List getAuthorizedClientResources() { + return authorizedClientResources; + } + + /** + * Required. List of authorized consumer resources allowed to connect. Supported values are: 1. + * Project resource name (e.g., `projects/{project_id}`) 2. Wildcard `"*"` (grants global ingress + * authorization to the target). + * @param authorizedClientResources authorizedClientResources or {@code null} for none + */ + public PscAuthorizationPolicy setAuthorizedClientResources(java.util.List authorizedClientResources) { + this.authorizedClientResources = authorizedClientResources; + return this; + } + + /** + * Output only. The time when the PscAuthorizationPolicy was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time when the PscAuthorizationPolicy was created. + * @param createTime createTime or {@code null} for none + */ + public PscAuthorizationPolicy setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. A description of this resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. A description of this resource. + * @param description description or {@code null} for none + */ + public PscAuthorizationPolicy setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. The etag of the PscAuthorizationPolicy. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. The etag of the PscAuthorizationPolicy. + * @param etag etag or {@code null} for none + */ + public PscAuthorizationPolicy setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. User-defined labels. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. User-defined labels. + * @param labels labels or {@code null} for none + */ + public PscAuthorizationPolicy setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Identifier. The name of the PscAuthorizationPolicy. Format: + * projects/{project}/locations/{location}/pscAuthorizationPolicies/{psc_authorization_policy} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The name of the PscAuthorizationPolicy. Format: + * projects/{project}/locations/{location}/pscAuthorizationPolicies/{psc_authorization_policy} + * @param name name or {@code null} for none + */ + public PscAuthorizationPolicy setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The full absolute URI of the targeted resource governed by this policy. For example, + * for an AgentRegistry resource, the format is: + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}` + * @return value or {@code null} for none + */ + public java.lang.String getTargetResourceUri() { + return targetResourceUri; + } + + /** + * Required. The full absolute URI of the targeted resource governed by this policy. For example, + * for an AgentRegistry resource, the format is: + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}` + * @param targetResourceUri targetResourceUri or {@code null} for none + */ + public PscAuthorizationPolicy setTargetResourceUri(java.lang.String targetResourceUri) { + this.targetResourceUri = targetResourceUri; + return this; + } + + /** + * Output only. The unique identifier of the PscAuthorizationPolicy. + * @return value or {@code null} for none + */ + public java.lang.String getUid() { + return uid; + } + + /** + * Output only. The unique identifier of the PscAuthorizationPolicy. + * @param uid uid or {@code null} for none + */ + public PscAuthorizationPolicy setUid(java.lang.String uid) { + this.uid = uid; + return this; + } + + /** + * Output only. The time when the PscAuthorizationPolicy was updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The time when the PscAuthorizationPolicy was updated. + * @param updateTime updateTime or {@code null} for none + */ + public PscAuthorizationPolicy setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public PscAuthorizationPolicy set(String fieldName, Object value) { + return (PscAuthorizationPolicy) super.set(fieldName, value); + } + + @Override + public PscAuthorizationPolicy clone() { + return (PscAuthorizationPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-networkconnectivity/v1/2.0.0/pom.xml b/clients/google-api-services-networkconnectivity/v1/2.0.0/pom.xml index f14543b127d..dd32e9c4373 100644 --- a/clients/google-api-services-networkconnectivity/v1/2.0.0/pom.xml +++ b/clients/google-api-services-networkconnectivity/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-networkconnectivity - v1-rev20260618-2.0.0 - Network Connectivity API v1-rev20260618-2.0.0 + v1-rev20260715-2.0.0 + Network Connectivity API v1-rev20260715-2.0.0 jar 2011 diff --git a/clients/google-api-services-networkconnectivity/v1/README.md b/clients/google-api-services-networkconnectivity/v1/README.md index 5507970164b..418fb7f1427 100644 --- a/clients/google-api-services-networkconnectivity/v1/README.md +++ b/clients/google-api-services-networkconnectivity/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-networkconnectivity - v1-rev20260618-2.0.0 + v1-rev20260715-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-networkconnectivity:v1-rev20260618-2.0.0' + implementation 'com.google.apis:google-api-services-networkconnectivity:v1-rev20260715-2.0.0' } ```