diff --git a/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/README.md b/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/README.md index 23de5550ae8..d6f5a56a64c 100644 --- a/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/README.md +++ b/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-cloudnumberregistry - v1alpha-rev20260708-2.0.0 + v1alpha-rev20260819-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudnumberregistry:v1alpha-rev20260708-2.0.0' + implementation 'com.google.apis:google-api-services-cloudnumberregistry:v1alpha-rev20260819-2.0.0' } ``` diff --git a/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/com/google/api/services/cloudnumberregistry/v1alpha/CloudNumberRegistry.java b/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/com/google/api/services/cloudnumberregistry/v1alpha/CloudNumberRegistry.java index b56741fa1cc..708ffb63d78 100644 --- a/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/com/google/api/services/cloudnumberregistry/v1alpha/CloudNumberRegistry.java +++ b/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/com/google/api/services/cloudnumberregistry/v1alpha/CloudNumberRegistry.java @@ -133,6 +133,1452 @@ protected void initialize(com.google.api.client.googleapis.services.AbstractGoog super.initialize(httpClientRequest); } + /** + * An accessor for creating requests from the Organizations collection. + * + *

The typical use is:

+ *
+   *   {@code CloudNumberRegistry cloudnumberregistry = new CloudNumberRegistry(...);}
+   *   {@code CloudNumberRegistry.Organizations.List request = cloudnumberregistry.organizations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Organizations organizations() { + return new Organizations(); + } + + /** + * The "organizations" collection of methods. + */ + public class Organizations { + + /** + * An accessor for creating requests from the Locations collection. + * + *

The typical use is:

+ *
+     *   {@code CloudNumberRegistry cloudnumberregistry = new CloudNumberRegistry(...);}
+     *   {@code CloudNumberRegistry.Locations.List request = cloudnumberregistry.locations().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+       *   {@code CloudNumberRegistry cloudnumberregistry = new CloudNumberRegistry(...);}
+       *   {@code CloudNumberRegistry.Operations.List request = cloudnumberregistry.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 cloudnumberregistry 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. + * @param content the {@link com.google.api.services.cloudnumberregistry.v1alpha.model.CancelOperationRequest} + * @return the request + */ + public Cancel cancel(java.lang.String name, com.google.api.services.cloudnumberregistry.v1alpha.model.CancelOperationRequest content) throws java.io.IOException { + Cancel result = new Cancel(name, content); + initialize(result); + return result; + } + + public class Cancel extends CloudNumberRegistryRequest { + + private static final String REST_PATH = "v1alpha/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/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 cloudnumberregistry 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. + * @param content the {@link com.google.api.services.cloudnumberregistry.v1alpha.model.CancelOperationRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.cloudnumberregistry.v1alpha.model.CancelOperationRequest content) { + super(CloudNumberRegistry.this, "POST", REST_PATH, content, com.google.api.services.cloudnumberregistry.v1alpha.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 " + + "^organizations/[^/]+/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 " + + "^organizations/[^/]+/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 cloudnumberregistry 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 CloudNumberRegistryRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/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 cloudnumberregistry 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(CloudNumberRegistry.this, "DELETE", REST_PATH, null, com.google.api.services.cloudnumberregistry.v1alpha.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 " + + "^organizations/[^/]+/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 " + + "^organizations/[^/]+/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 cloudnumberregistry 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 CloudNumberRegistryRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/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 cloudnumberregistry 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(CloudNumberRegistry.this, "GET", REST_PATH, null, com.google.api.services.cloudnumberregistry.v1alpha.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** 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 " + + "^organizations/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * 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 "operations.list". + * + * This request holds the parameters needed by the cloudnumberregistry server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends CloudNumberRegistryRequest { + + private static final String REST_PATH = "v1alpha/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + + /** + * 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 "operations.list". + * + * This request holds the parameters needed by the the cloudnumberregistry 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 name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(CloudNumberRegistry.this, "GET", REST_PATH, null, com.google.api.services.cloudnumberregistry.v1alpha.model.ListOperationsResponse.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 " + + "^organizations/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** 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 " + + "^organizations/[^/]+/locations/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** 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; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** 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; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * 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.Boolean returnPartialSuccess; + + /** 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.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * 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 List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the OrgNumberRegistries collection. + * + *

The typical use is:

+ *
+       *   {@code CloudNumberRegistry cloudnumberregistry = new CloudNumberRegistry(...);}
+       *   {@code CloudNumberRegistry.OrgNumberRegistries.List request = cloudnumberregistry.orgNumberRegistries().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public OrgNumberRegistries orgNumberRegistries() { + return new OrgNumberRegistries(); + } + + /** + * The "orgNumberRegistries" collection of methods. + */ + public class OrgNumberRegistries { + + /** + * Creates a new OrgNumberRegistry in a given organization and location. + * + * Create a request for the method "orgNumberRegistries.create". + * + * This request holds the parameters needed by the cloudnumberregistry server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource name where the OrgNumberRegistry will be created. + * @param content the {@link com.google.api.services.cloudnumberregistry.v1alpha.model.OrgNumberRegistry} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.cloudnumberregistry.v1alpha.model.OrgNumberRegistry content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CloudNumberRegistryRequest { + + private static final String REST_PATH = "v1alpha/{+parent}/orgNumberRegistries"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + + /** + * Creates a new OrgNumberRegistry in a given organization and location. + * + * Create a request for the method "orgNumberRegistries.create". + * + * This request holds the parameters needed by the the cloudnumberregistry server. After setting + * any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation.

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

+ * + * @param parent Required. The parent resource name where the OrgNumberRegistry will be created. + * @param content the {@link com.google.api.services.cloudnumberregistry.v1alpha.model.OrgNumberRegistry} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.cloudnumberregistry.v1alpha.model.OrgNumberRegistry content) { + super(CloudNumberRegistry.this, "POST", REST_PATH, content, com.google.api.services.cloudnumberregistry.v1alpha.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource name where the OrgNumberRegistry will be created. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource name where the OrgNumberRegistry will be created. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource name where the OrgNumberRegistry will be created. */ + 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 " + + "^organizations/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Required. The ID to use for the OrgNumberRegistry, which will become the final segment + * of the resource name. + */ + @com.google.api.client.util.Key + private java.lang.String orgNumberRegistryId; + + /** Required. The ID to use for the OrgNumberRegistry, which will become the final segment of the + resource name. + */ + public java.lang.String getOrgNumberRegistryId() { + return orgNumberRegistryId; + } + + /** + * Required. The ID to use for the OrgNumberRegistry, which will become the final segment + * of the resource name. + */ + public Create setOrgNumberRegistryId(java.lang.String orgNumberRegistryId) { + this.orgNumberRegistryId = orgNumberRegistryId; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes after the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Create setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a single OrgNumberRegistry. + * + * Create a request for the method "orgNumberRegistries.delete". + * + * This request holds the parameters needed by the cloudnumberregistry server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the OrgNumberRegistry to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends CloudNumberRegistryRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/orgNumberRegistries/[^/]+$"); + + /** + * Deletes a single OrgNumberRegistry. + * + * Create a request for the method "orgNumberRegistries.delete". + * + * This request holds the parameters needed by the the cloudnumberregistry server. After setting + * any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * operation.

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

+ * + * @param name Required. The resource name of the OrgNumberRegistry to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CloudNumberRegistry.this, "DELETE", REST_PATH, null, com.google.api.services.cloudnumberregistry.v1alpha.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/orgNumberRegistries/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the OrgNumberRegistry to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the OrgNumberRegistry to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the OrgNumberRegistry to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+/orgNumberRegistries/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + @com.google.api.client.util.Key + private java.lang.String requestId; + + /** Optional. An optional request ID to identify requests. Specify a unique request ID so that if you + must retry your request, the server will know to ignore the request if it has already been + completed. The server will guarantee that for at least 60 minutes after the first request. For + example, consider a situation where you make an initial request and the request times out. If you + make the request again with the same request ID, the server can check if original operation with + the same request ID was received, and if so, will ignore the second request. This prevents clients + from accidentally creating duplicate commitments. The request ID must be a valid UUID with the + exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public java.lang.String getRequestId() { + return requestId; + } + + /** + * Optional. An optional request ID to identify requests. Specify a unique request ID so + * that if you must retry your request, the server will know to ignore the request if it + * has already been completed. The server will guarantee that for at least 60 minutes + * after the first request. For example, consider a situation where you make an initial + * request and the request times out. If you make the request again with the same request + * ID, the server can check if original operation with the same request ID was received, + * and if so, will ignore the second request. This prevents clients from accidentally + * creating duplicate commitments. The request ID must be a valid UUID with the exception + * that zero UUID is not supported (00000000-0000-0000-0000-000000000000). + */ + public Delete setRequestId(java.lang.String requestId) { + this.requestId = requestId; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of a single OrgNumberRegistry. + * + * Create a request for the method "orgNumberRegistries.get". + * + * This request holds the parameters needed by the cloudnumberregistry server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the OrgNumberRegistry to retrieve. + * @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 CloudNumberRegistryRequest { + + private static final String REST_PATH = "v1alpha/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+/orgNumberRegistries/[^/]+$"); + + /** + * Gets details of a single OrgNumberRegistry. + * + * Create a request for the method "orgNumberRegistries.get". + * + * This request holds the parameters needed by the the cloudnumberregistry server. After setting + * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The resource name of the OrgNumberRegistry to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudNumberRegistry.this, "GET", REST_PATH, null, com.google.api.services.cloudnumberregistry.v1alpha.model.OrgNumberRegistry.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 " + + "^organizations/[^/]+/locations/[^/]+/orgNumberRegistries/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the OrgNumberRegistry to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the OrgNumberRegistry to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the OrgNumberRegistry to retrieve. */ + 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 " + + "^organizations/[^/]+/locations/[^/]+/orgNumberRegistries/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists OrgNumberRegistries in a given organization and location. + * + * Create a request for the method "orgNumberRegistries.list". + * + * This request holds the parameters needed by the cloudnumberregistry server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource name, for example `organizations/locations`. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends CloudNumberRegistryRequest { + + private static final String REST_PATH = "v1alpha/{+parent}/orgNumberRegistries"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/locations/[^/]+$"); + + /** + * Lists OrgNumberRegistries in a given organization and location. + * + * Create a request for the method "orgNumberRegistries.list". + * + * This request holds the parameters needed by the the cloudnumberregistry server. After setting + * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. + *

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

+ * + * @param parent Required. The parent resource name, for example `organizations/locations`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudNumberRegistry.this, "GET", REST_PATH, null, com.google.api.services.cloudnumberregistry.v1alpha.model.ListOrgNumberRegistriesResponse.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 " + + "^organizations/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource name, for example `organizations/locations`. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource name, for example `organizations/locations`. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource name, for example `organizations/locations`. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Filter expression to filter the results. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter expression to filter the results. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. Filter expression to filter the results. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. Hint for how to order the results. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Hint for how to order the results. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. Hint for how to order the results. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Optional. A token identifying a page of results the server should return. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A token identifying a page of results the server should return. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Optional. A token identifying a page of results the server should return. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + } + } + /** * An accessor for creating requests from the Projects collection. * diff --git a/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/com/google/api/services/cloudnumberregistry/v1alpha/model/ListOrgNumberRegistriesResponse.java b/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/com/google/api/services/cloudnumberregistry/v1alpha/model/ListOrgNumberRegistriesResponse.java new file mode 100644 index 00000000000..176d20252bc --- /dev/null +++ b/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/com/google/api/services/cloudnumberregistry/v1alpha/model/ListOrgNumberRegistriesResponse.java @@ -0,0 +1,118 @@ +/* + * 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.cloudnumberregistry.v1alpha.model; + +/** + * Response message for the CloudNumberRegistry.ListOrgNumberRegistries method. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud Number Registry 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 ListOrgNumberRegistriesResponse extends com.google.api.client.json.GenericJson { + + /** + * A token to retrieve the next page of results, or empty if there are no more results in the + * list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of OrgNumberRegistries. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List orgNumberRegistries; + + /** + * Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * A token to retrieve the next page of results, or empty if there are no more results in the + * list. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token to retrieve the next page of results, or empty if there are no more results in the + * list. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListOrgNumberRegistriesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The list of OrgNumberRegistries. + * @return value or {@code null} for none + */ + public java.util.List getOrgNumberRegistries() { + return orgNumberRegistries; + } + + /** + * The list of OrgNumberRegistries. + * @param orgNumberRegistries orgNumberRegistries or {@code null} for none + */ + public ListOrgNumberRegistriesResponse setOrgNumberRegistries(java.util.List orgNumberRegistries) { + this.orgNumberRegistries = orgNumberRegistries; + return this; + } + + /** + * Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListOrgNumberRegistriesResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListOrgNumberRegistriesResponse set(String fieldName, Object value) { + return (ListOrgNumberRegistriesResponse) super.set(fieldName, value); + } + + @Override + public ListOrgNumberRegistriesResponse clone() { + return (ListOrgNumberRegistriesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/com/google/api/services/cloudnumberregistry/v1alpha/model/OrgNumberRegistry.java b/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/com/google/api/services/cloudnumberregistry/v1alpha/model/OrgNumberRegistry.java new file mode 100644 index 00000000000..620743cab49 --- /dev/null +++ b/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/com/google/api/services/cloudnumberregistry/v1alpha/model/OrgNumberRegistry.java @@ -0,0 +1,194 @@ +/* + * 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.cloudnumberregistry.v1alpha.model; + +/** + * An OrgNumberRegistry defines a delegation of authority from an organization to a project, + * allowing the project to manage IP address data within specified scopes of the organization. + * + *

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 Number Registry 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 OrgNumberRegistry extends com.google.api.client.json.GenericJson { + + /** + * Required. The project that will act as the admin project for CNR resources Format: + * projects/{project_number} or projects/{project_id} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String adminProject; + + /** + * Output only. The time at which the OrgNumberRegistry was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. User-defined labels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Identifier. The resource name of the OrgNumberRegistry. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The scopes within the organization that the project is able to manage. Currently only + * organization scope is supported. For example, "organizations/1234567890". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List targetScopes; + + /** + * Output only. The time at which the OrgNumberRegistry was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. The project that will act as the admin project for CNR resources Format: + * projects/{project_number} or projects/{project_id} + * @return value or {@code null} for none + */ + public java.lang.String getAdminProject() { + return adminProject; + } + + /** + * Required. The project that will act as the admin project for CNR resources Format: + * projects/{project_number} or projects/{project_id} + * @param adminProject adminProject or {@code null} for none + */ + public OrgNumberRegistry setAdminProject(java.lang.String adminProject) { + this.adminProject = adminProject; + return this; + } + + /** + * Output only. The time at which the OrgNumberRegistry was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time at which the OrgNumberRegistry was created. + * @param createTime createTime or {@code null} for none + */ + public OrgNumberRegistry setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. User-defined labels. + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Optional. User-defined labels. + * @param labels labels or {@code null} for none + */ + public OrgNumberRegistry setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Identifier. The resource name of the OrgNumberRegistry. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the OrgNumberRegistry. + * @param name name or {@code null} for none + */ + public OrgNumberRegistry setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The scopes within the organization that the project is able to manage. Currently only + * organization scope is supported. For example, "organizations/1234567890". + * @return value or {@code null} for none + */ + public java.util.List getTargetScopes() { + return targetScopes; + } + + /** + * Required. The scopes within the organization that the project is able to manage. Currently only + * organization scope is supported. For example, "organizations/1234567890". + * @param targetScopes targetScopes or {@code null} for none + */ + public OrgNumberRegistry setTargetScopes(java.util.List targetScopes) { + this.targetScopes = targetScopes; + return this; + } + + /** + * Output only. The time at which the OrgNumberRegistry was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The time at which the OrgNumberRegistry was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public OrgNumberRegistry setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public OrgNumberRegistry set(String fieldName, Object value) { + return (OrgNumberRegistry) super.set(fieldName, value); + } + + @Override + public OrgNumberRegistry clone() { + return (OrgNumberRegistry) super.clone(); + } + +} diff --git a/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/pom.xml b/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/pom.xml index 5f62406e9bc..5c615dfbd22 100644 --- a/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/pom.xml +++ b/clients/google-api-services-cloudnumberregistry/v1alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-cloudnumberregistry - v1alpha-rev20260708-2.0.0 - Cloud Number Registry API v1alpha-rev20260708-2.0.0 + v1alpha-rev20260819-2.0.0 + Cloud Number Registry API v1alpha-rev20260819-2.0.0 jar 2011 diff --git a/clients/google-api-services-cloudnumberregistry/v1alpha/README.md b/clients/google-api-services-cloudnumberregistry/v1alpha/README.md index 23de5550ae8..d6f5a56a64c 100644 --- a/clients/google-api-services-cloudnumberregistry/v1alpha/README.md +++ b/clients/google-api-services-cloudnumberregistry/v1alpha/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-cloudnumberregistry - v1alpha-rev20260708-2.0.0 + v1alpha-rev20260819-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-cloudnumberregistry:v1alpha-rev20260708-2.0.0' + implementation 'com.google.apis:google-api-services-cloudnumberregistry:v1alpha-rev20260819-2.0.0' } ```