google-cloud-ai_platform-v1 0.45.0 → 0.46.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +12 -4
  3. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client.rb +12 -4
  4. data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +5 -1
  5. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/client.rb +5 -1
  6. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +2 -1
  7. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/client.rb +2 -1
  8. data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +15 -4
  9. data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/client.rb +15 -4
  10. data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +5 -2
  11. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/client.rb +5 -2
  12. data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +434 -0
  13. data/lib/google/cloud/ai_platform/v1/notebook_service/paths.rb +38 -0
  14. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +406 -0
  15. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb +237 -0
  16. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  17. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
  18. data/lib/google/cloud/aiplatform/v1/content_pb.rb +6 -1
  19. data/lib/google/cloud/aiplatform/v1/custom_job_pb.rb +2 -1
  20. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +1 -1
  21. data/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb +1 -1
  22. data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +1 -1
  23. data/lib/google/cloud/aiplatform/v1/feature_online_store_service_pb.rb +3 -1
  24. data/lib/google/cloud/aiplatform/v1/model_garden_service_pb.rb +1 -1
  25. data/lib/google/cloud/aiplatform/v1/notebook_execution_job_pb.rb +55 -0
  26. data/lib/google/cloud/aiplatform/v1/notebook_service_pb.rb +10 -1
  27. data/lib/google/cloud/aiplatform/v1/notebook_service_services_pb.rb +8 -0
  28. data/lib/google/cloud/aiplatform/v1/persistent_resource_pb.rb +2 -1
  29. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
  30. data/lib/google/cloud/aiplatform/v1/tool_pb.rb +1 -1
  31. data/lib/google/cloud/aiplatform/v1/tuning_job_pb.rb +1 -1
  32. data/proto_docs/google/api/client.rb +14 -10
  33. data/proto_docs/google/api/resource.rb +7 -2
  34. data/proto_docs/google/cloud/aiplatform/v1/content.rb +85 -0
  35. data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +19 -0
  36. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +1 -1
  37. data/proto_docs/google/cloud/aiplatform/v1/dataset_version.rb +1 -1
  38. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +21 -0
  39. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_admin_service.rb +12 -4
  40. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb +57 -0
  41. data/proto_docs/google/cloud/aiplatform/v1/feature_registry_service.rb +3 -0
  42. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +2 -1
  43. data/proto_docs/google/cloud/aiplatform/v1/model_garden_service.rb +5 -1
  44. data/proto_docs/google/cloud/aiplatform/v1/notebook_execution_job.rb +144 -0
  45. data/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb +125 -0
  46. data/proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb +12 -0
  47. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +16 -3
  48. data/proto_docs/google/cloud/aiplatform/v1/study.rb +0 -1
  49. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +2 -3
  50. data/proto_docs/google/cloud/aiplatform/v1/tuning_job.rb +7 -0
  51. metadata +4 -2
@@ -1351,6 +1351,412 @@ module Google
1351
1351
  raise ::Google::Cloud::Error.from_error(e)
1352
1352
  end
1353
1353
 
