From 20ef10b47f15e1ee68ac953ed61150261f2f1890 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Thu, 8 Oct 2026 18:16:07 -0700 Subject: [PATCH] chore: regenerate dns client --- .../v1beta2/2.0.0/README.md | 4 +- .../com/google/api/services/dns/Dns.java | 3657 +++++++++++++---- .../google/api/services/dns/model/Empty.java | 44 + ...ogleLongrunningListOperationsResponse.java | 120 + .../dns/model/ListLocationsResponse.java | 90 + .../model/ListOutboundEndpointsResponse.java | 117 + .../api/services/dns/model/Location.java | 168 + .../model/ManagedZoneForwardingConfig.java | 24 + ...dZoneForwardingConfigOutboundEndpoint.java | 90 + .../services/dns/model/OperationMetadata.java | 216 + .../services/dns/model/OutboundEndpoint.java | 289 ++ .../PolicyAlternativeNameServerConfig.java | 24 + ...ativeNameServerConfigOutboundEndpoint.java | 90 + .../google/api/services/dns/model/Quota.java | 48 + .../v1beta2/2.0.0/pom.xml | 4 +- .../google-api-services-dns/v1beta2/README.md | 4 +- 16 files changed, 4163 insertions(+), 826 deletions(-) create mode 100644 clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/Empty.java create mode 100644 clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/GoogleLongrunningListOperationsResponse.java create mode 100644 clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/ListLocationsResponse.java create mode 100644 clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/ListOutboundEndpointsResponse.java create mode 100644 clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/Location.java create mode 100644 clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/ManagedZoneForwardingConfigOutboundEndpoint.java create mode 100644 clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/OperationMetadata.java create mode 100644 clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/OutboundEndpoint.java create mode 100644 clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/PolicyAlternativeNameServerConfigOutboundEndpoint.java diff --git a/clients/google-api-services-dns/v1beta2/2.0.0/README.md b/clients/google-api-services-dns/v1beta2/2.0.0/README.md index 44d56e196e1..390f0ee504b 100644 --- a/clients/google-api-services-dns/v1beta2/2.0.0/README.md +++ b/clients/google-api-services-dns/v1beta2/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-dns - v1beta2-rev20260915-2.0.0 + v1beta2-rev20261002-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-dns:v1beta2-rev20260915-2.0.0' + implementation 'com.google.apis:google-api-services-dns:v1beta2-rev20261002-2.0.0' } ``` diff --git a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/Dns.java b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/Dns.java index c040996d3eb..e49c07f385e 100644 --- a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/Dns.java +++ b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/Dns.java @@ -1197,68 +1197,70 @@ public List set(String parameterName, Object value) { } /** - * An accessor for creating requests from the ManagedZoneOperations collection. + * An accessor for creating requests from the Locations collection. * *

The typical use is:

*
    *   {@code Dns dns = new Dns(...);}
-   *   {@code Dns.ManagedZoneOperations.List request = dns.managedZoneOperations().list(parameters ...)}
+   *   {@code Dns.Locations.List request = dns.locations().list(parameters ...)}
    * 
