google-cloud-bigquery-data_policies-v1 0.4.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/bigquery/data_policies/v1/data_policy_service/client.rb +10 -1
- data/lib/google/cloud/bigquery/data_policies/v1/data_policy_service/rest/client.rb +148 -0
- data/lib/google/cloud/bigquery/data_policies/v1/version.rb +1 -1
- data/lib/google/cloud/bigquery/datapolicies/v1/datapolicy_pb.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/bigquery/datapolicies/v1/datapolicy.rb +5 -0
- 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: 829a9a06e69ee52d13c8f87e126d5defd02350861b0de9446a26e5be7b495d7c
|
4
|
+
data.tar.gz: 8553b418d385fdccc75adf95132d7c5d65312070b524a813871e8daa3996f7e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33abc1d4b5e2fdd5ce3e6f257ff722f3cf67924ccc7bcc79534ec3dab2078ed3fb9c5a397a9aa291ab90cd0ac9506ce76a4b1e79127fd22b684b07f072c1b456
|
7
|
+
data.tar.gz: 681cecd233e92e58f90effb69b5671c2803e81885c2c410510ebd40c9cb6dc90659cac936c28f7ef964fabd04c2d37a0e5da7c56a5bc823fce04e84f9869bc76
|
@@ -184,7 +184,8 @@ module Google
|
|
184
184
|
credentials: credentials,
|
185
185
|
endpoint: @config.endpoint,
|
186
186
|
channel_args: @config.channel_args,
|
187
|
-
interceptors: @config.interceptors
|
187
|
+
interceptors: @config.interceptors,
|
188
|
+
channel_pool_config: @config.channel_pool
|
188
189
|
)
|
189
190
|
end
|
190
191
|
|
@@ -1139,6 +1140,14 @@ module Google
|
|
1139
1140
|
end
|
1140
1141
|
end
|
1141
1142
|
|
1143
|
+
##
|
1144
|
+
# Configuration for the channel pool
|
1145
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1146
|
+
#
|
1147
|
+
def channel_pool
|
1148
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1149
|
+
end
|
1150
|
+
|
1142
1151
|
##
|
1143
1152
|
# Configuration RPC class for the DataPolicyService API.
|
1144
1153
|
#
|
@@ -213,6 +213,22 @@ module Google
|
|
213
213
|
# @return [::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy]
|
214
214
|
#
|
215
215
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
216
|
+
#
|
217
|
+
# @example Basic example
|
218
|
+
# require "google/cloud/bigquery/data_policies/v1"
|
219
|
+
#
|
220
|
+
# # Create a client object. The client can be reused for multiple calls.
|
221
|
+
# client = Google::Cloud::Bigquery::DataPolicies::V1::DataPolicyService::Rest::Client.new
|
222
|
+
#
|
223
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
224
|
+
# request = Google::Cloud::Bigquery::DataPolicies::V1::CreateDataPolicyRequest.new
|
225
|
+
#
|
226
|
+
# # Call the create_data_policy method.
|
227
|
+
# result = client.create_data_policy request
|
228
|
+
#
|
229
|
+
# # The returned object is of type Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy.
|
230
|
+
# p result
|
231
|
+
#
|
216
232
|
def create_data_policy request, options = nil
|
217
233
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
218
234
|
|
@@ -286,6 +302,22 @@ module Google
|
|
286
302
|
# @return [::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy]
|
287
303
|
#
|
288
304
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
305
|
+
#
|
306
|
+
# @example Basic example
|
307
|
+
# require "google/cloud/bigquery/data_policies/v1"
|
308
|
+
#
|
309
|
+
# # Create a client object. The client can be reused for multiple calls.
|
310
|
+
# client = Google::Cloud::Bigquery::DataPolicies::V1::DataPolicyService::Rest::Client.new
|
311
|
+
#
|
312
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
313
|
+
# request = Google::Cloud::Bigquery::DataPolicies::V1::UpdateDataPolicyRequest.new
|
314
|
+
#
|
315
|
+
# # Call the update_data_policy method.
|
316
|
+
# result = client.update_data_policy request
|
317
|
+
#
|
318
|
+
# # The returned object is of type Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy.
|
319
|
+
# p result
|
320
|
+
#
|
289
321
|
def update_data_policy request, options = nil
|
290
322
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
291
323
|
|
@@ -351,6 +383,22 @@ module Google
|
|
351
383
|
# @return [::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy]
|
352
384
|
#
|
353
385
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
386
|
+
#
|
387
|
+
# @example Basic example
|
388
|
+
# require "google/cloud/bigquery/data_policies/v1"
|
389
|
+
#
|
390
|
+
# # Create a client object. The client can be reused for multiple calls.
|
391
|
+
# client = Google::Cloud::Bigquery::DataPolicies::V1::DataPolicyService::Rest::Client.new
|
392
|
+
#
|
393
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
394
|
+
# request = Google::Cloud::Bigquery::DataPolicies::V1::RenameDataPolicyRequest.new
|
395
|
+
#
|
396
|
+
# # Call the rename_data_policy method.
|
397
|
+
# result = client.rename_data_policy request
|
398
|
+
#
|
399
|
+
# # The returned object is of type Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy.
|
400
|
+
# p result
|
401
|
+
#
|
354
402
|
def rename_data_policy request, options = nil
|
355
403
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
356
404
|
|
@@ -414,6 +462,22 @@ module Google
|
|
414
462
|
# @return [::Google::Protobuf::Empty]
|
415
463
|
#
|
416
464
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
465
|
+
#
|
466
|
+
# @example Basic example
|
467
|
+
# require "google/cloud/bigquery/data_policies/v1"
|
468
|
+
#
|
469
|
+
# # Create a client object. The client can be reused for multiple calls.
|
470
|
+
# client = Google::Cloud::Bigquery::DataPolicies::V1::DataPolicyService::Rest::Client.new
|
471
|
+
#
|
472
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
473
|
+
# request = Google::Cloud::Bigquery::DataPolicies::V1::DeleteDataPolicyRequest.new
|
474
|
+
#
|
475
|
+
# # Call the delete_data_policy method.
|
476
|
+
# result = client.delete_data_policy request
|
477
|
+
#
|
478
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
479
|
+
# p result
|
480
|
+
#
|
417
481
|
def delete_data_policy request, options = nil
|
418
482
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
419
483
|
|
@@ -477,6 +541,22 @@ module Google
|
|
477
541
|
# @return [::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy]
|
478
542
|
#
|
479
543
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
544
|
+
#
|
545
|
+
# @example Basic example
|
546
|
+
# require "google/cloud/bigquery/data_policies/v1"
|
547
|
+
#
|
548
|
+
# # Create a client object. The client can be reused for multiple calls.
|
549
|
+
# client = Google::Cloud::Bigquery::DataPolicies::V1::DataPolicyService::Rest::Client.new
|
550
|
+
#
|
551
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
552
|
+
# request = Google::Cloud::Bigquery::DataPolicies::V1::GetDataPolicyRequest.new
|
553
|
+
#
|
554
|
+
# # Call the get_data_policy method.
|
555
|
+
# result = client.get_data_policy request
|
556
|
+
#
|
557
|
+
# # The returned object is of type Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy.
|
558
|
+
# p result
|
559
|
+
#
|
480
560
|
def get_data_policy request, options = nil
|
481
561
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
482
562
|
|
@@ -556,6 +636,26 @@ module Google
|
|
556
636
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy>]
|
557
637
|
#
|
558
638
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
639
|
+
#
|
640
|
+
# @example Basic example
|
641
|
+
# require "google/cloud/bigquery/data_policies/v1"
|
642
|
+
#
|
643
|
+
# # Create a client object. The client can be reused for multiple calls.
|
644
|
+
# client = Google::Cloud::Bigquery::DataPolicies::V1::DataPolicyService::Rest::Client.new
|
645
|
+
#
|
646
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
647
|
+
# request = Google::Cloud::Bigquery::DataPolicies::V1::ListDataPoliciesRequest.new
|
648
|
+
#
|
649
|
+
# # Call the list_data_policies method.
|
650
|
+
# result = client.list_data_policies request
|
651
|
+
#
|
652
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
653
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
654
|
+
# result.each do |item|
|
655
|
+
# # Each element is of type ::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy.
|
656
|
+
# p item
|
657
|
+
# end
|
658
|
+
#
|
559
659
|
def list_data_policies request, options = nil
|
560
660
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
561
661
|
|
@@ -623,6 +723,22 @@ module Google
|
|
623
723
|
# @return [::Google::Iam::V1::Policy]
|
624
724
|
#
|
625
725
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
726
|
+
#
|
727
|
+
# @example Basic example
|
728
|
+
# require "google/cloud/bigquery/data_policies/v1"
|
729
|
+
#
|
730
|
+
# # Create a client object. The client can be reused for multiple calls.
|
731
|
+
# client = Google::Cloud::Bigquery::DataPolicies::V1::DataPolicyService::Rest::Client.new
|
732
|
+
#
|
733
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
734
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
735
|
+
#
|
736
|
+
# # Call the get_iam_policy method.
|
737
|
+
# result = client.get_iam_policy request
|
738
|
+
#
|
739
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
740
|
+
# p result
|
741
|
+
#
|
626
742
|
def get_iam_policy request, options = nil
|
627
743
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
628
744
|
|
@@ -697,6 +813,22 @@ module Google
|
|
697
813
|
# @return [::Google::Iam::V1::Policy]
|
698
814
|
#
|
699
815
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
816
|
+
#
|
817
|
+
# @example Basic example
|
818
|
+
# require "google/cloud/bigquery/data_policies/v1"
|
819
|
+
#
|
820
|
+
# # Create a client object. The client can be reused for multiple calls.
|
821
|
+
# client = Google::Cloud::Bigquery::DataPolicies::V1::DataPolicyService::Rest::Client.new
|
822
|
+
#
|
823
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
824
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
825
|
+
#
|
826
|
+
# # Call the set_iam_policy method.
|
827
|
+
# result = client.set_iam_policy request
|
828
|
+
#
|
829
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
830
|
+
# p result
|
831
|
+
#
|
700
832
|
def set_iam_policy request, options = nil
|
701
833
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
702
834
|
|
@@ -765,6 +897,22 @@ module Google
|
|
765
897
|
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
766
898
|
#
|
767
899
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
900
|
+
#
|
901
|
+
# @example Basic example
|
902
|
+
# require "google/cloud/bigquery/data_policies/v1"
|
903
|
+
#
|
904
|
+
# # Create a client object. The client can be reused for multiple calls.
|
905
|
+
# client = Google::Cloud::Bigquery::DataPolicies::V1::DataPolicyService::Rest::Client.new
|
906
|
+
#
|
907
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
908
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
909
|
+
#
|
910
|
+
# # Call the test_iam_permissions method.
|
911
|
+
# result = client.test_iam_permissions request
|
912
|
+
#
|
913
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
914
|
+
# p result
|
915
|
+
#
|
768
916
|
def test_iam_permissions request, options = nil
|
769
917
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
770
918
|
|
@@ -14,7 +14,7 @@ require 'google/protobuf/empty_pb'
|
|
14
14
|
require 'google/protobuf/field_mask_pb'
|
15
15
|
|
16
16
|
|
17
|
-
descriptor_data = "\n6google/cloud/bigquery/datapolicies/v1/datapolicy.proto\x12%google.cloud.bigquery.datapolicies.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xac\x01\n\x17\x43reateDataPolicyRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,bigquerydatapolicy.googleapis.com/DataPolicy\x12K\n\x0b\x64\x61ta_policy\x18\x02 \x01(\x0b\x32\x31.google.cloud.bigquery.datapolicies.v1.DataPolicyB\x03\xe0\x41\x02\"\x97\x01\n\x17UpdateDataPolicyRequest\x12K\n\x0b\x64\x61ta_policy\x18\x01 \x01(\x0b\x32\x31.google.cloud.bigquery.datapolicies.v1.DataPolicyB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"M\n\x17RenameDataPolicyRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1f\n\x12new_data_policy_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"]\n\x17\x44\x65leteDataPolicyRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,bigquerydatapolicy.googleapis.com/DataPolicy\"Z\n\x14GetDataPolicyRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,bigquerydatapolicy.googleapis.com/DataPolicy\"\x96\x01\n\x17ListDataPoliciesRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,bigquerydatapolicy.googleapis.com/DataPolicy\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"}\n\x18ListDataPoliciesResponse\x12H\n\rdata_policies\x18\x01 \x03(\x0b\x32\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x84\x04\n\nDataPolicy\x12\x14\n\npolicy_tag\x18\x04 \x01(\tH\x00\x12W\n\x13\x64\x61ta_masking_policy\x18\x05 \x01(\x0b\x32\x38.google.cloud.bigquery.datapolicies.v1.DataMaskingPolicyH\x01\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12Z\n\x10\x64\x61ta_policy_type\x18\x02 \x01(\x0e\x32@.google.cloud.bigquery.datapolicies.v1.DataPolicy.DataPolicyType\x12\x16\n\x0e\x64\x61ta_policy_id\x18\x03 \x01(\t\"m\n\x0e\x44\x61taPolicyType\x12 \n\x1c\x44\x41TA_POLICY_TYPE_UNSPECIFIED\x10\x00\x12 \n\x1c\x43OLUMN_LEVEL_SECURITY_POLICY\x10\x03\x12\x17\n\x13\x44\x41TA_MASKING_POLICY\x10\x02:u\xea\x41r\n,bigquerydatapolicy.googleapis.com/DataPolicy\x12\x42projects/{project}/locations/{location}/dataPolicies/{data_policy}B\x10\n\x0ematching_labelB\x08\n\x06policy\"\
|
17
|
+
descriptor_data = "\n6google/cloud/bigquery/datapolicies/v1/datapolicy.proto\x12%google.cloud.bigquery.datapolicies.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xac\x01\n\x17\x43reateDataPolicyRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,bigquerydatapolicy.googleapis.com/DataPolicy\x12K\n\x0b\x64\x61ta_policy\x18\x02 \x01(\x0b\x32\x31.google.cloud.bigquery.datapolicies.v1.DataPolicyB\x03\xe0\x41\x02\"\x97\x01\n\x17UpdateDataPolicyRequest\x12K\n\x0b\x64\x61ta_policy\x18\x01 \x01(\x0b\x32\x31.google.cloud.bigquery.datapolicies.v1.DataPolicyB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"M\n\x17RenameDataPolicyRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1f\n\x12new_data_policy_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"]\n\x17\x44\x65leteDataPolicyRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,bigquerydatapolicy.googleapis.com/DataPolicy\"Z\n\x14GetDataPolicyRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,bigquerydatapolicy.googleapis.com/DataPolicy\"\x96\x01\n\x17ListDataPoliciesRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,bigquerydatapolicy.googleapis.com/DataPolicy\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"}\n\x18ListDataPoliciesResponse\x12H\n\rdata_policies\x18\x01 \x03(\x0b\x32\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x84\x04\n\nDataPolicy\x12\x14\n\npolicy_tag\x18\x04 \x01(\tH\x00\x12W\n\x13\x64\x61ta_masking_policy\x18\x05 \x01(\x0b\x32\x38.google.cloud.bigquery.datapolicies.v1.DataMaskingPolicyH\x01\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12Z\n\x10\x64\x61ta_policy_type\x18\x02 \x01(\x0e\x32@.google.cloud.bigquery.datapolicies.v1.DataPolicy.DataPolicyType\x12\x16\n\x0e\x64\x61ta_policy_id\x18\x03 \x01(\t\"m\n\x0e\x44\x61taPolicyType\x12 \n\x1c\x44\x41TA_POLICY_TYPE_UNSPECIFIED\x10\x00\x12 \n\x1c\x43OLUMN_LEVEL_SECURITY_POLICY\x10\x03\x12\x17\n\x13\x44\x41TA_MASKING_POLICY\x10\x02:u\xea\x41r\n,bigquerydatapolicy.googleapis.com/DataPolicy\x12\x42projects/{project}/locations/{location}/dataPolicies/{data_policy}B\x10\n\x0ematching_labelB\x08\n\x06policy\"\xfd\x02\n\x11\x44\x61taMaskingPolicy\x12n\n\x15predefined_expression\x18\x01 \x01(\x0e\x32M.google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy.PredefinedExpressionH\x00\x12\x11\n\x07routine\x18\x03 \x01(\tH\x00\"\xce\x01\n\x14PredefinedExpression\x12%\n!PREDEFINED_EXPRESSION_UNSPECIFIED\x10\x00\x12\n\n\x06SHA256\x10\x03\x12\x0f\n\x0b\x41LWAYS_NULL\x10\x05\x12\x19\n\x15\x44\x45\x46\x41ULT_MASKING_VALUE\x10\x07\x12\x18\n\x14LAST_FOUR_CHARACTERS\x10\t\x12\x19\n\x15\x46IRST_FOUR_CHARACTERS\x10\n\x12\x0e\n\nEMAIL_MASK\x10\x0c\x12\x12\n\x0e\x44\x41TE_YEAR_MASK\x10\rB\x14\n\x12masking_expression2\x90\x0f\n\x11\x44\x61taPolicyService\x12\xe1\x01\n\x10\x43reateDataPolicy\x12>.google.cloud.bigquery.datapolicies.v1.CreateDataPolicyRequest\x1a\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\"Z\x82\xd3\xe4\x93\x02?\"0/v1/{parent=projects/*/locations/*}/dataPolicies:\x0b\x64\x61ta_policy\xda\x41\x12parent,data_policy\x12\xf2\x01\n\x10UpdateDataPolicy\x12>.google.cloud.bigquery.datapolicies.v1.UpdateDataPolicyRequest\x1a\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\"k\x82\xd3\xe4\x93\x02K2</v1/{data_policy.name=projects/*/locations/*/dataPolicies/*}:\x0b\x64\x61ta_policy\xda\x41\x17\x64\x61ta_policy,update_mask\x12\xe3\x01\n\x10RenameDataPolicy\x12>.google.cloud.bigquery.datapolicies.v1.RenameDataPolicyRequest\x1a\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\"\\\x82\xd3\xe4\x93\x02<\"7/v1/{name=projects/*/locations/*/dataPolicies/*}:rename:\x01*\xda\x41\x17name,new_data_policy_id\x12\xab\x01\n\x10\x44\x65leteDataPolicy\x12>.google.cloud.bigquery.datapolicies.v1.DeleteDataPolicyRequest\x1a\x16.google.protobuf.Empty\"?\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/dataPolicies/*}\xda\x41\x04name\x12\xc0\x01\n\rGetDataPolicy\x12;.google.cloud.bigquery.datapolicies.v1.GetDataPolicyRequest\x1a\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\"?\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/dataPolicies/*}\xda\x41\x04name\x12\xd6\x01\n\x10ListDataPolicies\x12>.google.cloud.bigquery.datapolicies.v1.ListDataPoliciesRequest\x1a?.google.cloud.bigquery.datapolicies.v1.ListDataPoliciesResponse\"A\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/dataPolicies\xda\x41\x06parent\x12\x97\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"L\x82\xd3\xe4\x93\x02\x46\"A/v1/{resource=projects/*/locations/*/dataPolicies/*}:getIamPolicy:\x01*\x12\x97\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"L\x82\xd3\xe4\x93\x02\x46\"A/v1/{resource=projects/*/locations/*/dataPolicies/*}:setIamPolicy:\x01*\x12\xbd\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"R\x82\xd3\xe4\x93\x02L\"G/v1/{resource=projects/*/locations/*/dataPolicies/*}:testIamPermissions:\x01*\x1a~\xca\x41!bigquerydatapolicy.googleapis.com\xd2\x41Whttps://www.googleapis.com/auth/bigquery,https://www.googleapis.com/auth/cloud-platformB\x89\x02\n)com.google.cloud.bigquery.datapolicies.v1B\x0f\x44\x61taPolicyProtoP\x01ZMcloud.google.com/go/bigquery/datapolicies/apiv1/datapoliciespb;datapoliciespb\xaa\x02%Google.Cloud.BigQuery.DataPolicies.V1\xca\x02%Google\\Cloud\\BigQuery\\DataPolicies\\V1\xea\x02)Google::Cloud::Bigquery::DataPolicies::V1b\x06proto3"
|
18
18
|
|
19
19
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
20
20
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
@@ -173,6 +173,11 @@ module Google
|
|
173
173
|
# @!attribute [rw] predefined_expression
|
174
174
|
# @return [::Google::Cloud::Bigquery::DataPolicies::V1::DataMaskingPolicy::PredefinedExpression]
|
175
175
|
# A predefined masking expression.
|
176
|
+
# @!attribute [rw] routine
|
177
|
+
# @return [::String]
|
178
|
+
# The name of the BigQuery routine that contains the custom masking
|
179
|
+
# routine, in the format of
|
180
|
+
# `projects/{project_number}/datasets/{dataset_id}/routines/{routine_id}`.
|
176
181
|
class DataMaskingPolicy
|
177
182
|
include ::Google::Protobuf::MessageExts
|
178
183
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
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.6.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: 2023-
|
11
|
+
date: 2023-09-12 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.20.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.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -228,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
228
228
|
- !ruby/object:Gem::Version
|
229
229
|
version: '0'
|
230
230
|
requirements: []
|
231
|
-
rubygems_version: 3.4.
|
231
|
+
rubygems_version: 3.4.19
|
232
232
|
signing_key:
|
233
233
|
specification_version: 4
|
234
234
|
summary: Allows users to manage BigQuery data policies.
|