1354
+ ##
1355
+ # Creates a NotebookExecutionJob.
1356
+ #
1357
+ # @overload create_notebook_execution_job(request, options = nil)
1358
+ # Pass arguments to `create_notebook_execution_job` via a request object, either of type
1359
+ # {::Google::Cloud::AIPlatform::V1::CreateNotebookExecutionJobRequest} or an equivalent Hash.
1360
+ #
1361
+ # @param request [::Google::Cloud::AIPlatform::V1::CreateNotebookExecutionJobRequest, ::Hash]
1362
+ # A request object representing the call parameters. Required. To specify no
1363
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1364
+ # @param options [::Gapic::CallOptions, ::Hash]
1365
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1366
+ #
1367
+ # @overload create_notebook_execution_job(parent: nil, notebook_execution_job: nil, notebook_execution_job_id: nil)
1368
+ # Pass arguments to `create_notebook_execution_job` via keyword arguments. Note that at
1369
+ # least one keyword argument is required. To specify no parameters, or to keep all
1370
+ # the default parameter values, pass an empty Hash as a request object (see above).
1371
+ #
1372
+ # @param parent [::String]
1373
+ # Required. The resource name of the Location to create the
1374
+ # NotebookExecutionJob. Format: `projects/{project}/locations/{location}`
1375
+ # @param notebook_execution_job [::Google::Cloud::AIPlatform::V1::NotebookExecutionJob, ::Hash]
1376
+ # Required. The NotebookExecutionJob to create.
1377
+ # @param notebook_execution_job_id [::String]
1378
+ # Optional. User specified ID for the NotebookExecutionJob.
1379
+ #
1380
+ # @yield [response, operation] Access the result along with the RPC operation
1381
+ # @yieldparam response [::Gapic::Operation]
1382
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1383
+ #
1384
+ # @return [::Gapic::Operation]
1385
+ #
1386
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1387
+ #
1388
+ # @example Basic example
1389
+ # require "google/cloud/ai_platform/v1"
1390
+ #
1391
+ # # Create a client object. The client can be reused for multiple calls.
1392
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Client.new
1393
+ #
1394
+ # # Create a request. To set request fields, pass in keyword arguments.
1395
+ # request = Google::Cloud::AIPlatform::V1::CreateNotebookExecutionJobRequest.new
1396
+ #
1397
+ # # Call the create_notebook_execution_job method.
1398
+ # result = client.create_notebook_execution_job request
1399
+ #
1400
+ # # The returned object is of type Gapic::Operation. You can use it to
1401
+ # # check the status of an operation, cancel it, or wait for results.
1402
+ # # Here is how to wait for a response.
1403
+ # result.wait_until_done! timeout: 60
1404
+ # if result.response?
1405
+ # p result.response
1406
+ # else
1407
+ # puts "No response received."
1408
+ # end
1409
+ #
1410
+ def create_notebook_execution_job request, options = nil
1411
+ raise ::ArgumentError, "request must be provided" if request.nil?
1412
+
1413
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateNotebookExecutionJobRequest
1414
+
1415
+ # Converts hash and nil to an options object
1416
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1417
+
1418
+ # Customize the options with defaults
1419
+ metadata = @config.rpcs.create_notebook_execution_job.metadata.to_h
1420
+
1421
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1422
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1423
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1424
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1425
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1426
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1427
+
1428
+ header_params = {}
1429
+ if request.parent
1430
+ header_params["parent"] = request.parent
1431
+ end
1432
+
1433
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1434
+ metadata[:"x-goog-request-params"] ||= request_params_header
1435
+
1436
+ options.apply_defaults timeout: @config.rpcs.create_notebook_execution_job.timeout,
1437
+ metadata: metadata,
1438
+ retry_policy: @config.rpcs.create_notebook_execution_job.retry_policy
1439
+
1440
+ options.apply_defaults timeout: @config.timeout,
1441
+ metadata: @config.metadata,
1442
+ retry_policy: @config.retry_policy
1443
+
1444
+ @notebook_service_stub.call_rpc :create_notebook_execution_job, request, options: options do |response, operation|
1445
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1446
+ yield response, operation if block_given?
1447
+ return response
1448
+ end
1449
+ rescue ::GRPC::BadStatus => e
1450
+ raise ::Google::Cloud::Error.from_error(e)
1451
+ end
1452
+
1453
+ ##
1454
+ # Gets a NotebookExecutionJob.
1455
+ #
1456
+ # @overload get_notebook_execution_job(request, options = nil)
1457
+ # Pass arguments to `get_notebook_execution_job` via a request object, either of type
1458
+ # {::Google::Cloud::AIPlatform::V1::GetNotebookExecutionJobRequest} or an equivalent Hash.
1459
+ #
1460
+ # @param request [::Google::Cloud::AIPlatform::V1::GetNotebookExecutionJobRequest, ::Hash]
1461
+ # A request object representing the call parameters. Required. To specify no
1462
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1463
+ # @param options [::Gapic::CallOptions, ::Hash]
1464
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1465
+ #
1466
+ # @overload get_notebook_execution_job(name: nil, view: nil)
1467
+ # Pass arguments to `get_notebook_execution_job` via keyword arguments. Note that at
1468
+ # least one keyword argument is required. To specify no parameters, or to keep all
1469
+ # the default parameter values, pass an empty Hash as a request object (see above).
1470
+ #
1471
+ # @param name [::String]
1472
+ # Required. The name of the NotebookExecutionJob resource.
1473
+ # @param view [::Google::Cloud::AIPlatform::V1::NotebookExecutionJobView]
1474
+ # Optional. The NotebookExecutionJob view. Defaults to BASIC.
1475
+ #
1476
+ # @yield [response, operation] Access the result along with the RPC operation
1477
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::NotebookExecutionJob]
1478
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1479
+ #
1480
+ # @return [::Google::Cloud::AIPlatform::V1::NotebookExecutionJob]
1481
+ #
1482
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1483
+ #
1484
+ # @example Basic example
1485
+ # require "google/cloud/ai_platform/v1"
1486
+ #
1487
+ # # Create a client object. The client can be reused for multiple calls.
1488
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Client.new
1489
+ #
1490
+ # # Create a request. To set request fields, pass in keyword arguments.
1491
+ # request = Google::Cloud::AIPlatform::V1::GetNotebookExecutionJobRequest.new
1492
+ #
1493
+ # # Call the get_notebook_execution_job method.
1494
+ # result = client.get_notebook_execution_job request
1495
+ #
1496
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::NotebookExecutionJob.
1497
+ # p result
1498
+ #
1499
+ def get_notebook_execution_job request, options = nil
1500
+ raise ::ArgumentError, "request must be provided" if request.nil?
1501
+
1502
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetNotebookExecutionJobRequest
1503
+
1504
+ # Converts hash and nil to an options object
1505
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1506
+
1507
+ # Customize the options with defaults
1508
+ metadata = @config.rpcs.get_notebook_execution_job.metadata.to_h
1509
+
1510
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1511
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1512
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1513
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1514
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1515
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1516
+
1517
+ header_params = {}
1518
+ if request.name
1519
+ header_params["name"] = request.name
1520
+ end
1521
+
1522
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1523
+ metadata[:"x-goog-request-params"] ||= request_params_header
1524
+
1525
+ options.apply_defaults timeout: @config.rpcs.get_notebook_execution_job.timeout,
1526
+ metadata: metadata,
1527
+ retry_policy: @config.rpcs.get_notebook_execution_job.retry_policy
1528
+
1529
+ options.apply_defaults timeout: @config.timeout,
1530
+ metadata: @config.metadata,
1531
+ retry_policy: @config.retry_policy
1532
+
1533
+ @notebook_service_stub.call_rpc :get_notebook_execution_job, request, options: options do |response, operation|
1534
+ yield response, operation if block_given?
1535
+ return response
1536
+ end
1537
+ rescue ::GRPC::BadStatus => e
1538
+ raise ::Google::Cloud::Error.from_error(e)
1539
+ end
1540
+
1541
+ ##
1542
+ # Lists NotebookExecutionJobs in a Location.
1543
+ #
1544
+ # @overload list_notebook_execution_jobs(request, options = nil)
1545
+ # Pass arguments to `list_notebook_execution_jobs` via a request object, either of type
1546
+ # {::Google::Cloud::AIPlatform::V1::ListNotebookExecutionJobsRequest} or an equivalent Hash.
1547
+ #
1548
+ # @param request [::Google::Cloud::AIPlatform::V1::ListNotebookExecutionJobsRequest, ::Hash]
1549
+ # A request object representing the call parameters. Required. To specify no
1550
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1551
+ # @param options [::Gapic::CallOptions, ::Hash]
1552
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1553
+ #
1554
+ # @overload list_notebook_execution_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, order_by: nil, view: nil)
1555
+ # Pass arguments to `list_notebook_execution_jobs` via keyword arguments. Note that at
1556
+ # least one keyword argument is required. To specify no parameters, or to keep all
1557
+ # the default parameter values, pass an empty Hash as a request object (see above).
1558
+ #
1559
+ # @param parent [::String]
1560
+ # Required. The resource name of the Location from which to list the
1561
+ # NotebookExecutionJobs.
1562
+ # Format: `projects/{project}/locations/{location}`
1563
+ # @param filter [::String]
1564
+ # Optional. An expression for filtering the results of the request. For field
1565
+ # names both snake_case and camelCase are supported.
1566
+ #
1567
+ # * `notebookExecutionJob` supports = and !=. `notebookExecutionJob`
1568
+ # represents the NotebookExecutionJob ID.
1569
+ # * `displayName` supports = and != and regex.
1570
+ # * `schedule` supports = and != and regex.
1571
+ #
1572
+ # Some examples:
1573
+ # * `notebookExecutionJob="123"`
1574
+ # * `notebookExecutionJob="my-execution-job"`
1575
+ # * `displayName="myDisplayName"` and `displayName=~"myDisplayNameRegex"`
1576
+ # @param page_size [::Integer]
1577
+ # Optional. The standard list page size.
1578
+ # @param page_token [::String]
1579
+ # Optional. The standard list page token.
1580
+ # Typically obtained via
1581
+ # [ListNotebookExecutionJobs.next_page_token][] of the previous
1582
+ # {::Google::Cloud::AIPlatform::V1::NotebookService::Client#list_notebook_execution_jobs NotebookService.ListNotebookExecutionJobs}
1583
+ # call.
1584
+ # @param order_by [::String]
1585
+ # Optional. A comma-separated list of fields to order by, sorted in ascending
1586
+ # order. Use "desc" after a field name for descending. Supported fields:
1587
+ #
1588
+ # * `display_name`
1589
+ # * `create_time`
1590
+ # * `update_time`
1591
+ #
1592
+ # Example: `display_name, create_time desc`.
1593
+ # @param view [::Google::Cloud::AIPlatform::V1::NotebookExecutionJobView]
1594
+ # Optional. The NotebookExecutionJob view. Defaults to BASIC.
1595
+ #
1596
+ # @yield [response, operation] Access the result along with the RPC operation
1597
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookExecutionJob>]
1598
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1599
+ #
1600
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NotebookExecutionJob>]
1601
+ #
1602
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1603
+ #
1604
+ # @example Basic example
1605
+ # require "google/cloud/ai_platform/v1"
1606
+ #
1607
+ # # Create a client object. The client can be reused for multiple calls.
1608
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Client.new
1609
+ #
1610
+ # # Create a request. To set request fields, pass in keyword arguments.
1611
+ # request = Google::Cloud::AIPlatform::V1::ListNotebookExecutionJobsRequest.new
1612
+ #
1613
+ # # Call the list_notebook_execution_jobs method.
1614
+ # result = client.list_notebook_execution_jobs request
1615
+ #
1616
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1617
+ # # over elements, and API calls will be issued to fetch pages as needed.
1618
+ # result.each do |item|
1619
+ # # Each element is of type ::Google::Cloud::AIPlatform::V1::NotebookExecutionJob.
1620
+ # p item
1621
+ # end
1622
+ #
1623
+ def list_notebook_execution_jobs request, options = nil
1624
+ raise ::ArgumentError, "request must be provided" if request.nil?
1625
+
1626
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListNotebookExecutionJobsRequest
1627
+
1628
+ # Converts hash and nil to an options object
1629
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1630
+
1631
+ # Customize the options with defaults
1632
+ metadata = @config.rpcs.list_notebook_execution_jobs.metadata.to_h
1633
+
1634
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1635
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1636
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1637
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1638
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1639
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1640
+
1641
+ header_params = {}
1642
+ if request.parent
1643
+ header_params["parent"] = request.parent
1644
+ end
1645
+
1646
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1647
+ metadata[:"x-goog-request-params"] ||= request_params_header
1648
+
1649
+ options.apply_defaults timeout: @config.rpcs.list_notebook_execution_jobs.timeout,
1650
+ metadata: metadata,
1651
+ retry_policy: @config.rpcs.list_notebook_execution_jobs.retry_policy
1652
+
1653
+ options.apply_defaults timeout: @config.timeout,
1654
+ metadata: @config.metadata,
1655
+ retry_policy: @config.retry_policy
1656
+
1657
+ @notebook_service_stub.call_rpc :list_notebook_execution_jobs, request, options: options do |response, operation|
1658
+ response = ::Gapic::PagedEnumerable.new @notebook_service_stub, :list_notebook_execution_jobs, request, response, operation, options
1659
+ yield response, operation if block_given?
1660
+ return response
1661
+ end
1662
+ rescue ::GRPC::BadStatus => e
1663
+ raise ::Google::Cloud::Error.from_error(e)
1664
+ end
1665
+
1666
+ ##
1667
+ # Deletes a NotebookExecutionJob.
1668
+ #
1669
+ # @overload delete_notebook_execution_job(request, options = nil)
1670
+ # Pass arguments to `delete_notebook_execution_job` via a request object, either of type
1671
+ # {::Google::Cloud::AIPlatform::V1::DeleteNotebookExecutionJobRequest} or an equivalent Hash.
1672
+ #
1673
+ # @param request [::Google::Cloud::AIPlatform::V1::DeleteNotebookExecutionJobRequest, ::Hash]
1674
+ # A request object representing the call parameters. Required. To specify no
1675
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1676
+ # @param options [::Gapic::CallOptions, ::Hash]
1677
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1678
+ #
1679
+ # @overload delete_notebook_execution_job(name: nil)
1680
+ # Pass arguments to `delete_notebook_execution_job` via keyword arguments. Note that at
1681
+ # least one keyword argument is required. To specify no parameters, or to keep all
1682
+ # the default parameter values, pass an empty Hash as a request object (see above).
1683
+ #
1684
+ # @param name [::String]
1685
+ # Required. The name of the NotebookExecutionJob resource to be deleted.
1686
+ #
1687
+ # @yield [response, operation] Access the result along with the RPC operation
1688
+ # @yieldparam response [::Gapic::Operation]
1689
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1690
+ #
1691
+ # @return [::Gapic::Operation]
1692
+ #
1693
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1694
+ #
1695
+ # @example Basic example
1696
+ # require "google/cloud/ai_platform/v1"
1697
+ #
1698
+ # # Create a client object. The client can be reused for multiple calls.
1699
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Client.new
1700
+ #
1701
+ # # Create a request. To set request fields, pass in keyword arguments.
1702
+ # request = Google::Cloud::AIPlatform::V1::DeleteNotebookExecutionJobRequest.new
1703
+ #
1704
+ # # Call the delete_notebook_execution_job method.
1705
+ # result = client.delete_notebook_execution_job request
1706
+ #
1707
+ # # The returned object is of type Gapic::Operation. You can use it to
1708
+ # # check the status of an operation, cancel it, or wait for results.
1709
+ # # Here is how to wait for a response.
1710
+ # result.wait_until_done! timeout: 60
1711
+ # if result.response?
1712
+ # p result.response
1713
+ # else
1714
+ # puts "No response received."
1715
+ # end
1716
+ #
1717
+ def delete_notebook_execution_job request, options = nil
1718
+ raise ::ArgumentError, "request must be provided" if request.nil?
1719
+
1720
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteNotebookExecutionJobRequest
1721
+
1722
+ # Converts hash and nil to an options object
1723
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1724
+
1725
+ # Customize the options with defaults
1726
+ metadata = @config.rpcs.delete_notebook_execution_job.metadata.to_h
1727
+
1728
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1729
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1730
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1731
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1732
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1733
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1734
+
1735
+ header_params = {}
1736
+ if request.name
1737
+ header_params["name"] = request.name
1738
+ end
1739
+
1740
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1741
+ metadata[:"x-goog-request-params"] ||= request_params_header
1742
+
1743
+ options.apply_defaults timeout: @config.rpcs.delete_notebook_execution_job.timeout,
1744
+ metadata: metadata,
1745
+ retry_policy: @config.rpcs.delete_notebook_execution_job.retry_policy
1746
+
1747
+ options.apply_defaults timeout: @config.timeout,
1748
+ metadata: @config.metadata,
1749
+ retry_policy: @config.retry_policy
1750
+
1751
+ @notebook_service_stub.call_rpc :delete_notebook_execution_job, request, options: options do |response, operation|
1752
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1753
+ yield response, operation if block_given?
1754
+ return response
1755
+ end
1756
+ rescue ::GRPC::BadStatus => e
1757
+ raise ::Google::Cloud::Error.from_error(e)
1758
+ end
1759
+
1354
1760
  ##
