google-cloud-ai_platform-v1 1.25.0 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +12 -1
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +12 -1
  4. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +12 -1
  5. data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +12 -1
  6. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +12 -1
  7. data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +12 -1
  8. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +12 -1
  9. data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +12 -1
  10. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +94 -0
  11. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/client.rb +87 -0
  12. data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/service_stub.rb +62 -0
  13. data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +12 -1
  14. data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +12 -1
  15. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +12 -1
  16. data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +12 -1
  17. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/operations.rb +12 -1
  18. data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/operations.rb +12 -1
  19. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +12 -1
  20. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +12 -1
  21. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +12 -1
  22. data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +12 -1
  23. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +12 -1
  24. data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +12 -1
  25. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +12 -1
  26. data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +12 -1
  27. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +12 -1
  28. data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +12 -1
  29. data/lib/google/cloud/ai_platform/v1/model_garden_service/operations.rb +12 -1
  30. data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/operations.rb +12 -1
  31. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +12 -1
  32. data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +12 -1
  33. data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +12 -1
  34. data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +12 -1
  35. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +12 -1
  36. data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +12 -1
  37. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +12 -1
  38. data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +12 -1
  39. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +4 -1
  40. data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +4 -1
  41. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/operations.rb +12 -1
  42. data/lib/google/cloud/ai_platform/v1/reasoning_engine_service/rest/operations.rb +12 -1
  43. data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +12 -1
  44. data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +12 -1
  45. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +12 -1
  46. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +12 -1
  47. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +12 -1
  48. data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +12 -1
  49. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  50. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/operations.rb +12 -1
  51. data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/operations.rb +12 -1
  52. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +12 -1
  53. data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +12 -1
  54. data/lib/google/cloud/aiplatform/v1/content_pb.rb +1 -1
  55. data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +2 -1
  56. data/lib/google/cloud/aiplatform/v1/feature_online_store_service_pb.rb +3 -1
  57. data/lib/google/cloud/aiplatform/v1/feature_online_store_service_services_pb.rb +3 -0
  58. data/lib/google/cloud/aiplatform/v1/feature_view_pb.rb +2 -1
  59. data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -1
  60. data/proto_docs/google/cloud/aiplatform/v1/content.rb +3 -0
  61. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +22 -0
  62. data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb +24 -0
  63. data/proto_docs/google/cloud/aiplatform/v1/feature_view.rb +13 -0
  64. data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +16 -0
  65. data/proto_docs/google/longrunning/operations.rb +18 -0
  66. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c96c4c7c3819e81c304fea8c95b938ba00d72b097fedec8ebe47f44f1b59f3fe
4
- data.tar.gz: 55487e93027e9447da4484ae1786fd62fbe5ba3dde575c34fa6c7411f2dfeba8
3
+ metadata.gz: 78587ec4028a66bd1232b9d650cf4756c457e6ed320678c69cd99cdac2e8a2f2
4
+ data.tar.gz: 0cabe87bfe056f2e39cb8f9b16b9c003883fb284bc5e1f475d6e1165770e4595
5
5
  SHA512:
6
- metadata.gz: 19c5649faeba24f44cfe95e75800b42330867f16a16d9b8c31f5130b9e0d5217cc171a2be5e0882e2ebe3793693ac6ea0bbcae32584fe4e7996934b38e642c2e
7
- data.tar.gz: f18b51e67a425cf9a20e2ff4210e9cfb2c4dd333c9896b37263744c81588a4f4651778b2f4238774f25bdae0d60d07f6add69dcaaf69328c85544464e7d90fac
6
+ metadata.gz: 06df14e740ebda7dfce46c2af1e25a504943917945192df4e62c963e5aadfc73c2268001aeafbda10f6d7c2f415a2d75e1f345545bed199897e476de96974293
7
+ data.tar.gz: 780cc4eccb02d1828a5cf578a289192e78506cfdb2061b8cf57c6db3251d98a041d0f1998cf030645d166551c73fea5a277e4dc0825ea695196db71932b38596
@@ -134,7 +134,7 @@ module Google
134
134
  # @param options [::Gapic::CallOptions, ::Hash]
135
135
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
136
136
  #
