google-cloud-bigquery-migration-v2 0.11.1 → 0.13.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/bigquery/migration/v2/migration_service/client.rb +29 -8
- data/lib/google/cloud/bigquery/migration/v2/migration_service/rest/client.rb +29 -8
- data/lib/google/cloud/bigquery/migration/v2/migration_service/rest/service_stub.rb +70 -44
- data/lib/google/cloud/bigquery/migration/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/api/metric.rb +18 -0
- data/proto_docs/google/rpc/error_details.rb +16 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdd242a149eabac8b5605ab39c8f107a2ea78f9151eea7664372a8651880d14b
|
4
|
+
data.tar.gz: 3a4b7fe4413096157a93d23ed722d5a235faf53b11a9a08e1331c4f2d9db87a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be6c76abfdf16cb1ffcf711ae84b429f91c62fcbcde2e02d89efd6df2fb99beba9efbf29b49908c059f77551035d2939851fb2025e3b9cddc4b63c51f8ef8ddf
|
7
|
+
data.tar.gz: 9170d967ccadc4a2ec4be016f7753381b574c2e8ea2cd6209fe77b84971b83c77da81b02d3d1cd95f6acf701511724337e7bf26ccaf1cf4188fb62d92892aa62
|
data/README.md
CHANGED
@@ -43,33 +43,43 @@ for class and method documentation.
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/bigquery/docs/reference/migration)
|
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/bigquery/migration/v2"
|
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::Bigquery::Migration::V2::MigrationService::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).
|
@@ -177,8 +177,28 @@ module Google
|
|
177
177
|
universe_domain: @config.universe_domain,
|
178
178
|
channel_args: @config.channel_args,
|
179
179
|
interceptors: @config.interceptors,
|
180
|
-
channel_pool_config: @config.channel_pool
|
180
|
+
channel_pool_config: @config.channel_pool,
|
181
|
+
logger: @config.logger
|
181
182
|
)
|
183
|
+
|
184
|
+
@migration_service_stub.stub_logger&.info do |entry|
|
185
|
+
entry.set_system_name
|
186
|
+
entry.set_service
|
187
|
+
entry.message = "Created client for #{entry.service}"
|
188
|
+
entry.set_credentials_fields credentials
|
189
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
190
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
191
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
##
|
196
|
+
# The logger used for request/response debug logging.
|
197
|
+
#
|
198
|
+
# @return [Logger]
|
199
|
+
#
|
200
|
+
def logger
|
201
|
+
@migration_service_stub.logger
|
182
202
|
end
|
183
203
|
|
184
204
|
# Service calls
|
@@ -266,7 +286,6 @@ module Google
|
|
266
286
|
|
267
287
|
@migration_service_stub.call_rpc :create_migration_workflow, request, options: options do |response, operation|
|
268
288
|
yield response, operation if block_given?
|
269
|
-
return response
|
270
289
|
end
|
271
290
|
rescue ::GRPC::BadStatus => e
|
272
291
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -355,7 +374,6 @@ module Google
|
|
355
374
|
|
356
375
|
@migration_service_stub.call_rpc :get_migration_workflow, request, options: options do |response, operation|
|
357
376
|
yield response, operation if block_given?
|
358
|
-
return response
|
359
377
|
end
|
360
378
|
rescue ::GRPC::BadStatus => e
|
361
379
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -458,7 +476,7 @@ module Google
|
|
458
476
|
@migration_service_stub.call_rpc :list_migration_workflows, request, options: options do |response, operation|
|
459
477
|
response = ::Gapic::PagedEnumerable.new @migration_service_stub, :list_migration_workflows, request, response, operation, options
|
460
478
|
yield response, operation if block_given?
|
461
|
-
|
479
|
+
throw :response, response
|
462
480
|
end
|
463
481
|
rescue ::GRPC::BadStatus => e
|
464
482
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -545,7 +563,6 @@ module Google
|
|
545
563
|
|
546
564
|
@migration_service_stub.call_rpc :delete_migration_workflow, request, options: options do |response, operation|
|
547
565
|
yield response, operation if block_given?
|
548
|
-
return response
|
549
566
|
end
|
550
567
|
rescue ::GRPC::BadStatus => e
|
551
568
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -635,7 +652,6 @@ module Google
|
|
635
652
|
|
636
653
|
@migration_service_stub.call_rpc :start_migration_workflow, request, options: options do |response, operation|
|
637
654
|
yield response, operation if block_given?
|
638
|
-
return response
|
639
655
|
end
|
640
656
|
rescue ::GRPC::BadStatus => e
|
641
657
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -724,7 +740,6 @@ module Google
|
|
724
740
|
|
725
741
|
@migration_service_stub.call_rpc :get_migration_subtask, request, options: options do |response, operation|
|
726
742
|
yield response, operation if block_given?
|
727
|
-
return response
|
728
743
|
end
|
729
744
|
rescue ::GRPC::BadStatus => e
|
730
745
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -831,7 +846,7 @@ module Google
|
|
831
846
|
@migration_service_stub.call_rpc :list_migration_subtasks, request, options: options do |response, operation|
|
832
847
|
response = ::Gapic::PagedEnumerable.new @migration_service_stub, :list_migration_subtasks, request, response, operation, options
|
833
848
|
yield response, operation if block_given?
|
834
|
-
|
849
|
+
throw :response, response
|
835
850
|
end
|
836
851
|
rescue ::GRPC::BadStatus => e
|
837
852
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -920,6 +935,11 @@ module Google
|
|
920
935
|
# default endpoint URL. The default value of nil uses the environment
|
921
936
|
# universe (usually the default "googleapis.com" universe).
|
922
937
|
# @return [::String,nil]
|
938
|
+
# @!attribute [rw] logger
|
939
|
+
# A custom logger to use for request/response debug logging, or the value
|
940
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
941
|
+
# explicitly disable logging.
|
942
|
+
# @return [::Logger,:default,nil]
|
923
943
|
#
|
924
944
|
class Configuration
|
925
945
|
extend ::Gapic::Config
|
@@ -944,6 +964,7 @@ module Google
|
|
944
964
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
945
965
|
config_attr :quota_project, nil, ::String, nil
|
946
966
|
config_attr :universe_domain, nil, ::String, nil
|
967
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
947
968
|
|
948
969
|
# @private
|
949
970
|
def initialize parent_config = nil
|
@@ -170,8 +170,28 @@ module Google
|
|
170
170
|
endpoint: @config.endpoint,
|
171
171
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
172
172
|
universe_domain: @config.universe_domain,
|
173
|
-
credentials: credentials
|
173
|
+
credentials: credentials,
|
174
|
+
logger: @config.logger
|
174
175
|
)
|
176
|
+
|
177
|
+
@migration_service_stub.logger(stub: true)&.info do |entry|
|
178
|
+
entry.set_system_name
|
179
|
+
entry.set_service
|
180
|
+
entry.message = "Created client for #{entry.service}"
|
181
|
+
entry.set_credentials_fields credentials
|
182
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
183
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
184
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
##
|
189
|
+
# The logger used for request/response debug logging.
|
190
|
+
#
|
191
|
+
# @return [Logger]
|
192
|
+
#
|
193
|
+
def logger
|
194
|
+
@migration_service_stub.logger
|
175
195
|
end
|
176
196
|
|
177
197
|
# Service calls
|
@@ -252,7 +272,6 @@ module Google
|
|
252
272
|
|
253
273
|
@migration_service_stub.create_migration_workflow request, options do |result, operation|
|
254
274
|
yield result, operation if block_given?
|
255
|
-
return result
|
256
275
|
end
|
257
276
|
rescue ::Gapic::Rest::Error => e
|
258
277
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -334,7 +353,6 @@ module Google
|
|
334
353
|
|
335
354
|
@migration_service_stub.get_migration_workflow request, options do |result, operation|
|
336
355
|
yield result, operation if block_given?
|
337
|
-
return result
|
338
356
|
end
|
339
357
|
rescue ::Gapic::Rest::Error => e
|
340
358
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -430,7 +448,7 @@ module Google
|
|
430
448
|
@migration_service_stub.list_migration_workflows request, options do |result, operation|
|
431
449
|
result = ::Gapic::Rest::PagedEnumerable.new @migration_service_stub, :list_migration_workflows, "migration_workflows", request, result, options
|
432
450
|
yield result, operation if block_given?
|
433
|
-
|
451
|
+
throw :response, result
|
434
452
|
end
|
435
453
|
rescue ::Gapic::Rest::Error => e
|
436
454
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -510,7 +528,6 @@ module Google
|
|
510
528
|
|
511
529
|
@migration_service_stub.delete_migration_workflow request, options do |result, operation|
|
512
530
|
yield result, operation if block_given?
|
513
|
-
return result
|
514
531
|
end
|
515
532
|
rescue ::Gapic::Rest::Error => e
|
516
533
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -593,7 +610,6 @@ module Google
|
|
593
610
|
|
594
611
|
@migration_service_stub.start_migration_workflow request, options do |result, operation|
|
595
612
|
yield result, operation if block_given?
|
596
|
-
return result
|
597
613
|
end
|
598
614
|
rescue ::Gapic::Rest::Error => e
|
599
615
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -675,7 +691,6 @@ module Google
|
|
675
691
|
|
676
692
|
@migration_service_stub.get_migration_subtask request, options do |result, operation|
|
677
693
|
yield result, operation if block_given?
|
678
|
-
return result
|
679
694
|
end
|
680
695
|
rescue ::Gapic::Rest::Error => e
|
681
696
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -775,7 +790,7 @@ module Google
|
|
775
790
|
@migration_service_stub.list_migration_subtasks request, options do |result, operation|
|
776
791
|
result = ::Gapic::Rest::PagedEnumerable.new @migration_service_stub, :list_migration_subtasks, "migration_subtasks", request, result, options
|
777
792
|
yield result, operation if block_given?
|
778
|
-
|
793
|
+
throw :response, result
|
779
794
|
end
|
780
795
|
rescue ::Gapic::Rest::Error => e
|
781
796
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -855,6 +870,11 @@ module Google
|
|
855
870
|
# default endpoint URL. The default value of nil uses the environment
|
856
871
|
# universe (usually the default "googleapis.com" universe).
|
857
872
|
# @return [::String,nil]
|
873
|
+
# @!attribute [rw] logger
|
874
|
+
# A custom logger to use for request/response debug logging, or the value
|
875
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
876
|
+
# explicitly disable logging.
|
877
|
+
# @return [::Logger,:default,nil]
|
858
878
|
#
|
859
879
|
class Configuration
|
860
880
|
extend ::Gapic::Config
|
@@ -876,6 +896,7 @@ module Google
|
|
876
896
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
877
897
|
config_attr :quota_project, nil, ::String, nil
|
878
898
|
config_attr :universe_domain, nil, ::String, nil
|
899
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
879
900
|
|
880
901
|
# @private
|
881
902
|
def initialize parent_config = nil
|
@@ -31,7 +31,8 @@ module Google
|
|
31
31
|
# including transcoding, making the REST call, and deserialing the response.
|
32
32
|
#
|
33
33
|
class ServiceStub
|
34
|
-
|
34
|
+
# @private
|
35
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
35
36
|
# These require statements are intentionally placed here to initialize
|
36
37
|
# the REST modules only when it's required.
|
37
38
|
require "gapic/rest"
|
@@ -41,7 +42,9 @@ module Google
|
|
41
42
|
universe_domain: universe_domain,
|
42
43
|
credentials: credentials,
|
43
44
|
numeric_enums: false,
|
44
|
-
|
45
|
+
service_name: self.class,
|
46
|
+
raise_faraday_errors: false,
|
47
|
+
logger: logger
|
45
48
|
end
|
46
49
|
|
47
50
|
##
|
@@ -62,6 +65,15 @@ module Google
|
|
62
65
|
@client_stub.endpoint
|
63
66
|
end
|
64
67
|
|
68
|
+
##
|
69
|
+
# The logger used for request/response debug logging.
|
70
|
+
#
|
71
|
+
# @return [Logger]
|
72
|
+
#
|
73
|
+
def logger stub: false
|
74
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
75
|
+
end
|
76
|
+
|
65
77
|
##
|
66
78
|
# Baseline implementation for the create_migration_workflow REST call
|
67
79
|
#
|
@@ -88,16 +100,18 @@ module Google
|
|
88
100
|
|
89
101
|
response = @client_stub.make_http_request(
|
90
102
|
verb,
|
91
|
-
uri:
|
92
|
-
body:
|
93
|
-
params:
|
103
|
+
uri: uri,
|
104
|
+
body: body || "",
|
105
|
+
params: query_string_params,
|
106
|
+
method_name: "create_migration_workflow",
|
94
107
|
options: options
|
95
108
|
)
|
96
109
|
operation = ::Gapic::Rest::TransportOperation.new response
|
97
110
|
result = ::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow.decode_json response.body, ignore_unknown_fields: true
|
98
|
-
|
99
|
-
|
100
|
-
|
111
|
+
catch :response do
|
112
|
+
yield result, operation if block_given?
|
113
|
+
result
|
114
|
+
end
|
101
115
|
end
|
102
116
|
|
103
117
|
##
|
@@ -126,16 +140,18 @@ module Google
|
|
126
140
|
|
127
141
|
response = @client_stub.make_http_request(
|
128
142
|
verb,
|
129
|
-
uri:
|
130
|
-
body:
|
131
|
-
params:
|
143
|
+
uri: uri,
|
144
|
+
body: body || "",
|
145
|
+
params: query_string_params,
|
146
|
+
method_name: "get_migration_workflow",
|
132
147
|
options: options
|
133
148
|
)
|
134
149
|
operation = ::Gapic::Rest::TransportOperation.new response
|
135
150
|
result = ::Google::Cloud::Bigquery::Migration::V2::MigrationWorkflow.decode_json response.body, ignore_unknown_fields: true
|
136
|
-
|
137
|
-
|
138
|
-
|
151
|
+
catch :response do
|
152
|
+
yield result, operation if block_given?
|
153
|
+
result
|
154
|
+
end
|
139
155
|
end
|
140
156
|
|
141
157
|
##
|
@@ -164,16 +180,18 @@ module Google
|
|
164
180
|
|
165
181
|
response = @client_stub.make_http_request(
|
166
182
|
verb,
|
167
|
-
uri:
|
168
|
-
body:
|
169
|
-
params:
|
183
|
+
uri: uri,
|
184
|
+
body: body || "",
|
185
|
+
params: query_string_params,
|
186
|
+
method_name: "list_migration_workflows",
|
170
187
|
options: options
|
171
188
|
)
|
172
189
|
operation = ::Gapic::Rest::TransportOperation.new response
|
173
190
|
result = ::Google::Cloud::Bigquery::Migration::V2::ListMigrationWorkflowsResponse.decode_json response.body, ignore_unknown_fields: true
|
174
|
-
|
175
|
-
|
176
|
-
|
191
|
+
catch :response do
|
192
|
+
yield result, operation if block_given?
|
193
|
+
result
|
194
|
+
end
|
177
195
|
end
|
178
196
|
|
179
197
|
##
|
@@ -202,16 +220,18 @@ module Google
|
|
202
220
|
|
203
221
|
response = @client_stub.make_http_request(
|
204
222
|
verb,
|
205
|
-
uri:
|
206
|
-
body:
|
207
|
-
params:
|
223
|
+
uri: uri,
|
224
|
+
body: body || "",
|
225
|
+
params: query_string_params,
|
226
|
+
method_name: "delete_migration_workflow",
|
208
227
|
options: options
|
209
228
|
)
|
210
229
|
operation = ::Gapic::Rest::TransportOperation.new response
|
211
230
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
212
|
-
|
213
|
-
|
214
|
-
|
231
|
+
catch :response do
|
232
|
+
yield result, operation if block_given?
|
233
|
+
result
|
234
|
+
end
|
215
235
|
end
|
216
236
|
|
217
237
|
##
|
@@ -240,16 +260,18 @@ module Google
|
|
240
260
|
|
241
261
|
response = @client_stub.make_http_request(
|
242
262
|
verb,
|
243
|
-
uri:
|
244
|
-
body:
|
245
|
-
params:
|
263
|
+
uri: uri,
|
264
|
+
body: body || "",
|
265
|
+
params: query_string_params,
|
266
|
+
method_name: "start_migration_workflow",
|
246
267
|
options: options
|
247
268
|
)
|
248
269
|
operation = ::Gapic::Rest::TransportOperation.new response
|
249
270
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
250
|
-
|
251
|
-
|
252
|
-
|
271
|
+
catch :response do
|
272
|
+
yield result, operation if block_given?
|
273
|
+
result
|
274
|
+
end
|
253
275
|
end
|
254
276
|
|
255
277
|
##
|
@@ -278,16 +300,18 @@ module Google
|
|
278
300
|
|
279
301
|
response = @client_stub.make_http_request(
|
280
302
|
verb,
|
281
|
-
uri:
|
282
|
-
body:
|
283
|
-
params:
|
303
|
+
uri: uri,
|
304
|
+
body: body || "",
|
305
|
+
params: query_string_params,
|
306
|
+
method_name: "get_migration_subtask",
|
284
307
|
options: options
|
285
308
|
)
|
286
309
|
operation = ::Gapic::Rest::TransportOperation.new response
|
287
310
|
result = ::Google::Cloud::Bigquery::Migration::V2::MigrationSubtask.decode_json response.body, ignore_unknown_fields: true
|
288
|
-
|
289
|
-
|
290
|
-
|
311
|
+
catch :response do
|
312
|
+
yield result, operation if block_given?
|
313
|
+
result
|
314
|
+
end
|
291
315
|
end
|
292
316
|
|
293
317
|
##
|
@@ -316,16 +340,18 @@ module Google
|
|
316
340
|
|
317
341
|
response = @client_stub.make_http_request(
|
318
342
|
verb,
|
319
|
-
uri:
|
320
|
-
body:
|
321
|
-
params:
|
343
|
+
uri: uri,
|
344
|
+
body: body || "",
|
345
|
+
params: query_string_params,
|
346
|
+
method_name: "list_migration_subtasks",
|
322
347
|
options: options
|
323
348
|
)
|
324
349
|
operation = ::Gapic::Rest::TransportOperation.new response
|
325
350
|
result = ::Google::Cloud::Bigquery::Migration::V2::ListMigrationSubtasksResponse.decode_json response.body, ignore_unknown_fields: true
|
326
|
-
|
327
|
-
|
328
|
-
|
351
|
+
catch :response do
|
352
|
+
yield result, operation if block_given?
|
353
|
+
result
|
354
|
+
end
|
329
355
|
end
|
330
356
|
|
331
357
|
##
|
@@ -28,6 +28,9 @@ module Google
|
|
28
28
|
# @!attribute [rw] destinations
|
29
29
|
# @return [::Array<::Google::Api::ClientLibraryDestination>]
|
30
30
|
# The destination where API teams want this client library to be published.
|
31
|
+
# @!attribute [rw] selective_gapic_generation
|
32
|
+
# @return [::Google::Api::SelectiveGapicGeneration]
|
33
|
+
# Configuration for which RPCs should be generated in the GAPIC client.
|
31
34
|
class CommonLanguageSettings
|
32
35
|
include ::Google::Protobuf::MessageExts
|
33
36
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -212,6 +215,12 @@ module Google
|
|
212
215
|
# enabled. By default, asynchronous REST clients will not be generated.
|
213
216
|
# This feature will be enabled by default 1 month after launching the
|
214
217
|
# feature in preview packages.
|
218
|
+
# @!attribute [rw] protobuf_pythonic_types_enabled
|
219
|
+
# @return [::Boolean]
|
220
|
+
# Enables generation of protobuf code using new types that are more
|
221
|
+
# Pythonic which are included in `protobuf>=5.29.x`. This feature will be
|
222
|
+
# enabled by default 1 month after launching the feature in preview
|
223
|
+
# packages.
|
215
224
|
class ExperimentalFeatures
|
216
225
|
include ::Google::Protobuf::MessageExts
|
217
226
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -297,9 +306,28 @@ module Google
|
|
297
306
|
# @!attribute [rw] common
|
298
307
|
# @return [::Google::Api::CommonLanguageSettings]
|
299
308
|
# Some settings.
|
309
|
+
# @!attribute [rw] renamed_services
|
310
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
311
|
+
# Map of service names to renamed services. Keys are the package relative
|
312
|
+
# service names and values are the name to be used for the service client
|
313
|
+
# and call options.
|
314
|
+
#
|
315
|
+
# publishing:
|
316
|
+
# go_settings:
|
317
|
+
# renamed_services:
|
318
|
+
# Publisher: TopicAdmin
|
300
319
|
class GoSettings
|
301
320
|
include ::Google::Protobuf::MessageExts
|
302
321
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
322
|
+
|
323
|
+
# @!attribute [rw] key
|
324
|
+
# @return [::String]
|
325
|
+
# @!attribute [rw] value
|
326
|
+
# @return [::String]
|
327
|
+
class RenamedServicesEntry
|
328
|
+
include ::Google::Protobuf::MessageExts
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
330
|
+
end
|
303
331
|
end
|
304
332
|
|
305
333
|
# Describes the generator configuration for a method.
|
@@ -375,6 +403,17 @@ module Google
|
|
375
403
|
end
|
376
404
|
end
|
377
405
|
|
406
|
+
# This message is used to configure the generation of a subset of the RPCs in
|
407
|
+
# a service for client libraries.
|
408
|
+
# @!attribute [rw] methods
|
409
|
+
# @return [::Array<::String>]
|
410
|
+
# An allowlist of the fully qualified names of RPCs that should be included
|
411
|
+
# on public client surfaces.
|
412
|
+
class SelectiveGapicGeneration
|
413
|
+
include ::Google::Protobuf::MessageExts
|
414
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
415
|
+
end
|
416
|
+
|
378
417
|
# The organization for which the client libraries are being published.
|
379
418
|
# Affects the url where generated docs are published, etc.
|
380
419
|
module ClientLibraryOrganization
|
@@ -200,9 +200,27 @@ module Google
|
|
200
200
|
# The delay of data points caused by ingestion. Data points older than this
|
201
201
|
# age are guaranteed to be ingested and available to be read, excluding
|
202
202
|
# data loss due to errors.
|
203
|
+
# @!attribute [rw] time_series_resource_hierarchy_level
|
204
|
+
# @return [::Array<::Google::Api::MetricDescriptor::MetricDescriptorMetadata::TimeSeriesResourceHierarchyLevel>]
|
205
|
+
# The scope of the timeseries data of the metric.
|
203
206
|
class MetricDescriptorMetadata
|
204
207
|
include ::Google::Protobuf::MessageExts
|
205
208
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
209
|
+
|
210
|
+
# The resource hierarchy level of the timeseries data of a metric.
|
211
|
+
module TimeSeriesResourceHierarchyLevel
|
212
|
+
# Do not use this default value.
|
213
|
+
TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED = 0
|
214
|
+
|
215
|
+
# Scopes a metric to a project.
|
216
|
+
PROJECT = 1
|
217
|
+
|
218
|
+
# Scopes a metric to an organization.
|
219
|
+
ORGANIZATION = 2
|
220
|
+
|
221
|
+
# Scopes a metric to a folder.
|
222
|
+
FOLDER = 3
|
223
|
+
end
|
206
224
|
end
|
207
225
|
|
208
226
|
# The kind of measurement. It describes how the data is reported.
|
@@ -62,11 +62,12 @@ module Google
|
|
62
62
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
63
63
|
# Additional structured details about this error.
|
64
64
|
#
|
65
|
-
# Keys
|
65
|
+
# Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should
|
66
|
+
# ideally be lowerCamelCase. Also, they must be limited to 64 characters in
|
66
67
|
# length. When identifying the current value of an exceeded limit, the units
|
67
68
|
# should be contained in the key, not the value. For example, rather than
|
68
|
-
#
|
69
|
-
#
|
69
|
+
# `{"instanceLimit": "100/request"}`, should be returned as,
|
70
|
+
# `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of
|
70
71
|
# instances that can be created in a single (batch) request.
|
71
72
|
class ErrorInfo
|
72
73
|
include ::Google::Protobuf::MessageExts
|
@@ -242,6 +243,18 @@ module Google
|
|
242
243
|
# @!attribute [rw] description
|
243
244
|
# @return [::String]
|
244
245
|
# A description of why the request element is bad.
|
246
|
+
# @!attribute [rw] reason
|
247
|
+
# @return [::String]
|
248
|
+
# The reason of the field-level error. This is a constant value that
|
249
|
+
# identifies the proximate cause of the field-level error. It should
|
250
|
+
# uniquely identify the type of the FieldViolation within the scope of the
|
251
|
+
# google.rpc.ErrorInfo.domain. This should be at most 63
|
252
|
+
# characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`,
|
253
|
+
# which represents UPPER_SNAKE_CASE.
|
254
|
+
# @!attribute [rw] localized_message
|
255
|
+
# @return [::Google::Rpc::LocalizedMessage]
|
256
|
+
# Provides a localized error message for field-level errors that is safe to
|
257
|
+
# return to the API consumer.
|
245
258
|
class FieldViolation
|
246
259
|
include ::Google::Protobuf::MessageExts
|
247
260
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigquery-migration-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.24.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.24.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
|
-
rubygems_version: 3.5.
|
122
|
+
rubygems_version: 3.5.23
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: The migration service, exposing apis for migration jobs operations, and agent
|