1355
1761
  # Configuration class for the NotebookService API.
1356
1762
  #
@@ -1559,6 +1965,26 @@ module Google
1559
1965
  # @return [::Gapic::Config::Method]
1560
1966
  #
1561
1967
  attr_reader :start_notebook_runtime
1968
+ ##
1969
+ # RPC-specific configuration for `create_notebook_execution_job`
1970
+ # @return [::Gapic::Config::Method]
1971
+ #
1972
+ attr_reader :create_notebook_execution_job
1973
+ ##
1974
+ # RPC-specific configuration for `get_notebook_execution_job`
1975
+ # @return [::Gapic::Config::Method]
1976
+ #
1977
+ attr_reader :get_notebook_execution_job
1978
+ ##
1979
+ # RPC-specific configuration for `list_notebook_execution_jobs`
1980
+ # @return [::Gapic::Config::Method]
1981
+ #
1982
+ attr_reader :list_notebook_execution_jobs
1983
+ ##
1984
+ # RPC-specific configuration for `delete_notebook_execution_job`
1985
+ # @return [::Gapic::Config::Method]
1986
+ #
1987
+ attr_reader :delete_notebook_execution_job
1562
1988
 
1563
1989
  # @private
1564
1990
  def initialize parent_rpcs = nil
@@ -1584,6 +2010,14 @@ module Google
1584
2010
  @upgrade_notebook_runtime = ::Gapic::Config::Method.new upgrade_notebook_runtime_config
