google-cloud-ai_platform-v1 0.40.0 → 0.41.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +99 -0
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +92 -0
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +70 -0
  5. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb +60 -0
  6. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +70 -0
  7. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +70 -0
  8. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +70 -0
  9. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +70 -0
  10. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +70 -0
  11. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +70 -0
  12. data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +70 -0
  13. data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +70 -0
  14. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +70 -0
  15. data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +70 -0
  16. data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +70 -0
  17. data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +100 -0
  18. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +93 -0
  19. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +70 -0
  20. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb +60 -0
  21. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +70 -0
  22. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +70 -0
  23. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +8 -2
  24. data/lib/google/cloud/ai_platform/v1/prediction_service/credentials.rb +2 -1
  25. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +8 -2
  26. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +16 -0
  27. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +70 -0
  28. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +70 -0
  29. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +70 -0
  30. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  31. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +70 -0
  32. data/lib/google/cloud/aiplatform/v1/content_pb.rb +3 -4
  33. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +1 -1
  34. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +3 -2
  35. data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +2 -0
  36. data/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb +1 -1
  37. data/lib/google/cloud/aiplatform/v1/deployment_resource_pool_pb.rb +3 -1
  38. data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +3 -1
  39. data/lib/google/cloud/aiplatform/v1/feature_pb.rb +1 -1
  40. data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +3 -1
  41. data/lib/google/cloud/aiplatform/v1/index_pb.rb +2 -1
  42. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -1
  43. data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +2 -1
  44. data/lib/google/cloud/aiplatform/v1/metadata_store_pb.rb +2 -1
  45. data/lib/google/cloud/aiplatform/v1/notebook_runtime_pb.rb +3 -1
  46. data/lib/google/cloud/aiplatform/v1/notebook_service_pb.rb +2 -1
  47. data/lib/google/cloud/aiplatform/v1/notebook_service_services_pb.rb +2 -0
  48. data/lib/google/cloud/aiplatform/v1/persistent_resource_pb.rb +2 -1
  49. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
  50. data/lib/google/cloud/aiplatform/v1/tool_pb.rb +4 -1
  51. data/proto_docs/google/cloud/aiplatform/v1/content.rb +9 -48
  52. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -0
  53. data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +17 -0
  54. data/proto_docs/google/cloud/aiplatform/v1/dataset_version.rb +4 -0
  55. data/proto_docs/google/cloud/aiplatform/v1/deployment_resource_pool.rb +23 -0
  56. data/proto_docs/google/cloud/aiplatform/v1/feature.rb +3 -0
  57. data/proto_docs/google/cloud/aiplatform/v1/feature_group.rb +3 -3
  58. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +4 -0
  59. data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +24 -0
  60. data/proto_docs/google/cloud/aiplatform/v1/index.rb +23 -3
  61. data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +17 -2
  62. data/proto_docs/google/cloud/aiplatform/v1/match_service.rb +18 -1
  63. data/proto_docs/google/cloud/aiplatform/v1/metadata_store.rb +13 -0
  64. data/proto_docs/google/cloud/aiplatform/v1/model.rb +1 -1
  65. data/proto_docs/google/cloud/aiplatform/v1/notebook_runtime.rb +15 -0
  66. data/proto_docs/google/cloud/aiplatform/v1/notebook_service.rb +18 -0
  67. data/proto_docs/google/cloud/aiplatform/v1/persistent_resource.rb +63 -0
  68. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +4 -0
  69. data/proto_docs/google/cloud/aiplatform/v1/tool.rb +43 -5
  70. metadata +2 -2
@@ -592,6 +592,92 @@ module Google
592
592
  raise ::Google::Cloud::Error.from_error(e)
593
593
  end
594
594
 
