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

Commit f1523a2

Browse files
feat: add encryption_spec to aiplatform v1beta1 (#167)
* changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore: update gapic-generator-java to 0.0.18 Committer: @miraleung PiperOrigin-RevId: 350949863 Source-Author: Google APIs <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> Source-Date: Tue Feb 16 14:06:04 2021 -0800 Source-Repo: googleapis/googleapis Source-Sha: e8bc4471a88ac5f60defe3ed436f517174e59ba0 Source-Link: googleapis/googleapis@e8bc447 * chore: add clirr-ignored-differences to allow breaking changes Co-authored-by: Neenu1995 <[email protected]> Co-authored-by: Neenu Shaji <[email protected]>
1 parent 2bc6541 commit f1523a2

File tree

66 files changed

+5695
-2281
lines changed

Some content is hidden

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

66 files changed

+5695
-2281
lines changed

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClient.java

Lines changed: 614 additions & 0 deletions
Large diffs are not rendered by default.

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointServiceClient.java

Lines changed: 415 additions & 0 deletions
Large diffs are not rendered by default.

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/JobServiceClient.java

Lines changed: 1151 additions & 0 deletions
Large diffs are not rendered by default.

google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/MigrationServiceClient.java

Lines changed: 153 additions & 0 deletions
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().
@@ -165,6 +175,18 @@ public final OperationsClient getOperationsClient() {
165175
* Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and
166176
* ml.googleapis.com that can be migrated to AI Platform's given location.
167177
*
178+
* <p>Sample code:
179+
*
180+
* <pre>{@code
181+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
182+
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
183+
* for (MigratableResource element :
184+
* migrationServiceClient.searchMigratableResources(parent).iterateAll()) {
185+
* // doThingsWith(element);
186+
* }
187+
* }
188+
* }</pre>
189+
*
168190
* @param parent Required. The location that the migratable resources should be searched from.
169191
* It's the AI Platform location that the resources can be migrated to, not the resources'
170192
* original location. Format: `projects/{project}/locations/{location}`
@@ -184,6 +206,18 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
184206
* Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and
185207
* ml.googleapis.com that can be migrated to AI Platform's given location.
186208
*
209+
* <p>Sample code:
210+
*
211+
* <pre>{@code
212+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
213+
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
214+
* for (MigratableResource element :
215+
* migrationServiceClient.searchMigratableResources(parent).iterateAll()) {
216+
* // doThingsWith(element);
217+
* }
218+
* }
219+
* }</pre>
220+
*
187221
* @param parent Required. The location that the migratable resources should be searched from.
188222
* It's the AI Platform location that the resources can be migrated to, not the resources'
189223
* original location. Format: `projects/{project}/locations/{location}`
@@ -200,6 +234,24 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(St
200234
* Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and
201235
* ml.googleapis.com that can be migrated to AI Platform's given location.
202236
*
237+
* <p>Sample code:
238+
*
239+
* <pre>{@code
240+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
241+
* SearchMigratableResourcesRequest request =
242+
* SearchMigratableResourcesRequest.newBuilder()
243+
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
244+
* .setPageSize(883849137)
245+
* .setPageToken("pageToken873572522")
246+
* .setFilter("filter-1274492040")
247+
* .build();
248+
* for (MigratableResource element :
249+
* migrationServiceClient.searchMigratableResources(request).iterateAll()) {
250+
* // doThingsWith(element);
251+
* }
252+
* }
253+
* }</pre>
254+
*
203255
* @param request The request object containing all of the parameters for the API call.
204256
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
205257
*/
@@ -214,6 +266,24 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
214266
* ml.googleapis.com that can be migrated to AI Platform's given location.
215267
*
216268
* <p>Sample code:
269+
*
270+
* <pre>{@code
271+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
272+
* SearchMigratableResourcesRequest request =
273+
* SearchMigratableResourcesRequest.newBuilder()
274+
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
275+
* .setPageSize(883849137)
276+
* .setPageToken("pageToken873572522")
277+
* .setFilter("filter-1274492040")
278+
* .build();
279+
* ApiFuture<MigratableResource> future =
280+
* migrationServiceClient.searchMigratableResourcesPagedCallable().futureCall(request);
281+
* // Do something.
282+
* for (MigratableResource element : future.get().iterateAll()) {
283+
* // doThingsWith(element);
284+
* }
285+
* }
286+
* }</pre>
217287
*/
218288
public final UnaryCallable<
219289
SearchMigratableResourcesRequest, SearchMigratableResourcesPagedResponse>
@@ -227,6 +297,24 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
227297
* ml.googleapis.com that can be migrated to AI Platform's given location.
228298
*
229299
* <p>Sample code:
300+
*
301+
* <pre>{@code
302+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
303+
* while (true) {
304+
* SearchMigratableResourcesResponse response =
305+
* migrationServiceClient.searchMigratableResourcesCallable().call(request);
306+
* for (MigratableResource element : response.getResponsesList()) {
307+
* // doThingsWith(element);
308+
* }
309+
* String nextPageToken = response.getNextPageToken();
310+
* if (!Strings.isNullOrEmpty(nextPageToken)) {
311+
* request = request.toBuilder().setPageToken(nextPageToken).build();
312+
* } else {
313+
* break;
314+
* }
315+
* }
316+
* }
317+
* }</pre>
230318
*/
231319
public final UnaryCallable<SearchMigratableResourcesRequest, SearchMigratableResourcesResponse>
232320
searchMigratableResourcesCallable() {
@@ -238,6 +326,17 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
238326
* Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and
239327
* datalabeling.googleapis.com to AI Platform (Unified).
240328
*
329+
* <p>Sample code:
330+
*
331+
* <pre>{@code
332+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
333+
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
334+
* List<MigrateResourceRequest> migrateResourceRequests = new ArrayList<>();
335+
* BatchMigrateResourcesResponse response =
336+
* migrationServiceClient.batchMigrateResourcesAsync(parent, migrateResourceRequests).get();
337+
* }
338+
* }</pre>
339+
*
241340
* @param parent Required. The location of the migrated resource will live in. Format:
242341
* `projects/{project}/locations/{location}`
243342
* @param migrateResourceRequests Required. The request messages specifying the resources to
@@ -262,6 +361,17 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
262361
* Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and
263362
* datalabeling.googleapis.com to AI Platform (Unified).
264363
*
364+
* <p>Sample code:
365+
*
366+
* <pre>{@code
367+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
368+
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
369+
* List<MigrateResourceRequest> migrateResourceRequests = new ArrayList<>();
370+
* BatchMigrateResourcesResponse response =
371+
* migrationServiceClient.batchMigrateResourcesAsync(parent, migrateResourceRequests).get();
372+
* }
373+
* }</pre>
374+
*
265375
* @param parent Required. The location of the migrated resource will live in. Format:
266376
* `projects/{project}/locations/{location}`
267377
* @param migrateResourceRequests Required. The request messages specifying the resources to
@@ -286,6 +396,20 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
286396
* Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and
287397
* datalabeling.googleapis.com to AI Platform (Unified).
288398
*
399+
* <p>Sample code:
400+
*
401+
* <pre>{@code
402+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
403+
* BatchMigrateResourcesRequest request =
404+
* BatchMigrateResourcesRequest.newBuilder()
405+
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
406+
* .addAllMigrateResourceRequests(new ArrayList<MigrateResourceRequest>())
407+
* .build();
408+
* BatchMigrateResourcesResponse response =
409+
* migrationServiceClient.batchMigrateResourcesAsync(request).get();
410+
* }
411+
* }</pre>
412+
*
289413
* @param request The request object containing all of the parameters for the API call.
290414
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
291415
*/
@@ -301,6 +425,21 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
301425
* datalabeling.googleapis.com to AI Platform (Unified).
302426
*
303427
* <p>Sample code:
428+
*
429+
* <pre>{@code
430+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
431+
* BatchMigrateResourcesRequest request =
432+
* BatchMigrateResourcesRequest.newBuilder()
433+
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
434+
* .addAllMigrateResourceRequests(new ArrayList<MigrateResourceRequest>())
435+
* .build();
436+
* OperationFuture<BatchMigrateResourcesResponse, BatchMigrateResourcesOperationMetadata>
437+
* future =
438+
* migrationServiceClient.batchMigrateResourcesOperationCallable().futureCall(request);
439+
* // Do something.
440+
* BatchMigrateResourcesResponse response = future.get();
441+
* }
442+
* }</pre>
304443
*/
305444
public final OperationCallable<
306445
BatchMigrateResourcesRequest,
@@ -316,6 +455,20 @@ public final SearchMigratableResourcesPagedResponse searchMigratableResources(
316455
* datalabeling.googleapis.com to AI Platform (Unified).
317456
*
318457
* <p>Sample code:
458+
*
459+
* <pre>{@code
460+
* try (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) {
461+
* BatchMigrateResourcesRequest request =
462+
* BatchMigrateResourcesRequest.newBuilder()
463+
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
464+
* .addAllMigrateResourceRequests(new ArrayList<MigrateResourceRequest>())
465+
* .build();
466+
* ApiFuture<Operation> future =
467+
* migrationServiceClient.batchMigrateResourcesCallable().futureCall(request);
468+
* // Do something.
469+
* Operation response = future.get();
470+
* }
471+
* }</pre>
319472
*/
320473
public final UnaryCallable<BatchMigrateResourcesRequest, Operation>
321474
batchMigrateResourcesCallable() {

0 commit comments

Comments
 (0)