1585
2011
  start_notebook_runtime_config = parent_rpcs.start_notebook_runtime if parent_rpcs.respond_to? :start_notebook_runtime
1586
2012
  @start_notebook_runtime = ::Gapic::Config::Method.new start_notebook_runtime_config
2013
+ create_notebook_execution_job_config = parent_rpcs.create_notebook_execution_job if parent_rpcs.respond_to? :create_notebook_execution_job
2014
+ @create_notebook_execution_job = ::Gapic::Config::Method.new create_notebook_execution_job_config
2015
+ get_notebook_execution_job_config = parent_rpcs.get_notebook_execution_job if parent_rpcs.respond_to? :get_notebook_execution_job
2016
+ @get_notebook_execution_job = ::Gapic::Config::Method.new get_notebook_execution_job_config
2017
+ list_notebook_execution_jobs_config = parent_rpcs.list_notebook_execution_jobs if parent_rpcs.respond_to? :list_notebook_execution_jobs
2018
+ @list_notebook_execution_jobs = ::Gapic::Config::Method.new list_notebook_execution_jobs_config
2019
+ delete_notebook_execution_job_config = parent_rpcs.delete_notebook_execution_job if parent_rpcs.respond_to? :delete_notebook_execution_job
2020
+ @delete_notebook_execution_job = ::Gapic::Config::Method.new delete_notebook_execution_job_config
1587
2021
 