595
+ ##
596
+ # Updates a NotebookRuntimeTemplate.
597
+ #
598
+ # @overload update_notebook_runtime_template(request, options = nil)
599
+ # Pass arguments to `update_notebook_runtime_template` via a request object, either of type
600
+ # {::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest} or an equivalent Hash.
601
+ #
602
+ # @param request [::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest, ::Hash]
603
+ # A request object representing the call parameters. Required. To specify no
604
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
605
+ # @param options [::Gapic::CallOptions, ::Hash]
606
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
607
+ #
608
+ # @overload update_notebook_runtime_template(notebook_runtime_template: nil, update_mask: nil)
609
+ # Pass arguments to `update_notebook_runtime_template` via keyword arguments. Note that at
610
+ # least one keyword argument is required. To specify no parameters, or to keep all
611
+ # the default parameter values, pass an empty Hash as a request object (see above).
612
+ #
613
+ # @param notebook_runtime_template [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate, ::Hash]
614
+ # Required. The NotebookRuntimeTemplate to update.
615
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
616
+ # Required. The update mask applies to the resource.
617
+ # For the `FieldMask` definition, see
618
+ # {::Google::Protobuf::FieldMask google.protobuf.FieldMask}. Input format:
619
+ # `{paths: "${updated_filed}"}` Updatable fields:
620
+ #
621
+ # * `encryption_spec.kms_key_name`
622
+ # @yield [result, operation] Access the result along with the TransportOperation object
623
+ # @yieldparam result [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate]
624
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
625
+ #
626
+ # @return [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate]
627
+ #
628
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
629
+ #
630
+ # @example Basic example
631
+ # require "google/cloud/ai_platform/v1"
632
+ #
633
+ # # Create a client object. The client can be reused for multiple calls.
634
+ # client = Google::Cloud::AIPlatform::V1::NotebookService::Rest::Client.new
635
+ #
636
+ # # Create a request. To set request fields, pass in keyword arguments.
637
+ # request = Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest.new
638
+ #
639
+ # # Call the update_notebook_runtime_template method.
640
+ # result = client.update_notebook_runtime_template request
641
+ #
642
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate.
643
+ # p result
644
+ #
645
+ def update_notebook_runtime_template request, options = nil
646
+ raise ::ArgumentError, "request must be provided" if request.nil?
647
+
648
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest
649
+
650
+ # Converts hash and nil to an options object
651
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
652
+
653
+ # Customize the options with defaults
654
+ call_metadata = @config.rpcs.update_notebook_runtime_template.metadata.to_h
655
+
656
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
657
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
658
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
659
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
660
+ transports_version_send: [:rest]
661
+
662
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
663
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
664
+
665
+ options.apply_defaults timeout: @config.rpcs.update_notebook_runtime_template.timeout,
666
+ metadata: call_metadata,
667
+ retry_policy: @config.rpcs.update_notebook_runtime_template.retry_policy
668
+
669
+ options.apply_defaults timeout: @config.timeout,
670
+ metadata: @config.metadata,
671
+ retry_policy: @config.retry_policy
672
+
673
+ @notebook_service_stub.update_notebook_runtime_template request, options do |result, operation|
674
+ yield result, operation if block_given?
675
+ return result
676
+ end
677
+ rescue ::Gapic::Rest::Error => e
678
+ raise ::Google::Cloud::Error.from_error(e)
679
+ end
680
+
595
681
  ##
596
682
  # Assigns a NotebookRuntime to a user for a particular Notebook file. This
597
683
  # method will either returns an existing assignment or generates a new one.
@@ -1344,6 +1430,11 @@ module Google
1344
1430
  #
1345
1431
  attr_reader :delete_notebook_runtime_template
1346
1432
  ##
1433
+ # RPC-specific configuration for `update_notebook_runtime_template`
1434
+ # @return [::Gapic::Config::Method]
1435
+ #
1436
+ attr_reader :update_notebook_runtime_template
1437
+ ##
1347
1438
  # RPC-specific configuration for `assign_notebook_runtime`
1348
1439
  # @return [::Gapic::Config::Method]
1349
1440
  #
@@ -1384,6 +1475,8 @@ module Google
1384
1475
  @list_notebook_runtime_templates = ::Gapic::Config::Method.new list_notebook_runtime_templates_config
