google-apis-cloudresourcemanager_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 CloudresourcemanagerV2
18
+ # Version of the google-apis-cloudresourcemanager_v2 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.1.1"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20201207"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,593 @@
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 CloudresourcemanagerV2
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 CreateFolderMetadata
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class CreateProjectMetadata
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class CreateTagKeyMetadata
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class CreateTagValueMetadata
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class DeleteFolderMetadata
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class DeleteOrganizationMetadata
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class DeleteProjectMetadata
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class DeleteTagKeyMetadata
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class DeleteTagValueMetadata
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Expr
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class Folder
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class FolderOperation
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class FolderOperationError
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class GetIamPolicyRequest
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class GetPolicyOptions
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ListFoldersResponse
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class MoveFolderMetadata
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class MoveFolderRequest
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class MoveProjectMetadata
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Operation
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class Policy
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class ProjectCreationStatus
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class SearchFoldersRequest
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class SearchFoldersResponse
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class SetIamPolicyRequest
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class Status
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class TestIamPermissionsRequest
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class TestIamPermissionsResponse
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class UndeleteFolderMetadata
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class UndeleteFolderRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class UndeleteOrganizationMetadata
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
241
+ class UndeleteProjectMetadata
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+
244
+ include Google::Apis::Core::JsonObjectSupport
245
+ end
246
+
247
+ class UpdateFolderMetadata
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class UpdateProjectMetadata
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
259
+ class UpdateTagKeyMetadata
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class UpdateTagValueMetadata
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class AuditConfig
272
+ # @private
273
+ class Representation < Google::Apis::Core::JsonRepresentation
274
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV2::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV2::AuditLogConfig::Representation
275
+
276
+ property :service, as: 'service'
277
+ end
278
+ end
279
+
280
+ class AuditLogConfig
281
+ # @private
282
+ class Representation < Google::Apis::Core::JsonRepresentation
283
+ collection :exempted_members, as: 'exemptedMembers'
284
+ property :log_type, as: 'logType'
285
+ end
286
+ end
287
+
288
+ class Binding
289
+ # @private
290
+ class Representation < Google::Apis::Core::JsonRepresentation
291
+ property :condition, as: 'condition', class: Google::Apis::CloudresourcemanagerV2::Expr, decorator: Google::Apis::CloudresourcemanagerV2::Expr::Representation
292
+
293
+ collection :members, as: 'members'
294
+ property :role, as: 'role'
295
+ end
296
+ end
297
+
298
+ class CloudresourcemanagerGoogleCloudResourcemanagerV2alpha1FolderOperation
299
+ # @private
300
+ class Representation < Google::Apis::Core::JsonRepresentation
301
+ property :destination_parent, as: 'destinationParent'
302
+ property :display_name, as: 'displayName'
303
+ property :operation_type, as: 'operationType'
304
+ property :source_parent, as: 'sourceParent'
305
+ end
306
+ end
307
+
308
+ class CloudresourcemanagerGoogleCloudResourcemanagerV2beta1FolderOperation
309
+ # @private
310
+ class Representation < Google::Apis::Core::JsonRepresentation
311
+ property :destination_parent, as: 'destinationParent'
312
+ property :display_name, as: 'displayName'
313
+ property :operation_type, as: 'operationType'
314
+ property :source_parent, as: 'sourceParent'
315
+ end
316
+ end
317
+
318
+ class CreateFolderMetadata
319
+ # @private
320
+ class Representation < Google::Apis::Core::JsonRepresentation
321
+ property :display_name, as: 'displayName'
322
+ property :parent, as: 'parent'
323
+ end
324
+ end
325
+
326
+ class CreateProjectMetadata
327
+ # @private
328
+ class Representation < Google::Apis::Core::JsonRepresentation
329
+ property :create_time, as: 'createTime'
330
+ property :gettable, as: 'gettable'
331
+ property :ready, as: 'ready'
332
+ end
333
+ end
334
+
335
+ class CreateTagKeyMetadata
336
+ # @private
337
+ class Representation < Google::Apis::Core::JsonRepresentation
338
+ end
339
+ end
340
+
341
+ class CreateTagValueMetadata
342
+ # @private
343
+ class Representation < Google::Apis::Core::JsonRepresentation
344
+ end
345
+ end
346
+
347
+ class DeleteFolderMetadata
348
+ # @private
349
+ class Representation < Google::Apis::Core::JsonRepresentation
350
+ end
351
+ end
352
+
353
+ class DeleteOrganizationMetadata
354
+ # @private
355
+ class Representation < Google::Apis::Core::JsonRepresentation
356
+ end
357
+ end
358
+
359
+ class DeleteProjectMetadata
360
+ # @private
361
+ class Representation < Google::Apis::Core::JsonRepresentation
362
+ end
363
+ end
364
+
365
+ class DeleteTagKeyMetadata
366
+ # @private
367
+ class Representation < Google::Apis::Core::JsonRepresentation
368
+ end
369
+ end
370
+
371
+ class DeleteTagValueMetadata
372
+ # @private
373
+ class Representation < Google::Apis::Core::JsonRepresentation
374
+ end
375
+ end
376
+
377
+ class Expr
378
+ # @private
379
+ class Representation < Google::Apis::Core::JsonRepresentation
380
+ property :description, as: 'description'
381
+ property :expression, as: 'expression'
382
+ property :location, as: 'location'
383
+ property :title, as: 'title'
384
+ end
385
+ end
386
+
387
+ class Folder
388
+ # @private
389
+ class Representation < Google::Apis::Core::JsonRepresentation
390
+ property :create_time, as: 'createTime'
391
+ property :display_name, as: 'displayName'
392
+ property :lifecycle_state, as: 'lifecycleState'
393
+ property :name, as: 'name'
394
+ property :parent, as: 'parent'
395
+ end
396
+ end
397
+
398
+ class FolderOperation
399
+ # @private
400
+ class Representation < Google::Apis::Core::JsonRepresentation
401
+ property :destination_parent, as: 'destinationParent'
402
+ property :display_name, as: 'displayName'
403
+ property :operation_type, as: 'operationType'
404
+ property :source_parent, as: 'sourceParent'
405
+ end
406
+ end
407
+
408
+ class FolderOperationError
409
+ # @private
410
+ class Representation < Google::Apis::Core::JsonRepresentation
411
+ property :error_message_id, as: 'errorMessageId'
412
+ end
413
+ end
414
+
415
+ class GetIamPolicyRequest
416
+ # @private
417
+ class Representation < Google::Apis::Core::JsonRepresentation
418
+ property :options, as: 'options', class: Google::Apis::CloudresourcemanagerV2::GetPolicyOptions, decorator: Google::Apis::CloudresourcemanagerV2::GetPolicyOptions::Representation
419
+
420
+ end
421
+ end
422
+
423
+ class GetPolicyOptions
424
+ # @private
425
+ class Representation < Google::Apis::Core::JsonRepresentation
426
+ property :requested_policy_version, as: 'requestedPolicyVersion'
427
+ end
428
+ end
429
+
430
+ class ListFoldersResponse
431
+ # @private
432
+ class Representation < Google::Apis::Core::JsonRepresentation
433
+ collection :folders, as: 'folders', class: Google::Apis::CloudresourcemanagerV2::Folder, decorator: Google::Apis::CloudresourcemanagerV2::Folder::Representation
434
+
435
+ property :next_page_token, as: 'nextPageToken'
436
+ end
437
+ end
438
+
439
+ class MoveFolderMetadata
440
+ # @private
441
+ class Representation < Google::Apis::Core::JsonRepresentation
442
+ property :destination_parent, as: 'destinationParent'
443
+ property :display_name, as: 'displayName'
444
+ property :source_parent, as: 'sourceParent'
445
+ end
446
+ end
447
+
448
+ class MoveFolderRequest
449
+ # @private
450
+ class Representation < Google::Apis::Core::JsonRepresentation
451
+ property :destination_parent, as: 'destinationParent'
452
+ end
453
+ end
454
+
455
+ class MoveProjectMetadata
456
+ # @private
457
+ class Representation < Google::Apis::Core::JsonRepresentation
458
+ end
459
+ end
460
+
461
+ class Operation
462
+ # @private
463
+ class Representation < Google::Apis::Core::JsonRepresentation
464
+ property :done, as: 'done'
465
+ property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV2::Status, decorator: Google::Apis::CloudresourcemanagerV2::Status::Representation
466
+
467
+ hash :metadata, as: 'metadata'
468
+ property :name, as: 'name'
469
+ hash :response, as: 'response'
470
+ end
471
+ end
472
+
473
+ class Policy
474
+ # @private
475
+ class Representation < Google::Apis::Core::JsonRepresentation
476
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV2::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV2::AuditConfig::Representation
477
+
478
+ collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV2::Binding, decorator: Google::Apis::CloudresourcemanagerV2::Binding::Representation
479
+
480
+ property :etag, :base64 => true, as: 'etag'
481
+ property :version, as: 'version'
482
+ end
483
+ end
484
+
485
+ class ProjectCreationStatus
486
+ # @private
487
+ class Representation < Google::Apis::Core::JsonRepresentation
488
+ property :create_time, as: 'createTime'
489
+ property :gettable, as: 'gettable'
490
+ property :ready, as: 'ready'
491
+ end
492
+ end
493
+
494
+ class SearchFoldersRequest
495
+ # @private
496
+ class Representation < Google::Apis::Core::JsonRepresentation
497
+ property :page_size, as: 'pageSize'
498
+ property :page_token, as: 'pageToken'
499
+ property :query, as: 'query'
500
+ end
501
+ end
502
+
503
+ class SearchFoldersResponse
504
+ # @private
505
+ class Representation < Google::Apis::Core::JsonRepresentation
506
+ collection :folders, as: 'folders', class: Google::Apis::CloudresourcemanagerV2::Folder, decorator: Google::Apis::CloudresourcemanagerV2::Folder::Representation
507
+
508
+ property :next_page_token, as: 'nextPageToken'
509
+ end
510
+ end
511
+
512
+ class SetIamPolicyRequest
513
+ # @private
514
+ class Representation < Google::Apis::Core::JsonRepresentation
515
+ property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV2::Policy, decorator: Google::Apis::CloudresourcemanagerV2::Policy::Representation
516
+
517
+ property :update_mask, as: 'updateMask'
518
+ end
519
+ end
520
+
521
+ class Status
522
+ # @private
523
+ class Representation < Google::Apis::Core::JsonRepresentation
524
+ property :code, as: 'code'
525
+ collection :details, as: 'details'
526
+ property :message, as: 'message'
527
+ end
528
+ end
529
+
530
+ class TestIamPermissionsRequest
531
+ # @private
532
+ class Representation < Google::Apis::Core::JsonRepresentation
533
+ collection :permissions, as: 'permissions'
534
+ end
535
+ end
536
+
537
+ class TestIamPermissionsResponse
538
+ # @private
539
+ class Representation < Google::Apis::Core::JsonRepresentation
540
+ collection :permissions, as: 'permissions'
541
+ end
542
+ end
543
+
544
+ class UndeleteFolderMetadata
545
+ # @private
546
+ class Representation < Google::Apis::Core::JsonRepresentation
547
+ end
548
+ end
549
+
550
+ class UndeleteFolderRequest
551
+ # @private
552
+ class Representation < Google::Apis::Core::JsonRepresentation
553
+ end
554
+ end
555
+
556
+ class UndeleteOrganizationMetadata
557
+ # @private
558
+ class Representation < Google::Apis::Core::JsonRepresentation
559
+ end
560
+ end
561
+
562
+ class UndeleteProjectMetadata
563
+ # @private
564
+ class Representation < Google::Apis::Core::JsonRepresentation
565
+ end
566
+ end
567
+
568
+ class UpdateFolderMetadata
569
+ # @private
570
+ class Representation < Google::Apis::Core::JsonRepresentation
571
+ end
572
+ end
573
+
574
+ class UpdateProjectMetadata
575
+ # @private
576
+ class Representation < Google::Apis::Core::JsonRepresentation
577
+ end
578
+ end
579
+
580
+ class UpdateTagKeyMetadata
581
+ # @private
582
+ class Representation < Google::Apis::Core::JsonRepresentation
583
+ end
584
+ end
585
+
586
+ class UpdateTagValueMetadata
587
+ # @private
588
+ class Representation < Google::Apis::Core::JsonRepresentation
589
+ end
590
+ end
591
+ end
592
+ end
593
+ end