google-cloud-bigquery-data_policies-v1 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/bigquery/data_policies/v1/data_policy_service/client.rb +49 -19
- data/lib/google/cloud/bigquery/data_policies/v1/data_policy_service/rest/client.rb +49 -19
- data/lib/google/cloud/bigquery/data_policies/v1/data_policy_service/rest/service_stub.rb +86 -56
- data/lib/google/cloud/bigquery/data_policies/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +74 -10
- data/proto_docs/google/api/resource.rb +7 -2
- 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: d8f9f1c44bdde051e6d20708af1af13912e38849f19d832843efd0ccd71f1b98
|
4
|
+
data.tar.gz: c443d97c785d2e85f7889892551436eedd7f24a5f4703a47e07b1bbf00f794cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b1758d5f92e4cabcfabcaa2cd292555a817619f914c2f47b490e1fda03a8dc1b6939a00ea7fbdee10aceb962eb08f58bf233f30cde7f04c57cea193e2311855
|
7
|
+
data.tar.gz: c3caf0d67a2fbedd9a3421a9b85dc943def1f88d8173277bd1a031097c04b5d052f4a2c0b1879eff22e22da7e8c147bbc759eec16e3a49e9c3570bcc8caa1578
|
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)
|
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/data_policies/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::Bigquery::DataPolicies::V1::DataPolicyService::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).
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Data Policy Service provides APIs for managing the label-policy bindings.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "bigquerydatapolicy.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -200,8 +203,28 @@ module Google
|
|
200
203
|
universe_domain: @config.universe_domain,
|
201
204
|
channel_args: @config.channel_args,
|
202
205
|
interceptors: @config.interceptors,
|
203
|
-
channel_pool_config: @config.channel_pool
|
206
|
+
channel_pool_config: @config.channel_pool,
|
207
|
+
logger: @config.logger
|
204
208
|
)
|
209
|
+
|
210
|
+
@data_policy_service_stub.stub_logger&.info do |entry|
|
211
|
+
entry.set_system_name
|
212
|
+
entry.set_service
|
213
|
+
entry.message = "Created client for #{entry.service}"
|
214
|
+
entry.set_credentials_fields credentials
|
215
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
216
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
217
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
##
|
222
|
+
# The logger used for request/response debug logging.
|
223
|
+
#
|
224
|
+
# @return [Logger]
|
225
|
+
#
|
226
|
+
def logger
|
227
|
+
@data_policy_service_stub.logger
|
205
228
|
end
|
206
229
|
|
207
230
|
# Service calls
|
@@ -266,10 +289,11 @@ module Google
|
|
266
289
|
# Customize the options with defaults
|
267
290
|
metadata = @config.rpcs.create_data_policy.metadata.to_h
|
268
291
|
|
269
|
-
# Set x-goog-api-client
|
292
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
270
293
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
271
294
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
272
295
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
|
296
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
273
297
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
274
298
|
|
275
299
|
header_params = {}
|
@@ -290,7 +314,6 @@ module Google
|
|
290
314
|
|
291
315
|
@data_policy_service_stub.call_rpc :create_data_policy, request, options: options do |response, operation|
|
292
316
|
yield response, operation if block_given?
|
293
|
-
return response
|
294
317
|
end
|
295
318
|
rescue ::GRPC::BadStatus => e
|
296
319
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -362,10 +385,11 @@ module Google
|
|
362
385
|
# Customize the options with defaults
|
363
386
|
metadata = @config.rpcs.update_data_policy.metadata.to_h
|
364
387
|
|
365
|
-
# Set x-goog-api-client
|
388
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
366
389
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
367
390
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
368
391
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
|
392
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
369
393
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
370
394
|
|
371
395
|
header_params = {}
|
@@ -386,7 +410,6 @@ module Google
|
|
386
410
|
|
387
411
|
@data_policy_service_stub.call_rpc :update_data_policy, request, options: options do |response, operation|
|
388
412
|
yield response, operation if block_given?
|
389
|
-
return response
|
390
413
|
end
|
391
414
|
rescue ::GRPC::BadStatus => e
|
392
415
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -450,10 +473,11 @@ module Google
|
|
450
473
|
# Customize the options with defaults
|
451
474
|
metadata = @config.rpcs.rename_data_policy.metadata.to_h
|
452
475
|
|
453
|
-
# Set x-goog-api-client
|
476
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
454
477
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
455
478
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
456
479
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
|
480
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
457
481
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
458
482
|
|
459
483
|
header_params = {}
|
@@ -474,7 +498,6 @@ module Google
|
|
474
498
|
|
475
499
|
@data_policy_service_stub.call_rpc :rename_data_policy, request, options: options do |response, operation|
|
476
500
|
yield response, operation if block_given?
|
477
|
-
return response
|
478
501
|
end
|
479
502
|
rescue ::GRPC::BadStatus => e
|
480
503
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -536,10 +559,11 @@ module Google
|
|
536
559
|
# Customize the options with defaults
|
537
560
|
metadata = @config.rpcs.delete_data_policy.metadata.to_h
|
538
561
|
|
539
|
-
# Set x-goog-api-client
|
562
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
540
563
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
541
564
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
542
565
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
|
566
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
543
567
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
544
568
|
|
545
569
|
header_params = {}
|
@@ -560,7 +584,6 @@ module Google
|
|
560
584
|
|
561
585
|
@data_policy_service_stub.call_rpc :delete_data_policy, request, options: options do |response, operation|
|
562
586
|
yield response, operation if block_given?
|
563
|
-
return response
|
564
587
|
end
|
565
588
|
rescue ::GRPC::BadStatus => e
|
566
589
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -622,10 +645,11 @@ module Google
|
|
622
645
|
# Customize the options with defaults
|
623
646
|
metadata = @config.rpcs.get_data_policy.metadata.to_h
|
624
647
|
|
625
|
-
# Set x-goog-api-client
|
648
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
626
649
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
627
650
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
628
651
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
|
652
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
629
653
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
630
654
|
|
631
655
|
header_params = {}
|
@@ -646,7 +670,6 @@ module Google
|
|
646
670
|
|
647
671
|
@data_policy_service_stub.call_rpc :get_data_policy, request, options: options do |response, operation|
|
648
672
|
yield response, operation if block_given?
|
649
|
-
return response
|
650
673
|
end
|
651
674
|
rescue ::GRPC::BadStatus => e
|
652
675
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -728,10 +751,11 @@ module Google
|
|
728
751
|
# Customize the options with defaults
|
729
752
|
metadata = @config.rpcs.list_data_policies.metadata.to_h
|
730
753
|
|
731
|
-
# Set x-goog-api-client
|
754
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
732
755
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
733
756
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
734
757
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
|
758
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
735
759
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
736
760
|
|
737
761
|
header_params = {}
|
@@ -753,7 +777,7 @@ module Google
|
|
753
777
|
@data_policy_service_stub.call_rpc :list_data_policies, request, options: options do |response, operation|
|
754
778
|
response = ::Gapic::PagedEnumerable.new @data_policy_service_stub, :list_data_policies, request, response, operation, options
|
755
779
|
yield response, operation if block_given?
|
756
|
-
|
780
|
+
throw :response, response
|
757
781
|
end
|
758
782
|
rescue ::GRPC::BadStatus => e
|
759
783
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -818,10 +842,11 @@ module Google
|
|
818
842
|
# Customize the options with defaults
|
819
843
|
metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
820
844
|
|
821
|
-
# Set x-goog-api-client
|
845
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
822
846
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
823
847
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
824
848
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
|
849
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
825
850
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
826
851
|
|
827
852
|
header_params = {}
|
@@ -842,7 +867,6 @@ module Google
|
|
842
867
|
|
843
868
|
@data_policy_service_stub.call_rpc :get_iam_policy, request, options: options do |response, operation|
|
844
869
|
yield response, operation if block_given?
|
845
|
-
return response
|
846
870
|
end
|
847
871
|
rescue ::GRPC::BadStatus => e
|
848
872
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -915,10 +939,11 @@ module Google
|
|
915
939
|
# Customize the options with defaults
|
916
940
|
metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
917
941
|
|
918
|
-
# Set x-goog-api-client
|
942
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
919
943
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
920
944
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
921
945
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
|
946
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
922
947
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
923
948
|
|
924
949
|
header_params = {}
|
@@ -939,7 +964,6 @@ module Google
|
|
939
964
|
|
940
965
|
@data_policy_service_stub.call_rpc :set_iam_policy, request, options: options do |response, operation|
|
941
966
|
yield response, operation if block_given?
|
942
|
-
return response
|
943
967
|
end
|
944
968
|
rescue ::GRPC::BadStatus => e
|
945
969
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1006,10 +1030,11 @@ module Google
|
|
1006
1030
|
# Customize the options with defaults
|
1007
1031
|
metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
1008
1032
|
|
1009
|
-
# Set x-goog-api-client
|
1033
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1010
1034
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1011
1035
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1012
1036
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
|
1037
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1013
1038
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1014
1039
|
|
1015
1040
|
header_params = {}
|
@@ -1030,7 +1055,6 @@ module Google
|
|
1030
1055
|
|
1031
1056
|
@data_policy_service_stub.call_rpc :test_iam_permissions, request, options: options do |response, operation|
|
1032
1057
|
yield response, operation if block_given?
|
1033
|
-
return response
|
1034
1058
|
end
|
1035
1059
|
rescue ::GRPC::BadStatus => e
|
1036
1060
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1119,6 +1143,11 @@ module Google
|
|
1119
1143
|
# default endpoint URL. The default value of nil uses the environment
|
1120
1144
|
# universe (usually the default "googleapis.com" universe).
|
1121
1145
|
# @return [::String,nil]
|
1146
|
+
# @!attribute [rw] logger
|
1147
|
+
# A custom logger to use for request/response debug logging, or the value
|
1148
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
1149
|
+
# explicitly disable logging.
|
1150
|
+
# @return [::Logger,:default,nil]
|
1122
1151
|
#
|
1123
1152
|
class Configuration
|
1124
1153
|
extend ::Gapic::Config
|
@@ -1143,6 +1172,7 @@ module Google
|
|
1143
1172
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1144
1173
|
config_attr :quota_project, nil, ::String, nil
|
1145
1174
|
config_attr :universe_domain, nil, ::String, nil
|
1175
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
1146
1176
|
|
1147
1177
|
# @private
|
1148
1178
|
def initialize parent_config = nil
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Data Policy Service provides APIs for managing the label-policy bindings.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "bigquerydatapolicy.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -193,8 +196,28 @@ module Google
|
|
193
196
|
endpoint: @config.endpoint,
|
194
197
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
195
198
|
universe_domain: @config.universe_domain,
|
196
|
-
credentials: credentials
|
199
|
+
credentials: credentials,
|
200
|
+
logger: @config.logger
|
197
201
|
)
|
202
|
+
|
203
|
+
@data_policy_service_stub.logger(stub: true)&.info do |entry|
|
204
|
+
entry.set_system_name
|
205
|
+
entry.set_service
|
206
|
+
entry.message = "Created client for #{entry.service}"
|
207
|
+
entry.set_credentials_fields credentials
|
208
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
209
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
210
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
##
|
215
|
+
# The logger used for request/response debug logging.
|
216
|
+
#
|
217
|
+
# @return [Logger]
|
218
|
+
#
|
219
|
+
def logger
|
220
|
+
@data_policy_service_stub.logger
|
198
221
|
end
|
199
222
|
|
200
223
|
# Service calls
|
@@ -258,12 +281,13 @@ module Google
|
|
258
281
|
# Customize the options with defaults
|
259
282
|
call_metadata = @config.rpcs.create_data_policy.metadata.to_h
|
260
283
|
|
261
|
-
# Set x-goog-api-client
|
284
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
262
285
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
263
286
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
264
287
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
|
265
288
|
transports_version_send: [:rest]
|
266
289
|
|
290
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
267
291
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
268
292
|
|
269
293
|
options.apply_defaults timeout: @config.rpcs.create_data_policy.timeout,
|
@@ -276,7 +300,6 @@ module Google
|
|
276
300
|
|
277
301
|
@data_policy_service_stub.create_data_policy request, options do |result, operation|
|
278
302
|
yield result, operation if block_given?
|
279
|
-
return result
|
280
303
|
end
|
281
304
|
rescue ::Gapic::Rest::Error => e
|
282
305
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -347,12 +370,13 @@ module Google
|
|
347
370
|
# Customize the options with defaults
|
348
371
|
call_metadata = @config.rpcs.update_data_policy.metadata.to_h
|
349
372
|
|
350
|
-
# Set x-goog-api-client
|
373
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
351
374
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
352
375
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
353
376
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
|
354
377
|
transports_version_send: [:rest]
|
355
378
|
|
379
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
356
380
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
357
381
|
|
358
382
|
options.apply_defaults timeout: @config.rpcs.update_data_policy.timeout,
|
@@ -365,7 +389,6 @@ module Google
|
|
365
389
|
|
366
390
|
@data_policy_service_stub.update_data_policy request, options do |result, operation|
|
367
391
|
yield result, operation if block_given?
|
368
|
-
return result
|
369
392
|
end
|
370
393
|
rescue ::Gapic::Rest::Error => e
|
371
394
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -428,12 +451,13 @@ module Google
|
|
428
451
|
# Customize the options with defaults
|
429
452
|
call_metadata = @config.rpcs.rename_data_policy.metadata.to_h
|
430
453
|
|
431
|
-
# Set x-goog-api-client
|
454
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
432
455
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
433
456
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
434
457
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
|
435
458
|
transports_version_send: [:rest]
|
436
459
|
|
460
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
437
461
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
438
462
|
|
439
463
|
options.apply_defaults timeout: @config.rpcs.rename_data_policy.timeout,
|
@@ -446,7 +470,6 @@ module Google
|
|
446
470
|
|
447
471
|
@data_policy_service_stub.rename_data_policy request, options do |result, operation|
|
448
472
|
yield result, operation if block_given?
|
449
|
-
return result
|
450
473
|
end
|
451
474
|
rescue ::Gapic::Rest::Error => e
|
452
475
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -507,12 +530,13 @@ module Google
|
|
507
530
|
# Customize the options with defaults
|
508
531
|
call_metadata = @config.rpcs.delete_data_policy.metadata.to_h
|
509
532
|
|
510
|
-
# Set x-goog-api-client
|
533
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
511
534
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
512
535
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
513
536
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
|
514
537
|
transports_version_send: [:rest]
|
515
538
|
|
539
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
516
540
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
517
541
|
|
518
542
|
options.apply_defaults timeout: @config.rpcs.delete_data_policy.timeout,
|
@@ -525,7 +549,6 @@ module Google
|
|
525
549
|
|
526
550
|
@data_policy_service_stub.delete_data_policy request, options do |result, operation|
|
527
551
|
yield result, operation if block_given?
|
528
|
-
return result
|
529
552
|
end
|
530
553
|
rescue ::Gapic::Rest::Error => e
|
531
554
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -586,12 +609,13 @@ module Google
|
|
586
609
|
# Customize the options with defaults
|
587
610
|
call_metadata = @config.rpcs.get_data_policy.metadata.to_h
|
588
611
|
|
589
|
-
# Set x-goog-api-client
|
612
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
590
613
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
591
614
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
592
615
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
|
593
616
|
transports_version_send: [:rest]
|
594
617
|
|
618
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
595
619
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
596
620
|
|
597
621
|
options.apply_defaults timeout: @config.rpcs.get_data_policy.timeout,
|
@@ -604,7 +628,6 @@ module Google
|
|
604
628
|
|
605
629
|
@data_policy_service_stub.get_data_policy request, options do |result, operation|
|
606
630
|
yield result, operation if block_given?
|
607
|
-
return result
|
608
631
|
end
|
609
632
|
rescue ::Gapic::Rest::Error => e
|
610
633
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -685,12 +708,13 @@ module Google
|
|
685
708
|
# Customize the options with defaults
|
686
709
|
call_metadata = @config.rpcs.list_data_policies.metadata.to_h
|
687
710
|
|
688
|
-
# Set x-goog-api-client
|
711
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
689
712
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
690
713
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
691
714
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
|
692
715
|
transports_version_send: [:rest]
|
693
716
|
|
717
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
694
718
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
695
719
|
|
696
720
|
options.apply_defaults timeout: @config.rpcs.list_data_policies.timeout,
|
@@ -704,7 +728,7 @@ module Google
|
|
704
728
|
@data_policy_service_stub.list_data_policies request, options do |result, operation|
|
705
729
|
result = ::Gapic::Rest::PagedEnumerable.new @data_policy_service_stub, :list_data_policies, "data_policies", request, result, options
|
706
730
|
yield result, operation if block_given?
|
707
|
-
|
731
|
+
throw :response, result
|
708
732
|
end
|
709
733
|
rescue ::Gapic::Rest::Error => e
|
710
734
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -768,12 +792,13 @@ module Google
|
|
768
792
|
# Customize the options with defaults
|
769
793
|
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
770
794
|
|
771
|
-
# Set x-goog-api-client
|
795
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
772
796
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
773
797
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
774
798
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
|
775
799
|
transports_version_send: [:rest]
|
776
800
|
|
801
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
777
802
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
778
803
|
|
779
804
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
@@ -786,7 +811,6 @@ module Google
|
|
786
811
|
|
787
812
|
@data_policy_service_stub.get_iam_policy request, options do |result, operation|
|
788
813
|
yield result, operation if block_given?
|
789
|
-
return result
|
790
814
|
end
|
791
815
|
rescue ::Gapic::Rest::Error => e
|
792
816
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -858,12 +882,13 @@ module Google
|
|
858
882
|
# Customize the options with defaults
|
859
883
|
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
860
884
|
|
861
|
-
# Set x-goog-api-client
|
885
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
862
886
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
863
887
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
864
888
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
|
865
889
|
transports_version_send: [:rest]
|
866
890
|
|
891
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
867
892
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
868
893
|
|
869
894
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
@@ -876,7 +901,6 @@ module Google
|
|
876
901
|
|
877
902
|
@data_policy_service_stub.set_iam_policy request, options do |result, operation|
|
878
903
|
yield result, operation if block_given?
|
879
|
-
return result
|
880
904
|
end
|
881
905
|
rescue ::Gapic::Rest::Error => e
|
882
906
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -942,12 +966,13 @@ module Google
|
|
942
966
|
# Customize the options with defaults
|
943
967
|
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
944
968
|
|
945
|
-
# Set x-goog-api-client
|
969
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
946
970
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
947
971
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
948
972
|
gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
|
949
973
|
transports_version_send: [:rest]
|
950
974
|
|
975
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
951
976
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
952
977
|
|
953
978
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
@@ -960,7 +985,6 @@ module Google
|
|
960
985
|
|
961
986
|
@data_policy_service_stub.test_iam_permissions request, options do |result, operation|
|
962
987
|
yield result, operation if block_given?
|
963
|
-
return result
|
964
988
|
end
|
965
989
|
rescue ::Gapic::Rest::Error => e
|
966
990
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1040,6 +1064,11 @@ module Google
|
|
1040
1064
|
# default endpoint URL. The default value of nil uses the environment
|
1041
1065
|
# universe (usually the default "googleapis.com" universe).
|
1042
1066
|
# @return [::String,nil]
|
1067
|
+
# @!attribute [rw] logger
|
1068
|
+
# A custom logger to use for request/response debug logging, or the value
|
1069
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
1070
|
+
# explicitly disable logging.
|
1071
|
+
# @return [::Logger,:default,nil]
|
1043
1072
|
#
|
1044
1073
|
class Configuration
|
1045
1074
|
extend ::Gapic::Config
|
@@ -1061,6 +1090,7 @@ module Google
|
|
1061
1090
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1062
1091
|
config_attr :quota_project, nil, ::String, nil
|
1063
1092
|
config_attr :universe_domain, nil, ::String, nil
|
1093
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
1064
1094
|
|
1065
1095
|
# @private
|
1066
1096
|
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: true,
|
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_data_policy 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_data_policy",
|
94
107
|
options: options
|
95
108
|
)
|
96
109
|
operation = ::Gapic::Rest::TransportOperation.new response
|
97
110
|
result = ::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy.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: "update_data_policy",
|
132
147
|
options: options
|
133
148
|
)
|
134
149
|
operation = ::Gapic::Rest::TransportOperation.new response
|
135
150
|
result = ::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy.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: "rename_data_policy",
|
170
187
|
options: options
|
171
188
|
)
|
172
189
|
operation = ::Gapic::Rest::TransportOperation.new response
|
173
190
|
result = ::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy.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_data_policy",
|
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: "get_data_policy",
|
246
267
|
options: options
|
247
268
|
)
|
248
269
|
operation = ::Gapic::Rest::TransportOperation.new response
|
249
270
|
result = ::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy.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: "list_data_policies",
|
284
307
|
options: options
|
285
308
|
)
|
286
309
|
operation = ::Gapic::Rest::TransportOperation.new response
|
287
310
|
result = ::Google::Cloud::Bigquery::DataPolicies::V1::ListDataPoliciesResponse.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: "get_iam_policy",
|
322
347
|
options: options
|
323
348
|
)
|
324
349
|
operation = ::Gapic::Rest::TransportOperation.new response
|
325
350
|
result = ::Google::Iam::V1::Policy.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
|
##
|
@@ -354,16 +380,18 @@ module Google
|
|
354
380
|
|
355
381
|
response = @client_stub.make_http_request(
|
356
382
|
verb,
|
357
|
-
uri:
|
358
|
-
body:
|
359
|
-
params:
|
383
|
+
uri: uri,
|
384
|
+
body: body || "",
|
385
|
+
params: query_string_params,
|
386
|
+
method_name: "set_iam_policy",
|
360
387
|
options: options
|
361
388
|
)
|
362
389
|
operation = ::Gapic::Rest::TransportOperation.new response
|
363
390
|
result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
364
|
-
|
365
|
-
|
366
|
-
|
391
|
+
catch :response do
|
392
|
+
yield result, operation if block_given?
|
393
|
+
result
|
394
|
+
end
|
367
395
|
end
|
368
396
|
|
369
397
|
##
|
@@ -392,16 +420,18 @@ module Google
|
|
392
420
|
|
393
421
|
response = @client_stub.make_http_request(
|
394
422
|
verb,
|
395
|
-
uri:
|
396
|
-
body:
|
397
|
-
params:
|
423
|
+
uri: uri,
|
424
|
+
body: body || "",
|
425
|
+
params: query_string_params,
|
426
|
+
method_name: "test_iam_permissions",
|
398
427
|
options: options
|
399
428
|
)
|
400
429
|
operation = ::Gapic::Rest::TransportOperation.new response
|
401
430
|
result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
|
402
|
-
|
403
|
-
|
404
|
-
|
431
|
+
catch :response do
|
432
|
+
yield result, operation if block_given?
|
433
|
+
result
|
434
|
+
end
|
405
435
|
end
|
406
436
|
|
407
437
|
##
|
@@ -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
|
@@ -118,6 +121,10 @@ module Google
|
|
118
121
|
# @return [::String]
|
119
122
|
# Optional link to proto reference documentation. Example:
|
120
123
|
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
124
|
+
# @!attribute [rw] rest_reference_documentation_uri
|
125
|
+
# @return [::String]
|
126
|
+
# Optional link to REST reference documentation. Example:
|
127
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rest
|
121
128
|
class Publishing
|
122
129
|
include ::Google::Protobuf::MessageExts
|
123
130
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -192,9 +199,32 @@ module Google
|
|
192
199
|
# @!attribute [rw] common
|
193
200
|
# @return [::Google::Api::CommonLanguageSettings]
|
194
201
|
# Some settings.
|
202
|
+
# @!attribute [rw] experimental_features
|
203
|
+
# @return [::Google::Api::PythonSettings::ExperimentalFeatures]
|
204
|
+
# Experimental features to be included during client library generation.
|
195
205
|
class PythonSettings
|
196
206
|
include ::Google::Protobuf::MessageExts
|
197
207
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
208
|
+
|
209
|
+
# Experimental features to be included during client library generation.
|
210
|
+
# These fields will be deprecated once the feature graduates and is enabled
|
211
|
+
# by default.
|
212
|
+
# @!attribute [rw] rest_async_io_enabled
|
213
|
+
# @return [::Boolean]
|
214
|
+
# Enables generation of asynchronous REST clients if `rest` transport is
|
215
|
+
# enabled. By default, asynchronous REST clients will not be generated.
|
216
|
+
# This feature will be enabled by default 1 month after launching the
|
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.
|
224
|
+
class ExperimentalFeatures
|
225
|
+
include ::Google::Protobuf::MessageExts
|
226
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
227
|
+
end
|
198
228
|
end
|
199
229
|
|
200
230
|
# Settings for Node client libraries.
|
@@ -276,9 +306,28 @@ module Google
|
|
276
306
|
# @!attribute [rw] common
|
277
307
|
# @return [::Google::Api::CommonLanguageSettings]
|
278
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
|
279
319
|
class GoSettings
|
280
320
|
include ::Google::Protobuf::MessageExts
|
281
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
|
282
331
|
end
|
283
332
|
|
284
333
|
# Describes the generator configuration for a method.
|
@@ -286,6 +335,13 @@ module Google
|
|
286
335
|
# @return [::String]
|
287
336
|
# The fully qualified name of the method, for which the options below apply.
|
288
337
|
# This is used to find the method to apply the options.
|
338
|
+
#
|
339
|
+
# Example:
|
340
|
+
#
|
341
|
+
# publishing:
|
342
|
+
# method_settings:
|
343
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
344
|
+
# # method settings for CreateFolder...
|
289
345
|
# @!attribute [rw] long_running
|
290
346
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
291
347
|
# Describes settings to use for long-running operations when generating
|
@@ -294,17 +350,14 @@ module Google
|
|
294
350
|
#
|
295
351
|
# Example of a YAML configuration::
|
296
352
|
#
|
297
|
-
#
|
298
|
-
#
|
353
|
+
# publishing:
|
354
|
+
# method_settings:
|
299
355
|
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
300
356
|
# long_running:
|
301
|
-
# initial_poll_delay:
|
302
|
-
# seconds: 60 # 1 minute
|
357
|
+
# initial_poll_delay: 60s # 1 minute
|
303
358
|
# poll_delay_multiplier: 1.5
|
304
|
-
# max_poll_delay:
|
305
|
-
#
|
306
|
-
# total_poll_timeout:
|
307
|
-
# seconds: 54000 # 90 minutes
|
359
|
+
# max_poll_delay: 360s # 6 minutes
|
360
|
+
# total_poll_timeout: 54000s # 90 minutes
|
308
361
|
# @!attribute [rw] auto_populated_fields
|
309
362
|
# @return [::Array<::String>]
|
310
363
|
# List of top-level fields of the request message, that should be
|
@@ -313,8 +366,8 @@ module Google
|
|
313
366
|
#
|
314
367
|
# Example of a YAML configuration:
|
315
368
|
#
|
316
|
-
#
|
317
|
-
#
|
369
|
+
# publishing:
|
370
|
+
# method_settings:
|
318
371
|
# - selector: google.example.v1.ExampleService.CreateExample
|
319
372
|
# auto_populated_fields:
|
320
373
|
# - request_id
|
@@ -350,6 +403,17 @@ module Google
|
|
350
403
|
end
|
351
404
|
end
|
352
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
|
+
|
353
417
|
# The organization for which the client libraries are being published.
|
354
418
|
# Affects the url where generated docs are published, etc.
|
355
419
|
module ClientLibraryOrganization
|
@@ -124,8 +124,13 @@ module Google
|
|
124
124
|
# @return [::String]
|
125
125
|
# The plural name used in the resource name and permission names, such as
|
126
126
|
# 'projects' for the resource name of 'projects/\\{project}' and the permission
|
127
|
-
# name of 'cloudresourcemanager.googleapis.com/projects.get'.
|
128
|
-
#
|
127
|
+
# name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
|
128
|
+
# to this is for Nested Collections that have stuttering names, as defined
|
129
|
+
# in [AIP-122](https://google.aip.dev/122#nested-collections), where the
|
130
|
+
# collection ID in the resource name pattern does not necessarily directly
|
131
|
+
# match the `plural` value.
|
132
|
+
#
|
133
|
+
# It is the same concept of the `plural` field in k8s CRD spec
|
129
134
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
130
135
|
#
|
131
136
|
# Note: The plural form is required even for singleton resources. See
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigquery-data_policies-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.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: 2024-
|
11
|
+
date: 2024-12-10 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
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
|
-
rubygems_version: 3.5.
|
119
|
+
rubygems_version: 3.5.23
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: Allows users to manage BigQuery data policies.
|