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