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:
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{@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 * 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{@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- * {@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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.ListThe 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{@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{@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.ListThe 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{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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} *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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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 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 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
+ * 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
+ *
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{@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{@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{@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{@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{@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{@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} *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.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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