google-apis-bigquerydatapolicy_v2 0.1.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.
@@ -0,0 +1,28 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ module Google
16
+ module Apis
17
+ module BigquerydatapolicyV2
18
+ # Version of the google-apis-bigquerydatapolicy_v2 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.18.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20251001"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,276 @@
1
+ # Copyright 2020 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module BigquerydatapolicyV2
24
+
25
+ class AddGranteesRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AuditConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AuditLogConfig
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Binding
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CreateDataPolicyRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class DataMaskingPolicy
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class DataPolicy
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Empty
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Expr
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GetIamPolicyRequest
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GetPolicyOptions
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ListDataPoliciesResponse
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class Policy
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class RemoveGranteesRequest
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class SetIamPolicyRequest
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class TestIamPermissionsRequest
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class TestIamPermissionsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class AddGranteesRequest
128
+ # @private
129
+ class Representation < Google::Apis::Core::JsonRepresentation
130
+ collection :grantees, as: 'grantees'
131
+ end
132
+ end
133
+
134
+ class AuditConfig
135
+ # @private
136
+ class Representation < Google::Apis::Core::JsonRepresentation
137
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::BigquerydatapolicyV2::AuditLogConfig, decorator: Google::Apis::BigquerydatapolicyV2::AuditLogConfig::Representation
138
+
139
+ property :service, as: 'service'
140
+ end
141
+ end
142
+
143
+ class AuditLogConfig
144
+ # @private
145
+ class Representation < Google::Apis::Core::JsonRepresentation
146
+ collection :exempted_members, as: 'exemptedMembers'
147
+ property :log_type, as: 'logType'
148
+ end
149
+ end
150
+
151
+ class Binding
152
+ # @private
153
+ class Representation < Google::Apis::Core::JsonRepresentation
154
+ property :condition, as: 'condition', class: Google::Apis::BigquerydatapolicyV2::Expr, decorator: Google::Apis::BigquerydatapolicyV2::Expr::Representation
155
+
156
+ collection :members, as: 'members'
157
+ property :role, as: 'role'
158
+ end
159
+ end
160
+
161
+ class CreateDataPolicyRequest
162
+ # @private
163
+ class Representation < Google::Apis::Core::JsonRepresentation
164
+ property :data_policy, as: 'dataPolicy', class: Google::Apis::BigquerydatapolicyV2::DataPolicy, decorator: Google::Apis::BigquerydatapolicyV2::DataPolicy::Representation
165
+
166
+ property :data_policy_id, as: 'dataPolicyId'
167
+ end
168
+ end
169
+
170
+ class DataMaskingPolicy
171
+ # @private
172
+ class Representation < Google::Apis::Core::JsonRepresentation
173
+ property :predefined_expression, as: 'predefinedExpression'
174
+ property :routine, as: 'routine'
175
+ end
176
+ end
177
+
178
+ class DataPolicy
179
+ # @private
180
+ class Representation < Google::Apis::Core::JsonRepresentation
181
+ property :data_masking_policy, as: 'dataMaskingPolicy', class: Google::Apis::BigquerydatapolicyV2::DataMaskingPolicy, decorator: Google::Apis::BigquerydatapolicyV2::DataMaskingPolicy::Representation
182
+
183
+ property :data_policy_id, as: 'dataPolicyId'
184
+ property :data_policy_type, as: 'dataPolicyType'
185
+ property :etag, as: 'etag'
186
+ collection :grantees, as: 'grantees'
187
+ property :name, as: 'name'
188
+ property :policy_tag, as: 'policyTag'
189
+ property :version, as: 'version'
190
+ end
191
+ end
192
+
193
+ class Empty
194
+ # @private
195
+ class Representation < Google::Apis::Core::JsonRepresentation
196
+ end
197
+ end
198
+
199
+ class Expr
200
+ # @private
201
+ class Representation < Google::Apis::Core::JsonRepresentation
202
+ property :description, as: 'description'
203
+ property :expression, as: 'expression'
204
+ property :location, as: 'location'
205
+ property :title, as: 'title'
206
+ end
207
+ end
208
+
209
+ class GetIamPolicyRequest
210
+ # @private
211
+ class Representation < Google::Apis::Core::JsonRepresentation
212
+ property :options, as: 'options', class: Google::Apis::BigquerydatapolicyV2::GetPolicyOptions, decorator: Google::Apis::BigquerydatapolicyV2::GetPolicyOptions::Representation
213
+
214
+ end
215
+ end
216
+
217
+ class GetPolicyOptions
218
+ # @private
219
+ class Representation < Google::Apis::Core::JsonRepresentation
220
+ property :requested_policy_version, as: 'requestedPolicyVersion'
221
+ end
222
+ end
223
+
224
+ class ListDataPoliciesResponse
225
+ # @private
226
+ class Representation < Google::Apis::Core::JsonRepresentation
227
+ collection :data_policies, as: 'dataPolicies', class: Google::Apis::BigquerydatapolicyV2::DataPolicy, decorator: Google::Apis::BigquerydatapolicyV2::DataPolicy::Representation
228
+
229
+ property :next_page_token, as: 'nextPageToken'
230
+ end
231
+ end
232
+
233
+ class Policy
234
+ # @private
235
+ class Representation < Google::Apis::Core::JsonRepresentation
236
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::BigquerydatapolicyV2::AuditConfig, decorator: Google::Apis::BigquerydatapolicyV2::AuditConfig::Representation
237
+
238
+ collection :bindings, as: 'bindings', class: Google::Apis::BigquerydatapolicyV2::Binding, decorator: Google::Apis::BigquerydatapolicyV2::Binding::Representation
239
+
240
+ property :etag, :base64 => true, as: 'etag'
241
+ property :version, as: 'version'
242
+ end
243
+ end
244
+
245
+ class RemoveGranteesRequest
246
+ # @private
247
+ class Representation < Google::Apis::Core::JsonRepresentation
248
+ collection :grantees, as: 'grantees'
249
+ end
250
+ end
251
+
252
+ class SetIamPolicyRequest
253
+ # @private
254
+ class Representation < Google::Apis::Core::JsonRepresentation
255
+ property :policy, as: 'policy', class: Google::Apis::BigquerydatapolicyV2::Policy, decorator: Google::Apis::BigquerydatapolicyV2::Policy::Representation
256
+
257
+ property :update_mask, as: 'updateMask'
258
+ end
259
+ end
260
+
261
+ class TestIamPermissionsRequest
262
+ # @private
263
+ class Representation < Google::Apis::Core::JsonRepresentation
264
+ collection :permissions, as: 'permissions'
265
+ end
266
+ end
267
+
268
+ class TestIamPermissionsResponse
269
+ # @private
270
+ class Representation < Google::Apis::Core::JsonRepresentation
271
+ collection :permissions, as: 'permissions'
272
+ end
273
+ end
274
+ end
275
+ end
276
+ end