1588
2022
  yield self if block_given?
1589
2023
  end
@@ -58,6 +58,25 @@ module Google
58
58
  "projects/#{project}/global/networks/#{network}"
59
59
  end
60
60
 
61
+ ##
62
+ # Create a fully-qualified NotebookExecutionJob resource string.
63
+ #
64
+ # The resource will be in the following format:
65
+ #
66
+ # `projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}`
67
+ #
68
+ # @param project [String]
69
+ # @param location [String]
70
+ # @param notebook_execution_job [String]
71
+ #
72
+ # @return [::String]
73
+ def notebook_execution_job_path project:, location:, notebook_execution_job:
74
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
75
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
76
+
77
+ "projects/#{project}/locations/#{location}/notebookExecutionJobs/#{notebook_execution_job}"
78
+ end
79
+
61
80
  ##
62
81
  # Create a fully-qualified NotebookRuntime resource string.
63
82
  #
@@ -96,6 +115,25 @@ module Google
96
115
  "projects/#{project}/locations/#{location}/notebookRuntimeTemplates/#{notebook_runtime_template}"
97
116
  end
98
117
 
118
+ ##
119
+ # Create a fully-qualified Schedule resource string.
120
+ #
121
+ # The resource will be in the following format:
122
+ #
123
+ # `projects/{project}/locations/{location}/schedules/{schedule}`
124
+ #
125
+ # @param project [String]
126
+ # @param location [String]
127
+ # @param schedule [String]
128
+ #
129
+ # @return [::String]
130
+ def schedule_path project:, location:, schedule:
131
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
132
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
133
+
134
+ "projects/#{project}/locations/#{location}/schedules/#{schedule}"
135
+ end
136
+
99
137
  ##
100
138
  # Create a fully-qualified Subnetwork resource string.
101
139
  #