google-cloud-ai_platform-v1 0.60.0 → 0.61.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.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +43 -20
- data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest/client.rb +43 -20
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/dataset_service/rest/service_stub.rb +166 -116
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/client.rb +34 -7
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/client.rb +33 -7
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/deployment_resource_pool_service/rest/service_stub.rb +62 -38
- data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +36 -10
- data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/client.rb +36 -10
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/endpoint_service/rest/service_stub.rb +86 -56
- data/lib/google/cloud/ai_platform/v1/evaluation_service/client.rb +29 -2
- data/lib/google/cloud/ai_platform/v1/evaluation_service/rest/client.rb +29 -2
- data/lib/google/cloud/ai_platform/v1/evaluation_service/rest/service_stub.rb +22 -8
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +38 -14
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/client.rb +38 -14
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/rest/service_stub.rb +118 -80
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +29 -3
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/client.rb +29 -3
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/rest/service_stub.rb +30 -14
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +38 -12
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/client.rb +38 -12
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/rest/service_stub.rb +102 -68
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +29 -4
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/client.rb +29 -3
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/rest/service_stub.rb +31 -14
- data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +45 -22
- data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/client.rb +45 -22
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/featurestore_service/rest/service_stub.rb +182 -128
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/client.rb +31 -6
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/client.rb +31 -6
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/gen_ai_tuning_service/rest/service_stub.rb +54 -32
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +35 -9
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/client.rb +35 -9
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/rest/service_stub.rb +78 -50
- data/lib/google/cloud/ai_platform/v1/index_service/client.rb +33 -8
- data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/index_service/rest/client.rb +33 -8
- data/lib/google/cloud/ai_platform/v1/index_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/index_service/rest/service_stub.rb +70 -44
- data/lib/google/cloud/ai_platform/v1/job_service/client.rb +44 -36
- data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/job_service/rest/client.rb +44 -36
- data/lib/google/cloud/ai_platform/v1/job_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/job_service/rest/service_stub.rb +294 -212
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/client.rb +29 -3
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/client.rb +29 -3
- data/lib/google/cloud/ai_platform/v1/llm_utility_service/rest/service_stub.rb +30 -14
- data/lib/google/cloud/ai_platform/v1/match_service/client.rb +29 -3
- data/lib/google/cloud/ai_platform/v1/match_service/rest/client.rb +29 -3
- data/lib/google/cloud/ai_platform/v1/match_service/rest/service_stub.rb +30 -14
- data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +42 -33
- data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest/client.rb +42 -33
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/metadata_service/rest/service_stub.rb +270 -194
- data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +31 -3
- data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/migration_service/rest/client.rb +31 -3
- data/lib/google/cloud/ai_platform/v1/migration_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/migration_service/rest/service_stub.rb +30 -14
- data/lib/google/cloud/ai_platform/v1/model_garden_service/client.rb +29 -2
- data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/client.rb +29 -2
- data/lib/google/cloud/ai_platform/v1/model_garden_service/rest/service_stub.rb +22 -8
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +39 -19
- data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/model_service/rest/client.rb +39 -19
- data/lib/google/cloud/ai_platform/v1/model_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/model_service/rest/service_stub.rb +158 -110
- data/lib/google/cloud/ai_platform/v1/notebook_service/client.rb +41 -17
- data/lib/google/cloud/ai_platform/v1/notebook_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest/client.rb +41 -17
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/notebook_service/rest/service_stub.rb +142 -98
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/client.rb +34 -7
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/client.rb +34 -7
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/persistent_resource_service/rest/service_stub.rb +62 -38
- data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +35 -13
- data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/client.rb +35 -13
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/pipeline_service/rest/service_stub.rb +110 -74
- data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +29 -14
- data/lib/google/cloud/ai_platform/v1/prediction_service/rest/client.rb +29 -7
- data/lib/google/cloud/ai_platform/v1/prediction_service/rest/service_stub.rb +65 -38
- data/lib/google/cloud/ai_platform/v1/schedule_service/client.rb +31 -8
- data/lib/google/cloud/ai_platform/v1/schedule_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest/client.rb +31 -8
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/schedule_service/rest/service_stub.rb +70 -44
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +33 -6
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/client.rb +33 -6
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/rest/service_stub.rb +54 -32
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +40 -31
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/client.rb +40 -30
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/rest/service_stub.rb +247 -176
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/client.rb +36 -11
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/client.rb +36 -11
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/vertex_rag_data_service/rest/service_stub.rb +94 -62
- data/lib/google/cloud/ai_platform/v1/vertex_rag_service/client.rb +29 -4
- data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/client.rb +29 -4
- data/lib/google/cloud/ai_platform/v1/vertex_rag_service/rest/service_stub.rb +38 -20
- data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +33 -16
- data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +9 -5
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest/client.rb +33 -16
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest/operations.rb +49 -35
- data/lib/google/cloud/ai_platform/v1/vizier_service/rest/service_stub.rb +134 -92
- data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b2d28ed10853a3f47b11d00005259b136a786b1f283ff5bf9024180fc0ddea6
|
|
4
|
+
data.tar.gz: 65bebbdc328543ea7be6a34b849896f103fa214ee633253249a203e77985c734
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '098da4b1c43844b891b734c4bfb2a38171b338a56c006d00b846db78508bbf1aef484940e0bd3216bfe9d86beffecd50262a3ecb2bdfd6d67b094e5d344ad2a0'
|
|
7
|
+
data.tar.gz: ce2b197fa0069e808de3ce8876a49aeed1443f8c4cec6782ef6172920dc4e7bb14f504d832b806c2843d54bde8d9745687e4842661d8f2065d3772312fb5c1a0
|
data/README.md
CHANGED
|
@@ -43,33 +43,43 @@ for class and method documentation.
|
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/vertex-ai/docs/)
|
|
44
44
|
for general usage information.
|
|
45
45
|
|
|
46
|
-
##
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
46
|
+
## Debug Logging
|
|
47
|
+
|
|
48
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
|
49
|
+
your application's integration with the API. When logging is activated, key
|
|
50
|
+
events such as requests and responses, along with data payloads and metadata
|
|
51
|
+
such as headers and client configuration, are logged to the standard error
|
|
52
|
+
stream.
|
|
53
|
+
|
|
54
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
|
55
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
|
56
|
+
customers, private keys, or other security data that could be compromising if
|
|
57
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
|
58
|
+
the principle of least access. Google also recommends that Client Library Debug
|
|
59
|
+
Logging be enabled only temporarily during active debugging, and not used
|
|
60
|
+
permanently in production.
|
|
61
|
+
|
|
62
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
|
63
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
|
64
|
+
list of client library gem names. This will select the default logging behavior,
|
|
65
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
|
66
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
|
67
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
|
68
|
+
results in logs appearing alongside your application logs in the
|
|
69
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
|
70
|
+
|
|
71
|
+
You can customize logging by modifying the `logger` configuration when
|
|
72
|
+
constructing a client object. For example:
|
|
55
73
|
|
|
56
74
|
```ruby
|
|
75
|
+
require "google/cloud/ai_platform/v1"
|
|
57
76
|
require "logger"
|
|
58
77
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
def logger
|
|
62
|
-
LOGGER
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
|
67
|
-
module GRPC
|
|
68
|
-
extend MyLogger
|
|
78
|
+
client = ::Google::Cloud::AIPlatform::V1::DatasetService::Client.new do |config|
|
|
79
|
+
config.logger = Logger.new "my-app.log"
|
|
69
80
|
end
|
|
70
81
|
```
|
|
71
82
|
|
|
72
|
-
|
|
73
83
|
## Google Cloud Samples
|
|
74
84
|
|
|
75
85
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
|
@@ -166,14 +166,26 @@ module Google
|
|
|
166
166
|
universe_domain: @config.universe_domain,
|
|
167
167
|
channel_args: @config.channel_args,
|
|
168
168
|
interceptors: @config.interceptors,
|
|
169
|
-
channel_pool_config: @config.channel_pool
|
|
169
|
+
channel_pool_config: @config.channel_pool,
|
|
170
|
+
logger: @config.logger
|
|
170
171
|
)
|
|
171
172
|
|
|
173
|
+
@dataset_service_stub.stub_logger&.info do |entry|
|
|
174
|
+
entry.set_system_name
|
|
175
|
+
entry.set_service
|
|
176
|
+
entry.message = "Created client for #{entry.service}"
|
|
177
|
+
entry.set_credentials_fields credentials
|
|
178
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
|
179
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
|
180
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
|
181
|
+
end
|
|
182
|
+
|
|
172
183
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
|
173
184
|
config.credentials = credentials
|
|
174
185
|
config.quota_project = @quota_project_id
|
|
175
186
|
config.endpoint = @dataset_service_stub.endpoint
|
|
176
187
|
config.universe_domain = @dataset_service_stub.universe_domain
|
|
188
|
+
config.logger = @dataset_service_stub.logger if config.respond_to? :logger=
|
|
177
189
|
end
|
|
178
190
|
|
|
179
191
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
|
@@ -181,6 +193,7 @@ module Google
|
|
|
181
193
|
config.quota_project = @quota_project_id
|
|
182
194
|
config.endpoint = @dataset_service_stub.endpoint
|
|
183
195
|
config.universe_domain = @dataset_service_stub.universe_domain
|
|
196
|
+
config.logger = @dataset_service_stub.logger if config.respond_to? :logger=
|
|
184
197
|
end
|
|
185
198
|
end
|
|
186
199
|
|
|
@@ -205,6 +218,15 @@ module Google
|
|
|
205
218
|
#
|
|
206
219
|
attr_reader :iam_policy_client
|
|
207
220
|
|
|
221
|
+
##
|
|
222
|
+
# The logger used for request/response debug logging.
|
|
223
|
+
#
|
|
224
|
+
# @return [Logger]
|
|
225
|
+
#
|
|
226
|
+
def logger
|
|
227
|
+
@dataset_service_stub.logger
|
|
228
|
+
end
|
|
229
|
+
|
|
208
230
|
# Service calls
|
|
209
231
|
|
|
210
232
|
##
|
|
@@ -298,7 +320,7 @@ module Google
|
|
|
298
320
|
@dataset_service_stub.call_rpc :create_dataset, request, options: options do |response, operation|
|
|
299
321
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
300
322
|
yield response, operation if block_given?
|
|
301
|
-
|
|
323
|
+
throw :response, response
|
|
302
324
|
end
|
|
303
325
|
rescue ::GRPC::BadStatus => e
|
|
304
326
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -386,7 +408,6 @@ module Google
|
|
|
386
408
|
|
|
387
409
|
@dataset_service_stub.call_rpc :get_dataset, request, options: options do |response, operation|
|
|
388
410
|
yield response, operation if block_given?
|
|
389
|
-
return response
|
|
390
411
|
end
|
|
391
412
|
rescue ::GRPC::BadStatus => e
|
|
392
413
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -480,7 +501,6 @@ module Google
|
|
|
480
501
|
|
|
481
502
|
@dataset_service_stub.call_rpc :update_dataset, request, options: options do |response, operation|
|
|
482
503
|
yield response, operation if block_given?
|
|
483
|
-
return response
|
|
484
504
|
end
|
|
485
505
|
rescue ::GRPC::BadStatus => e
|
|
486
506
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -601,7 +621,7 @@ module Google
|
|
|
601
621
|
@dataset_service_stub.call_rpc :list_datasets, request, options: options do |response, operation|
|
|
602
622
|
response = ::Gapic::PagedEnumerable.new @dataset_service_stub, :list_datasets, request, response, operation, options
|
|
603
623
|
yield response, operation if block_given?
|
|
604
|
-
|
|
624
|
+
throw :response, response
|
|
605
625
|
end
|
|
606
626
|
rescue ::GRPC::BadStatus => e
|
|
607
627
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -697,7 +717,7 @@ module Google
|
|
|
697
717
|
@dataset_service_stub.call_rpc :delete_dataset, request, options: options do |response, operation|
|
|
698
718
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
699
719
|
yield response, operation if block_given?
|
|
700
|
-
|
|
720
|
+
throw :response, response
|
|
701
721
|
end
|
|
702
722
|
rescue ::GRPC::BadStatus => e
|
|
703
723
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -796,7 +816,7 @@ module Google
|
|
|
796
816
|
@dataset_service_stub.call_rpc :import_data, request, options: options do |response, operation|
|
|
797
817
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
798
818
|
yield response, operation if block_given?
|
|
799
|
-
|
|
819
|
+
throw :response, response
|
|
800
820
|
end
|
|
801
821
|
rescue ::GRPC::BadStatus => e
|
|
802
822
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -894,7 +914,7 @@ module Google
|
|
|
894
914
|
@dataset_service_stub.call_rpc :export_data, request, options: options do |response, operation|
|
|
895
915
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
896
916
|
yield response, operation if block_given?
|
|
897
|
-
|
|
917
|
+
throw :response, response
|
|
898
918
|
end
|
|
899
919
|
rescue ::GRPC::BadStatus => e
|
|
900
920
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -994,7 +1014,7 @@ module Google
|
|
|
994
1014
|
@dataset_service_stub.call_rpc :create_dataset_version, request, options: options do |response, operation|
|
|
995
1015
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
996
1016
|
yield response, operation if block_given?
|
|
997
|
-
|
|
1017
|
+
throw :response, response
|
|
998
1018
|
end
|
|
999
1019
|
rescue ::GRPC::BadStatus => e
|
|
1000
1020
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1086,7 +1106,6 @@ module Google
|
|
|
1086
1106
|
|
|
1087
1107
|
@dataset_service_stub.call_rpc :update_dataset_version, request, options: options do |response, operation|
|
|
1088
1108
|
yield response, operation if block_given?
|
|
1089
|
-
return response
|
|
1090
1109
|
end
|
|
1091
1110
|
rescue ::GRPC::BadStatus => e
|
|
1092
1111
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1182,7 +1201,7 @@ module Google
|
|
|
1182
1201
|
@dataset_service_stub.call_rpc :delete_dataset_version, request, options: options do |response, operation|
|
|
1183
1202
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
1184
1203
|
yield response, operation if block_given?
|
|
1185
|
-
|
|
1204
|
+
throw :response, response
|
|
1186
1205
|
end
|
|
1187
1206
|
rescue ::GRPC::BadStatus => e
|
|
1188
1207
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1272,7 +1291,6 @@ module Google
|
|
|
1272
1291
|
|
|
1273
1292
|
@dataset_service_stub.call_rpc :get_dataset_version, request, options: options do |response, operation|
|
|
1274
1293
|
yield response, operation if block_given?
|
|
1275
|
-
return response
|
|
1276
1294
|
end
|
|
1277
1295
|
rescue ::GRPC::BadStatus => e
|
|
1278
1296
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1376,7 +1394,7 @@ module Google
|
|
|
1376
1394
|
@dataset_service_stub.call_rpc :list_dataset_versions, request, options: options do |response, operation|
|
|
1377
1395
|
response = ::Gapic::PagedEnumerable.new @dataset_service_stub, :list_dataset_versions, request, response, operation, options
|
|
1378
1396
|
yield response, operation if block_given?
|
|
1379
|
-
|
|
1397
|
+
throw :response, response
|
|
1380
1398
|
end
|
|
1381
1399
|
rescue ::GRPC::BadStatus => e
|
|
1382
1400
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1472,7 +1490,7 @@ module Google
|
|
|
1472
1490
|
@dataset_service_stub.call_rpc :restore_dataset_version, request, options: options do |response, operation|
|
|
1473
1491
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
1474
1492
|
yield response, operation if block_given?
|
|
1475
|
-
|
|
1493
|
+
throw :response, response
|
|
1476
1494
|
end
|
|
1477
1495
|
rescue ::GRPC::BadStatus => e
|
|
1478
1496
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1576,7 +1594,7 @@ module Google
|
|
|
1576
1594
|
@dataset_service_stub.call_rpc :list_data_items, request, options: options do |response, operation|
|
|
1577
1595
|
response = ::Gapic::PagedEnumerable.new @dataset_service_stub, :list_data_items, request, response, operation, options
|
|
1578
1596
|
yield response, operation if block_given?
|
|
1579
|
-
|
|
1597
|
+
throw :response, response
|
|
1580
1598
|
end
|
|
1581
1599
|
rescue ::GRPC::BadStatus => e
|
|
1582
1600
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1728,7 +1746,7 @@ module Google
|
|
|
1728
1746
|
@dataset_service_stub.call_rpc :search_data_items, request, options: options do |response, operation|
|
|
1729
1747
|
response = ::Gapic::PagedEnumerable.new @dataset_service_stub, :search_data_items, request, response, operation, options
|
|
1730
1748
|
yield response, operation if block_given?
|
|
1731
|
-
|
|
1749
|
+
throw :response, response
|
|
1732
1750
|
end
|
|
1733
1751
|
rescue ::GRPC::BadStatus => e
|
|
1734
1752
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1832,7 +1850,7 @@ module Google
|
|
|
1832
1850
|
@dataset_service_stub.call_rpc :list_saved_queries, request, options: options do |response, operation|
|
|
1833
1851
|
response = ::Gapic::PagedEnumerable.new @dataset_service_stub, :list_saved_queries, request, response, operation, options
|
|
1834
1852
|
yield response, operation if block_given?
|
|
1835
|
-
|
|
1853
|
+
throw :response, response
|
|
1836
1854
|
end
|
|
1837
1855
|
rescue ::GRPC::BadStatus => e
|
|
1838
1856
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1928,7 +1946,7 @@ module Google
|
|
|
1928
1946
|
@dataset_service_stub.call_rpc :delete_saved_query, request, options: options do |response, operation|
|
|
1929
1947
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
1930
1948
|
yield response, operation if block_given?
|
|
1931
|
-
|
|
1949
|
+
throw :response, response
|
|
1932
1950
|
end
|
|
1933
1951
|
rescue ::GRPC::BadStatus => e
|
|
1934
1952
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2018,7 +2036,6 @@ module Google
|
|
|
2018
2036
|
|
|
2019
2037
|
@dataset_service_stub.call_rpc :get_annotation_spec, request, options: options do |response, operation|
|
|
2020
2038
|
yield response, operation if block_given?
|
|
2021
|
-
return response
|
|
2022
2039
|
end
|
|
2023
2040
|
rescue ::GRPC::BadStatus => e
|
|
2024
2041
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2124,7 +2141,7 @@ module Google
|
|
|
2124
2141
|
@dataset_service_stub.call_rpc :list_annotations, request, options: options do |response, operation|
|
|
2125
2142
|
response = ::Gapic::PagedEnumerable.new @dataset_service_stub, :list_annotations, request, response, operation, options
|
|
2126
2143
|
yield response, operation if block_given?
|
|
2127
|
-
|
|
2144
|
+
throw :response, response
|
|
2128
2145
|
end
|
|
2129
2146
|
rescue ::GRPC::BadStatus => e
|
|
2130
2147
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2213,6 +2230,11 @@ module Google
|
|
|
2213
2230
|
# default endpoint URL. The default value of nil uses the environment
|
|
2214
2231
|
# universe (usually the default "googleapis.com" universe).
|
|
2215
2232
|
# @return [::String,nil]
|
|
2233
|
+
# @!attribute [rw] logger
|
|
2234
|
+
# A custom logger to use for request/response debug logging, or the value
|
|
2235
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
|
2236
|
+
# explicitly disable logging.
|
|
2237
|
+
# @return [::Logger,:default,nil]
|
|
2216
2238
|
#
|
|
2217
2239
|
class Configuration
|
|
2218
2240
|
extend ::Gapic::Config
|
|
@@ -2237,6 +2259,7 @@ module Google
|
|
|
2237
2259
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
2238
2260
|
config_attr :quota_project, nil, ::String, nil
|
|
2239
2261
|
config_attr :universe_domain, nil, ::String, nil
|
|
2262
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
|
2240
2263
|
|
|
2241
2264
|
# @private
|
|
2242
2265
|
def initialize parent_config = nil
|
|
@@ -213,7 +213,7 @@ module Google
|
|
|
213
213
|
wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
|
|
214
214
|
response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
|
|
215
215
|
yield response, operation if block_given?
|
|
216
|
-
|
|
216
|
+
throw :response, response
|
|
217
217
|
end
|
|
218
218
|
rescue ::GRPC::BadStatus => e
|
|
219
219
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -309,7 +309,7 @@ module Google
|
|
|
309
309
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
|
310
310
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
311
311
|
yield response, operation if block_given?
|
|
312
|
-
|
|
312
|
+
throw :response, response
|
|
313
313
|
end
|
|
314
314
|
rescue ::GRPC::BadStatus => e
|
|
315
315
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -398,7 +398,6 @@ module Google
|
|
|
398
398
|
|
|
399
399
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
|
400
400
|
yield response, operation if block_given?
|
|
401
|
-
return response
|
|
402
401
|
end
|
|
403
402
|
rescue ::GRPC::BadStatus => e
|
|
404
403
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -494,7 +493,6 @@ module Google
|
|
|
494
493
|
|
|
495
494
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
|
496
495
|
yield response, operation if block_given?
|
|
497
|
-
return response
|
|
498
496
|
end
|
|
499
497
|
rescue ::GRPC::BadStatus => e
|
|
500
498
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -600,7 +598,7 @@ module Google
|
|
|
600
598
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
|
601
599
|
response = ::Gapic::Operation.new response, @operations_client, options: options
|
|
602
600
|
yield response, operation if block_given?
|
|
603
|
-
|
|
601
|
+
throw :response, response
|
|
604
602
|
end
|
|
605
603
|
rescue ::GRPC::BadStatus => e
|
|
606
604
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -689,6 +687,11 @@ module Google
|
|
|
689
687
|
# default endpoint URL. The default value of nil uses the environment
|
|
690
688
|
# universe (usually the default "googleapis.com" universe).
|
|
691
689
|
# @return [::String,nil]
|
|
690
|
+
# @!attribute [rw] logger
|
|
691
|
+
# A custom logger to use for request/response debug logging, or the value
|
|
692
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
|
693
|
+
# explicitly disable logging.
|
|
694
|
+
# @return [::Logger,:default,nil]
|
|
692
695
|
#
|
|
693
696
|
class Configuration
|
|
694
697
|
extend ::Gapic::Config
|
|
@@ -713,6 +716,7 @@ module Google
|
|
|
713
716
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
714
717
|
config_attr :quota_project, nil, ::String, nil
|
|
715
718
|
config_attr :universe_domain, nil, ::String, nil
|
|
719
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
|
716
720
|
|
|
717
721
|
# @private
|
|
718
722
|
def initialize parent_config = nil
|
|
@@ -159,15 +159,27 @@ module Google
|
|
|
159
159
|
endpoint: @config.endpoint,
|
|
160
160
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
|
161
161
|
universe_domain: @config.universe_domain,
|
|
162
|
-
credentials: credentials
|
|
162
|
+
credentials: credentials,
|
|
163
|
+
logger: @config.logger
|
|
163
164
|
)
|
|
164
165
|
|
|
166
|
+
@dataset_service_stub.logger(stub: true)&.info do |entry|
|
|
167
|
+
entry.set_system_name
|
|
168
|
+
entry.set_service
|
|
169
|
+
entry.message = "Created client for #{entry.service}"
|
|
170
|
+
entry.set_credentials_fields credentials
|
|
171
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
|
172
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
|
173
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
|
174
|
+
end
|
|
175
|
+
|
|
165
176
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
|
166
177
|
config.credentials = credentials
|
|
167
178
|
config.quota_project = @quota_project_id
|
|
168
179
|
config.endpoint = @dataset_service_stub.endpoint
|
|
169
180
|
config.universe_domain = @dataset_service_stub.universe_domain
|
|
170
181
|
config.bindings_override = @config.bindings_override
|
|
182
|
+
config.logger = @dataset_service_stub.logger if config.respond_to? :logger=
|
|
171
183
|
end
|
|
172
184
|
|
|
173
185
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
|
@@ -176,6 +188,7 @@ module Google
|
|
|
176
188
|
config.endpoint = @dataset_service_stub.endpoint
|
|
177
189
|
config.universe_domain = @dataset_service_stub.universe_domain
|
|
178
190
|
config.bindings_override = @config.bindings_override
|
|
191
|
+
config.logger = @dataset_service_stub.logger if config.respond_to? :logger=
|
|
179
192
|
end
|
|
180
193
|
end
|
|
181
194
|
|
|
@@ -200,6 +213,15 @@ module Google
|
|
|
200
213
|
#
|
|
201
214
|
attr_reader :iam_policy_client
|
|
202
215
|
|
|
216
|
+
##
|
|
217
|
+
# The logger used for request/response debug logging.
|
|
218
|
+
#
|
|
219
|
+
# @return [Logger]
|
|
220
|
+
#
|
|
221
|
+
def logger
|
|
222
|
+
@dataset_service_stub.logger
|
|
223
|
+
end
|
|
224
|
+
|
|
203
225
|
# Service calls
|
|
204
226
|
|
|
205
227
|
##
|
|
@@ -286,7 +308,7 @@ module Google
|
|
|
286
308
|
@dataset_service_stub.create_dataset request, options do |result, operation|
|
|
287
309
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
288
310
|
yield result, operation if block_given?
|
|
289
|
-
|
|
311
|
+
throw :response, result
|
|
290
312
|
end
|
|
291
313
|
rescue ::Gapic::Rest::Error => e
|
|
292
314
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -367,7 +389,6 @@ module Google
|
|
|
367
389
|
|
|
368
390
|
@dataset_service_stub.get_dataset request, options do |result, operation|
|
|
369
391
|
yield result, operation if block_given?
|
|
370
|
-
return result
|
|
371
392
|
end
|
|
372
393
|
rescue ::Gapic::Rest::Error => e
|
|
373
394
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -454,7 +475,6 @@ module Google
|
|
|
454
475
|
|
|
455
476
|
@dataset_service_stub.update_dataset request, options do |result, operation|
|
|
456
477
|
yield result, operation if block_given?
|
|
457
|
-
return result
|
|
458
478
|
end
|
|
459
479
|
rescue ::Gapic::Rest::Error => e
|
|
460
480
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -568,7 +588,7 @@ module Google
|
|
|
568
588
|
@dataset_service_stub.list_datasets request, options do |result, operation|
|
|
569
589
|
result = ::Gapic::Rest::PagedEnumerable.new @dataset_service_stub, :list_datasets, "datasets", request, result, options
|
|
570
590
|
yield result, operation if block_given?
|
|
571
|
-
|
|
591
|
+
throw :response, result
|
|
572
592
|
end
|
|
573
593
|
rescue ::Gapic::Rest::Error => e
|
|
574
594
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -657,7 +677,7 @@ module Google
|
|
|
657
677
|
@dataset_service_stub.delete_dataset request, options do |result, operation|
|
|
658
678
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
659
679
|
yield result, operation if block_given?
|
|
660
|
-
|
|
680
|
+
throw :response, result
|
|
661
681
|
end
|
|
662
682
|
rescue ::Gapic::Rest::Error => e
|
|
663
683
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -749,7 +769,7 @@ module Google
|
|
|
749
769
|
@dataset_service_stub.import_data request, options do |result, operation|
|
|
750
770
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
751
771
|
yield result, operation if block_given?
|
|
752
|
-
|
|
772
|
+
throw :response, result
|
|
753
773
|
end
|
|
754
774
|
rescue ::Gapic::Rest::Error => e
|
|
755
775
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -840,7 +860,7 @@ module Google
|
|
|
840
860
|
@dataset_service_stub.export_data request, options do |result, operation|
|
|
841
861
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
842
862
|
yield result, operation if block_given?
|
|
843
|
-
|
|
863
|
+
throw :response, result
|
|
844
864
|
end
|
|
845
865
|
rescue ::Gapic::Rest::Error => e
|
|
846
866
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -933,7 +953,7 @@ module Google
|
|
|
933
953
|
@dataset_service_stub.create_dataset_version request, options do |result, operation|
|
|
934
954
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
935
955
|
yield result, operation if block_given?
|
|
936
|
-
|
|
956
|
+
throw :response, result
|
|
937
957
|
end
|
|
938
958
|
rescue ::Gapic::Rest::Error => e
|
|
939
959
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1018,7 +1038,6 @@ module Google
|
|
|
1018
1038
|
|
|
1019
1039
|
@dataset_service_stub.update_dataset_version request, options do |result, operation|
|
|
1020
1040
|
yield result, operation if block_given?
|
|
1021
|
-
return result
|
|
1022
1041
|
end
|
|
1023
1042
|
rescue ::Gapic::Rest::Error => e
|
|
1024
1043
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1107,7 +1126,7 @@ module Google
|
|
|
1107
1126
|
@dataset_service_stub.delete_dataset_version request, options do |result, operation|
|
|
1108
1127
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1109
1128
|
yield result, operation if block_given?
|
|
1110
|
-
|
|
1129
|
+
throw :response, result
|
|
1111
1130
|
end
|
|
1112
1131
|
rescue ::Gapic::Rest::Error => e
|
|
1113
1132
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1190,7 +1209,6 @@ module Google
|
|
|
1190
1209
|
|
|
1191
1210
|
@dataset_service_stub.get_dataset_version request, options do |result, operation|
|
|
1192
1211
|
yield result, operation if block_given?
|
|
1193
|
-
return result
|
|
1194
1212
|
end
|
|
1195
1213
|
rescue ::Gapic::Rest::Error => e
|
|
1196
1214
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1287,7 +1305,7 @@ module Google
|
|
|
1287
1305
|
@dataset_service_stub.list_dataset_versions request, options do |result, operation|
|
|
1288
1306
|
result = ::Gapic::Rest::PagedEnumerable.new @dataset_service_stub, :list_dataset_versions, "dataset_versions", request, result, options
|
|
1289
1307
|
yield result, operation if block_given?
|
|
1290
|
-
|
|
1308
|
+
throw :response, result
|
|
1291
1309
|
end
|
|
1292
1310
|
rescue ::Gapic::Rest::Error => e
|
|
1293
1311
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1376,7 +1394,7 @@ module Google
|
|
|
1376
1394
|
@dataset_service_stub.restore_dataset_version request, options do |result, operation|
|
|
1377
1395
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1378
1396
|
yield result, operation if block_given?
|
|
1379
|
-
|
|
1397
|
+
throw :response, result
|
|
1380
1398
|
end
|
|
1381
1399
|
rescue ::Gapic::Rest::Error => e
|
|
1382
1400
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1473,7 +1491,7 @@ module Google
|
|
|
1473
1491
|
@dataset_service_stub.list_data_items request, options do |result, operation|
|
|
1474
1492
|
result = ::Gapic::Rest::PagedEnumerable.new @dataset_service_stub, :list_data_items, "data_items", request, result, options
|
|
1475
1493
|
yield result, operation if block_given?
|
|
1476
|
-
|
|
1494
|
+
throw :response, result
|
|
1477
1495
|
end
|
|
1478
1496
|
rescue ::Gapic::Rest::Error => e
|
|
1479
1497
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1618,7 +1636,7 @@ module Google
|
|
|
1618
1636
|
@dataset_service_stub.search_data_items request, options do |result, operation|
|
|
1619
1637
|
result = ::Gapic::Rest::PagedEnumerable.new @dataset_service_stub, :search_data_items, "data_item_views", request, result, options
|
|
1620
1638
|
yield result, operation if block_given?
|
|
1621
|
-
|
|
1639
|
+
throw :response, result
|
|
1622
1640
|
end
|
|
1623
1641
|
rescue ::Gapic::Rest::Error => e
|
|
1624
1642
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1715,7 +1733,7 @@ module Google
|
|
|
1715
1733
|
@dataset_service_stub.list_saved_queries request, options do |result, operation|
|
|
1716
1734
|
result = ::Gapic::Rest::PagedEnumerable.new @dataset_service_stub, :list_saved_queries, "saved_queries", request, result, options
|
|
1717
1735
|
yield result, operation if block_given?
|
|
1718
|
-
|
|
1736
|
+
throw :response, result
|
|
1719
1737
|
end
|
|
1720
1738
|
rescue ::Gapic::Rest::Error => e
|
|
1721
1739
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1804,7 +1822,7 @@ module Google
|
|
|
1804
1822
|
@dataset_service_stub.delete_saved_query request, options do |result, operation|
|
|
1805
1823
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1806
1824
|
yield result, operation if block_given?
|
|
1807
|
-
|
|
1825
|
+
throw :response, result
|
|
1808
1826
|
end
|
|
1809
1827
|
rescue ::Gapic::Rest::Error => e
|
|
1810
1828
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1887,7 +1905,6 @@ module Google
|
|
|
1887
1905
|
|
|
1888
1906
|
@dataset_service_stub.get_annotation_spec request, options do |result, operation|
|
|
1889
1907
|
yield result, operation if block_given?
|
|
1890
|
-
return result
|
|
1891
1908
|
end
|
|
1892
1909
|
rescue ::Gapic::Rest::Error => e
|
|
1893
1910
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -1986,7 +2003,7 @@ module Google
|
|
|
1986
2003
|
@dataset_service_stub.list_annotations request, options do |result, operation|
|
|
1987
2004
|
result = ::Gapic::Rest::PagedEnumerable.new @dataset_service_stub, :list_annotations, "annotations", request, result, options
|
|
1988
2005
|
yield result, operation if block_given?
|
|
1989
|
-
|
|
2006
|
+
throw :response, result
|
|
1990
2007
|
end
|
|
1991
2008
|
rescue ::Gapic::Rest::Error => e
|
|
1992
2009
|
raise ::Google::Cloud::Error.from_error(e)
|
|
@@ -2066,6 +2083,11 @@ module Google
|
|
|
2066
2083
|
# default endpoint URL. The default value of nil uses the environment
|
|
2067
2084
|
# universe (usually the default "googleapis.com" universe).
|
|
2068
2085
|
# @return [::String,nil]
|
|
2086
|
+
# @!attribute [rw] logger
|
|
2087
|
+
# A custom logger to use for request/response debug logging, or the value
|
|
2088
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
|
2089
|
+
# explicitly disable logging.
|
|
2090
|
+
# @return [::Logger,:default,nil]
|
|
2069
2091
|
#
|
|
2070
2092
|
class Configuration
|
|
2071
2093
|
extend ::Gapic::Config
|
|
@@ -2094,6 +2116,7 @@ module Google
|
|
|
2094
2116
|
# by the host service.
|
|
2095
2117
|
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
|
2096
2118
|
config_attr :bindings_override, {}, ::Hash, nil
|
|
2119
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
|
2097
2120
|
|
|
2098
2121
|
# @private
|
|
2099
2122
|
def initialize parent_config = nil
|