1385
1476
  delete_notebook_runtime_template_config = parent_rpcs.delete_notebook_runtime_template if parent_rpcs.respond_to? :delete_notebook_runtime_template
1386
1477
  @delete_notebook_runtime_template = ::Gapic::Config::Method.new delete_notebook_runtime_template_config
1478
+ update_notebook_runtime_template_config = parent_rpcs.update_notebook_runtime_template if parent_rpcs.respond_to? :update_notebook_runtime_template
1479
+ @update_notebook_runtime_template = ::Gapic::Config::Method.new update_notebook_runtime_template_config
1387
1480
  assign_notebook_runtime_config = parent_rpcs.assign_notebook_runtime if parent_rpcs.respond_to? :assign_notebook_runtime
1388
1481
  @assign_notebook_runtime = ::Gapic::Config::Method.new assign_notebook_runtime_config
1389
1482
  get_notebook_runtime_config = parent_rpcs.get_notebook_runtime if parent_rpcs.respond_to? :get_notebook_runtime
@@ -971,6 +971,20 @@ module Google
971
971
  ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
972
972
  ]
973
973
  )
974
+ .with_bindings(
975
+ uri_method: :get,
976
+ uri_template: "/ui/{name}/operations",
977
+ matches: [
978
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false]
979
+ ]
980
+ )
981
+ .with_bindings(
982
+ uri_method: :get,
983
+ uri_template: "/ui/{name}/operations",
984
+ matches: [
985
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
986
+ ]
987
+ )
974
988
  .with_bindings(
975
989
  uri_method: :get,
976
990
  uri_template: "/ui/{name}/operations",
@@ -1573,6 +1587,20 @@ module Google
1573
1587
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
1574
1588
  ]
1575
1589
  )
1590
+ .with_bindings(
1591
+ uri_method: :get,
1592
+ uri_template: "/ui/{name}",
1593
+ matches: [
1594
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
1595
+ ]
1596
+ )
1597
+ .with_bindings(
1598
+ uri_method: :get,
1599
+ uri_template: "/ui/{name}",
1600
+ matches: [
1601
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
1602
+ ]
1603
+ )
1576
1604
  .with_bindings(
1577
1605
  uri_method: :get,
1578
1606
  uri_template: "/ui/{name}",
@@ -2182,6 +2210,20 @@ module Google
2182
2210
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
2183
2211
  ]
2184
2212
  )
2213
+ .with_bindings(
2214
+ uri_method: :delete,
2215
+ uri_template: "/ui/{name}",
2216
+ matches: [
2217
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
2218
+ ]
2219
+ )
2220
+ .with_bindings(
2221
+ uri_method: :delete,
2222
+ uri_template: "/ui/{name}",
2223
+ matches: [
2224
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
2225
+ ]
2226
+ )
2185
2227
  .with_bindings(
2186
2228
  uri_method: :delete,
2187
2229
  uri_template: "/ui/{name}",
@@ -2770,6 +2812,20 @@ module Google
2770
2812
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
2771
2813
  ]
2772
2814
  )
2815
+ .with_bindings(
2816
+ uri_method: :post,
2817
+ uri_template: "/ui/{name}:cancel",
2818
+ matches: [
2819
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
2820
+ ]
2821
+ )
2822
+ .with_bindings(
2823
+ uri_method: :post,
2824
+ uri_template: "/ui/{name}:cancel",
2825
+ matches: [
2826
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
2827
+ ]
2828
+ )
2773
2829
  .with_bindings(
2774
2830
  uri_method: :post,
2775
2831
  uri_template: "/ui/{name}:cancel",
@@ -3316,6 +3372,20 @@ module Google
3316
3372
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
3317
3373
  ]
3318
3374
  )
