google-cloud-bigquery-data_policies-v1beta1 0.a → 0.2.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/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/README.md +144 -8
- data/lib/google/cloud/bigquery/data_policies/v1beta1/data_policy_service/client.rb +1128 -0
- data/lib/google/cloud/bigquery/data_policies/v1beta1/data_policy_service/credentials.rb +50 -0
- data/lib/google/cloud/bigquery/data_policies/v1beta1/data_policy_service/paths.rb +71 -0
- data/lib/google/cloud/bigquery/data_policies/v1beta1/data_policy_service.rb +51 -0
- data/lib/google/cloud/bigquery/data_policies/v1beta1/version.rb +7 -2
- data/lib/google/cloud/bigquery/data_policies/v1beta1.rb +42 -0
- data/lib/google/cloud/bigquery/datapolicies/v1beta1/datapolicy_pb.rb +63 -0
- data/lib/google/cloud/bigquery/datapolicies/v1beta1/datapolicy_services_pb.rb +63 -0
- data/lib/google-cloud-bigquery-data_policies-v1beta1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/bigquery/datapolicies/v1beta1/datapolicy.rb +195 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
- data/proto_docs/google/iam/v1/options.rb +50 -0
- data/proto_docs/google/iam/v1/policy.rb +422 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +195 -13
@@ -0,0 +1,50 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Bigquery
|
24
|
+
module DataPolicies
|
25
|
+
module V1beta1
|
26
|
+
module DataPolicyService
|
27
|
+
# Credentials for the DataPolicyService API.
|
28
|
+
class Credentials < ::Google::Auth::Credentials
|
29
|
+
self.scope = [
|
30
|
+
"https://www.googleapis.com/auth/bigquery",
|
31
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
32
|
+
]
|
33
|
+
self.env_vars = [
|
34
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
35
|
+
"GOOGLE_CLOUD_KEYFILE",
|
36
|
+
"GCLOUD_KEYFILE",
|
37
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
38
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
39
|
+
"GCLOUD_KEYFILE_JSON"
|
40
|
+
]
|
41
|
+
self.paths = [
|
42
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
43
|
+
]
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Bigquery
|
23
|
+
module DataPolicies
|
24
|
+
module V1beta1
|
25
|
+
module DataPolicyService
|
26
|
+
# Path helper methods for the DataPolicyService API.
|
27
|
+
module Paths
|
28
|
+
##
|
29
|
+
# Create a fully-qualified DataPolicy resource string.
|
30
|
+
#
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/dataPolicies/{data_policy}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param data_policy [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def data_policy_path project:, location:, data_policy:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
43
|
+
|
44
|
+
"projects/#{project}/locations/#{location}/dataPolicies/#{data_policy}"
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# Create a fully-qualified Location resource string.
|
49
|
+
#
|
50
|
+
# The resource will be in the following format:
|
51
|
+
#
|
52
|
+
# `projects/{project}/locations/{location}`
|
53
|
+
#
|
54
|
+
# @param project [String]
|
55
|
+
# @param location [String]
|
56
|
+
#
|
57
|
+
# @return [::String]
|
58
|
+
def location_path project:, location:
|
59
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
60
|
+
|
61
|
+
"projects/#{project}/locations/#{location}"
|
62
|
+
end
|
63
|
+
|
64
|
+
extend self
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/bigquery/data_policies/v1beta1/version"
|
24
|
+
|
25
|
+
require "google/cloud/bigquery/data_policies/v1beta1/data_policy_service/credentials"
|
26
|
+
require "google/cloud/bigquery/data_policies/v1beta1/data_policy_service/paths"
|
27
|
+
require "google/cloud/bigquery/data_policies/v1beta1/data_policy_service/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module Bigquery
|
32
|
+
module DataPolicies
|
33
|
+
module V1beta1
|
34
|
+
##
|
35
|
+
# Data Policy Service provides APIs for managing the label-policy bindings.
|
36
|
+
#
|
37
|
+
# @example Load this service and instantiate a gRPC client
|
38
|
+
#
|
39
|
+
# require "google/cloud/bigquery/data_policies/v1beta1/data_policy_service"
|
40
|
+
# client = ::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicyService::Client.new
|
41
|
+
#
|
42
|
+
module DataPolicyService
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
helper_path = ::File.join __dir__, "data_policy_service", "helpers.rb"
|
51
|
+
require "google/cloud/bigquery/data_policies/v1beta1/data_policy_service/helpers" if ::File.file? helper_path
|
@@ -1,10 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Copyright 2022 Google LLC
|
2
4
|
#
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
6
|
# you may not use this file except in compliance with the License.
|
5
7
|
# You may obtain a copy of the License at
|
6
8
|
#
|
7
|
-
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
10
|
#
|
9
11
|
# Unless required by applicable law or agreed to in writing, software
|
10
12
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
@@ -12,12 +14,15 @@
|
|
12
14
|
# See the License for the specific language governing permissions and
|
13
15
|
# limitations under the License.
|
14
16
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
15
20
|
module Google
|
16
21
|
module Cloud
|
17
22
|
module Bigquery
|
18
23
|
module DataPolicies
|
19
24
|
module V1beta1
|
20
|
-
VERSION = "0.
|
25
|
+
VERSION = "0.2.0"
|
21
26
|
end
|
22
27
|
end
|
23
28
|
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/bigquery/data_policies/v1beta1/data_policy_service"
|
20
|
+
require "google/cloud/bigquery/data_policies/v1beta1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Bigquery
|
25
|
+
module DataPolicies
|
26
|
+
##
|
27
|
+
# API client module.
|
28
|
+
#
|
29
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
30
|
+
#
|
31
|
+
# require "google/cloud/bigquery/data_policies/v1beta1"
|
32
|
+
# client = ::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicyService::Client.new
|
33
|
+
#
|
34
|
+
module V1beta1
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
helper_path = ::File.join __dir__, "v1beta1", "_helpers.rb"
|
42
|
+
require "google/cloud/bigquery/data_policies/v1beta1/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/bigquery/datapolicies/v1beta1/datapolicy.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
11
|
+
require 'google/iam/v1/iam_policy_pb'
|
12
|
+
require 'google/iam/v1/policy_pb'
|
13
|
+
require 'google/protobuf/empty_pb'
|
14
|
+
require 'google/protobuf/field_mask_pb'
|
15
|
+
|
16
|
+
|
17
|
+
descriptor_data = "\n;google/cloud/bigquery/datapolicies/v1beta1/datapolicy.proto\x12*google.cloud.bigquery.datapolicies.v1beta1\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\"\xb1\x01\n\x17\x43reateDataPolicyRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,bigquerydatapolicy.googleapis.com/DataPolicy\x12P\n\x0b\x64\x61ta_policy\x18\x02 \x01(\x0b\x32\x36.google.cloud.bigquery.datapolicies.v1beta1.DataPolicyB\x03\xe0\x41\x02\"\x9c\x01\n\x17UpdateDataPolicyRequest\x12P\n\x0b\x64\x61ta_policy\x18\x01 \x01(\x0b\x32\x36.google.cloud.bigquery.datapolicies.v1beta1.DataPolicyB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"]\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\"\x86\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\"\x82\x01\n\x18ListDataPoliciesResponse\x12M\n\rdata_policies\x18\x01 \x03(\x0b\x32\x36.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8e\x04\n\nDataPolicy\x12\x14\n\npolicy_tag\x18\x04 \x01(\tH\x00\x12\\\n\x13\x64\x61ta_masking_policy\x18\x05 \x01(\x0b\x32=.google.cloud.bigquery.datapolicies.v1beta1.DataMaskingPolicyH\x01\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12_\n\x10\x64\x61ta_policy_type\x18\x02 \x01(\x0e\x32\x45.google.cloud.bigquery.datapolicies.v1beta1.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\"\x95\x02\n\x11\x44\x61taMaskingPolicy\x12s\n\x15predefined_expression\x18\x01 \x01(\x0e\x32R.google.cloud.bigquery.datapolicies.v1beta1.DataMaskingPolicy.PredefinedExpressionH\x00\"u\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\x42\x14\n\x12masking_expression2\xff\r\n\x11\x44\x61taPolicyService\x12\xf0\x01\n\x10\x43reateDataPolicy\x12\x43.google.cloud.bigquery.datapolicies.v1beta1.CreateDataPolicyRequest\x1a\x36.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy\"_\x82\xd3\xe4\x93\x02\x44\"5/v1beta1/{parent=projects/*/locations/*}/dataPolicies:\x0b\x64\x61ta_policy\xda\x41\x12parent,data_policy\x12\x81\x02\n\x10UpdateDataPolicy\x12\x43.google.cloud.bigquery.datapolicies.v1beta1.UpdateDataPolicyRequest\x1a\x36.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy\"p\x82\xd3\xe4\x93\x02P2A/v1beta1/{data_policy.name=projects/*/locations/*/dataPolicies/*}:\x0b\x64\x61ta_policy\xda\x41\x17\x64\x61ta_policy,update_mask\x12\xb5\x01\n\x10\x44\x65leteDataPolicy\x12\x43.google.cloud.bigquery.datapolicies.v1beta1.DeleteDataPolicyRequest\x1a\x16.google.protobuf.Empty\"D\x82\xd3\xe4\x93\x02\x37*5/v1beta1/{name=projects/*/locations/*/dataPolicies/*}\xda\x41\x04name\x12\xcf\x01\n\rGetDataPolicy\x12@.google.cloud.bigquery.datapolicies.v1beta1.GetDataPolicyRequest\x1a\x36.google.cloud.bigquery.datapolicies.v1beta1.DataPolicy\"D\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta1/{name=projects/*/locations/*/dataPolicies/*}\xda\x41\x04name\x12\xe5\x01\n\x10ListDataPolicies\x12\x43.google.cloud.bigquery.datapolicies.v1beta1.ListDataPoliciesRequest\x1a\x44.google.cloud.bigquery.datapolicies.v1beta1.ListDataPoliciesResponse\"F\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta1/{parent=projects/*/locations/*}/dataPolicies\xda\x41\x06parent\x12\x9c\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"Q\x82\xd3\xe4\x93\x02K\"F/v1beta1/{resource=projects/*/locations/*/dataPolicies/*}:getIamPolicy:\x01*\x12\x9c\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"Q\x82\xd3\xe4\x93\x02K\"F/v1beta1/{resource=projects/*/locations/*/dataPolicies/*}:setIamPolicy:\x01*\x12\xc2\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"W\x82\xd3\xe4\x93\x02Q\"L/v1beta1/{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\xa2\x02\n.com.google.cloud.bigquery.datapolicies.v1beta1B\x0f\x44\x61taPolicyProtoP\x01ZRcloud.google.com/go/bigquery/datapolicies/apiv1beta1/datapoliciespb;datapoliciespb\xaa\x02*Google.Cloud.BigQuery.DataPolicies.V1Beta1\xca\x02*Google\\Cloud\\BigQuery\\DataPolicies\\V1beta1\xea\x02.Google::Cloud::Bigquery::DataPolicies::V1beta1b\x06proto3"
|
18
|
+
|
19
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
20
|
+
|
21
|
+
begin
|
22
|
+
pool.add_serialized_file(descriptor_data)
|
23
|
+
rescue TypeError => e
|
24
|
+
# Compatibility code: will be removed in the next major version.
|
25
|
+
require 'google/protobuf/descriptor_pb'
|
26
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
27
|
+
parsed.clear_dependency
|
28
|
+
serialized = parsed.class.encode(parsed)
|
29
|
+
file = pool.add_serialized_file(serialized)
|
30
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
31
|
+
imports = [
|
32
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
33
|
+
]
|
34
|
+
imports.each do |type_name, expected_filename|
|
35
|
+
import_file = pool.lookup(type_name).file_descriptor
|
36
|
+
if import_file.name != expected_filename
|
37
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
41
|
+
warn "This will become an error in the next major version."
|
42
|
+
end
|
43
|
+
|
44
|
+
module Google
|
45
|
+
module Cloud
|
46
|
+
module Bigquery
|
47
|
+
module DataPolicies
|
48
|
+
module V1beta1
|
49
|
+
CreateDataPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datapolicies.v1beta1.CreateDataPolicyRequest").msgclass
|
50
|
+
UpdateDataPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datapolicies.v1beta1.UpdateDataPolicyRequest").msgclass
|
51
|
+
DeleteDataPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datapolicies.v1beta1.DeleteDataPolicyRequest").msgclass
|
52
|
+
GetDataPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datapolicies.v1beta1.GetDataPolicyRequest").msgclass
|
53
|
+
ListDataPoliciesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datapolicies.v1beta1.ListDataPoliciesRequest").msgclass
|
54
|
+
ListDataPoliciesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datapolicies.v1beta1.ListDataPoliciesResponse").msgclass
|
55
|
+
DataPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datapolicies.v1beta1.DataPolicy").msgclass
|
56
|
+
DataPolicy::DataPolicyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datapolicies.v1beta1.DataPolicy.DataPolicyType").enummodule
|
57
|
+
DataMaskingPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datapolicies.v1beta1.DataMaskingPolicy").msgclass
|
58
|
+
DataMaskingPolicy::PredefinedExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.datapolicies.v1beta1.DataMaskingPolicy.PredefinedExpression").enummodule
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/bigquery/datapolicies/v1beta1/datapolicy.proto for package 'Google.Cloud.Bigquery.DataPolicies.V1beta1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2022 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/bigquery/datapolicies/v1beta1/datapolicy_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Bigquery
|
25
|
+
module DataPolicies
|
26
|
+
module V1beta1
|
27
|
+
module DataPolicyService
|
28
|
+
# Data Policy Service provides APIs for managing the label-policy bindings.
|
29
|
+
class Service
|
30
|
+
|
31
|
+
include ::GRPC::GenericService
|
32
|
+
|
33
|
+
self.marshal_class_method = :encode
|
34
|
+
self.unmarshal_class_method = :decode
|
35
|
+
self.service_name = 'google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService'
|
36
|
+
|
37
|
+
# Creates a new data policy under a project with the given `dataPolicyId`
|
38
|
+
# (used as the display name), policy tag, and data policy type.
|
39
|
+
rpc :CreateDataPolicy, ::Google::Cloud::Bigquery::DataPolicies::V1beta1::CreateDataPolicyRequest, ::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy
|
40
|
+
# Updates the metadata for an existing data policy. The target data policy
|
41
|
+
# can be specified by the resource name.
|
42
|
+
rpc :UpdateDataPolicy, ::Google::Cloud::Bigquery::DataPolicies::V1beta1::UpdateDataPolicyRequest, ::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy
|
43
|
+
# Deletes the data policy specified by its resource name.
|
44
|
+
rpc :DeleteDataPolicy, ::Google::Cloud::Bigquery::DataPolicies::V1beta1::DeleteDataPolicyRequest, ::Google::Protobuf::Empty
|
45
|
+
# Gets the data policy specified by its resource name.
|
46
|
+
rpc :GetDataPolicy, ::Google::Cloud::Bigquery::DataPolicies::V1beta1::GetDataPolicyRequest, ::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataPolicy
|
47
|
+
# List all of the data policies in the specified parent project.
|
48
|
+
rpc :ListDataPolicies, ::Google::Cloud::Bigquery::DataPolicies::V1beta1::ListDataPoliciesRequest, ::Google::Cloud::Bigquery::DataPolicies::V1beta1::ListDataPoliciesResponse
|
49
|
+
# Gets the IAM policy for the specified data policy.
|
50
|
+
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
51
|
+
# Sets the IAM policy for the specified data policy.
|
52
|
+
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
53
|
+
# Returns the caller's permission on the specified data policy resource.
|
54
|
+
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
55
|
+
end
|
56
|
+
|
57
|
+
Stub = Service.rpc_stub_class
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/bigquery/data_policies/v1beta1"
|