137
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
137
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
138
138
  # Pass arguments to `list_operations` via keyword arguments. Note that at
139
139
  # least one keyword argument is required. To specify no parameters, or to keep all
140
140
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -147,6 +147,17 @@ module Google
147
147
  # The standard list page size.
148
148
  # @param page_token [::String]
149
149
  # The standard list page token.
150
+ # @param return_partial_success [::Boolean]
151
+ # When set to `true`, operations that are reachable are returned as normal,
152
+ # and those that are unreachable are returned in the
153
+ # [ListOperationsResponse.unreachable] field.
154
+ #
155
+ # This can only be `true` when reading across collections e.g. when `parent`
156
+ # is set to `"projects/example/locations/-"`.
157
+ #
158
+ # This field is not by default supported and will result in an
159
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
160
+ # service or product specific documentation.
150
161
  #
151
162
  # @yield [response, operation] Access the result along with the RPC operation
152
163
  # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>]
@@ -125,7 +125,7 @@ module Google
125
125
  # @param options [::Gapic::CallOptions, ::Hash]
126
126
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
127
127
  #
128
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
128
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
129
129
  # Pass arguments to `list_operations` via keyword arguments. Note that at
130
130
  # least one keyword argument is required. To specify no parameters, or to keep all
131
131
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -138,6 +138,17 @@ module Google
138
138
  # The standard list page size.
139
139
  # @param page_token [::String]
140
140
  # The standard list page token.
141
+ # @param return_partial_success [::Boolean]
142
+ # When set to `true`, operations that are reachable are returned as normal,
143
+ # and those that are unreachable are returned in the
144
+ # [ListOperationsResponse.unreachable] field.
145
+ #
146
+ # This can only be `true` when reading across collections e.g. when `parent`
147
+ # is set to `"projects/example/locations/-"`.
148
+ #
149
+ # This field is not by default supported and will result in an
150
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
151
+ # service or product specific documentation.
141
152
  # @yield [result, operation] Access the result along with the TransportOperation object
142
153
  # @yieldparam result [::Gapic::Operation]
143
154
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -134,7 +134,7 @@ module Google
134
134
  # @param options [::Gapic::CallOptions, ::Hash]
135
135
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
136
136
  #
137
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
137
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
138
138
  # Pass arguments to `list_operations` via keyword arguments. Note that at
139
139
  # least one keyword argument is required. To specify no parameters, or to keep all
140
140
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -147,6 +147,17 @@ module Google
147
147
  # The standard list page size.
148
148
  # @param page_token [::String]
149
149
  # The standard list page token.
150
+ # @param return_partial_success [::Boolean]
151
+ # When set to `true`, operations that are reachable are returned as normal,
152
+ # and those that are unreachable are returned in the
153
+ # [ListOperationsResponse.unreachable] field.
154
+ #
155
+ # This can only be `true` when reading across collections e.g. when `parent`
156
+ # is set to `"projects/example/locations/-"`.
157
+ #
158
+ # This field is not by default supported and will result in an
159
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
160
+ # service or product specific documentation.
150
161
  #
151
162
  # @yield [response, operation] Access the result along with the RPC operation
152
163
  # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>]
@@ -125,7 +125,7 @@ module Google
125
125
  # @param options [::Gapic::CallOptions, ::Hash]
126
126
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
127
127
  #
128
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
128
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
129
129
  # Pass arguments to `list_operations` via keyword arguments. Note that at
130
130
  # least one keyword argument is required. To specify no parameters, or to keep all
131
131
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -138,6 +138,17 @@ module Google
138
138
  # The standard list page size.
139
139
  # @param page_token [::String]
140
140
  # The standard list page token.
141
+ # @param return_partial_success [::Boolean]
142
+ # When set to `true`, operations that are reachable are returned as normal,
143
+ # and those that are unreachable are returned in the
144
+ # [ListOperationsResponse.unreachable] field.
145
+ #
146
+ # This can only be `true` when reading across collections e.g. when `parent`
147
+ # is set to `"projects/example/locations/-"`.
148
+ #
149
+ # This field is not by default supported and will result in an
150
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
151
+ # service or product specific documentation.
141
152
  # @yield [result, operation] Access the result along with the TransportOperation object