3375
+ .with_bindings(
3376
+ uri_method: :post,
3377
+ uri_template: "/ui/{name}:wait",
3378
+ matches: [
3379
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
3380
+ ]
3381
+ )
3382
+ .with_bindings(
3383
+ uri_method: :post,
3384
+ uri_template: "/ui/{name}:wait",
3385
+ matches: [
3386
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
3387
+ ]
3388
+ )
3319
3389
  .with_bindings(
3320
3390
  uri_method: :post,
3321
3391
  uri_template: "/ui/{name}:wait",
@@ -213,6 +213,44 @@ module Google
213
213
  result
214
214
  end
215
215
 
216
+ ##
217
+ # Baseline implementation for the update_notebook_runtime_template REST call
218
+ #
219
+ # @param request_pb [::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest]
220
+ # A request object representing the call parameters. Required.
221
+ # @param options [::Gapic::CallOptions]
222
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
223
+ #
224
+ # @yield [result, operation] Access the result along with the TransportOperation object
225
+ # @yieldparam result [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate]
226
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
227
+ #
228
+ # @return [::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate]
229
+ # A result object deserialized from the server's reply
230
+ def update_notebook_runtime_template request_pb, options = nil
231
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
232
+
233
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_notebook_runtime_template_request request_pb
234
+ query_string_params = if query_string_params.any?
235
+ query_string_params.to_h { |p| p.split "=", 2 }
236
+ else
237
+ {}
238
+ end
239
+
240
+ response = @client_stub.make_http_request(
241
+ verb,
242
+ uri: uri,
243
+ body: body || "",
244
+ params: query_string_params,
245
+ options: options
246
+ )
247
+ operation = ::Gapic::Rest::TransportOperation.new response
248
+ result = ::Google::Cloud::AIPlatform::V1::NotebookRuntimeTemplate.decode_json response.body, ignore_unknown_fields: true
249
+
250
+ yield result, operation if block_given?
251
+ result
252
+ end
253
+
216
254
  ##
217
255
  # Baseline implementation for the assign_notebook_runtime REST call
218
256
  #
@@ -526,6 +564,28 @@ module Google
526
564
  transcoder.transcode request_pb
527
565
  end
528
566
 
567
+ ##
568
+ # @private
569
+ #
570
+ # GRPC transcoding helper method for the update_notebook_runtime_template REST call
571
+ #
572
+ # @param request_pb [::Google::Cloud::AIPlatform::V1::UpdateNotebookRuntimeTemplateRequest]
573
+ # A request object representing the call parameters. Required.
574
+ # @return [Array(String, [String, nil], Hash{String => String})]
575
+ # Uri, Body, Query string parameters
576
+ def self.transcode_update_notebook_runtime_template_request request_pb
577
+ transcoder = Gapic::Rest::GrpcTranscoder.new
578
+ .with_bindings(
579
+ uri_method: :patch,
580
+ uri_template: "/v1/{notebook_runtime_template.name}",
581
+ body: "notebook_runtime_template",
582
+ matches: [
583
+ ["notebook_runtime_template.name", %r{^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+/?$}, false]
584
+ ]
585
+ )
586
+ transcoder.transcode request_pb
587
+ end
588
+
529
589
  ##
530
590
  # @private
531
591
  #
@@ -971,6 +971,20 @@ module Google
971
971
  ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
972
972
  ]
973
973
  )
974
+ .with_bindings(
975
+ uri_method: :get,
976
+ uri_template: "/ui/{name}/operations",
977
+ matches: [
978
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false]
979
+ ]
980
+ )
981
+ .with_bindings(
982
+ uri_method: :get,
983
+ uri_template: "/ui/{name}/operations",
984
+ matches: [
985
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
986
+ ]
987
+ )
974
988
  .with_bindings(
975
989
  uri_method: :get,
976
990
  uri_template: "/ui/{name}/operations",
@@ -1573,6 +1587,20 @@ module Google
1573
1587
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
1574
1588
  ]
1575
1589
  )
1590
+ .with_bindings(
1591
+ uri_method: :get,
1592
+ uri_template: "/ui/{name}",
1593
+ matches: [
1594
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
1595
+ ]
1596
+ )
1597
+ .with_bindings(
1598
+ uri_method: :get,
1599
+ uri_template: "/ui/{name}",
1600
+ matches: [
1601
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
1602
+ ]
1603
+ )
1576
1604
  .with_bindings(
1577
1605
  uri_method: :get,
1578
1606
  uri_template: "/ui/{name}",
@@ -2182,6 +2210,20 @@ module Google
2182
2210
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
2183
2211
  ]
