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 6c628eacf8c..4717edc579d 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-rev20261027-2.9.2 + v1beta1-rev20261101-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-networkservices:v1beta1-rev20261027-2.9.2' + implementation 'com.google.apis:google-api-services-networkservices:v1beta1-rev20261101-2.9.2' } ``` 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 f7e3c61599f..e629e5bc4a6 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 @@ -5087,6 +5087,881 @@ public Patch set(String parameterName, Object value) { } } + } + /** + * An accessor for creating requests from the ExpressLinks collection. + * + *

The typical use is:

+ *
+       *   {@code NetworkServices networkservices = new NetworkServices(...);}
+       *   {@code NetworkServices.ExpressLinks.List request = networkservices.expressLinks().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public ExpressLinks expressLinks() { + return new ExpressLinks(); + } + + /** + * The "expressLinks" collection of methods. + */ + public class ExpressLinks { + + /** + * Creates a new ExpressLink in a given project and location. + * + * Create a request for the method "expressLinks.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 ExpressLink. Must be in the format `projects/locations`. + * @param content the {@link com.google.api.services.networkservices.v1beta1.model.ExpressLink} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.networkservices.v1beta1.model.ExpressLink 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}/expressLinks"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a new ExpressLink in a given project and location. + * + * Create a request for the method "expressLinks.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 ExpressLink. Must be in the format `projects/locations`. + * @param content the {@link com.google.api.services.networkservices.v1beta1.model.ExpressLink} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.networkservices.v1beta1.model.ExpressLink 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 ExpressLink. Must be in the format + * `projects/locations`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the ExpressLink. Must be in the format `projects/locations`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource of the ExpressLink. 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 ExpressLink resource to be created. */ + @com.google.api.client.util.Key + private java.lang.String expressLinkId; + + /** Required. Short name of the ExpressLink resource to be created. + */ + public java.lang.String getExpressLinkId() { + return expressLinkId; + } + + /** Required. Short name of the ExpressLink resource to be created. */ + public Create setExpressLinkId(java.lang.String expressLinkId) { + this.expressLinkId = expressLinkId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single ExpressLink. + * + * Create a request for the method "expressLinks.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 ExpressLink to delete. Must be in the format + * `projects/locations/expressLinks`. + * @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/[^/]+/expressLinks/[^/]+$"); + + /** + * Deletes a single ExpressLink. + * + * Create a request for the method "expressLinks.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 ExpressLink to delete. Must be in the format + * `projects/locations/expressLinks`. + * @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/[^/]+/expressLinks/[^/]+$"); + } + } + + @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 ExpressLink to delete. Must be in the format + * `projects/locations/expressLinks`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. A name of the ExpressLink to delete. Must be in the format + `projects/locations/expressLinks`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. A name of the ExpressLink to delete. Must be in the format + * `projects/locations/expressLinks`. + */ + 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/[^/]+/expressLinks/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The etag of the ExpressLink to delete. */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The etag of the ExpressLink to delete. + */ + public java.lang.String getEtag() { + return etag; + } + + /** Optional. The etag of the ExpressLink 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 ExpressLink. + * + * Create a request for the method "expressLinks.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 ExpressLink to get. Must be in the format `projects/locations/expressLinks`. + * @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/[^/]+/expressLinks/[^/]+$"); + + /** + * Gets details of a single ExpressLink. + * + * Create a request for the method "expressLinks.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 ExpressLink to get. Must be in the format `projects/locations/expressLinks`. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1beta1.model.ExpressLink.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/[^/]+/expressLinks/[^/]+$"); + } + } + + @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 ExpressLink to get. Must be in the format + * `projects/locations/expressLinks`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. A name of the ExpressLink to get. Must be in the format + `projects/locations/expressLinks`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. A name of the ExpressLink to get. Must be in the format + * `projects/locations/expressLinks`. + */ + 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/[^/]+/expressLinks/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Determines the information level of the ExpressLink resource returned in the + * API response. + */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** Optional. Determines the information level of the ExpressLink resource returned in the API + response. + */ + public java.lang.String getView() { + return view; + } + + /** + * Optional. Determines the information level of the ExpressLink resource returned in the + * API response. + */ + public Get setView(java.lang.String view) { + this.view = view; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists ExpressLinks in a given project and location. + * + * Create a request for the method "expressLinks.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 ExpressLinks 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}/expressLinks"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists ExpressLinks in a given project and location. + * + * Create a request for the method "expressLinks.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 ExpressLinks 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.ListExpressLinksResponse.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 ExpressLinks 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 ExpressLinks should be listed, specified in the + format `projects/locations`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The project and location from which the ExpressLinks 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; + } + + /** Maximum number of ExpressLinks to return per call. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Maximum number of ExpressLinks to return per call. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Maximum number of ExpressLinks to return per call. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * The value returned by the last `ListExpressLinksResponse` Indicates that this is a + * continuation of a prior `ListExpressLinks` call, and that the system should return the + * next page of data. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The value returned by the last `ListExpressLinksResponse` Indicates that this is a continuation of + a prior `ListExpressLinks` call, and that the system should return the next page of data. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * The value returned by the last `ListExpressLinksResponse` Indicates that this is a + * continuation of a prior `ListExpressLinks` 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. Determines the information level of the ExpressLink resources returned in the + * API response. + */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** Optional. Determines the information level of the ExpressLink resources returned in the API + response. + */ + public java.lang.String getView() { + return view; + } + + /** + * Optional. Determines the information level of the ExpressLink resources returned in the + * API response. + */ + public List setView(java.lang.String view) { + this.view = view; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the parameters of a single ExpressLink. + * + * Create a request for the method "expressLinks.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 ExpressLink resource. It matches pattern `projects/locations/expressLinks/`. + * @param content the {@link com.google.api.services.networkservices.v1beta1.model.ExpressLink} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1beta1.model.ExpressLink 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/[^/]+/expressLinks/[^/]+$"); + + /** + * Updates the parameters of a single ExpressLink. + * + * Create a request for the method "expressLinks.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 ExpressLink resource. It matches pattern `projects/locations/expressLinks/`. + * @param content the {@link com.google.api.services.networkservices.v1beta1.model.ExpressLink} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.networkservices.v1beta1.model.ExpressLink 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/[^/]+/expressLinks/[^/]+$"); + } + } + + @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 ExpressLink resource. It matches pattern + * `projects/locations/expressLinks/`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Name of the ExpressLink resource. It matches pattern + `projects/locations/expressLinks/`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Name of the ExpressLink resource. It matches pattern + * `projects/locations/expressLinks/`. + */ + 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/[^/]+/expressLinks/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to specify the fields to be overwritten in the ExpressLink + * 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 ExpressLink 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 ExpressLink + * 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 ExtensionBindings collection. diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLink.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLink.java new file mode 100644 index 00000000000..f17b953ebc6 --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLink.java @@ -0,0 +1,403 @@ +/* + * 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; + +/** + * ExpressLink provides automated, zero-friction service-to-service secure connectivity across + * network boundaries without manual infrastructure configuration toil. + * + *

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 ExpressLink extends com.google.api.client.json.GenericJson { + + /** + * Output only. Cloud Run security information if the ExpressLink destination is a Cloud Run + * service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExpressLinkCloudRunSecurityInfo cloudRunSecurityInfo; + + /** + * Output only. Cloud Run source observability details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExpressLinkCloudRunSourceInfo cloudRunSourceInfo; + + /** + * Output only. The connection status and negotiated parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List connectionStatus; + + /** + * 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. The destination service(s) for this binding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExpressLinkDestination destination; + + /** + * 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; + + /** + * Output only. Forwarding Rule information if the ExpressLink destination is a Forwarding Rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExpressLinkForwardingRuleInfo forwardingRuleInfo; + + /** + * Optional. Set of label tags associated with the ExpressLink resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Optional. A list of matches define conditions used to match requests to destination services. + * Each match is independent with the OR semantic, i.e. we consider it matched if ANY one of the + * matches is satisfied. If an ExpressLink has only one Cloud Run service, Match is optional. If + * not specified, only the default hostname `-..run.app` can be used. If an ExpressLink has + * multiple Cloud Run services, at least one Match with valid hostname is required. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List matches; + + /** + * Identifier. Name of the ExpressLink resource. It matches pattern + * `projects/locations/expressLinks/`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Private Service Connect (PSC) endpoint information if the ExpressLink destination + * is a PSC service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExpressLinkPscEndpointInfo pscEndpointInfo; + + /** + * Optional. The source service(s) for this binding. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExpressLinkSource source; + + /** + * Output only. The timestamp when the resource was updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Cloud Run security information if the ExpressLink destination is a Cloud Run + * service. + * @return value or {@code null} for none + */ + public ExpressLinkCloudRunSecurityInfo getCloudRunSecurityInfo() { + return cloudRunSecurityInfo; + } + + /** + * Output only. Cloud Run security information if the ExpressLink destination is a Cloud Run + * service. + * @param cloudRunSecurityInfo cloudRunSecurityInfo or {@code null} for none + */ + public ExpressLink setCloudRunSecurityInfo(ExpressLinkCloudRunSecurityInfo cloudRunSecurityInfo) { + this.cloudRunSecurityInfo = cloudRunSecurityInfo; + return this; + } + + /** + * Output only. Cloud Run source observability details. + * @return value or {@code null} for none + */ + public ExpressLinkCloudRunSourceInfo getCloudRunSourceInfo() { + return cloudRunSourceInfo; + } + + /** + * Output only. Cloud Run source observability details. + * @param cloudRunSourceInfo cloudRunSourceInfo or {@code null} for none + */ + public ExpressLink setCloudRunSourceInfo(ExpressLinkCloudRunSourceInfo cloudRunSourceInfo) { + this.cloudRunSourceInfo = cloudRunSourceInfo; + return this; + } + + /** + * Output only. The connection status and negotiated parameters. + * @return value or {@code null} for none + */ + public java.util.List getConnectionStatus() { + return connectionStatus; + } + + /** + * Output only. The connection status and negotiated parameters. + * @param connectionStatus connectionStatus or {@code null} for none + */ + public ExpressLink setConnectionStatus(java.util.List connectionStatus) { + this.connectionStatus = connectionStatus; + 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 ExpressLink 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 ExpressLink setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The destination service(s) for this binding. + * @return value or {@code null} for none + */ + public ExpressLinkDestination getDestination() { + return destination; + } + + /** + * Optional. The destination service(s) for this binding. + * @param destination destination or {@code null} for none + */ + public ExpressLink setDestination(ExpressLinkDestination destination) { + this.destination = destination; + 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 ExpressLink setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. Forwarding Rule information if the ExpressLink destination is a Forwarding Rule. + * @return value or {@code null} for none + */ + public ExpressLinkForwardingRuleInfo getForwardingRuleInfo() { + return forwardingRuleInfo; + } + + /** + * Output only. Forwarding Rule information if the ExpressLink destination is a Forwarding Rule. + * @param forwardingRuleInfo forwardingRuleInfo or {@code null} for none + */ + public ExpressLink setForwardingRuleInfo(ExpressLinkForwardingRuleInfo forwardingRuleInfo) { + this.forwardingRuleInfo = forwardingRuleInfo; + return this; + } + + /** + * Optional. Set of label tags associated with the ExpressLink resource. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Set of label tags associated with the ExpressLink resource. + * @param labels labels or {@code null} for none + */ + public ExpressLink setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Optional. A list of matches define conditions used to match requests to destination services. + * Each match is independent with the OR semantic, i.e. we consider it matched if ANY one of the + * matches is satisfied. If an ExpressLink has only one Cloud Run service, Match is optional. If + * not specified, only the default hostname `-..run.app` can be used. If an ExpressLink has + * multiple Cloud Run services, at least one Match with valid hostname is required. + * @return value or {@code null} for none + */ + public java.util.List getMatches() { + return matches; + } + + /** + * Optional. A list of matches define conditions used to match requests to destination services. + * Each match is independent with the OR semantic, i.e. we consider it matched if ANY one of the + * matches is satisfied. If an ExpressLink has only one Cloud Run service, Match is optional. If + * not specified, only the default hostname `-..run.app` can be used. If an ExpressLink has + * multiple Cloud Run services, at least one Match with valid hostname is required. + * @param matches matches or {@code null} for none + */ + public ExpressLink setMatches(java.util.List matches) { + this.matches = matches; + return this; + } + + /** + * Identifier. Name of the ExpressLink resource. It matches pattern + * `projects/locations/expressLinks/`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Name of the ExpressLink resource. It matches pattern + * `projects/locations/expressLinks/`. + * @param name name or {@code null} for none + */ + public ExpressLink setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Private Service Connect (PSC) endpoint information if the ExpressLink destination + * is a PSC service. + * @return value or {@code null} for none + */ + public ExpressLinkPscEndpointInfo getPscEndpointInfo() { + return pscEndpointInfo; + } + + /** + * Output only. Private Service Connect (PSC) endpoint information if the ExpressLink destination + * is a PSC service. + * @param pscEndpointInfo pscEndpointInfo or {@code null} for none + */ + public ExpressLink setPscEndpointInfo(ExpressLinkPscEndpointInfo pscEndpointInfo) { + this.pscEndpointInfo = pscEndpointInfo; + return this; + } + + /** + * Optional. The source service(s) for this binding. + * @return value or {@code null} for none + */ + public ExpressLinkSource getSource() { + return source; + } + + /** + * Optional. The source service(s) for this binding. + * @param source source or {@code null} for none + */ + public ExpressLink setSource(ExpressLinkSource source) { + this.source = source; + 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 ExpressLink setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public ExpressLink set(String fieldName, Object value) { + return (ExpressLink) super.set(fieldName, value); + } + + @Override + public ExpressLink clone() { + return (ExpressLink) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkAuthenticationMethod.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkAuthenticationMethod.java new file mode 100644 index 00000000000..6a0b4377910 --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkAuthenticationMethod.java @@ -0,0 +1,90 @@ +/* + * 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; + +/** + * AuthenticationMethod specifies identity type and credential type pair. + * + *

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 ExpressLinkAuthenticationMethod extends com.google.api.client.json.GenericJson { + + /** + * Output only. Credential type supported or used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String credentialType; + + /** + * Output only. Identity type supported or used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String identityType; + + /** + * Output only. Credential type supported or used. + * @return value or {@code null} for none + */ + public java.lang.String getCredentialType() { + return credentialType; + } + + /** + * Output only. Credential type supported or used. + * @param credentialType credentialType or {@code null} for none + */ + public ExpressLinkAuthenticationMethod setCredentialType(java.lang.String credentialType) { + this.credentialType = credentialType; + return this; + } + + /** + * Output only. Identity type supported or used. + * @return value or {@code null} for none + */ + public java.lang.String getIdentityType() { + return identityType; + } + + /** + * Output only. Identity type supported or used. + * @param identityType identityType or {@code null} for none + */ + public ExpressLinkAuthenticationMethod setIdentityType(java.lang.String identityType) { + this.identityType = identityType; + return this; + } + + @Override + public ExpressLinkAuthenticationMethod set(String fieldName, Object value) { + return (ExpressLinkAuthenticationMethod) super.set(fieldName, value); + } + + @Override + public ExpressLinkAuthenticationMethod clone() { + return (ExpressLinkAuthenticationMethod) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkCloudRunSecurityInfo.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkCloudRunSecurityInfo.java new file mode 100644 index 00000000000..82450e7eac2 --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkCloudRunSecurityInfo.java @@ -0,0 +1,99 @@ +/* + * 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; + +/** + * CloudRunSecurityInfo provides security details for Cloud Run to Cloud Run ExpressLinks. + * + *

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 ExpressLinkCloudRunSecurityInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. Identifies the level of mTLS transport security in use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mtlsTier; + + /** + * Output only. The inbound server authentication methods required by the destination Cloud Run + * service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List serverAuthenticationMethods; + + static { + // hack to force ProGuard to consider ExpressLinkAuthenticationMethod 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(ExpressLinkAuthenticationMethod.class); + } + + /** + * Output only. Identifies the level of mTLS transport security in use. + * @return value or {@code null} for none + */ + public java.lang.String getMtlsTier() { + return mtlsTier; + } + + /** + * Output only. Identifies the level of mTLS transport security in use. + * @param mtlsTier mtlsTier or {@code null} for none + */ + public ExpressLinkCloudRunSecurityInfo setMtlsTier(java.lang.String mtlsTier) { + this.mtlsTier = mtlsTier; + return this; + } + + /** + * Output only. The inbound server authentication methods required by the destination Cloud Run + * service. + * @return value or {@code null} for none + */ + public java.util.List getServerAuthenticationMethods() { + return serverAuthenticationMethods; + } + + /** + * Output only. The inbound server authentication methods required by the destination Cloud Run + * service. + * @param serverAuthenticationMethods serverAuthenticationMethods or {@code null} for none + */ + public ExpressLinkCloudRunSecurityInfo setServerAuthenticationMethods(java.util.List serverAuthenticationMethods) { + this.serverAuthenticationMethods = serverAuthenticationMethods; + return this; + } + + @Override + public ExpressLinkCloudRunSecurityInfo set(String fieldName, Object value) { + return (ExpressLinkCloudRunSecurityInfo) super.set(fieldName, value); + } + + @Override + public ExpressLinkCloudRunSecurityInfo clone() { + return (ExpressLinkCloudRunSecurityInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkCloudRunSourceInfo.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkCloudRunSourceInfo.java new file mode 100644 index 00000000000..7a66bc5c40a --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkCloudRunSourceInfo.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.networkservices.v1beta1.model; + +/** + * CloudRunSourceInfo provides observability details for Cloud Run source services. + * + *

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 ExpressLinkCloudRunSourceInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. Observability details for Cloud Run source workloads. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List workloads; + + /** + * Output only. Observability details for Cloud Run source workloads. + * @return value or {@code null} for none + */ + public java.util.List getWorkloads() { + return workloads; + } + + /** + * Output only. Observability details for Cloud Run source workloads. + * @param workloads workloads or {@code null} for none + */ + public ExpressLinkCloudRunSourceInfo setWorkloads(java.util.List workloads) { + this.workloads = workloads; + return this; + } + + @Override + public ExpressLinkCloudRunSourceInfo set(String fieldName, Object value) { + return (ExpressLinkCloudRunSourceInfo) super.set(fieldName, value); + } + + @Override + public ExpressLinkCloudRunSourceInfo clone() { + return (ExpressLinkCloudRunSourceInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkCloudRunSourceInfoWorkloadInfo.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkCloudRunSourceInfoWorkloadInfo.java new file mode 100644 index 00000000000..87a838501d6 --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkCloudRunSourceInfoWorkloadInfo.java @@ -0,0 +1,120 @@ +/* + * 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; + +/** + * WorkloadInfo provides observability details for a single Cloud Run source workload. + * + *

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 ExpressLinkCloudRunSourceInfoWorkloadInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The outbound authentication methods the workload is capable of. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List clientAuthenticationMethods; + + static { + // hack to force ProGuard to consider ExpressLinkAuthenticationMethod 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(ExpressLinkAuthenticationMethod.class); + } + + /** + * Output only. Consumer VPC network resource name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String vpcNetwork; + + /** + * Output only. The URI of the source workload (e.g. Cloud Run revision). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String workloadUri; + + /** + * Output only. The outbound authentication methods the workload is capable of. + * @return value or {@code null} for none + */ + public java.util.List getClientAuthenticationMethods() { + return clientAuthenticationMethods; + } + + /** + * Output only. The outbound authentication methods the workload is capable of. + * @param clientAuthenticationMethods clientAuthenticationMethods or {@code null} for none + */ + public ExpressLinkCloudRunSourceInfoWorkloadInfo setClientAuthenticationMethods(java.util.List clientAuthenticationMethods) { + this.clientAuthenticationMethods = clientAuthenticationMethods; + return this; + } + + /** + * Output only. Consumer VPC network resource name. + * @return value or {@code null} for none + */ + public java.lang.String getVpcNetwork() { + return vpcNetwork; + } + + /** + * Output only. Consumer VPC network resource name. + * @param vpcNetwork vpcNetwork or {@code null} for none + */ + public ExpressLinkCloudRunSourceInfoWorkloadInfo setVpcNetwork(java.lang.String vpcNetwork) { + this.vpcNetwork = vpcNetwork; + return this; + } + + /** + * Output only. The URI of the source workload (e.g. Cloud Run revision). + * @return value or {@code null} for none + */ + public java.lang.String getWorkloadUri() { + return workloadUri; + } + + /** + * Output only. The URI of the source workload (e.g. Cloud Run revision). + * @param workloadUri workloadUri or {@code null} for none + */ + public ExpressLinkCloudRunSourceInfoWorkloadInfo setWorkloadUri(java.lang.String workloadUri) { + this.workloadUri = workloadUri; + return this; + } + + @Override + public ExpressLinkCloudRunSourceInfoWorkloadInfo set(String fieldName, Object value) { + return (ExpressLinkCloudRunSourceInfoWorkloadInfo) super.set(fieldName, value); + } + + @Override + public ExpressLinkCloudRunSourceInfoWorkloadInfo clone() { + return (ExpressLinkCloudRunSourceInfoWorkloadInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkConnectionStatus.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkConnectionStatus.java new file mode 100644 index 00000000000..36c820a6f72 --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkConnectionStatus.java @@ -0,0 +1,187 @@ +/* + * 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; + +/** + * ConnectionStatus details the resolved state, error status, and negotiated configuration of the + * ExpressLink resource. + * + *

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 ExpressLinkConnectionStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. The negotiated credential type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String credentialType; + + /** + * Output only. Code representing the type of error encountered. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String error; + + /** + * Output only. Detailed error message explaining the binding failure. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String errorMessage; + + /** + * Output only. The list of hostnames that will route to this destination. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List hostnames; + + /** + * Output only. The route type of the connection (e.g. HTTP). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String routeType; + + /** + * Output only. The URI of the source workload this status applies to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String workloadUri; + + /** + * Output only. The negotiated credential type. + * @return value or {@code null} for none + */ + public java.lang.String getCredentialType() { + return credentialType; + } + + /** + * Output only. The negotiated credential type. + * @param credentialType credentialType or {@code null} for none + */ + public ExpressLinkConnectionStatus setCredentialType(java.lang.String credentialType) { + this.credentialType = credentialType; + return this; + } + + /** + * Output only. Code representing the type of error encountered. + * @return value or {@code null} for none + */ + public java.lang.String getError() { + return error; + } + + /** + * Output only. Code representing the type of error encountered. + * @param error error or {@code null} for none + */ + public ExpressLinkConnectionStatus setError(java.lang.String error) { + this.error = error; + return this; + } + + /** + * Output only. Detailed error message explaining the binding failure. + * @return value or {@code null} for none + */ + public java.lang.String getErrorMessage() { + return errorMessage; + } + + /** + * Output only. Detailed error message explaining the binding failure. + * @param errorMessage errorMessage or {@code null} for none + */ + public ExpressLinkConnectionStatus setErrorMessage(java.lang.String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * Output only. The list of hostnames that will route to this destination. + * @return value or {@code null} for none + */ + public java.util.List getHostnames() { + return hostnames; + } + + /** + * Output only. The list of hostnames that will route to this destination. + * @param hostnames hostnames or {@code null} for none + */ + public ExpressLinkConnectionStatus setHostnames(java.util.List hostnames) { + this.hostnames = hostnames; + return this; + } + + /** + * Output only. The route type of the connection (e.g. HTTP). + * @return value or {@code null} for none + */ + public java.lang.String getRouteType() { + return routeType; + } + + /** + * Output only. The route type of the connection (e.g. HTTP). + * @param routeType routeType or {@code null} for none + */ + public ExpressLinkConnectionStatus setRouteType(java.lang.String routeType) { + this.routeType = routeType; + return this; + } + + /** + * Output only. The URI of the source workload this status applies to. + * @return value or {@code null} for none + */ + public java.lang.String getWorkloadUri() { + return workloadUri; + } + + /** + * Output only. The URI of the source workload this status applies to. + * @param workloadUri workloadUri or {@code null} for none + */ + public ExpressLinkConnectionStatus setWorkloadUri(java.lang.String workloadUri) { + this.workloadUri = workloadUri; + return this; + } + + @Override + public ExpressLinkConnectionStatus set(String fieldName, Object value) { + return (ExpressLinkConnectionStatus) super.set(fieldName, value); + } + + @Override + public ExpressLinkConnectionStatus clone() { + return (ExpressLinkConnectionStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkConnectionStatusHostnameInfo.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkConnectionStatusHostnameInfo.java new file mode 100644 index 00000000000..69d7d5b004c --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkConnectionStatusHostnameInfo.java @@ -0,0 +1,66 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.networkservices.v1beta1.model; + +/** + * HostnameInfo provides details about a hostname that routes to this destination. + * + *

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 ExpressLinkConnectionStatusHostnameInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The hostname string. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String hostname; + + /** + * Output only. The hostname string. + * @return value or {@code null} for none + */ + public java.lang.String getHostname() { + return hostname; + } + + /** + * Output only. The hostname string. + * @param hostname hostname or {@code null} for none + */ + public ExpressLinkConnectionStatusHostnameInfo setHostname(java.lang.String hostname) { + this.hostname = hostname; + return this; + } + + @Override + public ExpressLinkConnectionStatusHostnameInfo set(String fieldName, Object value) { + return (ExpressLinkConnectionStatusHostnameInfo) super.set(fieldName, value); + } + + @Override + public ExpressLinkConnectionStatusHostnameInfo clone() { + return (ExpressLinkConnectionStatusHostnameInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkDestination.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkDestination.java new file mode 100644 index 00000000000..51de36900a1 --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkDestination.java @@ -0,0 +1,78 @@ +/* + * 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; + +/** + * The destination of the traffic. This defines the service that the source wants to connect to. + * + *

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 ExpressLinkDestination extends com.google.api.client.json.GenericJson { + + /** + * Optional. The service URIs to which the ExpressLink resource is bound. Can be one of the + * following (all the service URIs should have the same type): + * `//compute.googleapis.com/projects/regions/serviceAttachments/`; + * `//compute.googleapis.com/projects/regions/forwardingRules/`; + * `//run.googleapis.com/projects/locations/services/`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List services; + + /** + * Optional. The service URIs to which the ExpressLink resource is bound. Can be one of the + * following (all the service URIs should have the same type): + * `//compute.googleapis.com/projects/regions/serviceAttachments/`; + * `//compute.googleapis.com/projects/regions/forwardingRules/`; + * `//run.googleapis.com/projects/locations/services/`. + * @return value or {@code null} for none + */ + public java.util.List getServices() { + return services; + } + + /** + * Optional. The service URIs to which the ExpressLink resource is bound. Can be one of the + * following (all the service URIs should have the same type): + * `//compute.googleapis.com/projects/regions/serviceAttachments/`; + * `//compute.googleapis.com/projects/regions/forwardingRules/`; + * `//run.googleapis.com/projects/locations/services/`. + * @param services services or {@code null} for none + */ + public ExpressLinkDestination setServices(java.util.List services) { + this.services = services; + return this; + } + + @Override + public ExpressLinkDestination set(String fieldName, Object value) { + return (ExpressLinkDestination) super.set(fieldName, value); + } + + @Override + public ExpressLinkDestination clone() { + return (ExpressLinkDestination) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkForwardingRuleInfo.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkForwardingRuleInfo.java new file mode 100644 index 00000000000..b0d69e921f1 --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkForwardingRuleInfo.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * ForwardingRuleInfo provides operational details when the ExpressLink destination is a Forwarding + * Rule. + * + *

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 ExpressLinkForwardingRuleInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The IP address of the forwarding rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ipAddress; + + /** + * Output only. The port or port range of the forwarding rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String port; + + /** + * Output only. The IP address of the forwarding rule. + * @return value or {@code null} for none + */ + public java.lang.String getIpAddress() { + return ipAddress; + } + + /** + * Output only. The IP address of the forwarding rule. + * @param ipAddress ipAddress or {@code null} for none + */ + public ExpressLinkForwardingRuleInfo setIpAddress(java.lang.String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * Output only. The port or port range of the forwarding rule. + * @return value or {@code null} for none + */ + public java.lang.String getPort() { + return port; + } + + /** + * Output only. The port or port range of the forwarding rule. + * @param port port or {@code null} for none + */ + public ExpressLinkForwardingRuleInfo setPort(java.lang.String port) { + this.port = port; + return this; + } + + @Override + public ExpressLinkForwardingRuleInfo set(String fieldName, Object value) { + return (ExpressLinkForwardingRuleInfo) super.set(fieldName, value); + } + + @Override + public ExpressLinkForwardingRuleInfo clone() { + return (ExpressLinkForwardingRuleInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkMatch.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkMatch.java new file mode 100644 index 00000000000..793206ecf84 --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkMatch.java @@ -0,0 +1,81 @@ +/* + * 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; + +/** + * Match defines the predicate used to match requests to destination services. + * + *

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 ExpressLinkMatch extends com.google.api.client.json.GenericJson { + + /** + * Optional. Specifies the hostname to match against the HTTP request host header. Hostname is the + * fully qualified domain name of a network host, as defined by RFC1123 with the exception that: - + * IPs are not allowed. - Wildcard labels (`*.`) are not allowed. Hostname must be "precise" which + * is a domain name without the terminating dot of a network host (e.g. `foo.example.com`). Note + * that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or + * '-', and must start and end with an alphanumeric character. No other punctuation is allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String hostname; + + /** + * Optional. Specifies the hostname to match against the HTTP request host header. Hostname is the + * fully qualified domain name of a network host, as defined by RFC1123 with the exception that: - + * IPs are not allowed. - Wildcard labels (`*.`) are not allowed. Hostname must be "precise" which + * is a domain name without the terminating dot of a network host (e.g. `foo.example.com`). Note + * that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or + * '-', and must start and end with an alphanumeric character. No other punctuation is allowed. + * @return value or {@code null} for none + */ + public java.lang.String getHostname() { + return hostname; + } + + /** + * Optional. Specifies the hostname to match against the HTTP request host header. Hostname is the + * fully qualified domain name of a network host, as defined by RFC1123 with the exception that: - + * IPs are not allowed. - Wildcard labels (`*.`) are not allowed. Hostname must be "precise" which + * is a domain name without the terminating dot of a network host (e.g. `foo.example.com`). Note + * that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or + * '-', and must start and end with an alphanumeric character. No other punctuation is allowed. + * @param hostname hostname or {@code null} for none + */ + public ExpressLinkMatch setHostname(java.lang.String hostname) { + this.hostname = hostname; + return this; + } + + @Override + public ExpressLinkMatch set(String fieldName, Object value) { + return (ExpressLinkMatch) super.set(fieldName, value); + } + + @Override + public ExpressLinkMatch clone() { + return (ExpressLinkMatch) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkPscEndpointInfo.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkPscEndpointInfo.java new file mode 100644 index 00000000000..a2f07187ed6 --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkPscEndpointInfo.java @@ -0,0 +1,67 @@ +/* + * 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; + +/** + * Private Service Connect (PSC) endpoint information populated in the Get API responses if the + * ExpressLink resource is bound to a PSC service. + * + *

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 ExpressLinkPscEndpointInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. A list of PSC endpoints mapped to the PSC producer service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List pscEndpoints; + + /** + * Output only. A list of PSC endpoints mapped to the PSC producer service. + * @return value or {@code null} for none + */ + public java.util.List getPscEndpoints() { + return pscEndpoints; + } + + /** + * Output only. A list of PSC endpoints mapped to the PSC producer service. + * @param pscEndpoints pscEndpoints or {@code null} for none + */ + public ExpressLinkPscEndpointInfo setPscEndpoints(java.util.List pscEndpoints) { + this.pscEndpoints = pscEndpoints; + return this; + } + + @Override + public ExpressLinkPscEndpointInfo set(String fieldName, Object value) { + return (ExpressLinkPscEndpointInfo) super.set(fieldName, value); + } + + @Override + public ExpressLinkPscEndpointInfo clone() { + return (ExpressLinkPscEndpointInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkPscEndpointInfoPscEndpoint.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkPscEndpointInfoPscEndpoint.java new file mode 100644 index 00000000000..2b2dad33940 --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkPscEndpointInfoPscEndpoint.java @@ -0,0 +1,144 @@ +/* + * 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; + +/** + * Private Service Connect (PSC) endpoint details. + * + *

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 ExpressLinkPscEndpointInfoPscEndpoint extends com.google.api.client.json.GenericJson { + + /** + * Output only. Whether the PSC endpoint is accessible from all regions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowGlobalAccess; + + /** + * Output only. The ForwardingRule resource name of the PSC endpoint. Should match the pattern: + * `projects/regions/forwardingRules/`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String forwardingRule; + + /** + * Output only. The IP address of the PSC endpoint. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pscEndpointAddress; + + /** + * Output only. The resource name of the consumer VPC network. Should match the pattern: + * `projects/global/networks/`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String vpcNetwork; + + /** + * Output only. Whether the PSC endpoint is accessible from all regions. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllowGlobalAccess() { + return allowGlobalAccess; + } + + /** + * Output only. Whether the PSC endpoint is accessible from all regions. + * @param allowGlobalAccess allowGlobalAccess or {@code null} for none + */ + public ExpressLinkPscEndpointInfoPscEndpoint setAllowGlobalAccess(java.lang.Boolean allowGlobalAccess) { + this.allowGlobalAccess = allowGlobalAccess; + return this; + } + + /** + * Output only. The ForwardingRule resource name of the PSC endpoint. Should match the pattern: + * `projects/regions/forwardingRules/`. + * @return value or {@code null} for none + */ + public java.lang.String getForwardingRule() { + return forwardingRule; + } + + /** + * Output only. The ForwardingRule resource name of the PSC endpoint. Should match the pattern: + * `projects/regions/forwardingRules/`. + * @param forwardingRule forwardingRule or {@code null} for none + */ + public ExpressLinkPscEndpointInfoPscEndpoint setForwardingRule(java.lang.String forwardingRule) { + this.forwardingRule = forwardingRule; + return this; + } + + /** + * Output only. The IP address of the PSC endpoint. + * @return value or {@code null} for none + */ + public java.lang.String getPscEndpointAddress() { + return pscEndpointAddress; + } + + /** + * Output only. The IP address of the PSC endpoint. + * @param pscEndpointAddress pscEndpointAddress or {@code null} for none + */ + public ExpressLinkPscEndpointInfoPscEndpoint setPscEndpointAddress(java.lang.String pscEndpointAddress) { + this.pscEndpointAddress = pscEndpointAddress; + return this; + } + + /** + * Output only. The resource name of the consumer VPC network. Should match the pattern: + * `projects/global/networks/`. + * @return value or {@code null} for none + */ + public java.lang.String getVpcNetwork() { + return vpcNetwork; + } + + /** + * Output only. The resource name of the consumer VPC network. Should match the pattern: + * `projects/global/networks/`. + * @param vpcNetwork vpcNetwork or {@code null} for none + */ + public ExpressLinkPscEndpointInfoPscEndpoint setVpcNetwork(java.lang.String vpcNetwork) { + this.vpcNetwork = vpcNetwork; + return this; + } + + @Override + public ExpressLinkPscEndpointInfoPscEndpoint set(String fieldName, Object value) { + return (ExpressLinkPscEndpointInfoPscEndpoint) super.set(fieldName, value); + } + + @Override + public ExpressLinkPscEndpointInfoPscEndpoint clone() { + return (ExpressLinkPscEndpointInfoPscEndpoint) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkSource.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkSource.java new file mode 100644 index 00000000000..f30cedd0013 --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ExpressLinkSource.java @@ -0,0 +1,72 @@ +/* + * 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; + +/** + * The source of the traffic. This defines where the connection originates from. + * + *

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 ExpressLinkSource extends com.google.api.client.json.GenericJson { + + /** + * Optional. A list of resources attached to the ExpressLink. The resources can be Cloud Run + * services of the format: `//run.googleapis.com/projects/locations/services/`. The location of + * the resources must match the location of the ExpressLink (unless the ExpressLink is global). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List services; + + /** + * Optional. A list of resources attached to the ExpressLink. The resources can be Cloud Run + * services of the format: `//run.googleapis.com/projects/locations/services/`. The location of + * the resources must match the location of the ExpressLink (unless the ExpressLink is global). + * @return value or {@code null} for none + */ + public java.util.List getServices() { + return services; + } + + /** + * Optional. A list of resources attached to the ExpressLink. The resources can be Cloud Run + * services of the format: `//run.googleapis.com/projects/locations/services/`. The location of + * the resources must match the location of the ExpressLink (unless the ExpressLink is global). + * @param services services or {@code null} for none + */ + public ExpressLinkSource setServices(java.util.List services) { + this.services = services; + return this; + } + + @Override + public ExpressLinkSource set(String fieldName, Object value) { + return (ExpressLinkSource) super.set(fieldName, value); + } + + @Override + public ExpressLinkSource clone() { + return (ExpressLinkSource) super.clone(); + } + +} diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ListExpressLinksResponse.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ListExpressLinksResponse.java new file mode 100644 index 00000000000..500cb3caff7 --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ListExpressLinksResponse.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 ListExpressLinks 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 ListExpressLinksResponse extends com.google.api.client.json.GenericJson { + + /** + * List of ExpressLink resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List expressLinks; + + static { + // hack to force ProGuard to consider ExpressLink 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(ExpressLink.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 ExpressLink resources. + * @return value or {@code null} for none + */ + public java.util.List getExpressLinks() { + return expressLinks; + } + + /** + * List of ExpressLink resources. + * @param expressLinks expressLinks or {@code null} for none + */ + public ListExpressLinksResponse setExpressLinks(java.util.List expressLinks) { + this.expressLinks = expressLinks; + 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 ListExpressLinksResponse 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 ListExpressLinksResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListExpressLinksResponse set(String fieldName, Object value) { + return (ListExpressLinksResponse) super.set(fieldName, value); + } + + @Override + public ListExpressLinksResponse clone() { + return (ListExpressLinksResponse) 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 78709e85903..a73742e60c7 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-rev20261027-2.9.2 - Network Services API v1beta1-rev20261027-2.9.2 + v1beta1-rev20261101-2.9.2 + Network Services API v1beta1-rev20261101-2.9.2 jar 2011 diff --git a/clients/google-api-services-networkservices/v1beta1/README.md b/clients/google-api-services-networkservices/v1beta1/README.md index 6c628eacf8c..4717edc579d 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-rev20261027-2.9.2 + v1beta1-rev20261101-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-networkservices:v1beta1-rev20261027-2.9.2' + implementation 'com.google.apis:google-api-services-networkservices:v1beta1-rev20261101-2.9.2' } ```