142
153
  # @yieldparam result [::Gapic::Operation]
143
154
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -134,7 +134,7 @@ module Google
134
134
  # @param options [::Gapic::CallOptions, ::Hash]
135
135
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
136
136
  #
137
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
137
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
138
138
  # Pass arguments to `list_operations` via keyword arguments. Note that at
139
139
  # least one keyword argument is required. To specify no parameters, or to keep all
140
140
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -147,6 +147,17 @@ module Google
147
147
  # The standard list page size.
148
148
  # @param page_token [::String]
149
149
  # The standard list page token.
150
+ # @param return_partial_success [::Boolean]
151
+ # When set to `true`, operations that are reachable are returned as normal,
152
+ # and those that are unreachable are returned in the
153
+ # [ListOperationsResponse.unreachable] field.
154
+ #
155
+ # This can only be `true` when reading across collections e.g. when `parent`
156
+ # is set to `"projects/example/locations/-"`.
157
+ #
158
+ # This field is not by default supported and will result in an
159
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
160
+ # service or product specific documentation.
150
161
  #
151
162
  # @yield [response, operation] Access the result along with the RPC operation
152
163
  # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>]
@@ -125,7 +125,7 @@ module Google
125
125
  # @param options [::Gapic::CallOptions, ::Hash]
126
126
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
127
127
  #
128
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
128
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
129
129
  # Pass arguments to `list_operations` via keyword arguments. Note that at
130
130
  # least one keyword argument is required. To specify no parameters, or to keep all
131
131
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -138,6 +138,17 @@ module Google
138
138
  # The standard list page size.
139
139
  # @param page_token [::String]
140
140
  # The standard list page token.
141
+ # @param return_partial_success [::Boolean]
142
+ # When set to `true`, operations that are reachable are returned as normal,
143
+ # and those that are unreachable are returned in the
144
+ # [ListOperationsResponse.unreachable] field.
145
+ #
146
+ # This can only be `true` when reading across collections e.g. when `parent`
147
+ # is set to `"projects/example/locations/-"`.
148
+ #
149
+ # This field is not by default supported and will result in an
150
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
151
+ # service or product specific documentation.
141
152
  # @yield [result, operation] Access the result along with the TransportOperation object
142
153
  # @yieldparam result [::Gapic::Operation]
143
154
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -134,7 +134,7 @@ module Google
134
134
  # @param options [::Gapic::CallOptions, ::Hash]
135
135
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
136
136
  #
137
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
137
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
138
138
  # Pass arguments to `list_operations` via keyword arguments. Note that at
139
139
  # least one keyword argument is required. To specify no parameters, or to keep all
140
140
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -147,6 +147,17 @@ module Google
147
147
  # The standard list page size.
148
148
  # @param page_token [::String]
149
149
  # The standard list page token.
150
+ # @param return_partial_success [::Boolean]
151
+ # When set to `true`, operations that are reachable are returned as normal,
152
+ # and those that are unreachable are returned in the
153
+ # [ListOperationsResponse.unreachable] field.
154
+ #
155
+ # This can only be `true` when reading across collections e.g. when `parent`
156
+ # is set to `"projects/example/locations/-"`.
157
+ #
158
+ # This field is not by default supported and will result in an
159
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
160
+ # service or product specific documentation.
150
161
  #
151
162
  # @yield [response, operation] Access the result along with the RPC operation
152
163
  # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>]
@@ -125,7 +125,7 @@ module Google
125
125
  # @param options [::Gapic::CallOptions, ::Hash]
126
126
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
127
127
  #
128
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
128
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
129
129
  # Pass arguments to `list_operations` via keyword arguments. Note that at
130
130
  # least one keyword argument is required. To specify no parameters, or to keep all
131
131
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -138,6 +138,17 @@ module Google
138
138
  # The standard list page size.
139
139
  # @param page_token [::String]
140
140
  # The standard list page token.