2184
2212
  )
2213
+ .with_bindings(
2214
+ uri_method: :delete,
2215
+ uri_template: "/ui/{name}",
2216
+ matches: [
2217
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
2218
+ ]
2219
+ )
2220
+ .with_bindings(
2221
+ uri_method: :delete,
2222
+ uri_template: "/ui/{name}",
2223
+ matches: [
2224
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
2225
+ ]
2226
+ )
2185
2227
  .with_bindings(
2186
2228
  uri_method: :delete,
2187
2229
  uri_template: "/ui/{name}",
@@ -2770,6 +2812,20 @@ module Google
2770
2812
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
2771
2813
  ]
2772
2814
  )
2815
+ .with_bindings(
2816
+ uri_method: :post,
2817
+ uri_template: "/ui/{name}:cancel",
2818
+ matches: [
2819
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
2820
+ ]
2821
+ )
2822
+ .with_bindings(
2823
+ uri_method: :post,
2824
+ uri_template: "/ui/{name}:cancel",
2825
+ matches: [
2826
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
2827
+ ]
2828
+ )
2773
2829
  .with_bindings(
2774
2830
  uri_method: :post,
2775
2831
  uri_template: "/ui/{name}:cancel",
@@ -3316,6 +3372,20 @@ module Google
3316
3372
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
3317
3373
  ]
3318
3374
  )
3375
+ .with_bindings(
3376
+ uri_method: :post,
3377
+ uri_template: "/ui/{name}:wait",
3378
+ matches: [
3379
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
3380
+ ]
3381
+ )
3382
+ .with_bindings(
3383
+ uri_method: :post,
3384
+ uri_template: "/ui/{name}:wait",
3385
+ matches: [
3386
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
3387
+ ]
3388
+ )
3319
3389
  .with_bindings(
3320
3390
  uri_method: :post,
3321
3391
  uri_template: "/ui/{name}:wait",
@@ -971,6 +971,20 @@ module Google
971
971
  ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
972
972
  ]
973
973
  )
974
+ .with_bindings(
975
+ uri_method: :get,
976
+ uri_template: "/ui/{name}/operations",
977
+ matches: [
978
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false]
979
+ ]
980
+ )
981
+ .with_bindings(
982
+ uri_method: :get,
983
+ uri_template: "/ui/{name}/operations",
984
+ matches: [
985
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/?$}, false]
986
+ ]
987
+ )
974
988
  .with_bindings(
975
989
  uri_method: :get,
976
990
  uri_template: "/ui/{name}/operations",
@@ -1573,6 +1587,20 @@ module Google
1573
1587
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
1574
1588
  ]
1575
1589
  )
1590
+ .with_bindings(
1591
+ uri_method: :get,
1592
+ uri_template: "/ui/{name}",
1593
+ matches: [
1594
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
1595
+ ]
1596
+ )
1597
+ .with_bindings(
1598
+ uri_method: :get,
1599
+ uri_template: "/ui/{name}",
1600
+ matches: [
1601
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
1602
+ ]
1603
+ )
1576
1604
  .with_bindings(
1577
1605
  uri_method: :get,
1578
1606
  uri_template: "/ui/{name}",
@@ -2182,6 +2210,20 @@ module Google
2182
2210
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
2183
2211
  ]
2184
2212
  )
2213
+ .with_bindings(
2214
+ uri_method: :delete,
2215
+ uri_template: "/ui/{name}",
2216
+ matches: [
2217
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
2218
+ ]
2219
+ )
2220
+ .with_bindings(
2221
+ uri_method: :delete,
2222
+ uri_template: "/ui/{name}",
2223
+ matches: [
2224
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
2225
+ ]
2226
+ )
2185
2227
  .with_bindings(
2186
2228
  uri_method: :delete,
2187
2229
  uri_template: "/ui/{name}",
@@ -2770,6 +2812,20 @@ module Google
2770
2812
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
2771
2813
  ]
