Skip to content

Commit 85ce905

Browse files
1 parent ce173a0 commit 85ce905

File tree

9 files changed

+304
-12
lines changed

9 files changed

+304
-12
lines changed

clients/google-api-services-notebooks/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-notebooks</artifactId>
25-
<version>v1-rev20240314-2.0.0</version>
25+
<version>v1-rev20240820-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-notebooks:v1-rev20240314-2.0.0'
38+
implementation 'com.google.apis:google-api-services-notebooks:v1-rev20240820-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-notebooks/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-notebooks</artifactId>
11-
<version>v1-rev20240314-2.0.0</version>
12-
<name>Notebooks API v1-rev20240314-2.0.0</name>
11+
<version>v1-rev20240820-2.0.0</version>
12+
<name>Notebooks API v1-rev20240820-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-notebooks/v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-notebooks</artifactId>
25-
<version>v1-rev20240314-2.0.0</version>
25+
<version>v1-rev20240820-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-notebooks:v1-rev20240314-2.0.0'
38+
implementation 'com.google.apis:google-api-services-notebooks:v1-rev20240820-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-notebooks/v2/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-notebooks</artifactId>
25-
<version>v2-rev20240731-2.0.0</version>
25+
<version>v2-rev20240820-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-notebooks:v2-rev20240731-2.0.0'
38+
implementation 'com.google.apis:google-api-services-notebooks:v2-rev20240820-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-notebooks/v2/2.0.0/com/google/api/services/notebooks/v2/AIPlatformNotebooks.java

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2397,6 +2397,141 @@ public ResizeDisk set(String parameterName, Object value) {
23972397
return (ResizeDisk) super.set(parameterName, value);
23982398
}
23992399
}
2400+
/**
2401+
* RestoreInstance restores an Instance from a BackupSource.
2402+
*
2403+
* Create a request for the method "instances.restore".
2404+
*
2405+
* This request holds the parameters needed by the notebooks server. After setting any optional
2406+
* parameters, call the {@link Restore#execute()} method to invoke the remote operation.
2407+
*
2408+
* @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
2409+
* @param content the {@link com.google.api.services.notebooks.v2.model.RestoreInstanceRequest}
2410+
* @return the request
2411+
*/
2412+
public Restore restore(java.lang.String name, com.google.api.services.notebooks.v2.model.RestoreInstanceRequest content) throws java.io.IOException {
2413+
Restore result = new Restore(name, content);
2414+
initialize(result);
2415+
return result;
2416+
}
2417+
2418+
public class Restore extends AIPlatformNotebooksRequest<com.google.api.services.notebooks.v2.model.Operation> {
2419+
2420+
private static final String REST_PATH = "v2/{+name}:restore";
2421+
2422+
private final java.util.regex.Pattern NAME_PATTERN =
2423+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/instances/[^/]+$");
2424+
2425+
/**
2426+
* RestoreInstance restores an Instance from a BackupSource.
2427+
*
2428+
* Create a request for the method "instances.restore".
2429+
*
2430+
* This request holds the parameters needed by the the notebooks server. After setting any
2431+
* optional parameters, call the {@link Restore#execute()} method to invoke the remote operation.
2432+
* <p> {@link
2433+
* Restore#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
2434+
* be called to initialize this instance immediately after invoking the constructor. </p>
2435+
*
2436+
* @param name Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
2437+
* @param content the {@link com.google.api.services.notebooks.v2.model.RestoreInstanceRequest}
2438+
* @since 1.13
2439+
*/
2440+
protected Restore(java.lang.String name, com.google.api.services.notebooks.v2.model.RestoreInstanceRequest content) {
2441+
super(AIPlatformNotebooks.this, "POST", REST_PATH, content, com.google.api.services.notebooks.v2.model.Operation.class);
2442+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
2443+
if (!getSuppressPatternChecks()) {
2444+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2445+
"Parameter name must conform to the pattern " +
2446+
"^projects/[^/]+/locations/[^/]+/instances/[^/]+$");
2447+
}
2448+
}
2449+
2450+
@Override
2451+
public Restore set$Xgafv(java.lang.String $Xgafv) {
2452+
return (Restore) super.set$Xgafv($Xgafv);
2453+
}
2454+
2455+
@Override
2456+
public Restore setAccessToken(java.lang.String accessToken) {
2457+
return (Restore) super.setAccessToken(accessToken);
2458+
}
2459+
2460+
@Override
2461+
public Restore setAlt(java.lang.String alt) {
2462+
return (Restore) super.setAlt(alt);
2463+
}
2464+
2465+
@Override
2466+
public Restore setCallback(java.lang.String callback) {
2467+
return (Restore) super.setCallback(callback);
2468+
}
2469+
2470+
@Override
2471+
public Restore setFields(java.lang.String fields) {
2472+
return (Restore) super.setFields(fields);
2473+
}
2474+
2475+
@Override
2476+
public Restore setKey(java.lang.String key) {
2477+
return (Restore) super.setKey(key);
2478+
}
2479+
2480+
@Override
2481+
public Restore setOauthToken(java.lang.String oauthToken) {
2482+
return (Restore) super.setOauthToken(oauthToken);
2483+
}
2484+
2485+
@Override
2486+
public Restore setPrettyPrint(java.lang.Boolean prettyPrint) {
2487+
return (Restore) super.setPrettyPrint(prettyPrint);
2488+
}
2489+
2490+
@Override
2491+
public Restore setQuotaUser(java.lang.String quotaUser) {
2492+
return (Restore) super.setQuotaUser(quotaUser);
2493+
}
2494+
2495+
@Override
2496+
public Restore setUploadType(java.lang.String uploadType) {
2497+
return (Restore) super.setUploadType(uploadType);
2498+
}
2499+
2500+
@Override
2501+
public Restore setUploadProtocol(java.lang.String uploadProtocol) {
2502+
return (Restore) super.setUploadProtocol(uploadProtocol);
2503+
}
2504+
2505+
/**
2506+
* Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
2507+
*/
2508+
@com.google.api.client.util.Key
2509+
private java.lang.String name;
2510+
2511+
/** Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
2512+
*/
2513+
public java.lang.String getName() {
2514+
return name;
2515+
}
2516+
2517+
/**
2518+
* Required. Format: `projects/{project_id}/locations/{location}/instances/{instance_id}`
2519+
*/
2520+
public Restore setName(java.lang.String name) {
2521+
if (!getSuppressPatternChecks()) {
2522+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2523+
"Parameter name must conform to the pattern " +
2524+
"^projects/[^/]+/locations/[^/]+/instances/[^/]+$");
2525+
}
2526+
this.name = name;
2527+
return this;
2528+
}
2529+
2530+
@Override
2531+
public Restore set(String parameterName, Object value) {
2532+
return (Restore) super.set(parameterName, value);
2533+
}
2534+
}
24002535
/**
24012536
* Rollbacks a notebook instance to the previous version.
24022537
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.notebooks.v2.model;
18+
19+
/**
20+
* Request for restoring the notebook instance from a BackupSource.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Notebooks API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class RestoreInstanceRequest extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Snapshot to be used for restore.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private Snapshot snapshot;
38+
39+
/**
40+
* Snapshot to be used for restore.
41+
* @return value or {@code null} for none
42+
*/
43+
public Snapshot getSnapshot() {
44+
return snapshot;
45+
}
46+
47+
/**
48+
* Snapshot to be used for restore.
49+
* @param snapshot snapshot or {@code null} for none
50+
*/
51+
public RestoreInstanceRequest setSnapshot(Snapshot snapshot) {
52+
this.snapshot = snapshot;
53+
return this;
54+
}
55+
56+
@Override
57+
public RestoreInstanceRequest set(String fieldName, Object value) {
58+
return (RestoreInstanceRequest) super.set(fieldName, value);
59+
}
60+
61+
@Override
62+
public RestoreInstanceRequest clone() {
63+
return (RestoreInstanceRequest) super.clone();
64+
}
65+
66+
}
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.notebooks.v2.model;
18+
19+
/**
20+
* Snapshot represents the snapshot of the data disk used to restore the Workbench Instance from.
21+
* Refers to: compute/v1/projects/{project_id}/global/snapshots/{snapshot_id}
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Notebooks API. For a detailed explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class Snapshot extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. The project ID of the snapshot.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String projectId;
39+
40+
/**
41+
* Required. The ID of the snapshot.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String snapshotId;
46+
47+
/**
48+
* Required. The project ID of the snapshot.
49+
* @return value or {@code null} for none
50+
*/
51+
public java.lang.String getProjectId() {
52+
return projectId;
53+
}
54+
55+
/**
56+
* Required. The project ID of the snapshot.
57+
* @param projectId projectId or {@code null} for none
58+
*/
59+
public Snapshot setProjectId(java.lang.String projectId) {
60+
this.projectId = projectId;
61+
return this;
62+
}
63+
64+
/**
65+
* Required. The ID of the snapshot.
66+
* @return value or {@code null} for none
67+
*/
68+
public java.lang.String getSnapshotId() {
69+
return snapshotId;
70+
}
71+
72+
/**
73+
* Required. The ID of the snapshot.
74+
* @param snapshotId snapshotId or {@code null} for none
75+
*/
76+
public Snapshot setSnapshotId(java.lang.String snapshotId) {
77+
this.snapshotId = snapshotId;
78+
return this;
79+
}
80+
81+
@Override
82+
public Snapshot set(String fieldName, Object value) {
83+
return (Snapshot) super.set(fieldName, value);
84+
}
85+
86+
@Override
87+
public Snapshot clone() {
88+
return (Snapshot) super.clone();
89+
}
90+
91+
}

clients/google-api-services-notebooks/v2/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-notebooks</artifactId>
11-
<version>v2-rev20240731-2.0.0</version>
12-
<name>Notebooks API v2-rev20240731-2.0.0</name>
11+
<version>v2-rev20240820-2.0.0</version>
12+
<name>Notebooks API v2-rev20240820-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-notebooks/v2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-notebooks</artifactId>
25-
<version>v2-rev20240731-2.0.0</version>
25+
<version>v2-rev20240820-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-notebooks:v2-rev20240731-2.0.0'
38+
implementation 'com.google.apis:google-api-services-notebooks:v2-rev20240820-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)