141
+ # @param return_partial_success [::Boolean]
142
+ # When set to `true`, operations that are reachable are returned as normal,
143
+ # and those that are unreachable are returned in the
144
+ # [ListOperationsResponse.unreachable] field.
145
+ #
146
+ # This can only be `true` when reading across collections e.g. when `parent`
147
+ # is set to `"projects/example/locations/-"`.
148
+ #
149
+ # This field is not by default supported and will result in an
150
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
151
+ # service or product specific documentation.
141
152
  # @yield [result, operation] Access the result along with the TransportOperation object
142
153
  # @yieldparam result [::Gapic::Operation]
143
154
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -482,6 +482,93 @@ module Google
482
482
  raise ::Google::Cloud::Error.from_error(e)
483
483
  end
484
484
 
485
+ ##
486
+ # RPC to generate an access token for the given feature view. FeatureViews
487
+ # under the same FeatureOnlineStore share the same access token.
488
+ #
489
+ # @overload generate_fetch_access_token(request, options = nil)
490
+ # Pass arguments to `generate_fetch_access_token` via a request object, either of type
491
+ # {::Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenRequest} or an equivalent Hash.
492
+ #
493
+ # @param request [::Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenRequest, ::Hash]
494
+ # A request object representing the call parameters. Required. To specify no
495
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
496
+ # @param options [::Gapic::CallOptions, ::Hash]
497
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
498
+ #
499
+ # @overload generate_fetch_access_token(feature_view: nil)
500
+ # Pass arguments to `generate_fetch_access_token` via keyword arguments. Note that at
501
+ # least one keyword argument is required. To specify no parameters, or to keep all
502
+ # the default parameter values, pass an empty Hash as a request object (see above).
503
+ #
504
+ # @param feature_view [::String]
505
+ # FeatureView resource format
506
+ # `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
507
+ #
508
+ # @yield [response, operation] Access the result along with the RPC operation
509
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenResponse]
510
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
511
+ #
512
+ # @return [::Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenResponse]
513
+ #
514
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
515
+ #
516
+ # @example Basic example
517
+ # require "google/cloud/ai_platform/v1"
518
+ #
519
+ # # Create a client object. The client can be reused for multiple calls.
520
+ # client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreService::Client.new
521
+ #
522
+ # # Create a request. To set request fields, pass in keyword arguments.
523
+ # request = Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenRequest.new
524
+ #
525
+ # # Call the generate_fetch_access_token method.
526
+ # result = client.generate_fetch_access_token request
527
+ #
528
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenResponse.
529
+ # p result
530
+ #
531
+ def generate_fetch_access_token request, options = nil
532
+ raise ::ArgumentError, "request must be provided" if request.nil?
533
+
534
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenRequest
535
+
536
+ # Converts hash and nil to an options object
537
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
538
+
539
+ # Customize the options with defaults
540
+ metadata = @config.rpcs.generate_fetch_access_token.metadata.to_h
541
+
542
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
543
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
544
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
545
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
546
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
547
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
548
+
549
+ header_params = {}
550
+ if request.feature_view
551
+ header_params["feature_view"] = request.feature_view
552
+ end
553
+
554
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
555
+ metadata[:"x-goog-request-params"] ||= request_params_header
556
+
557
+ options.apply_defaults timeout: @config.rpcs.generate_fetch_access_token.timeout,
558
+ metadata: metadata,
559
+ retry_policy: @config.rpcs.generate_fetch_access_token.retry_policy
560
+
561
+ options.apply_defaults timeout: @config.timeout,
562
+ metadata: @config.metadata,
563
+ retry_policy: @config.retry_policy
564
+
565
+ @feature_online_store_service_stub.call_rpc :generate_fetch_access_token, request, options: options do |response, operation|
566
+ yield response, operation if block_given?
567
+ end
568
+ rescue ::GRPC::BadStatus => e
569
+ raise ::Google::Cloud::Error.from_error(e)
570
+ end
571
+
485
572
  ##
486
573
  # Configuration class for the FeatureOnlineStoreService API.
487
574
  #
@@ -663,6 +750,11 @@ module Google
663
750
  # @return [::Gapic::Config::Method]
664
751
  #
665
752
  attr_reader :feature_view_direct_write
753
+ ##
754
+ # RPC-specific configuration for `generate_fetch_access_token`
755
+ # @return [::Gapic::Config::Method]
756
+ #
757
+ attr_reader :generate_fetch_access_token
666
758
 