2772
2814
  )
2815
+ .with_bindings(
2816
+ uri_method: :post,
2817
+ uri_template: "/ui/{name}:cancel",
2818
+ matches: [
2819
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
2820
+ ]
2821
+ )
2822
+ .with_bindings(
2823
+ uri_method: :post,
2824
+ uri_template: "/ui/{name}:cancel",
2825
+ matches: [
2826
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
2827
+ ]
2828
+ )
2773
2829
  .with_bindings(
2774
2830
  uri_method: :post,
2775
2831
  uri_template: "/ui/{name}:cancel",
@@ -3316,6 +3372,20 @@ module Google
3316
3372
  ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false]
3317
3373
  ]
3318
3374
  )
3375
+ .with_bindings(
3376
+ uri_method: :post,
3377
+ uri_template: "/ui/{name}:wait",
3378
+ matches: [
3379
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/operations/[^/]+/?$}, false]
3380
+ ]
3381
+ )
3382
+ .with_bindings(
3383
+ uri_method: :post,
3384
+ uri_template: "/ui/{name}:wait",
3385
+ matches: [
3386
+ ["name", %r{^projects/[^/]+/locations/[^/]+/apps/[^/]+/operations/[^/]+/?$}, false]
3387
+ ]
3388
+ )
3319
3389
  .with_bindings(
3320
3390
  uri_method: :post,
3321
3391
  uri_template: "/ui/{name}:wait",
@@ -1251,7 +1251,7 @@ module Google
1251
1251
  # @param options [::Gapic::CallOptions, ::Hash]
1252
1252
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1253
1253
  #
1254
- # @overload generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, safety_settings: nil, generation_config: nil)
1254
+ # @overload generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, tool_config: nil, safety_settings: nil, generation_config: nil)
1255
1255
  # Pass arguments to `generate_content` via keyword arguments. Note that at
1256
1256
  # least one keyword argument is required. To specify no parameters, or to keep all
1257
1257
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1277,6 +1277,9 @@ module Google
1277
1277
  # A `Tool` is a piece of code that enables the system to interact with
1278
1278
  # external systems to perform an action, or set of actions, outside of
1279
1279
  # knowledge and scope of the model.
1280
+ # @param tool_config [::Google::Cloud::AIPlatform::V1::ToolConfig, ::Hash]
1281
+ # Optional. Tool config. This config is shared for all tools provided in the
1282
+ # request.
1280
1283
  # @param safety_settings [::Array<::Google::Cloud::AIPlatform::V1::SafetySetting, ::Hash>]
1281
1284
  # Optional. Per request settings for blocking unsafe content.
1282
1285
  # Enforced on GenerateContentResponse.candidates.
@@ -1361,7 +1364,7 @@ module Google
1361
1364
  # @param options [::Gapic::CallOptions, ::Hash]
1362
1365
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1363
1366
  #
1364
- # @overload stream_generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, safety_settings: nil, generation_config: nil)
1367
+ # @overload stream_generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, tool_config: nil, safety_settings: nil, generation_config: nil)
1365
1368
  # Pass arguments to `stream_generate_content` via keyword arguments. Note that at
1366
1369
  # least one keyword argument is required. To specify no parameters, or to keep all
1367
1370
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1387,6 +1390,9 @@ module Google
1387
1390
  # A `Tool` is a piece of code that enables the system to interact with
1388
1391
  # external systems to perform an action, or set of actions, outside of
1389
1392
  # knowledge and scope of the model.
1393
+ # @param tool_config [::Google::Cloud::AIPlatform::V1::ToolConfig, ::Hash]
1394
+ # Optional. Tool config. This config is shared for all tools provided in the
1395
+ # request.
1390
1396
  # @param safety_settings [::Array<::Google::Cloud::AIPlatform::V1::SafetySetting, ::Hash>]
1391
1397
  # Optional. Per request settings for blocking unsafe content.
1392
1398
  # Enforced on GenerateContentResponse.candidates.
@@ -26,7 +26,8 @@ module Google
26
26
  # Credentials for the PredictionService API.
27
27
  class Credentials < ::Google::Auth::Credentials
28
28
  self.scope = [
29
- "https://www.googleapis.com/auth/cloud-platform"
29
+ "https://www.googleapis.com/auth/cloud-platform",
30
+ "https://www.googleapis.com/auth/cloud-platform.read-only"
30
31
  ]
31
32
  self.env_vars = [
32
33
  "GOOGLE_CLOUD_CREDENTIALS",
@@ -880,7 +880,7 @@ module Google
880
880
  # @param options [::Gapic::CallOptions, ::Hash]
881
881
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
882
882
  #
883
- # @overload generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, safety_settings: nil, generation_config: nil)
883
+ # @overload generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, tool_config: nil, safety_settings: nil, generation_config: nil)
884
884
  # Pass arguments to `generate_content` via keyword arguments. Note that at
885
885
  # least one keyword argument is required. To specify no parameters, or to keep all
886
886
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -906,6 +906,9 @@ module Google
906
906
  # A `Tool` is a piece of code that enables the system to interact with
907
907
  # external systems to perform an action, or set of actions, outside of
908
908
  # knowledge and scope of the model.
909
+ # @param tool_config [::Google::Cloud::AIPlatform::V1::ToolConfig, ::Hash]
910
+ # Optional. Tool config. This config is shared for all tools provided in the
911
+ # request.
909
912
  # @param safety_settings [::Array<::Google::Cloud::AIPlatform::V1::SafetySetting, ::Hash>]
910
913
  # Optional. Per request settings for blocking unsafe content.
911
914
  # Enforced on GenerateContentResponse.candidates.
@@ -983,7 +986,7 @@ module Google
983
986
  # @param options [::Gapic::CallOptions, ::Hash]
984
987
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
985
988
  #
986
- # @overload stream_generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, safety_settings: nil, generation_config: nil)
989
+ # @overload stream_generate_content(model: nil, contents: nil, system_instruction: nil, tools: nil, tool_config: nil, safety_settings: nil, generation_config: nil)
987
990
  # Pass arguments to `stream_generate_content` via keyword arguments. Note that at
988
991
  # least one keyword argument is required. To specify no parameters, or to keep all
989
992
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1009,6 +1012,9 @@ module Google
1009
1012
  # A `Tool` is a piece of code that enables the system to interact with
1010
1013
  # external systems to perform an action, or set of actions, outside of
1011
1014
  # knowledge and scope of the model.
1015
+ # @param tool_config [::Google::Cloud::AIPlatform::V1::ToolConfig, ::Hash]
1016
+ # Optional. Tool config. This config is shared for all tools provided in the
1017
+ # request.
1012
1018
  # @param safety_settings [::Array<::Google::Cloud::AIPlatform::V1::SafetySetting, ::Hash>]
1013
1019
  # Optional. Per request settings for blocking unsafe content.
1014
1020
  # Enforced on GenerateContentResponse.candidates.
@@ -497,6 +497,14 @@ module Google
497
497
  ["endpoint", %r{^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/?$}, false]
498
498
  ]
499
499
  )
500
+ .with_bindings(
501
+ uri_method: :post,
502
+ uri_template: "/v1/{endpoint}:directPredict",
503
+ body: "*",
504
+ matches: [
505
+ ["endpoint", %r{^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+/?$}, false]
506
+ ]
507
+ )
500
508
  transcoder.transcode request_pb
501
509
  end
502
510
 
@@ -519,6 +527,14 @@ module Google
519
527
  ["endpoint", %r{^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/?$}, false]
520
528
  ]
521
529
  )
530
+ .with_bindings(
531
+ uri_method: :post,
532
+ uri_template: "/v1/{endpoint}:directRawPredict",
533
+ body: "*",
534
+ matches: [
535
+ ["endpoint", %r{^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+/?$}, false]
536
+ ]
537
+ )
522
538
  transcoder.transcode request_pb
523
539
  end
524
540