From 5c1ab80027ffc065139a23077e9f6b556ed5ba3c Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Sun, 30 Aug 2026 18:07:07 -0700
Subject: [PATCH] chore: regenerate networkservices client
---
.../v1beta1/2.0.0/README.md | 4 +-
.../v1beta1/NetworkServices.java | 972 ++++++++++++++++++
.../v1beta1/model/CdnEdgeExtension.java | 231 +++++
.../v1beta1/model/CdnEdgeExtensionTarget.java | 81 ++
.../model/ListCdnEdgeExtensionsResponse.java | 120 +++
.../v1beta1/2.0.0/pom.xml | 4 +-
.../v1beta1/README.md | 4 +-
7 files changed, 1410 insertions(+), 6 deletions(-)
create mode 100644 clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/CdnEdgeExtension.java
create mode 100644 clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/CdnEdgeExtensionTarget.java
create mode 100644 clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/ListCdnEdgeExtensionsResponse.java
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 94e6b8e465f..42c23441b03 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:
The typical use is:
+ *
+ * {@code NetworkServices networkservices = new NetworkServices(...);}
+ * {@code NetworkServices.CdnEdgeExtensions.List request = networkservices.cdnEdgeExtensions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public CdnEdgeExtensions cdnEdgeExtensions() {
+ return new CdnEdgeExtensions();
+ }
+
+ /**
+ * The "cdnEdgeExtensions" collection of methods.
+ */
+ public class CdnEdgeExtensions {
+
+ /**
+ * Creates a new `CdnEdgeExtension` resource in a given project and location.
+ *
+ * Create a request for the method "cdnEdgeExtensions.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 `CdnEdgeExtension` resource. Must be in the format
+ * `projects/{project}/locations/{location}`.
+ * @param content the {@link com.google.api.services.networkservices.v1beta1.model.CdnEdgeExtension}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.networkservices.v1beta1.model.CdnEdgeExtension content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends NetworkServicesRequest{@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 `CdnEdgeExtension` resource. Must be in the format + * `projects/{project}/locations/{location}`. + * @param content the {@link com.google.api.services.networkservices.v1beta1.model.CdnEdgeExtension} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.networkservices.v1beta1.model.CdnEdgeExtension 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 `CdnEdgeExtension` resource. Must be in the format + * `projects/{project}/locations/{location}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the `CdnEdgeExtension` resource. Must be in the format + `projects/{project}/locations/{location}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource of the `CdnEdgeExtension` resource. Must be in the format + * `projects/{project}/locations/{location}`. + */ + 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. User-provided ID of the `CdnEdgeExtension` resource to be created. */ + @com.google.api.client.util.Key + private java.lang.String cdnEdgeExtensionId; + + /** Required. User-provided ID of the `CdnEdgeExtension` resource to be created. + */ + public java.lang.String getCdnEdgeExtensionId() { + return cdnEdgeExtensionId; + } + + /** Required. User-provided ID of the `CdnEdgeExtension` resource to be created. */ + public Create setCdnEdgeExtensionId(java.lang.String cdnEdgeExtensionId) { + this.cdnEdgeExtensionId = cdnEdgeExtensionId; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server can ignore the request if it has + * already been completed. The server guarantees that for 60 minutes since the first + * request. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server + * ignores the second request This prevents clients from accidentally creating duplicate + * commitments. The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server can ignore the request if it has already been completed. The + server guarantees that for 60 minutes since the first request. For example, consider a situation + where you make an initial request and the request times out. If you make the request again with the + same request ID, the server ignores the second request This prevents clients from accidentally + creating duplicate commitments. The request ID must be a valid UUID with the exception that zero + UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server can ignore the request if it has + * already been completed. The server guarantees that for 60 minutes since the first + * request. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server + * ignores the second request This prevents clients from accidentally creating duplicate + * commitments. The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + */ + public Create setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified `CdnEdgeExtension` resource. + * + * Create a request for the method "cdnEdgeExtensions.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. The name of the `CdnEdgeExtension` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. + * @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{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the `CdnEdgeExtension` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. + * @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/[^/]+/cdnEdgeExtensions/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the `CdnEdgeExtension` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the `CdnEdgeExtension` resource to delete. Must be in the format + `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the `CdnEdgeExtension` resource to delete. Must be in the format + * `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. + */ + 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/[^/]+/cdnEdgeExtensions/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server can ignore the request if it has + * already been completed. The server guarantees that for 60 minutes after the first + * request. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server + * ignores the second request This prevents clients from accidentally creating duplicate + * commitments. The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server can ignore the request if it has already been completed. The + server guarantees that for 60 minutes after the first request. For example, consider a situation + where you make an initial request and the request times out. If you make the request again with the + same request ID, the server ignores the second request This prevents clients from accidentally + creating duplicate commitments. The request ID must be a valid UUID with the exception that zero + UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server can ignore the request if it has + * already been completed. The server guarantees that for 60 minutes after the first + * request. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server + * ignores the second request This prevents clients from accidentally creating duplicate + * commitments. The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified `CdnEdgeExtension` resource. + * + * Create a request for the method "cdnEdgeExtensions.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 `CdnEdgeExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. + * @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+ * {@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 `CdnEdgeExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1beta1.model.CdnEdgeExtension.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/[^/]+/cdnEdgeExtensions/[^/]+$"); + } + } + + @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 `CdnEdgeExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. A name of the `CdnEdgeExtension` resource to get. Must be in the format + `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. A name of the `CdnEdgeExtension` resource to get. Must be in the format + * `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. + */ + 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/[^/]+/cdnEdgeExtensions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists `CdnEdgeExtensions` resources in a given project and location. + * + * Create a request for the method "cdnEdgeExtensions.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 `CdnEdgeExtension` resources are listed. These + * values are specified in the following format: `projects/{project}/locations/{location}`. + * @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+ * {@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 `CdnEdgeExtension` resources are listed. These + * values are specified in the following format: `projects/{project}/locations/{location}`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(NetworkServices.this, "GET", REST_PATH, null, com.google.api.services.networkservices.v1beta1.model.ListCdnEdgeExtensionsResponse.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 `CdnEdgeExtension` resources are + * listed. These values are specified in the following format: + * `projects/{project}/locations/{location}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The project and location from which the `CdnEdgeExtension` resources are listed. These + values are specified in the following format: `projects/{project}/locations/{location}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The project and location from which the `CdnEdgeExtension` resources are + * listed. These values are specified in the following format: + * `projects/{project}/locations/{location}`. + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Filtering results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filtering results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filtering results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Hint about how to order the results. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Hint about how to order the results. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Hint about how to order the results. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. The server might return fewer items than requested. If + * unspecified, the server picks an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. The server might return fewer items than requested. If unspecified, + the server picks an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. The server might return fewer items than requested. If + * unspecified, the server picks an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A token identifying a page of results that the server returns. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token identifying a page of results that the server returns. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A token identifying a page of results that the server returns. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates the parameters of the specified `CdnEdgeExtension` resource. + * + * Create a request for the method "cdnEdgeExtensions.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 Required. Identifier. Name of the `CdnEdgeExtension` resource in the following format: + * `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. + * @param content the {@link com.google.api.services.networkservices.v1beta1.model.CdnEdgeExtension} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.networkservices.v1beta1.model.CdnEdgeExtension content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends NetworkServicesRequest{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. Identifier. Name of the `CdnEdgeExtension` resource in the following format: + * `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. + * @param content the {@link com.google.api.services.networkservices.v1beta1.model.CdnEdgeExtension} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.networkservices.v1beta1.model.CdnEdgeExtension 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/[^/]+/cdnEdgeExtensions/[^/]+$"); + } + } + + @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); + } + + /** + * Required. Identifier. Name of the `CdnEdgeExtension` resource in the following format: + * `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. Identifier. Name of the `CdnEdgeExtension` resource in the following format: + `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Identifier. Name of the `CdnEdgeExtension` resource in the following format: + * `projects/{project}/locations/{location}/cdnEdgeExtensions/{cdn_edge_extension}`. + */ + 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/[^/]+/cdnEdgeExtensions/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server can ignore the request if it has + * already been completed. The server guarantees that for 60 minutes since the first + * request. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server + * ignores the second request This prevents clients from accidentally creating duplicate + * commitments. The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server can ignore the request if it has already been completed. The + server guarantees that for 60 minutes since the first request. For example, consider a situation + where you make an initial request and the request times out. If you make the request again with the + same request ID, the server ignores the second request This prevents clients from accidentally + creating duplicate commitments. The request ID must be a valid UUID with the exception that zero + UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server can ignore the request if it has + * already been completed. The server guarantees that for 60 minutes since the first + * request. For example, consider a situation where you make an initial request and the + * request times out. If you make the request again with the same request ID, the server + * ignores the second request This prevents clients from accidentally creating duplicate + * commitments. The request ID must be a valid UUID with the exception that zero UUID is + * not supported (00000000-0000-0000-0000-000000000000). + */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** + * Optional. Used to specify the fields to be overwritten in the `CdnEdgeExtension` + * resource by the update. The fields specified in the `update_mask` are relative to the + * resource, not the full request. A field is overwritten if it is in the mask. If the + * user does not specify a mask, then all fields are overwritten. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Used to specify the fields to be overwritten in the `CdnEdgeExtension` resource by the + update. The fields specified in the `update_mask` are relative to the resource, not the full + request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all + fields are overwritten. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Used to specify the fields to be overwritten in the `CdnEdgeExtension` + * resource by the update. The fields specified in the `update_mask` are relative to the + * resource, not the full request. A field is overwritten if it is in the mask. If the + * user does not specify a mask, then all fields are 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 EndpointPolicies collection. diff --git a/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/CdnEdgeExtension.java b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/CdnEdgeExtension.java new file mode 100644 index 00000000000..f9d3b9756f6 --- /dev/null +++ b/clients/google-api-services-networkservices/v1beta1/2.0.0/com/google/api/services/networkservices/v1beta1/model/CdnEdgeExtension.java @@ -0,0 +1,231 @@ +/* + * 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; + +/** + * `CdnEdgeExtension` is a resource that lets the extension service modify the headers of both + * requests to the cache and responses from the cache served by an + * [`EdgeCacheService`](https://cloud.google.com/media- + * cdn/docs/reference/rest/v1/projects.locations.edgeCacheServices). + * + *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 CdnEdgeExtension extends com.google.api.client.json.GenericJson { + + /** + * 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 human-readable description of the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. A set of ordered extension chains that contain the match conditions and extensions to + * execute. Match conditions for each extension chain are evaluated in sequence for a given + * request. The first extension chain that has a condition that matches the request is executed. + * Any subsequent extension chains do not execute. Limited to 5 extension chains per resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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 CdnEdgeExtensionTarget extends com.google.api.client.json.GenericJson { + + /** + * Required. A list of references to the resources that are targeted by `CdnEdgeExtension`. Types + * of resources supported: `EdgeCacheService`. The format must be the full resource name of + * [EdgeCacheService](https://cloud.google.com/media- + * cdn/docs/reference/rest/v1/projects.locations.edgeCacheServices) in the following format: `//ne + * tworkservices.googleapis.com/projects/{project}/locations/{location}/edgeCacheServices/{edgeCac + * heService}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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 ListCdnEdgeExtensionsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of `CdnEdgeExtension` resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List