667
759
  # @private
668
760
  def initialize parent_rpcs = nil
@@ -672,6 +764,8 @@ module Google
672
764
  @search_nearest_entities = ::Gapic::Config::Method.new search_nearest_entities_config
673
765
  feature_view_direct_write_config = parent_rpcs.feature_view_direct_write if parent_rpcs.respond_to? :feature_view_direct_write
674
766
  @feature_view_direct_write = ::Gapic::Config::Method.new feature_view_direct_write_config
767
+ generate_fetch_access_token_config = parent_rpcs.generate_fetch_access_token if parent_rpcs.respond_to? :generate_fetch_access_token
768
+ @generate_fetch_access_token = ::Gapic::Config::Method.new generate_fetch_access_token_config
675
769
 
676
770
  yield self if block_given?
677
771
  end
@@ -383,6 +383,86 @@ module Google
383
383
  raise ::Google::Cloud::Error.from_error(e)
384
384
  end
385
385
 
386
+ ##
387
+ # RPC to generate an access token for the given feature view. FeatureViews
388
+ # under the same FeatureOnlineStore share the same access token.
389
+ #
390
+ # @overload generate_fetch_access_token(request, options = nil)
391
+ # Pass arguments to `generate_fetch_access_token` via a request object, either of type
392
+ # {::Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenRequest} or an equivalent Hash.
393
+ #
394
+ # @param request [::Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenRequest, ::Hash]
395
+ # A request object representing the call parameters. Required. To specify no
396
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
397
+ # @param options [::Gapic::CallOptions, ::Hash]
398
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
399
+ #
400
+ # @overload generate_fetch_access_token(feature_view: nil)
401
+ # Pass arguments to `generate_fetch_access_token` via keyword arguments. Note that at
402
+ # least one keyword argument is required. To specify no parameters, or to keep all
403
+ # the default parameter values, pass an empty Hash as a request object (see above).
404
+ #
405
+ # @param feature_view [::String]
406
+ # FeatureView resource format
407
+ # `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`
408
+ # @yield [result, operation] Access the result along with the TransportOperation object
409
+ # @yieldparam result [::Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenResponse]
410
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
411
+ #
412
+ # @return [::Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenResponse]
413
+ #
414
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
415
+ #
416
+ # @example Basic example
417
+ # require "google/cloud/ai_platform/v1"
418
+ #
419
+ # # Create a client object. The client can be reused for multiple calls.
420
+ # client = Google::Cloud::AIPlatform::V1::FeatureOnlineStoreService::Rest::Client.new
421
+ #
422
+ # # Create a request. To set request fields, pass in keyword arguments.
423
+ # request = Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenRequest.new
424
+ #
425
+ # # Call the generate_fetch_access_token method.
426
+ # result = client.generate_fetch_access_token request
427
+ #
428
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenResponse.
429
+ # p result
430
+ #
431
+ def generate_fetch_access_token request, options = nil
432
+ raise ::ArgumentError, "request must be provided" if request.nil?
433
+
434
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenRequest
435
+
436
+ # Converts hash and nil to an options object
437
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
438
+
439
+ # Customize the options with defaults
440
+ call_metadata = @config.rpcs.generate_fetch_access_token.metadata.to_h
441
+
442
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
443
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
444
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
445
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION,
446
+ transports_version_send: [:rest]
447
+
448
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
449
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
450
+
451
+ options.apply_defaults timeout: @config.rpcs.generate_fetch_access_token.timeout,
452
+ metadata: call_metadata,
453
+ retry_policy: @config.rpcs.generate_fetch_access_token.retry_policy
454
+
455
+ options.apply_defaults timeout: @config.timeout,
456
+ metadata: @config.metadata,
457
+ retry_policy: @config.retry_policy
458
+
459
+ @feature_online_store_service_stub.generate_fetch_access_token request, options do |result, operation|
460
+ yield result, operation if block_given?
461
+ end
462
+ rescue ::Gapic::Rest::Error => e
463
+ raise ::Google::Cloud::Error.from_error(e)
464
+ end
465
+
386
466
  ##