* * @return the resource collection */ - public ManagedZoneOperations managedZoneOperations() { - return new ManagedZoneOperations(); + public Locations locations() { + return new Locations(); } /** - * The "managedZoneOperations" collection of methods. + * The "locations" collection of methods. */ - public class ManagedZoneOperations { + public class Locations { /** - * Fetches the representation of an existing Operation. + * Gets information about a location. * - * Create a request for the method "managedZoneOperations.get". + * Create a request for the method "locations.get". * * This request holds the parameters needed by the dns server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param project Identifies the project addressed by this request. - * @param managedZone Identifies the managed zone addressed by this request. - * @param operation Identifies the operation addressed by this request (ID of the operation). + * @param name Resource name for the location. * @return the request */ - public Get get(java.lang.String project, java.lang.String managedZone, java.lang.String operation) throws java.io.IOException { - Get result = new Get(project, managedZone, operation); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Get extends DnsRequest { + public class Get extends DnsRequest { - private static final String REST_PATH = "dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations/{operation}"; + private static final String REST_PATH = "dns/v1beta2/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Fetches the representation of an existing Operation. + * Gets information about a location. * - * Create a request for the method "managedZoneOperations.get". + * Create a request for the method "locations.get". * * This request holds the parameters needed by the the dns 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 project Identifies the project addressed by this request. - * @param managedZone Identifies the managed zone addressed by this request. - * @param operation Identifies the operation addressed by this request (ID of the operation). + * @param name Resource name for the location. * @since 1.13 */ - protected Get(java.lang.String project, java.lang.String managedZone, java.lang.String operation) { - super(Dns.this, "GET", REST_PATH, null, com.google.api.services.dns.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.managedZone = com.google.api.client.util.Preconditions.checkNotNull(managedZone, "Required parameter managedZone must be specified."); - this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); + protected Get(java.lang.String name) { + super(Dns.this, "GET", REST_PATH, null, com.google.api.services.dns.model.Location.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/[^/]+$"); + } } @Override @@ -1326,74 +1328,24 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Identifies the project addressed by this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Identifies the project addressed by this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Identifies the project addressed by this request. */ - public Get setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** Identifies the managed zone addressed by this request. */ - @com.google.api.client.util.Key - private java.lang.String managedZone; - - /** Identifies the managed zone addressed by this request. - */ - public java.lang.String getManagedZone() { - return managedZone; - } - - /** Identifies the managed zone addressed by this request. */ - public Get setManagedZone(java.lang.String managedZone) { - this.managedZone = managedZone; - return this; - } - - /** Identifies the operation addressed by this request (ID of the operation). */ - @com.google.api.client.util.Key - private java.lang.String operation; - - /** Identifies the operation addressed by this request (ID of the operation). - */ - public java.lang.String getOperation() { - return operation; - } - - /** Identifies the operation addressed by this request (ID of the operation). */ - public Get setOperation(java.lang.String operation) { - this.operation = operation; - return this; - } - - /** - * For mutating operation requests only. An optional identifier specified by the client. Must - * be unique for operation resources in the Operations collection. - */ + /** Resource name for the location. */ @com.google.api.client.util.Key - private java.lang.String clientOperationId; + private java.lang.String name; - /** For mutating operation requests only. An optional identifier specified by the client. Must be - unique for operation resources in the Operations collection. + /** Resource name for the location. */ - public java.lang.String getClientOperationId() { - return clientOperationId; + public java.lang.String getName() { + return name; } - /** - * For mutating operation requests only. An optional identifier specified by the client. Must - * be unique for operation resources in the Operations collection. - */ - public Get setClientOperationId(java.lang.String clientOperationId) { - this.clientOperationId = clientOperationId; + /** Resource name for the location. */ + 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/[^/]+$"); + } + this.name = name; return this; } @@ -1403,45 +1355,65 @@ public Get set(String parameterName, Object value) { } } /** - * Enumerates Operations for the given ManagedZone. + * Lists information about the supported locations for this service. This method lists locations + * based on the resource scope provided in the ListLocationsRequest.name field: * **Global + * locations**: If `name` is empty, the method lists the public locations available to all projects. + * * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method + * lists locations visible to that specific project. This includes public, private, or other + * project-specific locations enabled for the project. For gRPC and client library implementations, + * the resource name is passed as the `name` field. For direct service calls, the resource name is + * incorporated into the request path based on the specific service implementation and version. * - * Create a request for the method "managedZoneOperations.list". + * Create a request for the method "locations.list". * * This request holds the parameters needed by the dns server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param project Identifies the project addressed by this request. - * @param managedZone Identifies the managed zone addressed by this request. + * @param name The resource that owns the locations collection, if applicable. * @return the request */ - public List list(java.lang.String project, java.lang.String managedZone) throws java.io.IOException { - List result = new List(project, managedZone); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); initialize(result); return result; } - public class List extends DnsRequest { + public class List extends DnsRequest { - private static final String REST_PATH = "dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations"; + private static final String REST_PATH = "dns/v1beta2/{+name}/locations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); /** - * Enumerates Operations for the given ManagedZone. + * Lists information about the supported locations for this service. This method lists locations + * based on the resource scope provided in the ListLocationsRequest.name field: * **Global + * locations**: If `name` is empty, the method lists the public locations available to all + * projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, + * the method lists locations visible to that specific project. This includes public, private, or + * other project-specific locations enabled for the project. For gRPC and client library + * implementations, the resource name is passed as the `name` field. For direct service calls, the + * resource name is incorporated into the request path based on the specific service + * implementation and version. * - * Create a request for the method "managedZoneOperations.list". + * Create a request for the method "locations.list". * * This request holds the parameters needed by the the dns 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 project Identifies the project addressed by this request. - * @param managedZone Identifies the managed zone addressed by this request. + * @param name The resource that owns the locations collection, if applicable. * @since 1.13 */ - protected List(java.lang.String project, java.lang.String managedZone) { - super(Dns.this, "GET", REST_PATH, null, com.google.api.services.dns.model.ManagedZoneOperationsListResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.managedZone = com.google.api.client.util.Preconditions.checkNotNull(managedZone, "Required parameter managedZone must be specified."); + protected List(java.lang.String name) { + super(Dns.this, "GET", REST_PATH, null, com.google.api.services.dns.model.ListLocationsResponse.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/[^/]+$"); + } } @Override @@ -1509,100 +1481,114 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** Identifies the project addressed by this request. */ + /** The resource that owns the locations collection, if applicable. */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String name; - /** Identifies the project addressed by this request. + /** The resource that owns the locations collection, if applicable. */ - public java.lang.String getProject() { - return project; + public java.lang.String getName() { + return name; } - /** Identifies the project addressed by this request. */ - public List setProject(java.lang.String project) { - this.project = project; + /** The resource that owns the locations collection, if applicable. */ + public List 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/[^/]+$"); + } + this.name = name; return this; } - /** Identifies the managed zone addressed by this request. */ + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily + * for internal usage. + */ @com.google.api.client.util.Key - private java.lang.String managedZone; + private java.util.List extraLocationTypes; - /** Identifies the managed zone addressed by this request. + /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for + internal usage. */ - public java.lang.String getManagedZone() { - return managedZone; + public java.util.List getExtraLocationTypes() { + return extraLocationTypes; } - /** Identifies the managed zone addressed by this request. */ - public List setManagedZone(java.lang.String managedZone) { - this.managedZone = managedZone; + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily + * for internal usage. + */ + public List setExtraLocationTypes(java.util.List extraLocationTypes) { + this.extraLocationTypes = extraLocationTypes; return this; } /** - * Optional. Maximum number of results to be returned. If unspecified, the server decides how - * many results to return. + * A filter to narrow down results to a preferred subset. The filtering language accepts + * strings like `"displayName=tokyo"`, and is documented in more detail in + * [AIP-160](https://google.aip.dev/160). */ @com.google.api.client.util.Key - private java.lang.Integer maxResults; + private java.lang.String filter; - /** Optional. Maximum number of results to be returned. If unspecified, the server decides how many - results to return. + /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like + `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). */ - public java.lang.Integer getMaxResults() { - return maxResults; + public java.lang.String getFilter() { + return filter; } /** - * Optional. Maximum number of results to be returned. If unspecified, the server decides how - * many results to return. + * A filter to narrow down results to a preferred subset. The filtering language accepts + * strings like `"displayName=tokyo"`, and is documented in more detail in + * [AIP-160](https://google.aip.dev/160). */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The maximum number of results to return. If not set, the service selects a default. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of results to return. If not set, the service selects a default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The maximum number of results to return. If not set, the service selects a default. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } /** - * Optional. A tag returned by a previous list request that was truncated. Use this parameter - * to continue a previous list request. + * A page token received from the `next_page_token` field in the response. Send that page + * token to receive the subsequent page. */ @com.google.api.client.util.Key private java.lang.String pageToken; - /** Optional. A tag returned by a previous list request that was truncated. Use this parameter to - continue a previous list request. + /** A page token received from the `next_page_token` field in the response. Send that page token to + receive the subsequent page. */ public java.lang.String getPageToken() { return pageToken; } /** - * Optional. A tag returned by a previous list request that was truncated. Use this parameter - * to continue a previous list request. + * A page token received from the `next_page_token` field in the response. Send that page + * token to receive the subsequent page. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** Sorting criterion. The only supported values are START_TIME and ID. */ - @com.google.api.client.util.Key - private java.lang.String sortBy; - - /** Sorting criterion. The only supported values are START_TIME and ID. [default: startTime] - */ - public java.lang.String getSortBy() { - return sortBy; - } - - /** Sorting criterion. The only supported values are START_TIME and ID. */ - public List setSortBy(java.lang.String sortBy) { - this.sortBy = sortBy; - return this; - } - @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); @@ -1612,123 +1598,133 @@ public List set(String parameterName, Object value) { } /** - * An accessor for creating requests from the ManagedZones collection. + * An accessor for creating requests from the ManagedZoneOperations collection. * *

The typical use is:

*
    *   {@code Dns dns = new Dns(...);}
-   *   {@code Dns.ManagedZones.List request = dns.managedZones().list(parameters ...)}
+   *   {@code Dns.ManagedZoneOperations.List request = dns.managedZoneOperations().list(parameters ...)}
    * 
* * @return the resource collection */ - public ManagedZones managedZones() { - return new ManagedZones(); + public ManagedZoneOperations managedZoneOperations() { + return new ManagedZoneOperations(); } /** - * The "managedZones" collection of methods. + * The "managedZoneOperations" collection of methods. */ - public class ManagedZones { + public class ManagedZoneOperations { /** - * Creates a new ManagedZone. Note: While `dns.managedZones.create` is the baseline permission - * required to invoke this method, additional permissions are required if the managed zone - * configuration references other resources. + * Fetches the representation of an existing Operation. * - * Create a request for the method "managedZones.create". + * Create a request for the method "managedZoneOperations.get". * * This request holds the parameters needed by the dns server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param project Identifies the project addressed by this request. - * @param content the {@link com.google.api.services.dns.model.ManagedZone} + * @param managedZone Identifies the managed zone addressed by this request. + * @param operation Identifies the operation addressed by this request (ID of the operation). * @return the request */ - public Create create(java.lang.String project, com.google.api.services.dns.model.ManagedZone content) throws java.io.IOException { - Create result = new Create(project, content); + public Get get(java.lang.String project, java.lang.String managedZone, java.lang.String operation) throws java.io.IOException { + Get result = new Get(project, managedZone, operation); initialize(result); return result; } - public class Create extends DnsRequest { + public class Get extends DnsRequest { - private static final String REST_PATH = "dns/v1beta2/projects/{project}/managedZones"; + private static final String REST_PATH = "dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations/{operation}"; /** - * Creates a new ManagedZone. Note: While `dns.managedZones.create` is the baseline permission - * required to invoke this method, additional permissions are required if the managed zone - * configuration references other resources. + * Fetches the representation of an existing Operation. * - * Create a request for the method "managedZones.create". + * Create a request for the method "managedZoneOperations.get". * * This request holds the parameters needed by the the dns 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.

+ * 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 project Identifies the project addressed by this request. - * @param content the {@link com.google.api.services.dns.model.ManagedZone} + * @param managedZone Identifies the managed zone addressed by this request. + * @param operation Identifies the operation addressed by this request (ID of the operation). * @since 1.13 */ - protected Create(java.lang.String project, com.google.api.services.dns.model.ManagedZone content) { - super(Dns.this, "POST", REST_PATH, content, com.google.api.services.dns.model.ManagedZone.class); + protected Get(java.lang.String project, java.lang.String managedZone, java.lang.String operation) { + super(Dns.this, "GET", REST_PATH, null, com.google.api.services.dns.model.Operation.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.managedZone = com.google.api.client.util.Preconditions.checkNotNull(managedZone, "Required parameter managedZone must be specified."); + this.operation = com.google.api.client.util.Preconditions.checkNotNull(operation, "Required parameter operation must be specified."); } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + 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); } /** Identifies the project addressed by this request. */ @@ -1742,11 +1738,43 @@ public java.lang.String getProject() { } /** Identifies the project addressed by this request. */ - public Create setProject(java.lang.String project) { + public Get setProject(java.lang.String project) { this.project = project; return this; } + /** Identifies the managed zone addressed by this request. */ + @com.google.api.client.util.Key + private java.lang.String managedZone; + + /** Identifies the managed zone addressed by this request. + */ + public java.lang.String getManagedZone() { + return managedZone; + } + + /** Identifies the managed zone addressed by this request. */ + public Get setManagedZone(java.lang.String managedZone) { + this.managedZone = managedZone; + return this; + } + + /** Identifies the operation addressed by this request (ID of the operation). */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** Identifies the operation addressed by this request (ID of the operation). + */ + public java.lang.String getOperation() { + return operation; + } + + /** Identifies the operation addressed by this request (ID of the operation). */ + public Get setOperation(java.lang.String operation) { + this.operation = operation; + return this; + } + /** * For mutating operation requests only. An optional identifier specified by the client. Must * be unique for operation resources in the Operations collection. @@ -1765,111 +1793,121 @@ public java.lang.String getClientOperationId() { * For mutating operation requests only. An optional identifier specified by the client. Must * be unique for operation resources in the Operations collection. */ - public Create setClientOperationId(java.lang.String clientOperationId) { + public Get setClientOperationId(java.lang.String clientOperationId) { this.clientOperationId = clientOperationId; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes a previously created ManagedZone. + * Enumerates Operations for the given ManagedZone. * - * Create a request for the method "managedZones.delete". + * Create a request for the method "managedZoneOperations.list". * * This request holds the parameters needed by the dns server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param project Identifies the project addressed by this request. - * @param managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + * @param managedZone Identifies the managed zone addressed by this request. * @return the request */ - public Delete delete(java.lang.String project, java.lang.String managedZone) throws java.io.IOException { - Delete result = new Delete(project, managedZone); + public List list(java.lang.String project, java.lang.String managedZone) throws java.io.IOException { + List result = new List(project, managedZone); initialize(result); return result; } - public class Delete extends DnsRequest { + public class List extends DnsRequest { - private static final String REST_PATH = "dns/v1beta2/projects/{project}/managedZones/{managedZone}"; + private static final String REST_PATH = "dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations"; /** - * Deletes a previously created ManagedZone. + * Enumerates Operations for the given ManagedZone. * - * Create a request for the method "managedZones.delete". + * Create a request for the method "managedZoneOperations.list". * * This request holds the parameters needed by the the dns 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.

+ * 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 project Identifies the project addressed by this request. - * @param managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + * @param managedZone Identifies the managed zone addressed by this request. * @since 1.13 */ - protected Delete(java.lang.String project, java.lang.String managedZone) { - super(Dns.this, "DELETE", REST_PATH, null, Void.class); + protected List(java.lang.String project, java.lang.String managedZone) { + super(Dns.this, "GET", REST_PATH, null, com.google.api.services.dns.model.ManagedZoneOperationsListResponse.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); this.managedZone = com.google.api.client.util.Preconditions.checkNotNull(managedZone, "Required parameter managedZone must be specified."); } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + 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); } /** Identifies the project addressed by this request. */ @@ -1883,101 +1921,1895 @@ public java.lang.String getProject() { } /** Identifies the project addressed by this request. */ - public Delete setProject(java.lang.String project) { + public List setProject(java.lang.String project) { this.project = project; return this; } - /** - * Identifies the managed zone addressed by this request. Can be the managed zone name or ID. - */ + /** Identifies the managed zone addressed by this request. */ @com.google.api.client.util.Key private java.lang.String managedZone; - /** Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + /** Identifies the managed zone addressed by this request. */ public java.lang.String getManagedZone() { return managedZone; } - /** - * Identifies the managed zone addressed by this request. Can be the managed zone name or ID. - */ - public Delete setManagedZone(java.lang.String managedZone) { + /** Identifies the managed zone addressed by this request. */ + public List setManagedZone(java.lang.String managedZone) { this.managedZone = managedZone; return this; } /** - * For mutating operation requests only. An optional identifier specified by the client. Must - * be unique for operation resources in the Operations collection. + * Optional. Maximum number of results to be returned. If unspecified, the server decides how + * many results to return. */ @com.google.api.client.util.Key - private java.lang.String clientOperationId; + private java.lang.Integer maxResults; - /** For mutating operation requests only. An optional identifier specified by the client. Must be - unique for operation resources in the Operations collection. + /** Optional. Maximum number of results to be returned. If unspecified, the server decides how many + results to return. */ - public java.lang.String getClientOperationId() { - return clientOperationId; + public java.lang.Integer getMaxResults() { + return maxResults; } /** - * For mutating operation requests only. An optional identifier specified by the client. Must - * be unique for operation resources in the Operations collection. + * Optional. Maximum number of results to be returned. If unspecified, the server decides how + * many results to return. */ - public Delete setClientOperationId(java.lang.String clientOperationId) { - this.clientOperationId = clientOperationId; + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; return this; } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Fetches the representation of an existing ManagedZone. - * - * Create a request for the method "managedZones.get". - * - * This request holds the parameters needed by the dns server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param project Identifies the project addressed by this request. - * @param managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or ID. - * @return the request - */ - public Get get(java.lang.String project, java.lang.String managedZone) throws java.io.IOException { - Get result = new Get(project, managedZone); - initialize(result); - return result; - } - - public class Get extends DnsRequest { + /** + * Optional. A tag returned by a previous list request that was truncated. Use this parameter + * to continue a previous list request. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - private static final String REST_PATH = "dns/v1beta2/projects/{project}/managedZones/{managedZone}"; + /** Optional. A tag returned by a previous list request that was truncated. Use this parameter to + continue a previous list request. + */ + public java.lang.String getPageToken() { + return pageToken; + } /** - * Fetches the representation of an existing ManagedZone. - * - * Create a request for the method "managedZones.get". - * - * This request holds the parameters needed by the the dns 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 project Identifies the project addressed by this request. - * @param managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or ID. - * @since 1.13 + * Optional. A tag returned by a previous list request that was truncated. Use this parameter + * to continue a previous list request. */ - protected Get(java.lang.String project, java.lang.String managedZone) { - super(Dns.this, "GET", REST_PATH, null, com.google.api.services.dns.model.ManagedZone.class); + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Sorting criterion. The only supported values are START_TIME and ID. */ + @com.google.api.client.util.Key + private java.lang.String sortBy; + + /** Sorting criterion. The only supported values are START_TIME and ID. [default: startTime] + */ + public java.lang.String getSortBy() { + return sortBy; + } + + /** Sorting criterion. The only supported values are START_TIME and ID. */ + public List setSortBy(java.lang.String sortBy) { + this.sortBy = sortBy; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the ManagedZones collection. + * + *

The typical use is:

+ *
+   *   {@code Dns dns = new Dns(...);}
+   *   {@code Dns.ManagedZones.List request = dns.managedZones().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public ManagedZones managedZones() { + return new ManagedZones(); + } + + /** + * The "managedZones" collection of methods. + */ + public class ManagedZones { + + /** + * Creates a new ManagedZone. Note: While `dns.managedZones.create` is the baseline permission + * required to invoke this method, additional permissions are required if the managed zone + * configuration references other resources. + * + * Create a request for the method "managedZones.create". + * + * This request holds the parameters needed by the dns server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param project Identifies the project addressed by this request. + * @param content the {@link com.google.api.services.dns.model.ManagedZone} + * @return the request + */ + public Create create(java.lang.String project, com.google.api.services.dns.model.ManagedZone content) throws java.io.IOException { + Create result = new Create(project, content); + initialize(result); + return result; + } + + public class Create extends DnsRequest { + + private static final String REST_PATH = "dns/v1beta2/projects/{project}/managedZones"; + + /** + * Creates a new ManagedZone. Note: While `dns.managedZones.create` is the baseline permission + * required to invoke this method, additional permissions are required if the managed zone + * configuration references other resources. + * + * Create a request for the method "managedZones.create". + * + * This request holds the parameters needed by the the dns 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 project Identifies the project addressed by this request. + * @param content the {@link com.google.api.services.dns.model.ManagedZone} + * @since 1.13 + */ + protected Create(java.lang.String project, com.google.api.services.dns.model.ManagedZone content) { + super(Dns.this, "POST", REST_PATH, content, com.google.api.services.dns.model.ManagedZone.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + } + + @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); + } + + /** Identifies the project addressed by this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Identifies the project addressed by this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Identifies the project addressed by this request. */ + public Create setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** + * For mutating operation requests only. An optional identifier specified by the client. Must + * be unique for operation resources in the Operations collection. + */ + @com.google.api.client.util.Key + private java.lang.String clientOperationId; + + /** For mutating operation requests only. An optional identifier specified by the client. Must be + unique for operation resources in the Operations collection. + */ + public java.lang.String getClientOperationId() { + return clientOperationId; + } + + /** + * For mutating operation requests only. An optional identifier specified by the client. Must + * be unique for operation resources in the Operations collection. + */ + public Create setClientOperationId(java.lang.String clientOperationId) { + this.clientOperationId = clientOperationId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a previously created ManagedZone. + * + * Create a request for the method "managedZones.delete". + * + * This request holds the parameters needed by the dns server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param project Identifies the project addressed by this request. + * @param managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + * @return the request + */ + public Delete delete(java.lang.String project, java.lang.String managedZone) throws java.io.IOException { + Delete result = new Delete(project, managedZone); + initialize(result); + return result; + } + + public class Delete extends DnsRequest { + + private static final String REST_PATH = "dns/v1beta2/projects/{project}/managedZones/{managedZone}"; + + /** + * Deletes a previously created ManagedZone. + * + * Create a request for the method "managedZones.delete". + * + * This request holds the parameters needed by the the dns 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 project Identifies the project addressed by this request. + * @param managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + * @since 1.13 + */ + protected Delete(java.lang.String project, java.lang.String managedZone) { + super(Dns.this, "DELETE", REST_PATH, null, Void.class); this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); this.managedZone = com.google.api.client.util.Preconditions.checkNotNull(managedZone, "Required parameter managedZone must be specified."); } + @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); + } + + /** Identifies the project addressed by this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Identifies the project addressed by this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Identifies the project addressed by this request. */ + public Delete setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** + * Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + */ + @com.google.api.client.util.Key + private java.lang.String managedZone; + + /** Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + */ + public java.lang.String getManagedZone() { + return managedZone; + } + + /** + * Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + */ + public Delete setManagedZone(java.lang.String managedZone) { + this.managedZone = managedZone; + return this; + } + + /** + * For mutating operation requests only. An optional identifier specified by the client. Must + * be unique for operation resources in the Operations collection. + */ + @com.google.api.client.util.Key + private java.lang.String clientOperationId; + + /** For mutating operation requests only. An optional identifier specified by the client. Must be + unique for operation resources in the Operations collection. + */ + public java.lang.String getClientOperationId() { + return clientOperationId; + } + + /** + * For mutating operation requests only. An optional identifier specified by the client. Must + * be unique for operation resources in the Operations collection. + */ + public Delete setClientOperationId(java.lang.String clientOperationId) { + this.clientOperationId = clientOperationId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Fetches the representation of an existing ManagedZone. + * + * Create a request for the method "managedZones.get". + * + * This request holds the parameters needed by the dns server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param project Identifies the project addressed by this request. + * @param managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + * @return the request + */ + public Get get(java.lang.String project, java.lang.String managedZone) throws java.io.IOException { + Get result = new Get(project, managedZone); + initialize(result); + return result; + } + + public class Get extends DnsRequest { + + private static final String REST_PATH = "dns/v1beta2/projects/{project}/managedZones/{managedZone}"; + + /** + * Fetches the representation of an existing ManagedZone. + * + * Create a request for the method "managedZones.get". + * + * This request holds the parameters needed by the the dns 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 project Identifies the project addressed by this request. + * @param managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + * @since 1.13 + */ + protected Get(java.lang.String project, java.lang.String managedZone) { + super(Dns.this, "GET", REST_PATH, null, com.google.api.services.dns.model.ManagedZone.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.managedZone = com.google.api.client.util.Preconditions.checkNotNull(managedZone, "Required parameter managedZone must be specified."); + } + + @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); + } + + /** Identifies the project addressed by this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Identifies the project addressed by this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Identifies the project addressed by this request. */ + public Get setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** + * Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + */ + @com.google.api.client.util.Key + private java.lang.String managedZone; + + /** Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + */ + public java.lang.String getManagedZone() { + return managedZone; + } + + /** + * Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + */ + public Get setManagedZone(java.lang.String managedZone) { + this.managedZone = managedZone; + return this; + } + + /** + * For mutating operation requests only. An optional identifier specified by the client. Must + * be unique for operation resources in the Operations collection. + */ + @com.google.api.client.util.Key + private java.lang.String clientOperationId; + + /** For mutating operation requests only. An optional identifier specified by the client. Must be + unique for operation resources in the Operations collection. + */ + public java.lang.String getClientOperationId() { + return clientOperationId; + } + + /** + * For mutating operation requests only. An optional identifier specified by the client. Must + * be unique for operation resources in the Operations collection. + */ + public Get setClientOperationId(java.lang.String clientOperationId) { + this.clientOperationId = clientOperationId; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists and + * does not have a policy set. + * + * Create a request for the method "managedZones.getIamPolicy". + * + * This request holds the parameters needed by the dns server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.dns.model.GoogleIamV1GetIamPolicyRequest} + * @return the request + */ + public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.dns.model.GoogleIamV1GetIamPolicyRequest content) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource, content); + initialize(result); + return result; + } + + public class GetIamPolicy extends DnsRequest { + + private static final String REST_PATH = "dns/v1beta2/{+resource}:getIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/managedZones/[^/]+$"); + + /** + * Gets the access control policy for a resource. Returns an empty policy if the resource exists + * and does not have a policy set. + * + * Create a request for the method "managedZones.getIamPolicy". + * + * This request holds the parameters needed by the the dns server. After setting any optional + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

+ * + * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.dns.model.GoogleIamV1GetIamPolicyRequest} + * @since 1.13 + */ + protected GetIamPolicy(java.lang.String resource, com.google.api.services.dns.model.GoogleIamV1GetIamPolicyRequest content) { + super(Dns.this, "POST", REST_PATH, content, com.google.api.services.dns.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/managedZones/[^/]+$"); + } + } + + @Override + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); + } + + @Override + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); + } + + @Override + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); + } + + @Override + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); + } + + @Override + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + */ + public GetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/managedZones/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); + } + } + /** + * Enumerates ManagedZones that have been created but not yet deleted. + * + * Create a request for the method "managedZones.list". + * + * This request holds the parameters needed by the dns server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param project Identifies the project addressed by this request. + * @return the request + */ + public List list(java.lang.String project) throws java.io.IOException { + List result = new List(project); + initialize(result); + return result; + } + + public class List extends DnsRequest { + + private static final String REST_PATH = "dns/v1beta2/projects/{project}/managedZones"; + + /** + * Enumerates ManagedZones that have been created but not yet deleted. + * + * Create a request for the method "managedZones.list". + * + * This request holds the parameters needed by the the dns 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 project Identifies the project addressed by this request. + * @since 1.13 + */ + protected List(java.lang.String project) { + super(Dns.this, "GET", REST_PATH, null, com.google.api.services.dns.model.ManagedZonesListResponse.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + } + + @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); + } + + /** Identifies the project addressed by this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Identifies the project addressed by this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Identifies the project addressed by this request. */ + public List setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** Restricts the list to return only zones with this domain name. */ + @com.google.api.client.util.Key + private java.lang.String dnsName; + + /** Restricts the list to return only zones with this domain name. + */ + public java.lang.String getDnsName() { + return dnsName; + } + + /** Restricts the list to return only zones with this domain name. */ + public List setDnsName(java.lang.String dnsName) { + this.dnsName = dnsName; + return this; + } + + /** + * Optional. Maximum number of results to be returned. If unspecified, the server decides how + * many results to return. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxResults; + + /** Optional. Maximum number of results to be returned. If unspecified, the server decides how many + results to return. + */ + public java.lang.Integer getMaxResults() { + return maxResults; + } + + /** + * Optional. Maximum number of results to be returned. If unspecified, the server decides how + * many results to return. + */ + public List setMaxResults(java.lang.Integer maxResults) { + this.maxResults = maxResults; + return this; + } + + /** + * Optional. A tag returned by a previous list request that was truncated. Use this parameter + * to continue a previous list request. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A tag returned by a previous list request that was truncated. Use this parameter to + continue a previous list request. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A tag returned by a previous list request that was truncated. Use this parameter + * to continue a previous list request. + */ + 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); + } + } + /** + * Applies a partial update to an existing ManagedZone. + * + * Create a request for the method "managedZones.patch". + * + * This request holds the parameters needed by the dns server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param project Identifies the project addressed by this request. + * @param managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + * @param content the {@link com.google.api.services.dns.model.ManagedZone} + * @return the request + */ + public Patch patch(java.lang.String project, java.lang.String managedZone, com.google.api.services.dns.model.ManagedZone content) throws java.io.IOException { + Patch result = new Patch(project, managedZone, content); + initialize(result); + return result; + } + + public class Patch extends DnsRequest { + + private static final String REST_PATH = "dns/v1beta2/projects/{project}/managedZones/{managedZone}"; + + /** + * Applies a partial update to an existing ManagedZone. + * + * Create a request for the method "managedZones.patch". + * + * This request holds the parameters needed by the the dns 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 project Identifies the project addressed by this request. + * @param managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + * @param content the {@link com.google.api.services.dns.model.ManagedZone} + * @since 1.13 + */ + protected Patch(java.lang.String project, java.lang.String managedZone, com.google.api.services.dns.model.ManagedZone content) { + super(Dns.this, "PATCH", REST_PATH, content, com.google.api.services.dns.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.managedZone = com.google.api.client.util.Preconditions.checkNotNull(managedZone, "Required parameter managedZone must be specified."); + } + + @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); + } + + /** Identifies the project addressed by this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Identifies the project addressed by this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Identifies the project addressed by this request. */ + public Patch setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** + * Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + */ + @com.google.api.client.util.Key + private java.lang.String managedZone; + + /** Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + */ + public java.lang.String getManagedZone() { + return managedZone; + } + + /** + * Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + */ + public Patch setManagedZone(java.lang.String managedZone) { + this.managedZone = managedZone; + return this; + } + + /** + * For mutating operation requests only. An optional identifier specified by the client. Must + * be unique for operation resources in the Operations collection. + */ + @com.google.api.client.util.Key + private java.lang.String clientOperationId; + + /** For mutating operation requests only. An optional identifier specified by the client. Must be + unique for operation resources in the Operations collection. + */ + public java.lang.String getClientOperationId() { + return clientOperationId; + } + + /** + * For mutating operation requests only. An optional identifier specified by the client. Must + * be unique for operation resources in the Operations collection. + */ + public Patch setClientOperationId(java.lang.String clientOperationId) { + this.clientOperationId = clientOperationId; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "managedZones.setIamPolicy". + * + * This request holds the parameters needed by the dns server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.dns.model.GoogleIamV1SetIamPolicyRequest} + * @return the request + */ + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.dns.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); + initialize(result); + return result; + } + + public class SetIamPolicy extends DnsRequest { + + private static final String REST_PATH = "dns/v1beta2/{+resource}:setIamPolicy"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/managedZones/[^/]+$"); + + /** + * Sets the access control policy on the specified resource. Replaces any existing policy. Can + * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * + * Create a request for the method "managedZones.setIamPolicy". + * + * This request holds the parameters needed by the the dns server. After setting any optional + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

+ * + * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.dns.model.GoogleIamV1SetIamPolicyRequest} + * @since 1.13 + */ + protected SetIamPolicy(java.lang.String resource, com.google.api.services.dns.model.GoogleIamV1SetIamPolicyRequest content) { + super(Dns.this, "POST", REST_PATH, content, com.google.api.services.dns.model.GoogleIamV1Policy.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/managedZones/[^/]+$"); + } + } + + @Override + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); + } + + @Override + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); + } + + @Override + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); + } + + @Override + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); + } + + @Override + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); + } + + @Override + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); + } + + @Override + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); + } + + @Override + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + } + + @Override + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); + } + + @Override + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); + } + + @Override + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy is being specified. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy is being specified. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + */ + public SetIamPolicy setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/managedZones/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); + } + } + /** + * Returns permissions that a caller has on the specified resource. If the resource does not exist, + * this returns an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is + * designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "managedZones.testIamPermissions". + * + * This request holds the parameters needed by the dns server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.dns.model.GoogleIamV1TestIamPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.dns.model.GoogleIamV1TestIamPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource, content); + initialize(result); + return result; + } + + public class TestIamPermissions extends DnsRequest { + + private static final String REST_PATH = "dns/v1beta2/{+resource}:testIamPermissions"; + + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/managedZones/[^/]+$"); + + /** + * Returns permissions that a caller has on the specified resource. If the resource does not + * exist, this returns an empty set of permissions, not a `NOT_FOUND` error. Note: This operation + * is designed to be used for building permission-aware UIs and command-line tools, not for + * authorization checking. This operation may "fail open" without warning. + * + * Create a request for the method "managedZones.testIamPermissions". + * + * This request holds the parameters needed by the the dns server. After setting any optional + * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote + * operation.

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

+ * + * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + * @param content the {@link com.google.api.services.dns.model.GoogleIamV1TestIamPermissionsRequest} + * @since 1.13 + */ + protected TestIamPermissions(java.lang.String resource, com.google.api.services.dns.model.GoogleIamV1TestIamPermissionsRequest content) { + super(Dns.this, "POST", REST_PATH, content, com.google.api.services.dns.model.GoogleIamV1TestIamPermissionsResponse.class); + this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/managedZones/[^/]+$"); + } + } + + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); + } + + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); + } + + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } + + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); + } + + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); + } + + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } + + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); + } + + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } + + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); + } + + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** REQUIRED: The resource for which the policy detail is being requested. See [Resource + names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this + field. + */ + public java.lang.String getResource() { + return resource; + } + + /** + * REQUIRED: The resource for which the policy detail is being requested. See [Resource + * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for + * this field. + */ + public TestIamPermissions setResource(java.lang.String resource) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/managedZones/[^/]+$"); + } + this.resource = resource; + return this; + } + + @Override + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); + } + } + /** + * Updates an existing ManagedZone. + * + * Create a request for the method "managedZones.update". + * + * This request holds the parameters needed by the dns server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * + * @param project Identifies the project addressed by this request. + * @param managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + * @param content the {@link com.google.api.services.dns.model.ManagedZone} + * @return the request + */ + public Update update(java.lang.String project, java.lang.String managedZone, com.google.api.services.dns.model.ManagedZone content) throws java.io.IOException { + Update result = new Update(project, managedZone, content); + initialize(result); + return result; + } + + public class Update extends DnsRequest { + + private static final String REST_PATH = "dns/v1beta2/projects/{project}/managedZones/{managedZone}"; + + /** + * Updates an existing ManagedZone. + * + * Create a request for the method "managedZones.update". + * + * This request holds the parameters needed by the the dns server. After setting any optional + * parameters, call the {@link Update#execute()} method to invoke the remote operation.

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

+ * + * @param project Identifies the project addressed by this request. + * @param managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + * @param content the {@link com.google.api.services.dns.model.ManagedZone} + * @since 1.13 + */ + protected Update(java.lang.String project, java.lang.String managedZone, com.google.api.services.dns.model.ManagedZone content) { + super(Dns.this, "PUT", REST_PATH, content, com.google.api.services.dns.model.Operation.class); + this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); + this.managedZone = com.google.api.client.util.Preconditions.checkNotNull(managedZone, "Required parameter managedZone must be specified."); + } + + @Override + public Update set$Xgafv(java.lang.String $Xgafv) { + return (Update) super.set$Xgafv($Xgafv); + } + + @Override + public Update setAccessToken(java.lang.String accessToken) { + return (Update) super.setAccessToken(accessToken); + } + + @Override + public Update setAlt(java.lang.String alt) { + return (Update) super.setAlt(alt); + } + + @Override + public Update setCallback(java.lang.String callback) { + return (Update) super.setCallback(callback); + } + + @Override + public Update setFields(java.lang.String fields) { + return (Update) super.setFields(fields); + } + + @Override + public Update setKey(java.lang.String key) { + return (Update) super.setKey(key); + } + + @Override + public Update setOauthToken(java.lang.String oauthToken) { + return (Update) super.setOauthToken(oauthToken); + } + + @Override + public Update setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Update) super.setPrettyPrint(prettyPrint); + } + + @Override + public Update setQuotaUser(java.lang.String quotaUser) { + return (Update) super.setQuotaUser(quotaUser); + } + + @Override + public Update setUploadType(java.lang.String uploadType) { + return (Update) super.setUploadType(uploadType); + } + + @Override + public Update setUploadProtocol(java.lang.String uploadProtocol) { + return (Update) super.setUploadProtocol(uploadProtocol); + } + + /** Identifies the project addressed by this request. */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** Identifies the project addressed by this request. + */ + public java.lang.String getProject() { + return project; + } + + /** Identifies the project addressed by this request. */ + public Update setProject(java.lang.String project) { + this.project = project; + return this; + } + + /** + * Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + */ + @com.google.api.client.util.Key + private java.lang.String managedZone; + + /** Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + */ + public java.lang.String getManagedZone() { + return managedZone; + } + + /** + * Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + */ + public Update setManagedZone(java.lang.String managedZone) { + this.managedZone = managedZone; + return this; + } + + /** + * For mutating operation requests only. An optional identifier specified by the client. Must + * be unique for operation resources in the Operations collection. + */ + @com.google.api.client.util.Key + private java.lang.String clientOperationId; + + /** For mutating operation requests only. An optional identifier specified by the client. Must be + unique for operation resources in the Operations collection. + */ + public java.lang.String getClientOperationId() { + return clientOperationId; + } + + /** + * For mutating operation requests only. An optional identifier specified by the client. Must + * be unique for operation resources in the Operations collection. + */ + public Update setClientOperationId(java.lang.String clientOperationId) { + this.clientOperationId = clientOperationId; + return this; + } + + @Override + public Update set(String parameterName, Object value) { + return (Update) super.set(parameterName, value); + } + } + + } + + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+   *   {@code Dns dns = new Dns(...);}
+   *   {@code Dns.Operations.List request = dns.operations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } + + /** + * The "operations" collection of methods. + */ + public class Operations { + + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the dns server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be cancelled. + * @return the request + */ + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; + } + + public class Cancel extends DnsRequest { + + private static final String REST_PATH = "dns/v1beta2/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the the dns server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

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

+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Dns.this, "POST", REST_PATH, null, com.google.api.services.dns.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel 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/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the dns server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @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 DnsRequest { + + private static final String REST_PATH = "dns/v1beta2/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the the dns 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 The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Dns.this, "DELETE", REST_PATH, null, com.google.api.services.dns.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + 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/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the dns server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @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 DnsRequest { + + private static final String REST_PATH = "dns/v1beta2/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the dns 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 The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Dns.this, "GET", REST_PATH, null, com.google.api.services.dns.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + } + @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); @@ -2043,62 +3875,24 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Identifies the project addressed by this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Identifies the project addressed by this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Identifies the project addressed by this request. */ - public Get setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** - * Identifies the managed zone addressed by this request. Can be the managed zone name or ID. - */ - @com.google.api.client.util.Key - private java.lang.String managedZone; - - /** Identifies the managed zone addressed by this request. Can be the managed zone name or ID. - */ - public java.lang.String getManagedZone() { - return managedZone; - } - - /** - * Identifies the managed zone addressed by this request. Can be the managed zone name or ID. - */ - public Get setManagedZone(java.lang.String managedZone) { - this.managedZone = managedZone; - return this; - } - - /** - * For mutating operation requests only. An optional identifier specified by the client. Must - * be unique for operation resources in the Operations collection. - */ + /** The name of the operation resource. */ @com.google.api.client.util.Key - private java.lang.String clientOperationId; + private java.lang.String name; - /** For mutating operation requests only. An optional identifier specified by the client. Must be - unique for operation resources in the Operations collection. + /** The name of the operation resource. */ - public java.lang.String getClientOperationId() { - return clientOperationId; + public java.lang.String getName() { + return name; } - /** - * For mutating operation requests only. An optional identifier specified by the client. Must - * be unique for operation resources in the Operations collection. - */ - public Get setClientOperationId(java.lang.String clientOperationId) { - this.clientOperationId = clientOperationId; + /** The name of the operation resource. */ + 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/[^/]+/operations/[^/]+$"); + } + this.name = name; return this; } @@ -2108,471 +3902,581 @@ public Get set(String parameterName, Object value) { } } /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists and - * does not have a policy set. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. * - * Create a request for the method "managedZones.getIamPolicy". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the dns server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dns.model.GoogleIamV1GetIamPolicyRequest} + * @param name The name of the operation's parent resource. * @return the request */ - public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.dns.model.GoogleIamV1GetIamPolicyRequest content) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource, content); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); initialize(result); return result; } - public class GetIamPolicy extends DnsRequest { + public class List extends DnsRequest { - private static final String REST_PATH = "dns/v1beta2/{+resource}:getIamPolicy"; + private static final String REST_PATH = "dns/v1beta2/{+name}/operations"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/managedZones/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Gets the access control policy for a resource. Returns an empty policy if the resource exists - * and does not have a policy set. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. * - * Create a request for the method "managedZones.getIamPolicy". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the the dns server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

+ * 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 resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dns.model.GoogleIamV1GetIamPolicyRequest} + * @param name The name of the operation's parent resource. * @since 1.13 */ - protected GetIamPolicy(java.lang.String resource, com.google.api.services.dns.model.GoogleIamV1GetIamPolicyRequest content) { - super(Dns.this, "POST", REST_PATH, content, com.google.api.services.dns.model.GoogleIamV1Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected List(java.lang.String name) { + super(Dns.this, "GET", REST_PATH, null, com.google.api.services.dns.model.GoogleLongrunningListOperationsResponse.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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/managedZones/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); + 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); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List 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/[^/]+$"); + } + this.name = name; + return this; } - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; } - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; } - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; } - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; } /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * When set to `true`, operations that are reachable are returned as normal, and those that + * are unreachable are returned in the ListOperationsResponse.unreachable field. This can only + * be `true` when reading across collections. For example, when `parent` is set to + * `"projects/example/locations/-"`. This field is not supported by default and will result in + * an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + * product specific documentation. */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.Boolean returnPartialSuccess; - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. */ - public java.lang.String getResource() { - return resource; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * When set to `true`, operations that are reachable are returned as normal, and those that + * are unreachable are returned in the ListOperationsResponse.unreachable field. This can only + * be `true` when reading across collections. For example, when `parent` is set to + * `"projects/example/locations/-"`. This field is not supported by default and will result in + * an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or + * product specific documentation. */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/managedZones/[^/]+$"); - } - this.resource = resource; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + + /** + * An accessor for creating requests from the OutboundEndpoints collection. + * + *

The typical use is:

+ *
+   *   {@code Dns dns = new Dns(...);}
+   *   {@code Dns.OutboundEndpoints.List request = dns.outboundEndpoints().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public OutboundEndpoints outboundEndpoints() { + return new OutboundEndpoints(); + } + + /** + * The "outboundEndpoints" collection of methods. + */ + public class OutboundEndpoints { + /** - * Enumerates ManagedZones that have been created but not yet deleted. + * Creates a new Outbound Endpoint. * - * Create a request for the method "managedZones.list". + * Create a request for the method "outboundEndpoints.create". * * This request holds the parameters needed by the dns server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param project Identifies the project addressed by this request. + * @param parent Required. The parent project and location where this OutboundEndpoint will be created. Format: + * projects/{project}/locations/{location} + * @param content the {@link com.google.api.services.dns.model.OutboundEndpoint} * @return the request */ - public List list(java.lang.String project) throws java.io.IOException { - List result = new List(project); + public Create create(java.lang.String parent, com.google.api.services.dns.model.OutboundEndpoint content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class List extends DnsRequest { + public class Create extends DnsRequest { - private static final String REST_PATH = "dns/v1beta2/projects/{project}/managedZones"; + private static final String REST_PATH = "dns/v1beta2/{+parent}/outboundEndpoints"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Enumerates ManagedZones that have been created but not yet deleted. + * Creates a new Outbound Endpoint. * - * Create a request for the method "managedZones.list". + * Create a request for the method "outboundEndpoints.create". * * This request holds the parameters needed by the the dns 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.

+ * 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 project Identifies the project addressed by this request. + * @param parent Required. The parent project and location where this OutboundEndpoint will be created. Format: + * projects/{project}/locations/{location} + * @param content the {@link com.google.api.services.dns.model.OutboundEndpoint} * @since 1.13 */ - protected List(java.lang.String project) { - super(Dns.this, "GET", REST_PATH, null, com.google.api.services.dns.model.ManagedZonesListResponse.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - } - - @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(); + protected Create(java.lang.String parent, com.google.api.services.dns.model.OutboundEndpoint content) { + super(Dns.this, "POST", REST_PATH, content, com.google.api.services.dns.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - /** Identifies the project addressed by this request. */ + /** + * Required. The parent project and location where this OutboundEndpoint will be created. + * Format: projects/{project}/locations/{location} + */ @com.google.api.client.util.Key - private java.lang.String project; + private java.lang.String parent; - /** Identifies the project addressed by this request. + /** Required. The parent project and location where this OutboundEndpoint will be created. Format: + projects/{project}/locations/{location} */ - public java.lang.String getProject() { - return project; + public java.lang.String getParent() { + return parent; } - /** Identifies the project addressed by this request. */ - public List setProject(java.lang.String project) { - this.project = project; + /** + * Required. The parent project and location where this OutboundEndpoint will be created. + * 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; } - /** Restricts the list to return only zones with this domain name. */ + /** + * For mutating operation requests only. An optional identifier specified by the client. Must + * be unique for operation resources in the Operations collection. + */ @com.google.api.client.util.Key - private java.lang.String dnsName; + private java.lang.String clientOperationId; - /** Restricts the list to return only zones with this domain name. + /** For mutating operation requests only. An optional identifier specified by the client. Must be + unique for operation resources in the Operations collection. */ - public java.lang.String getDnsName() { - return dnsName; + public java.lang.String getClientOperationId() { + return clientOperationId; } - /** Restricts the list to return only zones with this domain name. */ - public List setDnsName(java.lang.String dnsName) { - this.dnsName = dnsName; + /** + * For mutating operation requests only. An optional identifier specified by the client. Must + * be unique for operation resources in the Operations collection. + */ + public Create setClientOperationId(java.lang.String clientOperationId) { + this.clientOperationId = clientOperationId; return this; } /** - * Optional. Maximum number of results to be returned. If unspecified, the server decides how - * many results to return. + * Required. The ID to use for the OutboundEndpoint, which will become the final component of + * the OutboundEndpoint's resource name. */ @com.google.api.client.util.Key - private java.lang.Integer maxResults; + private java.lang.String outboundEndpointId; - /** Optional. Maximum number of results to be returned. If unspecified, the server decides how many - results to return. + /** Required. The ID to use for the OutboundEndpoint, which will become the final component of the + OutboundEndpoint's resource name. */ - public java.lang.Integer getMaxResults() { - return maxResults; + public java.lang.String getOutboundEndpointId() { + return outboundEndpointId; } /** - * Optional. Maximum number of results to be returned. If unspecified, the server decides how - * many results to return. + * Required. The ID to use for the OutboundEndpoint, which will become the final component of + * the OutboundEndpoint's resource name. */ - public List setMaxResults(java.lang.Integer maxResults) { - this.maxResults = maxResults; + public Create setOutboundEndpointId(java.lang.String outboundEndpointId) { + this.outboundEndpointId = outboundEndpointId; return this; } - /** - * Optional. A tag returned by a previous list request that was truncated. Use this parameter - * to continue a previous list request. - */ + /** Optional. An optional request ID to identify requests. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.String requestId; - /** Optional. A tag returned by a previous list request that was truncated. Use this parameter to - continue a previous list request. + /** Optional. An optional request ID to identify requests. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.String getRequestId() { + return requestId; } - /** - * Optional. A tag returned by a previous list request that was truncated. Use this parameter - * to continue a previous list request. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Optional. An optional request ID to identify requests. */ + public Create setRequestId(java.lang.String requestId) { + this.requestId = requestId; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Applies a partial update to an existing ManagedZone. + * Deletes a previously created Outbound Endpoint. * - * Create a request for the method "managedZones.patch". + * Create a request for the method "outboundEndpoints.delete". * * This request holds the parameters needed by the dns server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param project Identifies the project addressed by this request. - * @param managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or ID. - * @param content the {@link com.google.api.services.dns.model.ManagedZone} + * @param name Required. The name of the OutboundEndpoint to delete. Format: + * projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint} * @return the request */ - public Patch patch(java.lang.String project, java.lang.String managedZone, com.google.api.services.dns.model.ManagedZone content) throws java.io.IOException { - Patch result = new Patch(project, managedZone, content); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Patch extends DnsRequest { + public class Delete extends DnsRequest { - private static final String REST_PATH = "dns/v1beta2/projects/{project}/managedZones/{managedZone}"; + private static final String REST_PATH = "dns/v1beta2/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/outboundEndpoints/[^/]+$"); /** - * Applies a partial update to an existing ManagedZone. + * Deletes a previously created Outbound Endpoint. * - * Create a request for the method "managedZones.patch". + * Create a request for the method "outboundEndpoints.delete". * * This request holds the parameters needed by the the dns 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 + * 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 project Identifies the project addressed by this request. - * @param managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or ID. - * @param content the {@link com.google.api.services.dns.model.ManagedZone} + * @param name Required. The name of the OutboundEndpoint to delete. Format: + * projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint} * @since 1.13 - */ - protected Patch(java.lang.String project, java.lang.String managedZone, com.google.api.services.dns.model.ManagedZone content) { - super(Dns.this, "PATCH", REST_PATH, content, com.google.api.services.dns.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.managedZone = com.google.api.client.util.Preconditions.checkNotNull(managedZone, "Required parameter managedZone must be specified."); + */ + protected Delete(java.lang.String name) { + super(Dns.this, "DELETE", REST_PATH, null, com.google.api.services.dns.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/outboundEndpoints/[^/]+$"); + } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** Identifies the project addressed by this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Identifies the project addressed by this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Identifies the project addressed by this request. */ - public Patch setProject(java.lang.String project) { - this.project = project; - return this; + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + * Required. The name of the OutboundEndpoint to delete. Format: + * projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint} */ @com.google.api.client.util.Key - private java.lang.String managedZone; + private java.lang.String name; - /** Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + /** Required. The name of the OutboundEndpoint to delete. Format: + projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint} */ - public java.lang.String getManagedZone() { - return managedZone; + public java.lang.String getName() { + return name; } /** - * Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + * Required. The name of the OutboundEndpoint to delete. Format: + * projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint} */ - public Patch setManagedZone(java.lang.String managedZone) { - this.managedZone = managedZone; + 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/[^/]+/outboundEndpoints/[^/]+$"); + } + this.name = name; return this; } @@ -2594,446 +4498,527 @@ public java.lang.String getClientOperationId() { * For mutating operation requests only. An optional identifier specified by the client. Must * be unique for operation resources in the Operations collection. */ - public Patch setClientOperationId(java.lang.String clientOperationId) { + public Delete setClientOperationId(java.lang.String clientOperationId) { this.clientOperationId = clientOperationId; return this; } + /** Optional. An optional request ID to identify requests. */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** Optional. An optional request ID to identify requests. */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Fetches the representation of an existing Outbound Endpoint. * - * Create a request for the method "managedZones.setIamPolicy". + * Create a request for the method "outboundEndpoints.get". * * This request holds the parameters needed by the dns server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dns.model.GoogleIamV1SetIamPolicyRequest} + * @param name Required. The name of the OutboundEndpoint to retrieve. Format: + * projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint} * @return the request */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.dns.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class SetIamPolicy extends DnsRequest { + public class Get extends DnsRequest { - private static final String REST_PATH = "dns/v1beta2/{+resource}:setIamPolicy"; + private static final String REST_PATH = "dns/v1beta2/{+name}"; - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/managedZones/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/outboundEndpoints/[^/]+$"); /** - * Sets the access control policy on the specified resource. Replaces any existing policy. Can - * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. + * Fetches the representation of an existing Outbound Endpoint. * - * Create a request for the method "managedZones.setIamPolicy". + * Create a request for the method "outboundEndpoints.get". * * This request holds the parameters needed by the the dns server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

+ * 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 resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dns.model.GoogleIamV1SetIamPolicyRequest} + * @param name Required. The name of the OutboundEndpoint to retrieve. Format: + * projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint} * @since 1.13 */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.dns.model.GoogleIamV1SetIamPolicyRequest content) { - super(Dns.this, "POST", REST_PATH, content, com.google.api.services.dns.model.GoogleIamV1Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected Get(java.lang.String name) { + super(Dns.this, "GET", REST_PATH, null, com.google.api.services.dns.model.OutboundEndpoint.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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/managedZones/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/outboundEndpoints/[^/]+$"); } } @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); + 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: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * Required. The name of the OutboundEndpoint to retrieve. Format: + * projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint} */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String name; - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The name of the OutboundEndpoint to retrieve. Format: + projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint} */ - public java.lang.String getResource() { - return resource; + public java.lang.String getName() { + return name; } /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * Required. The name of the OutboundEndpoint to retrieve. Format: + * projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint} */ - public SetIamPolicy setResource(java.lang.String resource) { + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/managedZones/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/outboundEndpoints/[^/]+$"); } - this.resource = resource; + this.name = name; + return this; + } + + /** + * For mutating operation requests only. An optional identifier specified by the client. Must + * be unique for operation resources in the Operations collection. + */ + @com.google.api.client.util.Key + private java.lang.String clientOperationId; + + /** For mutating operation requests only. An optional identifier specified by the client. Must be + unique for operation resources in the Operations collection. + */ + public java.lang.String getClientOperationId() { + return clientOperationId; + } + + /** + * For mutating operation requests only. An optional identifier specified by the client. Must + * be unique for operation resources in the Operations collection. + */ + public Get setClientOperationId(java.lang.String clientOperationId) { + this.clientOperationId = clientOperationId; return this; } @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Returns permissions that a caller has on the specified resource. If the resource does not exist, - * this returns an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is - * designed to be used for building permission-aware UIs and command-line tools, not for - * authorization checking. This operation may "fail open" without warning. + * Enumerates all Outbound Endpoints associated with a project. * - * Create a request for the method "managedZones.testIamPermissions". + * Create a request for the method "outboundEndpoints.list". * * This request holds the parameters needed by the dns server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. + * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dns.model.GoogleIamV1TestIamPermissionsRequest} + * @param parent Required. The parent project and location from which to list resources. Format: + * projects/{project}/locations/{location} * @return the request */ - public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.dns.model.GoogleIamV1TestIamPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class TestIamPermissions extends DnsRequest { - - private static final String REST_PATH = "dns/v1beta2/{+resource}:testIamPermissions"; - - private final java.util.regex.Pattern RESOURCE_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/managedZones/[^/]+$"); + public class List extends DnsRequest { - /** - * Returns permissions that a caller has on the specified resource. If the resource does not - * exist, this returns an empty set of permissions, not a `NOT_FOUND` error. Note: This operation - * is designed to be used for building permission-aware UIs and command-line tools, not for - * authorization checking. This operation may "fail open" without warning. + private static final String REST_PATH = "dns/v1beta2/{+parent}/outboundEndpoints"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Enumerates all Outbound Endpoints associated with a project. * - * Create a request for the method "managedZones.testIamPermissions". + * Create a request for the method "outboundEndpoints.list". * * This request holds the parameters needed by the the dns server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote - * operation.

{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

+ * 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 resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.dns.model.GoogleIamV1TestIamPermissionsRequest} + * @param parent Required. The parent project and location from which to list resources. Format: + * projects/{project}/locations/{location} * @since 1.13 */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.dns.model.GoogleIamV1TestIamPermissionsRequest content) { - super(Dns.this, "POST", REST_PATH, content, com.google.api.services.dns.model.GoogleIamV1TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); + protected List(java.lang.String parent) { + super(Dns.this, "GET", REST_PATH, null, com.google.api.services.dns.model.ListOutboundEndpointsResponse.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(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/managedZones/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); + 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 resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * Required. The parent project and location from which to list resources. Format: + * projects/{project}/locations/{location} */ @com.google.api.client.util.Key - private java.lang.String resource; + private java.lang.String parent; - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. + /** Required. The parent project and location from which to list resources. Format: + projects/{project}/locations/{location} */ - public java.lang.String getResource() { - return resource; + public java.lang.String getParent() { + return parent; } /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. + * Required. The parent project and location from which to list resources. Format: + * projects/{project}/locations/{location} */ - public TestIamPermissions setResource(java.lang.String resource) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/managedZones/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.resource = resource; + this.parent = parent; + return this; + } + + @com.google.api.client.util.Key + private java.lang.String clientOperationId; + + /** + + */ + public java.lang.String getClientOperationId() { + return clientOperationId; + } + + public List setClientOperationId(java.lang.String clientOperationId) { + this.clientOperationId = clientOperationId; + return this; + } + + /** Optional. The maximum number of results to return. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of results to return. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. The maximum number of results to return. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A page token received from a previous List call. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token received from a previous List call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A page token received from a previous List call. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Updates an existing ManagedZone. + * Updates an existing Outbound Endpoint. * - * Create a request for the method "managedZones.update". + * Create a request for the method "outboundEndpoints.patch". * * This request holds the parameters needed by the dns server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation. + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param project Identifies the project addressed by this request. - * @param managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or ID. - * @param content the {@link com.google.api.services.dns.model.ManagedZone} + * @param name Identifier. The resource name of the OutboundEndpoint. Format: + * `projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint}` + * @param content the {@link com.google.api.services.dns.model.OutboundEndpoint} * @return the request */ - public Update update(java.lang.String project, java.lang.String managedZone, com.google.api.services.dns.model.ManagedZone content) throws java.io.IOException { - Update result = new Update(project, managedZone, content); + public Patch patch(java.lang.String name, com.google.api.services.dns.model.OutboundEndpoint content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class Update extends DnsRequest { + public class Patch extends DnsRequest { - private static final String REST_PATH = "dns/v1beta2/projects/{project}/managedZones/{managedZone}"; + private static final String REST_PATH = "dns/v1beta2/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/outboundEndpoints/[^/]+$"); /** - * Updates an existing ManagedZone. + * Updates an existing Outbound Endpoint. * - * Create a request for the method "managedZones.update". + * Create a request for the method "outboundEndpoints.patch". * * This request holds the parameters needed by the the dns server. After setting any optional - * parameters, call the {@link Update#execute()} method to invoke the remote operation.

{@link - * Update#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 project Identifies the project addressed by this request. - * @param managedZone Identifies the managed zone addressed by this request. Can be the managed zone name or ID. - * @param content the {@link com.google.api.services.dns.model.ManagedZone} + * @param name Identifier. The resource name of the OutboundEndpoint. Format: + * `projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint}` + * @param content the {@link com.google.api.services.dns.model.OutboundEndpoint} * @since 1.13 */ - protected Update(java.lang.String project, java.lang.String managedZone, com.google.api.services.dns.model.ManagedZone content) { - super(Dns.this, "PUT", REST_PATH, content, com.google.api.services.dns.model.Operation.class); - this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified."); - this.managedZone = com.google.api.client.util.Preconditions.checkNotNull(managedZone, "Required parameter managedZone must be specified."); + protected Patch(java.lang.String name, com.google.api.services.dns.model.OutboundEndpoint content) { + super(Dns.this, "PATCH", REST_PATH, content, com.google.api.services.dns.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/outboundEndpoints/[^/]+$"); + } } @Override - public Update set$Xgafv(java.lang.String $Xgafv) { - return (Update) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Update setAccessToken(java.lang.String accessToken) { - return (Update) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Update setAlt(java.lang.String alt) { - return (Update) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Update setCallback(java.lang.String callback) { - return (Update) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Update setFields(java.lang.String fields) { - return (Update) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Update setKey(java.lang.String key) { - return (Update) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Update setOauthToken(java.lang.String oauthToken) { - return (Update) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Update setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Update) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Update setQuotaUser(java.lang.String quotaUser) { - return (Update) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Update setUploadType(java.lang.String uploadType) { - return (Update) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Update setUploadProtocol(java.lang.String uploadProtocol) { - return (Update) super.setUploadProtocol(uploadProtocol); - } - - /** Identifies the project addressed by this request. */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Identifies the project addressed by this request. - */ - public java.lang.String getProject() { - return project; - } - - /** Identifies the project addressed by this request. */ - public Update setProject(java.lang.String project) { - this.project = project; - return this; + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** - * Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + * Identifier. The resource name of the OutboundEndpoint. Format: + * `projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint}` */ @com.google.api.client.util.Key - private java.lang.String managedZone; + private java.lang.String name; - /** Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + /** Identifier. The resource name of the OutboundEndpoint. Format: + `projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint}` */ - public java.lang.String getManagedZone() { - return managedZone; + public java.lang.String getName() { + return name; } /** - * Identifies the managed zone addressed by this request. Can be the managed zone name or ID. + * Identifier. The resource name of the OutboundEndpoint. Format: + * `projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint}` */ - public Update setManagedZone(java.lang.String managedZone) { - this.managedZone = managedZone; + 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/[^/]+/outboundEndpoints/[^/]+$"); + } + this.name = name; return this; } @@ -3055,14 +5040,46 @@ public java.lang.String getClientOperationId() { * For mutating operation requests only. An optional identifier specified by the client. Must * be unique for operation resources in the Operations collection. */ - public Update setClientOperationId(java.lang.String clientOperationId) { + public Patch setClientOperationId(java.lang.String clientOperationId) { this.clientOperationId = clientOperationId; return this; } + /** Optional. An optional request ID to identify requests. */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** Optional. An optional request ID to identify requests. */ + public Patch setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + /** Required. The list of fields to be updated. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The list of fields to be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. The list of fields to be updated. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Update set(String parameterName, Object value) { - return (Update) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } diff --git a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/Empty.java b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/Empty.java new file mode 100644 index 00000000000..382d1310dac --- /dev/null +++ b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/Empty.java @@ -0,0 +1,44 @@ +/* + * 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.dns.model; + +/** + * A generic empty message that you can re-use to avoid defining duplicated empty messages in your + * APIs. A typical example is to use it as the request or the response type of an API method. For + * instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + * + *

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 Cloud DNS 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 Empty extends com.google.api.client.json.GenericJson { + + @Override + public Empty set(String fieldName, Object value) { + return (Empty) super.set(fieldName, value); + } + + @Override + public Empty clone() { + return (Empty) super.clone(); + } + +} diff --git a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/GoogleLongrunningListOperationsResponse.java b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/GoogleLongrunningListOperationsResponse.java new file mode 100644 index 00000000000..54d6093a6c1 --- /dev/null +++ b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/GoogleLongrunningListOperationsResponse.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.dns.model; + +/** + * The response message for Operations.ListOperations. + * + *

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 Cloud DNS 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 GoogleLongrunningListOperationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of operations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List operations; + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleLongrunningListOperationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * A list of operations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getOperations() { + return operations; + } + + /** + * A list of operations that matches the specified filter in the request. + * @param operations operations or {@code null} for none + */ + public GoogleLongrunningListOperationsResponse setOperations(java.util.List operations) { + this.operations = operations; + return this; + } + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * @param unreachable unreachable or {@code null} for none + */ + public GoogleLongrunningListOperationsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public GoogleLongrunningListOperationsResponse set(String fieldName, Object value) { + return (GoogleLongrunningListOperationsResponse) super.set(fieldName, value); + } + + @Override + public GoogleLongrunningListOperationsResponse clone() { + return (GoogleLongrunningListOperationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/ListLocationsResponse.java b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/ListLocationsResponse.java new file mode 100644 index 00000000000..88119ad39a6 --- /dev/null +++ b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/ListLocationsResponse.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.dns.model; + +/** + * The response message for Locations.ListLocations. + * + *

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 Cloud DNS 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 ListLocationsResponse extends com.google.api.client.json.GenericJson { + + /** + * A list of locations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List locations; + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of locations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getLocations() { + return locations; + } + + /** + * A list of locations that matches the specified filter in the request. + * @param locations locations or {@code null} for none + */ + public ListLocationsResponse setLocations(java.util.List locations) { + this.locations = locations; + return this; + } + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListLocationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListLocationsResponse set(String fieldName, Object value) { + return (ListLocationsResponse) super.set(fieldName, value); + } + + @Override + public ListLocationsResponse clone() { + return (ListLocationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/ListOutboundEndpointsResponse.java b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/ListOutboundEndpointsResponse.java new file mode 100644 index 00000000000..cf49c9577d0 --- /dev/null +++ b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/ListOutboundEndpointsResponse.java @@ -0,0 +1,117 @@ +/* + * 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.dns.model; + +/** + * Response message for OutboundEndpointsService.ListOutboundEndpoints + * + *

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 Cloud DNS 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 ListOutboundEndpointsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token to retrieve the next page of results. Set to empty if there are no remaining results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of OutboundEndpoints. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List outboundEndpoints; + + /** + * Unordered list. The resource names of the unreachable locations. Format: + * `projects/{project}/locations/{location}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * A token to retrieve the next page of results. Set to empty if there are no remaining results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token to retrieve the next page of results. Set to empty if there are no remaining results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListOutboundEndpointsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The list of OutboundEndpoints. + * @return value or {@code null} for none + */ + public java.util.List getOutboundEndpoints() { + return outboundEndpoints; + } + + /** + * The list of OutboundEndpoints. + * @param outboundEndpoints outboundEndpoints or {@code null} for none + */ + public ListOutboundEndpointsResponse setOutboundEndpoints(java.util.List outboundEndpoints) { + this.outboundEndpoints = outboundEndpoints; + return this; + } + + /** + * Unordered list. The resource names of the unreachable locations. Format: + * `projects/{project}/locations/{location}` + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. The resource names of the unreachable locations. Format: + * `projects/{project}/locations/{location}` + * @param unreachable unreachable or {@code null} for none + */ + public ListOutboundEndpointsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListOutboundEndpointsResponse set(String fieldName, Object value) { + return (ListOutboundEndpointsResponse) super.set(fieldName, value); + } + + @Override + public ListOutboundEndpointsResponse clone() { + return (ListOutboundEndpointsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/Location.java b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/Location.java new file mode 100644 index 00000000000..2df4f1eec8b --- /dev/null +++ b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/Location.java @@ -0,0 +1,168 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.dns.model; + +/** + * A resource that represents a Google Cloud location. + * + *

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 Cloud DNS 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 Location extends com.google.api.client.json.GenericJson { + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The canonical id for this location. For example: `"us-east1"`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locationId; + + /** + * Service-specific metadata. For example the available capacity at the given location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @param displayName displayName or {@code null} for none + */ + public Location setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @param labels labels or {@code null} for none + */ + public Location setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @return value or {@code null} for none + */ + public java.lang.String getLocationId() { + return locationId; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @param locationId locationId or {@code null} for none + */ + public Location setLocationId(java.lang.String locationId) { + this.locationId = locationId; + return this; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @param metadata metadata or {@code null} for none + */ + public Location setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @param name name or {@code null} for none + */ + public Location setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public Location set(String fieldName, Object value) { + return (Location) super.set(fieldName, value); + } + + @Override + public Location clone() { + return (Location) super.clone(); + } + +} diff --git a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/ManagedZoneForwardingConfig.java b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/ManagedZoneForwardingConfig.java index 121aa554b40..569fc088638 100644 --- a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/ManagedZoneForwardingConfig.java +++ b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/ManagedZoneForwardingConfig.java @@ -35,6 +35,13 @@ public final class ManagedZoneForwardingConfig extends com.google.api.client.jso @com.google.api.client.util.Key private java.lang.String kind; + /** + * The list of outbound endpoints to use for queries. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List outboundEndpoints; + /** * List of target name servers to forward to. Cloud DNS selects the best available name server if * more than one target is given. @@ -58,6 +65,23 @@ public ManagedZoneForwardingConfig setKind(java.lang.String kind) { return this; } + /** + * The list of outbound endpoints to use for queries. + * @return value or {@code null} for none + */ + public java.util.List getOutboundEndpoints() { + return outboundEndpoints; + } + + /** + * The list of outbound endpoints to use for queries. + * @param outboundEndpoints outboundEndpoints or {@code null} for none + */ + public ManagedZoneForwardingConfig setOutboundEndpoints(java.util.List outboundEndpoints) { + this.outboundEndpoints = outboundEndpoints; + return this; + } + /** * List of target name servers to forward to. Cloud DNS selects the best available name server if * more than one target is given. diff --git a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/ManagedZoneForwardingConfigOutboundEndpoint.java b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/ManagedZoneForwardingConfigOutboundEndpoint.java new file mode 100644 index 00000000000..a7f1b167e91 --- /dev/null +++ b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/ManagedZoneForwardingConfigOutboundEndpoint.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.dns.model; + +/** + * Model definition for ManagedZoneForwardingConfigOutboundEndpoint. + * + *

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 Cloud DNS 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 ManagedZoneForwardingConfigOutboundEndpoint extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Specified as a resource path including project and region. This should be formatted like + * projects/{project}/locations/{location}/outboundEndpoints/{endpoint} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * @param kind kind or {@code null} for none + */ + public ManagedZoneForwardingConfigOutboundEndpoint setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Specified as a resource path including project and region. This should be formatted like + * projects/{project}/locations/{location}/outboundEndpoints/{endpoint} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Specified as a resource path including project and region. This should be formatted like + * projects/{project}/locations/{location}/outboundEndpoints/{endpoint} + * @param name name or {@code null} for none + */ + public ManagedZoneForwardingConfigOutboundEndpoint setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public ManagedZoneForwardingConfigOutboundEndpoint set(String fieldName, Object value) { + return (ManagedZoneForwardingConfigOutboundEndpoint) super.set(fieldName, value); + } + + @Override + public ManagedZoneForwardingConfigOutboundEndpoint clone() { + return (ManagedZoneForwardingConfigOutboundEndpoint) super.clone(); + } + +} diff --git a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/OperationMetadata.java b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/OperationMetadata.java new file mode 100644 index 00000000000..d2232ad6f09 --- /dev/null +++ b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/OperationMetadata.java @@ -0,0 +1,216 @@ +/* + * 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.dns.model; + +/** + * Represents the metadata of the long-running operation. + * + *

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 Cloud DNS 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 OperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. API version used to start the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. Server-defined resource path for the target of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String target; + + /** + * Output only. Name of the verb executed by the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String verb; + + /** + * Output only. API version used to start the operation. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Output only. API version used to start the operation. + * @param apiVersion apiVersion or {@code null} for none + */ + public OperationMetadata setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public OperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public OperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have successfully been cancelled have Operation.error value with a + * google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public OperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public OperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @return value or {@code null} for none + */ + public java.lang.String getTarget() { + return target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * @param target target or {@code null} for none + */ + public OperationMetadata setTarget(java.lang.String target) { + this.target = target; + return this; + } + + /** + * Output only. Name of the verb executed by the operation. + * @return value or {@code null} for none + */ + public java.lang.String getVerb() { + return verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * @param verb verb or {@code null} for none + */ + public OperationMetadata setVerb(java.lang.String verb) { + this.verb = verb; + return this; + } + + @Override + public OperationMetadata set(String fieldName, Object value) { + return (OperationMetadata) super.set(fieldName, value); + } + + @Override + public OperationMetadata clone() { + return (OperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/OutboundEndpoint.java b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/OutboundEndpoint.java new file mode 100644 index 00000000000..d1e65513efe --- /dev/null +++ b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/OutboundEndpoint.java @@ -0,0 +1,289 @@ +/* + * 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.dns.model; + +/** + * An OutboundEndpoint is a regional resource to enable outbound forwarding from a private IP range + * in VPCs to on-premise or other networks. + * + *

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 Cloud DNS 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 OutboundEndpoint extends com.google.api.client.json.GenericJson { + + /** + * Optional. Annotations as key value pairs + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map annotations; + + /** + * Output only. [Output only] Create time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. User provided description. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Immutable. User provided IP address to use for outbound DNS forwarding. This address + * must be a free address on the subnetwork. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String endpointIp; + + /** + * Optional. Labels as key value pairs + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Identifier. The resource name of the OutboundEndpoint. Format: + * `projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. Immutable. The VPC network containing the outbound endpoint, specified as full path. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String network; + + /** + * Required. Immutable. The subnetwork holding the endpoint_ip, specified as full path. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subnetwork; + + /** + * Optional. Tag bindings as key value pairs + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map tags; + + /** + * Output only. [Output only] Update time stamp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. Annotations as key value pairs + * @return value or {@code null} for none + */ + public java.util.Map getAnnotations() { + return annotations; + } + + /** + * Optional. Annotations as key value pairs + * @param annotations annotations or {@code null} for none + */ + public OutboundEndpoint setAnnotations(java.util.Map annotations) { + this.annotations = annotations; + return this; + } + + /** + * Output only. [Output only] Create time stamp + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. [Output only] Create time stamp + * @param createTime createTime or {@code null} for none + */ + public OutboundEndpoint setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. User provided description. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. User provided description. + * @param description description or {@code null} for none + */ + public OutboundEndpoint setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Immutable. User provided IP address to use for outbound DNS forwarding. This address + * must be a free address on the subnetwork. + * @return value or {@code null} for none + */ + public java.lang.String getEndpointIp() { + return endpointIp; + } + + /** + * Required. Immutable. User provided IP address to use for outbound DNS forwarding. This address + * must be a free address on the subnetwork. + * @param endpointIp endpointIp or {@code null} for none + */ + public OutboundEndpoint setEndpointIp(java.lang.String endpointIp) { + this.endpointIp = endpointIp; + return this; + } + + /** + * Optional. Labels as key value pairs + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. Labels as key value pairs + * @param labels labels or {@code null} for none + */ + public OutboundEndpoint setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Identifier. The resource name of the OutboundEndpoint. Format: + * `projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the OutboundEndpoint. Format: + * `projects/{project}/locations/{location}/outboundEndpoints/{outboundEndpoint}` + * @param name name or {@code null} for none + */ + public OutboundEndpoint setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. Immutable. The VPC network containing the outbound endpoint, specified as full path. + * @return value or {@code null} for none + */ + public java.lang.String getNetwork() { + return network; + } + + /** + * Required. Immutable. The VPC network containing the outbound endpoint, specified as full path. + * @param network network or {@code null} for none + */ + public OutboundEndpoint setNetwork(java.lang.String network) { + this.network = network; + return this; + } + + /** + * Required. Immutable. The subnetwork holding the endpoint_ip, specified as full path. + * @return value or {@code null} for none + */ + public java.lang.String getSubnetwork() { + return subnetwork; + } + + /** + * Required. Immutable. The subnetwork holding the endpoint_ip, specified as full path. + * @param subnetwork subnetwork or {@code null} for none + */ + public OutboundEndpoint setSubnetwork(java.lang.String subnetwork) { + this.subnetwork = subnetwork; + return this; + } + + /** + * Optional. Tag bindings as key value pairs + * @return value or {@code null} for none + */ + public java.util.Map getTags() { + return tags; + } + + /** + * Optional. Tag bindings as key value pairs + * @param tags tags or {@code null} for none + */ + public OutboundEndpoint setTags(java.util.Map tags) { + this.tags = tags; + return this; + } + + /** + * Output only. [Output only] Update time stamp + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. [Output only] Update time stamp + * @param updateTime updateTime or {@code null} for none + */ + public OutboundEndpoint setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public OutboundEndpoint set(String fieldName, Object value) { + return (OutboundEndpoint) super.set(fieldName, value); + } + + @Override + public OutboundEndpoint clone() { + return (OutboundEndpoint) super.clone(); + } + +} diff --git a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/PolicyAlternativeNameServerConfig.java b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/PolicyAlternativeNameServerConfig.java index 7e91440c799..f047d8f6d36 100644 --- a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/PolicyAlternativeNameServerConfig.java +++ b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/PolicyAlternativeNameServerConfig.java @@ -35,6 +35,13 @@ public final class PolicyAlternativeNameServerConfig extends com.google.api.clie @com.google.api.client.util.Key private java.lang.String kind; + /** + * The list of outbound endpoints to use for queries. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List outboundEndpoints; + /** * Sets an alternative name server for the associated networks. When specified, all DNS queries * are forwarded to a name server that you choose. Names such as .internal are not available when @@ -59,6 +66,23 @@ public PolicyAlternativeNameServerConfig setKind(java.lang.String kind) { return this; } + /** + * The list of outbound endpoints to use for queries. + * @return value or {@code null} for none + */ + public java.util.List getOutboundEndpoints() { + return outboundEndpoints; + } + + /** + * The list of outbound endpoints to use for queries. + * @param outboundEndpoints outboundEndpoints or {@code null} for none + */ + public PolicyAlternativeNameServerConfig setOutboundEndpoints(java.util.List outboundEndpoints) { + this.outboundEndpoints = outboundEndpoints; + return this; + } + /** * Sets an alternative name server for the associated networks. When specified, all DNS queries * are forwarded to a name server that you choose. Names such as .internal are not available when diff --git a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/PolicyAlternativeNameServerConfigOutboundEndpoint.java b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/PolicyAlternativeNameServerConfigOutboundEndpoint.java new file mode 100644 index 00000000000..b7bb7385e3e --- /dev/null +++ b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/PolicyAlternativeNameServerConfigOutboundEndpoint.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.dns.model; + +/** + * Model definition for PolicyAlternativeNameServerConfigOutboundEndpoint. + * + *

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 Cloud DNS 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 PolicyAlternativeNameServerConfigOutboundEndpoint extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Specified as a resource path including project and region. This should be formatted like + * projects/{project}/locations/{location}/outboundEndpoints/{endpoint} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * @param kind kind or {@code null} for none + */ + public PolicyAlternativeNameServerConfigOutboundEndpoint setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Specified as a resource path including project and region. This should be formatted like + * projects/{project}/locations/{location}/outboundEndpoints/{endpoint} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Specified as a resource path including project and region. This should be formatted like + * projects/{project}/locations/{location}/outboundEndpoints/{endpoint} + * @param name name or {@code null} for none + */ + public PolicyAlternativeNameServerConfigOutboundEndpoint setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public PolicyAlternativeNameServerConfigOutboundEndpoint set(String fieldName, Object value) { + return (PolicyAlternativeNameServerConfigOutboundEndpoint) super.set(fieldName, value); + } + + @Override + public PolicyAlternativeNameServerConfigOutboundEndpoint clone() { + return (PolicyAlternativeNameServerConfigOutboundEndpoint) super.clone(); + } + +} diff --git a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/Quota.java b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/Quota.java index 35b8b2c26a7..47064400cc3 100644 --- a/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/Quota.java +++ b/clients/google-api-services-dns/v1beta2/2.0.0/com/google/api/services/dns/model/Quota.java @@ -125,6 +125,20 @@ public final class Quota extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.Integer networksPerResponsePolicy; + /** + * Maximum allowed number of outbound endpoints per managed zone. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer outboundEndpointsPerManagedZone; + + /** + * Maximum allowed number of outbound endpoints per policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer outboundEndpointsPerPolicy; + /** * Maximum allowed number of consumer peering zones per target network owned by this producer * project @@ -450,6 +464,40 @@ public Quota setNetworksPerResponsePolicy(java.lang.Integer networksPerResponseP return this; } + /** + * Maximum allowed number of outbound endpoints per managed zone. + * @return value or {@code null} for none + */ + public java.lang.Integer getOutboundEndpointsPerManagedZone() { + return outboundEndpointsPerManagedZone; + } + + /** + * Maximum allowed number of outbound endpoints per managed zone. + * @param outboundEndpointsPerManagedZone outboundEndpointsPerManagedZone or {@code null} for none + */ + public Quota setOutboundEndpointsPerManagedZone(java.lang.Integer outboundEndpointsPerManagedZone) { + this.outboundEndpointsPerManagedZone = outboundEndpointsPerManagedZone; + return this; + } + + /** + * Maximum allowed number of outbound endpoints per policy. + * @return value or {@code null} for none + */ + public java.lang.Integer getOutboundEndpointsPerPolicy() { + return outboundEndpointsPerPolicy; + } + + /** + * Maximum allowed number of outbound endpoints per policy. + * @param outboundEndpointsPerPolicy outboundEndpointsPerPolicy or {@code null} for none + */ + public Quota setOutboundEndpointsPerPolicy(java.lang.Integer outboundEndpointsPerPolicy) { + this.outboundEndpointsPerPolicy = outboundEndpointsPerPolicy; + return this; + } + /** * Maximum allowed number of consumer peering zones per target network owned by this producer * project diff --git a/clients/google-api-services-dns/v1beta2/2.0.0/pom.xml b/clients/google-api-services-dns/v1beta2/2.0.0/pom.xml index fe908083116..78ac7f7c413 100644 --- a/clients/google-api-services-dns/v1beta2/2.0.0/pom.xml +++ b/clients/google-api-services-dns/v1beta2/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-dns - v1beta2-rev20260915-2.0.0 - Cloud DNS API v1beta2-rev20260915-2.0.0 + v1beta2-rev20261002-2.0.0 + Cloud DNS API v1beta2-rev20261002-2.0.0 jar 2011 diff --git a/clients/google-api-services-dns/v1beta2/README.md b/clients/google-api-services-dns/v1beta2/README.md index 44d56e196e1..390f0ee504b 100644 --- a/clients/google-api-services-dns/v1beta2/README.md +++ b/clients/google-api-services-dns/v1beta2/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-dns - v1beta2-rev20260915-2.0.0 + v1beta2-rev20261002-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-dns:v1beta2-rev20260915-2.0.0' + implementation 'com.google.apis:google-api-services-dns:v1beta2-rev20261002-2.0.0' } ```