Skip to content
This repository was archived by the owner on Sep 9, 2023. It is now read-only.

Commit faff19b

Browse files
feat: add encryption_spec to aiplatform v1beta1 (#176)
* chore: update gapic-generator-java to 0.0.18 Committer: @miraleung PiperOrigin-RevId: 350949863 Source-Author: Google APIs <noreply@google.com> Source-Date: Sat Jan 9 14:01:49 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 91e206bcfeaf8948ea03fe3cb1b7616108496cd3 Source-Link: googleapis/googleapis@91e206b * feat: add encryption_spec to aiplatform v1beta1 PiperOrigin-RevId: 354148500 Source-Author: Google APIs <noreply@google.com> Source-Date: Wed Jan 27 12:35:58 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: d99d5d592f3d1d5526511c90120b1e9ab3ce6e17 Source-Link: googleapis/googleapis@d99d5d5 * feat: generate sample code in the Java microgenerator Committer: @miraleung PiperOrigin-RevId: 356341083 Source-Author: Google APIs <noreply@google.com> Source-Date: Mon Feb 8 13:33:28 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: 8d8c008e56f1af31d57f75561e0f1848ffb29eeb Source-Link: googleapis/googleapis@8d8c008 * chore: updates prediction and training proto files to v1beta1 AI Platform client libraries. feat!: removes unused protos from schema/ folders: schema/io_format.proto, schema/saved_query_metadata.proto feat!: ImageSegmentationPredictionResult.category_mask field changed to string data type feat: AutoMlImageSegmentationInputs.ModelType adds MOBILE_TF_LOW_LATENCY constant feat: AutoMlVideoClassificationInputs.ModelType adds MOBILE_JETSON_VERSATILE_1 constant Committer: @telpirion PiperOrigin-RevId: 357223795 Source-Author: Google APIs <noreply@google.com> Source-Date: Fri Feb 12 10:50:54 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: f9cd594c912a2ff456cc2b33f54dcc238133bb0c Source-Link: googleapis/googleapis@f9cd594 * chore: update gapic-generator-java to 0.0.20 Committer: @miraleung PiperOrigin-RevId: 357800868 Source-Author: Google APIs <noreply@google.com> Source-Date: Tue Feb 16 14:06:04 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: e8bc4471a88ac5f60defe3ed436f517174e59ba0 Source-Link: googleapis/googleapis@e8bc447 * chore: release gapic-generator-java v0.0.21 with gapic_metadata.json support Committer: @miraleung PiperOrigin-RevId: 358516065 Source-Author: Google APIs <noreply@google.com> Source-Date: Fri Feb 19 17:43:23 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: af8f71dae961ee036a0ac52a1965270149a6b2c9 Source-Link: googleapis/googleapis@af8f71d Co-authored-by: Neenu Shaji <Neenu1995@users.noreply.github.com>
1 parent 9fe4eea commit faff19b

File tree

193 files changed

+21333
-2521
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+21333
-2521
lines changed

Diff for: google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/DatasetServiceClient.java

+614
Large diffs are not rendered by default.

Diff for: google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/EndpointServiceClient.java

+417
Large diffs are not rendered by default.

Diff for: google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/JobServiceClient.java

+1,151
Large diffs are not rendered by default.

Diff for: google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/MigrationServiceClient.java

+153
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@
4646
* <p>This class provides the ability to make remote calls to the backing service through method
4747
* calls that map to API methods. Sample code to get started:
4848
*
49+
* <pre>{@code
50+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
51+
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
52+
* for (MigratableResource element :
53+
* migrationServiceClient.searchMigratableResources(parent).iterateAll()) {
54+
* // doThingsWith(element);
55+
* }
56+
* }
57+
* }</pre>
58+
*
4959
* <p>Note: close() needs to be called on the MigrationServiceClient object to clean up resources
5060
* such as threads. In the example above, try-with-resources is used, which automatically calls
5161
* close().
@@ -164,6 +174,18 @@ public final OperationsClient getOperationsClient() {
164174
* Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and
165175
* ml.googleapis.com that can be migrated to AI Platform's given location.
166176
*
177+
* <p>Sample code:
178+
*
179+
* <pre>{@code
180+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
181+
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
182+
* for (MigratableResource element :
183+
* migrationServiceClient.searchMigratableResources(parent).iterateAll()) {
184+
* // doThingsWith(element);
185+
* }
186+
* }
187+
* }</pre>
188+
*
167189
* @param parent Required. The location that the migratable resources should be searched from.
168190
* It's the AI Platform location that the resources can be migrated to, not the resources'
169191
* original location. Format: `projects/{project}/locations/{location}`
@@ -183,6 +205,18 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
183205
* Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and
184206
* ml.googleapis.com that can be migrated to AI Platform's given location.
185207
*
208+
* <p>Sample code:
209+
*
210+
* <pre>{@code
211+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
212+
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
213+
* for (MigratableResource element :
214+
* migrationServiceClient.searchMigratableResources(parent).iterateAll()) {
215+
* // doThingsWith(element);
216+
* }
217+
* }
218+
* }</pre>
219+
*
186220
* @param parent Required. The location that the migratable resources should be searched from.
187221
* It's the AI Platform location that the resources can be migrated to, not the resources'
188222
* original location. Format: `projects/{project}/locations/{location}`
@@ -199,6 +233,24 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(St
199233
* Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and
200234
* ml.googleapis.com that can be migrated to AI Platform's given location.
201235
*
236+
* <p>Sample code:
237+
*
238+
* <pre>{@code
239+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
240+
* SearchMigratableResourcesRequest request =
241+
* SearchMigratableResourcesRequest.newBuilder()
242+
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
243+
* .setPageSize(883849137)
244+
* .setPageToken("pageToken873572522")
245+
* .setFilter("filter-1274492040")
246+
* .build();
247+
* for (MigratableResource element :
248+
* migrationServiceClient.searchMigratableResources(request).iterateAll()) {
249+
* // doThingsWith(element);
250+
* }
251+
* }
252+
* }</pre>
253+
*
202254
* @param request The request object containing all of the parameters for the API call.
203255
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
204256
*/
@@ -213,6 +265,24 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
213265
* ml.googleapis.com that can be migrated to AI Platform's given location.
214266
*
215267
* <p>Sample code:
268+
*
269+
* <pre>{@code
270+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
271+
* SearchMigratableResourcesRequest request =
272+
* SearchMigratableResourcesRequest.newBuilder()
273+
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
274+
* .setPageSize(883849137)
275+
* .setPageToken("pageToken873572522")
276+
* .setFilter("filter-1274492040")
277+
* .build();
278+
* ApiFuture<MigratableResource> future =
279+
* migrationServiceClient.searchMigratableResourcesPagedCallable().futureCall(request);
280+
* // Do something.
281+
* for (MigratableResource element : future.get().iterateAll()) {
282+
* // doThingsWith(element);
283+
* }
284+
* }
285+
* }</pre>
216286
*/
217287
public final UnaryCallable<
218288
SearchMigratableResourcesRequest, SearchMigratableResourcesPagedResponse>
@@ -226,6 +296,24 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
226296
* ml.googleapis.com that can be migrated to AI Platform's given location.
227297
*
228298
* <p>Sample code:
299+
*
300+
* <pre>{@code
301+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
302+
* while (true) {
303+
* SearchMigratableResourcesResponse response =
304+
* migrationServiceClient.searchMigratableResourcesCallable().call(request);
305+
* for (MigratableResource element : response.getResponsesList()) {
306+
* // doThingsWith(element);
307+
* }
308+
* String nextPageToken = response.getNextPageToken();
309+
* if (!Strings.isNullOrEmpty(nextPageToken)) {
310+
* request = request.toBuilder().setPageToken(nextPageToken).build();
311+
* } else {
312+
* break;
313+
* }
314+
* }
315+
* }
316+
* }</pre>
229317
*/
230318
public final UnaryCallable<SearchMigratableResourcesRequest, SearchMigratableResourcesResponse>
231319
searchMigratableResourcesCallable() {
@@ -237,6 +325,17 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
237325
* Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and
238326
* datalabeling.googleapis.com to AI Platform (Unified).
239327
*
328+
* <p>Sample code:
329+
*
330+
* <pre>{@code
331+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
332+
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
333+
* List<MigrateResourceRequest> migrateResourceRequests = new ArrayList<>();
334+
* BatchMigrateResourcesResponse response =
335+
* migrationServiceClient.batchMigrateResourcesAsync(parent, migrateResourceRequests).get();
336+
* }
337+
* }</pre>
338+
*
240339
* @param parent Required. The location of the migrated resource will live in. Format:
241340
* `projects/{project}/locations/{location}`
242341
* @param migrateResourceRequests Required. The request messages specifying the resources to
@@ -261,6 +360,17 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
261360
* Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and
262361
* datalabeling.googleapis.com to AI Platform (Unified).
263362
*
363+
* <p>Sample code:
364+
*
365+
* <pre>{@code
366+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
367+
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
368+
* List<MigrateResourceRequest> migrateResourceRequests = new ArrayList<>();
369+
* BatchMigrateResourcesResponse response =
370+
* migrationServiceClient.batchMigrateResourcesAsync(parent, migrateResourceRequests).get();
371+
* }
372+
* }</pre>
373+
*
264374
* @param parent Required. The location of the migrated resource will live in. Format:
265375
* `projects/{project}/locations/{location}`
266376
* @param migrateResourceRequests Required. The request messages specifying the resources to
@@ -285,6 +395,20 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
285395
* Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and
286396
* datalabeling.googleapis.com to AI Platform (Unified).
287397
*
398+
* <p>Sample code:
399+
*
400+
* <pre>{@code
401+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
402+
* BatchMigrateResourcesRequest request =
403+
* BatchMigrateResourcesRequest.newBuilder()
404+
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
405+
* .addAllMigrateResourceRequests(new ArrayList<MigrateResourceRequest>())
406+
* .build();
407+
* BatchMigrateResourcesResponse response =
408+
* migrationServiceClient.batchMigrateResourcesAsync(request).get();
409+
* }
410+
* }</pre>
411+
*
288412
* @param request The request object containing all of the parameters for the API call.
289413
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
290414
*/
@@ -300,6 +424,21 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
300424
* datalabeling.googleapis.com to AI Platform (Unified).
301425
*
302426
* <p>Sample code:
427+
*
428+
* <pre>{@code
429+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
430+
* BatchMigrateResourcesRequest request =
431+
* BatchMigrateResourcesRequest.newBuilder()
432+
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
433+
* .addAllMigrateResourceRequests(new ArrayList<MigrateResourceRequest>())
434+
* .build();
435+
* OperationFuture<BatchMigrateResourcesResponse, BatchMigrateResourcesOperationMetadata>
436+
* future =
437+
* migrationServiceClient.batchMigrateResourcesOperationCallable().futureCall(request);
438+
* // Do something.
439+
* BatchMigrateResourcesResponse response = future.get();
440+
* }
441+
* }</pre>
303442
*/
304443
public final OperationCallable<
305444
BatchMigrateResourcesRequest,
@@ -315,6 +454,20 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
315454
* datalabeling.googleapis.com to AI Platform (Unified).
316455
*
317456
* <p>Sample code:
457+
*
458+
* <pre>{@code
459+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
460+
* BatchMigrateResourcesRequest request =
461+
* BatchMigrateResourcesRequest.newBuilder()
462+
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
463+
* .addAllMigrateResourceRequests(new ArrayList<MigrateResourceRequest>())
464+
* .build();
465+
* ApiFuture<Operation> future =
466+
* migrationServiceClient.batchMigrateResourcesCallable().futureCall(request);
467+
* // Do something.
468+
* Operation response = future.get();
469+
* }
470+
* }</pre>
318471
*/
319472
public final UnaryCallable<BatchMigrateResourcesRequest, Operation>
320473
batchMigrateResourcesCallable() {

0 commit comments

Comments
 (0)