387
467
  # Configuration class for the FeatureOnlineStoreService REST API.
388
468
  #
@@ -546,6 +626,11 @@ module Google
546
626
  # @return [::Gapic::Config::Method]
547
627
  #
548
628
  attr_reader :search_nearest_entities
629
+ ##
630
+ # RPC-specific configuration for `generate_fetch_access_token`
631
+ # @return [::Gapic::Config::Method]
632
+ #
633
+ attr_reader :generate_fetch_access_token
549
634
 
550
635
  # @private
551
636
  def initialize parent_rpcs = nil
@@ -553,6 +638,8 @@ module Google
553
638
  @fetch_feature_values = ::Gapic::Config::Method.new fetch_feature_values_config
554
639
  search_nearest_entities_config = parent_rpcs.search_nearest_entities if parent_rpcs.respond_to? :search_nearest_entities
555
640
  @search_nearest_entities = ::Gapic::Config::Method.new search_nearest_entities_config
641
+ generate_fetch_access_token_config = parent_rpcs.generate_fetch_access_token if parent_rpcs.respond_to? :generate_fetch_access_token
642
+ @generate_fetch_access_token = ::Gapic::Config::Method.new generate_fetch_access_token_config
556
643
 
557
644
  yield self if block_given?
558
645
  end
@@ -153,6 +153,46 @@ module Google
153
153
  end
154
154
  end
155
155
 
156
+ ##
157
+ # Baseline implementation for the generate_fetch_access_token REST call
158
+ #
159
+ # @param request_pb [::Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenRequest]
160
+ # A request object representing the call parameters. Required.
161
+ # @param options [::Gapic::CallOptions]
162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
163
+ #
164
+ # @yield [result, operation] Access the result along with the TransportOperation object
165
+ # @yieldparam result [::Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenResponse]
166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
167
+ #
168
+ # @return [::Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenResponse]
169
+ # A result object deserialized from the server's reply
170
+ def generate_fetch_access_token request_pb, options = nil
171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
172
+
173
+ verb, uri, query_string_params, body = ServiceStub.transcode_generate_fetch_access_token_request request_pb
174
+ query_string_params = if query_string_params.any?
175
+ query_string_params.to_h { |p| p.split "=", 2 }
176
+ else
177
+ {}
178
+ end
179
+
180
+ response = @client_stub.make_http_request(
181
+ verb,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "generate_fetch_access_token",
186
+ options: options
187
+ )
188
+ operation = ::Gapic::Rest::TransportOperation.new response
189
+ result = ::Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenResponse.decode_json response.body, ignore_unknown_fields: true
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
194
+ end
195
+
156
196
  ##
157
197
  # @private
158
198
  #
@@ -196,6 +236,28 @@ module Google
196
236
  )
197
237
  transcoder.transcode request_pb
198
238
  end
239
+
240
+ ##
241
+ # @private
242
+ #
243
+ # GRPC transcoding helper method for the generate_fetch_access_token REST call
244
+ #
245
+ # @param request_pb [::Google::Cloud::AIPlatform::V1::GenerateFetchAccessTokenRequest]
246
+ # A request object representing the call parameters. Required.
247
+ # @return [Array(String, [String, nil], Hash{String => String})]
248
+ # Uri, Body, Query string parameters
249
+ def self.transcode_generate_fetch_access_token_request request_pb
250
+ transcoder = Gapic::Rest::GrpcTranscoder.new
251
+ .with_bindings(
252
+ uri_method: :post,
253
+ uri_template: "/v1/{feature_view}:generateFetchAccessToken",
254
+ body: "*",
255
+ matches: [
256
+ ["feature_view", %r{^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/?$}, false]
257
+ ]
258
+ )
259
+ transcoder.transcode request_pb
260
+ end
199
261
  end
200
262
  end
201
263
  end
@@ -134,7 +134,7 @@ module Google
134
134
  # @param options [::Gapic::CallOptions, ::Hash]
135
135
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
136
136
  #
137
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
137
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
138
138
  # Pass arguments to `list_operations` via keyword arguments. Note that at
139
139
  # least one keyword argument is required. To specify no parameters, or to keep all
140
140
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -147,6 +147,17 @@ module Google
147
147
  # The standard list page size.
