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

com.google.api.services.notebooks.v2.AIPlatformNotebooks Maven / Gradle / Ivy

/*
 * 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.notebooks.v2;

/**
 * Service definition for AIPlatformNotebooks (v2).
 *
 * 

* Notebooks API is used to manage notebook resources in Google Cloud. *

* *

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

* *

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

* * @since 1.3 * @author Google, Inc. */ @SuppressWarnings("javadoc") public class AIPlatformNotebooks 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 Notebooks 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://notebooks.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://notebooks.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 AIPlatformNotebooks(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 */ AIPlatformNotebooks(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 Projects collection. * *

The typical use is:

*
   *   {@code AIPlatformNotebooks notebooks = new AIPlatformNotebooks(...);}
   *   {@code AIPlatformNotebooks.Projects.List request = notebooks.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 Locations collection. * *

The typical use is:

*
     *   {@code AIPlatformNotebooks notebooks = new AIPlatformNotebooks(...);}
     *   {@code AIPlatformNotebooks.Locations.List request = notebooks.locations().list(parameters ...)}
     * 
* * @return the resource collection */ public Locations locations() { return new Locations(); } /** * The "locations" collection of methods. */ public class Locations { /** * Gets information about a location. * * Create a request for the method "locations.get". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name Resource name for the location. * @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 AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** * Gets information about a location. * * Create a request for the method "locations.get". * * This request holds the parameters needed by the the notebooks 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 Resource name for the location. * @since 1.13 */ protected Get(java.lang.String name) { super(AIPlatformNotebooks.this, "GET", REST_PATH, null, com.google.api.services.notebooks.v2.model.Location.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } } @Override 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); } /** Resource name for the location. */ @com.google.api.client.util.Key private java.lang.String name; /** Resource name for the location. */ public java.lang.String getName() { return name; } /** Resource name for the location. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * 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 notebooks 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 AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+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 notebooks 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(AIPlatformNotebooks.this, "GET", REST_PATH, null, com.google.api.services.notebooks.v2.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 Instances collection. * *

The typical use is:

*
       *   {@code AIPlatformNotebooks notebooks = new AIPlatformNotebooks(...);}
       *   {@code AIPlatformNotebooks.Instances.List request = notebooks.instances().list(parameters ...)}
       * 
* * @return the resource collection */ public Instances instances() { return new Instances(); } /** * The "instances" collection of methods. */ public class Instances { /** * Checks whether a notebook instance is upgradable. * * Create a request for the method "instances.checkUpgradability". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link CheckUpgradability#execute()} method to invoke the remote operation. * * @param notebookInstance Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @return the request */ public CheckUpgradability checkUpgradability(java.lang.String notebookInstance) throws java.io.IOException { CheckUpgradability result = new CheckUpgradability(notebookInstance); initialize(result); return result; } public class CheckUpgradability extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+notebookInstance}:checkUpgradability"; private final java.util.regex.Pattern NOTEBOOK_INSTANCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * Checks whether a notebook instance is upgradable. * * Create a request for the method "instances.checkUpgradability". * * This request holds the parameters needed by the the notebooks server. After setting any * optional parameters, call the {@link CheckUpgradability#execute()} method to invoke the remote * operation.

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

* * @param notebookInstance Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @since 1.13 */ protected CheckUpgradability(java.lang.String notebookInstance) { super(AIPlatformNotebooks.this, "GET", REST_PATH, null, com.google.api.services.notebooks.v2.model.CheckInstanceUpgradabilityResponse.class); this.notebookInstance = com.google.api.client.util.Preconditions.checkNotNull(notebookInstance, "Required parameter notebookInstance must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NOTEBOOK_INSTANCE_PATTERN.matcher(notebookInstance).matches(), "Parameter notebookInstance must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public CheckUpgradability set$Xgafv(java.lang.String $Xgafv) { return (CheckUpgradability) super.set$Xgafv($Xgafv); } @Override public CheckUpgradability setAccessToken(java.lang.String accessToken) { return (CheckUpgradability) super.setAccessToken(accessToken); } @Override public CheckUpgradability setAlt(java.lang.String alt) { return (CheckUpgradability) super.setAlt(alt); } @Override public CheckUpgradability setCallback(java.lang.String callback) { return (CheckUpgradability) super.setCallback(callback); } @Override public CheckUpgradability setFields(java.lang.String fields) { return (CheckUpgradability) super.setFields(fields); } @Override public CheckUpgradability setKey(java.lang.String key) { return (CheckUpgradability) super.setKey(key); } @Override public CheckUpgradability setOauthToken(java.lang.String oauthToken) { return (CheckUpgradability) super.setOauthToken(oauthToken); } @Override public CheckUpgradability setPrettyPrint(java.lang.Boolean prettyPrint) { return (CheckUpgradability) super.setPrettyPrint(prettyPrint); } @Override public CheckUpgradability setQuotaUser(java.lang.String quotaUser) { return (CheckUpgradability) super.setQuotaUser(quotaUser); } @Override public CheckUpgradability setUploadType(java.lang.String uploadType) { return (CheckUpgradability) super.setUploadType(uploadType); } @Override public CheckUpgradability setUploadProtocol(java.lang.String uploadProtocol) { return (CheckUpgradability) super.setUploadProtocol(uploadProtocol); } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ @com.google.api.client.util.Key private java.lang.String notebookInstance; /** Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public java.lang.String getNotebookInstance() { return notebookInstance; } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public CheckUpgradability setNotebookInstance(java.lang.String notebookInstance) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NOTEBOOK_INSTANCE_PATTERN.matcher(notebookInstance).matches(), "Parameter notebookInstance must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } this.notebookInstance = notebookInstance; return this; } @Override public CheckUpgradability set(String parameterName, Object value) { return (CheckUpgradability) super.set(parameterName, value); } } /** * Creates a new Instance in a given project and location. * * Create a request for the method "instances.create". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation. * * @param parent Required. Format: `parent=projects/{project_id}/locations/{location}` * @param content the {@link com.google.api.services.notebooks.v2.model.Instance} * @return the request */ public Create create(java.lang.String parent, com.google.api.services.notebooks.v2.model.Instance content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; } public class Create extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+parent}/instances"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** * Creates a new Instance in a given project and location. * * Create a request for the method "instances.create". * * This request holds the parameters needed by the the notebooks 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. Format: `parent=projects/{project_id}/locations/{location}` * @param content the {@link com.google.api.services.notebooks.v2.model.Instance} * @since 1.13 */ protected Create(java.lang.String parent, com.google.api.services.notebooks.v2.model.Instance content) { super(AIPlatformNotebooks.this, "POST", REST_PATH, content, com.google.api.services.notebooks.v2.model.Operation.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + "^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. Format: `parent=projects/{project_id}/locations/{location}` */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. Format: `parent=projects/{project_id}/locations/{location}` */ public java.lang.String getParent() { return parent; } /** Required. Format: `parent=projects/{project_id}/locations/{location}` */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } this.parent = parent; return this; } /** Required. User-defined unique ID of this instance. */ @com.google.api.client.util.Key private java.lang.String instanceId; /** Required. User-defined unique ID of this instance. */ public java.lang.String getInstanceId() { return instanceId; } /** Required. User-defined unique ID of this instance. */ public Create setInstanceId(java.lang.String instanceId) { this.instanceId = instanceId; return this; } /** Optional. Idempotent request UUID. */ @com.google.api.client.util.Key private java.lang.String requestId; /** Optional. Idempotent request UUID. */ public java.lang.String getRequestId() { return requestId; } /** Optional. Idempotent request UUID. */ public Create setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** * Deletes a single Instance. * * Create a request for the method "instances.delete". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_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 AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * Deletes a single Instance. * * Create a request for the method "instances.delete". * * This request holds the parameters needed by the the notebooks 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. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @since 1.13 */ protected Delete(java.lang.String name) { super(AIPlatformNotebooks.this, "DELETE", REST_PATH, null, com.google.api.services.notebooks.v2.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @Override public Delete set$Xgafv(java.lang.String $Xgafv) { return (Delete) super.set$Xgafv($Xgafv); } @Override public Delete setAccessToken(java.lang.String accessToken) { return (Delete) super.setAccessToken(accessToken); } @Override public Delete setAlt(java.lang.String alt) { return (Delete) super.setAlt(alt); } @Override public Delete setCallback(java.lang.String callback) { return (Delete) super.setCallback(callback); } @Override public Delete setFields(java.lang.String fields) { return (Delete) super.setFields(fields); } @Override public Delete setKey(java.lang.String key) { return (Delete) super.setKey(key); } @Override public Delete setOauthToken(java.lang.String oauthToken) { return (Delete) super.setOauthToken(oauthToken); } @Override public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Delete) super.setPrettyPrint(prettyPrint); } @Override public Delete setQuotaUser(java.lang.String quotaUser) { return (Delete) super.setQuotaUser(quotaUser); } @Override public Delete setUploadType(java.lang.String uploadType) { return (Delete) super.setUploadType(uploadType); } @Override public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ @com.google.api.client.util.Key private java.lang.String name; /** Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public java.lang.String getName() { return name; } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_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/[^/]+/instances/[^/]+$"); } this.name = name; return this; } /** Optional. Idempotent request UUID. */ @com.google.api.client.util.Key private java.lang.String requestId; /** Optional. Idempotent request UUID. */ public java.lang.String getRequestId() { return requestId; } /** Optional. Idempotent request UUID. */ public Delete setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Creates a Diagnostic File and runs Diagnostic Tool given an Instance. * * Create a request for the method "instances.diagnose". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link Diagnose#execute()} method to invoke the remote operation. * * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.DiagnoseInstanceRequest} * @return the request */ public Diagnose diagnose(java.lang.String name, com.google.api.services.notebooks.v2.model.DiagnoseInstanceRequest content) throws java.io.IOException { Diagnose result = new Diagnose(name, content); initialize(result); return result; } public class Diagnose extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+name}:diagnose"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * Creates a Diagnostic File and runs Diagnostic Tool given an Instance. * * Create a request for the method "instances.diagnose". * * This request holds the parameters needed by the the notebooks server. After setting any * optional parameters, call the {@link Diagnose#execute()} method to invoke the remote operation. *

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

* * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.DiagnoseInstanceRequest} * @since 1.13 */ protected Diagnose(java.lang.String name, com.google.api.services.notebooks.v2.model.DiagnoseInstanceRequest content) { super(AIPlatformNotebooks.this, "POST", REST_PATH, content, com.google.api.services.notebooks.v2.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @Override public Diagnose set$Xgafv(java.lang.String $Xgafv) { return (Diagnose) super.set$Xgafv($Xgafv); } @Override public Diagnose setAccessToken(java.lang.String accessToken) { return (Diagnose) super.setAccessToken(accessToken); } @Override public Diagnose setAlt(java.lang.String alt) { return (Diagnose) super.setAlt(alt); } @Override public Diagnose setCallback(java.lang.String callback) { return (Diagnose) super.setCallback(callback); } @Override public Diagnose setFields(java.lang.String fields) { return (Diagnose) super.setFields(fields); } @Override public Diagnose setKey(java.lang.String key) { return (Diagnose) super.setKey(key); } @Override public Diagnose setOauthToken(java.lang.String oauthToken) { return (Diagnose) super.setOauthToken(oauthToken); } @Override public Diagnose setPrettyPrint(java.lang.Boolean prettyPrint) { return (Diagnose) super.setPrettyPrint(prettyPrint); } @Override public Diagnose setQuotaUser(java.lang.String quotaUser) { return (Diagnose) super.setQuotaUser(quotaUser); } @Override public Diagnose setUploadType(java.lang.String uploadType) { return (Diagnose) super.setUploadType(uploadType); } @Override public Diagnose setUploadProtocol(java.lang.String uploadProtocol) { return (Diagnose) super.setUploadProtocol(uploadProtocol); } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ @com.google.api.client.util.Key private java.lang.String name; /** Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public java.lang.String getName() { return name; } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public Diagnose setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } this.name = name; return this; } @Override public Diagnose set(String parameterName, Object value) { return (Diagnose) super.set(parameterName, value); } } /** * Gets details of a single Instance. * * Create a request for the method "instances.get". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_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 AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * Gets details of a single Instance. * * Create a request for the method "instances.get". * * This request holds the parameters needed by the the notebooks 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. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @since 1.13 */ protected Get(java.lang.String name) { super(AIPlatformNotebooks.this, "GET", REST_PATH, null, com.google.api.services.notebooks.v2.model.Instance.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public Get set$Xgafv(java.lang.String $Xgafv) { return (Get) super.set$Xgafv($Xgafv); } @Override public Get setAccessToken(java.lang.String accessToken) { return (Get) super.setAccessToken(accessToken); } @Override public Get setAlt(java.lang.String alt) { return (Get) super.setAlt(alt); } @Override public Get setCallback(java.lang.String callback) { return (Get) super.setCallback(callback); } @Override public Get setFields(java.lang.String fields) { return (Get) super.setFields(fields); } @Override public Get setKey(java.lang.String key) { return (Get) super.setKey(key); } @Override public Get setOauthToken(java.lang.String oauthToken) { return (Get) super.setOauthToken(oauthToken); } @Override public Get setPrettyPrint(java.lang.Boolean prettyPrint) { return (Get) super.setPrettyPrint(prettyPrint); } @Override public Get setQuotaUser(java.lang.String quotaUser) { return (Get) super.setQuotaUser(quotaUser); } @Override public Get setUploadType(java.lang.String uploadType) { return (Get) super.setUploadType(uploadType); } @Override public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ @com.google.api.client.util.Key private java.lang.String name; /** Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public java.lang.String getName() { return name; } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_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/[^/]+/instances/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Gets general backend configurations that might also affect the frontend. Location is required by * CCFE. Although we could bypass it to send location- less request directly to the backend job, we * would need CPE (go/cloud-cpe). Having the location might also be useful depending on the query. * * Create a request for the method "instances.getConfig". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link GetConfig#execute()} method to invoke the remote operation. * * @param name Required. Format: `projects/{project_id}/locations/{location}` * @return the request */ public GetConfig getConfig(java.lang.String name) throws java.io.IOException { GetConfig result = new GetConfig(name); initialize(result); return result; } public class GetConfig extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+name}/instances:getConfig"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** * Gets general backend configurations that might also affect the frontend. Location is required * by CCFE. Although we could bypass it to send location- less request directly to the backend * job, we would need CPE (go/cloud-cpe). Having the location might also be useful depending on * the query. * * Create a request for the method "instances.getConfig". * * This request holds the parameters needed by the the notebooks server. After setting any * optional parameters, call the {@link GetConfig#execute()} method to invoke the remote * operation.

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

* * @param name Required. Format: `projects/{project_id}/locations/{location}` * @since 1.13 */ protected GetConfig(java.lang.String name) { super(AIPlatformNotebooks.this, "GET", REST_PATH, null, com.google.api.services.notebooks.v2.model.Config.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 GetConfig set$Xgafv(java.lang.String $Xgafv) { return (GetConfig) super.set$Xgafv($Xgafv); } @Override public GetConfig setAccessToken(java.lang.String accessToken) { return (GetConfig) super.setAccessToken(accessToken); } @Override public GetConfig setAlt(java.lang.String alt) { return (GetConfig) super.setAlt(alt); } @Override public GetConfig setCallback(java.lang.String callback) { return (GetConfig) super.setCallback(callback); } @Override public GetConfig setFields(java.lang.String fields) { return (GetConfig) super.setFields(fields); } @Override public GetConfig setKey(java.lang.String key) { return (GetConfig) super.setKey(key); } @Override public GetConfig setOauthToken(java.lang.String oauthToken) { return (GetConfig) super.setOauthToken(oauthToken); } @Override public GetConfig setPrettyPrint(java.lang.Boolean prettyPrint) { return (GetConfig) super.setPrettyPrint(prettyPrint); } @Override public GetConfig setQuotaUser(java.lang.String quotaUser) { return (GetConfig) super.setQuotaUser(quotaUser); } @Override public GetConfig setUploadType(java.lang.String uploadType) { return (GetConfig) super.setUploadType(uploadType); } @Override public GetConfig setUploadProtocol(java.lang.String uploadProtocol) { return (GetConfig) super.setUploadProtocol(uploadProtocol); } /** Required. Format: `projects/{project_id}/locations/{location}` */ @com.google.api.client.util.Key private java.lang.String name; /** Required. Format: `projects/{project_id}/locations/{location}` */ public java.lang.String getName() { return name; } /** Required. Format: `projects/{project_id}/locations/{location}` */ public GetConfig setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } this.name = name; return this; } @Override public GetConfig set(String parameterName, Object value) { return (GetConfig) super.set(parameterName, value); } } /** * Gets the access control policy for a resource. Returns an empty policy if the resource exists and * does not have a policy set. * * Create a request for the method "instances.getIamPolicy". * * This request holds the parameters needed by the notebooks 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 AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+resource}:getIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * Gets the access control policy for a resource. Returns an empty policy if the resource exists * and does not have a policy set. * * Create a request for the method "instances.getIamPolicy". * * This request holds the parameters needed by the the notebooks 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(AIPlatformNotebooks.this, "GET", REST_PATH, null, com.google.api.services.notebooks.v2.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/[^/]+/instances/[^/]+$"); } } @Override public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { return super.executeUsingHead(); } @Override public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { return super.buildHttpRequestUsingHead(); } @Override public 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/[^/]+/instances/[^/]+$"); } 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 instances in a given project and location. * * Create a request for the method "instances.list". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param parent Required. Format: `parent=projects/{project_id}/locations/{location}` * @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 AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+parent}/instances"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** * Lists instances in a given project and location. * * Create a request for the method "instances.list". * * This request holds the parameters needed by the the notebooks 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. Format: `parent=projects/{project_id}/locations/{location}` * @since 1.13 */ protected List(java.lang.String parent) { super(AIPlatformNotebooks.this, "GET", REST_PATH, null, com.google.api.services.notebooks.v2.model.ListInstancesResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "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. Format: `parent=projects/{project_id}/locations/{location}` */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. Format: `parent=projects/{project_id}/locations/{location}` */ public java.lang.String getParent() { return parent; } /** Required. Format: `parent=projects/{project_id}/locations/{location}` */ 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. List filter. */ @com.google.api.client.util.Key private java.lang.String filter; /** Optional. List filter. */ public java.lang.String getFilter() { return filter; } /** Optional. List filter. */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } /** Optional. Sort results. Supported values are "name", "name desc" or "" (unsorted). */ @com.google.api.client.util.Key private java.lang.String orderBy; /** Optional. Sort results. Supported values are "name", "name desc" or "" (unsorted). */ public java.lang.String getOrderBy() { return orderBy; } /** Optional. Sort results. Supported values are "name", "name desc" or "" (unsorted). */ public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } /** Optional. Maximum return size of the list call. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** Optional. Maximum return size of the list call. */ public java.lang.Integer getPageSize() { return pageSize; } /** Optional. Maximum return size of the list call. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** * Optional. A previous returned page token that can be used to continue listing from the * last result. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** Optional. A previous returned page token that can be used to continue listing from the last result. */ public java.lang.String getPageToken() { return pageToken; } /** * Optional. A previous returned page token that can be used to continue listing from the * last result. */ 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); } } /** * UpdateInstance updates an Instance. * * Create a request for the method "instances.patch". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param name Output only. The name of this notebook instance. Format: * `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.Instance} * @return the request */ public Patch patch(java.lang.String name, com.google.api.services.notebooks.v2.model.Instance content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; } public class Patch extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * UpdateInstance updates an Instance. * * Create a request for the method "instances.patch". * * This request holds the parameters needed by the the notebooks server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. *

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

* * @param name Output only. The name of this notebook instance. Format: * `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.Instance} * @since 1.13 */ protected Patch(java.lang.String name, com.google.api.services.notebooks.v2.model.Instance content) { super(AIPlatformNotebooks.this, "PATCH", REST_PATH, content, com.google.api.services.notebooks.v2.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @Override public Patch set$Xgafv(java.lang.String $Xgafv) { return (Patch) super.set$Xgafv($Xgafv); } @Override public Patch setAccessToken(java.lang.String accessToken) { return (Patch) super.setAccessToken(accessToken); } @Override public Patch setAlt(java.lang.String alt) { return (Patch) super.setAlt(alt); } @Override public Patch setCallback(java.lang.String callback) { return (Patch) super.setCallback(callback); } @Override public Patch setFields(java.lang.String fields) { return (Patch) super.setFields(fields); } @Override public Patch setKey(java.lang.String key) { return (Patch) super.setKey(key); } @Override public Patch setOauthToken(java.lang.String oauthToken) { return (Patch) super.setOauthToken(oauthToken); } @Override public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { return (Patch) super.setPrettyPrint(prettyPrint); } @Override public Patch setQuotaUser(java.lang.String quotaUser) { return (Patch) super.setQuotaUser(quotaUser); } @Override public Patch setUploadType(java.lang.String uploadType) { return (Patch) super.setUploadType(uploadType); } @Override public Patch setUploadProtocol(java.lang.String uploadProtocol) { return (Patch) super.setUploadProtocol(uploadProtocol); } /** * Output only. The name of this notebook instance. Format: * `projects/{project_id}/locations/{location}/instances/{instance_id}` */ @com.google.api.client.util.Key private java.lang.String name; /** Output only. The name of this notebook instance. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public java.lang.String getName() { return name; } /** * Output only. The name of this notebook instance. Format: * `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public Patch setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } this.name = name; return this; } /** Optional. Idempotent request UUID. */ @com.google.api.client.util.Key private java.lang.String requestId; /** Optional. Idempotent request UUID. */ public java.lang.String getRequestId() { return requestId; } /** Optional. Idempotent request UUID. */ public Patch setRequestId(java.lang.String requestId) { this.requestId = requestId; return this; } /** Required. Mask used to update an instance */ @com.google.api.client.util.Key private String updateMask; /** Required. Mask used to update an instance */ public String getUpdateMask() { return updateMask; } /** Required. Mask used to update an instance */ public Patch setUpdateMask(String updateMask) { this.updateMask = updateMask; return this; } @Override public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } /** * Allows notebook instances to report their latest instance information to the Notebooks API * server. The server will merge the reported information to the instance metadata store. Do not use * this method directly. * * Create a request for the method "instances.reportInfoSystem". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link ReportInfoSystem#execute()} method to invoke the remote operation. * * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.ReportInstanceInfoSystemRequest} * @return the request */ public ReportInfoSystem reportInfoSystem(java.lang.String name, com.google.api.services.notebooks.v2.model.ReportInstanceInfoSystemRequest content) throws java.io.IOException { ReportInfoSystem result = new ReportInfoSystem(name, content); initialize(result); return result; } public class ReportInfoSystem extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+name}:reportInfoSystem"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * Allows notebook instances to report their latest instance information to the Notebooks API * server. The server will merge the reported information to the instance metadata store. Do not * use this method directly. * * Create a request for the method "instances.reportInfoSystem". * * This request holds the parameters needed by the the notebooks server. After setting any * optional parameters, call the {@link ReportInfoSystem#execute()} method to invoke the remote * operation.

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

* * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.ReportInstanceInfoSystemRequest} * @since 1.13 */ protected ReportInfoSystem(java.lang.String name, com.google.api.services.notebooks.v2.model.ReportInstanceInfoSystemRequest content) { super(AIPlatformNotebooks.this, "POST", REST_PATH, content, com.google.api.services.notebooks.v2.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @Override public ReportInfoSystem set$Xgafv(java.lang.String $Xgafv) { return (ReportInfoSystem) super.set$Xgafv($Xgafv); } @Override public ReportInfoSystem setAccessToken(java.lang.String accessToken) { return (ReportInfoSystem) super.setAccessToken(accessToken); } @Override public ReportInfoSystem setAlt(java.lang.String alt) { return (ReportInfoSystem) super.setAlt(alt); } @Override public ReportInfoSystem setCallback(java.lang.String callback) { return (ReportInfoSystem) super.setCallback(callback); } @Override public ReportInfoSystem setFields(java.lang.String fields) { return (ReportInfoSystem) super.setFields(fields); } @Override public ReportInfoSystem setKey(java.lang.String key) { return (ReportInfoSystem) super.setKey(key); } @Override public ReportInfoSystem setOauthToken(java.lang.String oauthToken) { return (ReportInfoSystem) super.setOauthToken(oauthToken); } @Override public ReportInfoSystem setPrettyPrint(java.lang.Boolean prettyPrint) { return (ReportInfoSystem) super.setPrettyPrint(prettyPrint); } @Override public ReportInfoSystem setQuotaUser(java.lang.String quotaUser) { return (ReportInfoSystem) super.setQuotaUser(quotaUser); } @Override public ReportInfoSystem setUploadType(java.lang.String uploadType) { return (ReportInfoSystem) super.setUploadType(uploadType); } @Override public ReportInfoSystem setUploadProtocol(java.lang.String uploadProtocol) { return (ReportInfoSystem) super.setUploadProtocol(uploadProtocol); } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ @com.google.api.client.util.Key private java.lang.String name; /** Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public java.lang.String getName() { return name; } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public ReportInfoSystem setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } this.name = name; return this; } @Override public ReportInfoSystem set(String parameterName, Object value) { return (ReportInfoSystem) super.set(parameterName, value); } } /** * Resets a notebook instance. * * Create a request for the method "instances.reset". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link Reset#execute()} method to invoke the remote operation. * * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.ResetInstanceRequest} * @return the request */ public Reset reset(java.lang.String name, com.google.api.services.notebooks.v2.model.ResetInstanceRequest content) throws java.io.IOException { Reset result = new Reset(name, content); initialize(result); return result; } public class Reset extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+name}:reset"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * Resets a notebook instance. * * Create a request for the method "instances.reset". * * This request holds the parameters needed by the the notebooks server. After setting any * optional parameters, call the {@link Reset#execute()} method to invoke the remote operation. *

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

* * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.ResetInstanceRequest} * @since 1.13 */ protected Reset(java.lang.String name, com.google.api.services.notebooks.v2.model.ResetInstanceRequest content) { super(AIPlatformNotebooks.this, "POST", REST_PATH, content, com.google.api.services.notebooks.v2.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @Override public Reset set$Xgafv(java.lang.String $Xgafv) { return (Reset) super.set$Xgafv($Xgafv); } @Override public Reset setAccessToken(java.lang.String accessToken) { return (Reset) super.setAccessToken(accessToken); } @Override public Reset setAlt(java.lang.String alt) { return (Reset) super.setAlt(alt); } @Override public Reset setCallback(java.lang.String callback) { return (Reset) super.setCallback(callback); } @Override public Reset setFields(java.lang.String fields) { return (Reset) super.setFields(fields); } @Override public Reset setKey(java.lang.String key) { return (Reset) super.setKey(key); } @Override public Reset setOauthToken(java.lang.String oauthToken) { return (Reset) super.setOauthToken(oauthToken); } @Override public Reset setPrettyPrint(java.lang.Boolean prettyPrint) { return (Reset) super.setPrettyPrint(prettyPrint); } @Override public Reset setQuotaUser(java.lang.String quotaUser) { return (Reset) super.setQuotaUser(quotaUser); } @Override public Reset setUploadType(java.lang.String uploadType) { return (Reset) super.setUploadType(uploadType); } @Override public Reset setUploadProtocol(java.lang.String uploadProtocol) { return (Reset) super.setUploadProtocol(uploadProtocol); } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ @com.google.api.client.util.Key private java.lang.String name; /** Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public java.lang.String getName() { return name; } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public Reset setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } this.name = name; return this; } @Override public Reset set(String parameterName, Object value) { return (Reset) super.set(parameterName, value); } } /** * Resize a notebook instance disk to a higher capacity. * * Create a request for the method "instances.resizeDisk". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link ResizeDisk#execute()} method to invoke the remote operation. * * @param notebookInstance Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.ResizeDiskRequest} * @return the request */ public ResizeDisk resizeDisk(java.lang.String notebookInstance, com.google.api.services.notebooks.v2.model.ResizeDiskRequest content) throws java.io.IOException { ResizeDisk result = new ResizeDisk(notebookInstance, content); initialize(result); return result; } public class ResizeDisk extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+notebookInstance}:resizeDisk"; private final java.util.regex.Pattern NOTEBOOK_INSTANCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * Resize a notebook instance disk to a higher capacity. * * Create a request for the method "instances.resizeDisk". * * This request holds the parameters needed by the the notebooks server. After setting any * optional parameters, call the {@link ResizeDisk#execute()} method to invoke the remote * operation.

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

* * @param notebookInstance Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.ResizeDiskRequest} * @since 1.13 */ protected ResizeDisk(java.lang.String notebookInstance, com.google.api.services.notebooks.v2.model.ResizeDiskRequest content) { super(AIPlatformNotebooks.this, "POST", REST_PATH, content, com.google.api.services.notebooks.v2.model.Operation.class); this.notebookInstance = com.google.api.client.util.Preconditions.checkNotNull(notebookInstance, "Required parameter notebookInstance must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NOTEBOOK_INSTANCE_PATTERN.matcher(notebookInstance).matches(), "Parameter notebookInstance must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @Override public ResizeDisk set$Xgafv(java.lang.String $Xgafv) { return (ResizeDisk) super.set$Xgafv($Xgafv); } @Override public ResizeDisk setAccessToken(java.lang.String accessToken) { return (ResizeDisk) super.setAccessToken(accessToken); } @Override public ResizeDisk setAlt(java.lang.String alt) { return (ResizeDisk) super.setAlt(alt); } @Override public ResizeDisk setCallback(java.lang.String callback) { return (ResizeDisk) super.setCallback(callback); } @Override public ResizeDisk setFields(java.lang.String fields) { return (ResizeDisk) super.setFields(fields); } @Override public ResizeDisk setKey(java.lang.String key) { return (ResizeDisk) super.setKey(key); } @Override public ResizeDisk setOauthToken(java.lang.String oauthToken) { return (ResizeDisk) super.setOauthToken(oauthToken); } @Override public ResizeDisk setPrettyPrint(java.lang.Boolean prettyPrint) { return (ResizeDisk) super.setPrettyPrint(prettyPrint); } @Override public ResizeDisk setQuotaUser(java.lang.String quotaUser) { return (ResizeDisk) super.setQuotaUser(quotaUser); } @Override public ResizeDisk setUploadType(java.lang.String uploadType) { return (ResizeDisk) super.setUploadType(uploadType); } @Override public ResizeDisk setUploadProtocol(java.lang.String uploadProtocol) { return (ResizeDisk) super.setUploadProtocol(uploadProtocol); } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ @com.google.api.client.util.Key private java.lang.String notebookInstance; /** Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public java.lang.String getNotebookInstance() { return notebookInstance; } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public ResizeDisk setNotebookInstance(java.lang.String notebookInstance) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NOTEBOOK_INSTANCE_PATTERN.matcher(notebookInstance).matches(), "Parameter notebookInstance must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } this.notebookInstance = notebookInstance; return this; } @Override public ResizeDisk set(String parameterName, Object value) { return (ResizeDisk) super.set(parameterName, value); } } /** * RestoreInstance restores an Instance from a BackupSource. * * Create a request for the method "instances.restore". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link Restore#execute()} method to invoke the remote operation. * * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.RestoreInstanceRequest} * @return the request */ public Restore restore(java.lang.String name, com.google.api.services.notebooks.v2.model.RestoreInstanceRequest content) throws java.io.IOException { Restore result = new Restore(name, content); initialize(result); return result; } public class Restore extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+name}:restore"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * RestoreInstance restores an Instance from a BackupSource. * * Create a request for the method "instances.restore". * * This request holds the parameters needed by the the notebooks server. After setting any * optional parameters, call the {@link Restore#execute()} method to invoke the remote operation. *

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

* * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.RestoreInstanceRequest} * @since 1.13 */ protected Restore(java.lang.String name, com.google.api.services.notebooks.v2.model.RestoreInstanceRequest content) { super(AIPlatformNotebooks.this, "POST", REST_PATH, content, com.google.api.services.notebooks.v2.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @Override public Restore set$Xgafv(java.lang.String $Xgafv) { return (Restore) super.set$Xgafv($Xgafv); } @Override public Restore setAccessToken(java.lang.String accessToken) { return (Restore) super.setAccessToken(accessToken); } @Override public Restore setAlt(java.lang.String alt) { return (Restore) super.setAlt(alt); } @Override public Restore setCallback(java.lang.String callback) { return (Restore) super.setCallback(callback); } @Override public Restore setFields(java.lang.String fields) { return (Restore) super.setFields(fields); } @Override public Restore setKey(java.lang.String key) { return (Restore) super.setKey(key); } @Override public Restore setOauthToken(java.lang.String oauthToken) { return (Restore) super.setOauthToken(oauthToken); } @Override public Restore setPrettyPrint(java.lang.Boolean prettyPrint) { return (Restore) super.setPrettyPrint(prettyPrint); } @Override public Restore setQuotaUser(java.lang.String quotaUser) { return (Restore) super.setQuotaUser(quotaUser); } @Override public Restore setUploadType(java.lang.String uploadType) { return (Restore) super.setUploadType(uploadType); } @Override public Restore setUploadProtocol(java.lang.String uploadProtocol) { return (Restore) super.setUploadProtocol(uploadProtocol); } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ @com.google.api.client.util.Key private java.lang.String name; /** Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public java.lang.String getName() { return name; } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public Restore setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } this.name = name; return this; } @Override public Restore set(String parameterName, Object value) { return (Restore) super.set(parameterName, value); } } /** * Rollbacks a notebook instance to the previous version. * * Create a request for the method "instances.rollback". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link Rollback#execute()} method to invoke the remote operation. * * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.RollbackInstanceRequest} * @return the request */ public Rollback rollback(java.lang.String name, com.google.api.services.notebooks.v2.model.RollbackInstanceRequest content) throws java.io.IOException { Rollback result = new Rollback(name, content); initialize(result); return result; } public class Rollback extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+name}:rollback"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * Rollbacks a notebook instance to the previous version. * * Create a request for the method "instances.rollback". * * This request holds the parameters needed by the the notebooks server. After setting any * optional parameters, call the {@link Rollback#execute()} method to invoke the remote operation. *

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

* * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.RollbackInstanceRequest} * @since 1.13 */ protected Rollback(java.lang.String name, com.google.api.services.notebooks.v2.model.RollbackInstanceRequest content) { super(AIPlatformNotebooks.this, "POST", REST_PATH, content, com.google.api.services.notebooks.v2.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @Override public Rollback set$Xgafv(java.lang.String $Xgafv) { return (Rollback) super.set$Xgafv($Xgafv); } @Override public Rollback setAccessToken(java.lang.String accessToken) { return (Rollback) super.setAccessToken(accessToken); } @Override public Rollback setAlt(java.lang.String alt) { return (Rollback) super.setAlt(alt); } @Override public Rollback setCallback(java.lang.String callback) { return (Rollback) super.setCallback(callback); } @Override public Rollback setFields(java.lang.String fields) { return (Rollback) super.setFields(fields); } @Override public Rollback setKey(java.lang.String key) { return (Rollback) super.setKey(key); } @Override public Rollback setOauthToken(java.lang.String oauthToken) { return (Rollback) super.setOauthToken(oauthToken); } @Override public Rollback setPrettyPrint(java.lang.Boolean prettyPrint) { return (Rollback) super.setPrettyPrint(prettyPrint); } @Override public Rollback setQuotaUser(java.lang.String quotaUser) { return (Rollback) super.setQuotaUser(quotaUser); } @Override public Rollback setUploadType(java.lang.String uploadType) { return (Rollback) super.setUploadType(uploadType); } @Override public Rollback setUploadProtocol(java.lang.String uploadProtocol) { return (Rollback) super.setUploadProtocol(uploadProtocol); } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ @com.google.api.client.util.Key private java.lang.String name; /** Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public java.lang.String getName() { return name; } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public Rollback setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } this.name = name; return this; } @Override public Rollback set(String parameterName, Object value) { return (Rollback) super.set(parameterName, value); } } /** * Sets the access control policy on the specified resource. Replaces any existing policy. Can * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * * Create a request for the method "instances.setIamPolicy". * * This request holds the parameters needed by the notebooks 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.notebooks.v2.model.SetIamPolicyRequest} * @return the request */ public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.notebooks.v2.model.SetIamPolicyRequest content) throws java.io.IOException { SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; } public class SetIamPolicy extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+resource}:setIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * Sets the access control policy on the specified resource. Replaces any existing policy. Can * return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. * * Create a request for the method "instances.setIamPolicy". * * This request holds the parameters needed by the the notebooks 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.notebooks.v2.model.SetIamPolicyRequest} * @since 1.13 */ protected SetIamPolicy(java.lang.String resource, com.google.api.services.notebooks.v2.model.SetIamPolicyRequest content) { super(AIPlatformNotebooks.this, "POST", REST_PATH, content, com.google.api.services.notebooks.v2.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/[^/]+/instances/[^/]+$"); } } @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/[^/]+/instances/[^/]+$"); } this.resource = resource; return this; } @Override public SetIamPolicy set(String parameterName, Object value) { return (SetIamPolicy) super.set(parameterName, value); } } /** * Starts a notebook instance. * * Create a request for the method "instances.start". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link Start#execute()} method to invoke the remote operation. * * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.StartInstanceRequest} * @return the request */ public Start start(java.lang.String name, com.google.api.services.notebooks.v2.model.StartInstanceRequest content) throws java.io.IOException { Start result = new Start(name, content); initialize(result); return result; } public class Start extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+name}:start"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * Starts a notebook instance. * * Create a request for the method "instances.start". * * This request holds the parameters needed by the the notebooks server. After setting any * optional parameters, call the {@link Start#execute()} method to invoke the remote operation. *

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

* * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.StartInstanceRequest} * @since 1.13 */ protected Start(java.lang.String name, com.google.api.services.notebooks.v2.model.StartInstanceRequest content) { super(AIPlatformNotebooks.this, "POST", REST_PATH, content, com.google.api.services.notebooks.v2.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @Override public Start set$Xgafv(java.lang.String $Xgafv) { return (Start) super.set$Xgafv($Xgafv); } @Override public Start setAccessToken(java.lang.String accessToken) { return (Start) super.setAccessToken(accessToken); } @Override public Start setAlt(java.lang.String alt) { return (Start) super.setAlt(alt); } @Override public Start setCallback(java.lang.String callback) { return (Start) super.setCallback(callback); } @Override public Start setFields(java.lang.String fields) { return (Start) super.setFields(fields); } @Override public Start setKey(java.lang.String key) { return (Start) super.setKey(key); } @Override public Start setOauthToken(java.lang.String oauthToken) { return (Start) super.setOauthToken(oauthToken); } @Override public Start setPrettyPrint(java.lang.Boolean prettyPrint) { return (Start) super.setPrettyPrint(prettyPrint); } @Override public Start setQuotaUser(java.lang.String quotaUser) { return (Start) super.setQuotaUser(quotaUser); } @Override public Start setUploadType(java.lang.String uploadType) { return (Start) super.setUploadType(uploadType); } @Override public Start setUploadProtocol(java.lang.String uploadProtocol) { return (Start) super.setUploadProtocol(uploadProtocol); } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ @com.google.api.client.util.Key private java.lang.String name; /** Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public java.lang.String getName() { return name; } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public Start setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } this.name = name; return this; } @Override public Start set(String parameterName, Object value) { return (Start) super.set(parameterName, value); } } /** * Stops a notebook instance. * * Create a request for the method "instances.stop". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link Stop#execute()} method to invoke the remote operation. * * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.StopInstanceRequest} * @return the request */ public Stop stop(java.lang.String name, com.google.api.services.notebooks.v2.model.StopInstanceRequest content) throws java.io.IOException { Stop result = new Stop(name, content); initialize(result); return result; } public class Stop extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+name}:stop"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * Stops a notebook instance. * * Create a request for the method "instances.stop". * * This request holds the parameters needed by the the notebooks server. After setting any * optional parameters, call the {@link Stop#execute()} method to invoke the remote operation.

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

* * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.StopInstanceRequest} * @since 1.13 */ protected Stop(java.lang.String name, com.google.api.services.notebooks.v2.model.StopInstanceRequest content) { super(AIPlatformNotebooks.this, "POST", REST_PATH, content, com.google.api.services.notebooks.v2.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @Override public Stop set$Xgafv(java.lang.String $Xgafv) { return (Stop) super.set$Xgafv($Xgafv); } @Override public Stop setAccessToken(java.lang.String accessToken) { return (Stop) super.setAccessToken(accessToken); } @Override public Stop setAlt(java.lang.String alt) { return (Stop) super.setAlt(alt); } @Override public Stop setCallback(java.lang.String callback) { return (Stop) super.setCallback(callback); } @Override public Stop setFields(java.lang.String fields) { return (Stop) super.setFields(fields); } @Override public Stop setKey(java.lang.String key) { return (Stop) super.setKey(key); } @Override public Stop setOauthToken(java.lang.String oauthToken) { return (Stop) super.setOauthToken(oauthToken); } @Override public Stop setPrettyPrint(java.lang.Boolean prettyPrint) { return (Stop) super.setPrettyPrint(prettyPrint); } @Override public Stop setQuotaUser(java.lang.String quotaUser) { return (Stop) super.setQuotaUser(quotaUser); } @Override public Stop setUploadType(java.lang.String uploadType) { return (Stop) super.setUploadType(uploadType); } @Override public Stop setUploadProtocol(java.lang.String uploadProtocol) { return (Stop) super.setUploadProtocol(uploadProtocol); } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ @com.google.api.client.util.Key private java.lang.String name; /** Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public java.lang.String getName() { return name; } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public Stop setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } this.name = name; return this; } @Override public Stop set(String parameterName, Object value) { return (Stop) super.set(parameterName, value); } } /** * Returns permissions that a caller has on the specified resource. If the resource does not exist, * this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is * designed to be used for building permission-aware UIs and command-line tools, not for * authorization checking. This operation may "fail open" without warning. * * Create a request for the method "instances.testIamPermissions". * * This request holds the parameters needed by the notebooks 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.notebooks.v2.model.TestIamPermissionsRequest} * @return the request */ public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.notebooks.v2.model.TestIamPermissionsRequest content) throws java.io.IOException { TestIamPermissions result = new TestIamPermissions(resource, content); initialize(result); return result; } public class TestIamPermissions extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+resource}:testIamPermissions"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * Returns permissions that a caller has on the specified resource. If the resource does not * exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This * operation is designed to be used for building permission-aware UIs and command-line tools, not * for authorization checking. This operation may "fail open" without warning. * * Create a request for the method "instances.testIamPermissions". * * This request holds the parameters needed by the the notebooks 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.notebooks.v2.model.TestIamPermissionsRequest} * @since 1.13 */ protected TestIamPermissions(java.lang.String resource, com.google.api.services.notebooks.v2.model.TestIamPermissionsRequest content) { super(AIPlatformNotebooks.this, "POST", REST_PATH, content, com.google.api.services.notebooks.v2.model.TestIamPermissionsResponse.class); this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), "Parameter resource must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @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/[^/]+/instances/[^/]+$"); } this.resource = resource; return this; } @Override public TestIamPermissions set(String parameterName, Object value) { return (TestIamPermissions) super.set(parameterName, value); } } /** * Upgrades a notebook instance to the latest version. * * Create a request for the method "instances.upgrade". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link Upgrade#execute()} method to invoke the remote operation. * * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.UpgradeInstanceRequest} * @return the request */ public Upgrade upgrade(java.lang.String name, com.google.api.services.notebooks.v2.model.UpgradeInstanceRequest content) throws java.io.IOException { Upgrade result = new Upgrade(name, content); initialize(result); return result; } public class Upgrade extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+name}:upgrade"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * Upgrades a notebook instance to the latest version. * * Create a request for the method "instances.upgrade". * * This request holds the parameters needed by the the notebooks server. After setting any * optional parameters, call the {@link Upgrade#execute()} method to invoke the remote operation. *

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

* * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.UpgradeInstanceRequest} * @since 1.13 */ protected Upgrade(java.lang.String name, com.google.api.services.notebooks.v2.model.UpgradeInstanceRequest content) { super(AIPlatformNotebooks.this, "POST", REST_PATH, content, com.google.api.services.notebooks.v2.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @Override public Upgrade set$Xgafv(java.lang.String $Xgafv) { return (Upgrade) super.set$Xgafv($Xgafv); } @Override public Upgrade setAccessToken(java.lang.String accessToken) { return (Upgrade) super.setAccessToken(accessToken); } @Override public Upgrade setAlt(java.lang.String alt) { return (Upgrade) super.setAlt(alt); } @Override public Upgrade setCallback(java.lang.String callback) { return (Upgrade) super.setCallback(callback); } @Override public Upgrade setFields(java.lang.String fields) { return (Upgrade) super.setFields(fields); } @Override public Upgrade setKey(java.lang.String key) { return (Upgrade) super.setKey(key); } @Override public Upgrade setOauthToken(java.lang.String oauthToken) { return (Upgrade) super.setOauthToken(oauthToken); } @Override public Upgrade setPrettyPrint(java.lang.Boolean prettyPrint) { return (Upgrade) super.setPrettyPrint(prettyPrint); } @Override public Upgrade setQuotaUser(java.lang.String quotaUser) { return (Upgrade) super.setQuotaUser(quotaUser); } @Override public Upgrade setUploadType(java.lang.String uploadType) { return (Upgrade) super.setUploadType(uploadType); } @Override public Upgrade setUploadProtocol(java.lang.String uploadProtocol) { return (Upgrade) super.setUploadProtocol(uploadProtocol); } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ @com.google.api.client.util.Key private java.lang.String name; /** Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public java.lang.String getName() { return name; } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public Upgrade setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } this.name = name; return this; } @Override public Upgrade set(String parameterName, Object value) { return (Upgrade) super.set(parameterName, value); } } /** * Allows notebook instances to upgrade themselves. Do not use this method directly. * * Create a request for the method "instances.upgradeSystem". * * This request holds the parameters needed by the notebooks server. After setting any optional * parameters, call the {@link UpgradeSystem#execute()} method to invoke the remote operation. * * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.UpgradeInstanceSystemRequest} * @return the request */ public UpgradeSystem upgradeSystem(java.lang.String name, com.google.api.services.notebooks.v2.model.UpgradeInstanceSystemRequest content) throws java.io.IOException { UpgradeSystem result = new UpgradeSystem(name, content); initialize(result); return result; } public class UpgradeSystem extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+name}:upgradeSystem"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); /** * Allows notebook instances to upgrade themselves. Do not use this method directly. * * Create a request for the method "instances.upgradeSystem". * * This request holds the parameters needed by the the notebooks server. After setting any * optional parameters, call the {@link UpgradeSystem#execute()} method to invoke the remote * operation.

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

* * @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` * @param content the {@link com.google.api.services.notebooks.v2.model.UpgradeInstanceSystemRequest} * @since 1.13 */ protected UpgradeSystem(java.lang.String name, com.google.api.services.notebooks.v2.model.UpgradeInstanceSystemRequest content) { super(AIPlatformNotebooks.this, "POST", REST_PATH, content, com.google.api.services.notebooks.v2.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } } @Override public UpgradeSystem set$Xgafv(java.lang.String $Xgafv) { return (UpgradeSystem) super.set$Xgafv($Xgafv); } @Override public UpgradeSystem setAccessToken(java.lang.String accessToken) { return (UpgradeSystem) super.setAccessToken(accessToken); } @Override public UpgradeSystem setAlt(java.lang.String alt) { return (UpgradeSystem) super.setAlt(alt); } @Override public UpgradeSystem setCallback(java.lang.String callback) { return (UpgradeSystem) super.setCallback(callback); } @Override public UpgradeSystem setFields(java.lang.String fields) { return (UpgradeSystem) super.setFields(fields); } @Override public UpgradeSystem setKey(java.lang.String key) { return (UpgradeSystem) super.setKey(key); } @Override public UpgradeSystem setOauthToken(java.lang.String oauthToken) { return (UpgradeSystem) super.setOauthToken(oauthToken); } @Override public UpgradeSystem setPrettyPrint(java.lang.Boolean prettyPrint) { return (UpgradeSystem) super.setPrettyPrint(prettyPrint); } @Override public UpgradeSystem setQuotaUser(java.lang.String quotaUser) { return (UpgradeSystem) super.setQuotaUser(quotaUser); } @Override public UpgradeSystem setUploadType(java.lang.String uploadType) { return (UpgradeSystem) super.setUploadType(uploadType); } @Override public UpgradeSystem setUploadProtocol(java.lang.String uploadProtocol) { return (UpgradeSystem) super.setUploadProtocol(uploadProtocol); } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ @com.google.api.client.util.Key private java.lang.String name; /** Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public java.lang.String getName() { return name; } /** * Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}` */ public UpgradeSystem setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/instances/[^/]+$"); } this.name = name; return this; } @Override public UpgradeSystem set(String parameterName, Object value) { return (UpgradeSystem) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Operations collection. * *

The typical use is:

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

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

* * @param name The name of the operation resource to be cancelled. * @param content the {@link com.google.api.services.notebooks.v2.model.CancelOperationRequest} * @since 1.13 */ protected Cancel(java.lang.String name, com.google.api.services.notebooks.v2.model.CancelOperationRequest content) { super(AIPlatformNotebooks.this, "POST", REST_PATH, content, com.google.api.services.notebooks.v2.model.Empty.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @Override public Cancel set$Xgafv(java.lang.String $Xgafv) { return (Cancel) super.set$Xgafv($Xgafv); } @Override public Cancel setAccessToken(java.lang.String accessToken) { return (Cancel) super.setAccessToken(accessToken); } @Override public Cancel setAlt(java.lang.String alt) { return (Cancel) super.setAlt(alt); } @Override public Cancel setCallback(java.lang.String callback) { return (Cancel) super.setCallback(callback); } @Override public Cancel setFields(java.lang.String fields) { return (Cancel) super.setFields(fields); } @Override public Cancel setKey(java.lang.String key) { return (Cancel) super.setKey(key); } @Override public Cancel setOauthToken(java.lang.String oauthToken) { return (Cancel) super.setOauthToken(oauthToken); } @Override public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { return (Cancel) super.setPrettyPrint(prettyPrint); } @Override public Cancel setQuotaUser(java.lang.String quotaUser) { return (Cancel) super.setQuotaUser(quotaUser); } @Override public Cancel setUploadType(java.lang.String uploadType) { return (Cancel) super.setUploadType(uploadType); } @Override public Cancel setUploadProtocol(java.lang.String uploadProtocol) { return (Cancel) super.setUploadProtocol(uploadProtocol); } /** The name of the operation resource to be cancelled. */ @com.google.api.client.util.Key private java.lang.String name; /** The name of the operation resource to be cancelled. */ public java.lang.String getName() { return name; } /** The name of the operation resource to be cancelled. */ public Cancel setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } this.name = name; return this; } @Override public Cancel set(String parameterName, Object value) { return (Cancel) super.set(parameterName, value); } } /** * Deletes a long-running operation. This method indicates that the client is no longer interested * in the operation result. It does not cancel the operation. If the server doesn't support this * method, it returns `google.rpc.Code.UNIMPLEMENTED`. * * Create a request for the method "operations.delete". * * This request holds the parameters needed by the notebooks 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 AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+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 notebooks 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(AIPlatformNotebooks.this, "DELETE", REST_PATH, null, com.google.api.services.notebooks.v2.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 notebooks 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 AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+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 notebooks 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(AIPlatformNotebooks.this, "GET", REST_PATH, null, com.google.api.services.notebooks.v2.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^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 notebooks server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param name The name of the operation's parent resource. * @return the request */ public List list(java.lang.String name) throws java.io.IOException { List result = new List(name); initialize(result); return result; } public class List extends AIPlatformNotebooksRequest { private static final String REST_PATH = "v2/{+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 notebooks server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation.

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

* * @param name The name of the operation's parent resource. * @since 1.13 */ protected List(java.lang.String name) { super(AIPlatformNotebooks.this, "GET", REST_PATH, null, com.google.api.services.notebooks.v2.model.ListOperationsResponse.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^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 name of the operation's parent resource. */ @com.google.api.client.util.Key private java.lang.String name; /** The name of the operation's parent resource. */ public java.lang.String getName() { return name; } /** The name of the operation's parent resource. */ public List setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } this.name = name; return this; } /** The standard list filter. */ @com.google.api.client.util.Key private java.lang.String filter; /** The standard list filter. */ public java.lang.String getFilter() { return filter; } /** The standard list filter. */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } /** The standard list page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** The standard list page size. */ public java.lang.Integer getPageSize() { return pageSize; } /** The standard list page size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** The standard list page token. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The standard list page token. */ public java.lang.String getPageToken() { return pageToken; } /** The standard list page token. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } } } /** * Builder for {@link AIPlatformNotebooks}. * *

* 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 AIPlatformNotebooks}. */ @Override public AIPlatformNotebooks build() { return new AIPlatformNotebooks(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 AIPlatformNotebooksRequestInitializer}. * * @since 1.12 */ public Builder setAIPlatformNotebooksRequestInitializer( AIPlatformNotebooksRequestInitializer aiplatformnotebooksRequestInitializer) { return (Builder) super.setGoogleClientRequestInitializer(aiplatformnotebooksRequestInitializer); } @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