google-apis-cloudresourcemanager_v3 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 CloudresourcemanagerV3
18
+ # Version of the google-apis-cloudresourcemanager_v3 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.2"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20210215"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,499 @@
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 CloudresourcemanagerV3
24
+
25
+ class AuditConfig
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AuditLogConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class Binding
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class CreateTagKeyMetadata
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class CreateTagValueMetadata
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class DeleteTagKeyMetadata
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class DeleteTagValueMetadata
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Empty
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Expr
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class FolderOperation
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class FolderOperationError
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class GetIamPolicyRequest
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class GetPolicyOptions
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Lien
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class ListLiensResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class ListTagBindingsResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ListTagKeysResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class ListTagValuesResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class Operation
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class Policy
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class ProjectCreationStatus
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class SetIamPolicyRequest
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Status
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class TagBinding
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class TagKey
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class TagValue
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class TestIamPermissionsRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class TestIamPermissionsResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class UpdateTagKeyMetadata
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class UpdateTagValueMetadata
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class AuditConfig
218
+ # @private
219
+ class Representation < Google::Apis::Core::JsonRepresentation
220
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV3::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV3::AuditLogConfig::Representation
221
+
222
+ property :service, as: 'service'
223
+ end
224
+ end
225
+
226
+ class AuditLogConfig
227
+ # @private
228
+ class Representation < Google::Apis::Core::JsonRepresentation
229
+ collection :exempted_members, as: 'exemptedMembers'
230
+ property :log_type, as: 'logType'
231
+ end
232
+ end
233
+
234
+ class Binding
235
+ # @private
236
+ class Representation < Google::Apis::Core::JsonRepresentation
237
+ property :condition, as: 'condition', class: Google::Apis::CloudresourcemanagerV3::Expr, decorator: Google::Apis::CloudresourcemanagerV3::Expr::Representation
238
+
239
+ collection :members, as: 'members'
240
+ property :role, as: 'role'
241
+ end
242
+ end
243
+
244
+ class CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation
245
+ # @private
246
+ class Representation < Google::Apis::Core::JsonRepresentation
247
+ property :destination_parent, as: 'destinationParent'
248
+ property :display_name, as: 'displayName'
249
+ property :operation_type, as: 'operationType'
250
+ property :source_parent, as: 'sourceParent'
251
+ end
252
+ end
253
+
254
+ class CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation
255
+ # @private
256
+ class Representation < Google::Apis::Core::JsonRepresentation
257
+ property :destination_parent, as: 'destinationParent'
258
+ property :display_name, as: 'displayName'
259
+ property :operation_type, as: 'operationType'
260
+ property :source_parent, as: 'sourceParent'
261
+ end
262
+ end
263
+
264
+ class CreateTagKeyMetadata
265
+ # @private
266
+ class Representation < Google::Apis::Core::JsonRepresentation
267
+ end
268
+ end
269
+
270
+ class CreateTagValueMetadata
271
+ # @private
272
+ class Representation < Google::Apis::Core::JsonRepresentation
273
+ end
274
+ end
275
+
276
+ class DeleteTagKeyMetadata
277
+ # @private
278
+ class Representation < Google::Apis::Core::JsonRepresentation
279
+ end
280
+ end
281
+
282
+ class DeleteTagValueMetadata
283
+ # @private
284
+ class Representation < Google::Apis::Core::JsonRepresentation
285
+ end
286
+ end
287
+
288
+ class Empty
289
+ # @private
290
+ class Representation < Google::Apis::Core::JsonRepresentation
291
+ end
292
+ end
293
+
294
+ class Expr
295
+ # @private
296
+ class Representation < Google::Apis::Core::JsonRepresentation
297
+ property :description, as: 'description'
298
+ property :expression, as: 'expression'
299
+ property :location, as: 'location'
300
+ property :title, as: 'title'
301
+ end
302
+ end
303
+
304
+ class FolderOperation
305
+ # @private
306
+ class Representation < Google::Apis::Core::JsonRepresentation
307
+ property :destination_parent, as: 'destinationParent'
308
+ property :display_name, as: 'displayName'
309
+ property :operation_type, as: 'operationType'
310
+ property :source_parent, as: 'sourceParent'
311
+ end
312
+ end
313
+
314
+ class FolderOperationError
315
+ # @private
316
+ class Representation < Google::Apis::Core::JsonRepresentation
317
+ property :error_message_id, as: 'errorMessageId'
318
+ end
319
+ end
320
+
321
+ class GetIamPolicyRequest
322
+ # @private
323
+ class Representation < Google::Apis::Core::JsonRepresentation
324
+ property :options, as: 'options', class: Google::Apis::CloudresourcemanagerV3::GetPolicyOptions, decorator: Google::Apis::CloudresourcemanagerV3::GetPolicyOptions::Representation
325
+
326
+ end
327
+ end
328
+
329
+ class GetPolicyOptions
330
+ # @private
331
+ class Representation < Google::Apis::Core::JsonRepresentation
332
+ property :requested_policy_version, as: 'requestedPolicyVersion'
333
+ end
334
+ end
335
+
336
+ class Lien
337
+ # @private
338
+ class Representation < Google::Apis::Core::JsonRepresentation
339
+ property :create_time, as: 'createTime'
340
+ property :name, as: 'name'
341
+ property :origin, as: 'origin'
342
+ property :parent, as: 'parent'
343
+ property :reason, as: 'reason'
344
+ collection :restrictions, as: 'restrictions'
345
+ end
346
+ end
347
+
348
+ class ListLiensResponse
349
+ # @private
350
+ class Representation < Google::Apis::Core::JsonRepresentation
351
+ collection :liens, as: 'liens', class: Google::Apis::CloudresourcemanagerV3::Lien, decorator: Google::Apis::CloudresourcemanagerV3::Lien::Representation
352
+
353
+ property :next_page_token, as: 'nextPageToken'
354
+ end
355
+ end
356
+
357
+ class ListTagBindingsResponse
358
+ # @private
359
+ class Representation < Google::Apis::Core::JsonRepresentation
360
+ property :next_page_token, as: 'nextPageToken'
361
+ collection :tag_bindings, as: 'tagBindings', class: Google::Apis::CloudresourcemanagerV3::TagBinding, decorator: Google::Apis::CloudresourcemanagerV3::TagBinding::Representation
362
+
363
+ end
364
+ end
365
+
366
+ class ListTagKeysResponse
367
+ # @private
368
+ class Representation < Google::Apis::Core::JsonRepresentation
369
+ property :next_page_token, as: 'nextPageToken'
370
+ collection :tag_keys, as: 'tagKeys', class: Google::Apis::CloudresourcemanagerV3::TagKey, decorator: Google::Apis::CloudresourcemanagerV3::TagKey::Representation
371
+
372
+ end
373
+ end
374
+
375
+ class ListTagValuesResponse
376
+ # @private
377
+ class Representation < Google::Apis::Core::JsonRepresentation
378
+ property :next_page_token, as: 'nextPageToken'
379
+ collection :tag_values, as: 'tagValues', class: Google::Apis::CloudresourcemanagerV3::TagValue, decorator: Google::Apis::CloudresourcemanagerV3::TagValue::Representation
380
+
381
+ end
382
+ end
383
+
384
+ class Operation
385
+ # @private
386
+ class Representation < Google::Apis::Core::JsonRepresentation
387
+ property :done, as: 'done'
388
+ property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV3::Status, decorator: Google::Apis::CloudresourcemanagerV3::Status::Representation
389
+
390
+ hash :metadata, as: 'metadata'
391
+ property :name, as: 'name'
392
+ hash :response, as: 'response'
393
+ end
394
+ end
395
+
396
+ class Policy
397
+ # @private
398
+ class Representation < Google::Apis::Core::JsonRepresentation
399
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV3::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV3::AuditConfig::Representation
400
+
401
+ collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV3::Binding, decorator: Google::Apis::CloudresourcemanagerV3::Binding::Representation
402
+
403
+ property :etag, :base64 => true, as: 'etag'
404
+ property :version, as: 'version'
405
+ end
406
+ end
407
+
408
+ class ProjectCreationStatus
409
+ # @private
410
+ class Representation < Google::Apis::Core::JsonRepresentation
411
+ property :create_time, as: 'createTime'
412
+ property :gettable, as: 'gettable'
413
+ property :ready, as: 'ready'
414
+ end
415
+ end
416
+
417
+ class SetIamPolicyRequest
418
+ # @private
419
+ class Representation < Google::Apis::Core::JsonRepresentation
420
+ property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV3::Policy, decorator: Google::Apis::CloudresourcemanagerV3::Policy::Representation
421
+
422
+ property :update_mask, as: 'updateMask'
423
+ end
424
+ end
425
+
426
+ class Status
427
+ # @private
428
+ class Representation < Google::Apis::Core::JsonRepresentation
429
+ property :code, as: 'code'
430
+ collection :details, as: 'details'
431
+ property :message, as: 'message'
432
+ end
433
+ end
434
+
435
+ class TagBinding
436
+ # @private
437
+ class Representation < Google::Apis::Core::JsonRepresentation
438
+ property :name, as: 'name'
439
+ property :parent, as: 'parent'
440
+ property :tag_value, as: 'tagValue'
441
+ end
442
+ end
443
+
444
+ class TagKey
445
+ # @private
446
+ class Representation < Google::Apis::Core::JsonRepresentation
447
+ property :create_time, as: 'createTime'
448
+ property :description, as: 'description'
449
+ property :etag, as: 'etag'
450
+ property :name, as: 'name'
451
+ property :namespaced_name, as: 'namespacedName'
452
+ property :parent, as: 'parent'
453
+ property :short_name, as: 'shortName'
454
+ property :update_time, as: 'updateTime'
455
+ end
456
+ end
457
+
458
+ class TagValue
459
+ # @private
460
+ class Representation < Google::Apis::Core::JsonRepresentation
461
+ property :create_time, as: 'createTime'
462
+ property :description, as: 'description'
463
+ property :etag, as: 'etag'
464
+ property :name, as: 'name'
465
+ property :namespaced_name, as: 'namespacedName'
466
+ property :parent, as: 'parent'
467
+ property :short_name, as: 'shortName'
468
+ property :update_time, as: 'updateTime'
469
+ end
470
+ end
471
+
472
+ class TestIamPermissionsRequest
473
+ # @private
474
+ class Representation < Google::Apis::Core::JsonRepresentation
475
+ collection :permissions, as: 'permissions'
476
+ end
477
+ end
478
+
479
+ class TestIamPermissionsResponse
480
+ # @private
481
+ class Representation < Google::Apis::Core::JsonRepresentation
482
+ collection :permissions, as: 'permissions'
483
+ end
484
+ end
485
+
486
+ class UpdateTagKeyMetadata
487
+ # @private
488
+ class Representation < Google::Apis::Core::JsonRepresentation
489
+ end
490
+ end
491
+
492
+ class UpdateTagValueMetadata
493
+ # @private
494
+ class Representation < Google::Apis::Core::JsonRepresentation
495
+ end
496
+ end
497
+ end
498
+ end
499
+ end