148
148
  # @param page_token [::String]
149
149
  # The standard list page token.
150
+ # @param return_partial_success [::Boolean]
151
+ # When set to `true`, operations that are reachable are returned as normal,
152
+ # and those that are unreachable are returned in the
153
+ # [ListOperationsResponse.unreachable] field.
154
+ #
155
+ # This can only be `true` when reading across collections e.g. when `parent`
156
+ # is set to `"projects/example/locations/-"`.
157
+ #
158
+ # This field is not by default supported and will result in an
159
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
160
+ # service or product specific documentation.
150
161
  #
151
162
  # @yield [response, operation] Access the result along with the RPC operation
152
163
  # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>]
@@ -125,7 +125,7 @@ module Google
125
125
  # @param options [::Gapic::CallOptions, ::Hash]
126
126
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
127
127
  #
128
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
128
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
129
129
  # Pass arguments to `list_operations` via keyword arguments. Note that at
130
130
  # least one keyword argument is required. To specify no parameters, or to keep all
131
131
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -138,6 +138,17 @@ module Google
138
138
  # The standard list page size.
139
139
  # @param page_token [::String]
140
140
  # The standard list page token.
141
+ # @param return_partial_success [::Boolean]
142
+ # When set to `true`, operations that are reachable are returned as normal,
143
+ # and those that are unreachable are returned in the
144
+ # [ListOperationsResponse.unreachable] field.
145
+ #
146
+ # This can only be `true` when reading across collections e.g. when `parent`
147
+ # is set to `"projects/example/locations/-"`.
148
+ #
149
+ # This field is not by default supported and will result in an
150
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
151
+ # service or product specific documentation.
141
152
  # @yield [result, operation] Access the result along with the TransportOperation object
142
153
  # @yieldparam result [::Gapic::Operation]
143
154
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -134,7 +134,7 @@ module Google
134
134
  # @param options [::Gapic::CallOptions, ::Hash]
135
135
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
136
136
  #
137
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
137
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
138
138
  # Pass arguments to `list_operations` via keyword arguments. Note that at
139
139
  # least one keyword argument is required. To specify no parameters, or to keep all
140
140
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -147,6 +147,17 @@ module Google
147
147
  # The standard list page size.
148
148
  # @param page_token [::String]
149
149
  # The standard list page token.
150
+ # @param return_partial_success [::Boolean]
151
+ # When set to `true`, operations that are reachable are returned as normal,
152
+ # and those that are unreachable are returned in the
153
+ # [ListOperationsResponse.unreachable] field.
154
+ #
155
+ # This can only be `true` when reading across collections e.g. when `parent`
156
+ # is set to `"projects/example/locations/-"`.
157
+ #
158
+ # This field is not by default supported and will result in an
159
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
160
+ # service or product specific documentation.
150
161
  #
151
162
  # @yield [response, operation] Access the result along with the RPC operation
152
163
  # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>]
@@ -125,7 +125,7 @@ module Google
125
125
  # @param options [::Gapic::CallOptions, ::Hash]
126
126
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
127
127
  #
128
- # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil)
128
+ # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil)
129
129
  # Pass arguments to `list_operations` via keyword arguments. Note that at
130
130
  # least one keyword argument is required. To specify no parameters, or to keep all
131
131
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -138,6 +138,17 @@ module Google
138
138
  # The standard list page size.
139
139
  # @param page_token [::String]
140
140
  # The standard list page token.
141
+ # @param return_partial_success [::Boolean]
142
+ # When set to `true`, operations that are reachable are returned as normal,
143
+ # and those that are unreachable are returned in the
144
+ # [ListOperationsResponse.unreachable] field.
145
+ #
146
+ # This can only be `true` when reading across collections e.g. when `parent`
147
+ # is set to `"projects/example/locations/-"`.
148
+ #
149
+ # This field is not by default supported and will result in an
150
+ # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
151
+ # service or product specific documentation.
141
152
  # @yield [result, operation] Access the result along with the TransportOperation object
142
153
  # @yieldparam result [::Gapic::Operation]
143
154
  # @yieldparam operation [::Gapic::Rest::TransportOperation]