All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.run.v1.CloudRun Maven / Gradle / Ivy

There is a newer version: v2-rev20241213-2.0.0
Show newest version
/*
 * 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;

/**
 * Service definition for CloudRun (v1).
 *
 * 

* Deploy and manage user provided container images that scale automatically based on incoming requests. The Cloud Run Admin API v1 follows the Knative Serving API specification, while v2 is aligned with Google Cloud AIP-based API standards, as described in https://google.aip.dev/. *

* *

* For more information about this service, see the * API Documentation *

* *

* This service uses {@link CloudRunRequestInitializer} to initialize global parameters via its * {@link Builder}. *

* * @since 1.3 * @author Google, Inc. */ @SuppressWarnings("javadoc") public class CloudRun extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { // Note: Leave this static initializer at the top of the file. static { com.google.api.client.util.Preconditions.checkState( (com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 32 || (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION == 31 && com.google.api.client.googleapis.GoogleUtils.BUGFIX_VERSION >= 1))) || com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION >= 2, "You are currently running with version %s of google-api-client. " + "You need at least version 1.31.1 of google-api-client to run version " + "2.0.0 of the Cloud Run Admin API library.", com.google.api.client.googleapis.GoogleUtils.VERSION); } /** * The default encoded root URL of the service. This is determined when the library is generated * and normally should not be changed. * * @since 1.7 */ public static final String DEFAULT_ROOT_URL = "https://run.googleapis.com/"; /** * The default encoded mTLS root URL of the service. This is determined when the library is generated * and normally should not be changed. * * @since 1.31 */ public static final String DEFAULT_MTLS_ROOT_URL = "https://run.mtls.googleapis.com/"; /** * The default encoded service path of the service. This is determined when the library is * generated and normally should not be changed. * * @since 1.7 */ public static final String DEFAULT_SERVICE_PATH = ""; /** * The default encoded batch path of the service. This is determined when the library is * generated and normally should not be changed. * * @since 1.23 */ public static final String DEFAULT_BATCH_PATH = "batch"; /** * The default encoded base URL of the service. This is determined when the library is generated * and normally should not be changed. */ public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; /** * Constructor. * *

* Use {@link Builder} if you need to specify any of the optional parameters. *

* * @param transport HTTP transport, which should normally be: *
    *
  • Google App Engine: * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} *
  • *
* @param jsonFactory JSON factory, which may be: *
    *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • *
  • Android Honeycomb or higher: * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • *
* @param httpRequestInitializer HTTP request initializer or {@code null} for none * @since 1.7 */ public CloudRun(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { this(new Builder(transport, jsonFactory, httpRequestInitializer)); } /** * @param builder builder */ CloudRun(Builder builder) { super(builder); } @Override protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest httpClientRequest) throws java.io.IOException { super.initialize(httpClientRequest); } /** * An accessor for creating requests from the Namespaces collection. * *

The typical use is:

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

The typical use is:

*
     *   {@code CloudRun run = new CloudRun(...);}
     *   {@code CloudRun.Authorizeddomains.List request = run.authorizeddomains().list(parameters ...)}
     * 
* * @return the resource collection */ public Authorizeddomains authorizeddomains() { return new Authorizeddomains(); } /** * The "authorizeddomains" collection of methods. */ public class Authorizeddomains { /** * List authorized domains. * * Create a request for the method "authorizeddomains.list". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param parent Name of the parent Project resource. Example: `projects/myproject`. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { List result = new List(parent); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "apis/domains.cloudrun.com/v1/{+parent}/authorizeddomains"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** * List authorized domains. * * Create a request for the method "authorizeddomains.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param parent Name of the parent Project resource. Example: `projects/myproject`. * @since 1.13 */ protected List(java.lang.String parent) { super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListAuthorizedDomainsResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + "^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 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 " + "^namespaces/[^/]+$"); } this.parent = parent; return this; } /** Maximum results to return per page. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** Maximum results to return per page. */ public java.lang.Integer getPageSize() { return pageSize; } /** Maximum results to return per page. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** Continuation token for fetching the next page of results. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** Continuation token for fetching the next page of results. */ public java.lang.String getPageToken() { return pageToken; } /** Continuation token for fetching the next page of results. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Configurations collection. * *

The typical use is:

*
     *   {@code CloudRun run = new CloudRun(...);}
     *   {@code CloudRun.Configurations.List request = run.configurations().list(parameters ...)}
     * 
* * @return the resource collection */ public Configurations configurations() { return new Configurations(); } /** * The "configurations" collection of methods. */ public class Configurations { /** * Get information about a configuration. * * Create a request for the method "configurations.get". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name The name of the configuration to retrieve. For Cloud Run, replace {namespace_id} with the project ID * or number. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { Get result = new Get(name); initialize(result); return result; } public class Get extends CloudRunRequest { private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/configurations/[^/]+$"); /** * Get information about a configuration. * * Create a request for the method "configurations.get". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* * @param name The name of the configuration to retrieve. For Cloud Run, replace {namespace_id} with the project ID * or number. * @since 1.13 */ protected Get(java.lang.String name) { super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.Configuration.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^namespaces/[^/]+/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); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * The name of the 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; /** 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 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 " + "^namespaces/[^/]+/configurations/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * List configurations. Results are sorted by creation time, descending. * * 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 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 { List result = new List(parent); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "apis/serving.knative.dev/v1/{+parent}/configurations"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** * List configurations. Results are sorted by creation time, descending. * * Create a request for the method "configurations.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param parent 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.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(), "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 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 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 " + "^namespaces/[^/]+$"); } 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; } /** 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; } /** 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. */ @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; } /** * 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. */ 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; return this; } /** Not supported by Cloud Run. */ @com.google.api.client.util.Key private java.lang.String resourceVersion; /** Not supported by Cloud Run. */ public java.lang.String getResourceVersion() { return resourceVersion; } /** Not supported by Cloud Run. */ public List setResourceVersion(java.lang.String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** Not supported by Cloud Run. */ @com.google.api.client.util.Key private java.lang.Boolean watch; /** Not supported by Cloud Run. */ public java.lang.Boolean getWatch() { return watch; } /** 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 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. * * 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 Create#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} * @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); initialize(result); return result; } public class Create extends CloudRunRequest { private static final String REST_PATH = "apis/domains.cloudrun.com/v1/{+parent}/domainmappings"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** * Create a new domain mapping. * * Create a request for the method "domainmappings.create". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation.

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

* * @param parent Required. The namespace in which the 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 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(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 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; } /** * 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 " + "^namespaces/[^/]+$"); } this.parent = parent; 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 Create setDryRun(java.lang.String dryRun) { this.dryRun = dryRun; return this; } @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** * Delete a domain mapping. * * 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 Delete#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 * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { Delete result = new Delete(name); initialize(result); return result; } public class Delete extends CloudRunRequest { private static final String REST_PATH = "apis/domains.cloudrun.com/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/domainmappings/[^/]+$"); /** * Delete a domain mapping. * * Create a request for the method "domainmappings.delete". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link 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 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 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/[^/]+/domainmappings/[^/]+$"); } } @Override public Delete set$Xgafv(java.lang.String $Xgafv) { return (Delete) super.set$Xgafv($Xgafv); } @Override public Delete setAccessToken(java.lang.String accessToken) { return (Delete) super.setAccessToken(accessToken); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setCallback(java.lang.String callback) { return (Delete) super.setCallback(callback); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUploadType(java.lang.String uploadType) { return (Delete) super.setUploadType(uploadType); } @Override public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } /** * Required. The name of the 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 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 */ public java.lang.String getName() { return 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 */ 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/[^/]+/domainmappings/[^/]+$"); } this.name = name; return this; } /** Cloud Run currently ignores this parameter. */ @com.google.api.client.util.Key private java.lang.String apiVersion; /** Cloud Run currently ignores this parameter. */ public java.lang.String getApiVersion() { return apiVersion; } /** 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. */ @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; } /** * 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.String propagationPolicy; /** 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.String getPropagationPolicy() { return propagationPolicy; } /** * 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 Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Get information about a domain mapping. * * 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 Get#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 * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { Get result = new Get(name); initialize(result); return result; } public class Get extends CloudRunRequest { private static final String REST_PATH = "apis/domains.cloudrun.com/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/domainmappings/[^/]+$"); /** * Get information about a domain mapping. * * Create a request for the method "domainmappings.get". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* * @param name Required. The name of the 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 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(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^namespaces/[^/]+/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 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 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 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 */ public java.lang.String getName() { return 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 */ 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/[^/]+/domainmappings/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * List all domain mappings. * * 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 List#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 * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { List result = new List(parent); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "apis/domains.cloudrun.com/v1/{+parent}/domainmappings"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** * List all domain mappings. * * Create a request for the method "domainmappings.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param parent Required. The namespace from which the 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 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(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 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 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 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 */ public java.lang.String getParent() { return 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 */ 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; } /** 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 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. */ 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. */ 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; } /** * 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; } /** * 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 List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Executions collection. * *

The typical use is:

*
     *   {@code CloudRun run = new CloudRun(...);}
     *   {@code CloudRun.Executions.List request = run.executions().list(parameters ...)}
     * 
* * @return the resource collection */ public Executions executions() { return new Executions(); } /** * The "executions" collection of methods. */ public class Executions { /** * Cancel an execution. * * Create a request for the method "executions.cancel". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. * * @param name Required. The name of the execution to cancel. 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.CancelExecutionRequest} * @return the request */ public Cancel cancel(java.lang.String name, com.google.api.services.run.v1.model.CancelExecutionRequest content) throws java.io.IOException { Cancel result = new Cancel(name, content); initialize(result); return result; } public class Cancel extends CloudRunRequest { private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}:cancel"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/executions/[^/]+$"); /** * Cancel an execution. * * Create a request for the method "executions.cancel". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

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

* * @param name Required. The name of the execution to cancel. 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.CancelExecutionRequest} * @since 1.13 */ protected Cancel(java.lang.String name, com.google.api.services.run.v1.model.CancelExecutionRequest 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(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^namespaces/[^/]+/executions/[^/]+$"); } } @Override public Cancel set$Xgafv(java.lang.String $Xgafv) { return (Cancel) super.set$Xgafv($Xgafv); } @Override public Cancel setAccessToken(java.lang.String accessToken) { return (Cancel) super.setAccessToken(accessToken); } @Override public Cancel setAlt(java.lang.String alt) { return (Cancel) super.setAlt(alt); } @Override public Cancel setCallback(java.lang.String callback) { return (Cancel) super.setCallback(callback); } @Override public Cancel setFields(java.lang.String fields) { return (Cancel) super.setFields(fields); } @Override public Cancel setKey(java.lang.String key) { return (Cancel) super.setKey(key); } @Override public Cancel setOauthToken(java.lang.String oauthToken) { return (Cancel) super.setOauthToken(oauthToken); } @Override public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { return (Cancel) super.setPrettyPrint(prettyPrint); } @Override public Cancel setQuotaUser(java.lang.String quotaUser) { return (Cancel) super.setQuotaUser(quotaUser); } @Override public Cancel setUploadType(java.lang.String uploadType) { return (Cancel) super.setUploadType(uploadType); } @Override public Cancel setUploadProtocol(java.lang.String uploadProtocol) { return (Cancel) super.setUploadProtocol(uploadProtocol); } /** * Required. The name of the execution to cancel. 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 execution to cancel. 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 execution to cancel. Replace {namespace} with the project ID or * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ public Cancel setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^namespaces/[^/]+/executions/[^/]+$"); } this.name = name; return this; } @Override public Cancel set(String parameterName, Object value) { return (Cancel) super.set(parameterName, value); } } /** * Delete an execution. * * Create a request for the method "executions.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 execution to delete. Replace {namespace} with the project ID or number. It * takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { Delete result = new Delete(name); initialize(result); return result; } public class Delete extends CloudRunRequest { private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/executions/[^/]+$"); /** * Delete an execution. * * Create a request for the method "executions.delete". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

* * @param name Required. The name of the execution 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) { 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/[^/]+/executions/[^/]+$"); } } @Override public Delete set$Xgafv(java.lang.String $Xgafv) { return (Delete) super.set$Xgafv($Xgafv); } @Override public Delete setAccessToken(java.lang.String accessToken) { return (Delete) super.setAccessToken(accessToken); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setCallback(java.lang.String callback) { return (Delete) super.setCallback(callback); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUploadType(java.lang.String uploadType) { return (Delete) super.setUploadType(uploadType); } @Override public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } /** * Required. The name of the execution to delete. Replace {namespace} with the project ID or * number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The name of the execution 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; } /** * Required. The name of the execution 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/[^/]+/executions/[^/]+$"); } this.name = name; return this; } /** Optional. Cloud Run currently ignores this parameter. */ @com.google.api.client.util.Key private java.lang.String apiVersion; /** Optional. Cloud Run currently ignores this parameter. */ public java.lang.String getApiVersion() { return apiVersion; } /** Optional. Cloud Run currently ignores this parameter. */ public Delete setApiVersion(java.lang.String apiVersion) { this.apiVersion = apiVersion; return this; } /** Optional. Cloud Run currently ignores this parameter. */ @com.google.api.client.util.Key private java.lang.String kind; /** Optional. Cloud Run currently ignores this parameter. */ public java.lang.String getKind() { return kind; } /** Optional. Cloud Run currently ignores this parameter. */ public Delete setKind(java.lang.String kind) { this.kind = kind; return this; } /** * Optional. Specifies the propagation policy of delete. Cloud Run currently ignores this * setting. */ @com.google.api.client.util.Key private java.lang.String propagationPolicy; /** Optional. Specifies the propagation policy of delete. Cloud Run currently ignores this setting. */ public java.lang.String getPropagationPolicy() { return propagationPolicy; } /** * Optional. Specifies the propagation policy of delete. Cloud Run currently ignores this * setting. */ public Delete setPropagationPolicy(java.lang.String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Get information about an execution. * * Create a request for the method "executions.get". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name Required. The name of the execution 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 Get get(java.lang.String name) throws java.io.IOException { Get result = new Get(name); initialize(result); return result; } public class Get extends CloudRunRequest { private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/executions/[^/]+$"); /** * Get information about an execution. * * Create a request for the method "executions.get". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* * @param name Required. The name of the execution 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 Get(java.lang.String name) { super(CloudRun.this, "GET", REST_PATH, null, 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(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^namespaces/[^/]+/executions/[^/]+$"); } } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * Required. The name of the execution 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 name of the execution 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 name of the execution 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/[^/]+/executions/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * List executions. Results are sorted by creation time, descending. * * Create a request for the method "executions.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 executions 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 { List result = new List(parent); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "apis/run.googleapis.com/v1/{+parent}/executions"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** * List executions. Results are sorted by creation time, descending. * * Create a request for the method "executions.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param parent Required. The namespace from which the executions 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.ListExecutionsResponse.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 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 namespace from which the executions 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 executions 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 executions 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()) { 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; } /** Optional. Optional encoded string to continue paging. */ @com.google.api.client.util.Key("continue") private java.lang.String continue__; /** Optional. Optional encoded string to continue paging. */ public java.lang.String getContinue() { return continue__; } /** Optional. Optional encoded string to continue paging. */ public List setContinue(java.lang.String continue__) { this.continue__ = continue__; return this; } /** Optional. Not supported by Cloud Run. */ @com.google.api.client.util.Key private java.lang.String fieldSelector; /** 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. */ @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. */ public java.lang.String getLabelSelector() { return labelSelector; } /** * 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; 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. */ 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; 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 Jobs collection. * *

