google-cloud-bigquery-data_policies-v1 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/bigquery/data_policies/v1/data_policy_service/client.rb +4 -3
- data/lib/google/cloud/bigquery/data_policies/v1/data_policy_service/rest/client.rb +4 -3
- 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/cloud/bigquery/datapolicies/v1/datapolicy.rb +49 -6
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bbb3a5dacb4e9fa378033c1ad74d10968bbebae56b3f55e0fe1d89757e46125c
|
|
4
|
+
data.tar.gz: 9129cf9e1216be57eb388e0d4e01e37da7fb72a5de97b3fdb2f815e424bcde27
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 85d253980f84bfa5c154c25e704ba37cc3b70e3c3f6cb9951ab7c6ca4ee8cb36a584c3eaff7c4ec6925ac5b1f23b27724e7f604fa16222a1be98908b19e352d4
|
|
7
|
+
data.tar.gz: 78c597ffbbe3cb82b7003c9235519ca2df826ac86afded542d7d123c664e71c74b121c7460251916ab94cbb7ea6a38300baee2c412084e5bf4d6d0352e464cb3
|
|
@@ -669,9 +669,10 @@ module Google
|
|
|
669
669
|
# are associated with. Currently filter only supports
|
|
670
670
|
# "policy<span></span>_tag" based filtering and OR based predicates. Sample
|
|
671
671
|
# filter can be "policy<span></span>_tag:
|
|
672
|
-
#
|
|
673
|
-
# wildcard such as "policy<span></span>_tag:
|
|
674
|
-
#
|
|
672
|
+
# projects/1/locations/us/taxonomies/2/policyTags/3".
|
|
673
|
+
# You may also use wildcard such as "policy<span></span>_tag:
|
|
674
|
+
# projects/1/locations/us/taxonomies/2*". Please note that OR predicates
|
|
675
|
+
# cannot be used with wildcard filters.
|
|
675
676
|
#
|
|
676
677
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
677
678
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy>]
|
|
@@ -545,9 +545,10 @@ module Google
|
|
|
545
545
|
# are associated with. Currently filter only supports
|
|
546
546
|
# "policy<span></span>_tag" based filtering and OR based predicates. Sample
|
|
547
547
|
# filter can be "policy<span></span>_tag:
|
|
548
|
-
#
|
|
549
|
-
# wildcard such as "policy<span></span>_tag:
|
|
550
|
-
#
|
|
548
|
+
# projects/1/locations/us/taxonomies/2/policyTags/3".
|
|
549
|
+
# You may also use wildcard such as "policy<span></span>_tag:
|
|
550
|
+
# projects/1/locations/us/taxonomies/2*". Please note that OR predicates
|
|
551
|
+
# cannot be used with wildcard filters.
|
|
551
552
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
552
553
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Bigquery::DataPolicies::V1::DataPolicy>]
|
|
553
554
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -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\"\xea\x02\n\x11\x44\x61taMaskingPolicy\x12n\n\x15predefined_expression\x18\x01 \x01(\x0e\x32M.google.cloud.bigquery.datapolicies.v1.DataMaskingPolicy.PredefinedExpressionH\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
|
|
|
@@ -109,9 +109,10 @@ module Google
|
|
|
109
109
|
# are associated with. Currently filter only supports
|
|
110
110
|
# "policy<span></span>_tag" based filtering and OR based predicates. Sample
|
|
111
111
|
# filter can be "policy<span></span>_tag:
|
|
112
|
-
#
|
|
113
|
-
# wildcard such as "policy<span></span>_tag:
|
|
114
|
-
#
|
|
112
|
+
# projects/1/locations/us/taxonomies/2/policyTags/3".
|
|
113
|
+
# You may also use wildcard such as "policy<span></span>_tag:
|
|
114
|
+
# projects/1/locations/us/taxonomies/2*". Please note that OR predicates
|
|
115
|
+
# cannot be used with wildcard filters.
|
|
115
116
|
class ListDataPoliciesRequest
|
|
116
117
|
include ::Google::Protobuf::MessageExts
|
|
117
118
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -198,16 +199,58 @@ module Google
|
|
|
198
199
|
# * FLOAT: 0.0
|
|
199
200
|
# * NUMERIC: 0
|
|
200
201
|
# * BOOLEAN: FALSE
|
|
201
|
-
# * TIMESTAMP:
|
|
202
|
-
# * DATE:
|
|
202
|
+
# * TIMESTAMP: 1970-01-01 00:00:00 UTC
|
|
203
|
+
# * DATE: 1970-01-01
|
|
203
204
|
# * TIME: 00:00:00
|
|
204
|
-
# * DATETIME:
|
|
205
|
+
# * DATETIME: 1970-01-01T00:00:00
|
|
205
206
|
# * GEOGRAPHY: POINT(0 0)
|
|
206
207
|
# * BIGNUMERIC: 0
|
|
207
208
|
# * ARRAY: []
|
|
208
209
|
# * STRUCT: NOT_APPLICABLE
|
|
209
210
|
# * JSON: NULL
|
|
210
211
|
DEFAULT_MASKING_VALUE = 7
|
|
212
|
+
|
|
213
|
+
# Masking expression shows the last four characters of text.
|
|
214
|
+
# The masking behavior is as follows:
|
|
215
|
+
#
|
|
216
|
+
# * If text length > 4 characters: Replace text with XXXXX, append last
|
|
217
|
+
# four characters of original text.
|
|
218
|
+
# * If text length <= 4 characters: Apply SHA-256 hash.
|
|
219
|
+
LAST_FOUR_CHARACTERS = 9
|
|
220
|
+
|
|
221
|
+
# Masking expression shows the first four characters of text.
|
|
222
|
+
# The masking behavior is as follows:
|
|
223
|
+
#
|
|
224
|
+
# * If text length > 4 characters: Replace text with XXXXX, prepend first
|
|
225
|
+
# four characters of original text.
|
|
226
|
+
# * If text length <= 4 characters: Apply SHA-256 hash.
|
|
227
|
+
FIRST_FOUR_CHARACTERS = 10
|
|
228
|
+
|
|
229
|
+
# Masking expression for email addresses.
|
|
230
|
+
# The masking behavior is as follows:
|
|
231
|
+
#
|
|
232
|
+
# * Syntax-valid email address: Replace username with XXXXX. For example,
|
|
233
|
+
# cloudysanfrancisco@gmail.com becomes XXXXX@gmail.com.
|
|
234
|
+
# * Syntax-invalid email address: Apply SHA-256 hash.
|
|
235
|
+
#
|
|
236
|
+
# For more information, see [Email
|
|
237
|
+
# mask](https://cloud.google.com/bigquery/docs/column-data-masking-intro#masking_options).
|
|
238
|
+
EMAIL_MASK = 12
|
|
239
|
+
|
|
240
|
+
# Masking expression to only show the year of `Date`,
|
|
241
|
+
# `DateTime` and `TimeStamp`. For example, with the
|
|
242
|
+
# year 2076:
|
|
243
|
+
#
|
|
244
|
+
# * DATE : 2076-01-01
|
|
245
|
+
# * DATETIME : 2076-01-01T00:00:00
|
|
246
|
+
# * TIMESTAMP : 2076-01-01 00:00:00 UTC
|
|
247
|
+
#
|
|
248
|
+
# Truncation occurs according to the UTC time zone. To change this, adjust
|
|
249
|
+
# the default time zone using the `time_zone` system variable.
|
|
250
|
+
# For more information, see the <a
|
|
251
|
+
# href="https://cloud.google.com/bigquery/docs/reference/system-variables">System
|
|
252
|
+
# variables reference</a>.
|
|
253
|
+
DATE_YEAR_MASK = 13
|
|
211
254
|
end
|
|
212
255
|
end
|
|
213
256
|
end
|
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.4.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-08-
|
|
11
|
+
date: 2023-08-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|