google-cloud-bigquery-data_policies-v1 0.7.2 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46bf64d8a935aaaa41f5812f2340c5bcf9cd42e8f70dddc33c3779cf57e96cfd
4
- data.tar.gz: 1f04abf045f1f9f242d93ad5464dee0b63222cd81ac11ea31a80b8cbf48b76c2
3
+ metadata.gz: fb7eb7d052f187b886c060eaacb2e4a9cfbc081bbd81f47c67d24411d25af234
4
+ data.tar.gz: '0837c3118b32f56544e0045f91b9d6837982389e087258ae9cb910796c208d10'
5
5
  SHA512:
6
- metadata.gz: 178940a8c6760b15462516610f2c2a10a043618d9f3a9ac66ec2f8bf3db599baa3d9dd19163c9041976380a200fc76aa6f8144ad6a9b7ab04b2e658477e5d1d6
7
- data.tar.gz: c8d5d4859ef3ad2854b0c1946310eb4c436bb8480a620d3e79b99198c44934d3a777d354effdd949aa7fc4c64aa7d2a3be275545cbbc515dcb815c34b680a759
6
+ metadata.gz: f12e5fc6a754d59786101c666ce439f195a933621547eed84f8ea5a16fad6bff753a9d78b98365176d17502b087e28cfb791d44d3d9b50b8d997a7964c53a1a9
7
+ data.tar.gz: 55c2f55f467694fdbcdc3ce5071690a500e0688e25dee845800379e447d9c28581ead5bfc7f061f150e96b25dd97390c3bd98cc34d7acd603df04827a547a4c1
data/README.md CHANGED
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
76
76
 
77
77
  ## Supported Ruby Versions
78
78
 
79
- This library is supported on Ruby 2.6+.
79
+ This library is supported on Ruby 2.7+.
80
80
 
81
81
  Google provides official support for Ruby versions that are actively supported
82
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -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
 
@@ -266,10 +269,11 @@ module Google
266
269
  # Customize the options with defaults
267
270
  metadata = @config.rpcs.create_data_policy.metadata.to_h
268
271
 
269
- # Set x-goog-api-client and x-goog-user-project headers
272
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
270
273
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
271
274
  lib_name: @config.lib_name, lib_version: @config.lib_version,
272
275
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
276
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
273
277
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
274
278
 
275
279
  header_params = {}
@@ -362,10 +366,11 @@ module Google
362
366
  # Customize the options with defaults
363
367
  metadata = @config.rpcs.update_data_policy.metadata.to_h
364
368
 
365
- # Set x-goog-api-client and x-goog-user-project headers
369
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
366
370
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
367
371
  lib_name: @config.lib_name, lib_version: @config.lib_version,
368
372
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
373
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
369
374
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
370
375
 
371
376
  header_params = {}
@@ -450,10 +455,11 @@ module Google
450
455
  # Customize the options with defaults
451
456
  metadata = @config.rpcs.rename_data_policy.metadata.to_h
452
457
 
453
- # Set x-goog-api-client and x-goog-user-project headers
458
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
454
459
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
455
460
  lib_name: @config.lib_name, lib_version: @config.lib_version,
456
461
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
462
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
457
463
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
458
464
 
459
465
  header_params = {}
@@ -536,10 +542,11 @@ module Google
536
542
  # Customize the options with defaults
537
543
  metadata = @config.rpcs.delete_data_policy.metadata.to_h
538
544
 
539
- # Set x-goog-api-client and x-goog-user-project headers
545
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
540
546
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
541
547
  lib_name: @config.lib_name, lib_version: @config.lib_version,
542
548
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
549
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
543
550
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
544
551
 
545
552
  header_params = {}
@@ -622,10 +629,11 @@ module Google
622
629
  # Customize the options with defaults
623
630
  metadata = @config.rpcs.get_data_policy.metadata.to_h
624
631
 
625
- # Set x-goog-api-client and x-goog-user-project headers
632
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
626
633
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
627
634
  lib_name: @config.lib_name, lib_version: @config.lib_version,
628
635
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
636
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
629
637
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
630
638
 
631
639
  header_params = {}
@@ -728,10 +736,11 @@ module Google
728
736
  # Customize the options with defaults
729
737
  metadata = @config.rpcs.list_data_policies.metadata.to_h
730
738
 
731
- # Set x-goog-api-client and x-goog-user-project headers
739
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
732
740
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
733
741
  lib_name: @config.lib_name, lib_version: @config.lib_version,
734
742
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
743
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
735
744
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
736
745
 
737
746
  header_params = {}
@@ -818,10 +827,11 @@ module Google
818
827
  # Customize the options with defaults
819
828
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
820
829
 
821
- # Set x-goog-api-client and x-goog-user-project headers
830
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
822
831
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
823
832
  lib_name: @config.lib_name, lib_version: @config.lib_version,
824
833
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
834
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
825
835
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
826
836
 
827
837
  header_params = {}
@@ -915,10 +925,11 @@ module Google
915
925
  # Customize the options with defaults
916
926
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
917
927
 
918
- # Set x-goog-api-client and x-goog-user-project headers
928
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
919
929
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
920
930
  lib_name: @config.lib_name, lib_version: @config.lib_version,
921
931
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
932
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
922
933
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
923
934
 
924
935
  header_params = {}
@@ -1006,10 +1017,11 @@ module Google
1006
1017
  # Customize the options with defaults
1007
1018
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1008
1019
 
1009
- # Set x-goog-api-client and x-goog-user-project headers
1020
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1010
1021
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1011
1022
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1012
1023
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION
1024
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1013
1025
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1014
1026
 
1015
1027
  header_params = {}
@@ -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
 
@@ -258,12 +261,13 @@ module Google
258
261
  # Customize the options with defaults
259
262
  call_metadata = @config.rpcs.create_data_policy.metadata.to_h
260
263
 
261
- # Set x-goog-api-client and x-goog-user-project headers
264
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
262
265
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
263
266
  lib_name: @config.lib_name, lib_version: @config.lib_version,
264
267
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
265
268
  transports_version_send: [:rest]
266
269
 
270
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
267
271
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
268
272
 
269
273
  options.apply_defaults timeout: @config.rpcs.create_data_policy.timeout,
@@ -347,12 +351,13 @@ module Google
347
351
  # Customize the options with defaults
348
352
  call_metadata = @config.rpcs.update_data_policy.metadata.to_h
349
353
 
350
- # Set x-goog-api-client and x-goog-user-project headers
354
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
351
355
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
352
356
  lib_name: @config.lib_name, lib_version: @config.lib_version,
353
357
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
354
358
  transports_version_send: [:rest]
355
359
 
360
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
356
361
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
357
362
 
358
363
  options.apply_defaults timeout: @config.rpcs.update_data_policy.timeout,
@@ -428,12 +433,13 @@ module Google
428
433
  # Customize the options with defaults
429
434
  call_metadata = @config.rpcs.rename_data_policy.metadata.to_h
430
435
 
431
- # Set x-goog-api-client and x-goog-user-project headers
436
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
432
437
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
433
438
  lib_name: @config.lib_name, lib_version: @config.lib_version,
434
439
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
435
440
  transports_version_send: [:rest]
436
441
 
442
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
437
443
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
438
444
 
439
445
  options.apply_defaults timeout: @config.rpcs.rename_data_policy.timeout,
@@ -507,12 +513,13 @@ module Google
507
513
  # Customize the options with defaults
508
514
  call_metadata = @config.rpcs.delete_data_policy.metadata.to_h
509
515
 
510
- # Set x-goog-api-client and x-goog-user-project headers
516
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
511
517
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
512
518
  lib_name: @config.lib_name, lib_version: @config.lib_version,
513
519
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
514
520
  transports_version_send: [:rest]
515
521
 
522
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
516
523
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
517
524
 
518
525
  options.apply_defaults timeout: @config.rpcs.delete_data_policy.timeout,
@@ -586,12 +593,13 @@ module Google
586
593
  # Customize the options with defaults
587
594
  call_metadata = @config.rpcs.get_data_policy.metadata.to_h
588
595
 
589
- # Set x-goog-api-client and x-goog-user-project headers
596
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
590
597
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
591
598
  lib_name: @config.lib_name, lib_version: @config.lib_version,
592
599
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
593
600
  transports_version_send: [:rest]
594
601
 
602
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
595
603
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
596
604
 
597
605
  options.apply_defaults timeout: @config.rpcs.get_data_policy.timeout,
@@ -685,12 +693,13 @@ module Google
685
693
  # Customize the options with defaults
686
694
  call_metadata = @config.rpcs.list_data_policies.metadata.to_h
687
695
 
688
- # Set x-goog-api-client and x-goog-user-project headers
696
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
689
697
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
690
698
  lib_name: @config.lib_name, lib_version: @config.lib_version,
691
699
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
692
700
  transports_version_send: [:rest]
693
701
 
702
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
694
703
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
695
704
 
696
705
  options.apply_defaults timeout: @config.rpcs.list_data_policies.timeout,
@@ -768,12 +777,13 @@ module Google
768
777
  # Customize the options with defaults
769
778
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
770
779
 
771
- # Set x-goog-api-client and x-goog-user-project headers
780
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
772
781
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
773
782
  lib_name: @config.lib_name, lib_version: @config.lib_version,
774
783
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
775
784
  transports_version_send: [:rest]
776
785
 
786
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
777
787
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
778
788
 
779
789
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -858,12 +868,13 @@ module Google
858
868
  # Customize the options with defaults
859
869
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
860
870
 
861
- # Set x-goog-api-client and x-goog-user-project headers
871
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
862
872
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
863
873
  lib_name: @config.lib_name, lib_version: @config.lib_version,
864
874
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
865
875
  transports_version_send: [:rest]
866
876
 
877
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
867
878
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
868
879
 
869
880
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -942,12 +953,13 @@ module Google
942
953
  # Customize the options with defaults
943
954
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
944
955
 
945
- # Set x-goog-api-client and x-goog-user-project headers
956
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
946
957
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
947
958
  lib_name: @config.lib_name, lib_version: @config.lib_version,
948
959
  gapic_version: ::Google::Cloud::Bigquery::DataPolicies::V1::VERSION,
949
960
  transports_version_send: [:rest]
950
961
 
962
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
951
963
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
952
964
 
953
965
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module DataPolicies
24
24
  module V1
25
- VERSION = "0.7.2"
25
+ VERSION = "0.8.1"
26
26
  end
27
27
  end
28
28
  end
@@ -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\"\xae\x01\n\x17\x43reateDataPolicyRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe2\x41\x01\x02\xfa\x41.\x12,bigquerydatapolicy.googleapis.com/DataPolicy\x12L\n\x0b\x64\x61ta_policy\x18\x02 \x01(\x0b\x32\x31.google.cloud.bigquery.datapolicies.v1.DataPolicyB\x04\xe2\x41\x01\x02\"\x98\x01\n\x17UpdateDataPolicyRequest\x12L\n\x0b\x64\x61ta_policy\x18\x01 \x01(\x0b\x32\x31.google.cloud.bigquery.datapolicies.v1.DataPolicyB\x04\xe2\x41\x01\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"O\n\x17RenameDataPolicyRequest\x12\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12 \n\x12new_data_policy_id\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\"^\n\x17\x44\x65leteDataPolicyRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe2\x41\x01\x02\xfa\x41.\n,bigquerydatapolicy.googleapis.com/DataPolicy\"[\n\x14GetDataPolicyRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe2\x41\x01\x02\xfa\x41.\n,bigquerydatapolicy.googleapis.com/DataPolicy\"\x97\x01\n\x17ListDataPoliciesRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe2\x41\x01\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\"\x85\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\x12\n\x04name\x18\x01 \x01(\tB\x04\xe2\x41\x01\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\xda\x41\x12parent,data_policy\x82\xd3\xe4\x93\x02?\"0/v1/{parent=projects/*/locations/*}/dataPolicies:\x0b\x64\x61ta_policy\x12\xf2\x01\n\x10UpdateDataPolicy\x12>.google.cloud.bigquery.datapolicies.v1.UpdateDataPolicyRequest\x1a\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\"k\xda\x41\x17\x64\x61ta_policy,update_mask\x82\xd3\xe4\x93\x02K2</v1/{data_policy.name=projects/*/locations/*/dataPolicies/*}:\x0b\x64\x61ta_policy\x12\xe3\x01\n\x10RenameDataPolicy\x12>.google.cloud.bigquery.datapolicies.v1.RenameDataPolicyRequest\x1a\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\"\\\xda\x41\x17name,new_data_policy_id\x82\xd3\xe4\x93\x02<\"7/v1/{name=projects/*/locations/*/dataPolicies/*}:rename:\x01*\x12\xab\x01\n\x10\x44\x65leteDataPolicy\x12>.google.cloud.bigquery.datapolicies.v1.DeleteDataPolicyRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/dataPolicies/*}\x12\xc0\x01\n\rGetDataPolicy\x12;.google.cloud.bigquery.datapolicies.v1.GetDataPolicyRequest\x1a\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/dataPolicies/*}\x12\xd6\x01\n\x10ListDataPolicies\x12>.google.cloud.bigquery.datapolicies.v1.ListDataPoliciesRequest\x1a?.google.cloud.bigquery.datapolicies.v1.ListDataPoliciesResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/dataPolicies\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"
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\xda\x41\x12parent,data_policy\x82\xd3\xe4\x93\x02?\"0/v1/{parent=projects/*/locations/*}/dataPolicies:\x0b\x64\x61ta_policy\x12\xf2\x01\n\x10UpdateDataPolicy\x12>.google.cloud.bigquery.datapolicies.v1.UpdateDataPolicyRequest\x1a\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\"k\xda\x41\x17\x64\x61ta_policy,update_mask\x82\xd3\xe4\x93\x02K2</v1/{data_policy.name=projects/*/locations/*/dataPolicies/*}:\x0b\x64\x61ta_policy\x12\xe3\x01\n\x10RenameDataPolicy\x12>.google.cloud.bigquery.datapolicies.v1.RenameDataPolicyRequest\x1a\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\"\\\xda\x41\x17name,new_data_policy_id\x82\xd3\xe4\x93\x02<\"7/v1/{name=projects/*/locations/*/dataPolicies/*}:rename:\x01*\x12\xab\x01\n\x10\x44\x65leteDataPolicy\x12>.google.cloud.bigquery.datapolicies.v1.DeleteDataPolicyRequest\x1a\x16.google.protobuf.Empty\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32*0/v1/{name=projects/*/locations/*/dataPolicies/*}\x12\xc0\x01\n\rGetDataPolicy\x12;.google.cloud.bigquery.datapolicies.v1.GetDataPolicyRequest\x1a\x31.google.cloud.bigquery.datapolicies.v1.DataPolicy\"?\xda\x41\x04name\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{name=projects/*/locations/*/dataPolicies/*}\x12\xd6\x01\n\x10ListDataPolicies\x12>.google.cloud.bigquery.datapolicies.v1.ListDataPoliciesRequest\x1a?.google.cloud.bigquery.datapolicies.v1.ListDataPoliciesResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/dataPolicies\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
 
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -192,9 +196,26 @@ module Google
192
196
  # @!attribute [rw] common
193
197
  # @return [::Google::Api::CommonLanguageSettings]
194
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
195
202
  class PythonSettings
196
203
  include ::Google::Protobuf::MessageExts
197
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
198
219
  end
199
220
 
200
221
  # Settings for Node client libraries.
@@ -286,6 +307,13 @@ module Google
286
307
  # @return [::String]
287
308
  # The fully qualified name of the method, for which the options below apply.
288
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
289
317
  # @!attribute [rw] long_running
290
318
  # @return [::Google::Api::MethodSettings::LongRunning]
291
319
  # Describes settings to use for long-running operations when generating
@@ -294,17 +322,14 @@ module Google
294
322
  #
295
323
  # Example of a YAML configuration::
296
324
  #
297
- # publishing:
298
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
299
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
328
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
303
330
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
308
333
  # @!attribute [rw] auto_populated_fields
309
334
  # @return [::Array<::String>]
310
335
  # List of top-level fields of the request message, that should be
@@ -313,8 +338,8 @@ module Google
313
338
  #
314
339
  # Example of a YAML configuration:
315
340
  #
316
- # publishing:
317
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
318
343
  # - selector: google.example.v1.ExampleService.CreateExample
319
344
  # auto_populated_fields:
320
345
  # - request_id
@@ -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'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
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.7.2
4
+ version: 0.8.1
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-02-01 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -58,118 +58,6 @@ dependencies:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: '1.1'
61
- - !ruby/object:Gem::Dependency
62
- name: google-style
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: 1.26.3
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: 1.26.3
75
- - !ruby/object:Gem::Dependency
76
- name: minitest
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '5.16'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '5.16'
89
- - !ruby/object:Gem::Dependency
90
- name: minitest-focus
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: '1.1'
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: '1.1'
103
- - !ruby/object:Gem::Dependency
104
- name: minitest-rg
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '5.2'
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - "~>"
115
- - !ruby/object:Gem::Version
116
- version: '5.2'
117
- - !ruby/object:Gem::Dependency
118
- name: rake
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- version: '13.0'
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- version: '13.0'
131
- - !ruby/object:Gem::Dependency
132
- name: redcarpet
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - "~>"
136
- - !ruby/object:Gem::Version
137
- version: '3.0'
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - "~>"
143
- - !ruby/object:Gem::Version
144
- version: '3.0'
145
- - !ruby/object:Gem::Dependency
146
- name: simplecov
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: '0.18'
152
- type: :development
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: '0.18'
159
- - !ruby/object:Gem::Dependency
160
- name: yard
161
- requirement: !ruby/object:Gem::Requirement
162
- requirements:
163
- - - "~>"
164
- - !ruby/object:Gem::Version
165
- version: '0.9'
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- requirements:
170
- - - "~>"
171
- - !ruby/object:Gem::Version
172
- version: '0.9'
173
61
  description: The Data Policy Service provides APIs for managing the BigQuery label-policy
174
62
  bindings. Note that google-cloud-bigquery-data_policies-v1 is a version-specific
175
63
  client library. For most uses, we recommend installing the main client library google-cloud-bigquery-data_policies
@@ -221,14 +109,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
221
109
  requirements:
222
110
  - - ">="
223
111
  - !ruby/object:Gem::Version
224
- version: '2.6'
112
+ version: '2.7'
225
113
  required_rubygems_version: !ruby/object:Gem::Requirement
226
114
  requirements:
227
115
  - - ">="
228
116
  - !ruby/object:Gem::Version
229
117
  version: '0'
230
118
  requirements: []
231
- rubygems_version: 3.5.3
119
+ rubygems_version: 3.5.6
232
120
  signing_key:
233
121
  specification_version: 4
234
122
  summary: Allows users to manage BigQuery data policies.