The typical use is:

*
     *   {@code CloudRun run = new CloudRun(...);}
     *   {@code CloudRun.Jobs.List request = run.jobs().list(parameters ...)}
     * 
* * @return the resource collection */ public Jobs jobs() { return new Jobs(); } /** * The "jobs" collection of methods. */ public class Jobs { /** * Create a job. * * 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 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} * @return the request */ 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 Create extends CloudRunRequest { private static final String REST_PATH = "apis/run.googleapis.com/v1/{+parent}/jobs"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** * Create a job. * * Create a request for the method "jobs.create". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation.

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

* * @param parent Required. The namespace in which the job should be created. Replace {namespace} with the project ID * or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * @param content the {@link com.google.api.services.run.v1.model.Job} * @since 1.13 */ protected Create(java.lang.String parent, com.google.api.services.run.v1.model.Job content) { super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.Job.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + "^namespaces/[^/]+$"); } } @Override public Create set$Xgafv(java.lang.String $Xgafv) { return (Create) super.set$Xgafv($Xgafv); } @Override public Create setAccessToken(java.lang.String accessToken) { return (Create) super.setAccessToken(accessToken); } @Override public Create setAlt(java.lang.String alt) { return (Create) super.setAlt(alt); } @Override public Create setCallback(java.lang.String callback) { return (Create) super.setCallback(callback); } @Override public Create setFields(java.lang.String fields) { return (Create) super.setFields(fields); } @Override public Create setKey(java.lang.String key) { return (Create) super.setKey(key); } @Override public Create setOauthToken(java.lang.String oauthToken) { return (Create) super.setOauthToken(oauthToken); } @Override public Create setPrettyPrint(java.lang.Boolean prettyPrint) { return (Create) super.setPrettyPrint(prettyPrint); } @Override public Create setQuotaUser(java.lang.String quotaUser) { return (Create) super.setQuotaUser(quotaUser); } @Override public Create setUploadType(java.lang.String uploadType) { return (Create) super.setUploadType(uploadType); } @Override public Create setUploadProtocol(java.lang.String uploadProtocol) { return (Create) super.setUploadProtocol(uploadProtocol); } /** * Required. The namespace in which the job should be created. Replace {namespace} with the * project ID or number. It takes the form namespaces/{namespace}. For example: * namespaces/PROJECT_ID */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. The namespace in which the job should be created. Replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID */ public java.lang.String getParent() { return parent; } /** * Required. The namespace in which the job should be created. Replace {namespace} with the * project ID or number. It takes the form namespaces/{namespace}. For example: * namespaces/PROJECT_ID */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + "^namespaces/[^/]+$"); } this.parent = parent; return this; } @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** * Delete a job. * * Create a request for the method "jobs.delete". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param name Required. The name of the job to delete. Replace {namespace} with the project ID or number. It takes * the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { Delete result = new Delete(name); initialize(result); return result; } public class Delete extends CloudRunRequest { private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/jobs/[^/]+$"); /** * Delete a job. * * Create a request for the method "jobs.delete". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

* * @param name Required. The name of the job to delete. Replace {namespace} with the project ID or number. It takes * the form namespaces/{namespace}. For example: namespaces/PROJECT_ID * @since 1.13 */ protected Delete(java.lang.String name) { 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/[^/]+/jobs/[^/]+$"); } } @Override public Delete set$Xgafv(java.lang.String $Xgafv) { return (Delete) super.set$Xgafv($Xgafv); } @Override public Delete setAccessToken(java.lang.String accessToken) { return (Delete) super.setAccessToken(accessToken); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setCallback(java.lang.String callback) { return (Delete) super.setCallback(callback); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUploadType(java.lang.String uploadType) { return (Delete) super.setUploadType(uploadType); } @Override public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } /** * Required. The name of the 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; /** 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; } /** * 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/[^/]+/jobs/[^/]+$"); } this.name = name; return this; } /** Optional. Cloud Run currently ignores this parameter. */ @com.google.api.client.util.Key private java.lang.String apiVersion; /** Optional. Cloud Run currently ignores this parameter. */ public java.lang.String getApiVersion() { return apiVersion; } /** Optional. Cloud Run currently ignores this parameter. */ public Delete setApiVersion(java.lang.String apiVersion) { this.apiVersion = apiVersion; return this; } /** Optional. Cloud Run currently ignores this parameter. */ @com.google.api.client.util.Key private java.lang.String kind; /** Optional. Cloud Run currently ignores this parameter. */ public java.lang.String getKind() { return kind; } /** Optional. Cloud Run currently ignores this parameter. */ public Delete setKind(java.lang.String kind) { this.kind = kind; return this; } /** * 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; /** 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; } /** * 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; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Get information about a job. * * 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 Required. The name of the job 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 Get get(java.lang.String name) throws java.io.IOException { Get result = new Get(name); initialize(result); return result; } public class Get extends CloudRunRequest { private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/jobs/[^/]+$"); /** * Get information about a job. * * Create a request for the method "jobs.get". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* * @param name Required. The name of the job 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 Get(java.lang.String name) { 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/[^/]+/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); } @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 name of the job 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 name of the job 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 name of the job 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/[^/]+/jobs/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * List jobs. Results are sorted by creation time, descending. * * 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 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 { List result = new List(parent); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "apis/run.googleapis.com/v1/{+parent}/jobs"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** * List jobs. Results are sorted by creation time, descending. * * Create a request for the method "jobs.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param parent 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.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(), "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 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 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; /** 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; } /** * 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()) { 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; } /** Optional. Optional encoded string to continue paging. */ @com.google.api.client.util.Key("continue") private java.lang.String continue__; /** Optional. Optional encoded string to continue paging. */ public java.lang.String getContinue() { return continue__; } /** Optional. Optional encoded string to continue paging. */ public List setContinue(java.lang.String continue__) { this.continue__ = continue__; return this; } /** Optional. Not supported by Cloud Run. */ @com.google.api.client.util.Key private java.lang.String fieldSelector; /** 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. */ @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. */ public java.lang.String getLabelSelector() { return labelSelector; } /** * 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; 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; } /** 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); } } /** * 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 "jobs.replaceJob". * * 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. * * @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 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 ReplaceJob extends CloudRunRequest { private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/jobs/[^/]+$"); /** * 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 "jobs.replaceJob". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link ReplaceJob#execute()} method to invoke the remote operation.

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

* * @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 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/[^/]+/jobs/[^/]+$"); } } @Override public ReplaceJob set$Xgafv(java.lang.String $Xgafv) { return (ReplaceJob) super.set$Xgafv($Xgafv); } @Override public ReplaceJob setAccessToken(java.lang.String accessToken) { return (ReplaceJob) super.setAccessToken(accessToken); } @Override public ReplaceJob setAlt(java.lang.String alt) { return (ReplaceJob) super.setAlt(alt); } @Override public ReplaceJob setCallback(java.lang.String callback) { return (ReplaceJob) super.setCallback(callback); } @Override public ReplaceJob setFields(java.lang.String fields) { return (ReplaceJob) super.setFields(fields); } @Override public ReplaceJob setKey(java.lang.String key) { return (ReplaceJob) super.setKey(key); } @Override public ReplaceJob setOauthToken(java.lang.String oauthToken) { return (ReplaceJob) super.setOauthToken(oauthToken); } @Override public ReplaceJob setPrettyPrint(java.lang.Boolean prettyPrint) { return (ReplaceJob) super.setPrettyPrint(prettyPrint); } @Override public ReplaceJob setQuotaUser(java.lang.String quotaUser) { return (ReplaceJob) super.setQuotaUser(quotaUser); } @Override public ReplaceJob setUploadType(java.lang.String uploadType) { return (ReplaceJob) super.setUploadType(uploadType); } @Override public ReplaceJob setUploadProtocol(java.lang.String uploadProtocol) { return (ReplaceJob) super.setUploadProtocol(uploadProtocol); } /** * 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; /** 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; } /** * 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 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/[^/]+/jobs/[^/]+$"); } this.name = name; return this; } @Override public ReplaceJob set(String parameterName, Object value) { return (ReplaceJob) super.set(parameterName, value); } } /** * Trigger creation of a new execution of this job. * * 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 Run#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} * @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); initialize(result); return result; } public class Run extends CloudRunRequest { private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}:run"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/jobs/[^/]+$"); /** * Trigger creation of a new execution of this job. * * Create a request for the method "jobs.run". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link 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 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 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(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^namespaces/[^/]+/jobs/[^/]+$"); } } @Override public Run set$Xgafv(java.lang.String $Xgafv) { return (Run) super.set$Xgafv($Xgafv); } @Override public Run setAccessToken(java.lang.String accessToken) { return (Run) super.setAccessToken(accessToken); } @Override public Run setAlt(java.lang.String alt) { return (Run) super.setAlt(alt); } @Override public Run setCallback(java.lang.String callback) { return (Run) super.setCallback(callback); } @Override public Run setFields(java.lang.String fields) { return (Run) super.setFields(fields); } @Override public Run setKey(java.lang.String key) { return (Run) super.setKey(key); } @Override public Run setOauthToken(java.lang.String oauthToken) { return (Run) super.setOauthToken(oauthToken); } @Override public Run setPrettyPrint(java.lang.Boolean prettyPrint) { return (Run) super.setPrettyPrint(prettyPrint); } @Override public Run setQuotaUser(java.lang.String quotaUser) { return (Run) super.setQuotaUser(quotaUser); } @Override public Run setUploadType(java.lang.String uploadType) { return (Run) super.setUploadType(uploadType); } @Override public Run setUploadProtocol(java.lang.String uploadProtocol) { return (Run) 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 */ @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 */ 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 */ public Run 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/[^/]+$"); } this.name = name; return this; } @Override public Run set(String parameterName, Object value) { return (Run) super.set(parameterName, value); } } } /** * 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(); } /** * The "revisions" collection of methods. */ public class Revisions { /** * Delete a revision. * * Create a request for the method "revisions.delete". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param name The name of the revision to delete. For Cloud Run (fully managed), replace {namespace} with the * project ID or number. It takes the form namespaces/{namespace}. For example: * namespaces/PROJECT_ID * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { Delete result = new Delete(name); initialize(result); return result; } public class Delete extends CloudRunRequest { private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/revisions/[^/]+$"); /** * Delete a revision. * * Create a request for the method "revisions.delete". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

* * @param name The name of the revision to delete. For Cloud Run (fully managed), replace {namespace} with the * project ID or number. It takes the form namespaces/{namespace}. For example: * namespaces/PROJECT_ID * @since 1.13 */ 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/[^/]+$"); } } @Override public Delete set$Xgafv(java.lang.String $Xgafv) { return (Delete) super.set$Xgafv($Xgafv); } @Override public Delete setAccessToken(java.lang.String accessToken) { return (Delete) super.setAccessToken(accessToken); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setCallback(java.lang.String callback) { return (Delete) super.setCallback(callback); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUploadType(java.lang.String uploadType) { return (Delete) super.setUploadType(uploadType); } @Override public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } /** * The name of the 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 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 */ 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 */ 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; } /** Cloud Run currently ignores this parameter. */ @com.google.api.client.util.Key private java.lang.String apiVersion; /** Cloud Run currently ignores this parameter. */ public java.lang.String getApiVersion() { return apiVersion; } /** 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. */ @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; } /** * 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.String propagationPolicy; /** Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. */ public java.lang.String getPropagationPolicy() { return propagationPolicy; } /** * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and * deletes in the background. */ public Delete setPropagationPolicy(java.lang.String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Get information about a revision. * * 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 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 * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { Get result = new Get(name); initialize(result); return result; } public class Get extends CloudRunRequest { private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/revisions/[^/]+$"); /** * Get information about a revision. * * Create a request for the method "revisions.get". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* * @param name The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace} with the * project ID or number. It takes the form namespaces/{namespace}. For example: * namespaces/PROJECT_ID * @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); 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/[^/]+$"); } } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * The name of the 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 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 */ 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 */ 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 Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * List revisions. Results are sorted by creation time, descending. * * 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 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 * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { List result = new List(parent); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "apis/serving.knative.dev/v1/{+parent}/revisions"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** * List revisions. Results are sorted by creation time, descending. * * Create a request for the method "revisions.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param parent The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For * example: namespaces/PROJECT_ID * @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); 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 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 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 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 */ 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 */ 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; } /** 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 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. */ 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. */ 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; } /** * 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; } /** * 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 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. * * 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 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 { Get result = new Get(name); initialize(result); return result; } public class Get extends CloudRunRequest { private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/routes/[^/]+$"); /** * Get information about a route. * * Create a request for the method "routes.get". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* * @param name 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.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/[^/]+/routes/[^/]+$"); } } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * The name of the 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; /** 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; } /** * 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/[^/]+/routes/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * List routes. Results are sorted by creation time, descending. * * 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 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 { List result = new List(parent); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "apis/serving.knative.dev/v1/{+parent}/routes"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** * List routes. Results are sorted by creation time, descending. * * Create a request for the method "routes.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param parent 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.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(), "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 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 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; /** 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; } /** * 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()) { 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; } /** 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 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. */ 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. */ 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; } /** * 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; } /** * 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 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 { /** * 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.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 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 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 Create extends CloudRunRequest { private static final String REST_PATH = "apis/serving.knative.dev/v1/{+parent}/services"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** * 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.create". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation.

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

* * @param parent Required. The 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 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(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 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; } /** * 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; } /** * 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 Create setDryRun(java.lang.String dryRun) { this.dryRun = dryRun; return this; } @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** * 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 "services.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 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 Delete delete(java.lang.String name) throws java.io.IOException { Delete result = new Delete(name); initialize(result); return result; } public class Delete extends CloudRunRequest { private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/services/[^/]+$"); /** * 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 "services.delete". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

* * @param name Required. The 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 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/[^/]+/services/[^/]+$"); } } @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 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 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 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 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/[^/]+/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 Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Gets information about a service. * * 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 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}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { Get result = new Get(name); initialize(result); return result; } public class Get extends CloudRunRequest { private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/services/[^/]+$"); /** * Gets information about a service. * * Create a request for the method "services.get". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* * @param name Required. The fully qualified name of the service to retrieve. It can be any of the following forms: * * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is * regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` * @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); 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/[^/]+$"); } } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * Required. The fully qualified name of the service to retrieve. It can be any of the * following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when * the `endpoint` is regional) * * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The fully qualified name of the service to retrieve. It can be any of the following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` */ public java.lang.String getName() { return name; } /** * Required. The fully qualified name of the service to retrieve. It can be any of the * following forms: * `namespaces/{project_id_or_number}/services/{service_name}` (only when * the `endpoint` is regional) * * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^namespaces/[^/]+/services/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Lists services for the given project and region. Results are sorted by creation time, descending. * * Create a request for the method "services.list". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param parent Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the * following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * * `namespaces/{project_id_or_number}/services` * * `projects/{project_id_or_number}/locations/{region}` * * `projects/{project_id_or_number}/regions/{region}` * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { List result = new List(parent); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "apis/serving.knative.dev/v1/{+parent}/services"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** * Lists services for the given project and region. Results are sorted by creation time, * descending. * * Create a request for the method "services.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param parent Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the * following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * * `namespaces/{project_id_or_number}/services` * * `projects/{project_id_or_number}/locations/{region}` * * `projects/{project_id_or_number}/regions/{region}` * @since 1.13 */ protected List(java.lang.String parent) { super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListServicesResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + "^namespaces/[^/]+$"); } } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** * Required. The parent 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 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 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()) { 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; } /** Not supported, and ignored by Cloud Run. */ @com.google.api.client.util.Key private java.lang.String fieldSelector; /** Not supported, and ignored by Cloud Run. */ public java.lang.String getFieldSelector() { return fieldSelector; } /** Not supported, and ignored by Cloud Run. */ public List setFieldSelector(java.lang.String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** Not supported, and ignored by Cloud Run. */ @com.google.api.client.util.Key private java.lang.Boolean includeUninitialized; /** Not supported, and ignored by Cloud Run. */ public java.lang.Boolean getIncludeUninitialized() { return includeUninitialized; } /** Not supported, and ignored 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. */ @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; } /** * 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; } /** 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; } /** Not supported, and ignored by Cloud Run. */ @com.google.api.client.util.Key private java.lang.String resourceVersion; /** Not supported, and ignored by Cloud Run. */ public java.lang.String getResourceVersion() { return resourceVersion; } /** Not supported, and ignored by Cloud Run. */ public List setResourceVersion(java.lang.String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** Not supported, and ignored by Cloud Run. */ @com.google.api.client.util.Key private java.lang.Boolean watch; /** Not supported, and ignored by Cloud Run. */ public java.lang.Boolean getWatch() { return watch; } /** Not supported, and ignored 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); } } /** * 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 "services.replaceService". * * 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. * * @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 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 ReplaceService extends CloudRunRequest { private static final String REST_PATH = "apis/serving.knative.dev/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/services/[^/]+$"); /** * 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 "services.replaceService". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link ReplaceService#execute()} method to invoke the remote operation. *

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

* * @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 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(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^namespaces/[^/]+/services/[^/]+$"); } } @Override public ReplaceService set$Xgafv(java.lang.String $Xgafv) { return (ReplaceService) super.set$Xgafv($Xgafv); } @Override public ReplaceService setAccessToken(java.lang.String accessToken) { return (ReplaceService) super.setAccessToken(accessToken); } @Override public ReplaceService setAlt(java.lang.String alt) { return (ReplaceService) super.setAlt(alt); } @Override public ReplaceService setCallback(java.lang.String callback) { return (ReplaceService) super.setCallback(callback); } @Override public ReplaceService setFields(java.lang.String fields) { return (ReplaceService) super.setFields(fields); } @Override public ReplaceService setKey(java.lang.String key) { return (ReplaceService) super.setKey(key); } @Override public ReplaceService setOauthToken(java.lang.String oauthToken) { return (ReplaceService) super.setOauthToken(oauthToken); } @Override public ReplaceService setPrettyPrint(java.lang.Boolean prettyPrint) { return (ReplaceService) super.setPrettyPrint(prettyPrint); } @Override public ReplaceService setQuotaUser(java.lang.String quotaUser) { return (ReplaceService) super.setQuotaUser(quotaUser); } @Override public ReplaceService setUploadType(java.lang.String uploadType) { return (ReplaceService) super.setUploadType(uploadType); } @Override public ReplaceService setUploadProtocol(java.lang.String uploadProtocol) { return (ReplaceService) 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}` */ @com.google.api.client.util.Key private java.lang.String 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}` */ public java.lang.String getName() { return 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}` */ public ReplaceService 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; } /** * 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 ReplaceService setDryRun(java.lang.String dryRun) { this.dryRun = dryRun; return this; } @Override 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 { /** * Get information about a task. * * 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 Get#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 * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { Get result = new Get(name); initialize(result); return result; } public class Get extends CloudRunRequest { private static final String REST_PATH = "apis/run.googleapis.com/v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+/tasks/[^/]+$"); /** * Get information about a task. * * Create a request for the method "tasks.get". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* * @param name Required. The name of the 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 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/[^/]+/tasks/[^/]+$"); } } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * Required. The 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 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 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/[^/]+/tasks/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * List tasks. * * 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 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 { List result = new List(parent); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "apis/run.googleapis.com/v1/{+parent}/tasks"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^namespaces/[^/]+$"); /** * List tasks. * * Create a request for the method "tasks.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param parent Required. The 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.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(), "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 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 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 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 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()) { 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; } /** Optional. Optional encoded string to continue paging. */ @com.google.api.client.util.Key("continue") private java.lang.String continue__; /** Optional. Optional encoded string to continue paging. */ public java.lang.String getContinue() { return continue__; } /** Optional. Optional encoded string to continue paging. */ public List setContinue(java.lang.String continue__) { this.continue__ = continue__; return this; } /** Optional. Not supported by Cloud Run. */ @com.google.api.client.util.Key private java.lang.String fieldSelector; /** 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; } /** * 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; } /** 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; } /** 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 Projects collection. * *

The typical use is:

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

The typical use is:

*
     *   {@code CloudRun run = new CloudRun(...);}
     *   {@code CloudRun.Authorizeddomains.List request = run.authorizeddomains().list(parameters ...)}
     * 
* * @return the resource collection */ public Authorizeddomains authorizeddomains() { return new Authorizeddomains(); } /** * The "authorizeddomains" collection of methods. */ public class Authorizeddomains { /** * List authorized domains. * * Create a request for the method "authorizeddomains.list". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param parent Name of the parent Project resource. Example: `projects/myproject`. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { List result = new List(parent); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "v1/{+parent}/authorizeddomains"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+$"); /** * List authorized domains. * * Create a request for the method "authorizeddomains.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param parent Name of the parent Project resource. Example: `projects/myproject`. * @since 1.13 */ protected List(java.lang.String parent) { super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListAuthorizedDomainsResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + "^projects/[^/]+$"); } } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** Name of the parent Project resource. Example: `projects/myproject`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Name of the parent Project resource. Example: `projects/myproject`. */ public java.lang.String getParent() { return parent; } /** Name of the parent Project resource. Example: `projects/myproject`. */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + "^projects/[^/]+$"); } this.parent = parent; return this; } /** Maximum results to return per page. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** Maximum results to return per page. */ public java.lang.Integer getPageSize() { return pageSize; } /** Maximum results to return per page. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** Continuation token for fetching the next page of results. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** Continuation token for fetching the next page of results. */ public java.lang.String getPageToken() { return pageToken; } /** Continuation token for fetching the next page of results. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Locations collection. * *

The typical use is:

*
     *   {@code CloudRun run = new CloudRun(...);}
     *   {@code CloudRun.Locations.List request = run.locations().list(parameters ...)}
     * 
* * @return the resource collection */ public Locations locations() { return new Locations(); } /** * The "locations" collection of methods. */ public class Locations { /** * Lists information about the supported locations for this service. * * Create a request for the method "locations.list". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param name The resource that owns the locations collection, if applicable. * @return the request */ public List list(java.lang.String name) throws java.io.IOException { List result = new List(name); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "v1/{+name}/locations"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+$"); /** * Lists information about the supported locations for this service. * * Create a request for the method "locations.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param name The resource that owns the locations collection, if applicable. * @since 1.13 */ protected List(java.lang.String name) { super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListLocationsResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+$"); } } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** The resource that owns the locations collection, if applicable. */ @com.google.api.client.util.Key private java.lang.String name; /** The resource that owns the locations collection, if applicable. */ public java.lang.String getName() { return name; } /** The resource that owns the locations collection, if applicable. */ public List setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+$"); } this.name = name; return this; } /** * A filter to narrow down results to a preferred subset. The filtering language accepts * strings like `"displayName=tokyo"`, and is documented in more detail in * [AIP-160](https://google.aip.dev/160). */ @com.google.api.client.util.Key private java.lang.String filter; /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). */ public java.lang.String getFilter() { return filter; } /** * A filter to narrow down results to a preferred subset. The filtering language accepts * strings like `"displayName=tokyo"`, and is documented in more detail in * [AIP-160](https://google.aip.dev/160). */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } /** The maximum number of results to return. If not set, the service selects a default. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** The maximum number of results to return. If not set, the service selects a default. */ public java.lang.Integer getPageSize() { return pageSize; } /** The maximum number of results to return. If not set, the service selects a default. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** * A page token received from the `next_page_token` field in the response. Send that page * token to receive the subsequent page. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */ public java.lang.String getPageToken() { return pageToken; } /** * A page token received from the `next_page_token` field in the response. Send that page * token to receive the subsequent page. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * An accessor for creating requests from the Authorizeddomains collection. * *

The typical use is:

*
       *   {@code CloudRun run = new CloudRun(...);}
       *   {@code CloudRun.Authorizeddomains.List request = run.authorizeddomains().list(parameters ...)}
       * 
* * @return the resource collection */ public Authorizeddomains authorizeddomains() { return new Authorizeddomains(); } /** * The "authorizeddomains" collection of methods. */ public class Authorizeddomains { /** * List authorized domains. * * Create a request for the method "authorizeddomains.list". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param parent Name of the parent Project resource. Example: `projects/myproject`. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { List result = new List(parent); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "v1/{+parent}/authorizeddomains"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** * List authorized domains. * * Create a request for the method "authorizeddomains.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param parent Name of the parent Project resource. Example: `projects/myproject`. * @since 1.13 */ protected List(java.lang.String parent) { super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListAuthorizedDomainsResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public List set$Xgafv(java.lang.String $Xgafv) { return (List) super.set$Xgafv($Xgafv); } @Override public List setAccessToken(java.lang.String accessToken) { return (List) super.setAccessToken(accessToken); } @Override public List setAlt(java.lang.String alt) { return (List) super.setAlt(alt); } @Override public List setCallback(java.lang.String callback) { return (List) super.setCallback(callback); } @Override public List setFields(java.lang.String fields) { return (List) super.setFields(fields); } @Override public List setKey(java.lang.String key) { return (List) super.setKey(key); } @Override public List setOauthToken(java.lang.String oauthToken) { return (List) super.setOauthToken(oauthToken); } @Override public List setPrettyPrint(java.lang.Boolean prettyPrint) { return (List) super.setPrettyPrint(prettyPrint); } @Override public List setQuotaUser(java.lang.String quotaUser) { return (List) super.setQuotaUser(quotaUser); } @Override public List setUploadType(java.lang.String uploadType) { return (List) super.setUploadType(uploadType); } @Override public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } /** Name of the parent Project resource. Example: `projects/myproject`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Name of the parent Project resource. Example: `projects/myproject`. */ public java.lang.String getParent() { return parent; } /** Name of the parent Project resource. Example: `projects/myproject`. */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } this.parent = parent; return this; } /** Maximum results to return per page. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** Maximum results to return per page. */ public java.lang.Integer getPageSize() { return pageSize; } /** Maximum results to return per page. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** Continuation token for fetching the next page of results. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** Continuation token for fetching the next page of results. */ public java.lang.String getPageToken() { return pageToken; } /** Continuation token for fetching the next page of results. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Configurations collection. * *

The typical use is:

*
       *   {@code CloudRun run = new CloudRun(...);}
       *   {@code CloudRun.Configurations.List request = run.configurations().list(parameters ...)}
       * 
* * @return the resource collection */ public Configurations configurations() { return new Configurations(); } /** * The "configurations" collection of methods. */ public class Configurations { /** * Get information about a configuration. * * Create a request for the method "configurations.get". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name The name of the configuration to retrieve. For Cloud Run, replace {namespace_id} with the project ID * or number. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { Get result = new Get(name); initialize(result); return result; } public class Get extends CloudRunRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/configurations/[^/]+$"); /** * Get information about a configuration. * * Create a request for the method "configurations.get". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* * @param name The name of the configuration to retrieve. For Cloud Run, replace {namespace_id} with the project ID * or number. * @since 1.13 */ protected Get(java.lang.String name) { super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.Configuration.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/configurations/[^/]+$"); } } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * The name of the 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; /** 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 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 configurations. Results are sorted by creation time, descending. * * 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 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 { List result = new List(parent); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "v1/{+parent}/configurations"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** * List configurations. Results are sorted by creation time, descending. * * Create a request for the method "configurations.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param parent 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.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(), "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); } /** * 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; } /** 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; } /** 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. */ @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; } /** * 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. */ 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; return this; } /** Not supported by Cloud Run. */ @com.google.api.client.util.Key private java.lang.String resourceVersion; /** Not supported by Cloud Run. */ public java.lang.String getResourceVersion() { return resourceVersion; } /** Not supported by Cloud Run. */ public List setResourceVersion(java.lang.String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** Not supported by Cloud Run. */ @com.google.api.client.util.Key private java.lang.Boolean watch; /** Not supported by Cloud Run. */ public java.lang.Boolean getWatch() { return watch; } /** 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 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. * * 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 Create#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} * @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); initialize(result); return result; } public class Create extends CloudRunRequest { private static final String REST_PATH = "v1/{+parent}/domainmappings"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** * Create a new domain mapping. * * Create a request for the method "domainmappings.create". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation.

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

* * @param parent Required. The namespace in which the 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 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(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } } @Override public Create set$Xgafv(java.lang.String $Xgafv) { return (Create) super.set$Xgafv($Xgafv); } @Override public Create setAccessToken(java.lang.String accessToken) { return (Create) super.setAccessToken(accessToken); } @Override public Create setAlt(java.lang.String alt) { return (Create) super.setAlt(alt); } @Override public Create setCallback(java.lang.String callback) { return (Create) super.setCallback(callback); } @Override public Create setFields(java.lang.String fields) { return (Create) super.setFields(fields); } @Override public Create setKey(java.lang.String key) { return (Create) super.setKey(key); } @Override public Create setOauthToken(java.lang.String oauthToken) { return (Create) super.setOauthToken(oauthToken); } @Override public Create setPrettyPrint(java.lang.Boolean prettyPrint) { return (Create) super.setPrettyPrint(prettyPrint); } @Override public Create setQuotaUser(java.lang.String quotaUser) { return (Create) super.setQuotaUser(quotaUser); } @Override public Create setUploadType(java.lang.String uploadType) { return (Create) super.setUploadType(uploadType); } @Override public Create setUploadProtocol(java.lang.String uploadProtocol) { return (Create) super.setUploadProtocol(uploadProtocol); } /** * Required. The 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; } /** * 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; } /** * 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 Create setDryRun(java.lang.String dryRun) { this.dryRun = dryRun; return this; } @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** * Delete a domain mapping. * * 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 Delete#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 * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { Delete result = new Delete(name); initialize(result); return result; } public class Delete extends CloudRunRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$"); /** * Delete a domain mapping. * * Create a request for the method "domainmappings.delete". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link 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 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 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 " + "^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$"); } } @Override public Delete set$Xgafv(java.lang.String $Xgafv) { return (Delete) super.set$Xgafv($Xgafv); } @Override public Delete setAccessToken(java.lang.String accessToken) { return (Delete) super.setAccessToken(accessToken); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setCallback(java.lang.String callback) { return (Delete) super.setCallback(callback); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUploadType(java.lang.String uploadType) { return (Delete) super.setUploadType(uploadType); } @Override public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } /** * Required. The name of the 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 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 */ public java.lang.String getName() { return 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 */ 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/[^/]+/domainmappings/[^/]+$"); } this.name = name; return this; } /** Cloud Run currently ignores this parameter. */ @com.google.api.client.util.Key private java.lang.String apiVersion; /** Cloud Run currently ignores this parameter. */ public java.lang.String getApiVersion() { return apiVersion; } /** 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. */ @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; } /** * 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.String propagationPolicy; /** 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.String getPropagationPolicy() { return propagationPolicy; } /** * 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 Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Get information about a domain mapping. * * 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 Get#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 * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { Get result = new Get(name); initialize(result); return result; } public class Get extends CloudRunRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$"); /** * Get information about a domain mapping. * * Create a request for the method "domainmappings.get". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* * @param name Required. The name of the 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 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(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 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 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 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 */ public java.lang.String getName() { return 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 */ 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 Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * List all domain mappings. * * 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 List#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 * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { List result = new List(parent); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "v1/{+parent}/domainmappings"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** * List all domain mappings. * * Create a request for the method "domainmappings.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param parent Required. The namespace from which the 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 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(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 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 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 */ public java.lang.String getParent() { return 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 */ 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; } /** * 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; /** 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; } /** * 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; } /** * 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; } /** * 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 List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Jobs collection. * *

The typical use is:

*
       *   {@code CloudRun run = new CloudRun(...);}
       *   {@code CloudRun.Jobs.List request = run.jobs().list(parameters ...)}
       * 
* * @return the resource collection */ public Jobs jobs() { return new Jobs(); } /** * The "jobs" collection of methods. */ public class Jobs { /** * Get the IAM Access Control policy currently in effect for the given job. This result does not * include any inherited policies. * * Create a request for the method "jobs.getIamPolicy". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. * @return the request */ public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { GetIamPolicy result = new GetIamPolicy(resource); initialize(result); return result; } public class GetIamPolicy extends CloudRunRequest { private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/jobs/[^/]+$"); /** * Get the IAM Access Control policy currently in effect for the given job. This result does not * include any inherited policies. * * Create a request for the method "jobs.getIamPolicy". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

* * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. * @since 1.13 */ 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(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/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 GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override public GetIamPolicy setAccessToken(java.lang.String accessToken) { return (GetIamPolicy) super.setAccessToken(accessToken); } @Override public GetIamPolicy setAlt(java.lang.String alt) { return (GetIamPolicy) super.setAlt(alt); } @Override public GetIamPolicy setCallback(java.lang.String callback) { return (GetIamPolicy) super.setCallback(callback); } @Override public GetIamPolicy setFields(java.lang.String fields) { return (GetIamPolicy) super.setFields(fields); } @Override public GetIamPolicy setKey(java.lang.String key) { return (GetIamPolicy) super.setKey(key); } @Override public GetIamPolicy setOauthToken(java.lang.String oauthToken) { return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override public GetIamPolicy setUploadType(java.lang.String uploadType) { return (GetIamPolicy) super.setUploadType(uploadType); } @Override public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** * REQUIRED: The resource for which the policy is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ @com.google.api.client.util.Key private java.lang.String resource; /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */ public java.lang.String getResource() { return resource; } /** * REQUIRED: The resource for which the policy is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$"); } 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 GetIamPolicy set(String parameterName, Object value) { return (GetIamPolicy) super.set(parameterName, value); } } /** * Sets the IAM Access control policy for the specified job. Overwrites any existing policy. * * Create a request for the method "jobs.setIamPolicy". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. * @param content the {@link com.google.api.services.run.v1.model.SetIamPolicyRequest} * @return the request */ 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 SetIamPolicy extends CloudRunRequest { private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/jobs/[^/]+$"); /** * Sets the IAM Access control policy for the specified job. Overwrites any existing policy. * * Create a request for the method "jobs.setIamPolicy". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

* * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. * @param content the {@link com.google.api.services.run.v1.model.SetIamPolicyRequest} * @since 1.13 */ 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(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$"); } } @Override public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override public SetIamPolicy setAccessToken(java.lang.String accessToken) { return (SetIamPolicy) super.setAccessToken(accessToken); } @Override public SetIamPolicy setAlt(java.lang.String alt) { return (SetIamPolicy) super.setAlt(alt); } @Override public SetIamPolicy setCallback(java.lang.String callback) { return (SetIamPolicy) super.setCallback(callback); } @Override public SetIamPolicy setFields(java.lang.String fields) { return (SetIamPolicy) super.setFields(fields); } @Override public SetIamPolicy setKey(java.lang.String key) { return (SetIamPolicy) super.setKey(key); } @Override public SetIamPolicy setOauthToken(java.lang.String oauthToken) { return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override public SetIamPolicy setUploadType(java.lang.String uploadType) { return (SetIamPolicy) super.setUploadType(uploadType); } @Override public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** * REQUIRED: The resource for which the policy is being specified. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ @com.google.api.client.util.Key private java.lang.String resource; /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */ public java.lang.String getResource() { return resource; } /** * REQUIRED: The resource for which the policy is being specified. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$"); } this.resource = resource; return this; } @Override public SetIamPolicy set(String parameterName, Object value) { return (SetIamPolicy) super.set(parameterName, value); } } /** * Returns permissions that a caller has on the specified job. There are no permissions required for * making this API call. * * Create a request for the method "jobs.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; } public class TestIamPermissions extends CloudRunRequest { private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/jobs/[^/]+$"); /** * Returns permissions that a caller has on the specified job. There are no permissions required * for making this API call. * * Create a request for the method "jobs.testIamPermissions". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote * operation.

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

* * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. * @param content the {@link com.google.api.services.run.v1.model.TestIamPermissionsRequest} * @since 1.13 */ 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/[^/]+/jobs/[^/]+$"); } } @Override public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override public TestIamPermissions setAccessToken(java.lang.String accessToken) { return (TestIamPermissions) super.setAccessToken(accessToken); } @Override public TestIamPermissions setAlt(java.lang.String alt) { return (TestIamPermissions) super.setAlt(alt); } @Override public TestIamPermissions setCallback(java.lang.String callback) { return (TestIamPermissions) super.setCallback(callback); } @Override public TestIamPermissions setFields(java.lang.String fields) { return (TestIamPermissions) super.setFields(fields); } @Override public TestIamPermissions setKey(java.lang.String key) { return (TestIamPermissions) super.setKey(key); } @Override public TestIamPermissions setOauthToken(java.lang.String oauthToken) { return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override public TestIamPermissions setUploadType(java.lang.String uploadType) { return (TestIamPermissions) super.setUploadType(uploadType); } @Override public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } /** * REQUIRED: The resource for which the policy detail is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ @com.google.api.client.util.Key private java.lang.String resource; /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */ public java.lang.String getResource() { return resource; } /** * REQUIRED: The resource for which the policy detail is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/jobs/[^/]+$"); } this.resource = resource; return this; } @Override public TestIamPermissions set(String parameterName, Object value) { return (TestIamPermissions) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Operations collection. * *

The typical use is:

*
       *   {@code CloudRun run = new CloudRun(...);}
       *   {@code CloudRun.Operations.List request = run.operations().list(parameters ...)}
       * 
* * @return the resource collection */ public Operations operations() { return new Operations(); } /** * The "operations" collection of methods. */ public class Operations { /** * Deletes a long-running operation. This method indicates that the client is no longer interested * in the operation result. It does not cancel the operation. If the server doesn't support this * method, it returns `google.rpc.Code.UNIMPLEMENTED`. * * Create a request for the method "operations.delete". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param name The name of the operation resource to be deleted. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { Delete result = new Delete(name); initialize(result); return result; } public class Delete extends CloudRunRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); /** * Deletes a long-running operation. This method indicates that the client is no longer interested * in the operation result. It does not cancel the operation. If the server doesn't support this * method, it returns `google.rpc.Code.UNIMPLEMENTED`. * * Create a request for the method "operations.delete". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

* * @param name The name of the operation resource to be deleted. * @since 1.13 */ protected Delete(java.lang.String name) { super(CloudRun.this, "DELETE", REST_PATH, null, com.google.api.services.run.v1.model.Empty.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @Override public Delete set$Xgafv(java.lang.String $Xgafv) { return (Delete) super.set$Xgafv($Xgafv); } @Override public Delete setAccessToken(java.lang.String accessToken) { return (Delete) super.setAccessToken(accessToken); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setCallback(java.lang.String callback) { return (Delete) super.setCallback(callback); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUploadType(java.lang.String uploadType) { return (Delete) super.setUploadType(uploadType); } @Override public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } /** The name of the operation resource to be deleted. */ @com.google.api.client.util.Key private java.lang.String name; /** The name of the operation resource to be deleted. */ public java.lang.String getName() { return name; } /** The name of the operation resource to be deleted. */ public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } this.name = name; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Gets the latest state of a long-running operation. Clients can use this method to poll the * operation result at intervals as recommended by the API service. * * Create a request for the method "operations.get". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name The name of the operation resource. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { Get result = new Get(name); initialize(result); return result; } public class Get extends CloudRunRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); /** * Gets the latest state of a long-running operation. Clients can use this method to poll the * operation result at intervals as recommended by the API service. * * Create a request for the method "operations.get". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* * @param name The name of the operation resource. * @since 1.13 */ protected Get(java.lang.String name) { super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.GoogleLongrunningOperation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** The name of the operation resource. */ @com.google.api.client.util.Key private java.lang.String name; /** The name of the operation resource. */ public java.lang.String getName() { return name; } /** The name of the operation resource. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Lists operations that match the specified filter in the request. If the server doesn't support * this method, it returns `UNIMPLEMENTED`. * * Create a request for the method "operations.list". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param name Required. To query for all of the operations for a project. * @return the request */ public List list(java.lang.String name) throws java.io.IOException { List result = new List(name); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "v1/{+name}/operations"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** * Lists operations that match the specified filter in the request. If the server doesn't support * this method, it returns `UNIMPLEMENTED`. * * Create a request for the method "operations.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param name Required. To query for all of the operations for a project. * @since 1.13 */ protected List(java.lang.String name) { super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.GoogleLongrunningListOperationsResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name 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. To query for all of the operations for a project. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. To query for all of the operations for a project. */ public java.lang.String getName() { return name; } /** Required. To query for all of the operations for a project. */ public List setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } this.name = name; return this; } /** * Optional. A filter for matching the completed or in-progress operations. The supported * formats of *filter* are: To query for only completed operations: done:true To query for * only ongoing operations: done:false Must be empty to query for all of the latest * operations for the given parent project. */ @com.google.api.client.util.Key private java.lang.String filter; /** Optional. A filter for matching the completed or in-progress operations. The supported formats of *filter* are: To query for only completed operations: done:true To query for only ongoing operations: done:false Must be empty to query for all of the latest operations for the given parent project. */ public java.lang.String getFilter() { return filter; } /** * Optional. A filter for matching the completed or in-progress operations. The supported * formats of *filter* are: To query for only completed operations: done:true To query for * only ongoing operations: done:false Must be empty to query for all of the latest * operations for the given parent project. */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } /** * The maximum number of records that should be returned. Requested page size cannot * exceed 100. If not set or set to less than or equal to 0, the default page size is 100. * . */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set or set to less than or equal to 0, the default page size is 100. . */ public java.lang.Integer getPageSize() { return pageSize; } /** * The maximum number of records that should be returned. Requested page size cannot * exceed 100. If not set or set to less than or equal to 0, the default page size is 100. * . */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** * Token identifying which result to start with, which is returned by a previous list * call. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** Token identifying which result to start with, which is returned by a previous list call. */ public java.lang.String getPageToken() { return pageToken; } /** * Token identifying which result to start with, which is returned by a previous list * call. */ 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); } } /** * Waits until the specified long-running operation is done or reaches at most a specified timeout, * returning the latest state. If the operation is already done, the latest state is immediately * returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC * timeout is used. If the server does not support this method, it returns * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return * the latest state before the specified timeout (including immediately), meaning even an immediate * response is no guarantee that the operation is done. * * Create a request for the method "operations.wait". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link Wait#execute()} method to invoke the remote operation. * * @param name The name of the operation resource to wait on. * @param content the {@link com.google.api.services.run.v1.model.GoogleLongrunningWaitOperationRequest} * @return the request */ public Wait wait(java.lang.String name, com.google.api.services.run.v1.model.GoogleLongrunningWaitOperationRequest content) throws java.io.IOException { Wait result = new Wait(name, content); initialize(result); return result; } public class Wait extends CloudRunRequest { private static final String REST_PATH = "v1/{+name}:wait"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); /** * Waits until the specified long-running operation is done or reaches at most a specified * timeout, returning the latest state. If the operation is already done, the latest state is * immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, * the HTTP/RPC timeout is used. If the server does not support this method, it returns * `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return * the latest state before the specified timeout (including immediately), meaning even an * immediate response is no guarantee that the operation is done. * * Create a request for the method "operations.wait". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Wait#execute()} method to invoke the remote operation.

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

* * @param name The name of the operation resource to wait on. * @param content the {@link com.google.api.services.run.v1.model.GoogleLongrunningWaitOperationRequest} * @since 1.13 */ protected Wait(java.lang.String name, com.google.api.services.run.v1.model.GoogleLongrunningWaitOperationRequest content) { super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v1.model.GoogleLongrunningOperation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @Override public Wait set$Xgafv(java.lang.String $Xgafv) { return (Wait) super.set$Xgafv($Xgafv); } @Override public Wait setAccessToken(java.lang.String accessToken) { return (Wait) super.setAccessToken(accessToken); } @Override public Wait setAlt(java.lang.String alt) { return (Wait) super.setAlt(alt); } @Override public Wait setCallback(java.lang.String callback) { return (Wait) super.setCallback(callback); } @Override public Wait setFields(java.lang.String fields) { return (Wait) super.setFields(fields); } @Override public Wait setKey(java.lang.String key) { return (Wait) super.setKey(key); } @Override public Wait setOauthToken(java.lang.String oauthToken) { return (Wait) super.setOauthToken(oauthToken); } @Override public Wait setPrettyPrint(java.lang.Boolean prettyPrint) { return (Wait) super.setPrettyPrint(prettyPrint); } @Override public Wait setQuotaUser(java.lang.String quotaUser) { return (Wait) super.setQuotaUser(quotaUser); } @Override public Wait setUploadType(java.lang.String uploadType) { return (Wait) super.setUploadType(uploadType); } @Override public Wait setUploadProtocol(java.lang.String uploadProtocol) { return (Wait) super.setUploadProtocol(uploadProtocol); } /** The name of the operation resource to wait on. */ @com.google.api.client.util.Key private java.lang.String name; /** The name of the operation resource to wait on. */ public java.lang.String getName() { return name; } /** The name of the operation resource to wait on. */ public Wait setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } this.name = name; return this; } @Override public Wait set(String parameterName, Object value) { return (Wait) super.set(parameterName, value); } } } /** * 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(); } /** * The "revisions" collection of methods. */ public class Revisions { /** * Delete a revision. * * Create a request for the method "revisions.delete". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param name The name of the revision to delete. For Cloud Run (fully managed), replace {namespace} with the * project ID or number. It takes the form namespaces/{namespace}. For example: * namespaces/PROJECT_ID * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { Delete result = new Delete(name); initialize(result); return result; } public class Delete extends CloudRunRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/revisions/[^/]+$"); /** * Delete a revision. * * Create a request for the method "revisions.delete". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

* * @param name The name of the revision to delete. For Cloud Run (fully managed), replace {namespace} with the * project ID or number. It takes the form namespaces/{namespace}. For example: * namespaces/PROJECT_ID * @since 1.13 */ 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 " + "^projects/[^/]+/locations/[^/]+/revisions/[^/]+$"); } } @Override public Delete set$Xgafv(java.lang.String $Xgafv) { return (Delete) super.set$Xgafv($Xgafv); } @Override public Delete setAccessToken(java.lang.String accessToken) { return (Delete) super.setAccessToken(accessToken); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setCallback(java.lang.String callback) { return (Delete) super.setCallback(callback); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUploadType(java.lang.String uploadType) { return (Delete) super.setUploadType(uploadType); } @Override public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } /** * The name of the 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 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 */ 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 */ 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/[^/]+/revisions/[^/]+$"); } this.name = name; return this; } /** Cloud Run currently ignores this parameter. */ @com.google.api.client.util.Key private java.lang.String apiVersion; /** Cloud Run currently ignores this parameter. */ public java.lang.String getApiVersion() { return apiVersion; } /** 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. */ @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; } /** * 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.String propagationPolicy; /** Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. */ public java.lang.String getPropagationPolicy() { return propagationPolicy; } /** * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, * and deletes in the background. */ public Delete setPropagationPolicy(java.lang.String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Get information about a revision. * * 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 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 * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { Get result = new Get(name); initialize(result); return result; } public class Get extends CloudRunRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/revisions/[^/]+$"); /** * Get information about a revision. * * Create a request for the method "revisions.get". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* * @param name The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace} with the * project ID or number. It takes the form namespaces/{namespace}. For example: * namespaces/PROJECT_ID * @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); 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/[^/]+/revisions/[^/]+$"); } } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * The name of the 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 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 */ 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 */ 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/[^/]+/revisions/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * List revisions. Results are sorted by creation time, descending. * * 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 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 * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { List result = new List(parent); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "v1/{+parent}/revisions"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** * List revisions. Results are sorted by creation time, descending. * * Create a request for the method "revisions.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param parent The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace * {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For * example: namespaces/PROJECT_ID * @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); 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); } /** * 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 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 */ 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 */ 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; } /** * 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; /** 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; } /** * 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; } /** * 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; } /** * 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 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. * * 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 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 { Get result = new Get(name); initialize(result); return result; } public class Get extends CloudRunRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/routes/[^/]+$"); /** * Get information about a route. * * Create a request for the method "routes.get". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* * @param name 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.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 " + "^projects/[^/]+/locations/[^/]+/routes/[^/]+$"); } } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * The name of the 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; /** 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; } /** * 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 " + "^projects/[^/]+/locations/[^/]+/routes/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * List routes. Results are sorted by creation time, descending. * * 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 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 { List result = new List(parent); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "v1/{+parent}/routes"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** * List routes. Results are sorted by creation time, descending. * * Create a request for the method "routes.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param parent 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.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(), "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); } /** * 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; /** 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; } /** * 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()) { 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; } /** * 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; /** 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; } /** * 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; } /** * 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; } /** * 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 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 { /** * 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.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 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 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 Create extends CloudRunRequest { private static final String REST_PATH = "v1/{+parent}/services"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** * 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.create". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation.

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

* * @param parent Required. The 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 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(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } } @Override public Create set$Xgafv(java.lang.String $Xgafv) { return (Create) super.set$Xgafv($Xgafv); } @Override public Create setAccessToken(java.lang.String accessToken) { return (Create) super.setAccessToken(accessToken); } @Override public Create setAlt(java.lang.String alt) { return (Create) super.setAlt(alt); } @Override public Create setCallback(java.lang.String callback) { return (Create) super.setCallback(callback); } @Override public Create setFields(java.lang.String fields) { return (Create) super.setFields(fields); } @Override public Create setKey(java.lang.String key) { return (Create) super.setKey(key); } @Override public Create setOauthToken(java.lang.String oauthToken) { return (Create) super.setOauthToken(oauthToken); } @Override public Create setPrettyPrint(java.lang.Boolean prettyPrint) { return (Create) super.setPrettyPrint(prettyPrint); } @Override public Create setQuotaUser(java.lang.String quotaUser) { return (Create) super.setQuotaUser(quotaUser); } @Override public Create setUploadType(java.lang.String uploadType) { return (Create) super.setUploadType(uploadType); } @Override public Create setUploadProtocol(java.lang.String uploadProtocol) { return (Create) super.setUploadProtocol(uploadProtocol); } /** * Required. The 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; } /** * 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 " + "^projects/[^/]+/locations/[^/]+$"); } this.parent = parent; 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 Create setDryRun(java.lang.String dryRun) { this.dryRun = dryRun; return this; } @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** * 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 "services.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 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 Delete delete(java.lang.String name) throws java.io.IOException { Delete result = new Delete(name); initialize(result); return result; } public class Delete extends CloudRunRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/services/[^/]+$"); /** * 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 "services.delete". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

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

* * @param name Required. The 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 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 " + "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); } } @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 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 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 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 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/[^/]+/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 Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Gets information about a service. * * 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 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}` * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { Get result = new Get(name); initialize(result); return result; } public class Get extends CloudRunRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/services/[^/]+$"); /** * Gets information about a service. * * Create a request for the method "services.get". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

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

* * @param name Required. The fully qualified name of the service to retrieve. It can be any of the following forms: * * `namespaces/{project_id_or_number}/services/{service_name}` (only when the `endpoint` is * regional) * `projects/{project_id_or_number}/locations/{region}/services/{service_name}` * * `projects/{project_id_or_number}/regions/{region}/services/{service_name}` * @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); 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/[^/]+/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); } @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 " + "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Gets the IAM Access Control policy currently in effect for the given Cloud Run service. This * result does not include any inherited policies. * * Create a request for the method "services.getIamPolicy". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. * * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. * @return the request */ public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException { GetIamPolicy result = new GetIamPolicy(resource); initialize(result); return result; } public class GetIamPolicy extends CloudRunRequest { private static final String REST_PATH = "v1/{+resource}:getIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/services/[^/]+$"); /** * Gets the IAM Access Control policy currently in effect for the given Cloud Run service. This * result does not include any inherited policies. * * Create a request for the method "services.getIamPolicy". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.

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

* * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. * @since 1.13 */ 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(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/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 GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { return (GetIamPolicy) super.set$Xgafv($Xgafv); } @Override public GetIamPolicy setAccessToken(java.lang.String accessToken) { return (GetIamPolicy) super.setAccessToken(accessToken); } @Override public GetIamPolicy setAlt(java.lang.String alt) { return (GetIamPolicy) super.setAlt(alt); } @Override public GetIamPolicy setCallback(java.lang.String callback) { return (GetIamPolicy) super.setCallback(callback); } @Override public GetIamPolicy setFields(java.lang.String fields) { return (GetIamPolicy) super.setFields(fields); } @Override public GetIamPolicy setKey(java.lang.String key) { return (GetIamPolicy) super.setKey(key); } @Override public GetIamPolicy setOauthToken(java.lang.String oauthToken) { return (GetIamPolicy) super.setOauthToken(oauthToken); } @Override public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { return (GetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { return (GetIamPolicy) super.setQuotaUser(quotaUser); } @Override public GetIamPolicy setUploadType(java.lang.String uploadType) { return (GetIamPolicy) super.setUploadType(uploadType); } @Override public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** * REQUIRED: The resource for which the policy is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ @com.google.api.client.util.Key private java.lang.String resource; /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */ public java.lang.String getResource() { return resource; } /** * REQUIRED: The resource for which the policy is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ public GetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); } 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 GetIamPolicy set(String parameterName, Object value) { return (GetIamPolicy) super.set(parameterName, value); } } /** * Lists services for the given project and region. Results are sorted by creation time, descending. * * Create a request for the method "services.list". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param parent Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the * following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * * `namespaces/{project_id_or_number}/services` * * `projects/{project_id_or_number}/locations/{region}` * * `projects/{project_id_or_number}/regions/{region}` * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { List result = new List(parent); initialize(result); return result; } public class List extends CloudRunRequest { private static final String REST_PATH = "v1/{+parent}/services"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** * Lists services for the given project and region. Results are sorted by creation time, * descending. * * Create a request for the method "services.list". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param parent Required. The parent from where the resources should be listed. In Cloud Run, it may be one of the * following: * `{project_id_or_number}` * `namespaces/{project_id_or_number}` * * `namespaces/{project_id_or_number}/services` * * `projects/{project_id_or_number}/locations/{region}` * * `projects/{project_id_or_number}/regions/{region}` * @since 1.13 */ protected List(java.lang.String parent) { super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v1.model.ListServicesResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + "^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 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 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 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()) { 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; } /** 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; } /** Not supported, and ignored by Cloud Run. */ @com.google.api.client.util.Key private java.lang.String fieldSelector; /** Not supported, and ignored by Cloud Run. */ public java.lang.String getFieldSelector() { return fieldSelector; } /** Not supported, and ignored by Cloud Run. */ public List setFieldSelector(java.lang.String fieldSelector) { this.fieldSelector = fieldSelector; return this; } /** Not supported, and ignored by Cloud Run. */ @com.google.api.client.util.Key private java.lang.Boolean includeUninitialized; /** Not supported, and ignored by Cloud Run. */ public java.lang.Boolean getIncludeUninitialized() { return includeUninitialized; } /** Not supported, and ignored 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. */ @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; } /** * 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; } /** 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; } /** Not supported, and ignored by Cloud Run. */ @com.google.api.client.util.Key private java.lang.String resourceVersion; /** Not supported, and ignored by Cloud Run. */ public java.lang.String getResourceVersion() { return resourceVersion; } /** Not supported, and ignored by Cloud Run. */ public List setResourceVersion(java.lang.String resourceVersion) { this.resourceVersion = resourceVersion; return this; } /** Not supported, and ignored by Cloud Run. */ @com.google.api.client.util.Key private java.lang.Boolean watch; /** Not supported, and ignored by Cloud Run. */ public java.lang.Boolean getWatch() { return watch; } /** Not supported, and ignored 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); } } /** * 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 "services.replaceService". * * 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. * * @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 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 ReplaceService extends CloudRunRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/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. * * Create a request for the method "services.replaceService". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link 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 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 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(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); } } @Override public ReplaceService set$Xgafv(java.lang.String $Xgafv) { return (ReplaceService) super.set$Xgafv($Xgafv); } @Override public ReplaceService setAccessToken(java.lang.String accessToken) { return (ReplaceService) super.setAccessToken(accessToken); } @Override public ReplaceService setAlt(java.lang.String alt) { return (ReplaceService) super.setAlt(alt); } @Override public ReplaceService setCallback(java.lang.String callback) { return (ReplaceService) super.setCallback(callback); } @Override public ReplaceService setFields(java.lang.String fields) { return (ReplaceService) super.setFields(fields); } @Override public ReplaceService setKey(java.lang.String key) { return (ReplaceService) super.setKey(key); } @Override public ReplaceService setOauthToken(java.lang.String oauthToken) { return (ReplaceService) super.setOauthToken(oauthToken); } @Override public ReplaceService setPrettyPrint(java.lang.Boolean prettyPrint) { return (ReplaceService) super.setPrettyPrint(prettyPrint); } @Override public ReplaceService setQuotaUser(java.lang.String quotaUser) { return (ReplaceService) super.setQuotaUser(quotaUser); } @Override public ReplaceService setUploadType(java.lang.String uploadType) { return (ReplaceService) super.setUploadType(uploadType); } @Override public ReplaceService setUploadProtocol(java.lang.String uploadProtocol) { return (ReplaceService) 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}` */ @com.google.api.client.util.Key private java.lang.String 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}` */ public java.lang.String getName() { return 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}` */ public ReplaceService 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/[^/]+/services/[^/]+$"); } 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 ReplaceService setDryRun(java.lang.String dryRun) { this.dryRun = dryRun; return this; } @Override public ReplaceService set(String parameterName, Object value) { return (ReplaceService) super.set(parameterName, value); } } /** * Sets the IAM Access control policy for the specified Service. Overwrites any existing policy. * * Create a request for the method "services.setIamPolicy". * * This request holds the parameters needed by the run server. After setting any optional * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. * * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. * @param content the {@link com.google.api.services.run.v1.model.SetIamPolicyRequest} * @return the request */ 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 SetIamPolicy extends CloudRunRequest { private static final String REST_PATH = "v1/{+resource}:setIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/services/[^/]+$"); /** * Sets the IAM Access control policy for the specified Service. Overwrites any existing policy. * * Create a request for the method "services.setIamPolicy". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.

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

* * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. * @param content the {@link com.google.api.services.run.v1.model.SetIamPolicyRequest} * @since 1.13 */ 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(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); } } @Override public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { return (SetIamPolicy) super.set$Xgafv($Xgafv); } @Override public SetIamPolicy setAccessToken(java.lang.String accessToken) { return (SetIamPolicy) super.setAccessToken(accessToken); } @Override public SetIamPolicy setAlt(java.lang.String alt) { return (SetIamPolicy) super.setAlt(alt); } @Override public SetIamPolicy setCallback(java.lang.String callback) { return (SetIamPolicy) super.setCallback(callback); } @Override public SetIamPolicy setFields(java.lang.String fields) { return (SetIamPolicy) super.setFields(fields); } @Override public SetIamPolicy setKey(java.lang.String key) { return (SetIamPolicy) super.setKey(key); } @Override public SetIamPolicy setOauthToken(java.lang.String oauthToken) { return (SetIamPolicy) super.setOauthToken(oauthToken); } @Override public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { return (SetIamPolicy) super.setPrettyPrint(prettyPrint); } @Override public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { return (SetIamPolicy) super.setQuotaUser(quotaUser); } @Override public SetIamPolicy setUploadType(java.lang.String uploadType) { return (SetIamPolicy) super.setUploadType(uploadType); } @Override public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); } /** * REQUIRED: The resource for which the policy is being specified. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ @com.google.api.client.util.Key private java.lang.String resource; /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */ public java.lang.String getResource() { return resource; } /** * REQUIRED: The resource for which the policy is being specified. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ public SetIamPolicy setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); } this.resource = resource; return this; } @Override public SetIamPolicy set(String parameterName, Object value) { return (SetIamPolicy) super.set(parameterName, value); } } /** * Returns permissions that a caller has on the specified Project. There are no permissions required * for making this API call. * * Create a request for the method "services.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; } public class TestIamPermissions extends CloudRunRequest { private static final String REST_PATH = "v1/{+resource}:testIamPermissions"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/services/[^/]+$"); /** * Returns permissions that a caller has on the specified Project. There are no permissions * required for making this API call. * * Create a request for the method "services.testIamPermissions". * * This request holds the parameters needed by the the run server. After setting any optional * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote * operation.

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

* * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for * this field. * @param content the {@link com.google.api.services.run.v1.model.TestIamPermissionsRequest} * @since 1.13 */ 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/[^/]+/services/[^/]+$"); } } @Override public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { return (TestIamPermissions) super.set$Xgafv($Xgafv); } @Override public TestIamPermissions setAccessToken(java.lang.String accessToken) { return (TestIamPermissions) super.setAccessToken(accessToken); } @Override public TestIamPermissions setAlt(java.lang.String alt) { return (TestIamPermissions) super.setAlt(alt); } @Override public TestIamPermissions setCallback(java.lang.String callback) { return (TestIamPermissions) super.setCallback(callback); } @Override public TestIamPermissions setFields(java.lang.String fields) { return (TestIamPermissions) super.setFields(fields); } @Override public TestIamPermissions setKey(java.lang.String key) { return (TestIamPermissions) super.setKey(key); } @Override public TestIamPermissions setOauthToken(java.lang.String oauthToken) { return (TestIamPermissions) super.setOauthToken(oauthToken); } @Override public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { return (TestIamPermissions) super.setPrettyPrint(prettyPrint); } @Override public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { return (TestIamPermissions) super.setQuotaUser(quotaUser); } @Override public TestIamPermissions setUploadType(java.lang.String uploadType) { return (TestIamPermissions) super.setUploadType(uploadType); } @Override public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); } /** * REQUIRED: The resource for which the policy detail is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ @com.google.api.client.util.Key private java.lang.String resource; /** REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */ public java.lang.String getResource() { return resource; } /** * REQUIRED: The resource for which the policy detail is being requested. See [Resource * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value * for this field. */ public TestIamPermissions setResource(java.lang.String resource) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/services/[^/]+$"); } this.resource = resource; return this; } @Override public TestIamPermissions set(String parameterName, Object value) { return (TestIamPermissions) super.set(parameterName, value); } } } } } /** * Builder for {@link CloudRun}. * *

* Implementation is not thread-safe. *

* * @since 1.3.0 */ public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { private static String chooseEndpoint(com.google.api.client.http.HttpTransport transport) { // If the GOOGLE_API_USE_MTLS_ENDPOINT environment variable value is "always", use mTLS endpoint. // If the env variable is "auto", use mTLS endpoint if and only if the transport is mTLS. // Use the regular endpoint for all other cases. String useMtlsEndpoint = System.getenv("GOOGLE_API_USE_MTLS_ENDPOINT"); useMtlsEndpoint = useMtlsEndpoint == null ? "auto" : useMtlsEndpoint; if ("always".equals(useMtlsEndpoint) || ("auto".equals(useMtlsEndpoint) && transport != null && transport.isMtls())) { return DEFAULT_MTLS_ROOT_URL; } return DEFAULT_ROOT_URL; } /** * Returns an instance of a new builder. * * @param transport HTTP transport, which should normally be: *
    *
  • Google App Engine: * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} *
  • *
* @param jsonFactory JSON factory, which may be: *
    *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • *
  • Android Honeycomb or higher: * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • *
* @param httpRequestInitializer HTTP request initializer or {@code null} for none * @since 1.7 */ public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { super( transport, jsonFactory, Builder.chooseEndpoint(transport), DEFAULT_SERVICE_PATH, httpRequestInitializer, false); setBatchPath(DEFAULT_BATCH_PATH); } /** Builds a new instance of {@link CloudRun}. */ @Override public CloudRun build() { return new CloudRun(this); } @Override public Builder setRootUrl(String rootUrl) { return (Builder) super.setRootUrl(rootUrl); } @Override public Builder setServicePath(String servicePath) { return (Builder) super.setServicePath(servicePath); } @Override public Builder setBatchPath(String batchPath) { return (Builder) super.setBatchPath(batchPath); } @Override public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); } @Override public Builder setApplicationName(String applicationName) { return (Builder) super.setApplicationName(applicationName); } @Override public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); } @Override public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); } @Override public Builder setSuppressAllChecks(boolean suppressAllChecks) { return (Builder) super.setSuppressAllChecks(suppressAllChecks); } /** * Set the {@link CloudRunRequestInitializer}. * * @since 1.12 */ public Builder setCloudRunRequestInitializer( CloudRunRequestInitializer cloudrunRequestInitializer) { return (Builder) super.setGoogleClientRequestInitializer(cloudrunRequestInitializer); } @Override public Builder setGoogleClientRequestInitializer( com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); } @Override public Builder setUniverseDomain(String universeDomain) { return (Builder) super.setUniverseDomain(universeDomain); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy