diff --git a/clients/google-api-services-run/v1/2.0.0/README.md b/clients/google-api-services-run/v1/2.0.0/README.md index dcbce2e3f5e..ab94b9e2341 100644 --- a/clients/google-api-services-run/v1/2.0.0/README.md +++ b/clients/google-api-services-run/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-run - v1-rev20251202-2.0.0 + v1-rev20260206-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-run:v1-rev20251202-2.0.0' + implementation 'com.google.apis:google-api-services-run:v1-rev20260206-2.0.0' } ``` diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/CloudRun.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/CloudRun.java index 18f96c4c7ec..07ca4b40259 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/CloudRun.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/CloudRun.java @@ -103,7 +103,7 @@ public class CloudRun extends com.google.api.client.googleapis.services.json.Abs * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * * @param jsonFactory JSON factory, which may be: @@ -2404,68 +2404,70 @@ public List set(String parameterName, Object value) { } /** - * An accessor for creating requests from the Jobs collection. + * An accessor for creating requests from the Instances collection. * *

    The typical use is:

    *
          *   {@code CloudRun run = new CloudRun(...);}
    -     *   {@code CloudRun.Jobs.List request = run.jobs().list(parameters ...)}
    +     *   {@code CloudRun.Instances.List request = run.instances().list(parameters ...)}
          * 
    * * @return the resource collection */ - public Jobs jobs() { - return new Jobs(); + public Instances instances() { + return new Instances(); } /** - * The "jobs" collection of methods. + * The "instances" collection of methods. */ - public class Jobs { + public class Instances { /** - * Create a job. + * Create a Instance. * - * Create a request for the method "jobs.create". + * Create a request for the method "instances.create". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. The namespace in which the job should be created. Replace {namespace} with the project ID - * or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID - * @param content the {@link com.google.api.services.run.v1.model.Job} + * @param parent Required. The namespace in which the Instance should be created. Replace {namespace} with the + * project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID + * @param content the {@link com.google.api.services.run.v1.model.Instance} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.run.v1.model.Job content) throws java.io.IOException { + public Create create(java.lang.String parent, com.google.api.services.run.v1.model.Instance content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; } - public class Create extends CloudRunRequest { + public class Create extends CloudRunRequest { - private static final String REST_PATH = "apis/run.googleapis.com/v1/{+parent}/jobs"; + private static final String REST_PATH = "apis/run.googleapis.com/v1/{+parent}/instances"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** - * Create a job. + * Create a Instance. * - * Create a request for the method "jobs.create". + * Create a request for the method "instances.create". * * This request holds the parameters needed by the the run 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 namespace in which the job should be created. Replace {namespace} with the project ID - * or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID - * @param content the {@link com.google.api.services.run.v1.model.Job} + * @param parent Required. The namespace in which the Instance should be created. Replace {namespace} with the + * project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID + * @param content the {@link com.google.api.services.run.v1.model.Instance} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.run.v1.model.Job content) { - super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.Job.class); + protected Create(java.lang.String parent, com.google.api.services.run.v1.model.Instance content) { + super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.Instance.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(), @@ -2530,23 +2532,23 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The namespace in which the job should be created. Replace {namespace} with the - * project ID or number. It takes the form namespaces/{namespace}. For example: + * Required. The namespace in which the Instance should be created. Replace {namespace} with + * the project ID or number. It takes the form namespaces/{namespace}. For example: * namespaces/PROJECT_ID */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The namespace in which the job should be created. Replace {namespace} with the project ID - or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + /** Required. The namespace in which the Instance should be created. Replace {namespace} with the + project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ public java.lang.String getParent() { return parent; } /** - * Required. The namespace in which the job should be created. Replace {namespace} with the - * project ID or number. It takes the form namespaces/{namespace}. For example: + * Required. The namespace in which the Instance should be created. Replace {namespace} with + * the project ID or number. It takes the form namespaces/{namespace}. For example: * namespaces/PROJECT_ID */ public Create setParent(java.lang.String parent) { @@ -2565,15 +2567,15 @@ public Create set(String parameterName, Object value) { } } /** - * Delete a job. + * Delete a Instance. * - * Create a request for the method "jobs.delete". + * Create a request for the method "instances.delete". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the job to delete. Replace {namespace} with the project ID or number. It takes - * the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param name Required. The name of the Instance to delete. Replace {namespace} with the project ID or number. It + * takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -2587,20 +2589,20 @@ public class Delete extends CloudRunRequest {@link * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

    * - * @param name Required. The name of the job to delete. Replace {namespace} with the project ID or number. It takes - * the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param name Required. The name of the Instance to delete. Replace {namespace} with the project ID or number. It + * takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * @since 1.13 */ protected Delete(java.lang.String name) { @@ -2609,7 +2611,7 @@ protected Delete(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 " + - "^namespaces/[^/]+/jobs/[^/]+$"); + "^namespaces/[^/]+/instances/[^/]+$"); } } @@ -2669,13 +2671,13 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the job to delete. Replace {namespace} with the project ID or + * Required. The name of the Instance to delete. Replace {namespace} with the project ID or * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the job to delete. Replace {namespace} with the project ID or number. It + /** Required. The name of the Instance to delete. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ public java.lang.String getName() { @@ -2683,14 +2685,14 @@ public java.lang.String getName() { } /** - * Required. The name of the job to delete. Replace {namespace} with the project ID or + * Required. The name of the Instance to delete. Replace {namespace} with the project ID or * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ 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 " + - "^namespaces/[^/]+/jobs/[^/]+$"); + "^namespaces/[^/]+/instances/[^/]+$"); } this.name = name; return this; @@ -2762,15 +2764,16 @@ public Delete set(String parameterName, Object value) { } } /** - * Get information about a job. + * Get an Instance. * - * Create a request for the method "jobs.get". + * Create a request for the method "instances.get". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the job to retrieve. It takes the form namespaces/{namespace}/jobs/{job_name} - * and the `endpoint` must be regional. Replace {namespace} with the project ID or number. + * @param name Required. The name of the Instance to retrieve. It takes the form + * namespaces/{namespace}/instances/{Instance_name} and the `endpoint` must be regional. + * Replace {namespace} with the project ID or number. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -2779,34 +2782,35 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends CloudRunRequest { + public class Get extends CloudRunRequest { private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+/jobs/[^/]+$"); + java.util.regex.Pattern.compile("^namespaces/[^/]+/instances/[^/]+$"); /** - * Get information about a job. + * Get an Instance. * - * Create a request for the method "jobs.get". + * Create a request for the method "instances.get". * * This request holds the parameters needed by the the run 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 name of the job to retrieve. It takes the form namespaces/{namespace}/jobs/{job_name} - * and the `endpoint` must be regional. Replace {namespace} with the project ID or number. + * @param name Required. The name of the Instance to retrieve. It takes the form + * namespaces/{namespace}/instances/{Instance_name} and the `endpoint` must be regional. + * Replace {namespace} with the project ID or number. * @since 1.13 */ protected Get(java.lang.String name) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.Job.class); + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.Instance.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 " + - "^namespaces/[^/]+/jobs/[^/]+$"); + "^namespaces/[^/]+/instances/[^/]+$"); } } @@ -2876,30 +2880,31 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The name of the job to retrieve. It takes the form - * namespaces/{namespace}/jobs/{job_name} and the `endpoint` must be regional. Replace - * {namespace} with the project ID or number. + * Required. The name of the Instance to retrieve. It takes the form + * namespaces/{namespace}/instances/{Instance_name} and the `endpoint` must be regional. + * Replace {namespace} with the project ID or number. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the job to retrieve. It takes the form namespaces/{namespace}/jobs/{job_name} - and the `endpoint` must be regional. Replace {namespace} with the project ID or number. + /** Required. The name of the Instance to retrieve. It takes the form + namespaces/{namespace}/instances/{Instance_name} and the `endpoint` must be regional. Replace + {namespace} with the project ID or number. */ public java.lang.String getName() { return name; } /** - * Required. The name of the job to retrieve. It takes the form - * namespaces/{namespace}/jobs/{job_name} and the `endpoint` must be regional. Replace - * {namespace} with the project ID or number. + * Required. The name of the Instance to retrieve. It takes the form + * namespaces/{namespace}/instances/{Instance_name} and the `endpoint` must be regional. + * Replace {namespace} with the project ID or number. */ 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 " + - "^namespaces/[^/]+/jobs/[^/]+$"); + "^namespaces/[^/]+/instances/[^/]+$"); } this.name = name; return this; @@ -2911,15 +2916,16 @@ public Get set(String parameterName, Object value) { } } /** - * List jobs. Results are sorted by creation time, descending. + * List Instances. Results are sorted by creation time, descending. * - * Create a request for the method "jobs.list". + * Create a request for the method "instances.list". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The namespace from which the jobs should be listed. Replace {namespace} with the project - * ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param parent Required. The namespace from which the Instances should be listed. Replace {namespace} with the + * project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -2928,29 +2934,30 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends CloudRunRequest { + public class List extends CloudRunRequest { - private static final String REST_PATH = "apis/run.googleapis.com/v1/{+parent}/jobs"; + private static final String REST_PATH = "apis/run.googleapis.com/v1/{+parent}/instances"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** - * List jobs. Results are sorted by creation time, descending. + * List Instances. Results are sorted by creation time, descending. * - * Create a request for the method "jobs.list". + * Create a request for the method "instances.list". * * This request holds the parameters needed by the the run 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 namespace from which the jobs should be listed. Replace {namespace} with the project - * ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param parent Required. The namespace from which the Instances should be listed. Replace {namespace} with the + * project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID * @since 1.13 */ protected List(java.lang.String parent) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListJobsResponse.class); + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListInstancesResponse.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(), @@ -3025,23 +3032,23 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The namespace from which the jobs should be listed. Replace {namespace} with - * the project ID or number. It takes the form namespaces/{namespace}. For example: + * Required. The namespace from which the Instances should be listed. Replace {namespace} + * with the project ID or number. It takes the form namespaces/{namespace}. For example: * namespaces/PROJECT_ID */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The namespace from which the jobs should be listed. Replace {namespace} with the project - ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + /** Required. The namespace from which the Instances should be listed. Replace {namespace} with the + project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ public java.lang.String getParent() { return parent; } /** - * Required. The namespace from which the jobs should be listed. Replace {namespace} with - * the project ID or number. It takes the form namespaces/{namespace}. For example: + * Required. The namespace from which the Instances should be listed. Replace {namespace} + * with the project ID or number. It takes the form namespaces/{namespace}. For example: * namespaces/PROJECT_ID */ public List setParent(java.lang.String parent) { @@ -3179,125 +3186,119 @@ public List set(String parameterName, Object value) { } } /** - * Replace a job. Only the spec and metadata labels and annotations are modifiable. After the - * Replace request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide - * metadata.resourceVersion to enforce update from last read for optimistic concurrency control. + * Start an Instance which has been stopped. * - * Create a request for the method "jobs.replaceJob". + * Create a request for the method "instances.start". * * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link ReplaceJob#execute()} method to invoke the remote operation. + * parameters, call the {@link Start#execute()} method to invoke the remote operation. * - * @param name Required. The name of the job being replaced. Replace {namespace} with the project ID or number. It + * @param name Required. The name of the Instance to run. Replace {namespace} with the project ID or number. It * takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID - * @param content the {@link com.google.api.services.run.v1.model.Job} + * @param content the {@link com.google.api.services.run.v1.model.StartInstanceRequest} * @return the request */ - public ReplaceJob replaceJob(java.lang.String name, com.google.api.services.run.v1.model.Job content) throws java.io.IOException { - ReplaceJob result = new ReplaceJob(name, content); + public Start start(java.lang.String name, com.google.api.services.run.v1.model.StartInstanceRequest content) throws java.io.IOException { + Start result = new Start(name, content); initialize(result); return result; } - public class ReplaceJob extends CloudRunRequest { + public class Start extends CloudRunRequest { - private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; + private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}:start"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+/jobs/[^/]+$"); + java.util.regex.Pattern.compile("^namespaces/[^/]+/instances/[^/]+$"); /** - * Replace a job. Only the spec and metadata labels and annotations are modifiable. After the - * Replace request, Cloud Run will work to make the 'status' match the requested 'spec'. May - * provide metadata.resourceVersion to enforce update from last read for optimistic concurrency - * control. + * Start an Instance which has been stopped. * - * Create a request for the method "jobs.replaceJob". + * Create a request for the method "instances.start". * * This request holds the parameters needed by the the run server. After setting any optional - * parameters, call the {@link ReplaceJob#execute()} method to invoke the remote operation.

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

    + * parameters, call the {@link Start#execute()} method to invoke the remote operation.

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

    * - * @param name Required. The name of the job being replaced. Replace {namespace} with the project ID or number. It + * @param name Required. The name of the Instance to run. Replace {namespace} with the project ID or number. It * takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID - * @param content the {@link com.google.api.services.run.v1.model.Job} + * @param content the {@link com.google.api.services.run.v1.model.StartInstanceRequest} * @since 1.13 */ - protected ReplaceJob(java.lang.String name, com.google.api.services.run.v1.model.Job content) { - super(CloudRun.this, "PUT", REST_PATH, content, com.google.api.services.run.v1.model.Job.class); + protected Start(java.lang.String name, com.google.api.services.run.v1.model.StartInstanceRequest content) { + super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.Instance.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 " + - "^namespaces/[^/]+/jobs/[^/]+$"); + "^namespaces/[^/]+/instances/[^/]+$"); } } @Override - public ReplaceJob set$Xgafv(java.lang.String $Xgafv) { - return (ReplaceJob) super.set$Xgafv($Xgafv); + public Start set$Xgafv(java.lang.String $Xgafv) { + return (Start) super.set$Xgafv($Xgafv); } @Override - public ReplaceJob setAccessToken(java.lang.String accessToken) { - return (ReplaceJob) super.setAccessToken(accessToken); + public Start setAccessToken(java.lang.String accessToken) { + return (Start) super.setAccessToken(accessToken); } @Override - public ReplaceJob setAlt(java.lang.String alt) { - return (ReplaceJob) super.setAlt(alt); + public Start setAlt(java.lang.String alt) { + return (Start) super.setAlt(alt); } @Override - public ReplaceJob setCallback(java.lang.String callback) { - return (ReplaceJob) super.setCallback(callback); + public Start setCallback(java.lang.String callback) { + return (Start) super.setCallback(callback); } @Override - public ReplaceJob setFields(java.lang.String fields) { - return (ReplaceJob) super.setFields(fields); + public Start setFields(java.lang.String fields) { + return (Start) super.setFields(fields); } @Override - public ReplaceJob setKey(java.lang.String key) { - return (ReplaceJob) super.setKey(key); + public Start setKey(java.lang.String key) { + return (Start) super.setKey(key); } @Override - public ReplaceJob setOauthToken(java.lang.String oauthToken) { - return (ReplaceJob) super.setOauthToken(oauthToken); + public Start setOauthToken(java.lang.String oauthToken) { + return (Start) super.setOauthToken(oauthToken); } @Override - public ReplaceJob setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReplaceJob) super.setPrettyPrint(prettyPrint); + public Start setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Start) super.setPrettyPrint(prettyPrint); } @Override - public ReplaceJob setQuotaUser(java.lang.String quotaUser) { - return (ReplaceJob) super.setQuotaUser(quotaUser); + public Start setQuotaUser(java.lang.String quotaUser) { + return (Start) super.setQuotaUser(quotaUser); } @Override - public ReplaceJob setUploadType(java.lang.String uploadType) { - return (ReplaceJob) super.setUploadType(uploadType); + public Start setUploadType(java.lang.String uploadType) { + return (Start) super.setUploadType(uploadType); } @Override - public ReplaceJob setUploadProtocol(java.lang.String uploadProtocol) { - return (ReplaceJob) super.setUploadProtocol(uploadProtocol); + public Start setUploadProtocol(java.lang.String uploadProtocol) { + return (Start) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the job being replaced. Replace {namespace} with the project ID or + * Required. The name of the Instance to run. Replace {namespace} with the project ID or * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the job being replaced. Replace {namespace} with the project ID or number. It + /** Required. The name of the Instance to run. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ public java.lang.String getName() { @@ -3305,224 +3306,363 @@ public java.lang.String getName() { } /** - * Required. The name of the job being replaced. Replace {namespace} with the project ID or + * Required. The name of the Instance to run. Replace {namespace} with the project ID or * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ - public ReplaceJob setName(java.lang.String name) { + public Start 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 " + - "^namespaces/[^/]+/jobs/[^/]+$"); + "^namespaces/[^/]+/instances/[^/]+$"); } this.name = name; return this; } @Override - public ReplaceJob set(String parameterName, Object value) { - return (ReplaceJob) super.set(parameterName, value); + public Start set(String parameterName, Object value) { + return (Start) super.set(parameterName, value); } } /** - * Trigger creation of a new execution of this job. + * Stop an Instance that is running. * - * Create a request for the method "jobs.run". + * Create a request for the method "instances.stop". * * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link Run#execute()} method to invoke the remote operation. + * parameters, call the {@link Stop#execute()} method to invoke the remote operation. * - * @param name Required. The name of the job to run. Replace {namespace} with the project ID or number. It takes - * the form namespaces/{namespace}. For example: namespaces/PROJECT_ID - * @param content the {@link com.google.api.services.run.v1.model.RunJobRequest} + * @param name Required. The name of the Instance to run. Replace {namespace} with the project ID or number. It + * takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param content the {@link com.google.api.services.run.v1.model.StopInstanceRequest} * @return the request */ - public Run run(java.lang.String name, com.google.api.services.run.v1.model.RunJobRequest content) throws java.io.IOException { - Run result = new Run(name, content); + public Stop stop(java.lang.String name, com.google.api.services.run.v1.model.StopInstanceRequest content) throws java.io.IOException { + Stop result = new Stop(name, content); initialize(result); return result; } - public class Run extends CloudRunRequest { + public class Stop extends CloudRunRequest { - private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}:run"; + private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}:stop"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+/jobs/[^/]+$"); + java.util.regex.Pattern.compile("^namespaces/[^/]+/instances/[^/]+$"); /** - * Trigger creation of a new execution of this job. + * Stop an Instance that is running. * - * Create a request for the method "jobs.run". + * Create a request for the method "instances.stop". * * This request holds the parameters needed by the the run server. After setting any optional - * parameters, call the {@link Run#execute()} method to invoke the remote operation.

    {@link - * Run#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * parameters, call the {@link Stop#execute()} method to invoke the remote operation.

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

    * - * @param name Required. The name of the job to run. Replace {namespace} with the project ID or number. It takes - * the form namespaces/{namespace}. For example: namespaces/PROJECT_ID - * @param content the {@link com.google.api.services.run.v1.model.RunJobRequest} + * @param name Required. The name of the Instance to run. Replace {namespace} with the project ID or number. It + * takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param content the {@link com.google.api.services.run.v1.model.StopInstanceRequest} * @since 1.13 */ - protected Run(java.lang.String name, com.google.api.services.run.v1.model.RunJobRequest content) { - super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.Execution.class); + protected Stop(java.lang.String name, com.google.api.services.run.v1.model.StopInstanceRequest content) { + super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.Instance.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 " + - "^namespaces/[^/]+/jobs/[^/]+$"); + "^namespaces/[^/]+/instances/[^/]+$"); } } @Override - public Run set$Xgafv(java.lang.String $Xgafv) { - return (Run) super.set$Xgafv($Xgafv); + public Stop set$Xgafv(java.lang.String $Xgafv) { + return (Stop) super.set$Xgafv($Xgafv); } @Override - public Run setAccessToken(java.lang.String accessToken) { - return (Run) super.setAccessToken(accessToken); + public Stop setAccessToken(java.lang.String accessToken) { + return (Stop) super.setAccessToken(accessToken); } @Override - public Run setAlt(java.lang.String alt) { - return (Run) super.setAlt(alt); + public Stop setAlt(java.lang.String alt) { + return (Stop) super.setAlt(alt); } @Override - public Run setCallback(java.lang.String callback) { - return (Run) super.setCallback(callback); + public Stop setCallback(java.lang.String callback) { + return (Stop) super.setCallback(callback); } @Override - public Run setFields(java.lang.String fields) { - return (Run) super.setFields(fields); + public Stop setFields(java.lang.String fields) { + return (Stop) super.setFields(fields); } @Override - public Run setKey(java.lang.String key) { - return (Run) super.setKey(key); + public Stop setKey(java.lang.String key) { + return (Stop) super.setKey(key); } @Override - public Run setOauthToken(java.lang.String oauthToken) { - return (Run) super.setOauthToken(oauthToken); + public Stop setOauthToken(java.lang.String oauthToken) { + return (Stop) super.setOauthToken(oauthToken); } @Override - public Run setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Run) super.setPrettyPrint(prettyPrint); + public Stop setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Stop) super.setPrettyPrint(prettyPrint); } @Override - public Run setQuotaUser(java.lang.String quotaUser) { - return (Run) super.setQuotaUser(quotaUser); + public Stop setQuotaUser(java.lang.String quotaUser) { + return (Stop) super.setQuotaUser(quotaUser); } @Override - public Run setUploadType(java.lang.String uploadType) { - return (Run) super.setUploadType(uploadType); + public Stop setUploadType(java.lang.String uploadType) { + return (Stop) super.setUploadType(uploadType); } @Override - public Run setUploadProtocol(java.lang.String uploadProtocol) { - return (Run) super.setUploadProtocol(uploadProtocol); + public Stop setUploadProtocol(java.lang.String uploadProtocol) { + return (Stop) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the job to run. Replace {namespace} with the project ID or number. - * It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * Required. The name of the Instance to run. Replace {namespace} with the project ID or + * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the job to run. Replace {namespace} with the project ID or number. It takes - the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + /** Required. The name of the Instance to run. Replace {namespace} with the project ID or number. It + takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ public java.lang.String getName() { return name; } /** - * Required. The name of the job to run. Replace {namespace} with the project ID or number. - * It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * Required. The name of the Instance to run. Replace {namespace} with the project ID or + * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ - public Run setName(java.lang.String name) { + public Stop 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 " + - "^namespaces/[^/]+/jobs/[^/]+$"); + "^namespaces/[^/]+/instances/[^/]+$"); } this.name = name; return this; } @Override - public Run set(String parameterName, Object value) { - return (Run) super.set(parameterName, value); + public Stop set(String parameterName, Object value) { + return (Stop) super.set(parameterName, value); } } } /** - * An accessor for creating requests from the Revisions collection. + * An accessor for creating requests from the Jobs collection. * *

    The typical use is:

    *
          *   {@code CloudRun run = new CloudRun(...);}
    -     *   {@code CloudRun.Revisions.List request = run.revisions().list(parameters ...)}
    +     *   {@code CloudRun.Jobs.List request = run.jobs().list(parameters ...)}
          * 
    * * @return the resource collection */ - public Revisions revisions() { - return new Revisions(); + public Jobs jobs() { + return new Jobs(); } /** - * The "revisions" collection of methods. + * The "jobs" collection of methods. */ - public class Revisions { + public class Jobs { /** - * Delete a revision. + * Create a job. * - * Create a request for the method "revisions.delete". + * Create a request for the method "jobs.create". * * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param name The name of the revision to delete. For Cloud Run (fully managed), replace {namespace} with the - * project ID or number. It takes the form namespaces/{namespace}. For example: - * namespaces/PROJECT_ID + * @param parent Required. The namespace in which the job should be created. Replace {namespace} with the project ID + * or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param content the {@link com.google.api.services.run.v1.model.Job} * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public Create create(java.lang.String parent, com.google.api.services.run.v1.model.Job content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class Delete extends CloudRunRequest { + public class Create extends CloudRunRequest { - private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; + private static final String REST_PATH = "apis/run.googleapis.com/v1/{+parent}/jobs"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+/revisions/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** - * Delete a revision. + * Create a job. * - * Create a request for the method "revisions.delete". + * Create a request for the method "jobs.create". * * This request holds the parameters needed by the the run 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 + * 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 name The name of the revision to delete. For Cloud Run (fully managed), replace {namespace} with the - * project ID or number. It takes the form namespaces/{namespace}. For example: - * namespaces/PROJECT_ID + * @param parent Required. The namespace in which the job should be created. Replace {namespace} with the project ID + * or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param content the {@link com.google.api.services.run.v1.model.Job} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.run.v1.model.Job content) { + super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.Job.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 " + + "^namespaces/[^/]+$"); + } + } + + @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 namespace in which the job should be created. Replace {namespace} with the + * project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The namespace in which the job should be created. Replace {namespace} with the project ID + or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The namespace in which the job should be created. Replace {namespace} with the + * project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID + */ + 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 " + + "^namespaces/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Delete a job. + * + * Create a request for the method "jobs.delete". + * + * This request holds the parameters needed by the run server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the job to delete. Replace {namespace} with the project ID or number. It takes + * the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @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 CloudRunRequest { + + private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^namespaces/[^/]+/jobs/[^/]+$"); + + /** + * Delete a job. + * + * Create a request for the method "jobs.delete". + * + * This request holds the parameters needed by the the run server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

    + * + * @param name Required. The name of the job to delete. Replace {namespace} with the project ID or number. It takes + * the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * @since 1.13 */ protected Delete(java.lang.String name) { @@ -3531,7 +3671,7 @@ protected Delete(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 " + - "^namespaces/[^/]+/revisions/[^/]+$"); + "^namespaces/[^/]+/jobs/[^/]+$"); } } @@ -3591,107 +3731,87 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { } /** - * The name of the revision to delete. For Cloud Run (fully managed), replace {namespace} - * with the project ID or number. It takes the form namespaces/{namespace}. For example: - * namespaces/PROJECT_ID + * Required. The name of the job to delete. Replace {namespace} with the project ID or + * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the revision to delete. For Cloud Run (fully managed), replace {namespace} with the - project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + /** Required. The name of the job to delete. Replace {namespace} with the project ID or number. It + takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ public java.lang.String getName() { return name; } /** - * The name of the revision to delete. For Cloud Run (fully managed), replace {namespace} - * with the project ID or number. It takes the form namespaces/{namespace}. For example: - * namespaces/PROJECT_ID + * Required. The name of the job to delete. Replace {namespace} with the project ID or + * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ 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 " + - "^namespaces/[^/]+/revisions/[^/]+$"); + "^namespaces/[^/]+/jobs/[^/]+$"); } this.name = name; return this; } - /** Cloud Run currently ignores this parameter. */ + /** Optional. Cloud Run currently ignores this parameter. */ @com.google.api.client.util.Key private java.lang.String apiVersion; - /** Cloud Run currently ignores this parameter. + /** Optional. Cloud Run currently ignores this parameter. */ public java.lang.String getApiVersion() { return apiVersion; } - /** Cloud Run currently ignores this parameter. */ + /** Optional. Cloud Run currently ignores this parameter. */ public Delete setApiVersion(java.lang.String apiVersion) { this.apiVersion = apiVersion; return this; } - /** - * Indicates that the server should validate the request and populate default values without - * persisting the request. Supported values: `all` - */ - @com.google.api.client.util.Key - private java.lang.String dryRun; - - /** Indicates that the server should validate the request and populate default values without - persisting the request. Supported values: `all` - */ - public java.lang.String getDryRun() { - return dryRun; - } - - /** - * Indicates that the server should validate the request and populate default values without - * persisting the request. Supported values: `all` - */ - public Delete setDryRun(java.lang.String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** Cloud Run currently ignores this parameter. */ + /** Optional. Cloud Run currently ignores this parameter. */ @com.google.api.client.util.Key private java.lang.String kind; - /** Cloud Run currently ignores this parameter. + /** Optional. Cloud Run currently ignores this parameter. */ public java.lang.String getKind() { return kind; } - /** Cloud Run currently ignores this parameter. */ + /** Optional. Cloud Run currently ignores this parameter. */ public Delete setKind(java.lang.String kind) { this.kind = kind; return this; } /** - * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and - * deletes in the background. + * Optional. Specifies the propagation policy of delete. Cloud Run currently ignores this + * setting, and deletes in the background. Please see + * kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more + * information. */ @com.google.api.client.util.Key private java.lang.String propagationPolicy; - /** Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes - in the background. + /** Optional. Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and + deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage- + collection/ for more information. */ public java.lang.String getPropagationPolicy() { return propagationPolicy; } /** - * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and - * deletes in the background. + * Optional. Specifies the propagation policy of delete. Cloud Run currently ignores this + * setting, and deletes in the background. Please see + * kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more + * information. */ public Delete setPropagationPolicy(java.lang.String propagationPolicy) { this.propagationPolicy = propagationPolicy; @@ -3704,16 +3824,15 @@ public Delete set(String parameterName, Object value) { } } /** - * Get information about a revision. + * Get information about a job. * - * Create a request for the method "revisions.get". + * Create a request for the method "jobs.get". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace} with the - * project ID or number. It takes the form namespaces/{namespace}. For example: - * namespaces/PROJECT_ID + * @param name Required. The name of the job to retrieve. It takes the form namespaces/{namespace}/jobs/{job_name} + * and the `endpoint` must be regional. Replace {namespace} with the project ID or number. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -3722,35 +3841,34 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends CloudRunRequest { + public class Get extends CloudRunRequest { - private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; + private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+/revisions/[^/]+$"); + java.util.regex.Pattern.compile("^namespaces/[^/]+/jobs/[^/]+$"); /** - * Get information about a revision. + * Get information about a job. * - * Create a request for the method "revisions.get". + * Create a request for the method "jobs.get". * * This request holds the parameters needed by the the run 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 revision to retrieve. For Cloud Run (fully managed), replace {namespace} with the - * project ID or number. It takes the form namespaces/{namespace}. For example: - * namespaces/PROJECT_ID + * @param name Required. The name of the job to retrieve. It takes the form namespaces/{namespace}/jobs/{job_name} + * and the `endpoint` must be regional. Replace {namespace} with the project ID or number. * @since 1.13 */ protected Get(java.lang.String name) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.Revision.class); + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.Job.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 " + - "^namespaces/[^/]+/revisions/[^/]+$"); + "^namespaces/[^/]+/jobs/[^/]+$"); } } @@ -3820,30 +3938,30 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace} - * with the project ID or number. It takes the form namespaces/{namespace}. For example: - * namespaces/PROJECT_ID + * Required. The name of the job to retrieve. It takes the form + * namespaces/{namespace}/jobs/{job_name} and the `endpoint` must be regional. Replace + * {namespace} with the project ID or number. */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace} with the - project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + /** Required. The name of the job to retrieve. It takes the form namespaces/{namespace}/jobs/{job_name} + and the `endpoint` must be regional. Replace {namespace} with the project ID or number. */ public java.lang.String getName() { return name; } /** - * The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace} - * with the project ID or number. It takes the form namespaces/{namespace}. For example: - * namespaces/PROJECT_ID + * Required. The name of the job to retrieve. It takes the form + * namespaces/{namespace}/jobs/{job_name} and the `endpoint` must be regional. Replace + * {namespace} with the project ID or number. */ 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 " + - "^namespaces/[^/]+/revisions/[^/]+$"); + "^namespaces/[^/]+/jobs/[^/]+$"); } this.name = name; return this; @@ -3855,16 +3973,15 @@ public Get set(String parameterName, Object value) { } } /** - * List revisions. Results are sorted by creation time, descending. + * List jobs. Results are sorted by creation time, descending. * - * Create a request for the method "revisions.list". + * Create a request for the method "jobs.list". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace - * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For - * example: namespaces/PROJECT_ID + * @param parent Required. The namespace from which the jobs should be listed. Replace {namespace} with the project + * ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -3873,30 +3990,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends CloudRunRequest { + public class List extends CloudRunRequest { - private static final String REST_PATH = "apis/serving.knative.dev/v1/{+parent}/revisions"; + private static final String REST_PATH = "apis/run.googleapis.com/v1/{+parent}/jobs"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** - * List revisions. Results are sorted by creation time, descending. + * List jobs. Results are sorted by creation time, descending. * - * Create a request for the method "revisions.list". + * Create a request for the method "jobs.list". * * This request holds the parameters needed by the the run 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 The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace - * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For - * example: namespaces/PROJECT_ID + * @param parent Required. The namespace from which the jobs should be listed. Replace {namespace} with the project + * ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * @since 1.13 */ protected List(java.lang.String parent) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListRevisionsResponse.class); + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListJobsResponse.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(), @@ -3971,25 +4087,24 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * The namespace from which the revisions should be listed. For Cloud Run (fully managed), - * replace {namespace} with the project ID or number. It takes the form - * namespaces/{namespace}. For example: namespaces/PROJECT_ID + * Required. The namespace from which the jobs should be listed. Replace {namespace} with + * the project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID */ @com.google.api.client.util.Key private java.lang.String parent; - /** The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace - {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: - namespaces/PROJECT_ID + /** Required. The namespace from which the jobs should be listed. Replace {namespace} with the project + ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ public java.lang.String getParent() { return parent; } /** - * The namespace from which the revisions should be listed. For Cloud Run (fully managed), - * replace {namespace} with the project ID or number. It takes the form - * namespaces/{namespace}. For example: namespaces/PROJECT_ID + * Required. The namespace from which the jobs should be listed. Replace {namespace} with + * the project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -4001,77 +4116,71 @@ public List setParent(java.lang.String parent) { return this; } - /** Optional. Encoded string to continue paging. */ + /** Optional. Optional encoded string to continue paging. */ @com.google.api.client.util.Key("continue") private java.lang.String continue__; - /** Optional. Encoded string to continue paging. + /** Optional. Optional encoded string to continue paging. */ public java.lang.String getContinue() { return continue__; } - /** Optional. Encoded string to continue paging. */ + /** Optional. Optional encoded string to continue paging. */ public List setContinue(java.lang.String continue__) { this.continue__ = continue__; return this; } - /** - * Allows to filter resources based on a specific value for a field name. Send this in a - * query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - */ + /** Optional. Not supported by Cloud Run. */ @com.google.api.client.util.Key private java.lang.String fieldSelector; - /** Allows to filter resources based on a specific value for a field name. Send this in a query string - format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + /** Optional. Not supported by Cloud Run. */ public java.lang.String getFieldSelector() { return fieldSelector; } - /** - * Allows to filter resources based on a specific value for a field name. Send this in a - * query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - */ + /** Optional. Not supported by Cloud Run. */ public List setFieldSelector(java.lang.String fieldSelector) { this.fieldSelector = fieldSelector; return this; } - /** Not currently used by Cloud Run. */ + /** Optional. Not supported by Cloud Run. */ @com.google.api.client.util.Key private java.lang.Boolean includeUninitialized; - /** Not currently used by Cloud Run. + /** Optional. Not supported by Cloud Run. */ public java.lang.Boolean getIncludeUninitialized() { return includeUninitialized; } - /** Not currently used by Cloud Run. */ + /** Optional. Not supported by Cloud Run. */ public List setIncludeUninitialized(java.lang.Boolean includeUninitialized) { this.includeUninitialized = includeUninitialized; return this; } /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, - * and notIn. + * Optional. Allows to filter resources based on a label. Supported operations are =, !=, + * exists, in, and notIn. */ @com.google.api.client.util.Key private java.lang.String labelSelector; - /** Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + /** Optional. Allows to filter resources based on a label. Supported operations are =, !=, exists, in, + and notIn. */ public java.lang.String getLabelSelector() { return labelSelector; } /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, - * and notIn. + * Optional. Allows to filter resources based on a label. Supported operations are =, !=, + * exists, in, and notIn. */ public List setLabelSelector(java.lang.String labelSelector) { this.labelSelector = labelSelector; @@ -4094,47 +4203,33 @@ public List setLimit(java.lang.Integer limit) { return this; } - /** - * The baseline resource version from which the list or watch operation should start. Not - * currently used by Cloud Run. - */ + /** Optional. Not supported by Cloud Run. */ @com.google.api.client.util.Key private java.lang.String resourceVersion; - /** The baseline resource version from which the list or watch operation should start. Not currently - used by Cloud Run. + /** Optional. Not supported by Cloud Run. */ public java.lang.String getResourceVersion() { return resourceVersion; } - /** - * The baseline resource version from which the list or watch operation should start. Not - * currently used by Cloud Run. - */ + /** Optional. Not supported by Cloud Run. */ public List setResourceVersion(java.lang.String resourceVersion) { this.resourceVersion = resourceVersion; return this; } - /** - * Flag that indicates that the client expects to watch this resource as well. Not currently - * used by Cloud Run. - */ + /** Optional. Not supported by Cloud Run. */ @com.google.api.client.util.Key private java.lang.Boolean watch; - /** Flag that indicates that the client expects to watch this resource as well. Not currently used by - Cloud Run. + /** Optional. Not supported by Cloud Run. */ public java.lang.Boolean getWatch() { return watch; } - /** - * Flag that indicates that the client expects to watch this resource as well. Not currently - * used by Cloud Run. - */ + /** Optional. Not supported by Cloud Run. */ public List setWatch(java.lang.Boolean watch) { this.watch = watch; return this; @@ -4145,904 +4240,1006 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Routes collection. - * - *

    The typical use is:

    - *
    -     *   {@code CloudRun run = new CloudRun(...);}
    -     *   {@code CloudRun.Routes.List request = run.routes().list(parameters ...)}
    -     * 
    - * - * @return the resource collection - */ - public Routes routes() { - return new Routes(); - } - - /** - * The "routes" collection of methods. - */ - public class Routes { - /** - * Get information about a route. + * Replace a job. Only the spec and metadata labels and annotations are modifiable. After the + * Replace request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide + * metadata.resourceVersion to enforce update from last read for optimistic concurrency control. * - * Create a request for the method "routes.get". + * Create a request for the method "jobs.replaceJob". * * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link ReplaceJob#execute()} method to invoke the remote operation. * - * @param name The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace} with the - * project ID or number. It takes the form namespaces/{namespace}. For example: - * namespaces/PROJECT_ID + * @param name Required. The name of the job being replaced. Replace {namespace} with the project ID or number. It + * takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param content the {@link com.google.api.services.run.v1.model.Job} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public ReplaceJob replaceJob(java.lang.String name, com.google.api.services.run.v1.model.Job content) throws java.io.IOException { + ReplaceJob result = new ReplaceJob(name, content); initialize(result); return result; } - public class Get extends CloudRunRequest { + public class ReplaceJob extends CloudRunRequest { - private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; + private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+/routes/[^/]+$"); + java.util.regex.Pattern.compile("^namespaces/[^/]+/jobs/[^/]+$"); /** - * Get information about a route. + * Replace a job. Only the spec and metadata labels and annotations are modifiable. After the + * Replace request, Cloud Run will work to make the 'status' match the requested 'spec'. May + * provide metadata.resourceVersion to enforce update from last read for optimistic concurrency + * control. * - * Create a request for the method "routes.get". + * Create a request for the method "jobs.replaceJob". * * This request holds the parameters needed by the the run 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.

    + * parameters, call the {@link ReplaceJob#execute()} method to invoke the remote operation.

    + * {@link + * ReplaceJob#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 route to retrieve. For Cloud Run (fully managed), replace {namespace} with the - * project ID or number. It takes the form namespaces/{namespace}. For example: - * namespaces/PROJECT_ID + * @param name Required. The name of the job being replaced. Replace {namespace} with the project ID or number. It + * takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param content the {@link com.google.api.services.run.v1.model.Job} * @since 1.13 */ - protected Get(java.lang.String name) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.Route.class); + protected ReplaceJob(java.lang.String name, com.google.api.services.run.v1.model.Job content) { + super(CloudRun.this, "PUT", REST_PATH, content, com.google.api.services.run.v1.model.Job.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 " + - "^namespaces/[^/]+/routes/[^/]+$"); + "^namespaces/[^/]+/jobs/[^/]+$"); } } @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); + public ReplaceJob set$Xgafv(java.lang.String $Xgafv) { + return (ReplaceJob) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public ReplaceJob setAccessToken(java.lang.String accessToken) { + return (ReplaceJob) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public ReplaceJob setAlt(java.lang.String alt) { + return (ReplaceJob) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public ReplaceJob setCallback(java.lang.String callback) { + return (ReplaceJob) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public ReplaceJob setFields(java.lang.String fields) { + return (ReplaceJob) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public ReplaceJob setKey(java.lang.String key) { + return (ReplaceJob) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public ReplaceJob setOauthToken(java.lang.String oauthToken) { + return (ReplaceJob) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public ReplaceJob setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ReplaceJob) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public ReplaceJob setQuotaUser(java.lang.String quotaUser) { + return (ReplaceJob) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public ReplaceJob setUploadType(java.lang.String uploadType) { + return (ReplaceJob) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public ReplaceJob setUploadProtocol(java.lang.String uploadProtocol) { + return (ReplaceJob) super.setUploadProtocol(uploadProtocol); } /** - * The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace} - * with the project ID or number. It takes the form namespaces/{namespace}. For example: - * namespaces/PROJECT_ID + * Required. The name of the job being replaced. Replace {namespace} with the project ID or + * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ @com.google.api.client.util.Key private java.lang.String name; - /** The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace} with the - project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + /** Required. The name of the job being replaced. Replace {namespace} with the project ID or number. It + takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ public java.lang.String getName() { return name; } /** - * The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace} - * with the project ID or number. It takes the form namespaces/{namespace}. For example: - * namespaces/PROJECT_ID + * Required. The name of the job being replaced. Replace {namespace} with the project ID or + * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ - public Get setName(java.lang.String name) { + public ReplaceJob 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 " + - "^namespaces/[^/]+/routes/[^/]+$"); + "^namespaces/[^/]+/jobs/[^/]+$"); } this.name = name; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public ReplaceJob set(String parameterName, Object value) { + return (ReplaceJob) super.set(parameterName, value); } } /** - * List routes. Results are sorted by creation time, descending. + * Trigger creation of a new execution of this job. * - * Create a request for the method "routes.list". + * Create a request for the method "jobs.run". * * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Run#execute()} method to invoke the remote operation. * - * @param parent The namespace from which the routes should be listed. For Cloud Run (fully managed), replace - * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For - * example: namespaces/PROJECT_ID + * @param name Required. The name of the job to run. Replace {namespace} with the project ID or number. It takes + * the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param content the {@link com.google.api.services.run.v1.model.RunJobRequest} * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public Run run(java.lang.String name, com.google.api.services.run.v1.model.RunJobRequest content) throws java.io.IOException { + Run result = new Run(name, content); initialize(result); return result; } - public class List extends CloudRunRequest { + public class Run extends CloudRunRequest { - private static final String REST_PATH = "apis/serving.knative.dev/v1/{+parent}/routes"; + private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}:run"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^namespaces/[^/]+/jobs/[^/]+$"); /** - * List routes. Results are sorted by creation time, descending. + * Trigger creation of a new execution of this job. * - * Create a request for the method "routes.list". + * Create a request for the method "jobs.run". * * This request holds the parameters needed by the the run 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 + * parameters, call the {@link Run#execute()} method to invoke the remote operation.

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

    * - * @param parent The namespace from which the routes should be listed. For Cloud Run (fully managed), replace - * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For - * example: namespaces/PROJECT_ID + * @param name Required. The name of the job to run. Replace {namespace} with the project ID or number. It takes + * the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param content the {@link com.google.api.services.run.v1.model.RunJobRequest} * @since 1.13 */ - protected List(java.lang.String parent) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListRoutesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Run(java.lang.String name, com.google.api.services.run.v1.model.RunJobRequest content) { + super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.Execution.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^namespaces/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^namespaces/[^/]+/jobs/[^/]+$"); } } @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); + public Run set$Xgafv(java.lang.String $Xgafv) { + return (Run) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Run setAccessToken(java.lang.String accessToken) { + return (Run) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Run setAlt(java.lang.String alt) { + return (Run) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Run setCallback(java.lang.String callback) { + return (Run) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Run setFields(java.lang.String fields) { + return (Run) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Run setKey(java.lang.String key) { + return (Run) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Run setOauthToken(java.lang.String oauthToken) { + return (Run) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Run setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Run) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Run setQuotaUser(java.lang.String quotaUser) { + return (Run) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Run setUploadType(java.lang.String uploadType) { + return (Run) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Run setUploadProtocol(java.lang.String uploadProtocol) { + return (Run) super.setUploadProtocol(uploadProtocol); } /** - * The namespace from which the routes should be listed. For Cloud Run (fully managed), - * replace {namespace} with the project ID or number. It takes the form - * namespaces/{namespace}. For example: namespaces/PROJECT_ID + * Required. The name of the job to run. Replace {namespace} with the project ID or number. + * It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** The namespace from which the routes should be listed. For Cloud Run (fully managed), replace - {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: - namespaces/PROJECT_ID + /** Required. The name of the job to run. Replace {namespace} with the project ID or number. It takes + the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * The namespace from which the routes should be listed. For Cloud Run (fully managed), - * replace {namespace} with the project ID or number. It takes the form - * namespaces/{namespace}. For example: namespaces/PROJECT_ID + * Required. The name of the job to run. Replace {namespace} with the project ID or number. + * It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ - public List setParent(java.lang.String parent) { + public Run setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^namespaces/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^namespaces/[^/]+/jobs/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } - /** Optional. Encoded string to continue paging. */ - @com.google.api.client.util.Key("continue") - private java.lang.String continue__; - - /** Optional. Encoded string to continue paging. - */ - public java.lang.String getContinue() { - return continue__; + @Override + public Run set(String parameterName, Object value) { + return (Run) super.set(parameterName, value); } + } - /** Optional. Encoded string to continue paging. */ - public List setContinue(java.lang.String continue__) { - this.continue__ = continue__; - return this; - } + } + /** + * An accessor for creating requests from the Revisions collection. + * + *

    The typical use is:

    + *
    +     *   {@code CloudRun run = new CloudRun(...);}
    +     *   {@code CloudRun.Revisions.List request = run.revisions().list(parameters ...)}
    +     * 
    + * + * @return the resource collection + */ + public Revisions revisions() { + return new Revisions(); + } - /** - * Allows to filter resources based on a specific value for a field name. Send this in a - * query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - */ - @com.google.api.client.util.Key - private java.lang.String fieldSelector; + /** + * The "revisions" collection of methods. + */ + public class Revisions { - /** Allows to filter resources based on a specific value for a field name. Send this in a query string - format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - */ - public java.lang.String getFieldSelector() { - return fieldSelector; - } + /** + * Delete a revision. + * + * Create a request for the method "revisions.delete". + * + * This request holds the parameters needed by the run server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the revision to delete. For Cloud Run (fully managed), replace {namespace} with the + * project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID + * @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 CloudRunRequest { + + private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^namespaces/[^/]+/revisions/[^/]+$"); /** - * Allows to filter resources based on a specific value for a field name. Send this in a - * query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + * Delete a revision. + * + * Create a request for the method "revisions.delete". + * + * This request holds the parameters needed by the the run 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 revision to delete. For Cloud Run (fully managed), replace {namespace} with the + * project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID + * @since 1.13 */ - public List setFieldSelector(java.lang.String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; + protected Delete(java.lang.String name) { + super(CloudRun.this, "DELETE", REST_PATH, null, com.google.api.services.run.v1.model.Status.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 " + + "^namespaces/[^/]+/revisions/[^/]+$"); + } } - /** Not currently used by Cloud Run. */ - @com.google.api.client.util.Key - private java.lang.Boolean includeUninitialized; + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - /** Not currently used by Cloud Run. - */ - public java.lang.Boolean getIncludeUninitialized() { - return includeUninitialized; + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } - /** Not currently used by Cloud Run. */ - public List setIncludeUninitialized(java.lang.Boolean includeUninitialized) { - this.includeUninitialized = includeUninitialized; - return this; + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } - /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, - * and notIn. - */ + @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 revision to delete. For Cloud Run (fully managed), replace {namespace} + * with the project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID + */ @com.google.api.client.util.Key - private java.lang.String labelSelector; + private java.lang.String name; - /** Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + /** The name of the revision to delete. For Cloud Run (fully managed), replace {namespace} with the + project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ - public java.lang.String getLabelSelector() { - return labelSelector; + public java.lang.String getName() { + return name; } /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, - * and notIn. + * The name of the revision to delete. For Cloud Run (fully managed), replace {namespace} + * with the project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID */ - public List setLabelSelector(java.lang.String labelSelector) { - this.labelSelector = labelSelector; + 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 " + + "^namespaces/[^/]+/revisions/[^/]+$"); + } + this.name = name; return this; } - /** Optional. The maximum number of records that should be returned. */ + /** Cloud Run currently ignores this parameter. */ @com.google.api.client.util.Key - private java.lang.Integer limit; + private java.lang.String apiVersion; - /** Optional. The maximum number of records that should be returned. + /** Cloud Run currently ignores this parameter. */ - public java.lang.Integer getLimit() { - return limit; + public java.lang.String getApiVersion() { + return apiVersion; } - /** Optional. The maximum number of records that should be returned. */ - public List setLimit(java.lang.Integer limit) { - this.limit = limit; + /** Cloud Run currently ignores this parameter. */ + public Delete setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; return this; } /** - * The baseline resource version from which the list or watch operation should start. Not - * currently used by Cloud Run. + * Indicates that the server should validate the request and populate default values without + * persisting the request. Supported values: `all` */ @com.google.api.client.util.Key - private java.lang.String resourceVersion; + private java.lang.String dryRun; - /** The baseline resource version from which the list or watch operation should start. Not currently - used by Cloud Run. + /** Indicates that the server should validate the request and populate default values without + persisting the request. Supported values: `all` */ - public java.lang.String getResourceVersion() { - return resourceVersion; + public java.lang.String getDryRun() { + return dryRun; } /** - * The baseline resource version from which the list or watch operation should start. Not - * currently used by Cloud Run. + * Indicates that the server should validate the request and populate default values without + * persisting the request. Supported values: `all` */ - public List setResourceVersion(java.lang.String resourceVersion) { - this.resourceVersion = resourceVersion; + public Delete setDryRun(java.lang.String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** Cloud Run currently ignores this parameter. */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** Cloud Run currently ignores this parameter. + */ + public java.lang.String getKind() { + return kind; + } + + /** Cloud Run currently ignores this parameter. */ + public Delete setKind(java.lang.String kind) { + this.kind = kind; return this; } /** - * Flag that indicates that the client expects to watch this resource as well. Not currently - * used by Cloud Run. + * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and + * deletes in the background. */ @com.google.api.client.util.Key - private java.lang.Boolean watch; + private java.lang.String propagationPolicy; - /** Flag that indicates that the client expects to watch this resource as well. Not currently used by - Cloud Run. + /** Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes + in the background. */ - public java.lang.Boolean getWatch() { - return watch; + public java.lang.String getPropagationPolicy() { + return propagationPolicy; } /** - * Flag that indicates that the client expects to watch this resource as well. Not currently - * used by Cloud Run. + * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and + * deletes in the background. */ - public List setWatch(java.lang.Boolean watch) { - this.watch = watch; + public Delete setPropagationPolicy(java.lang.String propagationPolicy) { + this.propagationPolicy = propagationPolicy; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Services collection. - * - *

    The typical use is:

    - *
    -     *   {@code CloudRun run = new CloudRun(...);}
    -     *   {@code CloudRun.Services.List request = run.services().list(parameters ...)}
    -     * 
    - * - * @return the resource collection - */ - public Services services() { - return new Services(); - } - - /** - * The "services" collection of methods. - */ - public class Services { - /** - * Creates a new Service. Service creation will trigger a new deployment. Use GetService, and check - * service.status to determine if the Service is ready. + * Get information about a revision. * - * Create a request for the method "services.create". + * Create a request for the method "revisions.get". * * This request holds the parameters needed by the run 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 parent Required. The resource's parent. In Cloud Run, it may be one of the following: * - * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - * `namespaces/{project_id_or_number}/services` * - * `projects/{project_id_or_number}/locations/{region}` * - * `projects/{project_id_or_number}/regions/{region}` - * @param content the {@link com.google.api.services.run.v1.model.Service} + * @param name The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace} with the + * project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.run.v1.model.Service content) throws java.io.IOException { - Create result = new Create(parent, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Create extends CloudRunRequest { + public class Get extends CloudRunRequest { - private static final String REST_PATH = "apis/serving.knative.dev/v1/{+parent}/services"; + private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^namespaces/[^/]+/revisions/[^/]+$"); /** - * Creates a new Service. Service creation will trigger a new deployment. Use GetService, and - * check service.status to determine if the Service is ready. + * Get information about a revision. * - * Create a request for the method "services.create". + * Create a request for the method "revisions.get". * * This request holds the parameters needed by the the run 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 parent Required. The resource's parent. In Cloud Run, it may be one of the following: * - * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - * `namespaces/{project_id_or_number}/services` * - * `projects/{project_id_or_number}/locations/{region}` * - * `projects/{project_id_or_number}/regions/{region}` - * @param content the {@link com.google.api.services.run.v1.model.Service} + * @param name The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace} with the + * project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.run.v1.model.Service content) { - super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.Service.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Get(java.lang.String name) { + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.Revision.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^namespaces/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^namespaces/[^/]+/revisions/[^/]+$"); } } @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); } - /** - * Required. The resource's parent. In Cloud Run, it may be one of the following: * - * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - * `namespaces/{project_id_or_number}/services` * - * `projects/{project_id_or_number}/locations/{region}` * - * `projects/{project_id_or_number}/regions/{region}` - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The resource's parent. In Cloud Run, it may be one of the following: * - `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - `namespaces/{project_id_or_number}/services` * `projects/{project_id_or_number}/locations/{region}` - * `projects/{project_id_or_number}/regions/{region}` - */ - public java.lang.String getParent() { - return parent; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** - * Required. The resource's parent. In Cloud Run, it may be one of the following: * - * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - * `namespaces/{project_id_or_number}/services` * - * `projects/{project_id_or_number}/locations/{region}` * - * `projects/{project_id_or_number}/regions/{region}` - */ - 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 " + - "^namespaces/[^/]+$"); - } - this.parent = parent; - return this; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** - * Indicates that the server should validate the request and populate default values without - * persisting the request. Supported values: `all` + * The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace} + * with the project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID */ @com.google.api.client.util.Key - private java.lang.String dryRun; + private java.lang.String name; - /** Indicates that the server should validate the request and populate default values without - persisting the request. Supported values: `all` + /** The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace} with the + project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ - public java.lang.String getDryRun() { - return dryRun; + public java.lang.String getName() { + return name; } /** - * Indicates that the server should validate the request and populate default values without - * persisting the request. Supported values: `all` + * The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace} + * with the project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID */ - public Create setDryRun(java.lang.String dryRun) { - this.dryRun = dryRun; + 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 " + + "^namespaces/[^/]+/revisions/[^/]+$"); + } + this.name = name; 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 the provided service. This will cause the Service to stop serving traffic and will delete - * all associated Revisions. + * List revisions. Results are sorted by creation time, descending. * - * Create a request for the method "services.delete". + * Create a request for the method "revisions.list". * * This request holds the parameters needed by the run 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 name Required. The fully qualified name of the service to delete. It can be any of the following forms: * - * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is - * regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * - * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * @param parent The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace + * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For + * example: namespaces/PROJECT_ID * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Delete extends CloudRunRequest { + public class List extends CloudRunRequest { - private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; + private static final String REST_PATH = "apis/serving.knative.dev/v1/{+parent}/revisions"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+/services/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** - * Deletes the provided service. This will cause the Service to stop serving traffic and will - * delete all associated Revisions. + * List revisions. Results are sorted by creation time, descending. * - * Create a request for the method "services.delete". + * Create a request for the method "revisions.list". * * This request holds the parameters needed by the the run 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 name Required. The fully qualified name of the service to delete. It can be any of the following forms: * - * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is - * regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * - * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * @param parent The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace + * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For + * example: namespaces/PROJECT_ID * @since 1.13 */ - protected Delete(java.lang.String name) { - super(CloudRun.this, "DELETE", REST_PATH, null, com.google.api.services.run.v1.model.Status.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListRevisionsResponse.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^namespaces/[^/]+/services/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^namespaces/[^/]+$"); } } @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); } /** - * Required. The fully qualified name of the service to delete. It can be any of the - * following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when - * the `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * - * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * The namespace from which the revisions should be listed. For Cloud Run (fully managed), + * replace {namespace} with the project ID or number. It takes the form + * namespaces/{namespace}. For example: namespaces/PROJECT_ID */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. The fully qualified name of the service to delete. It can be any of the following forms: - * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is - regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * - `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + /** The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace + {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: + namespaces/PROJECT_ID */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } /** - * Required. The fully qualified name of the service to delete. It can be any of the - * following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when - * the `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * - * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * The namespace from which the revisions should be listed. For Cloud Run (fully managed), + * replace {namespace} with the project ID or number. It takes the form + * namespaces/{namespace}. For example: namespaces/PROJECT_ID */ - public Delete setName(java.lang.String name) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^namespaces/[^/]+/services/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^namespaces/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } - /** Not supported, and ignored by Cloud Run. */ - @com.google.api.client.util.Key - private java.lang.String apiVersion; + /** Optional. Encoded string to continue paging. */ + @com.google.api.client.util.Key("continue") + private java.lang.String continue__; - /** Not supported, and ignored by Cloud Run. + /** Optional. Encoded string to continue paging. */ - public java.lang.String getApiVersion() { - return apiVersion; + public java.lang.String getContinue() { + return continue__; } - /** Not supported, and ignored by Cloud Run. */ - public Delete setApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; + /** Optional. Encoded string to continue paging. */ + public List setContinue(java.lang.String continue__) { + this.continue__ = continue__; return this; } /** - * Indicates that the server should validate the request and populate default values without - * persisting the request. Supported values: `all` + * Allows to filter resources based on a specific value for a field name. Send this in a + * query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. */ @com.google.api.client.util.Key - private java.lang.String dryRun; + private java.lang.String fieldSelector; - /** Indicates that the server should validate the request and populate default values without - persisting the request. Supported values: `all` + /** Allows to filter resources based on a specific value for a field name. Send this in a query string + format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. */ - public java.lang.String getDryRun() { - return dryRun; + public java.lang.String getFieldSelector() { + return fieldSelector; } /** - * Indicates that the server should validate the request and populate default values without - * persisting the request. Supported values: `all` + * Allows to filter resources based on a specific value for a field name. Send this in a + * query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. */ - public Delete setDryRun(java.lang.String dryRun) { - this.dryRun = dryRun; + public List setFieldSelector(java.lang.String fieldSelector) { + this.fieldSelector = fieldSelector; return this; } - /** Not supported, and ignored by Cloud Run. */ + /** Not currently used by Cloud Run. */ @com.google.api.client.util.Key - private java.lang.String kind; + private java.lang.Boolean includeUninitialized; - /** Not supported, and ignored by Cloud Run. + /** Not currently used by Cloud Run. */ - public java.lang.String getKind() { - return kind; + public java.lang.Boolean getIncludeUninitialized() { + return includeUninitialized; } - /** Not supported, and ignored by Cloud Run. */ - public Delete setKind(java.lang.String kind) { - this.kind = kind; + /** Not currently used by Cloud Run. */ + public List setIncludeUninitialized(java.lang.Boolean includeUninitialized) { + this.includeUninitialized = includeUninitialized; return this; } - /** Not supported, and ignored by Cloud Run. */ + /** + * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, + * and notIn. + */ @com.google.api.client.util.Key - private java.lang.String propagationPolicy; + private java.lang.String labelSelector; - /** Not supported, and ignored by Cloud Run. + /** Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. */ - public java.lang.String getPropagationPolicy() { - return propagationPolicy; + public java.lang.String getLabelSelector() { + return labelSelector; } - /** Not supported, and ignored by Cloud Run. */ - public Delete setPropagationPolicy(java.lang.String propagationPolicy) { - this.propagationPolicy = propagationPolicy; + /** + * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, + * and notIn. + */ + public List setLabelSelector(java.lang.String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** Optional. The maximum number of records that should be returned. */ + @com.google.api.client.util.Key + private java.lang.Integer limit; + + /** Optional. The maximum number of records that should be returned. + */ + public java.lang.Integer getLimit() { + return limit; + } + + /** Optional. The maximum number of records that should be returned. */ + public List setLimit(java.lang.Integer limit) { + this.limit = limit; + return this; + } + + /** + * The baseline resource version from which the list or watch operation should start. Not + * currently used by Cloud Run. + */ + @com.google.api.client.util.Key + private java.lang.String resourceVersion; + + /** The baseline resource version from which the list or watch operation should start. Not currently + used by Cloud Run. + */ + public java.lang.String getResourceVersion() { + return resourceVersion; + } + + /** + * The baseline resource version from which the list or watch operation should start. Not + * currently used by Cloud Run. + */ + public List setResourceVersion(java.lang.String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Flag that indicates that the client expects to watch this resource as well. Not currently + * used by Cloud Run. + */ + @com.google.api.client.util.Key + private java.lang.Boolean watch; + + /** Flag that indicates that the client expects to watch this resource as well. Not currently used by + Cloud Run. + */ + public java.lang.Boolean getWatch() { + return watch; + } + + /** + * Flag that indicates that the client expects to watch this resource as well. Not currently + * used by Cloud Run. + */ + public List setWatch(java.lang.Boolean watch) { + this.watch = watch; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Routes collection. + * + *

    The typical use is:

    + *
    +     *   {@code CloudRun run = new CloudRun(...);}
    +     *   {@code CloudRun.Routes.List request = run.routes().list(parameters ...)}
    +     * 
    + * + * @return the resource collection + */ + public Routes routes() { + return new Routes(); + } + + /** + * The "routes" collection of methods. + */ + public class Routes { + /** - * Gets information about a service. + * Get information about a route. * - * Create a request for the method "services.get". + * Create a request for the method "routes.get". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The fully qualified name of the service to retrieve. It can be any of the following forms: - * * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is - * regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * - * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * @param name The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace} with the + * project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -5051,36 +5248,35 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends CloudRunRequest { + public class Get extends CloudRunRequest { private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+/services/[^/]+$"); + java.util.regex.Pattern.compile("^namespaces/[^/]+/routes/[^/]+$"); /** - * Gets information about a service. + * Get information about a route. * - * Create a request for the method "services.get". + * Create a request for the method "routes.get". * * This request holds the parameters needed by the the run 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 fully qualified name of the service to retrieve. It can be any of the following forms: - * * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is - * regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * - * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * @param name The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace} with the + * project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID * @since 1.13 */ protected Get(java.lang.String name) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.Service.class); + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.Route.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 " + - "^namespaces/[^/]+/services/[^/]+$"); + "^namespaces/[^/]+/routes/[^/]+$"); } } @@ -5150,36 +5346,30 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The fully qualified name of the service to retrieve. It can be any of the - * following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when - * the `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * - * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace} + * with the project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The fully qualified name of the service to retrieve. It can be any of the following - forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is - regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * - `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + /** The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace} with the + project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ public java.lang.String getName() { return name; } /** - * Required. The fully qualified name of the service to retrieve. It can be any of the - * following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when - * the `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * - * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace} + * with the project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID */ 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 " + - "^namespaces/[^/]+/services/[^/]+$"); + "^namespaces/[^/]+/routes/[^/]+$"); } this.name = name; return this; @@ -5191,18 +5381,16 @@ public Get set(String parameterName, Object value) { } } /** - * Lists services for the given project and region. Results are sorted by creation time, descending. + * List routes. Results are sorted by creation time, descending. * - * Create a request for the method "services.list". + * Create a request for the method "routes.list". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the - * following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - * `namespaces/{project_id_or_number}/services` * - * `projects/{project_id_or_number}/locations/{region}` * - * `projects/{project_id_or_number}/regions/{region}` + * @param parent The namespace from which the routes should be listed. For Cloud Run (fully managed), replace + * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For + * example: namespaces/PROJECT_ID * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -5211,33 +5399,30 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends CloudRunRequest { + public class List extends CloudRunRequest { - private static final String REST_PATH = "apis/serving.knative.dev/v1/{+parent}/services"; + private static final String REST_PATH = "apis/serving.knative.dev/v1/{+parent}/routes"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** - * Lists services for the given project and region. Results are sorted by creation time, - * descending. + * List routes. Results are sorted by creation time, descending. * - * Create a request for the method "services.list". + * Create a request for the method "routes.list". * * This request holds the parameters needed by the the run 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 from where the resources should be listed. In Cloud Run, it may be one of the - * following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - * `namespaces/{project_id_or_number}/services` * - * `projects/{project_id_or_number}/locations/{region}` * - * `projects/{project_id_or_number}/regions/{region}` + * @param parent The namespace from which the routes should be listed. For Cloud Run (fully managed), replace + * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For + * example: namespaces/PROJECT_ID * @since 1.13 */ protected List(java.lang.String parent) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListServicesResponse.class); + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListRoutesResponse.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(), @@ -5312,30 +5497,25 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent from where the resources should be listed. In Cloud Run, it may be - * one of the following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - * `namespaces/{project_id_or_number}/services` * - * `projects/{project_id_or_number}/locations/{region}` * - * `projects/{project_id_or_number}/regions/{region}` + * The namespace from which the routes should be listed. For Cloud Run (fully managed), + * replace {namespace} with the project ID or number. It takes the form + * namespaces/{namespace}. For example: namespaces/PROJECT_ID */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the - following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - `namespaces/{project_id_or_number}/services` * `projects/{project_id_or_number}/locations/{region}` - * `projects/{project_id_or_number}/regions/{region}` + /** The namespace from which the routes should be listed. For Cloud Run (fully managed), replace + {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: + namespaces/PROJECT_ID */ public java.lang.String getParent() { return parent; } /** - * Required. The parent from where the resources should be listed. In Cloud Run, it may be - * one of the following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - * `namespaces/{project_id_or_number}/services` * - * `projects/{project_id_or_number}/locations/{region}` * - * `projects/{project_id_or_number}/regions/{region}` + * The namespace from which the routes should be listed. For Cloud Run (fully managed), + * replace {namespace} with the project ID or number. It takes the form + * namespaces/{namespace}. For example: namespaces/PROJECT_ID */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -5347,49 +5527,56 @@ public List setParent(java.lang.String parent) { return this; } - /** Encoded string to continue paging. */ + /** Optional. Encoded string to continue paging. */ @com.google.api.client.util.Key("continue") private java.lang.String continue__; - /** Encoded string to continue paging. + /** Optional. Encoded string to continue paging. */ public java.lang.String getContinue() { return continue__; } - /** Encoded string to continue paging. */ + /** Optional. Encoded string to continue paging. */ public List setContinue(java.lang.String continue__) { this.continue__ = continue__; return this; } - /** Not supported, and ignored by Cloud Run. */ + /** + * Allows to filter resources based on a specific value for a field name. Send this in a + * query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + */ @com.google.api.client.util.Key private java.lang.String fieldSelector; - /** Not supported, and ignored by Cloud Run. + /** Allows to filter resources based on a specific value for a field name. Send this in a query string + format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. */ public java.lang.String getFieldSelector() { return fieldSelector; } - /** Not supported, and ignored by Cloud Run. */ + /** + * Allows to filter resources based on a specific value for a field name. Send this in a + * query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + */ public List setFieldSelector(java.lang.String fieldSelector) { this.fieldSelector = fieldSelector; return this; } - /** Not supported, and ignored by Cloud Run. */ + /** Not currently used by Cloud Run. */ @com.google.api.client.util.Key private java.lang.Boolean includeUninitialized; - /** Not supported, and ignored by Cloud Run. + /** Not currently used by Cloud Run. */ public java.lang.Boolean getIncludeUninitialized() { return includeUninitialized; } - /** Not supported, and ignored by Cloud Run. */ + /** Not currently used by Cloud Run. */ public List setIncludeUninitialized(java.lang.Boolean includeUninitialized) { this.includeUninitialized = includeUninitialized; return this; @@ -5417,49 +5604,63 @@ public List setLabelSelector(java.lang.String labelSelector) { return this; } - /** The maximum number of records that should be returned. */ + /** Optional. The maximum number of records that should be returned. */ @com.google.api.client.util.Key private java.lang.Integer limit; - /** The maximum number of records that should be returned. + /** Optional. The maximum number of records that should be returned. */ public java.lang.Integer getLimit() { return limit; } - /** The maximum number of records that should be returned. */ + /** Optional. The maximum number of records that should be returned. */ public List setLimit(java.lang.Integer limit) { this.limit = limit; return this; } - /** Not supported, and ignored by Cloud Run. */ + /** + * The baseline resource version from which the list or watch operation should start. Not + * currently used by Cloud Run. + */ @com.google.api.client.util.Key private java.lang.String resourceVersion; - /** Not supported, and ignored by Cloud Run. + /** The baseline resource version from which the list or watch operation should start. Not currently + used by Cloud Run. */ public java.lang.String getResourceVersion() { return resourceVersion; } - /** Not supported, and ignored by Cloud Run. */ + /** + * The baseline resource version from which the list or watch operation should start. Not + * currently used by Cloud Run. + */ public List setResourceVersion(java.lang.String resourceVersion) { this.resourceVersion = resourceVersion; return this; } - /** Not supported, and ignored by Cloud Run. */ + /** + * Flag that indicates that the client expects to watch this resource as well. Not currently + * used by Cloud Run. + */ @com.google.api.client.util.Key private java.lang.Boolean watch; - /** Not supported, and ignored by Cloud Run. + /** Flag that indicates that the client expects to watch this resource as well. Not currently used by + Cloud Run. */ public java.lang.Boolean getWatch() { return watch; } - /** Not supported, and ignored by Cloud Run. */ + /** + * Flag that indicates that the client expects to watch this resource as well. Not currently + * used by Cloud Run. + */ public List setWatch(java.lang.Boolean watch) { this.watch = watch; return this; @@ -5470,155 +5671,175 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Services collection. + * + *

    The typical use is:

    + *
    +     *   {@code CloudRun run = new CloudRun(...);}
    +     *   {@code CloudRun.Services.List request = run.services().list(parameters ...)}
    +     * 
    + * + * @return the resource collection + */ + public Services services() { + return new Services(); + } + + /** + * The "services" collection of methods. + */ + public class Services { + /** - * Replaces a service. Only the spec and metadata labels and annotations are modifiable. After the - * Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide - * metadata.resourceVersion to enforce update from last read for optimistic concurrency control. + * Creates a new Service. Service creation will trigger a new deployment. Use GetService, and check + * service.status to determine if the Service is ready. * - * Create a request for the method "services.replaceService". + * Create a request for the method "services.create". * * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link ReplaceService#execute()} method to invoke the remote operation. + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param name Required. The fully qualified name of the service to replace. It can be any of the following forms: - * * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is - * regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * - * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * @param parent Required. The resource's parent. In Cloud Run, it may be one of the following: * + * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + * `namespaces/{project_id_or_number}/services` * + * `projects/{project_id_or_number}/locations/{region}` * + * `projects/{project_id_or_number}/regions/{region}` * @param content the {@link com.google.api.services.run.v1.model.Service} * @return the request */ - public ReplaceService replaceService(java.lang.String name, com.google.api.services.run.v1.model.Service content) throws java.io.IOException { - ReplaceService result = new ReplaceService(name, content); + public Create create(java.lang.String parent, com.google.api.services.run.v1.model.Service content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class ReplaceService extends CloudRunRequest { + public class Create extends CloudRunRequest { - private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; + private static final String REST_PATH = "apis/serving.knative.dev/v1/{+parent}/services"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+/services/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** - * Replaces a service. Only the spec and metadata labels and annotations are modifiable. After the - * Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May - * provide metadata.resourceVersion to enforce update from last read for optimistic concurrency - * control. + * Creates a new Service. Service creation will trigger a new deployment. Use GetService, and + * check service.status to determine if the Service is ready. * - * Create a request for the method "services.replaceService". + * Create a request for the method "services.create". * * This request holds the parameters needed by the the run server. After setting any optional - * parameters, call the {@link ReplaceService#execute()} method to invoke the remote operation. - *

    {@link ReplaceService#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl - * ientRequest)} 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 name Required. The fully qualified name of the service to replace. It can be any of the following forms: - * * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is - * regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * - * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * @param parent Required. The resource's parent. In Cloud Run, it may be one of the following: * + * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + * `namespaces/{project_id_or_number}/services` * + * `projects/{project_id_or_number}/locations/{region}` * + * `projects/{project_id_or_number}/regions/{region}` * @param content the {@link com.google.api.services.run.v1.model.Service} * @since 1.13 */ - protected ReplaceService(java.lang.String name, com.google.api.services.run.v1.model.Service content) { - super(CloudRun.this, "PUT", REST_PATH, content, com.google.api.services.run.v1.model.Service.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Create(java.lang.String parent, com.google.api.services.run.v1.model.Service content) { + super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.Service.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^namespaces/[^/]+/services/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^namespaces/[^/]+$"); } } @Override - public ReplaceService set$Xgafv(java.lang.String $Xgafv) { - return (ReplaceService) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public ReplaceService setAccessToken(java.lang.String accessToken) { - return (ReplaceService) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public ReplaceService setAlt(java.lang.String alt) { - return (ReplaceService) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public ReplaceService setCallback(java.lang.String callback) { - return (ReplaceService) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public ReplaceService setFields(java.lang.String fields) { - return (ReplaceService) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public ReplaceService setKey(java.lang.String key) { - return (ReplaceService) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public ReplaceService setOauthToken(java.lang.String oauthToken) { - return (ReplaceService) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public ReplaceService setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReplaceService) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public ReplaceService setQuotaUser(java.lang.String quotaUser) { - return (ReplaceService) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public ReplaceService setUploadType(java.lang.String uploadType) { - return (ReplaceService) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public ReplaceService setUploadProtocol(java.lang.String uploadProtocol) { - return (ReplaceService) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Required. The fully qualified name of the service to replace. It can be any of the - * following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when - * the `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * - * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * Required. The resource's parent. In Cloud Run, it may be one of the following: * + * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + * `namespaces/{project_id_or_number}/services` * + * `projects/{project_id_or_number}/locations/{region}` * + * `projects/{project_id_or_number}/regions/{region}` */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. The fully qualified name of the service to replace. It can be any of the following forms: - * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is - regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * - `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + /** Required. The resource's parent. In Cloud Run, it may be one of the following: * + `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + `namespaces/{project_id_or_number}/services` * `projects/{project_id_or_number}/locations/{region}` + * `projects/{project_id_or_number}/regions/{region}` */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } /** - * Required. The fully qualified name of the service to replace. It can be any of the - * following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when - * the `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * - * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * Required. The resource's parent. In Cloud Run, it may be one of the following: * + * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + * `namespaces/{project_id_or_number}/services` * + * `projects/{project_id_or_number}/locations/{region}` * + * `projects/{project_id_or_number}/regions/{region}` */ - public ReplaceService setName(java.lang.String name) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^namespaces/[^/]+/services/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^namespaces/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } @@ -5640,231 +5861,288 @@ public java.lang.String getDryRun() { * Indicates that the server should validate the request and populate default values without * persisting the request. Supported values: `all` */ - public ReplaceService setDryRun(java.lang.String dryRun) { + public Create setDryRun(java.lang.String dryRun) { this.dryRun = dryRun; return this; } @Override - public ReplaceService set(String parameterName, Object value) { - return (ReplaceService) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Tasks collection. - * - *

    The typical use is:

    - *
    -     *   {@code CloudRun run = new CloudRun(...);}
    -     *   {@code CloudRun.Tasks.List request = run.tasks().list(parameters ...)}
    -     * 
    - * - * @return the resource collection - */ - public Tasks tasks() { - return new Tasks(); - } - - /** - * The "tasks" collection of methods. - */ - public class Tasks { - /** - * Get information about a task. + * Deletes the provided service. This will cause the Service to stop serving traffic and will delete + * all associated Revisions. * - * Create a request for the method "tasks.get". + * Create a request for the method "services.delete". * * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the task to retrieve. Replace {namespace} with the project ID or number. It - * takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param name Required. The fully qualified name of the service to delete. It can be any of the following forms: * + * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is + * regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * + * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Get extends CloudRunRequest { + public class Delete extends CloudRunRequest { - private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; + private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+/tasks/[^/]+$"); + java.util.regex.Pattern.compile("^namespaces/[^/]+/services/[^/]+$"); /** - * Get information about a task. + * Deletes the provided service. This will cause the Service to stop serving traffic and will + * delete all associated Revisions. * - * Create a request for the method "tasks.get". + * Create a request for the method "services.delete". * * This request holds the parameters needed by the the run 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.

    + * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

    * - * @param name Required. The name of the task to retrieve. Replace {namespace} with the project ID or number. It - * takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param name Required. The fully qualified name of the service to delete. It can be any of the following forms: * + * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is + * regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * + * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` * @since 1.13 */ - protected Get(java.lang.String name) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.Task.class); + protected Delete(java.lang.String name) { + super(CloudRun.this, "DELETE", REST_PATH, null, com.google.api.services.run.v1.model.Status.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 " + - "^namespaces/[^/]+/tasks/[^/]+$"); + "^namespaces/[^/]+/services/[^/]+$"); } } @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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the task to retrieve. Replace {namespace} with the project ID or - * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * Required. The fully qualified name of the service to delete. It can be any of the + * following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when + * the `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * + * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the task to retrieve. Replace {namespace} with the project ID or number. It - takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + /** Required. The fully qualified name of the service to delete. It can be any of the following forms: + * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is + regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * + `projects/{project_id_or_number}/regions/{region}/services/{service_name}` */ public java.lang.String getName() { return name; } /** - * Required. The name of the task to retrieve. Replace {namespace} with the project ID or - * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * Required. The fully qualified name of the service to delete. It can be any of the + * following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when + * the `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * + * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` */ - public Get setName(java.lang.String name) { + 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 " + - "^namespaces/[^/]+/tasks/[^/]+$"); + "^namespaces/[^/]+/services/[^/]+$"); } this.name = name; return this; } + /** Not supported, and ignored by Cloud Run. */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** Not supported, and ignored by Cloud Run. + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** Not supported, and ignored by Cloud Run. */ + public Delete setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Indicates that the server should validate the request and populate default values without + * persisting the request. Supported values: `all` + */ + @com.google.api.client.util.Key + private java.lang.String dryRun; + + /** Indicates that the server should validate the request and populate default values without + persisting the request. Supported values: `all` + */ + public java.lang.String getDryRun() { + return dryRun; + } + + /** + * Indicates that the server should validate the request and populate default values without + * persisting the request. Supported values: `all` + */ + public Delete setDryRun(java.lang.String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** Not supported, and ignored by Cloud Run. */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** Not supported, and ignored by Cloud Run. + */ + public java.lang.String getKind() { + return kind; + } + + /** Not supported, and ignored by Cloud Run. */ + public Delete setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** Not supported, and ignored by Cloud Run. */ + @com.google.api.client.util.Key + private java.lang.String propagationPolicy; + + /** Not supported, and ignored by Cloud Run. + */ + public java.lang.String getPropagationPolicy() { + return propagationPolicy; + } + + /** Not supported, and ignored by Cloud Run. */ + public Delete setPropagationPolicy(java.lang.String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * List tasks. + * Gets information about a service. * - * Create a request for the method "tasks.list". + * Create a request for the method "services.get". * * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param parent Required. The namespace from which the tasks should be listed. Replace {namespace} with the project - * ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param name Required. The fully qualified name of the service to retrieve. It can be any of the following forms: + * * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is + * regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * + * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class List extends CloudRunRequest { + public class Get extends CloudRunRequest { - private static final String REST_PATH = "apis/run.googleapis.com/v1/{+parent}/tasks"; + private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^namespaces/[^/]+/services/[^/]+$"); /** - * List tasks. + * Gets information about a service. * - * Create a request for the method "tasks.list". + * Create a request for the method "services.get". * * This request holds the parameters needed by the the run 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 + * 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 parent Required. The namespace from which the tasks should be listed. Replace {namespace} with the project - * ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param name Required. The fully qualified name of the service to retrieve. It can be any of the following forms: + * * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is + * regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * + * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` * @since 1.13 */ - protected List(java.lang.String parent) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListTasksResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Get(java.lang.String name) { + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.Service.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^namespaces/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^namespaces/[^/]+/services/[^/]+$"); } } @@ -5879,8 +6157,170 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + 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 fully qualified name of the service to retrieve. It can be any of the + * following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when + * the `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * + * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The fully qualified name of the service to retrieve. It can be any of the following + forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is + regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * + `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The fully qualified name of the service to retrieve. It can be any of the + * following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when + * the `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * + * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + */ + 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 " + + "^namespaces/[^/]+/services/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists services for the given project and region. Results are sorted by creation time, descending. + * + * Create a request for the method "services.list". + * + * This request holds the parameters needed by the run server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the + * following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + * `namespaces/{project_id_or_number}/services` * + * `projects/{project_id_or_number}/locations/{region}` * + * `projects/{project_id_or_number}/regions/{region}` + * @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 CloudRunRequest { + + private static final String REST_PATH = "apis/serving.knative.dev/v1/{+parent}/services"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^namespaces/[^/]+$"); + + /** + * Lists services for the given project and region. Results are sorted by creation time, + * descending. + * + * Create a request for the method "services.list". + * + * This request holds the parameters needed by the the run 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 from where the resources should be listed. In Cloud Run, it may be one of the + * following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + * `namespaces/{project_id_or_number}/services` * + * `projects/{project_id_or_number}/locations/{region}` * + * `projects/{project_id_or_number}/regions/{region}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListServicesResponse.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 " + + "^namespaces/[^/]+$"); + } + } + + @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 @@ -5934,24 +6374,30 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The namespace from which the tasks should be listed. Replace {namespace} with - * the project ID or number. It takes the form namespaces/{namespace}. For example: - * namespaces/PROJECT_ID + * Required. The parent from where the resources should be listed. In Cloud Run, it may be + * one of the following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + * `namespaces/{project_id_or_number}/services` * + * `projects/{project_id_or_number}/locations/{region}` * + * `projects/{project_id_or_number}/regions/{region}` */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The namespace from which the tasks should be listed. Replace {namespace} with the project - ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID + /** Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the + following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + `namespaces/{project_id_or_number}/services` * `projects/{project_id_or_number}/locations/{region}` + * `projects/{project_id_or_number}/regions/{region}` */ public java.lang.String getParent() { return parent; } /** - * Required. The namespace from which the tasks should be listed. Replace {namespace} with - * the project ID or number. It takes the form namespaces/{namespace}. For example: - * namespaces/PROJECT_ID + * Required. The parent from where the resources should be listed. In Cloud Run, it may be + * one of the following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + * `namespaces/{project_id_or_number}/services` * + * `projects/{project_id_or_number}/locations/{region}` * + * `projects/{project_id_or_number}/regions/{region}` */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -5963,146 +6409,119 @@ public List setParent(java.lang.String parent) { return this; } - /** Optional. Optional encoded string to continue paging. */ + /** Encoded string to continue paging. */ @com.google.api.client.util.Key("continue") private java.lang.String continue__; - /** Optional. Optional encoded string to continue paging. + /** Encoded string to continue paging. */ public java.lang.String getContinue() { return continue__; } - /** Optional. Optional encoded string to continue paging. */ + /** Encoded string to continue paging. */ public List setContinue(java.lang.String continue__) { this.continue__ = continue__; return this; } - /** Optional. Not supported by Cloud Run. */ + /** Not supported, and ignored by Cloud Run. */ @com.google.api.client.util.Key private java.lang.String fieldSelector; - /** Optional. Not supported by Cloud Run. + /** Not supported, and ignored by Cloud Run. */ public java.lang.String getFieldSelector() { return fieldSelector; } - /** Optional. Not supported by Cloud Run. */ + /** Not supported, and ignored by Cloud Run. */ public List setFieldSelector(java.lang.String fieldSelector) { this.fieldSelector = fieldSelector; return this; } - /** Optional. Not supported by Cloud Run. */ + /** Not supported, and ignored by Cloud Run. */ @com.google.api.client.util.Key private java.lang.Boolean includeUninitialized; - /** Optional. Not supported by Cloud Run. + /** Not supported, and ignored by Cloud Run. */ public java.lang.Boolean getIncludeUninitialized() { return includeUninitialized; } - /** Optional. Not supported by Cloud Run. */ + /** Not supported, and ignored by Cloud Run. */ public List setIncludeUninitialized(java.lang.Boolean includeUninitialized) { this.includeUninitialized = includeUninitialized; return this; } /** - * Optional. Allows to filter resources based on a label. Supported operations are =, !=, - * exists, in, and notIn. For example, to list all tasks of execution "foo" in succeeded - * state: `run.googleapis.com/execution=foo,run.googleapis.com/runningState=Succeeded`. - * Supported states are: * `Pending`: Initial state of all tasks. The task has not yet - * started but eventually will. * `Running`: Container instances for this task are running - * or will be running shortly. * `Succeeded`: No more container instances to run for the - * task, and the last attempt succeeded. * `Failed`: No more container instances to run for - * the task, and the last attempt failed. This task has run out of retry attempts. * - * `Cancelled`: Task was running but got stopped because its parent execution has been - * aborted. * `Abandoned`: The task has not yet started and never will because its parent - * execution has been aborted. + * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, + * and notIn. */ @com.google.api.client.util.Key private java.lang.String labelSelector; - /** Optional. Allows to filter resources based on a label. Supported operations are =, !=, exists, in, - and notIn. For example, to list all tasks of execution "foo" in succeeded state: - `run.googleapis.com/execution=foo,run.googleapis.com/runningState=Succeeded`. Supported states are: - * `Pending`: Initial state of all tasks. The task has not yet started but eventually will. * - `Running`: Container instances for this task are running or will be running shortly. * `Succeeded`: - No more container instances to run for the task, and the last attempt succeeded. * `Failed`: No - more container instances to run for the task, and the last attempt failed. This task has run out of - retry attempts. * `Cancelled`: Task was running but got stopped because its parent execution has - been aborted. * `Abandoned`: The task has not yet started and never will because its parent - execution has been aborted. + /** Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. */ public java.lang.String getLabelSelector() { return labelSelector; } /** - * Optional. Allows to filter resources based on a label. Supported operations are =, !=, - * exists, in, and notIn. For example, to list all tasks of execution "foo" in succeeded - * state: `run.googleapis.com/execution=foo,run.googleapis.com/runningState=Succeeded`. - * Supported states are: * `Pending`: Initial state of all tasks. The task has not yet - * started but eventually will. * `Running`: Container instances for this task are running - * or will be running shortly. * `Succeeded`: No more container instances to run for the - * task, and the last attempt succeeded. * `Failed`: No more container instances to run for - * the task, and the last attempt failed. This task has run out of retry attempts. * - * `Cancelled`: Task was running but got stopped because its parent execution has been - * aborted. * `Abandoned`: The task has not yet started and never will because its parent - * execution has been aborted. + * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, + * and notIn. */ public List setLabelSelector(java.lang.String labelSelector) { this.labelSelector = labelSelector; return this; } - /** Optional. The maximum number of records that should be returned. */ + /** The maximum number of records that should be returned. */ @com.google.api.client.util.Key private java.lang.Integer limit; - /** Optional. The maximum number of records that should be returned. + /** The maximum number of records that should be returned. */ public java.lang.Integer getLimit() { return limit; } - /** Optional. The maximum number of records that should be returned. */ + /** The maximum number of records that should be returned. */ public List setLimit(java.lang.Integer limit) { this.limit = limit; return this; } - /** Optional. Not supported by Cloud Run. */ + /** Not supported, and ignored by Cloud Run. */ @com.google.api.client.util.Key private java.lang.String resourceVersion; - /** Optional. Not supported by Cloud Run. + /** Not supported, and ignored by Cloud Run. */ public java.lang.String getResourceVersion() { return resourceVersion; } - /** Optional. Not supported by Cloud Run. */ + /** Not supported, and ignored by Cloud Run. */ public List setResourceVersion(java.lang.String resourceVersion) { this.resourceVersion = resourceVersion; return this; } - /** Optional. Not supported by Cloud Run. */ + /** Not supported, and ignored by Cloud Run. */ @com.google.api.client.util.Key private java.lang.Boolean watch; - /** Optional. Not supported by Cloud Run. + /** Not supported, and ignored by Cloud Run. */ public java.lang.Boolean getWatch() { return watch; } - /** Optional. Not supported by Cloud Run. */ + /** Not supported, and ignored by Cloud Run. */ public List setWatch(java.lang.Boolean watch) { this.watch = watch; return this; @@ -6113,176 +6532,155 @@ public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Workerpools collection. - * - *

    The typical use is:

    - *
    -     *   {@code CloudRun run = new CloudRun(...);}
    -     *   {@code CloudRun.Workerpools.List request = run.workerpools().list(parameters ...)}
    -     * 
    - * - * @return the resource collection - */ - public Workerpools workerpools() { - return new Workerpools(); - } - - /** - * The "workerpools" collection of methods. - */ - public class Workerpools { - /** - * Creates a new WorkerPool. WorkerPool creation will trigger a new deployment. Use GetWorkerPool, - * and check worker_pool.status to determine if the WorkerPool is ready. + * Replaces a service. Only the spec and metadata labels and annotations are modifiable. After the + * Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide + * metadata.resourceVersion to enforce update from last read for optimistic concurrency control. * - * Create a request for the method "workerpools.create". + * Create a request for the method "services.replaceService". * * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * parameters, call the {@link ReplaceService#execute()} method to invoke the remote operation. * - * @param parent Required. The resource's parent. In Cloud Run, it may be one of the following: * - * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - * `namespaces/{project_id_or_number}/workerpools` * - * `projects/{project_id_or_number}/locations/{region}` * - * `projects/{project_id_or_number}/regions/{region}` - * @param content the {@link com.google.api.services.run.v1.model.WorkerPool} + * @param name Required. The fully qualified name of the service to replace. It can be any of the following forms: + * * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is + * regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * + * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * @param content the {@link com.google.api.services.run.v1.model.Service} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.run.v1.model.WorkerPool content) throws java.io.IOException { - Create result = new Create(parent, content); + public ReplaceService replaceService(java.lang.String name, com.google.api.services.run.v1.model.Service content) throws java.io.IOException { + ReplaceService result = new ReplaceService(name, content); initialize(result); return result; } - public class Create extends CloudRunRequest { + public class ReplaceService extends CloudRunRequest { - private static final String REST_PATH = "apis/run.googleapis.com/v1/{+parent}/workerpools"; + private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^namespaces/[^/]+/services/[^/]+$"); /** - * Creates a new WorkerPool. WorkerPool creation will trigger a new deployment. Use GetWorkerPool, - * and check worker_pool.status to determine if the WorkerPool is ready. + * Replaces a service. Only the spec and metadata labels and annotations are modifiable. After the + * Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May + * provide metadata.resourceVersion to enforce update from last read for optimistic concurrency + * control. * - * Create a request for the method "workerpools.create". + * Create a request for the method "services.replaceService". * * This request holds the parameters needed by the the run 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 ReplaceService#execute()} method to invoke the remote operation. + *

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

    * - * @param parent Required. The resource's parent. In Cloud Run, it may be one of the following: * - * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - * `namespaces/{project_id_or_number}/workerpools` * - * `projects/{project_id_or_number}/locations/{region}` * - * `projects/{project_id_or_number}/regions/{region}` - * @param content the {@link com.google.api.services.run.v1.model.WorkerPool} + * @param name Required. The fully qualified name of the service to replace. It can be any of the following forms: + * * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is + * regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * + * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` + * @param content the {@link com.google.api.services.run.v1.model.Service} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.run.v1.model.WorkerPool content) { - super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.WorkerPool.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected ReplaceService(java.lang.String name, com.google.api.services.run.v1.model.Service content) { + super(CloudRun.this, "PUT", REST_PATH, content, com.google.api.services.run.v1.model.Service.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^namespaces/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^namespaces/[^/]+/services/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public ReplaceService set$Xgafv(java.lang.String $Xgafv) { + return (ReplaceService) super.set$Xgafv($Xgafv); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public ReplaceService setAccessToken(java.lang.String accessToken) { + return (ReplaceService) super.setAccessToken(accessToken); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public ReplaceService setAlt(java.lang.String alt) { + return (ReplaceService) super.setAlt(alt); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public ReplaceService setCallback(java.lang.String callback) { + return (ReplaceService) super.setCallback(callback); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public ReplaceService setFields(java.lang.String fields) { + return (ReplaceService) super.setFields(fields); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public ReplaceService setKey(java.lang.String key) { + return (ReplaceService) super.setKey(key); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public ReplaceService setOauthToken(java.lang.String oauthToken) { + return (ReplaceService) super.setOauthToken(oauthToken); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public ReplaceService setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ReplaceService) super.setPrettyPrint(prettyPrint); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public ReplaceService setQuotaUser(java.lang.String quotaUser) { + return (ReplaceService) super.setQuotaUser(quotaUser); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public ReplaceService setUploadType(java.lang.String uploadType) { + return (ReplaceService) super.setUploadType(uploadType); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public ReplaceService setUploadProtocol(java.lang.String uploadProtocol) { + return (ReplaceService) super.setUploadProtocol(uploadProtocol); } /** - * Required. The resource's parent. In Cloud Run, it may be one of the following: * - * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - * `namespaces/{project_id_or_number}/workerpools` * - * `projects/{project_id_or_number}/locations/{region}` * - * `projects/{project_id_or_number}/regions/{region}` + * Required. The fully qualified name of the service to replace. It can be any of the + * following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when + * the `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * + * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The resource's parent. In Cloud Run, it may be one of the following: * - `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - `namespaces/{project_id_or_number}/workerpools` * - `projects/{project_id_or_number}/locations/{region}` * - `projects/{project_id_or_number}/regions/{region}` + /** Required. The fully qualified name of the service to replace. It can be any of the following forms: + * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is + regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * + `projects/{project_id_or_number}/regions/{region}/services/{service_name}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * Required. The resource's parent. In Cloud Run, it may be one of the following: * - * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - * `namespaces/{project_id_or_number}/workerpools` * - * `projects/{project_id_or_number}/locations/{region}` * - * `projects/{project_id_or_number}/regions/{region}` + * Required. The fully qualified name of the service to replace. It can be any of the + * following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when + * the `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * + * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` */ - public Create setParent(java.lang.String parent) { + public ReplaceService setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^namespaces/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^namespaces/[^/]+/services/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } @@ -6304,245 +6702,84 @@ public java.lang.String getDryRun() { * Indicates that the server should validate the request and populate default values without * persisting the request. Supported values: `all` */ - public Create setDryRun(java.lang.String dryRun) { + public ReplaceService setDryRun(java.lang.String dryRun) { this.dryRun = dryRun; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public ReplaceService set(String parameterName, Object value) { + return (ReplaceService) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Tasks collection. + * + *

    The typical use is:

    + *
    +     *   {@code CloudRun run = new CloudRun(...);}
    +     *   {@code CloudRun.Tasks.List request = run.tasks().list(parameters ...)}
    +     * 
    + * + * @return the resource collection + */ + public Tasks tasks() { + return new Tasks(); + } + + /** + * The "tasks" collection of methods. + */ + public class Tasks { + /** - * Deletes the provided worker pool. This will cause the WorkerPool to stop all instances and will - * delete all associated WorkerPoolRevisions. + * Get information about a task. * - * Create a request for the method "workerpools.delete". + * Create a request for the method "tasks.get". * * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The fully qualified name of the worker pool to delete. It can be any of the following - * forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the - * `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * - * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + * @param name Required. The name of the task to retrieve. Replace {namespace} with the project ID or number. It + * takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Delete extends CloudRunRequest { + public class Get extends CloudRunRequest { private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+/workerpools/[^/]+$"); + java.util.regex.Pattern.compile("^namespaces/[^/]+/tasks/[^/]+$"); /** - * Deletes the provided worker pool. This will cause the WorkerPool to stop all instances and will - * delete all associated WorkerPoolRevisions. + * Get information about a task. * - * Create a request for the method "workerpools.delete". + * Create a request for the method "tasks.get". * * This request holds the parameters needed by the the run 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 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 fully qualified name of the worker pool to delete. It can be any of the following - * forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the - * `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * - * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + * @param name Required. The name of the task to retrieve. Replace {namespace} with the project ID or number. It + * takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * @since 1.13 */ - protected Delete(java.lang.String name) { - super(CloudRun.this, "DELETE", REST_PATH, null, com.google.api.services.run.v1.model.Status.class); + protected Get(java.lang.String name) { + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.Task.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 " + - "^namespaces/[^/]+/workerpools/[^/]+$"); - } - } - - @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 fully qualified name of the worker pool to delete. It can be any of the - * following forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` - * (only when the `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * - * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The fully qualified name of the worker pool to delete. It can be any of the following - forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the - `endpoint` is regional) * - `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * - `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The fully qualified name of the worker pool to delete. It can be any of the - * following forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` - * (only when the `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * - * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` - */ - 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 " + - "^namespaces/[^/]+/workerpools/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Indicates that the server should validate the request and populate default values without - * persisting the request. Supported values: `all` - */ - @com.google.api.client.util.Key - private java.lang.String dryRun; - - /** Indicates that the server should validate the request and populate default values without - persisting the request. Supported values: `all` - */ - public java.lang.String getDryRun() { - return dryRun; - } - - /** - * Indicates that the server should validate the request and populate default values without - * persisting the request. Supported values: `all` - */ - public Delete setDryRun(java.lang.String dryRun) { - this.dryRun = dryRun; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets information about a worker pool. - * - * Create a request for the method "workerpools.get". - * - * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The fully qualified name of the worker pool to retrieve. It can be any of the following - * forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the - * `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * - * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` - * @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 CloudRunRequest { - - private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+/workerpools/[^/]+$"); - - /** - * Gets information about a worker pool. - * - * Create a request for the method "workerpools.get". - * - * This request holds the parameters needed by the the run 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 fully qualified name of the worker pool to retrieve. It can be any of the following - * forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the - * `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * - * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.WorkerPool.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 " + - "^namespaces/[^/]+/workerpools/[^/]+$"); + "^namespaces/[^/]+/tasks/[^/]+$"); } } @@ -6612,37 +6849,28 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The fully qualified name of the worker pool to retrieve. It can be any of the - * following forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` - * (only when the `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * - * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + * Required. The name of the task to retrieve. Replace {namespace} with the project ID or + * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The fully qualified name of the worker pool to retrieve. It can be any of the following - forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the - `endpoint` is regional) * - `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * - `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + /** Required. The name of the task to retrieve. Replace {namespace} with the project ID or number. It + takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ public java.lang.String getName() { return name; } /** - * Required. The fully qualified name of the worker pool to retrieve. It can be any of the - * following forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` - * (only when the `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * - * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + * Required. The name of the task to retrieve. Replace {namespace} with the project ID or + * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ 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 " + - "^namespaces/[^/]+/workerpools/[^/]+$"); + "^namespaces/[^/]+/tasks/[^/]+$"); } this.name = name; return this; @@ -6654,19 +6882,15 @@ public Get set(String parameterName, Object value) { } } /** - * Lists worker pools for the given project and region. Results are sorted by creation time, - * descending. + * List tasks. * - * Create a request for the method "workerpools.list". + * Create a request for the method "tasks.list". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the - * following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - * `namespaces/{project_id_or_number}/workerpools` * - * `projects/{project_id_or_number}/locations/{region}` * - * `projects/{project_id_or_number}/regions/{region}` + * @param parent Required. The namespace from which the tasks should be listed. Replace {namespace} with the project + * ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -6675,33 +6899,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends CloudRunRequest { + public class List extends CloudRunRequest { - private static final String REST_PATH = "apis/run.googleapis.com/v1/{+parent}/workerpools"; + private static final String REST_PATH = "apis/run.googleapis.com/v1/{+parent}/tasks"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** - * Lists worker pools for the given project and region. Results are sorted by creation time, - * descending. + * List tasks. * - * Create a request for the method "workerpools.list". + * Create a request for the method "tasks.list". * * This request holds the parameters needed by the the run 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 from where the resources should be listed. In Cloud Run, it may be one of the - * following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - * `namespaces/{project_id_or_number}/workerpools` * - * `projects/{project_id_or_number}/locations/{region}` * - * `projects/{project_id_or_number}/regions/{region}` + * @param parent Required. The namespace from which the tasks should be listed. Replace {namespace} with the project + * ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * @since 1.13 */ protected List(java.lang.String parent) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListWorkerPoolsResponse.class); + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListTasksResponse.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(), @@ -6776,31 +6996,24 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Required. The parent from where the resources should be listed. In Cloud Run, it may be - * one of the following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - * `namespaces/{project_id_or_number}/workerpools` * - * `projects/{project_id_or_number}/locations/{region}` * - * `projects/{project_id_or_number}/regions/{region}` + * Required. The namespace from which the tasks should be listed. Replace {namespace} with + * the project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the - following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - `namespaces/{project_id_or_number}/workerpools` * - `projects/{project_id_or_number}/locations/{region}` * - `projects/{project_id_or_number}/regions/{region}` + /** Required. The namespace from which the tasks should be listed. Replace {namespace} with the project + ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ public java.lang.String getParent() { return parent; } /** - * Required. The parent from where the resources should be listed. In Cloud Run, it may be - * one of the following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * - * `namespaces/{project_id_or_number}/workerpools` * - * `projects/{project_id_or_number}/locations/{region}` * - * `projects/{project_id_or_number}/regions/{region}` + * Required. The namespace from which the tasks should be listed. Replace {namespace} with + * the project ID or number. It takes the form namespaces/{namespace}. For example: + * namespaces/PROJECT_ID */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { @@ -6812,214 +7025,326 @@ public List setParent(java.lang.String parent) { return this; } - /** Encoded string to continue paging. */ + /** Optional. Optional encoded string to continue paging. */ @com.google.api.client.util.Key("continue") private java.lang.String continue__; - /** Encoded string to continue paging. + /** Optional. Optional encoded string to continue paging. */ public java.lang.String getContinue() { return continue__; } - /** Encoded string to continue paging. */ + /** Optional. Optional encoded string to continue paging. */ public List setContinue(java.lang.String continue__) { this.continue__ = continue__; return this; } - /** =, !=, exists, in, and notIn. */ + /** Optional. Not supported by Cloud Run. */ @com.google.api.client.util.Key - private java.lang.String labelSelector; + private java.lang.String fieldSelector; - /**=, !=, exists, in, and notIn. - =, + /** Optional. Not supported by Cloud Run. + */ + public java.lang.String getFieldSelector() { + return fieldSelector; + } + + /** Optional. Not supported by Cloud Run. */ + public List setFieldSelector(java.lang.String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** Optional. Not supported by Cloud Run. */ + @com.google.api.client.util.Key + private java.lang.Boolean includeUninitialized; + + /** Optional. Not supported by Cloud Run. + */ + public java.lang.Boolean getIncludeUninitialized() { + return includeUninitialized; + } + + /** Optional. Not supported by Cloud Run. */ + public List setIncludeUninitialized(java.lang.Boolean includeUninitialized) { + this.includeUninitialized = includeUninitialized; + return this; + } + + /** + * Optional. Allows to filter resources based on a label. Supported operations are =, !=, + * exists, in, and notIn. For example, to list all tasks of execution "foo" in succeeded + * state: `run.googleapis.com/execution=foo,run.googleapis.com/runningState=Succeeded`. + * Supported states are: * `Pending`: Initial state of all tasks. The task has not yet + * started but eventually will. * `Running`: Container instances for this task are running + * or will be running shortly. * `Succeeded`: No more container instances to run for the + * task, and the last attempt succeeded. * `Failed`: No more container instances to run for + * the task, and the last attempt failed. This task has run out of retry attempts. * + * `Cancelled`: Task was running but got stopped because its parent execution has been + * aborted. * `Abandoned`: The task has not yet started and never will because its parent + * execution has been aborted. + */ + @com.google.api.client.util.Key + private java.lang.String labelSelector; + /** Optional. Allows to filter resources based on a label. Supported operations are =, !=, exists, in, + and notIn. For example, to list all tasks of execution "foo" in succeeded state: + `run.googleapis.com/execution=foo,run.googleapis.com/runningState=Succeeded`. Supported states are: + * `Pending`: Initial state of all tasks. The task has not yet started but eventually will. * + `Running`: Container instances for this task are running or will be running shortly. * `Succeeded`: + No more container instances to run for the task, and the last attempt succeeded. * `Failed`: No + more container instances to run for the task, and the last attempt failed. This task has run out of + retry attempts. * `Cancelled`: Task was running but got stopped because its parent execution has + been aborted. * `Abandoned`: The task has not yet started and never will because its parent + execution has been aborted. */ public java.lang.String getLabelSelector() { return labelSelector; } - /** =, !=, exists, in, and notIn. */ + /** + * Optional. Allows to filter resources based on a label. Supported operations are =, !=, + * exists, in, and notIn. For example, to list all tasks of execution "foo" in succeeded + * state: `run.googleapis.com/execution=foo,run.googleapis.com/runningState=Succeeded`. + * Supported states are: * `Pending`: Initial state of all tasks. The task has not yet + * started but eventually will. * `Running`: Container instances for this task are running + * or will be running shortly. * `Succeeded`: No more container instances to run for the + * task, and the last attempt succeeded. * `Failed`: No more container instances to run for + * the task, and the last attempt failed. This task has run out of retry attempts. * + * `Cancelled`: Task was running but got stopped because its parent execution has been + * aborted. * `Abandoned`: The task has not yet started and never will because its parent + * execution has been aborted. + */ public List setLabelSelector(java.lang.String labelSelector) { this.labelSelector = labelSelector; return this; } - /** The maximum number of records that should be returned. */ + /** Optional. The maximum number of records that should be returned. */ @com.google.api.client.util.Key private java.lang.Integer limit; - /** The maximum number of records that should be returned. + /** Optional. The maximum number of records that should be returned. */ public java.lang.Integer getLimit() { return limit; } - /** The maximum number of records that should be returned. */ + /** Optional. The maximum number of records that should be returned. */ public List setLimit(java.lang.Integer limit) { this.limit = limit; return this; } + /** Optional. Not supported by Cloud Run. */ + @com.google.api.client.util.Key + private java.lang.String resourceVersion; + + /** Optional. Not supported by Cloud Run. + */ + public java.lang.String getResourceVersion() { + return resourceVersion; + } + + /** Optional. Not supported by Cloud Run. */ + public List setResourceVersion(java.lang.String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** Optional. Not supported by Cloud Run. */ + @com.google.api.client.util.Key + private java.lang.Boolean watch; + + /** Optional. Not supported by Cloud Run. + */ + public java.lang.Boolean getWatch() { + return watch; + } + + /** Optional. Not supported by Cloud Run. */ + public List setWatch(java.lang.Boolean watch) { + this.watch = watch; + return this; + } + @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Workerpools collection. + * + *

    The typical use is:

    + *
    +     *   {@code CloudRun run = new CloudRun(...);}
    +     *   {@code CloudRun.Workerpools.List request = run.workerpools().list(parameters ...)}
    +     * 
    + * + * @return the resource collection + */ + public Workerpools workerpools() { + return new Workerpools(); + } + + /** + * The "workerpools" collection of methods. + */ + public class Workerpools { + /** - * Replaces a worker pool. Only the spec and metadata labels and annotations are modifiable. After - * the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May - * provide metadata.resourceVersion to enforce update from last read for optimistic concurrency - * control. + * Creates a new WorkerPool. WorkerPool creation will trigger a new deployment. Use GetWorkerPool, + * and check worker_pool.status to determine if the WorkerPool is ready. * - * Create a request for the method "workerpools.replaceWorkerPool". + * Create a request for the method "workerpools.create". * * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link ReplaceWorkerPool#execute()} method to invoke the remote operation. + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param name Required. The fully qualified name of the worker pool to replace. It can be any of the following - * forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the - * `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * - * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + * @param parent Required. The resource's parent. In Cloud Run, it may be one of the following: * + * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + * `namespaces/{project_id_or_number}/workerpools` * + * `projects/{project_id_or_number}/locations/{region}` * + * `projects/{project_id_or_number}/regions/{region}` * @param content the {@link com.google.api.services.run.v1.model.WorkerPool} * @return the request */ - public ReplaceWorkerPool replaceWorkerPool(java.lang.String name, com.google.api.services.run.v1.model.WorkerPool content) throws java.io.IOException { - ReplaceWorkerPool result = new ReplaceWorkerPool(name, content); + public Create create(java.lang.String parent, com.google.api.services.run.v1.model.WorkerPool content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class ReplaceWorkerPool extends CloudRunRequest { + public class Create extends CloudRunRequest { - private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; + private static final String REST_PATH = "apis/run.googleapis.com/v1/{+parent}/workerpools"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^namespaces/[^/]+/workerpools/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** - * Replaces a worker pool. Only the spec and metadata labels and annotations are modifiable. After - * the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May - * provide metadata.resourceVersion to enforce update from last read for optimistic concurrency - * control. + * Creates a new WorkerPool. WorkerPool creation will trigger a new deployment. Use GetWorkerPool, + * and check worker_pool.status to determine if the WorkerPool is ready. * - * Create a request for the method "workerpools.replaceWorkerPool". + * Create a request for the method "workerpools.create". * * This request holds the parameters needed by the the run server. After setting any optional - * parameters, call the {@link ReplaceWorkerPool#execute()} method to invoke the remote operation. - *

    {@link ReplaceWorkerPool#initialize(com.google.api.client.googleapis.services.AbstractGoogl - * eClientRequest)} 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 name Required. The fully qualified name of the worker pool to replace. It can be any of the following - * forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the - * `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * - * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + * @param parent Required. The resource's parent. In Cloud Run, it may be one of the following: * + * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + * `namespaces/{project_id_or_number}/workerpools` * + * `projects/{project_id_or_number}/locations/{region}` * + * `projects/{project_id_or_number}/regions/{region}` * @param content the {@link com.google.api.services.run.v1.model.WorkerPool} * @since 1.13 */ - protected ReplaceWorkerPool(java.lang.String name, com.google.api.services.run.v1.model.WorkerPool content) { - super(CloudRun.this, "PUT", REST_PATH, content, com.google.api.services.run.v1.model.WorkerPool.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Create(java.lang.String parent, com.google.api.services.run.v1.model.WorkerPool content) { + super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.WorkerPool.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^namespaces/[^/]+/workerpools/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^namespaces/[^/]+$"); } } @Override - public ReplaceWorkerPool set$Xgafv(java.lang.String $Xgafv) { - return (ReplaceWorkerPool) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public ReplaceWorkerPool setAccessToken(java.lang.String accessToken) { - return (ReplaceWorkerPool) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public ReplaceWorkerPool setAlt(java.lang.String alt) { - return (ReplaceWorkerPool) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public ReplaceWorkerPool setCallback(java.lang.String callback) { - return (ReplaceWorkerPool) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public ReplaceWorkerPool setFields(java.lang.String fields) { - return (ReplaceWorkerPool) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public ReplaceWorkerPool setKey(java.lang.String key) { - return (ReplaceWorkerPool) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public ReplaceWorkerPool setOauthToken(java.lang.String oauthToken) { - return (ReplaceWorkerPool) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public ReplaceWorkerPool setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ReplaceWorkerPool) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public ReplaceWorkerPool setQuotaUser(java.lang.String quotaUser) { - return (ReplaceWorkerPool) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public ReplaceWorkerPool setUploadType(java.lang.String uploadType) { - return (ReplaceWorkerPool) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public ReplaceWorkerPool setUploadProtocol(java.lang.String uploadProtocol) { - return (ReplaceWorkerPool) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } /** - * Required. The fully qualified name of the worker pool to replace. It can be any of the - * following forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` - * (only when the `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * - * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` - */ - @com.google.api.client.util.Key - private java.lang.String name; + * Required. The resource's parent. In Cloud Run, it may be one of the following: * + * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + * `namespaces/{project_id_or_number}/workerpools` * + * `projects/{project_id_or_number}/locations/{region}` * + * `projects/{project_id_or_number}/regions/{region}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** Required. The fully qualified name of the worker pool to replace. It can be any of the following - forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the - `endpoint` is regional) * - `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * - `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + /** Required. The resource's parent. In Cloud Run, it may be one of the following: * + `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + `namespaces/{project_id_or_number}/workerpools` * + `projects/{project_id_or_number}/locations/{region}` * + `projects/{project_id_or_number}/regions/{region}` */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } /** - * Required. The fully qualified name of the worker pool to replace. It can be any of the - * following forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` - * (only when the `endpoint` is regional) * - * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * - * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + * Required. The resource's parent. In Cloud Run, it may be one of the following: * + * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + * `namespaces/{project_id_or_number}/workerpools` * + * `projects/{project_id_or_number}/locations/{region}` * + * `projects/{project_id_or_number}/regions/{region}` */ - public ReplaceWorkerPool setName(java.lang.String name) { + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^namespaces/[^/]+/workerpools/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^namespaces/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } @@ -7041,296 +7366,409 @@ public java.lang.String getDryRun() { * Indicates that the server should validate the request and populate default values without * persisting the request. Supported values: `all` */ - public ReplaceWorkerPool setDryRun(java.lang.String dryRun) { + public Create setDryRun(java.lang.String dryRun) { this.dryRun = dryRun; return this; } @Override - public ReplaceWorkerPool set(String parameterName, Object value) { - return (ReplaceWorkerPool) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } - - } - } - - /** - * An accessor for creating requests from the Projects collection. - * - *

    The typical use is:

    - *
    -   *   {@code CloudRun run = new CloudRun(...);}
    -   *   {@code CloudRun.Projects.List request = run.projects().list(parameters ...)}
    -   * 
    - * - * @return the resource collection - */ - public Projects projects() { - return new Projects(); - } - - /** - * The "projects" collection of methods. - */ - public class Projects { - - /** - * An accessor for creating requests from the Authorizeddomains collection. - * - *

    The typical use is:

    - *
    -     *   {@code CloudRun run = new CloudRun(...);}
    -     *   {@code CloudRun.Authorizeddomains.List request = run.authorizeddomains().list(parameters ...)}
    -     * 
    - * - * @return the resource collection - */ - public Authorizeddomains authorizeddomains() { - return new Authorizeddomains(); - } - - /** - * The "authorizeddomains" collection of methods. - */ - public class Authorizeddomains { - /** - * List authorized domains. + * Deletes the provided worker pool. This will cause the WorkerPool to stop all instances and will + * delete all associated WorkerPoolRevisions. * - * Create a request for the method "authorizeddomains.list". + * Create a request for the method "workerpools.delete". * * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param parent Name of the parent Project resource. Example: `projects/myproject`. + * @param name Required. The fully qualified name of the worker pool to delete. It can be any of the following + * forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the + * `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * + * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class List extends CloudRunRequest { + public class Delete extends CloudRunRequest { - private static final String REST_PATH = "v1/{+parent}/authorizeddomains"; + private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^namespaces/[^/]+/workerpools/[^/]+$"); /** - * List authorized domains. + * Deletes the provided worker pool. This will cause the WorkerPool to stop all instances and will + * delete all associated WorkerPoolRevisions. * - * Create a request for the method "authorizeddomains.list". + * Create a request for the method "workerpools.delete". * * This request holds the parameters needed by the the run 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 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 parent Name of the parent Project resource. Example: `projects/myproject`. + * @param name Required. The fully qualified name of the worker pool to delete. It can be any of the following + * forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the + * `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * + * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` * @since 1.13 */ - protected List(java.lang.String parent) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListAuthorizedDomainsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Delete(java.lang.String name) { + super(CloudRun.this, "DELETE", REST_PATH, null, com.google.api.services.run.v1.model.Status.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^namespaces/[^/]+/workerpools/[^/]+$"); } } @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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** Name of the parent Project resource. Example: `projects/myproject`. */ + /** + * Required. The fully qualified name of the worker pool to delete. It can be any of the + * following forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` + * (only when the `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * + * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Name of the parent Project resource. Example: `projects/myproject`. + /** Required. The fully qualified name of the worker pool to delete. It can be any of the following + forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the + `endpoint` is regional) * + `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * + `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** Name of the parent Project resource. Example: `projects/myproject`. */ - public List setParent(java.lang.String parent) { + /** + * Required. The fully qualified name of the worker pool to delete. It can be any of the + * following forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` + * (only when the `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * + * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + */ + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^namespaces/[^/]+/workerpools/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } - /** Maximum results to return per page. */ + /** + * Indicates that the server should validate the request and populate default values without + * persisting the request. Supported values: `all` + */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.String dryRun; - /** Maximum results to return per page. + /** Indicates that the server should validate the request and populate default values without + persisting the request. Supported values: `all` */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.String getDryRun() { + return dryRun; } - /** Maximum results to return per page. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + /** + * Indicates that the server should validate the request and populate default values without + * persisting the request. Supported values: `all` + */ + public Delete setDryRun(java.lang.String dryRun) { + this.dryRun = dryRun; return this; } - /** Continuation token for fetching the next page of results. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets information about a worker pool. + * + * Create a request for the method "workerpools.get". + * + * This request holds the parameters needed by the run server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The fully qualified name of the worker pool to retrieve. It can be any of the following + * forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the + * `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * + * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } - /** Continuation token for fetching the next page of results. + public class Get extends CloudRunRequest { + + private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^namespaces/[^/]+/workerpools/[^/]+$"); + + /** + * Gets information about a worker pool. + * + * Create a request for the method "workerpools.get". + * + * This request holds the parameters needed by the the run 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 fully qualified name of the worker pool to retrieve. It can be any of the following + * forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the + * `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * + * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + * @since 1.13 */ - public java.lang.String getPageToken() { - return pageToken; + protected Get(java.lang.String name) { + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.WorkerPool.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 " + + "^namespaces/[^/]+/workerpools/[^/]+$"); + } } - /** Continuation token for fetching the next page of results. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } - } - } - /** - * An accessor for creating requests from the Locations collection. - * - *

    The typical use is:

    - *
    -     *   {@code CloudRun run = new CloudRun(...);}
    -     *   {@code CloudRun.Locations.List request = run.locations().list(parameters ...)}
    -     * 
    - * - * @return the resource collection - */ - public Locations locations() { - return new Locations(); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - /** - * The "locations" collection of methods. - */ - public class Locations { + @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 fully qualified name of the worker pool to retrieve. It can be any of the + * following forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` + * (only when the `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * + * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The fully qualified name of the worker pool to retrieve. It can be any of the following + forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the + `endpoint` is regional) * + `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * + `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The fully qualified name of the worker pool to retrieve. It can be any of the + * following forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` + * (only when the `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * + * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + */ + 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 " + + "^namespaces/[^/]+/workerpools/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * Lists information about the supported locations for this service. + * Lists worker pools for the given project and region. Results are sorted by creation time, + * descending. * - * Create a request for the method "locations.list". + * Create a request for the method "workerpools.list". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name The resource that owns the locations collection, if applicable. + * @param parent Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the + * following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + * `namespaces/{project_id_or_number}/workerpools` * + * `projects/{project_id_or_number}/locations/{region}` * + * `projects/{project_id_or_number}/regions/{region}` * @return the request */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class List extends CloudRunRequest { + public class List extends CloudRunRequest { - private static final String REST_PATH = "v1/{+name}/locations"; + private static final String REST_PATH = "apis/run.googleapis.com/v1/{+parent}/workerpools"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** - * Lists information about the supported locations for this service. + * Lists worker pools for the given project and region. Results are sorted by creation time, + * descending. * - * Create a request for the method "locations.list". + * Create a request for the method "workerpools.list". * * This request holds the parameters needed by the the run 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 resource that owns the locations collection, if applicable. + * @param parent Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the + * following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + * `namespaces/{project_id_or_number}/workerpools` * + * `projects/{project_id_or_number}/locations/{region}` * + * `projects/{project_id_or_number}/regions/{region}` * @since 1.13 */ - protected List(java.lang.String name) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListLocationsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListWorkerPoolsResponse.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^namespaces/[^/]+$"); } } @@ -7399,149 +7837,1119 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** The resource that owns the locations collection, if applicable. */ + /** + * Required. The parent from where the resources should be listed. In Cloud Run, it may be + * one of the following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + * `namespaces/{project_id_or_number}/workerpools` * + * `projects/{project_id_or_number}/locations/{region}` * + * `projects/{project_id_or_number}/regions/{region}` + */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** The resource that owns the locations collection, if applicable. + /** Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the + following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + `namespaces/{project_id_or_number}/workerpools` * + `projects/{project_id_or_number}/locations/{region}` * + `projects/{project_id_or_number}/regions/{region}` */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** The resource that owns the locations collection, if applicable. */ - public List setName(java.lang.String name) { + /** + * Required. The parent from where the resources should be listed. In Cloud Run, it may be + * one of the following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * + * `namespaces/{project_id_or_number}/workerpools` * + * `projects/{project_id_or_number}/locations/{region}` * + * `projects/{project_id_or_number}/regions/{region}` + */ + 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 " + + "^namespaces/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Encoded string to continue paging. */ + @com.google.api.client.util.Key("continue") + private java.lang.String continue__; + + /** Encoded string to continue paging. + */ + public java.lang.String getContinue() { + return continue__; + } + + /** Encoded string to continue paging. */ + public List setContinue(java.lang.String continue__) { + this.continue__ = continue__; + return this; + } + + /** =, !=, exists, in, and notIn. */ + @com.google.api.client.util.Key + private java.lang.String labelSelector; + + /**=, !=, exists, in, and notIn. + =, + + */ + public java.lang.String getLabelSelector() { + return labelSelector; + } + + /** =, !=, exists, in, and notIn. */ + public List setLabelSelector(java.lang.String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** The maximum number of records that should be returned. */ + @com.google.api.client.util.Key + private java.lang.Integer limit; + + /** The maximum number of records that should be returned. + */ + public java.lang.Integer getLimit() { + return limit; + } + + /** The maximum number of records that should be returned. */ + public List setLimit(java.lang.Integer limit) { + this.limit = limit; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Replaces a worker pool. Only the spec and metadata labels and annotations are modifiable. After + * the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May + * provide metadata.resourceVersion to enforce update from last read for optimistic concurrency + * control. + * + * Create a request for the method "workerpools.replaceWorkerPool". + * + * This request holds the parameters needed by the run server. After setting any optional + * parameters, call the {@link ReplaceWorkerPool#execute()} method to invoke the remote operation. + * + * @param name Required. The fully qualified name of the worker pool to replace. It can be any of the following + * forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the + * `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * + * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + * @param content the {@link com.google.api.services.run.v1.model.WorkerPool} + * @return the request + */ + public ReplaceWorkerPool replaceWorkerPool(java.lang.String name, com.google.api.services.run.v1.model.WorkerPool content) throws java.io.IOException { + ReplaceWorkerPool result = new ReplaceWorkerPool(name, content); + initialize(result); + return result; + } + + public class ReplaceWorkerPool extends CloudRunRequest { + + private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^namespaces/[^/]+/workerpools/[^/]+$"); + + /** + * Replaces a worker pool. Only the spec and metadata labels and annotations are modifiable. After + * the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May + * provide metadata.resourceVersion to enforce update from last read for optimistic concurrency + * control. + * + * Create a request for the method "workerpools.replaceWorkerPool". + * + * This request holds the parameters needed by the the run server. After setting any optional + * parameters, call the {@link ReplaceWorkerPool#execute()} method to invoke the remote operation. + *

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

    + * + * @param name Required. The fully qualified name of the worker pool to replace. It can be any of the following + * forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the + * `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * + * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + * @param content the {@link com.google.api.services.run.v1.model.WorkerPool} + * @since 1.13 + */ + protected ReplaceWorkerPool(java.lang.String name, com.google.api.services.run.v1.model.WorkerPool content) { + super(CloudRun.this, "PUT", REST_PATH, content, com.google.api.services.run.v1.model.WorkerPool.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/[^/]+$"); + "^namespaces/[^/]+/workerpools/[^/]+$"); + } + } + + @Override + public ReplaceWorkerPool set$Xgafv(java.lang.String $Xgafv) { + return (ReplaceWorkerPool) super.set$Xgafv($Xgafv); + } + + @Override + public ReplaceWorkerPool setAccessToken(java.lang.String accessToken) { + return (ReplaceWorkerPool) super.setAccessToken(accessToken); + } + + @Override + public ReplaceWorkerPool setAlt(java.lang.String alt) { + return (ReplaceWorkerPool) super.setAlt(alt); + } + + @Override + public ReplaceWorkerPool setCallback(java.lang.String callback) { + return (ReplaceWorkerPool) super.setCallback(callback); + } + + @Override + public ReplaceWorkerPool setFields(java.lang.String fields) { + return (ReplaceWorkerPool) super.setFields(fields); + } + + @Override + public ReplaceWorkerPool setKey(java.lang.String key) { + return (ReplaceWorkerPool) super.setKey(key); + } + + @Override + public ReplaceWorkerPool setOauthToken(java.lang.String oauthToken) { + return (ReplaceWorkerPool) super.setOauthToken(oauthToken); + } + + @Override + public ReplaceWorkerPool setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ReplaceWorkerPool) super.setPrettyPrint(prettyPrint); + } + + @Override + public ReplaceWorkerPool setQuotaUser(java.lang.String quotaUser) { + return (ReplaceWorkerPool) super.setQuotaUser(quotaUser); + } + + @Override + public ReplaceWorkerPool setUploadType(java.lang.String uploadType) { + return (ReplaceWorkerPool) super.setUploadType(uploadType); + } + + @Override + public ReplaceWorkerPool setUploadProtocol(java.lang.String uploadProtocol) { + return (ReplaceWorkerPool) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The fully qualified name of the worker pool to replace. It can be any of the + * following forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` + * (only when the `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * + * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The fully qualified name of the worker pool to replace. It can be any of the following + forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` (only when the + `endpoint` is regional) * + `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * + `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The fully qualified name of the worker pool to replace. It can be any of the + * following forms: * `namespaces/{project_id_or_number}/workerpools/{worker_pool_name}` + * (only when the `endpoint` is regional) * + * `projects/{project_id_or_number}/locations/{region}/workerpools/{worker_pool_name}` * + * `projects/{project_id_or_number}/regions/{region}/workerpools/{worker_pool_name}` + */ + public ReplaceWorkerPool 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 " + + "^namespaces/[^/]+/workerpools/[^/]+$"); } this.name = name; return this; } /** - * Optional. Do not use this field. It is unsupported and is ignored unless explicitly - * documented otherwise. This is primarily for internal usage. + * Indicates that the server should validate the request and populate default values without + * persisting the request. Supported values: `all` */ @com.google.api.client.util.Key - private java.util.List extraLocationTypes; + private java.lang.String dryRun; - /** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented - otherwise. This is primarily for internal usage. + /** Indicates that the server should validate the request and populate default values without + persisting the request. Supported values: `all` */ - public java.util.List getExtraLocationTypes() { - return extraLocationTypes; + public java.lang.String getDryRun() { + return dryRun; + } + + /** + * Indicates that the server should validate the request and populate default values without + * persisting the request. Supported values: `all` + */ + public ReplaceWorkerPool setDryRun(java.lang.String dryRun) { + this.dryRun = dryRun; + return this; } - /** - * Optional. Do not use this field. It is unsupported and is ignored unless explicitly - * documented otherwise. This is primarily for internal usage. - */ - public List setExtraLocationTypes(java.util.List extraLocationTypes) { - this.extraLocationTypes = extraLocationTypes; - return this; - } + @Override + public ReplaceWorkerPool set(String parameterName, Object value) { + return (ReplaceWorkerPool) super.set(parameterName, value); + } + } + + } + } + + /** + * An accessor for creating requests from the Projects collection. + * + *

    The typical use is:

    + *
    +   *   {@code CloudRun run = new CloudRun(...);}
    +   *   {@code CloudRun.Projects.List request = run.projects().list(parameters ...)}
    +   * 
    + * + * @return the resource collection + */ + public Projects projects() { + return new Projects(); + } + + /** + * The "projects" collection of methods. + */ + public class Projects { + + /** + * An accessor for creating requests from the Authorizeddomains collection. + * + *

    The typical use is:

    + *
    +     *   {@code CloudRun run = new CloudRun(...);}
    +     *   {@code CloudRun.Authorizeddomains.List request = run.authorizeddomains().list(parameters ...)}
    +     * 
    + * + * @return the resource collection + */ + public Authorizeddomains authorizeddomains() { + return new Authorizeddomains(); + } + + /** + * The "authorizeddomains" collection of methods. + */ + public class Authorizeddomains { + + /** + * List authorized domains. + * + * Create a request for the method "authorizeddomains.list". + * + * This request holds the parameters needed by the run server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Name of the parent Project resource. Example: `projects/myproject`. + * @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 CloudRunRequest { + + private static final String REST_PATH = "v1/{+parent}/authorizeddomains"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * List authorized domains. + * + * Create a request for the method "authorizeddomains.list". + * + * This request holds the parameters needed by the the run 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 Name of the parent Project resource. Example: `projects/myproject`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListAuthorizedDomainsResponse.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/[^/]+$"); + } + } + + @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); + } + + /** Name of the parent Project resource. Example: `projects/myproject`. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Name of the parent Project resource. Example: `projects/myproject`. + */ + public java.lang.String getParent() { + return parent; + } + + /** Name of the parent Project resource. Example: `projects/myproject`. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Maximum results to return per page. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Maximum results to return per page. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Maximum results to return per page. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Continuation token for fetching the next page of results. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Continuation token for fetching the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Continuation token for fetching the next page of results. */ + 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 Locations collection. + * + *

    The typical use is:

    + *
    +     *   {@code CloudRun run = new CloudRun(...);}
    +     *   {@code CloudRun.Locations.List request = run.locations().list(parameters ...)}
    +     * 
    + * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + + /** + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the run server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The resource that owns the locations collection, if applicable. + * @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 CloudRunRequest { + + private static final String REST_PATH = "v1/{+name}/locations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the the run 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 resource that owns the locations collection, if applicable. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.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 + 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 resource that owns the locations collection, if applicable. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The resource that owns the locations collection, if applicable. + */ + public java.lang.String getName() { + return name; + } + + /** 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; + } + + /** + * Optional. Do not use this field. It is unsupported and is ignored unless explicitly + * documented otherwise. This is primarily for internal usage. + */ + @com.google.api.client.util.Key + private java.util.List extraLocationTypes; + + /** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented + otherwise. This is primarily for internal usage. + */ + public java.util.List getExtraLocationTypes() { + return extraLocationTypes; + } + + /** + * Optional. Do not use this field. It is unsupported and is ignored unless explicitly + * documented otherwise. This is primarily for internal usage. + */ + public List setExtraLocationTypes(java.util.List extraLocationTypes) { + this.extraLocationTypes = extraLocationTypes; + return this; + } + + /** + * 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.String filter; + + /** 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.String getFilter() { + return filter; + } + + /** + * 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 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; + } + + /** + * 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; + + /** 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; + } + + /** + * 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; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Authorizeddomains collection. + * + *

    The typical use is:

    + *
    +       *   {@code CloudRun run = new CloudRun(...);}
    +       *   {@code CloudRun.Authorizeddomains.List request = run.authorizeddomains().list(parameters ...)}
    +       * 
    + * + * @return the resource collection + */ + public Authorizeddomains authorizeddomains() { + return new Authorizeddomains(); + } + + /** + * The "authorizeddomains" collection of methods. + */ + public class Authorizeddomains { + + /** + * List authorized domains. + * + * Create a request for the method "authorizeddomains.list". + * + * This request holds the parameters needed by the run server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Name of the parent Project resource. Example: `projects/myproject`. + * @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 CloudRunRequest { + + private static final String REST_PATH = "v1/{+parent}/authorizeddomains"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * List authorized domains. + * + * Create a request for the method "authorizeddomains.list". + * + * This request holds the parameters needed by the the run 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 Name of the parent Project resource. Example: `projects/myproject`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListAuthorizedDomainsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Name of the parent Project resource. Example: `projects/myproject`. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Name of the parent Project resource. Example: `projects/myproject`. + */ + public java.lang.String getParent() { + return parent; + } + + /** Name of the parent Project resource. Example: `projects/myproject`. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Maximum results to return per page. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Maximum results to return per page. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Maximum results to return per page. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** Continuation token for fetching the next page of results. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Continuation token for fetching the next page of results. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** Continuation token for fetching the next page of results. */ + 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 Configurations collection. + * + *

    The typical use is:

    + *
    +       *   {@code CloudRun run = new CloudRun(...);}
    +       *   {@code CloudRun.Configurations.List request = run.configurations().list(parameters ...)}
    +       * 
    + * + * @return the resource collection + */ + public Configurations configurations() { + return new Configurations(); + } + + /** + * The "configurations" collection of methods. + */ + public class Configurations { + + /** + * Get information about a configuration. + * + * Create a request for the method "configurations.get". + * + * This request holds the parameters needed by the run server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the configuration to retrieve. For Cloud Run, replace {namespace_id} with the project ID + * or number. + * @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 CloudRunRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/configurations/[^/]+$"); + + /** + * Get information about a configuration. + * + * Create a request for the method "configurations.get". + * + * This request holds the parameters needed by the the run 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 configuration to retrieve. For Cloud Run, replace {namespace_id} with the project ID + * or number. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.Configuration.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/[^/]+/configurations/[^/]+$"); + } + } + + @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); + } - /** - * 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.String filter; + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - /** 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.String getFilter() { - return filter; - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** - * 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 setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** 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; + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** The maximum number of results to return. If not set, the service selects a default. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - /** 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; - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - /** - * 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; + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** 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; - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * 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; - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + /** + * The name of the configuration to retrieve. For Cloud Run, replace {namespace_id} with + * the project ID or number. + */ + @com.google.api.client.util.Key + private java.lang.String name; - /** - * An accessor for creating requests from the Authorizeddomains collection. - * - *

    The typical use is:

    - *
    -       *   {@code CloudRun run = new CloudRun(...);}
    -       *   {@code CloudRun.Authorizeddomains.List request = run.authorizeddomains().list(parameters ...)}
    -       * 
    - * - * @return the resource collection - */ - public Authorizeddomains authorizeddomains() { - return new Authorizeddomains(); - } + /** The name of the configuration to retrieve. For Cloud Run, replace {namespace_id} with the project + ID or number. + */ + public java.lang.String getName() { + return name; + } - /** - * The "authorizeddomains" collection of methods. - */ - public class Authorizeddomains { + /** + * The name of the configuration to retrieve. For Cloud Run, replace {namespace_id} with + * the project ID or number. + */ + 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/[^/]+/configurations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } /** - * List authorized domains. + * List configurations. Results are sorted by creation time, descending. * - * Create a request for the method "authorizeddomains.list". + * Create a request for the method "configurations.list". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Name of the parent Project resource. Example: `projects/myproject`. + * @param parent The namespace from which the configurations should be listed. For Cloud Run, replace {namespace_id} + * with the project ID or number. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -7550,28 +8958,29 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends CloudRunRequest { + public class List extends CloudRunRequest { - private static final String REST_PATH = "v1/{+parent}/authorizeddomains"; + private static final String REST_PATH = "v1/{+parent}/configurations"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * List authorized domains. + * List configurations. Results are sorted by creation time, descending. * - * Create a request for the method "authorizeddomains.list". + * Create a request for the method "configurations.list". * * This request holds the parameters needed by the the run 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 Name of the parent Project resource. Example: `projects/myproject`. + * @param parent The namespace from which the configurations should be listed. For Cloud Run, replace {namespace_id} + * with the project ID or number. * @since 1.13 */ protected List(java.lang.String parent) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListAuthorizedDomainsResponse.class); + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListConfigurationsResponse.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(), @@ -7620,81 +9029,174 @@ 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 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 namespace from which the configurations should be listed. For Cloud Run, replace + * {namespace_id} with the project ID or number. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** The namespace from which the configurations should be listed. For Cloud Run, replace {namespace_id} + with the project ID or number. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * The namespace from which the configurations should be listed. For Cloud Run, replace + * {namespace_id} with the project ID or number. + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Encoded string to continue paging. */ + @com.google.api.client.util.Key("continue") + private java.lang.String continue__; + + /** Optional. Encoded string to continue paging. + */ + public java.lang.String getContinue() { + return continue__; + } + + /** Optional. Encoded string to continue paging. */ + public List setContinue(java.lang.String continue__) { + this.continue__ = continue__; + return this; + } + + /** Not supported by Cloud Run. */ + @com.google.api.client.util.Key + private java.lang.String fieldSelector; + + /** Not supported by Cloud Run. + */ + public java.lang.String getFieldSelector() { + return fieldSelector; + } + + /** Not supported by Cloud Run. */ + public List setFieldSelector(java.lang.String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + /** Not supported by Cloud Run. */ + @com.google.api.client.util.Key + private java.lang.Boolean includeUninitialized; + + /** Not supported by Cloud Run. + */ + public java.lang.Boolean getIncludeUninitialized() { + return includeUninitialized; } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + /** Not supported by Cloud Run. */ + public List setIncludeUninitialized(java.lang.Boolean includeUninitialized) { + this.includeUninitialized = includeUninitialized; + return this; } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + /** + * Allows to filter resources based on a label. Supported operations are =, !=, exists, + * in, and notIn. + */ + @com.google.api.client.util.Key + private java.lang.String labelSelector; + + /** Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + */ + public java.lang.String getLabelSelector() { + return labelSelector; } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + /** + * Allows to filter resources based on a label. Supported operations are =, !=, exists, + * in, and notIn. + */ + public List setLabelSelector(java.lang.String labelSelector) { + this.labelSelector = labelSelector; + return this; } - /** Name of the parent Project resource. Example: `projects/myproject`. */ + /** Optional. The maximum number of the records that should be returned. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.Integer limit; - /** Name of the parent Project resource. Example: `projects/myproject`. + /** Optional. The maximum number of the records that should be returned. */ - public java.lang.String getParent() { - return parent; + public java.lang.Integer getLimit() { + return limit; } - /** Name of the parent Project resource. Example: `projects/myproject`. */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; + /** Optional. The maximum number of the records that should be returned. */ + public List setLimit(java.lang.Integer limit) { + this.limit = limit; return this; } - /** Maximum results to return per page. */ + /** Not supported by Cloud Run. */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.String resourceVersion; - /** Maximum results to return per page. + /** Not supported by Cloud Run. */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.String getResourceVersion() { + return resourceVersion; } - /** Maximum results to return per page. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + /** Not supported by Cloud Run. */ + public List setResourceVersion(java.lang.String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } - /** Continuation token for fetching the next page of results. */ + /** Not supported by Cloud Run. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.Boolean watch; - /** Continuation token for fetching the next page of results. + /** Not supported by Cloud Run. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.Boolean getWatch() { + return watch; } - /** Continuation token for fetching the next page of results. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** Not supported by Cloud Run. */ + public List setWatch(java.lang.Boolean watch) { + this.watch = watch; return this; } @@ -7706,897 +9208,931 @@ public List set(String parameterName, Object value) { } /** - * An accessor for creating requests from the Configurations collection. + * An accessor for creating requests from the Domainmappings collection. * *

    The typical use is:

    *
            *   {@code CloudRun run = new CloudRun(...);}
    -       *   {@code CloudRun.Configurations.List request = run.configurations().list(parameters ...)}
    +       *   {@code CloudRun.Domainmappings.List request = run.domainmappings().list(parameters ...)}
            * 
    * * @return the resource collection */ - public Configurations configurations() { - return new Configurations(); + public Domainmappings domainmappings() { + return new Domainmappings(); } /** - * The "configurations" collection of methods. + * The "domainmappings" collection of methods. */ - public class Configurations { + public class Domainmappings { /** - * Get information about a configuration. + * Create a new domain mapping. * - * Create a request for the method "configurations.get". + * Create a request for the method "domainmappings.create". * * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param name The name of the configuration to retrieve. For Cloud Run, replace {namespace_id} with the project ID - * or number. + * @param parent Required. The namespace in which the domain mapping should be created. For Cloud Run (fully + * managed), replace {namespace} with the project ID or number. It takes the form + * namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param content the {@link com.google.api.services.run.v1.model.DomainMapping} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Create create(java.lang.String parent, com.google.api.services.run.v1.model.DomainMapping content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class Get extends CloudRunRequest { + public class Create extends CloudRunRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+parent}/domainmappings"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/configurations/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Get information about a configuration. + * Create a new domain mapping. * - * Create a request for the method "configurations.get". + * Create a request for the method "domainmappings.create". * * This request holds the parameters needed by the the run 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.

    + * 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 name The name of the configuration to retrieve. For Cloud Run, replace {namespace_id} with the project ID - * or number. + * @param parent Required. The namespace in which the domain mapping should be created. For Cloud Run (fully + * managed), replace {namespace} with the project ID or number. It takes the form + * namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @param content the {@link com.google.api.services.run.v1.model.DomainMapping} * @since 1.13 */ - protected Get(java.lang.String name) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.Configuration.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected Create(java.lang.String parent, com.google.api.services.run.v1.model.DomainMapping content) { + super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.DomainMapping.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/configurations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + /** + * Required. The namespace in which the domain mapping should be created. For Cloud Run + * (fully managed), replace {namespace} with the project ID or number. It takes the form + * namespaces/{namespace}. For example: namespaces/PROJECT_ID + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The namespace in which the domain mapping should be created. For Cloud Run (fully + managed), replace {namespace} with the project ID or number. It takes the form + namespaces/{namespace}. For example: namespaces/PROJECT_ID + */ + public java.lang.String getParent() { + return parent; } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + /** + * Required. The namespace in which the domain mapping should be created. For Cloud Run + * (fully managed), replace {namespace} with the project ID or number. It takes the form + * namespaces/{namespace}. For example: namespaces/PROJECT_ID + */ + 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; } /** - * The name of the configuration to retrieve. For Cloud Run, replace {namespace_id} with - * the project ID or number. + * Indicates that the server should validate the request and populate default values + * without persisting the request. Supported values: `all` */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String dryRun; - /** The name of the configuration to retrieve. For Cloud Run, replace {namespace_id} with the project - ID or number. - */ - public java.lang.String getName() { - return name; + /** Indicates that the server should validate the request and populate default values without + persisting the request. Supported values: `all` + */ + public java.lang.String getDryRun() { + return dryRun; } /** - * The name of the configuration to retrieve. For Cloud Run, replace {namespace_id} with - * the project ID or number. + * Indicates that the server should validate the request and populate default values + * without persisting the request. Supported values: `all` */ - 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/[^/]+/configurations/[^/]+$"); - } - this.name = name; + public Create setDryRun(java.lang.String dryRun) { + this.dryRun = dryRun; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * List configurations. Results are sorted by creation time, descending. + * Delete a domain mapping. * - * Create a request for the method "configurations.list". + * Create a request for the method "domainmappings.delete". * * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param parent The namespace from which the configurations should be listed. For Cloud Run, replace {namespace_id} - * with the project ID or number. + * @param name Required. The name of the domain mapping to delete. For Cloud Run (fully managed), replace + * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For + * example: namespaces/PROJECT_ID * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class List extends CloudRunRequest { + public class Delete extends CloudRunRequest { - private static final String REST_PATH = "v1/{+parent}/configurations"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$"); /** - * List configurations. Results are sorted by creation time, descending. + * Delete a domain mapping. * - * Create a request for the method "configurations.list". + * Create a request for the method "domainmappings.delete". * * This request holds the parameters needed by the the run 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 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 parent The namespace from which the configurations should be listed. For Cloud Run, replace {namespace_id} - * with the project ID or number. + * @param name Required. The name of the domain mapping to delete. For Cloud Run (fully managed), replace + * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For + * example: namespaces/PROJECT_ID * @since 1.13 */ - protected List(java.lang.String parent) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListConfigurationsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Delete(java.lang.String name) { + super(CloudRun.this, "DELETE", REST_PATH, null, com.google.api.services.run.v1.model.Status.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$"); } } @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); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } /** - * The namespace from which the configurations should be listed. For Cloud Run, replace - * {namespace_id} with the project ID or number. + * Required. The name of the domain mapping to delete. For Cloud Run (fully managed), + * replace {namespace} with the project ID or number. It takes the form + * namespaces/{namespace}. For example: namespaces/PROJECT_ID */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** The namespace from which the configurations should be listed. For Cloud Run, replace {namespace_id} - with the project ID or number. + /** Required. The name of the domain mapping to delete. For Cloud Run (fully managed), replace + {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: + namespaces/PROJECT_ID */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } /** - * The namespace from which the configurations should be listed. For Cloud Run, replace - * {namespace_id} with the project ID or number. + * Required. The name of the domain mapping to delete. For Cloud Run (fully managed), + * replace {namespace} with the project ID or number. It takes the form + * namespaces/{namespace}. For example: namespaces/PROJECT_ID */ - public List setParent(java.lang.String parent) { + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$"); } - this.parent = parent; - return this; - } - - /** Optional. Encoded string to continue paging. */ - @com.google.api.client.util.Key("continue") - private java.lang.String continue__; - - /** Optional. Encoded string to continue paging. - */ - public java.lang.String getContinue() { - return continue__; - } - - /** Optional. Encoded string to continue paging. */ - public List setContinue(java.lang.String continue__) { - this.continue__ = continue__; - return this; - } - - /** Not supported by Cloud Run. */ - @com.google.api.client.util.Key - private java.lang.String fieldSelector; - - /** Not supported by Cloud Run. - */ - public java.lang.String getFieldSelector() { - return fieldSelector; - } - - /** Not supported by Cloud Run. */ - public List setFieldSelector(java.lang.String fieldSelector) { - this.fieldSelector = fieldSelector; + this.name = name; return this; } - /** Not supported by Cloud Run. */ + /** Cloud Run currently ignores this parameter. */ @com.google.api.client.util.Key - private java.lang.Boolean includeUninitialized; + private java.lang.String apiVersion; - /** Not supported by Cloud Run. + /** Cloud Run currently ignores this parameter. */ - public java.lang.Boolean getIncludeUninitialized() { - return includeUninitialized; + public java.lang.String getApiVersion() { + return apiVersion; } - /** Not supported by Cloud Run. */ - public List setIncludeUninitialized(java.lang.Boolean includeUninitialized) { - this.includeUninitialized = includeUninitialized; + /** Cloud Run currently ignores this parameter. */ + public Delete setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; return this; } /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, - * in, and notIn. + * Indicates that the server should validate the request and populate default values + * without persisting the request. Supported values: `all` */ @com.google.api.client.util.Key - private java.lang.String labelSelector; + private java.lang.String dryRun; - /** Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + /** Indicates that the server should validate the request and populate default values without + persisting the request. Supported values: `all` */ - public java.lang.String getLabelSelector() { - return labelSelector; + public java.lang.String getDryRun() { + return dryRun; } /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, - * in, and notIn. - */ - public List setLabelSelector(java.lang.String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** Optional. The maximum number of the records that should be returned. */ - @com.google.api.client.util.Key - private java.lang.Integer limit; - - /** Optional. The maximum number of the records that should be returned. + * Indicates that the server should validate the request and populate default values + * without persisting the request. Supported values: `all` */ - public java.lang.Integer getLimit() { - return limit; - } - - /** Optional. The maximum number of the records that should be returned. */ - public List setLimit(java.lang.Integer limit) { - this.limit = limit; + public Delete setDryRun(java.lang.String dryRun) { + this.dryRun = dryRun; return this; } - /** Not supported by Cloud Run. */ + /** Cloud Run currently ignores this parameter. */ @com.google.api.client.util.Key - private java.lang.String resourceVersion; + private java.lang.String kind; - /** Not supported by Cloud Run. + /** Cloud Run currently ignores this parameter. */ - public java.lang.String getResourceVersion() { - return resourceVersion; + public java.lang.String getKind() { + return kind; } - /** Not supported by Cloud Run. */ - public List setResourceVersion(java.lang.String resourceVersion) { - this.resourceVersion = resourceVersion; + /** Cloud Run currently ignores this parameter. */ + public Delete setKind(java.lang.String kind) { + this.kind = kind; return this; } - /** Not supported by Cloud Run. */ + /** + * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, + * and deletes in the background. Please see + * kubernetes.io/docs/concepts/architecture/garbage-collection/ for more information. + */ @com.google.api.client.util.Key - private java.lang.Boolean watch; + private java.lang.String propagationPolicy; - /** Not supported by Cloud Run. + /** Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes + in the background. Please see kubernetes.io/docs/concepts/architecture/garbage-collection/ for more + information. */ - public java.lang.Boolean getWatch() { - return watch; + public java.lang.String getPropagationPolicy() { + return propagationPolicy; } - /** Not supported by Cloud Run. */ - public List setWatch(java.lang.Boolean watch) { - this.watch = watch; + /** + * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, + * and deletes in the background. Please see + * kubernetes.io/docs/concepts/architecture/garbage-collection/ for more information. + */ + public Delete setPropagationPolicy(java.lang.String propagationPolicy) { + this.propagationPolicy = propagationPolicy; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the Domainmappings collection. - * - *

    The typical use is:

    - *
    -       *   {@code CloudRun run = new CloudRun(...);}
    -       *   {@code CloudRun.Domainmappings.List request = run.domainmappings().list(parameters ...)}
    -       * 
    - * - * @return the resource collection - */ - public Domainmappings domainmappings() { - return new Domainmappings(); - } - - /** - * The "domainmappings" collection of methods. - */ - public class Domainmappings { - /** - * Create a new domain mapping. + * Get information about a domain mapping. * - * Create a request for the method "domainmappings.create". + * Create a request for the method "domainmappings.get". * * This request holds the parameters needed by the run 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 parent Required. The namespace in which the domain mapping should be created. For Cloud Run (fully - * managed), replace {namespace} with the project ID or number. It takes the form - * namespaces/{namespace}. For example: namespaces/PROJECT_ID - * @param content the {@link com.google.api.services.run.v1.model.DomainMapping} + * @param name Required. The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace + * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For + * example: namespaces/PROJECT_ID * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.run.v1.model.DomainMapping content) throws java.io.IOException { - Create result = new Create(parent, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Create extends CloudRunRequest { + public class Get extends CloudRunRequest { - private static final String REST_PATH = "v1/{+parent}/domainmappings"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$"); /** - * Create a new domain mapping. + * Get information about a domain mapping. * - * Create a request for the method "domainmappings.create". + * Create a request for the method "domainmappings.get". * * This request holds the parameters needed by the the run 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 parent Required. The namespace in which the domain mapping should be created. For Cloud Run (fully - * managed), replace {namespace} with the project ID or number. It takes the form - * namespaces/{namespace}. For example: namespaces/PROJECT_ID - * @param content the {@link com.google.api.services.run.v1.model.DomainMapping} + * @param name Required. The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace + * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For + * example: namespaces/PROJECT_ID * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.run.v1.model.DomainMapping content) { - super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.DomainMapping.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Get(java.lang.String name) { + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.DomainMapping.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$"); } } @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); } - /** - * Required. The namespace in which the domain mapping should be created. For Cloud Run - * (fully managed), replace {namespace} with the project ID or number. It takes the form - * namespaces/{namespace}. For example: namespaces/PROJECT_ID - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The namespace in which the domain mapping should be created. For Cloud Run (fully - managed), replace {namespace} with the project ID or number. It takes the form - namespaces/{namespace}. For example: namespaces/PROJECT_ID - */ - public java.lang.String getParent() { - return parent; + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - /** - * Required. The namespace in which the domain mapping should be created. For Cloud Run - * (fully managed), replace {namespace} with the project ID or number. It takes the form - * namespaces/{namespace}. For example: namespaces/PROJECT_ID - */ - 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; + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } /** - * Indicates that the server should validate the request and populate default values - * without persisting the request. Supported values: `all` + * Required. The name of the domain mapping to retrieve. For Cloud Run (fully managed), + * replace {namespace} with the project ID or number. It takes the form + * namespaces/{namespace}. For example: namespaces/PROJECT_ID */ @com.google.api.client.util.Key - private java.lang.String dryRun; + private java.lang.String name; - /** Indicates that the server should validate the request and populate default values without - persisting the request. Supported values: `all` + /** Required. The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace + {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: + namespaces/PROJECT_ID */ - public java.lang.String getDryRun() { - return dryRun; + public java.lang.String getName() { + return name; } /** - * Indicates that the server should validate the request and populate default values - * without persisting the request. Supported values: `all` + * Required. The name of the domain mapping to retrieve. For Cloud Run (fully managed), + * replace {namespace} with the project ID or number. It takes the form + * namespaces/{namespace}. For example: namespaces/PROJECT_ID */ - public Create setDryRun(java.lang.String dryRun) { - this.dryRun = dryRun; + 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/[^/]+/domainmappings/[^/]+$"); + } + this.name = name; 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); } } /** - * Delete a domain mapping. + * List all domain mappings. * - * Create a request for the method "domainmappings.delete". + * Create a request for the method "domainmappings.list". * * This request holds the parameters needed by the run 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 name Required. The name of the domain mapping to delete. For Cloud Run (fully managed), replace - * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For - * example: namespaces/PROJECT_ID + * @param parent Required. The namespace from which the domain mappings should be listed. For Cloud Run (fully + * managed), replace {namespace} with the project ID or number. It takes the form + * namespaces/{namespace}. For example: namespaces/PROJECT_ID * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Delete extends CloudRunRequest { + public class List extends CloudRunRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+parent}/domainmappings"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Delete a domain mapping. + * List all domain mappings. * - * Create a request for the method "domainmappings.delete". + * Create a request for the method "domainmappings.list". * * This request holds the parameters needed by the the run 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 name Required. The name of the domain mapping to delete. For Cloud Run (fully managed), replace - * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For - * example: namespaces/PROJECT_ID + * @param parent Required. The namespace from which the domain mappings should be listed. For Cloud Run (fully + * managed), replace {namespace} with the project ID or number. It takes the form + * namespaces/{namespace}. For example: namespaces/PROJECT_ID * @since 1.13 */ - protected Delete(java.lang.String name) { - super(CloudRun.this, "DELETE", REST_PATH, null, com.google.api.services.run.v1.model.Status.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListDomainMappingsResponse.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @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); } /** - * Required. The name of the domain mapping to delete. For Cloud Run (fully managed), - * replace {namespace} with the project ID or number. It takes the form + * Required. The namespace from which the domain mappings should be listed. For Cloud Run + * (fully managed), replace {namespace} with the project ID or number. It takes the form * namespaces/{namespace}. For example: namespaces/PROJECT_ID */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. The name of the domain mapping to delete. For Cloud Run (fully managed), replace - {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: - namespaces/PROJECT_ID + /** Required. The namespace from which the domain mappings should be listed. For Cloud Run (fully + managed), replace {namespace} with the project ID or number. It takes the form + namespaces/{namespace}. For example: namespaces/PROJECT_ID */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } /** - * Required. The name of the domain mapping to delete. For Cloud Run (fully managed), - * replace {namespace} with the project ID or number. It takes the form + * Required. The namespace from which the domain mappings should be listed. For Cloud Run + * (fully managed), replace {namespace} with the project ID or number. It takes the form * namespaces/{namespace}. For example: namespaces/PROJECT_ID */ - public Delete setName(java.lang.String name) { + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } - /** Cloud Run currently ignores this parameter. */ + /** Optional. Encoded string to continue paging. */ + @com.google.api.client.util.Key("continue") + private java.lang.String continue__; + + /** Optional. Encoded string to continue paging. + */ + public java.lang.String getContinue() { + return continue__; + } + + /** Optional. Encoded string to continue paging. */ + public List setContinue(java.lang.String continue__) { + this.continue__ = continue__; + return this; + } + + /** + * Allows to filter resources based on a specific value for a field name. Send this in a + * query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + */ @com.google.api.client.util.Key - private java.lang.String apiVersion; + private java.lang.String fieldSelector; - /** Cloud Run currently ignores this parameter. + /** Allows to filter resources based on a specific value for a field name. Send this in a query string + format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. */ - public java.lang.String getApiVersion() { - return apiVersion; + public java.lang.String getFieldSelector() { + return fieldSelector; } - /** Cloud Run currently ignores this parameter. */ - public Delete setApiVersion(java.lang.String apiVersion) { - this.apiVersion = apiVersion; + /** + * Allows to filter resources based on a specific value for a field name. Send this in a + * query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + */ + public List setFieldSelector(java.lang.String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** Not currently used by Cloud Run. */ + @com.google.api.client.util.Key + private java.lang.Boolean includeUninitialized; + + /** Not currently used by Cloud Run. + */ + public java.lang.Boolean getIncludeUninitialized() { + return includeUninitialized; + } + + /** Not currently used by Cloud Run. */ + public List setIncludeUninitialized(java.lang.Boolean includeUninitialized) { + this.includeUninitialized = includeUninitialized; return this; } /** - * Indicates that the server should validate the request and populate default values - * without persisting the request. Supported values: `all` + * Allows to filter resources based on a label. Supported operations are =, !=, exists, + * in, and notIn. */ @com.google.api.client.util.Key - private java.lang.String dryRun; + private java.lang.String labelSelector; - /** Indicates that the server should validate the request and populate default values without - persisting the request. Supported values: `all` + /** Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. */ - public java.lang.String getDryRun() { - return dryRun; + public java.lang.String getLabelSelector() { + return labelSelector; } /** - * Indicates that the server should validate the request and populate default values - * without persisting the request. Supported values: `all` + * Allows to filter resources based on a label. Supported operations are =, !=, exists, + * in, and notIn. */ - public Delete setDryRun(java.lang.String dryRun) { - this.dryRun = dryRun; + public List setLabelSelector(java.lang.String labelSelector) { + this.labelSelector = labelSelector; return this; } - /** Cloud Run currently ignores this parameter. */ + /** Optional. The maximum number of records that should be returned. */ @com.google.api.client.util.Key - private java.lang.String kind; + private java.lang.Integer limit; - /** Cloud Run currently ignores this parameter. + /** Optional. The maximum number of records that should be returned. */ - public java.lang.String getKind() { - return kind; + public java.lang.Integer getLimit() { + return limit; } - /** Cloud Run currently ignores this parameter. */ - public Delete setKind(java.lang.String kind) { - this.kind = kind; + /** Optional. The maximum number of records that should be returned. */ + public List setLimit(java.lang.Integer limit) { + this.limit = limit; return this; } /** - * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, - * and deletes in the background. Please see - * kubernetes.io/docs/concepts/architecture/garbage-collection/ for more information. + * The baseline resource version from which the list or watch operation should start. Not + * currently used by Cloud Run. */ @com.google.api.client.util.Key - private java.lang.String propagationPolicy; + private java.lang.String resourceVersion; - /** Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes - in the background. Please see kubernetes.io/docs/concepts/architecture/garbage-collection/ for more - information. + /** The baseline resource version from which the list or watch operation should start. Not currently + used by Cloud Run. */ - public java.lang.String getPropagationPolicy() { - return propagationPolicy; + public java.lang.String getResourceVersion() { + return resourceVersion; } /** - * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, - * and deletes in the background. Please see - * kubernetes.io/docs/concepts/architecture/garbage-collection/ for more information. + * The baseline resource version from which the list or watch operation should start. Not + * currently used by Cloud Run. */ - public Delete setPropagationPolicy(java.lang.String propagationPolicy) { - this.propagationPolicy = propagationPolicy; + public List setResourceVersion(java.lang.String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Flag that indicates that the client expects to watch this resource as well. Not + * currently used by Cloud Run. + */ + @com.google.api.client.util.Key + private java.lang.Boolean watch; + + /** Flag that indicates that the client expects to watch this resource as well. Not currently used by + Cloud Run. + */ + public java.lang.Boolean getWatch() { + return watch; + } + + /** + * Flag that indicates that the client expects to watch this resource as well. Not + * currently used by Cloud Run. + */ + public List setWatch(java.lang.Boolean watch) { + this.watch = watch; return this; } @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the Instances collection. + * + *

    The typical use is:

    + *
    +       *   {@code CloudRun run = new CloudRun(...);}
    +       *   {@code CloudRun.Instances.List request = run.instances().list(parameters ...)}
    +       * 
    + * + * @return the resource collection + */ + public Instances instances() { + return new Instances(); + } + + /** + * The "instances" collection of methods. + */ + public class Instances { + /** - * Get information about a domain mapping. + * Get the IAM Access Control policy currently in effect for the given instance. This result does + * not include any inherited policies. * - * Create a request for the method "domainmappings.get". + * Create a request for the method "instances.getIamPolicy". * * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * - * @param name Required. The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace - * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For - * example: namespaces/PROJECT_ID + * @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. * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { + GetIamPolicy result = new GetIamPolicy(resource); initialize(result); return result; } - public class Get extends CloudRunRequest { + public class GetIamPolicy extends CloudRunRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** - * Get information about a domain mapping. + * Get the IAM Access Control policy currently in effect for the given instance. This result does + * not include any inherited policies. * - * Create a request for the method "domainmappings.get". + * Create a request for the method "instances.getIamPolicy". * * This request holds the parameters needed by the the run 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.

    + * 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 name Required. The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace - * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For - * example: namespaces/PROJECT_ID + * @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. * @since 1.13 */ - protected Get(java.lang.String name) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.DomainMapping.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected GetIamPolicy(java.lang.String resource) { + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.Policy.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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @@ -8611,385 +10147,429 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public GetIamPolicy setAccessToken(java.lang.String accessToken) { + return (GetIamPolicy) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public GetIamPolicy setAlt(java.lang.String alt) { + return (GetIamPolicy) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public GetIamPolicy setCallback(java.lang.String callback) { + return (GetIamPolicy) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public GetIamPolicy setFields(java.lang.String fields) { + return (GetIamPolicy) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public GetIamPolicy setKey(java.lang.String key) { + return (GetIamPolicy) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public GetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public GetIamPolicy setUploadType(java.lang.String uploadType) { + return (GetIamPolicy) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * Required. The name of the domain mapping to retrieve. For Cloud Run (fully managed), - * replace {namespace} with the project ID or number. It takes the form - * namespaces/{namespace}. For example: namespaces/PROJECT_ID + * 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 name; + private java.lang.String resource; - /** Required. The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace - {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: - namespaces/PROJECT_ID + /** 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 getName() { - return name; + public java.lang.String getResource() { + return resource; } /** - * Required. The name of the domain mapping to retrieve. For Cloud Run (fully managed), - * replace {namespace} with the project ID or number. It takes the form - * namespaces/{namespace}. For example: namespaces/PROJECT_ID + * 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 Get setName(java.lang.String name) { + public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } - this.name = name; + this.resource = resource; + return this; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + @com.google.api.client.util.Key("options.requestedPolicyVersion") + private java.lang.Integer optionsRequestedPolicyVersion; + + /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, + and 3. Requests specifying an invalid value will be rejected. Requests for policies with any + conditional role bindings must specify version 3. Policies with no conditional role bindings may + specify any valid value or leave the field unset. The policy in the response might use the policy + version that you specified, or it might use a lower policy version. For example, if you specify + version 3, but the policy has no conditional role bindings, the response uses version 1. To learn + which resources support conditions in their IAM policies, see the [IAM + documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public java.lang.Integer getOptionsRequestedPolicyVersion() { + return optionsRequestedPolicyVersion; + } + + /** + * Optional. The maximum policy version that will be used to format the policy. Valid + * values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests + * for policies with any conditional role bindings must specify version 3. Policies with + * no conditional role bindings may specify any valid value or leave the field unset. The + * policy in the response might use the policy version that you specified, or it might use + * a lower policy version. For example, if you specify version 3, but the policy has no + * conditional role bindings, the response uses version 1. To learn which resources + * support conditions in their IAM policies, see the [IAM + * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). + */ + public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) { + this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion; return this; } @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public GetIamPolicy set(String parameterName, Object value) { + return (GetIamPolicy) super.set(parameterName, value); } } /** - * List all domain mappings. + * Sets the IAM Access control policy for the specified instance. Overwrites any existing policy. * - * Create a request for the method "domainmappings.list". + * Create a request for the method "instances.setIamPolicy". * * This request holds the parameters needed by the run server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. + * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * - * @param parent Required. The namespace from which the domain mappings should be listed. For Cloud Run (fully - * managed), replace {namespace} with the project ID or number. It takes the form - * namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @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.run.v1.model.SetIamPolicyRequest} * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.run.v1.model.SetIamPolicyRequest content) throws java.io.IOException { + SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; } - public class List extends CloudRunRequest { + public class SetIamPolicy extends CloudRunRequest { - private static final String REST_PATH = "v1/{+parent}/domainmappings"; + private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** - * List all domain mappings. + * Sets the IAM Access control policy for the specified instance. Overwrites any existing policy. * - * Create a request for the method "domainmappings.list". + * Create a request for the method "instances.setIamPolicy". * * This request holds the parameters needed by the the run 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 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 parent Required. The namespace from which the domain mappings should be listed. For Cloud Run (fully - * managed), replace {namespace} with the project ID or number. It takes the form - * namespaces/{namespace}. For example: namespaces/PROJECT_ID + * @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.run.v1.model.SetIamPolicyRequest} * @since 1.13 */ - protected List(java.lang.String parent) { - super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListDomainMappingsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected SetIamPolicy(java.lang.String resource, com.google.api.services.run.v1.model.SetIamPolicyRequest content) { + super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.Policy.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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @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); + public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { + return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public SetIamPolicy setAccessToken(java.lang.String accessToken) { + return (SetIamPolicy) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public SetIamPolicy setAlt(java.lang.String alt) { + return (SetIamPolicy) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public SetIamPolicy setCallback(java.lang.String callback) { + return (SetIamPolicy) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public SetIamPolicy setFields(java.lang.String fields) { + return (SetIamPolicy) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public SetIamPolicy setKey(java.lang.String key) { + return (SetIamPolicy) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public SetIamPolicy setOauthToken(java.lang.String oauthToken) { + return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { + return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public SetIamPolicy setUploadType(java.lang.String uploadType) { + return (SetIamPolicy) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { + return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** - * Required. The namespace from which the domain mappings should be listed. For Cloud Run - * (fully managed), replace {namespace} with the project ID or number. It takes the form - * namespaces/{namespace}. For example: namespaces/PROJECT_ID + * 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 parent; + private java.lang.String resource; - /** Required. The namespace from which the domain mappings should be listed. For Cloud Run (fully - managed), replace {namespace} with the project ID or number. It takes the form - namespaces/{namespace}. For example: namespaces/PROJECT_ID + /** 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 getParent() { - return parent; + public java.lang.String getResource() { + return resource; } /** - * Required. The namespace from which the domain mappings should be listed. For Cloud Run - * (fully managed), replace {namespace} with the project ID or number. It takes the form - * namespaces/{namespace}. For example: namespaces/PROJECT_ID + * 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 List setParent(java.lang.String parent) { + public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), + "Parameter resource must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } - this.parent = parent; + this.resource = resource; return this; } - /** Optional. Encoded string to continue paging. */ - @com.google.api.client.util.Key("continue") - private java.lang.String continue__; - - /** Optional. Encoded string to continue paging. - */ - public java.lang.String getContinue() { - return continue__; + @Override + public SetIamPolicy set(String parameterName, Object value) { + return (SetIamPolicy) super.set(parameterName, value); } + } + /** + * Returns permissions that a caller has on the specified instance. There are no permissions + * required for making this API call. + * + * Create a request for the method "instances.testIamPermissions". + * + * This request holds the parameters needed by the run 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.run.v1.model.TestIamPermissionsRequest} + * @return the request + */ + public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.run.v1.model.TestIamPermissionsRequest content) throws java.io.IOException { + TestIamPermissions result = new TestIamPermissions(resource, content); + initialize(result); + return result; + } - /** Optional. Encoded string to continue paging. */ - public List setContinue(java.lang.String continue__) { - this.continue__ = continue__; - return this; - } + public class TestIamPermissions extends CloudRunRequest { - /** - * Allows to filter resources based on a specific value for a field name. Send this in a - * query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - */ - @com.google.api.client.util.Key - private java.lang.String fieldSelector; + private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; - /** Allows to filter resources based on a specific value for a field name. Send this in a query string - format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - */ - public java.lang.String getFieldSelector() { - return fieldSelector; - } + private final java.util.regex.Pattern RESOURCE_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** - * Allows to filter resources based on a specific value for a field name. Send this in a - * query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + * Returns permissions that a caller has on the specified instance. There are no permissions + * required for making this API call. + * + * Create a request for the method "instances.testIamPermissions". + * + * This request holds the parameters needed by the the run 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.run.v1.model.TestIamPermissionsRequest} + * @since 1.13 */ - public List setFieldSelector(java.lang.String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; + protected TestIamPermissions(java.lang.String resource, com.google.api.services.run.v1.model.TestIamPermissionsRequest content) { + super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.TestIamPermissionsResponse.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/[^/]+/locations/[^/]+/instances/[^/]+$"); + } } - /** Not currently used by Cloud Run. */ - @com.google.api.client.util.Key - private java.lang.Boolean includeUninitialized; - - /** Not currently used by Cloud Run. - */ - public java.lang.Boolean getIncludeUninitialized() { - return includeUninitialized; + @Override + public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { + return (TestIamPermissions) super.set$Xgafv($Xgafv); } - /** Not currently used by Cloud Run. */ - public List setIncludeUninitialized(java.lang.Boolean includeUninitialized) { - this.includeUninitialized = includeUninitialized; - return this; + @Override + public TestIamPermissions setAccessToken(java.lang.String accessToken) { + return (TestIamPermissions) super.setAccessToken(accessToken); } - /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, - * in, and notIn. - */ - @com.google.api.client.util.Key - private java.lang.String labelSelector; + @Override + public TestIamPermissions setAlt(java.lang.String alt) { + return (TestIamPermissions) super.setAlt(alt); + } - /** Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - */ - public java.lang.String getLabelSelector() { - return labelSelector; + @Override + public TestIamPermissions setCallback(java.lang.String callback) { + return (TestIamPermissions) super.setCallback(callback); } - /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, - * in, and notIn. - */ - public List setLabelSelector(java.lang.String labelSelector) { - this.labelSelector = labelSelector; - return this; + @Override + public TestIamPermissions setFields(java.lang.String fields) { + return (TestIamPermissions) super.setFields(fields); } - /** Optional. The maximum number of records that should be returned. */ - @com.google.api.client.util.Key - private java.lang.Integer limit; + @Override + public TestIamPermissions setKey(java.lang.String key) { + return (TestIamPermissions) super.setKey(key); + } - /** Optional. The maximum number of records that should be returned. - */ - public java.lang.Integer getLimit() { - return limit; + @Override + public TestIamPermissions setOauthToken(java.lang.String oauthToken) { + return (TestIamPermissions) super.setOauthToken(oauthToken); } - /** Optional. The maximum number of records that should be returned. */ - public List setLimit(java.lang.Integer limit) { - this.limit = limit; - return this; + @Override + public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } - /** - * The baseline resource version from which the list or watch operation should start. Not - * currently used by Cloud Run. - */ - @com.google.api.client.util.Key - private java.lang.String resourceVersion; + @Override + public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { + return (TestIamPermissions) super.setQuotaUser(quotaUser); + } - /** The baseline resource version from which the list or watch operation should start. Not currently - used by Cloud Run. - */ - public java.lang.String getResourceVersion() { - return resourceVersion; + @Override + public TestIamPermissions setUploadType(java.lang.String uploadType) { + return (TestIamPermissions) super.setUploadType(uploadType); } - /** - * The baseline resource version from which the list or watch operation should start. Not - * currently used by Cloud Run. - */ - public List setResourceVersion(java.lang.String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; + @Override + public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { + return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } /** - * Flag that indicates that the client expects to watch this resource as well. Not - * currently used by Cloud Run. + * 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.Boolean watch; + private java.lang.String resource; - /** Flag that indicates that the client expects to watch this resource as well. Not currently used by - Cloud Run. + /** 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.Boolean getWatch() { - return watch; + public java.lang.String getResource() { + return resource; } /** - * Flag that indicates that the client expects to watch this resource as well. Not - * currently used by Cloud Run. + * 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 List setWatch(java.lang.Boolean watch) { - this.watch = watch; + 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/[^/]+/locations/[^/]+/instances/[^/]+$"); + } + this.resource = resource; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public TestIamPermissions set(String parameterName, Object value) { + return (TestIamPermissions) super.set(parameterName, value); } } @@ -13419,8 +14999,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: *
      diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/CloudRunScopes.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/CloudRunScopes.java index 16b8f2b8070..87c74d554f0 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/CloudRunScopes.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/CloudRunScopes.java @@ -26,6 +26,12 @@ public class CloudRunScopes { /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + /** See, edit, configure, and delete your Google Cloud Run data and see the email address for your Google Account. */ + public static final String RUN = "https://www.googleapis.com/auth/run"; + + /** See your Google Cloud Run data and the email address of your Google Account. */ + public static final String RUN_READONLY = "https://www.googleapis.com/auth/run.readonly"; + /** * Returns an unmodifiable set that contains all scopes declared by this class. * @@ -34,6 +40,8 @@ public class CloudRunScopes { public static java.util.Set all() { java.util.Set set = new java.util.HashSet(); set.add(CLOUD_PLATFORM); + set.add(RUN); + set.add(RUN_READONLY); return java.util.Collections.unmodifiableSet(set); } diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/Instance.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/Instance.java new file mode 100644 index 00000000000..e2fc733ef4c --- /dev/null +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/Instance.java @@ -0,0 +1,175 @@ +/* + * 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.run.v1.model; + +/** + * Instance represents the configuration of a single Instance, which references a container image + * which is run to completion. + * + *

      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 Run Admin 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 Instance extends com.google.api.client.json.GenericJson { + + /** + * Optional. APIVersion defines the versioned schema of this representation of an object. Servers + * should convert recognized schemas to the latest internal value, and may reject unrecognized + * values. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * Optional. Kind is a string value representing the REST resource this object represents. Servers + * may infer this from the endpoint the client submits requests to. Cannot be updated. In + * CamelCase. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Optional. Standard object's metadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ObjectMeta metadata; + + /** + * Optional. Specification of the desired behavior of a Instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceSpec spec; + + /** + * Output only. Current status of a Instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InstanceStatus status; + + /** + * Optional. APIVersion defines the versioned schema of this representation of an object. Servers + * should convert recognized schemas to the latest internal value, and may reject unrecognized + * values. + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * Optional. APIVersion defines the versioned schema of this representation of an object. Servers + * should convert recognized schemas to the latest internal value, and may reject unrecognized + * values. + * @param apiVersion apiVersion or {@code null} for none + */ + public Instance setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Optional. Kind is a string value representing the REST resource this object represents. Servers + * may infer this from the endpoint the client submits requests to. Cannot be updated. In + * CamelCase. + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * Optional. Kind is a string value representing the REST resource this object represents. Servers + * may infer this from the endpoint the client submits requests to. Cannot be updated. In + * CamelCase. + * @param kind kind or {@code null} for none + */ + public Instance setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Optional. Standard object's metadata. + * @return value or {@code null} for none + */ + public ObjectMeta getMetadata() { + return metadata; + } + + /** + * Optional. Standard object's metadata. + * @param metadata metadata or {@code null} for none + */ + public Instance setMetadata(ObjectMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Optional. Specification of the desired behavior of a Instance. + * @return value or {@code null} for none + */ + public InstanceSpec getSpec() { + return spec; + } + + /** + * Optional. Specification of the desired behavior of a Instance. + * @param spec spec or {@code null} for none + */ + public Instance setSpec(InstanceSpec spec) { + this.spec = spec; + return this; + } + + /** + * Output only. Current status of a Instance. + * @return value or {@code null} for none + */ + public InstanceStatus getStatus() { + return status; + } + + /** + * Output only. Current status of a Instance. + * @param status status or {@code null} for none + */ + public Instance setStatus(InstanceStatus status) { + this.status = status; + return this; + } + + @Override + public Instance set(String fieldName, Object value) { + return (Instance) super.set(fieldName, value); + } + + @Override + public Instance clone() { + return (Instance) super.clone(); + } + +} diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/InstanceSpec.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/InstanceSpec.java new file mode 100644 index 00000000000..0249cd3cfa5 --- /dev/null +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/InstanceSpec.java @@ -0,0 +1,177 @@ +/* + * 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.run.v1.model; + +/** + * InstanceSpec describes how the Instance will look. + * + *

      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 Run Admin 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 InstanceSpec extends com.google.api.client.json.GenericJson { + + /** + * Optional. List of containers belonging to the Instance. We disallow a number of fields on this + * Container. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List containers; + + static { + // hack to force ProGuard to consider Container used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Container.class); + } + + /** + * Optional. The Node Selector configuration. Map of selector key to a value which matches a node. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map nodeSelector; + + /** + * Optional. Email address of the IAM service account associated with the Instance. The service + * account represents the identity of the running container, and determines what permissions the + * Instance has. If not provided, the Instance will use the project's default service account. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceAccountName; + + /** + * Optional. Duration the instance may be active before the system will shut it down. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timeout; + + /** + * Optional. List of volumes that can be mounted by containers belonging to the Instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List volumes; + + /** + * Optional. List of containers belonging to the Instance. We disallow a number of fields on this + * Container. + * @return value or {@code null} for none + */ + public java.util.List getContainers() { + return containers; + } + + /** + * Optional. List of containers belonging to the Instance. We disallow a number of fields on this + * Container. + * @param containers containers or {@code null} for none + */ + public InstanceSpec setContainers(java.util.List containers) { + this.containers = containers; + return this; + } + + /** + * Optional. The Node Selector configuration. Map of selector key to a value which matches a node. + * @return value or {@code null} for none + */ + public java.util.Map getNodeSelector() { + return nodeSelector; + } + + /** + * Optional. The Node Selector configuration. Map of selector key to a value which matches a node. + * @param nodeSelector nodeSelector or {@code null} for none + */ + public InstanceSpec setNodeSelector(java.util.Map nodeSelector) { + this.nodeSelector = nodeSelector; + return this; + } + + /** + * Optional. Email address of the IAM service account associated with the Instance. The service + * account represents the identity of the running container, and determines what permissions the + * Instance has. If not provided, the Instance will use the project's default service account. + * @return value or {@code null} for none + */ + public java.lang.String getServiceAccountName() { + return serviceAccountName; + } + + /** + * Optional. Email address of the IAM service account associated with the Instance. The service + * account represents the identity of the running container, and determines what permissions the + * Instance has. If not provided, the Instance will use the project's default service account. + * @param serviceAccountName serviceAccountName or {@code null} for none + */ + public InstanceSpec setServiceAccountName(java.lang.String serviceAccountName) { + this.serviceAccountName = serviceAccountName; + return this; + } + + /** + * Optional. Duration the instance may be active before the system will shut it down. + * @return value or {@code null} for none + */ + public String getTimeout() { + return timeout; + } + + /** + * Optional. Duration the instance may be active before the system will shut it down. + * @param timeout timeout or {@code null} for none + */ + public InstanceSpec setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + /** + * Optional. List of volumes that can be mounted by containers belonging to the Instance. + * @return value or {@code null} for none + */ + public java.util.List getVolumes() { + return volumes; + } + + /** + * Optional. List of volumes that can be mounted by containers belonging to the Instance. + * @param volumes volumes or {@code null} for none + */ + public InstanceSpec setVolumes(java.util.List volumes) { + this.volumes = volumes; + return this; + } + + @Override + public InstanceSpec set(String fieldName, Object value) { + return (InstanceSpec) super.set(fieldName, value); + } + + @Override + public InstanceSpec clone() { + return (InstanceSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/InstanceStatus.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/InstanceStatus.java new file mode 100644 index 00000000000..843075dec29 --- /dev/null +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/InstanceStatus.java @@ -0,0 +1,150 @@ +/* + * 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.run.v1.model; + +/** + * InstanceStatus represents the current state of a Instance. + * + *

      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 Run Admin 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 InstanceStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. Conditions communicate information about ongoing/complete reconciliation processes + * that bring the "spec" inline with the observed state of the world. Instance-specific conditions + * include: * `Ready`: `True` when the Instance is ready to be executed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List conditions; + + static { + // hack to force ProGuard to consider GoogleCloudRunV1Condition used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudRunV1Condition.class); + } + + /** + * Optional. URI where logs for this execution can be found in Cloud Console. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String logUri; + + /** + * Output only. The 'generation' of the Instance that was last processed by the controller. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer observedGeneration; + + /** + * Output only. All URLs serving traffic for this Instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List urls; + + /** + * Output only. Conditions communicate information about ongoing/complete reconciliation processes + * that bring the "spec" inline with the observed state of the world. Instance-specific conditions + * include: * `Ready`: `True` when the Instance is ready to be executed. + * @return value or {@code null} for none + */ + public java.util.List getConditions() { + return conditions; + } + + /** + * Output only. Conditions communicate information about ongoing/complete reconciliation processes + * that bring the "spec" inline with the observed state of the world. Instance-specific conditions + * include: * `Ready`: `True` when the Instance is ready to be executed. + * @param conditions conditions or {@code null} for none + */ + public InstanceStatus setConditions(java.util.List conditions) { + this.conditions = conditions; + return this; + } + + /** + * Optional. URI where logs for this execution can be found in Cloud Console. + * @return value or {@code null} for none + */ + public java.lang.String getLogUri() { + return logUri; + } + + /** + * Optional. URI where logs for this execution can be found in Cloud Console. + * @param logUri logUri or {@code null} for none + */ + public InstanceStatus setLogUri(java.lang.String logUri) { + this.logUri = logUri; + return this; + } + + /** + * Output only. The 'generation' of the Instance that was last processed by the controller. + * @return value or {@code null} for none + */ + public java.lang.Integer getObservedGeneration() { + return observedGeneration; + } + + /** + * Output only. The 'generation' of the Instance that was last processed by the controller. + * @param observedGeneration observedGeneration or {@code null} for none + */ + public InstanceStatus setObservedGeneration(java.lang.Integer observedGeneration) { + this.observedGeneration = observedGeneration; + return this; + } + + /** + * Output only. All URLs serving traffic for this Instance. + * @return value or {@code null} for none + */ + public java.util.List getUrls() { + return urls; + } + + /** + * Output only. All URLs serving traffic for this Instance. + * @param urls urls or {@code null} for none + */ + public InstanceStatus setUrls(java.util.List urls) { + this.urls = urls; + return this; + } + + @Override + public InstanceStatus set(String fieldName, Object value) { + return (InstanceStatus) super.set(fieldName, value); + } + + @Override + public InstanceStatus clone() { + return (InstanceStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/ListInstancesResponse.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/ListInstancesResponse.java new file mode 100644 index 00000000000..31ad3cd5165 --- /dev/null +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/ListInstancesResponse.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.run.v1.model; + +/** + * ListInstancesResponse is a list of Instances resources. + * + *

      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 Run Admin 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 ListInstancesResponse extends com.google.api.client.json.GenericJson { + + /** + * The API version for this call such as "run.googleapis.com/v1". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiVersion; + + /** + * List of Instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List items; + + static { + // hack to force ProGuard to consider Instance used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Instance.class); + } + + /** + * The kind of this resource, in this case "InstancesList". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kind; + + /** + * Metadata associated with this Instances list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ListMeta metadata; + + /** + * Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The API version for this call such as "run.googleapis.com/v1". + * @return value or {@code null} for none + */ + public java.lang.String getApiVersion() { + return apiVersion; + } + + /** + * The API version for this call such as "run.googleapis.com/v1". + * @param apiVersion apiVersion or {@code null} for none + */ + public ListInstancesResponse setApiVersion(java.lang.String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * List of Instances. + * @return value or {@code null} for none + */ + public java.util.List getItems() { + return items; + } + + /** + * List of Instances. + * @param items items or {@code null} for none + */ + public ListInstancesResponse setItems(java.util.List items) { + this.items = items; + return this; + } + + /** + * The kind of this resource, in this case "InstancesList". + * @return value or {@code null} for none + */ + public java.lang.String getKind() { + return kind; + } + + /** + * The kind of this resource, in this case "InstancesList". + * @param kind kind or {@code null} for none + */ + public ListInstancesResponse setKind(java.lang.String kind) { + this.kind = kind; + return this; + } + + /** + * Metadata associated with this Instances list. + * @return value or {@code null} for none + */ + public ListMeta getMetadata() { + return metadata; + } + + /** + * Metadata associated with this Instances list. + * @param metadata metadata or {@code null} for none + */ + public ListInstancesResponse setMetadata(ListMeta metadata) { + this.metadata = metadata; + 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 ListInstancesResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListInstancesResponse set(String fieldName, Object value) { + return (ListInstancesResponse) super.set(fieldName, value); + } + + @Override + public ListInstancesResponse clone() { + return (ListInstancesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/ObjectMeta.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/ObjectMeta.java index 7e77df4f549..42e4e17aefe 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/ObjectMeta.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/ObjectMeta.java @@ -40,27 +40,28 @@ public final class ObjectMeta extends com.google.api.client.json.GenericJson { * authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, * Job, Execution. * `run.googleapis.com/build-base-image`: Service. * `run.googleapis.com/build- * enable-automatic-updates`: Service. * `run.googleapis.com/build-environment-variables`: - * Service. * `run.googleapis.com/build-function-target`: Service. * `run.googleapis.com/build- - * id`: Service. * `run.googleapis.com/build-image-uri`: Service. * `run.googleapis.com/build- - * name`: Service. * `run.googleapis.com/build-service-account`: Service. * - * `run.googleapis.com/build-source-location`: Service. * `run.googleapis.com/build-worker-pool`: - * Service. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql- - * instances`: Revision, Execution. * `run.googleapis.com/container-dependencies`: Revision . * - * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: - * Service. * `run.googleapis.com/default-url-disabled`: Service. * - * `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown- - * hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * - * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc- - * traffic-tags`: Service. * `run.googleapis.com/gpu-zonal-redundancy-disabled`: Revision. * - * `run.googleapis.com/health-check-disabled`: Revision. * `run.googleapis.com/ingress`: Service. - * * `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/minScale`: Service. * - * `run.googleapis.com/maxScale`: Service. * `run.googleapis.com/manualInstanceCount`: Service. * - * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key- - * revocation-action-type`: Revision. `run.googleapis.com/scalingMode`: Service. * - * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: - * Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/startup-cpu- - * boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * - * `run.googleapis.com/vpc-access-egress`: Revision, Execution. + * Service. * `run.googleapis.com/build-function-target`: Service, Revision. * + * `run.googleapis.com/build-id`: Service, Revision. * `run.googleapis.com/build-image-uri`: + * Service. * `run.googleapis.com/build-name`: Service. * `run.googleapis.com/build-service- + * account`: Service. * `run.googleapis.com/build-source-location`: Service, Revision. * + * `run.googleapis.com/build-worker-pool`: Service. * `run.googleapis.com/client-name`: All + * resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * + * `run.googleapis.com/container-dependencies`: Revision . * `run.googleapis.com/cpu-throttling`: + * Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/default-url- + * disabled`: Service. * `run.googleapis.com/description`: Service. * + * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption- + * key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * + * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/gpu-zonal-redundancy- + * disabled`: Revision. * `run.googleapis.com/health-check-disabled`: Revision. * + * `run.googleapis.com/ingress`: Service, Instance. * `run.googleapis.com/invoker-iam-disabled`: + * Service, Instance. * `run.googleapis.com/launch-stage`: Service, Job. * + * `run.googleapis.com/minScale`: Service. * `run.googleapis.com/maxScale`: Service. * + * `run.googleapis.com/manualInstanceCount`: Service. * `run.googleapis.com/network-interfaces`: + * Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. + * `run.googleapis.com/scalingMode`: Service. * `run.googleapis.com/secrets`: Revision, Execution. + * * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: + * Revision. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access- + * connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -103,7 +104,8 @@ public final class ObjectMeta extends com.google.api.client.json.GenericJson { private java.util.List finalizers; /** - * Not supported by Cloud Run + * Optional. A prefix for the resource name if not provided in the create request. Must be less + * than 31 characters to allow for a random suffix. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -125,9 +127,9 @@ public final class ObjectMeta extends com.google.api.client.json.GenericJson { private java.util.Map labels; /** - * Required. The name of the resource. Name is required when creating top-level resources - * (Service, Job), must be unique within a Cloud Run project/region, and cannot be changed once - * created. + * Optional. The name of the resource. A name for creating top-level resources (Service, Job, + * WorkerPool). Must be unique within a Cloud Run project/region, and cannot be changed once + * created. If omitted, a default name will be generated. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -183,27 +185,28 @@ public final class ObjectMeta extends com.google.api.client.json.GenericJson { * authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, * Job, Execution. * `run.googleapis.com/build-base-image`: Service. * `run.googleapis.com/build- * enable-automatic-updates`: Service. * `run.googleapis.com/build-environment-variables`: - * Service. * `run.googleapis.com/build-function-target`: Service. * `run.googleapis.com/build- - * id`: Service. * `run.googleapis.com/build-image-uri`: Service. * `run.googleapis.com/build- - * name`: Service. * `run.googleapis.com/build-service-account`: Service. * - * `run.googleapis.com/build-source-location`: Service. * `run.googleapis.com/build-worker-pool`: - * Service. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql- - * instances`: Revision, Execution. * `run.googleapis.com/container-dependencies`: Revision . * - * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: - * Service. * `run.googleapis.com/default-url-disabled`: Service. * - * `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown- - * hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * - * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc- - * traffic-tags`: Service. * `run.googleapis.com/gpu-zonal-redundancy-disabled`: Revision. * - * `run.googleapis.com/health-check-disabled`: Revision. * `run.googleapis.com/ingress`: Service. - * * `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/minScale`: Service. * - * `run.googleapis.com/maxScale`: Service. * `run.googleapis.com/manualInstanceCount`: Service. * - * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key- - * revocation-action-type`: Revision. `run.googleapis.com/scalingMode`: Service. * - * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: - * Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/startup-cpu- - * boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * - * `run.googleapis.com/vpc-access-egress`: Revision, Execution. + * Service. * `run.googleapis.com/build-function-target`: Service, Revision. * + * `run.googleapis.com/build-id`: Service, Revision. * `run.googleapis.com/build-image-uri`: + * Service. * `run.googleapis.com/build-name`: Service. * `run.googleapis.com/build-service- + * account`: Service. * `run.googleapis.com/build-source-location`: Service, Revision. * + * `run.googleapis.com/build-worker-pool`: Service. * `run.googleapis.com/client-name`: All + * resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * + * `run.googleapis.com/container-dependencies`: Revision . * `run.googleapis.com/cpu-throttling`: + * Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/default-url- + * disabled`: Service. * `run.googleapis.com/description`: Service. * + * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption- + * key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * + * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/gpu-zonal-redundancy- + * disabled`: Revision. * `run.googleapis.com/health-check-disabled`: Revision. * + * `run.googleapis.com/ingress`: Service, Instance. * `run.googleapis.com/invoker-iam-disabled`: + * Service, Instance. * `run.googleapis.com/launch-stage`: Service, Job. * + * `run.googleapis.com/minScale`: Service. * `run.googleapis.com/maxScale`: Service. * + * `run.googleapis.com/manualInstanceCount`: Service. * `run.googleapis.com/network-interfaces`: + * Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. + * `run.googleapis.com/scalingMode`: Service. * `run.googleapis.com/secrets`: Revision, Execution. + * * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: + * Revision. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access- + * connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution. * @return value or {@code null} for none */ public java.util.Map getAnnotations() { @@ -220,27 +223,28 @@ public java.util.Map getAnnotations() { * authorization-breakglass`: Service, Job, * `run.googleapis.com/binary-authorization`: Service, * Job, Execution. * `run.googleapis.com/build-base-image`: Service. * `run.googleapis.com/build- * enable-automatic-updates`: Service. * `run.googleapis.com/build-environment-variables`: - * Service. * `run.googleapis.com/build-function-target`: Service. * `run.googleapis.com/build- - * id`: Service. * `run.googleapis.com/build-image-uri`: Service. * `run.googleapis.com/build- - * name`: Service. * `run.googleapis.com/build-service-account`: Service. * - * `run.googleapis.com/build-source-location`: Service. * `run.googleapis.com/build-worker-pool`: - * Service. * `run.googleapis.com/client-name`: All resources. * `run.googleapis.com/cloudsql- - * instances`: Revision, Execution. * `run.googleapis.com/container-dependencies`: Revision . * - * `run.googleapis.com/cpu-throttling`: Revision. * `run.googleapis.com/custom-audiences`: - * Service. * `run.googleapis.com/default-url-disabled`: Service. * - * `run.googleapis.com/description`: Service. * `run.googleapis.com/encryption-key-shutdown- - * hours`: Revision * `run.googleapis.com/encryption-key`: Revision, Execution. * - * `run.googleapis.com/execution-environment`: Revision, Execution. * `run.googleapis.com/gc- - * traffic-tags`: Service. * `run.googleapis.com/gpu-zonal-redundancy-disabled`: Revision. * - * `run.googleapis.com/health-check-disabled`: Revision. * `run.googleapis.com/ingress`: Service. - * * `run.googleapis.com/launch-stage`: Service, Job. * `run.googleapis.com/minScale`: Service. * - * `run.googleapis.com/maxScale`: Service. * `run.googleapis.com/manualInstanceCount`: Service. * - * `run.googleapis.com/network-interfaces`: Revision, Execution. * `run.googleapis.com/post-key- - * revocation-action-type`: Revision. `run.googleapis.com/scalingMode`: Service. * - * `run.googleapis.com/secrets`: Revision, Execution. * `run.googleapis.com/secure-session-agent`: - * Revision. * `run.googleapis.com/sessionAffinity`: Revision. * `run.googleapis.com/startup-cpu- - * boost`: Revision. * `run.googleapis.com/vpc-access-connector`: Revision, Execution. * - * `run.googleapis.com/vpc-access-egress`: Revision, Execution. + * Service. * `run.googleapis.com/build-function-target`: Service, Revision. * + * `run.googleapis.com/build-id`: Service, Revision. * `run.googleapis.com/build-image-uri`: + * Service. * `run.googleapis.com/build-name`: Service. * `run.googleapis.com/build-service- + * account`: Service. * `run.googleapis.com/build-source-location`: Service, Revision. * + * `run.googleapis.com/build-worker-pool`: Service. * `run.googleapis.com/client-name`: All + * resources. * `run.googleapis.com/cloudsql-instances`: Revision, Execution. * + * `run.googleapis.com/container-dependencies`: Revision . * `run.googleapis.com/cpu-throttling`: + * Revision. * `run.googleapis.com/custom-audiences`: Service. * `run.googleapis.com/default-url- + * disabled`: Service. * `run.googleapis.com/description`: Service. * + * `run.googleapis.com/encryption-key-shutdown-hours`: Revision * `run.googleapis.com/encryption- + * key`: Revision, Execution. * `run.googleapis.com/execution-environment`: Revision, Execution. * + * `run.googleapis.com/gc-traffic-tags`: Service. * `run.googleapis.com/gpu-zonal-redundancy- + * disabled`: Revision. * `run.googleapis.com/health-check-disabled`: Revision. * + * `run.googleapis.com/ingress`: Service, Instance. * `run.googleapis.com/invoker-iam-disabled`: + * Service, Instance. * `run.googleapis.com/launch-stage`: Service, Job. * + * `run.googleapis.com/minScale`: Service. * `run.googleapis.com/maxScale`: Service. * + * `run.googleapis.com/manualInstanceCount`: Service. * `run.googleapis.com/network-interfaces`: + * Revision, Execution. * `run.googleapis.com/post-key-revocation-action-type`: Revision. + * `run.googleapis.com/scalingMode`: Service. * `run.googleapis.com/secrets`: Revision, Execution. + * * `run.googleapis.com/secure-session-agent`: Revision. * `run.googleapis.com/sessionAffinity`: + * Revision. * `run.googleapis.com/startup-cpu-boost`: Revision. * `run.googleapis.com/vpc-access- + * connector`: Revision, Execution. * `run.googleapis.com/vpc-access-egress`: Revision, Execution. * @param annotations annotations or {@code null} for none */ public ObjectMeta setAnnotations(java.util.Map annotations) { @@ -336,7 +340,8 @@ public ObjectMeta setFinalizers(java.util.List finalizers) { } /** - * Not supported by Cloud Run + * Optional. A prefix for the resource name if not provided in the create request. Must be less + * than 31 characters to allow for a random suffix. * @return value or {@code null} for none */ public java.lang.String getGenerateName() { @@ -344,7 +349,8 @@ public java.lang.String getGenerateName() { } /** - * Not supported by Cloud Run + * Optional. A prefix for the resource name if not provided in the create request. Must be less + * than 31 characters to allow for a random suffix. * @param generateName generateName or {@code null} for none */ public ObjectMeta setGenerateName(java.lang.String generateName) { @@ -389,9 +395,9 @@ public ObjectMeta setLabels(java.util.Map labels) { } /** - * Required. The name of the resource. Name is required when creating top-level resources - * (Service, Job), must be unique within a Cloud Run project/region, and cannot be changed once - * created. + * Optional. The name of the resource. A name for creating top-level resources (Service, Job, + * WorkerPool). Must be unique within a Cloud Run project/region, and cannot be changed once + * created. If omitted, a default name will be generated. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -399,9 +405,9 @@ public java.lang.String getName() { } /** - * Required. The name of the resource. Name is required when creating top-level resources - * (Service, Job), must be unique within a Cloud Run project/region, and cannot be changed once - * created. + * Optional. The name of the resource. A name for creating top-level resources (Service, Job, + * WorkerPool). Must be unique within a Cloud Run project/region, and cannot be changed once + * created. If omitted, a default name will be generated. * @param name name or {@code null} for none */ public ObjectMeta setName(java.lang.String name) { diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/Revision.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/Revision.java index 95f19d4569f..17881f2d654 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/Revision.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/Revision.java @@ -17,9 +17,8 @@ package com.google.api.services.run.v1.model; /** - * Revision is an immutable snapshot of code and configuration. A revision references a container - * image. Revisions are created by updates to a Configuration. See also: - * https://github.com/knative/specs/blob/main/specs/serving/overview.md#revision + * Revision is an immutable snapshot of code and configuration. A revision references one or more + * container images. Revisions are created by updates to a Service. * *

      This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Cloud Run Admin API. For a detailed explanation see: diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/RevisionSpec.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/RevisionSpec.java index 4829e2a03af..2d755e1836e 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/RevisionSpec.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/RevisionSpec.java @@ -39,9 +39,7 @@ public final class RevisionSpec extends com.google.api.client.json.GenericJson { private java.lang.Integer containerConcurrency; /** - * Required. Containers holds the list which define the units of execution for this Revision. In - * the context of a Revision, we disallow a number of fields on this Container, including: name - * and lifecycle. + * Required. Containers holds the list which define the units of execution for this Revision. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -134,9 +132,7 @@ public RevisionSpec setContainerConcurrency(java.lang.Integer containerConcurren } /** - * Required. Containers holds the list which define the units of execution for this Revision. In - * the context of a Revision, we disallow a number of fields on this Container, including: name - * and lifecycle. + * Required. Containers holds the list which define the units of execution for this Revision. * @return value or {@code null} for none */ public java.util.List getContainers() { @@ -144,9 +140,7 @@ public java.util.List getContainers() { } /** - * Required. Containers holds the list which define the units of execution for this Revision. In - * the context of a Revision, we disallow a number of fields on this Container, including: name - * and lifecycle. + * Required. Containers holds the list which define the units of execution for this Revision. * @param containers containers or {@code null} for none */ public RevisionSpec setContainers(java.util.List containers) { diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/Service.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/Service.java index 81e81aab403..a299cd1de9a 100644 --- a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/Service.java +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/Service.java @@ -54,15 +54,15 @@ public final class Service extends com.google.api.client.json.GenericJson { * Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, * and the accepted annotations will be different depending on the resource type. The following * Cloud Run-specific annotations are accepted in Service.metadata.annotations. * - * `run.googleapis.com/binary-authorization-breakglass` * `run.googleapis.com/binary- - * authorization` * `run.googleapis.com/client-name` * `run.googleapis.com/custom-audiences` * - * `run.googleapis.com/default-url-disabled` * `run.googleapis.com/description` * - * `run.googleapis.com/gc-traffic-tags` * `run.googleapis.com/ingress` * - * `run.googleapis.com/ingress` sets the ingress settings for the Service. See [the ingress - * settings documentation](/run/docs/securing/ingress) for details on configuring ingress - * settings. * `run.googleapis.com/ingress-status` is output-only and contains the currently - * active ingress settings for the Service. `run.googleapis.com/ingress-status` may differ from - * `run.googleapis.com/ingress` while the system is processing a change to + * `run.googleapis.com/base-images` * `run.googleapis.com/binary-authorization-breakglass` * + * `run.googleapis.com/binary-authorization` * `run.googleapis.com/client-name` * + * `run.googleapis.com/custom-audiences` * `run.googleapis.com/default-url-disabled` * + * `run.googleapis.com/description` * `run.googleapis.com/gc-traffic-tags` * + * `run.googleapis.com/ingress` * `run.googleapis.com/ingress` sets the ingress settings for the + * Service. See [the ingress settings documentation](/run/docs/securing/ingress) for details on + * configuring ingress settings. * `run.googleapis.com/ingress-status` is output-only and contains + * the currently active ingress settings for the Service. `run.googleapis.com/ingress-status` may + * differ from `run.googleapis.com/ingress` while the system is processing a change to * `run.googleapis.com/ingress` or if the system failed to process a change to * `run.googleapis.com/ingress`. When the system has processed all changes successfully * `run.googleapis.com/ingress-status` and `run.googleapis.com/ingress` are equal. @@ -124,15 +124,15 @@ public Service setKind(java.lang.String kind) { * Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, * and the accepted annotations will be different depending on the resource type. The following * Cloud Run-specific annotations are accepted in Service.metadata.annotations. * - * `run.googleapis.com/binary-authorization-breakglass` * `run.googleapis.com/binary- - * authorization` * `run.googleapis.com/client-name` * `run.googleapis.com/custom-audiences` * - * `run.googleapis.com/default-url-disabled` * `run.googleapis.com/description` * - * `run.googleapis.com/gc-traffic-tags` * `run.googleapis.com/ingress` * - * `run.googleapis.com/ingress` sets the ingress settings for the Service. See [the ingress - * settings documentation](/run/docs/securing/ingress) for details on configuring ingress - * settings. * `run.googleapis.com/ingress-status` is output-only and contains the currently - * active ingress settings for the Service. `run.googleapis.com/ingress-status` may differ from - * `run.googleapis.com/ingress` while the system is processing a change to + * `run.googleapis.com/base-images` * `run.googleapis.com/binary-authorization-breakglass` * + * `run.googleapis.com/binary-authorization` * `run.googleapis.com/client-name` * + * `run.googleapis.com/custom-audiences` * `run.googleapis.com/default-url-disabled` * + * `run.googleapis.com/description` * `run.googleapis.com/gc-traffic-tags` * + * `run.googleapis.com/ingress` * `run.googleapis.com/ingress` sets the ingress settings for the + * Service. See [the ingress settings documentation](/run/docs/securing/ingress) for details on + * configuring ingress settings. * `run.googleapis.com/ingress-status` is output-only and contains + * the currently active ingress settings for the Service. `run.googleapis.com/ingress-status` may + * differ from `run.googleapis.com/ingress` while the system is processing a change to * `run.googleapis.com/ingress` or if the system failed to process a change to * `run.googleapis.com/ingress`. When the system has processed all changes successfully * `run.googleapis.com/ingress-status` and `run.googleapis.com/ingress` are equal. @@ -147,15 +147,15 @@ public ObjectMeta getMetadata() { * Cloud Run, annotations with 'run.googleapis.com/' and 'autoscaling.knative.dev' are restricted, * and the accepted annotations will be different depending on the resource type. The following * Cloud Run-specific annotations are accepted in Service.metadata.annotations. * - * `run.googleapis.com/binary-authorization-breakglass` * `run.googleapis.com/binary- - * authorization` * `run.googleapis.com/client-name` * `run.googleapis.com/custom-audiences` * - * `run.googleapis.com/default-url-disabled` * `run.googleapis.com/description` * - * `run.googleapis.com/gc-traffic-tags` * `run.googleapis.com/ingress` * - * `run.googleapis.com/ingress` sets the ingress settings for the Service. See [the ingress - * settings documentation](/run/docs/securing/ingress) for details on configuring ingress - * settings. * `run.googleapis.com/ingress-status` is output-only and contains the currently - * active ingress settings for the Service. `run.googleapis.com/ingress-status` may differ from - * `run.googleapis.com/ingress` while the system is processing a change to + * `run.googleapis.com/base-images` * `run.googleapis.com/binary-authorization-breakglass` * + * `run.googleapis.com/binary-authorization` * `run.googleapis.com/client-name` * + * `run.googleapis.com/custom-audiences` * `run.googleapis.com/default-url-disabled` * + * `run.googleapis.com/description` * `run.googleapis.com/gc-traffic-tags` * + * `run.googleapis.com/ingress` * `run.googleapis.com/ingress` sets the ingress settings for the + * Service. See [the ingress settings documentation](/run/docs/securing/ingress) for details on + * configuring ingress settings. * `run.googleapis.com/ingress-status` is output-only and contains + * the currently active ingress settings for the Service. `run.googleapis.com/ingress-status` may + * differ from `run.googleapis.com/ingress` while the system is processing a change to * `run.googleapis.com/ingress` or if the system failed to process a change to * `run.googleapis.com/ingress`. When the system has processed all changes successfully * `run.googleapis.com/ingress-status` and `run.googleapis.com/ingress` are equal. diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/StartInstanceRequest.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/StartInstanceRequest.java new file mode 100644 index 00000000000..2832abfe011 --- /dev/null +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/StartInstanceRequest.java @@ -0,0 +1,42 @@ +/* + * 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.run.v1.model; + +/** + * Request message for starting a stopped Instance. + * + *

      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 Run Admin 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 StartInstanceRequest extends com.google.api.client.json.GenericJson { + + @Override + public StartInstanceRequest set(String fieldName, Object value) { + return (StartInstanceRequest) super.set(fieldName, value); + } + + @Override + public StartInstanceRequest clone() { + return (StartInstanceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/StopInstanceRequest.java b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/StopInstanceRequest.java new file mode 100644 index 00000000000..4d716d7e475 --- /dev/null +++ b/clients/google-api-services-run/v1/2.0.0/com/google/api/services/run/v1/model/StopInstanceRequest.java @@ -0,0 +1,42 @@ +/* + * 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.run.v1.model; + +/** + * Request message for stopping a running Instance. + * + *

      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 Run Admin 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 StopInstanceRequest extends com.google.api.client.json.GenericJson { + + @Override + public StopInstanceRequest set(String fieldName, Object value) { + return (StopInstanceRequest) super.set(fieldName, value); + } + + @Override + public StopInstanceRequest clone() { + return (StopInstanceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-run/v1/2.0.0/pom.xml b/clients/google-api-services-run/v1/2.0.0/pom.xml index ceb9cec7af9..af3fbd082ea 100644 --- a/clients/google-api-services-run/v1/2.0.0/pom.xml +++ b/clients/google-api-services-run/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-run - v1-rev20251202-2.0.0 - Cloud Run Admin API v1-rev20251202-2.0.0 + v1-rev20260206-2.0.0 + Cloud Run Admin API v1-rev20260206-2.0.0 jar 2011 diff --git a/clients/google-api-services-run/v1/README.md b/clients/google-api-services-run/v1/README.md index dcbce2e3f5e..ab94b9e2341 100644 --- a/clients/google-api-services-run/v1/README.md +++ b/clients/google-api-services-run/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-run - v1-rev20251202-2.0.0 + v1-rev20260206-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-run:v1-rev20251202-2.0.0' + implementation 'com.google.apis:google-api-services-run:v1-rev20260206-2.0.0' } ``` diff --git a/clients/google-api-services-run/v2/2.0.0/README.md b/clients/google-api-services-run/v2/2.0.0/README.md index 38ce0837cf0..0617fd9d302 100644 --- a/clients/google-api-services-run/v2/2.0.0/README.md +++ b/clients/google-api-services-run/v2/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-run - v2-rev20251205-2.0.0 + v2-rev20260206-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-run:v2-rev20251205-2.0.0' + implementation 'com.google.apis:google-api-services-run:v2-rev20260206-2.0.0' } ``` diff --git a/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/CloudRun.java b/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/CloudRun.java index e59eb28003a..dd7020dda22 100644 --- a/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/CloudRun.java +++ b/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/CloudRun.java @@ -103,7 +103,7 @@ public class CloudRun extends com.google.api.client.googleapis.services.json.Abs * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
    • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
    • - *
    • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
    • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
    • * *
    * @param jsonFactory JSON factory, which may be: @@ -970,6 +970,1011 @@ public Submit set(String parameterName, Object value) { } } + } + /** + * An accessor for creating requests from the Instances collection. + * + *

    The typical use is:

    + *
    +       *   {@code CloudRun run = new CloudRun(...);}
    +       *   {@code CloudRun.Instances.List request = run.instances().list(parameters ...)}
    +       * 
    + * + * @return the resource collection + */ + public Instances instances() { + return new Instances(); + } + + /** + * The "instances" collection of methods. + */ + public class Instances { + + /** + * Creates an Instance. + * + * Create a request for the method "instances.create". + * + * This request holds the parameters needed by the run server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent + * @param content the {@link com.google.api.services.run.v2.model.GoogleCloudRunV2Instance} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.run.v2.model.GoogleCloudRunV2Instance content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CloudRunRequest { + + private static final String REST_PATH = "v2/{+parent}/instances"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates an Instance. + * + * Create a request for the method "instances.create". + * + * This request holds the parameters needed by the the run 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 + * @param content the {@link com.google.api.services.run.v2.model.GoogleCloudRunV2Instance} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.run.v2.model.GoogleCloudRunV2Instance content) { + super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v2.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + + */ + public java.lang.String getParent() { + return parent; + } + + 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; + } + + /** + * Optional. The unique identifier for the Instance. It must begin with letter, and cannot + * end with hyphen; must contain fewer than 50 characters. The name of the instance + * becomes {parent}/instances/{instance_id}. If not provided, the server will generate a + * unique `instance_id`. + */ + @com.google.api.client.util.Key + private java.lang.String instanceId; + + /** Optional. The unique identifier for the Instance. It must begin with letter, and cannot end with + hyphen; must contain fewer than 50 characters. The name of the instance becomes + {parent}/instances/{instance_id}. If not provided, the server will generate a unique `instance_id`. + */ + public java.lang.String getInstanceId() { + return instanceId; + } + + /** + * Optional. The unique identifier for the Instance. It must begin with letter, and cannot + * end with hyphen; must contain fewer than 50 characters. The name of the instance + * becomes {parent}/instances/{instance_id}. If not provided, the server will generate a + * unique `instance_id`. + */ + public Create setInstanceId(java.lang.String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * Optional. Indicates that the request should be validated and default values populated, + * without persisting the request or creating any resources. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. Indicates that the request should be validated and default values populated, without + persisting the request or creating any resources. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. Indicates that the request should be validated and default values populated, + * without persisting the request or creating any resources. + */ + public Create setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a Instance + * + * Create a request for the method "instances.delete". + * + * This request holds the parameters needed by the run server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name + * @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 CloudRunRequest { + + private static final String REST_PATH = "v2/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); + + /** + * Deletes a Instance + * + * Create a request for the method "instances.delete". + * + * This request holds the parameters needed by the the run 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 + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CloudRun.this, "DELETE", REST_PATH, null, com.google.api.services.run.v2.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/[^/]+/instances/[^/]+$"); + } + } + + @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); + } + + @com.google.api.client.util.Key + private java.lang.String name; + + /** + + */ + public java.lang.String getName() { + return name; + } + + 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/[^/]+/instances/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. A system-generated fingerprint for this version of the resource. May be used + * to detect modification conflict during updates. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. A system-generated fingerprint for this version of the resource. May be used to detect + modification conflict during updates. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. A system-generated fingerprint for this version of the resource. May be used + * to detect modification conflict during updates. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Indicates that the request should be validated without actually deleting any + * resources. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** Optional. Indicates that the request should be validated without actually deleting any resources. + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. Indicates that the request should be validated without actually deleting any + * resources. + */ + public Delete setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets a Instance + * + * Create a request for the method "instances.get". + * + * This request holds the parameters needed by the run server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name + * @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 CloudRunRequest { + + private static final String REST_PATH = "v2/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); + + /** + * Gets a Instance + * + * Create a request for the method "instances.get". + * + * This request holds the parameters needed by the the run 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 + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v2.model.GoogleCloudRunV2Instance.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/[^/]+/instances/[^/]+$"); + } + } + + @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); + } + + @com.google.api.client.util.Key + private java.lang.String name; + + /** + + */ + public java.lang.String getName() { + return name; + } + + 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/[^/]+/instances/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists Instances. Results are sorted by creation time, descending. + * + * Create a request for the method "instances.list". + * + * This request holds the parameters needed by the run server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The location and project to list resources on. Format: + * projects/{project}/locations/{location}, where {project} can be project id or number. + * @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 CloudRunRequest { + + private static final String REST_PATH = "v2/{+parent}/instances"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists Instances. Results are sorted by creation time, descending. + * + * Create a request for the method "instances.list". + * + * This request holds the parameters needed by the the run 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 location and project to list resources on. Format: + * projects/{project}/locations/{location}, where {project} can be project id or number. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v2.model.GoogleCloudRunV2ListInstancesResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The location and project to list resources on. Format: + * projects/{project}/locations/{location}, where {project} can be project id or number. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The location and project to list resources on. Format: + projects/{project}/locations/{location}, where {project} can be project id or number. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The location and project to list resources on. Format: + * projects/{project}/locations/{location}, where {project} can be project id or number. + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. Maximum number of Instances to return in this call. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Maximum number of Instances to return in this call. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** Optional. Maximum number of Instances to return in this call. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token received from a previous call to ListInstances. All other + * parameters must match. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token received from a previous call to ListInstances. All other parameters must + match. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token received from a previous call to ListInstances. All other + * parameters must match. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Optional. If true, returns deleted (but unexpired) resources along with active ones. + */ + @com.google.api.client.util.Key + private java.lang.Boolean showDeleted; + + /** Optional. If true, returns deleted (but unexpired) resources along with active ones. + */ + public java.lang.Boolean getShowDeleted() { + return showDeleted; + } + + /** + * Optional. If true, returns deleted (but unexpired) resources along with active ones. + */ + public List setShowDeleted(java.lang.Boolean showDeleted) { + this.showDeleted = showDeleted; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Starts an Instance. + * + * Create a request for the method "instances.start". + * + * This request holds the parameters needed by the run server. After setting any optional + * parameters, call the {@link Start#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Instance to stop. Format: + * `projects/{project}/locations/{location}/instances/{instance}`, where `{project}` can be + * project id or number. + * @param content the {@link com.google.api.services.run.v2.model.GoogleCloudRunV2StartInstanceRequest} + * @return the request + */ + public Start start(java.lang.String name, com.google.api.services.run.v2.model.GoogleCloudRunV2StartInstanceRequest content) throws java.io.IOException { + Start result = new Start(name, content); + initialize(result); + return result; + } + + public class Start extends CloudRunRequest { + + private static final String REST_PATH = "v2/{+name}:start"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); + + /** + * Starts an Instance. + * + * Create a request for the method "instances.start". + * + * This request holds the parameters needed by the the run server. After setting any optional + * parameters, call the {@link Start#execute()} method to invoke the remote operation.

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

    + * + * @param name Required. The name of the Instance to stop. Format: + * `projects/{project}/locations/{location}/instances/{instance}`, where `{project}` can be + * project id or number. + * @param content the {@link com.google.api.services.run.v2.model.GoogleCloudRunV2StartInstanceRequest} + * @since 1.13 + */ + protected Start(java.lang.String name, com.google.api.services.run.v2.model.GoogleCloudRunV2StartInstanceRequest content) { + super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v2.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/[^/]+/instances/[^/]+$"); + } + } + + @Override + public Start set$Xgafv(java.lang.String $Xgafv) { + return (Start) super.set$Xgafv($Xgafv); + } + + @Override + public Start setAccessToken(java.lang.String accessToken) { + return (Start) super.setAccessToken(accessToken); + } + + @Override + public Start setAlt(java.lang.String alt) { + return (Start) super.setAlt(alt); + } + + @Override + public Start setCallback(java.lang.String callback) { + return (Start) super.setCallback(callback); + } + + @Override + public Start setFields(java.lang.String fields) { + return (Start) super.setFields(fields); + } + + @Override + public Start setKey(java.lang.String key) { + return (Start) super.setKey(key); + } + + @Override + public Start setOauthToken(java.lang.String oauthToken) { + return (Start) super.setOauthToken(oauthToken); + } + + @Override + public Start setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Start) super.setPrettyPrint(prettyPrint); + } + + @Override + public Start setQuotaUser(java.lang.String quotaUser) { + return (Start) super.setQuotaUser(quotaUser); + } + + @Override + public Start setUploadType(java.lang.String uploadType) { + return (Start) super.setUploadType(uploadType); + } + + @Override + public Start setUploadProtocol(java.lang.String uploadProtocol) { + return (Start) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Instance to stop. Format: + * `projects/{project}/locations/{location}/instances/{instance}`, where `{project}` can + * be project id or number. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Instance to stop. Format: + `projects/{project}/locations/{location}/instances/{instance}`, where `{project}` can be project id + or number. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Instance to stop. Format: + * `projects/{project}/locations/{location}/instances/{instance}`, where `{project}` can + * be project id or number. + */ + public Start 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/[^/]+/instances/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Start set(String parameterName, Object value) { + return (Start) super.set(parameterName, value); + } + } + /** + * Stops an Instance. + * + * Create a request for the method "instances.stop". + * + * This request holds the parameters needed by the run server. After setting any optional + * parameters, call the {@link Stop#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the Instance to stop. Format: + * `projects/{project}/locations/{location}/instances/{instance}`, where `{project}` can be + * project id or number. + * @param content the {@link com.google.api.services.run.v2.model.GoogleCloudRunV2StopInstanceRequest} + * @return the request + */ + public Stop stop(java.lang.String name, com.google.api.services.run.v2.model.GoogleCloudRunV2StopInstanceRequest content) throws java.io.IOException { + Stop result = new Stop(name, content); + initialize(result); + return result; + } + + public class Stop extends CloudRunRequest { + + private static final String REST_PATH = "v2/{+name}:stop"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); + + /** + * Stops an Instance. + * + * Create a request for the method "instances.stop". + * + * This request holds the parameters needed by the the run server. After setting any optional + * parameters, call the {@link Stop#execute()} method to invoke the remote operation.

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

    + * + * @param name Required. The name of the Instance to stop. Format: + * `projects/{project}/locations/{location}/instances/{instance}`, where `{project}` can be + * project id or number. + * @param content the {@link com.google.api.services.run.v2.model.GoogleCloudRunV2StopInstanceRequest} + * @since 1.13 + */ + protected Stop(java.lang.String name, com.google.api.services.run.v2.model.GoogleCloudRunV2StopInstanceRequest content) { + super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v2.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/[^/]+/instances/[^/]+$"); + } + } + + @Override + public Stop set$Xgafv(java.lang.String $Xgafv) { + return (Stop) super.set$Xgafv($Xgafv); + } + + @Override + public Stop setAccessToken(java.lang.String accessToken) { + return (Stop) super.setAccessToken(accessToken); + } + + @Override + public Stop setAlt(java.lang.String alt) { + return (Stop) super.setAlt(alt); + } + + @Override + public Stop setCallback(java.lang.String callback) { + return (Stop) super.setCallback(callback); + } + + @Override + public Stop setFields(java.lang.String fields) { + return (Stop) super.setFields(fields); + } + + @Override + public Stop setKey(java.lang.String key) { + return (Stop) super.setKey(key); + } + + @Override + public Stop setOauthToken(java.lang.String oauthToken) { + return (Stop) super.setOauthToken(oauthToken); + } + + @Override + public Stop setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Stop) super.setPrettyPrint(prettyPrint); + } + + @Override + public Stop setQuotaUser(java.lang.String quotaUser) { + return (Stop) super.setQuotaUser(quotaUser); + } + + @Override + public Stop setUploadType(java.lang.String uploadType) { + return (Stop) super.setUploadType(uploadType); + } + + @Override + public Stop setUploadProtocol(java.lang.String uploadProtocol) { + return (Stop) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the Instance to stop. Format: + * `projects/{project}/locations/{location}/instances/{instance}`, where `{project}` can + * be project id or number. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the Instance to stop. Format: + `projects/{project}/locations/{location}/instances/{instance}`, where `{project}` can be project id + or number. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the Instance to stop. Format: + * `projects/{project}/locations/{location}/instances/{instance}`, where `{project}` can + * be project id or number. + */ + public Stop 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/[^/]+/instances/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Stop set(String parameterName, Object value) { + return (Stop) super.set(parameterName, value); + } + } + } /** * An accessor for creating requests from the Jobs collection. @@ -1126,21 +2131,22 @@ public Create setParent(java.lang.String parent) { } /** - * Required. The unique identifier for the Job. The name of the job becomes - * {parent}/jobs/{job_id}. + * Optional. The unique identifier for the Job. The name of the job becomes + * {parent}/jobs/{job_id}. If not provided, the server will generate a unique `job_id`. */ @com.google.api.client.util.Key private java.lang.String jobId; - /** Required. The unique identifier for the Job. The name of the job becomes {parent}/jobs/{job_id}. + /** Optional. The unique identifier for the Job. The name of the job becomes {parent}/jobs/{job_id}. If + not provided, the server will generate a unique `job_id`. */ public java.lang.String getJobId() { return jobId; } /** - * Required. The unique identifier for the Job. The name of the job becomes - * {parent}/jobs/{job_id}. + * Optional. The unique identifier for the Job. The name of the job becomes + * {parent}/jobs/{job_id}. If not provided, the server will generate a unique `job_id`. */ public Create setJobId(java.lang.String jobId) { this.jobId = jobId; @@ -4658,25 +5664,27 @@ public Create setParent(java.lang.String parent) { } /** - * Required. The unique identifier for the Service. It must begin with letter, and cannot + * Optional. The unique identifier for the Service. It must begin with letter, and cannot * end with hyphen; must contain fewer than 50 characters. The name of the service becomes - * {parent}/services/{service_id}. + * {parent}/services/{service_id}. If not provided, the server will generate a unique + * `service_id`. */ @com.google.api.client.util.Key private java.lang.String serviceId; - /** Required. The unique identifier for the Service. It must begin with letter, and cannot end with + /** Optional. The unique identifier for the Service. It must begin with letter, and cannot end with hyphen; must contain fewer than 50 characters. The name of the service becomes - {parent}/services/{service_id}. + {parent}/services/{service_id}. If not provided, the server will generate a unique `service_id`. */ public java.lang.String getServiceId() { return serviceId; } /** - * Required. The unique identifier for the Service. It must begin with letter, and cannot + * Optional. The unique identifier for the Service. It must begin with letter, and cannot * end with hyphen; must contain fewer than 50 characters. The name of the service becomes - * {parent}/services/{service_id}. + * {parent}/services/{service_id}. If not provided, the server will generate a unique + * `service_id`. */ public Create setServiceId(java.lang.String serviceId) { this.serviceId = serviceId; @@ -6895,25 +7903,28 @@ public Create setValidateOnly(java.lang.Boolean validateOnly) { } /** - * Required. The unique identifier for the WorkerPool. It must begin with letter, and + * Optional. The unique identifier for the WorkerPool. It must begin with letter, and * cannot end with hyphen; must contain fewer than 50 characters. The name of the worker - * pool becomes `{parent}/workerPools/{worker_pool_id}`. + * pool becomes `{parent}/workerPools/{worker_pool_id}`. If not provided, the server will + * generate a unique `worker_pool_id`. */ @com.google.api.client.util.Key private java.lang.String workerPoolId; - /** Required. The unique identifier for the WorkerPool. It must begin with letter, and cannot end with + /** Optional. The unique identifier for the WorkerPool. It must begin with letter, and cannot end with hyphen; must contain fewer than 50 characters. The name of the worker pool becomes - `{parent}/workerPools/{worker_pool_id}`. + `{parent}/workerPools/{worker_pool_id}`. If not provided, the server will generate a unique + `worker_pool_id`. */ public java.lang.String getWorkerPoolId() { return workerPoolId; } /** - * Required. The unique identifier for the WorkerPool. It must begin with letter, and + * Optional. The unique identifier for the WorkerPool. It must begin with letter, and * cannot end with hyphen; must contain fewer than 50 characters. The name of the worker - * pool becomes `{parent}/workerPools/{worker_pool_id}`. + * pool becomes `{parent}/workerPools/{worker_pool_id}`. If not provided, the server will + * generate a unique `worker_pool_id`. */ public Create setWorkerPoolId(java.lang.String workerPoolId) { this.workerPoolId = workerPoolId; @@ -8806,8 +9817,7 @@ private static String chooseEndpoint(com.google.api.client.http.HttpTransport tr * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport} *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • - *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} - *
  • + *
  • Java: {@code com.google.api.client.http.javanet.NetHttpTransport}
  • * * @param jsonFactory JSON factory, which may be: *
      diff --git a/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2Container.java b/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2Container.java index 57c08ad0f27..cbc7b79a307 100644 --- a/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2Container.java +++ b/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2Container.java @@ -107,6 +107,13 @@ public final class GoogleCloudRunV2Container extends com.google.api.client.json. @com.google.api.client.util.Key private java.util.List ports; + /** + * Readiness probe to be used for health checks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudRunV2Probe readinessProbe; + /** * Compute Resource requirements by this container. * The value may be {@code null}. @@ -327,6 +334,23 @@ public GoogleCloudRunV2Container setPorts(java.util.List 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 Run Admin 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 GoogleCloudRunV2ContainerStatus extends com.google.api.client.json.GenericJson { + + /** + * ImageDigest holds the resolved digest for the image specified and resolved during the creation + * of Revision. This field holds the digest value regardless of whether a tag or digest was + * originally specified in the Container object. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String imageDigest; + + /** + * The name of the container, if specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * ImageDigest holds the resolved digest for the image specified and resolved during the creation + * of Revision. This field holds the digest value regardless of whether a tag or digest was + * originally specified in the Container object. + * @return value or {@code null} for none + */ + public java.lang.String getImageDigest() { + return imageDigest; + } + + /** + * ImageDigest holds the resolved digest for the image specified and resolved during the creation + * of Revision. This field holds the digest value regardless of whether a tag or digest was + * originally specified in the Container object. + * @param imageDigest imageDigest or {@code null} for none + */ + public GoogleCloudRunV2ContainerStatus setImageDigest(java.lang.String imageDigest) { + this.imageDigest = imageDigest; + return this; + } + + /** + * The name of the container, if specified. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The name of the container, if specified. + * @param name name or {@code null} for none + */ + public GoogleCloudRunV2ContainerStatus setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GoogleCloudRunV2ContainerStatus set(String fieldName, Object value) { + return (GoogleCloudRunV2ContainerStatus) super.set(fieldName, value); + } + + @Override + public GoogleCloudRunV2ContainerStatus clone() { + return (GoogleCloudRunV2ContainerStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2Execution.java b/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2Execution.java index 3957796151e..f158e321154 100644 --- a/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2Execution.java +++ b/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2Execution.java @@ -45,6 +45,20 @@ public final class GoogleCloudRunV2Execution extends com.google.api.client.json. @com.google.api.client.util.Key private java.lang.Integer cancelledCount; + /** + * Output only. Arbitrary identifier for the API client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String client; + + /** + * Output only. Arbitrary version identifier for the API client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientVersion; + /** * Output only. Represents time when the execution was completed. It is not guaranteed to be set * in happens-before order across separate operations. @@ -144,7 +158,7 @@ public final class GoogleCloudRunV2Execution extends com.google.api.client.json. * Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports * `ALPHA`, `BETA`, and `GA`. Note that this value might not be what was used as input. For * example, if ALPHA was provided as input in the parent resource, but only BETA and GA-level - * features are were, this field will be BETA. + * features are used, this field will be BETA. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -293,6 +307,40 @@ public GoogleCloudRunV2Execution setCancelledCount(java.lang.Integer cancelledCo return this; } + /** + * Output only. Arbitrary identifier for the API client. + * @return value or {@code null} for none + */ + public java.lang.String getClient() { + return client; + } + + /** + * Output only. Arbitrary identifier for the API client. + * @param client client or {@code null} for none + */ + public GoogleCloudRunV2Execution setClient(java.lang.String client) { + this.client = client; + return this; + } + + /** + * Output only. Arbitrary version identifier for the API client. + * @return value or {@code null} for none + */ + public java.lang.String getClientVersion() { + return clientVersion; + } + + /** + * Output only. Arbitrary version identifier for the API client. + * @param clientVersion clientVersion or {@code null} for none + */ + public GoogleCloudRunV2Execution setClientVersion(java.lang.String clientVersion) { + this.clientVersion = clientVersion; + return this; + } + /** * Output only. Represents time when the execution was completed. It is not guaranteed to be set * in happens-before order across separate operations. @@ -507,7 +555,7 @@ public GoogleCloudRunV2Execution setLabels(java.util.Map annotations; + /** + * Optional. Arbitrary identifier for the API client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String client; + + /** + * Optional. Arbitrary version identifier for the API client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientVersion; + /** * Unstructured key value map that can be used to organize and categorize objects. User-provided * labels are shared with Google's billing system, so they can be used to filter, or break down @@ -109,6 +123,40 @@ public GoogleCloudRunV2ExecutionTemplate setAnnotations(java.util.Map 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 Run Admin 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 GoogleCloudRunV2Instance extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map annotations; + + /** + * Settings for the Binary Authorization feature. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudRunV2BinaryAuthorization binaryAuthorization; + + /** + * Arbitrary identifier for the API client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String client; + + /** + * Arbitrary version identifier for the API client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientVersion; + + /** + * Output only. The Conditions of all other associated sub-resources. They contain additional + * diagnostics information in case the Instance does not reach its Serving state. See comments in + * `reconciling` for additional information on reconciliation process in Cloud Run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List conditions; + + static { + // hack to force ProGuard to consider GoogleCloudRunV2Condition used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudRunV2Condition.class); + } + + /** + * Output only. Status information for each of the specified containers. The status includes the + * resolved digest for specified images. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List containerStatuses; + + static { + // hack to force ProGuard to consider GoogleCloudRunV2ContainerStatus used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudRunV2ContainerStatus.class); + } + + /** + * Required. Holds the single container that defines the unit of execution for this Instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List containers; + + static { + // hack to force ProGuard to consider GoogleCloudRunV2Container used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudRunV2Container.class); + } + + /** + * Output only. The creation time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. Email address of the authenticated creator. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creator; + + /** + * Output only. The deletion time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String deleteTime; + + /** + * User-provided description of the Instance. This field currently has a 512-character limit. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. + * For more information, go to https://cloud.google.com/run/docs/securing/using-cmek + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String encryptionKey; + + /** + * The action to take if the encryption key is revoked. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String encryptionKeyRevocationAction; + + /** + * If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all + * instances. The minimum increment is 1 hour. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String encryptionKeyShutdownDuration; + + /** + * Optional. A system-generated fingerprint for this version of the resource. May be used to + * detect modification conflict during updates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. For a deleted resource, the time after which it will be permamently deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String expireTime; + + /** + * Output only. A number that monotonically increases every time the user modifies the desired + * state. Please note that unlike v1, this is an int64 value. As with most Google APIs, its JSON + * representation will be a `string` instead of an `integer`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long generation; + + /** + * Optional. True if GPU zonal redundancy is disabled on this instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean gpuZonalRedundancyDisabled; + + /** + * Optional. IAP settings on the Instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean iapEnabled; + + /** + * Optional. Provides the ingress settings for this Instance. On output, returns the currently + * observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ingress; + + /** + * Optional. Disables IAM permission check for run.routes.invoke for callers of this Instance. For + * more information, visit https://cloud.google.com/run/docs/securing/managing- + * access#invoker_check. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean invokerIamDisabled; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * Output only. Email address of the last authenticated modifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastModifier; + + /** + * The launch stage as defined by [Google Cloud Platform Launch + * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and + * `GA`. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input + * to allow use of preview features in that stage. On read (or output), describes whether the + * resource uses preview features. For example, if ALPHA is provided as input, but only BETA and + * GA-level features are used, this field will be BETA on output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String launchStage; + + /** + * Output only. The Google Console URI to obtain logs for the Instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String logUri; + + /** + * The fully qualified name of this Instance. In CreateInstanceRequest, this field is ignored, and + * instead composed from CreateInstanceRequest.parent and CreateInstanceRequest.instance_id. + * Format: projects/{project}/locations/{location}/instances/{instance_id} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The node selector for the instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudRunV2NodeSelector nodeSelector; + + /** + * Output only. The generation of this Instance currently serving traffic. See comments in + * `reconciling` for additional information on reconciliation process in Cloud Run. Please note + * that unlike v1, this is an int64 value. As with most Google APIs, its JSON representation will + * be a `string` instead of an `integer`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long observedGeneration; + + /** + * Output only. Returns true if the Instance is currently being acted upon by the system to bring + * it into the desired state. When a new Instance is created, or an existing one is updated, Cloud + * Run will asynchronously perform all necessary steps to bring the Instance to the desired + * serving state. This process is called reconciliation. While reconciliation is in process, + * `observed_generation` will have a transient value that might mismatch the intended state. Once + * reconciliation is over (and this field is false), there are two possible outcomes: + * reconciliation succeeded and the serving state matches the Instance, or there was an error, and + * reconciliation failed. This state can be found in `terminal_condition.state`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean reconciling; + + /** + * Output only. Reserved for future use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzs; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceAccount; + + /** + * Output only. The Condition of this Instance, containing its readiness status, and detailed + * error information in case it did not reach a serving state. See comments in `reconciling` for + * additional information on reconciliation process in Cloud Run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudRunV2Condition terminalCondition; + + /** + * Optional. Duration the instance may be active before the system will shut it down. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timeout; + + /** + * Output only. Server assigned unique identifier for the trigger. The value is a UUID4 string and + * guaranteed to remain unchanged until the resource is deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uid; + + /** + * Output only. The last-modified time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. All URLs serving traffic for this Instance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List urls; + + /** + * A list of Volumes to make available to containers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List volumes; + + /** + * Optional. VPC Access configuration to use for this Revision. For more information, visit + * https://cloud.google.com/run/docs/configuring/connecting-vpc. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudRunV2VpcAccess vpcAccess; + + /** + * @return value or {@code null} for none + */ + public java.util.Map getAnnotations() { + return annotations; + } + + /** + * @param annotations annotations or {@code null} for none + */ + public GoogleCloudRunV2Instance setAnnotations(java.util.Map annotations) { + this.annotations = annotations; + return this; + } + + /** + * Settings for the Binary Authorization feature. + * @return value or {@code null} for none + */ + public GoogleCloudRunV2BinaryAuthorization getBinaryAuthorization() { + return binaryAuthorization; + } + + /** + * Settings for the Binary Authorization feature. + * @param binaryAuthorization binaryAuthorization or {@code null} for none + */ + public GoogleCloudRunV2Instance setBinaryAuthorization(GoogleCloudRunV2BinaryAuthorization binaryAuthorization) { + this.binaryAuthorization = binaryAuthorization; + return this; + } + + /** + * Arbitrary identifier for the API client. + * @return value or {@code null} for none + */ + public java.lang.String getClient() { + return client; + } + + /** + * Arbitrary identifier for the API client. + * @param client client or {@code null} for none + */ + public GoogleCloudRunV2Instance setClient(java.lang.String client) { + this.client = client; + return this; + } + + /** + * Arbitrary version identifier for the API client. + * @return value or {@code null} for none + */ + public java.lang.String getClientVersion() { + return clientVersion; + } + + /** + * Arbitrary version identifier for the API client. + * @param clientVersion clientVersion or {@code null} for none + */ + public GoogleCloudRunV2Instance setClientVersion(java.lang.String clientVersion) { + this.clientVersion = clientVersion; + return this; + } + + /** + * Output only. The Conditions of all other associated sub-resources. They contain additional + * diagnostics information in case the Instance does not reach its Serving state. See comments in + * `reconciling` for additional information on reconciliation process in Cloud Run. + * @return value or {@code null} for none + */ + public java.util.List getConditions() { + return conditions; + } + + /** + * Output only. The Conditions of all other associated sub-resources. They contain additional + * diagnostics information in case the Instance does not reach its Serving state. See comments in + * `reconciling` for additional information on reconciliation process in Cloud Run. + * @param conditions conditions or {@code null} for none + */ + public GoogleCloudRunV2Instance setConditions(java.util.List conditions) { + this.conditions = conditions; + return this; + } + + /** + * Output only. Status information for each of the specified containers. The status includes the + * resolved digest for specified images. + * @return value or {@code null} for none + */ + public java.util.List getContainerStatuses() { + return containerStatuses; + } + + /** + * Output only. Status information for each of the specified containers. The status includes the + * resolved digest for specified images. + * @param containerStatuses containerStatuses or {@code null} for none + */ + public GoogleCloudRunV2Instance setContainerStatuses(java.util.List containerStatuses) { + this.containerStatuses = containerStatuses; + return this; + } + + /** + * Required. Holds the single container that defines the unit of execution for this Instance. + * @return value or {@code null} for none + */ + public java.util.List getContainers() { + return containers; + } + + /** + * Required. Holds the single container that defines the unit of execution for this Instance. + * @param containers containers or {@code null} for none + */ + public GoogleCloudRunV2Instance setContainers(java.util.List containers) { + this.containers = containers; + return this; + } + + /** + * Output only. The creation time. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The creation time. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudRunV2Instance setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. Email address of the authenticated creator. + * @return value or {@code null} for none + */ + public java.lang.String getCreator() { + return creator; + } + + /** + * Output only. Email address of the authenticated creator. + * @param creator creator or {@code null} for none + */ + public GoogleCloudRunV2Instance setCreator(java.lang.String creator) { + this.creator = creator; + return this; + } + + /** + * Output only. The deletion time. + * @return value or {@code null} for none + */ + public String getDeleteTime() { + return deleteTime; + } + + /** + * Output only. The deletion time. + * @param deleteTime deleteTime or {@code null} for none + */ + public GoogleCloudRunV2Instance setDeleteTime(String deleteTime) { + this.deleteTime = deleteTime; + return this; + } + + /** + * User-provided description of the Instance. This field currently has a 512-character limit. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * User-provided description of the Instance. This field currently has a 512-character limit. + * @param description description or {@code null} for none + */ + public GoogleCloudRunV2Instance setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. + * For more information, go to https://cloud.google.com/run/docs/securing/using-cmek + * @return value or {@code null} for none + */ + public java.lang.String getEncryptionKey() { + return encryptionKey; + } + + /** + * A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. + * For more information, go to https://cloud.google.com/run/docs/securing/using-cmek + * @param encryptionKey encryptionKey or {@code null} for none + */ + public GoogleCloudRunV2Instance setEncryptionKey(java.lang.String encryptionKey) { + this.encryptionKey = encryptionKey; + return this; + } + + /** + * The action to take if the encryption key is revoked. + * @return value or {@code null} for none + */ + public java.lang.String getEncryptionKeyRevocationAction() { + return encryptionKeyRevocationAction; + } + + /** + * The action to take if the encryption key is revoked. + * @param encryptionKeyRevocationAction encryptionKeyRevocationAction or {@code null} for none + */ + public GoogleCloudRunV2Instance setEncryptionKeyRevocationAction(java.lang.String encryptionKeyRevocationAction) { + this.encryptionKeyRevocationAction = encryptionKeyRevocationAction; + return this; + } + + /** + * If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all + * instances. The minimum increment is 1 hour. + * @return value or {@code null} for none + */ + public String getEncryptionKeyShutdownDuration() { + return encryptionKeyShutdownDuration; + } + + /** + * If encryption_key_revocation_action is SHUTDOWN, the duration before shutting down all + * instances. The minimum increment is 1 hour. + * @param encryptionKeyShutdownDuration encryptionKeyShutdownDuration or {@code null} for none + */ + public GoogleCloudRunV2Instance setEncryptionKeyShutdownDuration(String encryptionKeyShutdownDuration) { + this.encryptionKeyShutdownDuration = encryptionKeyShutdownDuration; + return this; + } + + /** + * Optional. A system-generated fingerprint for this version of the resource. May be used to + * detect modification conflict during updates. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. A system-generated fingerprint for this version of the resource. May be used to + * detect modification conflict during updates. + * @param etag etag or {@code null} for none + */ + public GoogleCloudRunV2Instance setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. For a deleted resource, the time after which it will be permamently deleted. + * @return value or {@code null} for none + */ + public String getExpireTime() { + return expireTime; + } + + /** + * Output only. For a deleted resource, the time after which it will be permamently deleted. + * @param expireTime expireTime or {@code null} for none + */ + public GoogleCloudRunV2Instance setExpireTime(String expireTime) { + this.expireTime = expireTime; + return this; + } + + /** + * Output only. A number that monotonically increases every time the user modifies the desired + * state. Please note that unlike v1, this is an int64 value. As with most Google APIs, its JSON + * representation will be a `string` instead of an `integer`. + * @return value or {@code null} for none + */ + public java.lang.Long getGeneration() { + return generation; + } + + /** + * Output only. A number that monotonically increases every time the user modifies the desired + * state. Please note that unlike v1, this is an int64 value. As with most Google APIs, its JSON + * representation will be a `string` instead of an `integer`. + * @param generation generation or {@code null} for none + */ + public GoogleCloudRunV2Instance setGeneration(java.lang.Long generation) { + this.generation = generation; + return this; + } + + /** + * Optional. True if GPU zonal redundancy is disabled on this instance. + * @return value or {@code null} for none + */ + public java.lang.Boolean getGpuZonalRedundancyDisabled() { + return gpuZonalRedundancyDisabled; + } + + /** + * Optional. True if GPU zonal redundancy is disabled on this instance. + * @param gpuZonalRedundancyDisabled gpuZonalRedundancyDisabled or {@code null} for none + */ + public GoogleCloudRunV2Instance setGpuZonalRedundancyDisabled(java.lang.Boolean gpuZonalRedundancyDisabled) { + this.gpuZonalRedundancyDisabled = gpuZonalRedundancyDisabled; + return this; + } + + /** + * Optional. IAP settings on the Instance. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIapEnabled() { + return iapEnabled; + } + + /** + * Optional. IAP settings on the Instance. + * @param iapEnabled iapEnabled or {@code null} for none + */ + public GoogleCloudRunV2Instance setIapEnabled(java.lang.Boolean iapEnabled) { + this.iapEnabled = iapEnabled; + return this; + } + + /** + * Optional. Provides the ingress settings for this Instance. On output, returns the currently + * observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active. + * @return value or {@code null} for none + */ + public java.lang.String getIngress() { + return ingress; + } + + /** + * Optional. Provides the ingress settings for this Instance. On output, returns the currently + * observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no revision is active. + * @param ingress ingress or {@code null} for none + */ + public GoogleCloudRunV2Instance setIngress(java.lang.String ingress) { + this.ingress = ingress; + return this; + } + + /** + * Optional. Disables IAM permission check for run.routes.invoke for callers of this Instance. For + * more information, visit https://cloud.google.com/run/docs/securing/managing- + * access#invoker_check. + * @return value or {@code null} for none + */ + public java.lang.Boolean getInvokerIamDisabled() { + return invokerIamDisabled; + } + + /** + * Optional. Disables IAM permission check for run.routes.invoke for callers of this Instance. For + * more information, visit https://cloud.google.com/run/docs/securing/managing- + * access#invoker_check. + * @param invokerIamDisabled invokerIamDisabled or {@code null} for none + */ + public GoogleCloudRunV2Instance setInvokerIamDisabled(java.lang.Boolean invokerIamDisabled) { + this.invokerIamDisabled = invokerIamDisabled; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * @param labels labels or {@code null} for none + */ + public GoogleCloudRunV2Instance setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * Output only. Email address of the last authenticated modifier. + * @return value or {@code null} for none + */ + public java.lang.String getLastModifier() { + return lastModifier; + } + + /** + * Output only. Email address of the last authenticated modifier. + * @param lastModifier lastModifier or {@code null} for none + */ + public GoogleCloudRunV2Instance setLastModifier(java.lang.String lastModifier) { + this.lastModifier = lastModifier; + return this; + } + + /** + * The launch stage as defined by [Google Cloud Platform Launch + * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and + * `GA`. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input + * to allow use of preview features in that stage. On read (or output), describes whether the + * resource uses preview features. For example, if ALPHA is provided as input, but only BETA and + * GA-level features are used, this field will be BETA on output. + * @return value or {@code null} for none + */ + public java.lang.String getLaunchStage() { + return launchStage; + } + + /** + * The launch stage as defined by [Google Cloud Platform Launch + * Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports `ALPHA`, `BETA`, and + * `GA`. If no value is specified, GA is assumed. Set the launch stage to a preview stage on input + * to allow use of preview features in that stage. On read (or output), describes whether the + * resource uses preview features. For example, if ALPHA is provided as input, but only BETA and + * GA-level features are used, this field will be BETA on output. + * @param launchStage launchStage or {@code null} for none + */ + public GoogleCloudRunV2Instance setLaunchStage(java.lang.String launchStage) { + this.launchStage = launchStage; + return this; + } + + /** + * Output only. The Google Console URI to obtain logs for the Instance. + * @return value or {@code null} for none + */ + public java.lang.String getLogUri() { + return logUri; + } + + /** + * Output only. The Google Console URI to obtain logs for the Instance. + * @param logUri logUri or {@code null} for none + */ + public GoogleCloudRunV2Instance setLogUri(java.lang.String logUri) { + this.logUri = logUri; + return this; + } + + /** + * The fully qualified name of this Instance. In CreateInstanceRequest, this field is ignored, and + * instead composed from CreateInstanceRequest.parent and CreateInstanceRequest.instance_id. + * Format: projects/{project}/locations/{location}/instances/{instance_id} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The fully qualified name of this Instance. In CreateInstanceRequest, this field is ignored, and + * instead composed from CreateInstanceRequest.parent and CreateInstanceRequest.instance_id. + * Format: projects/{project}/locations/{location}/instances/{instance_id} + * @param name name or {@code null} for none + */ + public GoogleCloudRunV2Instance setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The node selector for the instance. + * @return value or {@code null} for none + */ + public GoogleCloudRunV2NodeSelector getNodeSelector() { + return nodeSelector; + } + + /** + * Optional. The node selector for the instance. + * @param nodeSelector nodeSelector or {@code null} for none + */ + public GoogleCloudRunV2Instance setNodeSelector(GoogleCloudRunV2NodeSelector nodeSelector) { + this.nodeSelector = nodeSelector; + return this; + } + + /** + * Output only. The generation of this Instance currently serving traffic. See comments in + * `reconciling` for additional information on reconciliation process in Cloud Run. Please note + * that unlike v1, this is an int64 value. As with most Google APIs, its JSON representation will + * be a `string` instead of an `integer`. + * @return value or {@code null} for none + */ + public java.lang.Long getObservedGeneration() { + return observedGeneration; + } + + /** + * Output only. The generation of this Instance currently serving traffic. See comments in + * `reconciling` for additional information on reconciliation process in Cloud Run. Please note + * that unlike v1, this is an int64 value. As with most Google APIs, its JSON representation will + * be a `string` instead of an `integer`. + * @param observedGeneration observedGeneration or {@code null} for none + */ + public GoogleCloudRunV2Instance setObservedGeneration(java.lang.Long observedGeneration) { + this.observedGeneration = observedGeneration; + return this; + } + + /** + * Output only. Returns true if the Instance is currently being acted upon by the system to bring + * it into the desired state. When a new Instance is created, or an existing one is updated, Cloud + * Run will asynchronously perform all necessary steps to bring the Instance to the desired + * serving state. This process is called reconciliation. While reconciliation is in process, + * `observed_generation` will have a transient value that might mismatch the intended state. Once + * reconciliation is over (and this field is false), there are two possible outcomes: + * reconciliation succeeded and the serving state matches the Instance, or there was an error, and + * reconciliation failed. This state can be found in `terminal_condition.state`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getReconciling() { + return reconciling; + } + + /** + * Output only. Returns true if the Instance is currently being acted upon by the system to bring + * it into the desired state. When a new Instance is created, or an existing one is updated, Cloud + * Run will asynchronously perform all necessary steps to bring the Instance to the desired + * serving state. This process is called reconciliation. While reconciliation is in process, + * `observed_generation` will have a transient value that might mismatch the intended state. Once + * reconciliation is over (and this field is false), there are two possible outcomes: + * reconciliation succeeded and the serving state matches the Instance, or there was an error, and + * reconciliation failed. This state can be found in `terminal_condition.state`. + * @param reconciling reconciling or {@code null} for none + */ + public GoogleCloudRunV2Instance setReconciling(java.lang.Boolean reconciling) { + this.reconciling = reconciling; + return this; + } + + /** + * Output only. Reserved for future use. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzs() { + return satisfiesPzs; + } + + /** + * Output only. Reserved for future use. + * @param satisfiesPzs satisfiesPzs or {@code null} for none + */ + public GoogleCloudRunV2Instance setSatisfiesPzs(java.lang.Boolean satisfiesPzs) { + this.satisfiesPzs = satisfiesPzs; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.lang.String getServiceAccount() { + return serviceAccount; + } + + /** + * @param serviceAccount serviceAccount or {@code null} for none + */ + public GoogleCloudRunV2Instance setServiceAccount(java.lang.String serviceAccount) { + this.serviceAccount = serviceAccount; + return this; + } + + /** + * Output only. The Condition of this Instance, containing its readiness status, and detailed + * error information in case it did not reach a serving state. See comments in `reconciling` for + * additional information on reconciliation process in Cloud Run. + * @return value or {@code null} for none + */ + public GoogleCloudRunV2Condition getTerminalCondition() { + return terminalCondition; + } + + /** + * Output only. The Condition of this Instance, containing its readiness status, and detailed + * error information in case it did not reach a serving state. See comments in `reconciling` for + * additional information on reconciliation process in Cloud Run. + * @param terminalCondition terminalCondition or {@code null} for none + */ + public GoogleCloudRunV2Instance setTerminalCondition(GoogleCloudRunV2Condition terminalCondition) { + this.terminalCondition = terminalCondition; + return this; + } + + /** + * Optional. Duration the instance may be active before the system will shut it down. + * @return value or {@code null} for none + */ + public String getTimeout() { + return timeout; + } + + /** + * Optional. Duration the instance may be active before the system will shut it down. + * @param timeout timeout or {@code null} for none + */ + public GoogleCloudRunV2Instance setTimeout(String timeout) { + this.timeout = timeout; + return this; + } + + /** + * Output only. Server assigned unique identifier for the trigger. The value is a UUID4 string and + * guaranteed to remain unchanged until the resource is deleted. + * @return value or {@code null} for none + */ + public java.lang.String getUid() { + return uid; + } + + /** + * Output only. Server assigned unique identifier for the trigger. The value is a UUID4 string and + * guaranteed to remain unchanged until the resource is deleted. + * @param uid uid or {@code null} for none + */ + public GoogleCloudRunV2Instance setUid(java.lang.String uid) { + this.uid = uid; + return this; + } + + /** + * Output only. The last-modified time. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The last-modified time. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudRunV2Instance setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Output only. All URLs serving traffic for this Instance. + * @return value or {@code null} for none + */ + public java.util.List getUrls() { + return urls; + } + + /** + * Output only. All URLs serving traffic for this Instance. + * @param urls urls or {@code null} for none + */ + public GoogleCloudRunV2Instance setUrls(java.util.List urls) { + this.urls = urls; + return this; + } + + /** + * A list of Volumes to make available to containers. + * @return value or {@code null} for none + */ + public java.util.List getVolumes() { + return volumes; + } + + /** + * A list of Volumes to make available to containers. + * @param volumes volumes or {@code null} for none + */ + public GoogleCloudRunV2Instance setVolumes(java.util.List volumes) { + this.volumes = volumes; + return this; + } + + /** + * Optional. VPC Access configuration to use for this Revision. For more information, visit + * https://cloud.google.com/run/docs/configuring/connecting-vpc. + * @return value or {@code null} for none + */ + public GoogleCloudRunV2VpcAccess getVpcAccess() { + return vpcAccess; + } + + /** + * Optional. VPC Access configuration to use for this Revision. For more information, visit + * https://cloud.google.com/run/docs/configuring/connecting-vpc. + * @param vpcAccess vpcAccess or {@code null} for none + */ + public GoogleCloudRunV2Instance setVpcAccess(GoogleCloudRunV2VpcAccess vpcAccess) { + this.vpcAccess = vpcAccess; + return this; + } + + @Override + public GoogleCloudRunV2Instance set(String fieldName, Object value) { + return (GoogleCloudRunV2Instance) super.set(fieldName, value); + } + + @Override + public GoogleCloudRunV2Instance clone() { + return (GoogleCloudRunV2Instance) super.clone(); + } + +} diff --git a/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2ListInstancesResponse.java b/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2ListInstancesResponse.java new file mode 100644 index 00000000000..bb34dad60c9 --- /dev/null +++ b/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2ListInstancesResponse.java @@ -0,0 +1,99 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.run.v2.model; + +/** + * Response message containing a list of Instances. + * + *

      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 Run Admin 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 GoogleCloudRunV2ListInstancesResponse extends com.google.api.client.json.GenericJson { + + /** + * The resulting list of Instances. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List instances; + + static { + // hack to force ProGuard to consider GoogleCloudRunV2Instance used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudRunV2Instance.class); + } + + /** + * A token indicating there are more items than page_size. Use it in the next ListInstances + * request to continue. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The resulting list of Instances. + * @return value or {@code null} for none + */ + public java.util.List getInstances() { + return instances; + } + + /** + * The resulting list of Instances. + * @param instances instances or {@code null} for none + */ + public GoogleCloudRunV2ListInstancesResponse setInstances(java.util.List instances) { + this.instances = instances; + return this; + } + + /** + * A token indicating there are more items than page_size. Use it in the next ListInstances + * request to continue. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token indicating there are more items than page_size. Use it in the next ListInstances + * request to continue. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudRunV2ListInstancesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudRunV2ListInstancesResponse set(String fieldName, Object value) { + return (GoogleCloudRunV2ListInstancesResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudRunV2ListInstancesResponse clone() { + return (GoogleCloudRunV2ListInstancesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2Revision.java b/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2Revision.java index 18d5dd4f50d..7c82f2e4012 100644 --- a/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2Revision.java +++ b/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2Revision.java @@ -38,6 +38,20 @@ public final class GoogleCloudRunV2Revision extends com.google.api.client.json.G @com.google.api.client.util.Key private java.util.Map annotations; + /** + * Output only. Arbitrary identifier for the API client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String client; + + /** + * Output only. Arbitrary version identifier for the API client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientVersion; + /** * Output only. The Condition of this Revision, containing its readiness status, and detailed * error information in case it did not reach a serving state. @@ -53,7 +67,7 @@ public final class GoogleCloudRunV2Revision extends com.google.api.client.json.G } /** - * Holds the single container that defines the unit of execution for this Revision. + * Containers holds the list which define the units of execution for this Revision. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -164,7 +178,7 @@ public final class GoogleCloudRunV2Revision extends com.google.api.client.json.G * Platform Launch Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports * `ALPHA`, `BETA`, and `GA`. Note that this value might not be what was used as input. For * example, if ALPHA was provided as input in the parent resource, but only BETA and GA-level - * features are were, this field will be BETA. + * features are used, this field will be BETA. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -321,6 +335,40 @@ public GoogleCloudRunV2Revision setAnnotations(java.util.Map getContainers() { @@ -349,7 +397,7 @@ public java.util.List getContainers() { } /** - * Holds the single container that defines the unit of execution for this Revision. + * Containers holds the list which define the units of execution for this Revision. * @param containers containers or {@code null} for none */ public GoogleCloudRunV2Revision setContainers(java.util.List containers) { @@ -586,7 +634,7 @@ public GoogleCloudRunV2Revision setLabels(java.util.Map annotations; + /** + * Optional. Arbitrary identifier for the API client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String client; + + /** + * Optional. Arbitrary version identifier for the API client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientVersion; + /** * Holds the single container that defines the unit of execution for this Revision. * The value may be {@code null}. @@ -216,6 +230,40 @@ public GoogleCloudRunV2RevisionTemplate setAnnotations(java.util.Map 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 Run Admin 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 GoogleCloudRunV2StartInstanceRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. A system-generated fingerprint for this version of the resource. This may be used to + * detect modification conflict during updates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. Indicates that the request should be validated without actually stopping any + * resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** + * Optional. A system-generated fingerprint for this version of the resource. This may be used to + * detect modification conflict during updates. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. A system-generated fingerprint for this version of the resource. This may be used to + * detect modification conflict during updates. + * @param etag etag or {@code null} for none + */ + public GoogleCloudRunV2StartInstanceRequest setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Indicates that the request should be validated without actually stopping any + * resources. + * @return value or {@code null} for none + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. Indicates that the request should be validated without actually stopping any + * resources. + * @param validateOnly validateOnly or {@code null} for none + */ + public GoogleCloudRunV2StartInstanceRequest setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public GoogleCloudRunV2StartInstanceRequest set(String fieldName, Object value) { + return (GoogleCloudRunV2StartInstanceRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudRunV2StartInstanceRequest clone() { + return (GoogleCloudRunV2StartInstanceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2StopInstanceRequest.java b/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2StopInstanceRequest.java new file mode 100644 index 00000000000..39c3fb84570 --- /dev/null +++ b/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2StopInstanceRequest.java @@ -0,0 +1,96 @@ +/* + * 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.run.v2.model; + +/** + * Request message for deleting an Instance. + * + *

      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 Run Admin 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 GoogleCloudRunV2StopInstanceRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. A system-generated fingerprint for this version of the resource. This may be used to + * detect modification conflict during updates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. Indicates that the request should be validated without actually stopping any + * resources. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** + * Optional. A system-generated fingerprint for this version of the resource. This may be used to + * detect modification conflict during updates. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. A system-generated fingerprint for this version of the resource. This may be used to + * detect modification conflict during updates. + * @param etag etag or {@code null} for none + */ + public GoogleCloudRunV2StopInstanceRequest setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Indicates that the request should be validated without actually stopping any + * resources. + * @return value or {@code null} for none + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. Indicates that the request should be validated without actually stopping any + * resources. + * @param validateOnly validateOnly or {@code null} for none + */ + public GoogleCloudRunV2StopInstanceRequest setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public GoogleCloudRunV2StopInstanceRequest set(String fieldName, Object value) { + return (GoogleCloudRunV2StopInstanceRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudRunV2StopInstanceRequest clone() { + return (GoogleCloudRunV2StopInstanceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2WorkerPoolRevisionTemplate.java b/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2WorkerPoolRevisionTemplate.java index 2cbd804edca..81e72760e40 100644 --- a/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2WorkerPoolRevisionTemplate.java +++ b/clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/model/GoogleCloudRunV2WorkerPoolRevisionTemplate.java @@ -42,6 +42,20 @@ public final class GoogleCloudRunV2WorkerPoolRevisionTemplate extends com.google @com.google.api.client.util.Key private java.util.Map annotations; + /** + * Optional. Arbitrary identifier for the API client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String client; + + /** + * Optional. Arbitrary version identifier for the API client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientVersion; + /** * Holds list of the containers that defines the unit of execution for this Revision. * The value may be {@code null}. @@ -179,6 +193,40 @@ public GoogleCloudRunV2WorkerPoolRevisionTemplate setAnnotations(java.util.Mapcom.google.apis google-api-services-run - v2-rev20251205-2.0.0 - Cloud Run Admin API v2-rev20251205-2.0.0 + v2-rev20260206-2.0.0 + Cloud Run Admin API v2-rev20260206-2.0.0 jar 2011 diff --git a/clients/google-api-services-run/v2/README.md b/clients/google-api-services-run/v2/README.md index 38ce0837cf0..0617fd9d302 100644 --- a/clients/google-api-services-run/v2/README.md +++ b/clients/google-api-services-run/v2/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-run - v2-rev20251205-2.0.0 + v2-rev20260206-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-run:v2-rev20251205-2.0.0' + implementation 'com.google.apis:google-api-services-run:v2-rev20260206-2.0.0' } ```