google-api-client 0.10.1 → 0.10.2

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.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +395 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
  11. data/generated/google/apis/admin_reports_v1.rb +3 -3
  12. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analytics_v3/service.rb +39 -0
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  19. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
  22. data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
  23. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  24. data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
  25. data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
  26. data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +32 -37
  30. data/generated/google/apis/bigquery_v2/service.rb +10 -2
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/calendar_v3/classes.rb +205 -0
  33. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  34. data/generated/google/apis/classroom_v1.rb +22 -25
  35. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
  40. data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
  41. data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
  42. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  43. data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
  44. data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
  45. data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
  46. data/generated/google/apis/cloudkms_v1.rb +1 -1
  47. data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
  48. data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
  49. data/generated/google/apis/cloudkms_v1/service.rb +228 -228
  50. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
  59. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  60. data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
  61. data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
  62. data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
  63. data/generated/google/apis/compute_beta.rb +1 -1
  64. data/generated/google/apis/compute_beta/classes.rb +116 -0
  65. data/generated/google/apis/compute_beta/representations.rb +48 -0
  66. data/generated/google/apis/compute_beta/service.rb +46 -1
  67. data/generated/google/apis/compute_v1.rb +1 -1
  68. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
  71. data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
  74. data/generated/google/apis/dataproc_v1/representations.rb +255 -253
  75. data/generated/google/apis/dataproc_v1/service.rb +100 -100
  76. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  77. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/dns_v2beta1.rb +1 -1
  80. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2/classes.rb +3 -1
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +3 -1
  85. data/generated/google/apis/fusiontables_v2.rb +1 -1
  86. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  87. data/generated/google/apis/games_management_v1management.rb +1 -1
  88. data/generated/google/apis/games_v1.rb +1 -1
  89. data/generated/google/apis/genomics_v1.rb +7 -7
  90. data/generated/google/apis/genomics_v1/classes.rb +959 -959
  91. data/generated/google/apis/genomics_v1/representations.rb +238 -238
  92. data/generated/google/apis/genomics_v1/service.rb +996 -996
  93. data/generated/google/apis/iam_v1.rb +1 -1
  94. data/generated/google/apis/iam_v1/classes.rb +440 -440
  95. data/generated/google/apis/iam_v1/representations.rb +94 -94
  96. data/generated/google/apis/iam_v1/service.rb +170 -173
  97. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  98. data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
  99. data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
  100. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  101. data/generated/google/apis/language_v1beta1.rb +1 -1
  102. data/generated/google/apis/language_v1beta1/classes.rb +427 -427
  103. data/generated/google/apis/language_v1beta1/representations.rb +113 -113
  104. data/generated/google/apis/language_v1beta1/service.rb +25 -24
  105. data/generated/google/apis/licensing_v1.rb +2 -2
  106. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  107. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  108. data/generated/google/apis/licensing_v1/service.rb +1 -1
  109. data/generated/google/apis/logging_v2beta1.rb +1 -1
  110. data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
  111. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  112. data/generated/google/apis/logging_v2beta1/service.rb +261 -261
  113. data/generated/google/apis/manufacturers_v1.rb +1 -1
  114. data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
  115. data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
  116. data/generated/google/apis/manufacturers_v1/service.rb +11 -11
  117. data/generated/google/apis/mirror_v1.rb +1 -1
  118. data/generated/google/apis/monitoring_v3.rb +7 -7
  119. data/generated/google/apis/monitoring_v3/classes.rb +668 -670
  120. data/generated/google/apis/monitoring_v3/representations.rb +140 -140
  121. data/generated/google/apis/monitoring_v3/service.rb +208 -208
  122. data/generated/google/apis/partners_v2.rb +1 -1
  123. data/generated/google/apis/partners_v2/classes.rb +505 -505
  124. data/generated/google/apis/partners_v2/representations.rb +118 -118
  125. data/generated/google/apis/partners_v2/service.rb +275 -275
  126. data/generated/google/apis/people_v1.rb +1 -1
  127. data/generated/google/apis/people_v1/classes.rb +1037 -1031
  128. data/generated/google/apis/people_v1/representations.rb +247 -246
  129. data/generated/google/apis/people_v1/service.rb +20 -20
  130. data/generated/google/apis/plus_domains_v1.rb +1 -1
  131. data/generated/google/apis/plus_v1.rb +1 -1
  132. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  133. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
  134. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
  135. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
  136. data/generated/google/apis/pubsub_v1.rb +4 -4
  137. data/generated/google/apis/pubsub_v1/classes.rb +131 -132
  138. data/generated/google/apis/pubsub_v1/representations.rb +35 -35
  139. data/generated/google/apis/pubsub_v1/service.rb +399 -408
  140. data/generated/google/apis/reseller_v1.rb +1 -1
  141. data/generated/google/apis/reseller_v1/classes.rb +9 -0
  142. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  143. data/generated/google/apis/script_v1.rb +9 -9
  144. data/generated/google/apis/script_v1/classes.rb +110 -110
  145. data/generated/google/apis/script_v1/representations.rb +26 -26
  146. data/generated/google/apis/sheets_v4.rb +4 -4
  147. data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
  148. data/generated/google/apis/sheets_v4/representations.rb +856 -856
  149. data/generated/google/apis/sheets_v4/service.rb +106 -106
  150. data/generated/google/apis/slides_v1.rb +4 -4
  151. data/generated/google/apis/slides_v1/classes.rb +2923 -2841
  152. data/generated/google/apis/slides_v1/representations.rb +722 -691
  153. data/generated/google/apis/slides_v1/service.rb +58 -15
  154. data/generated/google/apis/speech_v1beta1.rb +1 -1
  155. data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
  156. data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
  157. data/generated/google/apis/speech_v1beta1/service.rb +70 -70
  158. data/generated/google/apis/storage_v1.rb +1 -1
  159. data/generated/google/apis/storage_v1/classes.rb +151 -0
  160. data/generated/google/apis/storage_v1/representations.rb +45 -0
  161. data/generated/google/apis/storage_v1/service.rb +248 -0
  162. data/generated/google/apis/vision_v1.rb +1 -1
  163. data/generated/google/apis/vision_v1/classes.rb +1227 -1221
  164. data/generated/google/apis/vision_v1/representations.rb +217 -215
  165. data/generated/google/apis/webmasters_v3.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  167. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  168. data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
  169. data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
  170. data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
  171. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  172. data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
  173. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  174. data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
  175. data/lib/google/apis/version.rb +1 -1
  176. metadata +2 -2
@@ -22,6 +22,30 @@ module Google
22
22
  module Apis
23
23
  module CloudresourcemanagerV1
24
24
 
25
+ class Ancestor
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ListConstraint
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class SetOrgPolicyRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class SetIamPolicyRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
25
49
  class Empty
26
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
51
 
@@ -34,6 +58,18 @@ module Google
34
58
  include Google::Apis::Core::JsonObjectSupport
35
59
  end
36
60
 
61
+ class ListAvailableOrgPolicyConstraintsResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ListPolicy
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
37
73
  class GetAncestryResponse
38
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
75
 
@@ -76,12 +112,30 @@ module Google
76
112
  include Google::Apis::Core::JsonObjectSupport
77
113
  end
78
114
 
115
+ class ListAvailableOrgPolicyConstraintsRequest
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
79
121
  class ResourceId
80
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
123
 
82
124
  include Google::Apis::Core::JsonObjectSupport
83
125
  end
84
126
 
127
+ class GetEffectiveOrgPolicyRequest
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class ListOrgPoliciesRequest
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
85
139
  class AuditConfig
86
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
141
 
@@ -106,12 +160,36 @@ module Google
106
160
  include Google::Apis::Core::JsonObjectSupport
107
161
  end
108
162
 
163
+ class Constraint
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
109
169
  class Binding
110
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
171
 
112
172
  include Google::Apis::Core::JsonObjectSupport
113
173
  end
114
174
 
175
+ class RestoreDefault
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class GetOrgPolicyRequest
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class ClearOrgPolicyRequest
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
115
193
  class UndeleteProjectRequest
116
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
195
 
@@ -124,6 +202,12 @@ module Google
124
202
  include Google::Apis::Core::JsonObjectSupport
125
203
  end
126
204
 
205
+ class BooleanConstraint
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
127
211
  class TestIamPermissionsResponse
128
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
213
 
@@ -160,30 +244,68 @@ module Google
160
244
  include Google::Apis::Core::JsonObjectSupport
161
245
  end
162
246
 
247
+ class ListOrgPoliciesResponse
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
163
253
  class FolderOperationError
164
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
255
 
166
256
  include Google::Apis::Core::JsonObjectSupport
167
257
  end
168
258
 
169
- class Lien
259
+ class OrgPolicy
170
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
261
 
172
262
  include Google::Apis::Core::JsonObjectSupport
173
263
  end
174
264
 
175
- class Ancestor
265
+ class BooleanPolicy
176
266
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
267
 
178
268
  include Google::Apis::Core::JsonObjectSupport
179
269
  end
180
270
 
181
- class SetIamPolicyRequest
271
+ class Lien
182
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
273
 
184
274
  include Google::Apis::Core::JsonObjectSupport
185
275
  end
186
276
 
277
+ class Ancestor
278
+ # @private
279
+ class Representation < Google::Apis::Core::JsonRepresentation
280
+ property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
281
+
282
+ end
283
+ end
284
+
285
+ class ListConstraint
286
+ # @private
287
+ class Representation < Google::Apis::Core::JsonRepresentation
288
+ property :suggested_value, as: 'suggestedValue'
289
+ end
290
+ end
291
+
292
+ class SetOrgPolicyRequest
293
+ # @private
294
+ class Representation < Google::Apis::Core::JsonRepresentation
295
+ property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
296
+
297
+ end
298
+ end
299
+
300
+ class SetIamPolicyRequest
301
+ # @private
302
+ class Representation < Google::Apis::Core::JsonRepresentation
303
+ property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation
304
+
305
+ property :update_mask, as: 'updateMask'
306
+ end
307
+ end
308
+
187
309
  class Empty
188
310
  # @private
189
311
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -193,12 +315,32 @@ module Google
193
315
  class Organization
194
316
  # @private
195
317
  class Representation < Google::Apis::Core::JsonRepresentation
318
+ property :creation_time, as: 'creationTime'
196
319
  property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1::OrganizationOwner::Representation
197
320
 
198
321
  property :lifecycle_state, as: 'lifecycleState'
199
322
  property :name, as: 'name'
200
323
  property :display_name, as: 'displayName'
201
- property :creation_time, as: 'creationTime'
324
+ end
325
+ end
326
+
327
+ class ListAvailableOrgPolicyConstraintsResponse
328
+ # @private
329
+ class Representation < Google::Apis::Core::JsonRepresentation
330
+ property :next_page_token, as: 'nextPageToken'
331
+ collection :constraints, as: 'constraints', class: Google::Apis::CloudresourcemanagerV1::Constraint, decorator: Google::Apis::CloudresourcemanagerV1::Constraint::Representation
332
+
333
+ end
334
+ end
335
+
336
+ class ListPolicy
337
+ # @private
338
+ class Representation < Google::Apis::Core::JsonRepresentation
339
+ collection :allowed_values, as: 'allowedValues'
340
+ property :suggested_value, as: 'suggestedValue'
341
+ property :inherit_from_parent, as: 'inheritFromParent'
342
+ collection :denied_values, as: 'deniedValues'
343
+ property :all_values, as: 'allValues'
202
344
  end
203
345
  end
204
346
 
@@ -221,9 +363,9 @@ module Google
221
363
  class SearchOrganizationsRequest
222
364
  # @private
223
365
  class Representation < Google::Apis::Core::JsonRepresentation
224
- property :filter, as: 'filter'
225
366
  property :page_token, as: 'pageToken'
226
367
  property :page_size, as: 'pageSize'
368
+ property :filter, as: 'filter'
227
369
  end
228
370
  end
229
371
 
@@ -262,11 +404,34 @@ module Google
262
404
  end
263
405
  end
264
406
 
407
+ class ListAvailableOrgPolicyConstraintsRequest
408
+ # @private
409
+ class Representation < Google::Apis::Core::JsonRepresentation
410
+ property :page_token, as: 'pageToken'
411
+ property :page_size, as: 'pageSize'
412
+ end
413
+ end
414
+
265
415
  class ResourceId
266
416
  # @private
267
417
  class Representation < Google::Apis::Core::JsonRepresentation
268
- property :id, as: 'id'
269
418
  property :type, as: 'type'
419
+ property :id, as: 'id'
420
+ end
421
+ end
422
+
423
+ class GetEffectiveOrgPolicyRequest
424
+ # @private
425
+ class Representation < Google::Apis::Core::JsonRepresentation
426
+ property :constraint, as: 'constraint'
427
+ end
428
+ end
429
+
430
+ class ListOrgPoliciesRequest
431
+ # @private
432
+ class Representation < Google::Apis::Core::JsonRepresentation
433
+ property :page_token, as: 'pageToken'
434
+ property :page_size, as: 'pageSize'
270
435
  end
271
436
  end
272
437
 
@@ -294,9 +459,9 @@ module Google
294
459
  class Status
295
460
  # @private
296
461
  class Representation < Google::Apis::Core::JsonRepresentation
297
- property :message, as: 'message'
298
462
  collection :details, as: 'details'
299
463
  property :code, as: 'code'
464
+ property :message, as: 'message'
300
465
  end
301
466
  end
302
467
 
@@ -309,6 +474,21 @@ module Google
309
474
  end
310
475
  end
311
476
 
477
+ class Constraint
478
+ # @private
479
+ class Representation < Google::Apis::Core::JsonRepresentation
480
+ property :version, as: 'version'
481
+ property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1::ListConstraint::Representation
482
+
483
+ property :display_name, as: 'displayName'
484
+ property :description, as: 'description'
485
+ property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1::BooleanConstraint::Representation
486
+
487
+ property :constraint_default, as: 'constraintDefault'
488
+ property :name, as: 'name'
489
+ end
490
+ end
491
+
312
492
  class Binding
313
493
  # @private
314
494
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -317,6 +497,27 @@ module Google
317
497
  end
318
498
  end
319
499
 
500
+ class RestoreDefault
501
+ # @private
502
+ class Representation < Google::Apis::Core::JsonRepresentation
503
+ end
504
+ end
505
+
506
+ class GetOrgPolicyRequest
507
+ # @private
508
+ class Representation < Google::Apis::Core::JsonRepresentation
509
+ property :constraint, as: 'constraint'
510
+ end
511
+ end
512
+
513
+ class ClearOrgPolicyRequest
514
+ # @private
515
+ class Representation < Google::Apis::Core::JsonRepresentation
516
+ property :etag, :base64 => true, as: 'etag'
517
+ property :constraint, as: 'constraint'
518
+ end
519
+ end
520
+
320
521
  class UndeleteProjectRequest
321
522
  # @private
322
523
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -332,6 +533,12 @@ module Google
332
533
  end
333
534
  end
334
535
 
536
+ class BooleanConstraint
537
+ # @private
538
+ class Representation < Google::Apis::Core::JsonRepresentation
539
+ end
540
+ end
541
+
335
542
  class TestIamPermissionsResponse
336
543
  # @private
337
544
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -355,9 +562,9 @@ module Google
355
562
  class ListProjectsResponse
356
563
  # @private
357
564
  class Representation < Google::Apis::Core::JsonRepresentation
565
+ property :next_page_token, as: 'nextPageToken'
358
566
  collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1::Project, decorator: Google::Apis::CloudresourcemanagerV1::Project::Representation
359
567
 
360
- property :next_page_token, as: 'nextPageToken'
361
568
  end
362
569
  end
363
570
 
@@ -368,8 +575,8 @@ module Google
368
575
  property :project_number, as: 'projectNumber'
369
576
  property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
370
577
 
371
- property :create_time, as: 'createTime'
372
578
  hash :labels, as: 'labels'
579
+ property :create_time, as: 'createTime'
373
580
  property :name, as: 'name'
374
581
  property :project_id, as: 'projectId'
375
582
  end
@@ -384,39 +591,54 @@ module Google
384
591
  end
385
592
  end
386
593
 
387
- class FolderOperationError
594
+ class ListOrgPoliciesResponse
388
595
  # @private
389
596
  class Representation < Google::Apis::Core::JsonRepresentation
390
- property :error_message_id, as: 'errorMessageId'
597
+ property :next_page_token, as: 'nextPageToken'
598
+ collection :policies, as: 'policies', class: Google::Apis::CloudresourcemanagerV1::OrgPolicy, decorator: Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
599
+
391
600
  end
392
601
  end
393
602
 
394
- class Lien
603
+ class FolderOperationError
395
604
  # @private
396
605
  class Representation < Google::Apis::Core::JsonRepresentation
397
- property :parent, as: 'parent'
398
- property :create_time, as: 'createTime'
399
- property :name, as: 'name'
400
- property :reason, as: 'reason'
401
- property :origin, as: 'origin'
402
- collection :restrictions, as: 'restrictions'
606
+ property :error_message_id, as: 'errorMessageId'
403
607
  end
404
608
  end
405
609
 
406
- class Ancestor
610
+ class OrgPolicy
407
611
  # @private
408
612
  class Representation < Google::Apis::Core::JsonRepresentation
409
- property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
613
+ property :etag, :base64 => true, as: 'etag'
614
+ property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1::BooleanPolicy::Representation
615
+
616
+ property :constraint, as: 'constraint'
617
+ property :update_time, as: 'updateTime'
618
+ property :version, as: 'version'
619
+ property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudresourcemanagerV1::RestoreDefault, decorator: Google::Apis::CloudresourcemanagerV1::RestoreDefault::Representation
620
+
621
+ property :list_policy, as: 'listPolicy', class: Google::Apis::CloudresourcemanagerV1::ListPolicy, decorator: Google::Apis::CloudresourcemanagerV1::ListPolicy::Representation
410
622
 
411
623
  end
412
624
  end
413
625
 
414
- class SetIamPolicyRequest
626
+ class BooleanPolicy
415
627
  # @private
416
628
  class Representation < Google::Apis::Core::JsonRepresentation
417
- property :update_mask, as: 'updateMask'
418
- property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation
629
+ property :enforced, as: 'enforced'
630
+ end
631
+ end
419
632
 
633
+ class Lien
634
+ # @private
635
+ class Representation < Google::Apis::Core::JsonRepresentation
636
+ property :parent, as: 'parent'
637
+ property :create_time, as: 'createTime'
638
+ property :name, as: 'name'
639
+ property :reason, as: 'reason'
640
+ property :origin, as: 'origin'
641
+ collection :restrictions, as: 'restrictions'
420
642
  end
421
643
  end
422
644
  end
@@ -47,38 +47,913 @@ module Google
47
47
  super('https://cloudresourcemanager.googleapis.com/', '')
48
48
  end
49
49
 
50
- # Sets the IAM access control policy for the specified Project. Replaces
51
- # any existing policy.
52
- # The following constraints apply when using `setIamPolicy()`:
53
- # + Project does not support `allUsers` and `allAuthenticatedUsers` as
54
- # `members` in a `Binding` of a `Policy`.
55
- # + The owner role can be granted only to `user` and `serviceAccount`.
56
- # + Service accounts can be made owners of a project directly
57
- # without any restrictions. However, to be added as an owner, a user must be
58
- # invited via Cloud Platform console and must accept the invitation.
59
- # + A user cannot be granted the owner role using `setIamPolicy()`. The user
60
- # must be granted the owner role using the Cloud Platform Console and must
61
- # explicitly accept the invitation.
62
- # + Invitations to grant the owner role cannot be sent using
63
- # `setIamPolicy()`;
64
- # they must be sent only using the Cloud Platform Console.
65
- # + Membership changes that leave the project without any owners that have
66
- # accepted the Terms of Service (ToS) will be rejected.
67
- # + There must be at least one owner who has accepted the Terms of
68
- # Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
69
- # to remove the last ToS-accepted owner from the policy will fail. This
70
- # restriction also applies to legacy projects that no longer have owners
71
- # who have accepted the ToS. Edits to IAM policies will be rejected until
72
- # the lack of a ToS-accepting owner is rectified.
73
- # + Calling this method requires enabling the App Engine Admin API.
74
- # Note: Removing service accounts from policies or changing their roles
75
- # can render services completely inoperable. It is important to understand
76
- # how the service account is being used before removing or updating its
77
- # roles.
50
+ # Updates the specified `Policy` on the resource. Creates a new `Policy` for
51
+ # that `Constraint` on the resource if one does not exist.
52
+ # Not supplying an `etag` on the request `Policy` results in an unconditional
53
+ # write of the `Policy`.
54
+ # @param [String] resource
55
+ # Resource name of the resource to attach the `Policy`.
56
+ # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [Google::Apis::RequestOptions] options
63
+ # Request-specific options
64
+ #
65
+ # @yield [result, err] Result & error if block supplied
66
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
70
+ #
71
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
74
+ def set_folder_org_policy_v1(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicyV1', options)
76
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
77
+ command.request_object = set_org_policy_request_object
78
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
79
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
80
+ command.params['resource'] = resource unless resource.nil?
81
+ command.query['fields'] = fields unless fields.nil?
82
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
83
+ execute_or_queue_command(command, &block)
84
+ end
85
+
86
+ # Gets the effective `Policy` on a resource. This is the result of merging
87
+ # `Policies` in the resource hierarchy. The returned `Policy` will not have
88
+ # an `etag`set because it is a computed `Policy` across multiple resources.
89
+ # @param [String] resource
90
+ # The name of the resource to start computing the effective `Policy`.
91
+ # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
92
+ # @param [String] fields
93
+ # Selector specifying which fields to include in a partial response.
94
+ # @param [String] quota_user
95
+ # Available to use for quota purposes for server-side applications. Can be any
96
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
97
+ # @param [Google::Apis::RequestOptions] options
98
+ # Request-specific options
99
+ #
100
+ # @yield [result, err] Result & error if block supplied
101
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
102
+ # @yieldparam err [StandardError] error object if request failed
103
+ #
104
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
105
+ #
106
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
107
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
108
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
109
+ def get_folder_effective_org_policy_v1(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
110
+ command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicyV1', options)
111
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
112
+ command.request_object = get_effective_org_policy_request_object
113
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
114
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
115
+ command.params['resource'] = resource unless resource.nil?
116
+ command.query['fields'] = fields unless fields.nil?
117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
118
+ execute_or_queue_command(command, &block)
119
+ end
120
+
121
+ # Clears a `Policy` from a resource.
122
+ # @param [String] resource
123
+ # Name of the resource for the `Policy` to clear.
124
+ # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
125
+ # @param [String] fields
126
+ # Selector specifying which fields to include in a partial response.
127
+ # @param [String] quota_user
128
+ # Available to use for quota purposes for server-side applications. Can be any
129
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
130
+ # @param [Google::Apis::RequestOptions] options
131
+ # Request-specific options
132
+ #
133
+ # @yield [result, err] Result & error if block supplied
134
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
135
+ # @yieldparam err [StandardError] error object if request failed
136
+ #
137
+ # @return [Google::Apis::CloudresourcemanagerV1::Empty]
138
+ #
139
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
140
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
141
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
142
+ def clear_folder_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
143
+ command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
144
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
145
+ command.request_object = clear_org_policy_request_object
146
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
147
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
148
+ command.params['resource'] = resource unless resource.nil?
149
+ command.query['fields'] = fields unless fields.nil?
150
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
151
+ execute_or_queue_command(command, &block)
152
+ end
153
+
154
+ # Updates the specified `Policy` on the resource. Creates a new `Policy` for
155
+ # that `Constraint` on the resource if one does not exist.
156
+ # Not supplying an `etag` on the request `Policy` results in an unconditional
157
+ # write of the `Policy`.
158
+ # @param [String] resource
159
+ # Resource name of the resource to attach the `Policy`.
160
+ # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
161
+ # @param [String] fields
162
+ # Selector specifying which fields to include in a partial response.
163
+ # @param [String] quota_user
164
+ # Available to use for quota purposes for server-side applications. Can be any
165
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
166
+ # @param [Google::Apis::RequestOptions] options
167
+ # Request-specific options
168
+ #
169
+ # @yield [result, err] Result & error if block supplied
170
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
171
+ # @yieldparam err [StandardError] error object if request failed
172
+ #
173
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
174
+ #
175
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
176
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
177
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
178
+ def set_folder_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
179
+ command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
180
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
181
+ command.request_object = set_org_policy_request_object
182
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
183
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
184
+ command.params['resource'] = resource unless resource.nil?
185
+ command.query['fields'] = fields unless fields.nil?
186
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
187
+ execute_or_queue_command(command, &block)
188
+ end
189
+
190
+ # Clears a `Policy` from a resource.
191
+ # @param [String] resource
192
+ # Name of the resource for the `Policy` to clear.
193
+ # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
194
+ # @param [String] fields
195
+ # Selector specifying which fields to include in a partial response.
196
+ # @param [String] quota_user
197
+ # Available to use for quota purposes for server-side applications. Can be any
198
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
199
+ # @param [Google::Apis::RequestOptions] options
200
+ # Request-specific options
201
+ #
202
+ # @yield [result, err] Result & error if block supplied
203
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
204
+ # @yieldparam err [StandardError] error object if request failed
205
+ #
206
+ # @return [Google::Apis::CloudresourcemanagerV1::Empty]
207
+ #
208
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
209
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
210
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
211
+ def clear_folder_org_policy_v1(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
212
+ command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicyV1', options)
213
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
214
+ command.request_object = clear_org_policy_request_object
215
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
216
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
217
+ command.params['resource'] = resource unless resource.nil?
218
+ command.query['fields'] = fields unless fields.nil?
219
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
220
+ execute_or_queue_command(command, &block)
221
+ end
222
+
223
+ # Lists all the `Policies` set for a particular resource.
224
+ # @param [String] resource
225
+ # Name of the resource to list Policies for.
226
+ # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
227
+ # @param [String] fields
228
+ # Selector specifying which fields to include in a partial response.
229
+ # @param [String] quota_user
230
+ # Available to use for quota purposes for server-side applications. Can be any
231
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
232
+ # @param [Google::Apis::RequestOptions] options
233
+ # Request-specific options
234
+ #
235
+ # @yield [result, err] Result & error if block supplied
236
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
237
+ # @yieldparam err [StandardError] error object if request failed
238
+ #
239
+ # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
240
+ #
241
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
242
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
243
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
244
+ def list_folder_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
245
+ command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
246
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
247
+ command.request_object = list_org_policies_request_object
248
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
249
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
250
+ command.params['resource'] = resource unless resource.nil?
251
+ command.query['fields'] = fields unless fields.nil?
252
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
253
+ execute_or_queue_command(command, &block)
254
+ end
255
+
256
+ # Lists `Constraints` that could be applied on the specified resource.
257
+ # @param [String] resource
258
+ # Name of the resource to list `Constraints` for.
259
+ # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
260
+ # @param [String] fields
261
+ # Selector specifying which fields to include in a partial response.
262
+ # @param [String] quota_user
263
+ # Available to use for quota purposes for server-side applications. Can be any
264
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
265
+ # @param [Google::Apis::RequestOptions] options
266
+ # Request-specific options
267
+ #
268
+ # @yield [result, err] Result & error if block supplied
269
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
270
+ # @yieldparam err [StandardError] error object if request failed
271
+ #
272
+ # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
273
+ #
274
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
275
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
276
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
277
+ def list_folder_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
278
+ command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
279
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
280
+ command.request_object = list_available_org_policy_constraints_request_object
281
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
282
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
283
+ command.params['resource'] = resource unless resource.nil?
284
+ command.query['fields'] = fields unless fields.nil?
285
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
286
+ execute_or_queue_command(command, &block)
287
+ end
288
+
289
+ # Gets a `Policy` on a resource.
290
+ # If no `Policy` is set on the resource, a `Policy` is returned with default
291
+ # values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
292
+ # `etag` value can be used with `SetOrgPolicy()` to create or update a
293
+ # `Policy` during read-modify-write.
294
+ # @param [String] resource
295
+ # Name of the resource the `Policy` is set on.
296
+ # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
297
+ # @param [String] fields
298
+ # Selector specifying which fields to include in a partial response.
299
+ # @param [String] quota_user
300
+ # Available to use for quota purposes for server-side applications. Can be any
301
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
302
+ # @param [Google::Apis::RequestOptions] options
303
+ # Request-specific options
304
+ #
305
+ # @yield [result, err] Result & error if block supplied
306
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
307
+ # @yieldparam err [StandardError] error object if request failed
308
+ #
309
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
310
+ #
311
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
312
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
313
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
314
+ def get_folder_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
315
+ command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
316
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
317
+ command.request_object = get_org_policy_request_object
318
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
319
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
320
+ command.params['resource'] = resource unless resource.nil?
321
+ command.query['fields'] = fields unless fields.nil?
322
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
323
+ execute_or_queue_command(command, &block)
324
+ end
325
+
326
+ # Gets the effective `Policy` on a resource. This is the result of merging
327
+ # `Policies` in the resource hierarchy. The returned `Policy` will not have
328
+ # an `etag`set because it is a computed `Policy` across multiple resources.
329
+ # @param [String] resource
330
+ # The name of the resource to start computing the effective `Policy`.
331
+ # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
332
+ # @param [String] fields
333
+ # Selector specifying which fields to include in a partial response.
334
+ # @param [String] quota_user
335
+ # Available to use for quota purposes for server-side applications. Can be any
336
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
337
+ # @param [Google::Apis::RequestOptions] options
338
+ # Request-specific options
339
+ #
340
+ # @yield [result, err] Result & error if block supplied
341
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
342
+ # @yieldparam err [StandardError] error object if request failed
343
+ #
344
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
345
+ #
346
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
347
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
348
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
349
+ def get_folder_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
350
+ command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
351
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
352
+ command.request_object = get_effective_org_policy_request_object
353
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
354
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
355
+ command.params['resource'] = resource unless resource.nil?
356
+ command.query['fields'] = fields unless fields.nil?
357
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
358
+ execute_or_queue_command(command, &block)
359
+ end
360
+
361
+ # Gets a `Policy` on a resource.
362
+ # If no `Policy` is set on the resource, a `Policy` is returned with default
363
+ # values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
364
+ # `etag` value can be used with `SetOrgPolicy()` to create or update a
365
+ # `Policy` during read-modify-write.
366
+ # @param [String] resource
367
+ # Name of the resource the `Policy` is set on.
368
+ # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
369
+ # @param [String] fields
370
+ # Selector specifying which fields to include in a partial response.
371
+ # @param [String] quota_user
372
+ # Available to use for quota purposes for server-side applications. Can be any
373
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
374
+ # @param [Google::Apis::RequestOptions] options
375
+ # Request-specific options
376
+ #
377
+ # @yield [result, err] Result & error if block supplied
378
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
379
+ # @yieldparam err [StandardError] error object if request failed
380
+ #
381
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
382
+ #
383
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
384
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
385
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
386
+ def get_folder_org_policy_v1(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
387
+ command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicyV1', options)
388
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
389
+ command.request_object = get_org_policy_request_object
390
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
391
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
392
+ command.params['resource'] = resource unless resource.nil?
393
+ command.query['fields'] = fields unless fields.nil?
394
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
395
+ execute_or_queue_command(command, &block)
396
+ end
397
+
398
+ # Lists `Constraints` that could be applied on the specified resource.
399
+ # @param [String] resource
400
+ # Name of the resource to list `Constraints` for.
401
+ # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
402
+ # @param [String] fields
403
+ # Selector specifying which fields to include in a partial response.
404
+ # @param [String] quota_user
405
+ # Available to use for quota purposes for server-side applications. Can be any
406
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
407
+ # @param [Google::Apis::RequestOptions] options
408
+ # Request-specific options
409
+ #
410
+ # @yield [result, err] Result & error if block supplied
411
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
412
+ # @yieldparam err [StandardError] error object if request failed
413
+ #
414
+ # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
415
+ #
416
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
417
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
418
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
419
+ def list_project_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
420
+ command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
421
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
422
+ command.request_object = list_available_org_policy_constraints_request_object
423
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
424
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
425
+ command.params['resource'] = resource unless resource.nil?
426
+ command.query['fields'] = fields unless fields.nil?
427
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
428
+ execute_or_queue_command(command, &block)
429
+ end
430
+
431
+ # Returns the IAM access control policy for the specified Project.
432
+ # Permission is denied if the policy or the resource does not exist.
433
+ # @param [String] resource
434
+ # REQUIRED: The resource for which the policy is being requested.
435
+ # See the operation documentation for the appropriate value for this field.
436
+ # @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
437
+ # @param [String] fields
438
+ # Selector specifying which fields to include in a partial response.
439
+ # @param [String] quota_user
440
+ # Available to use for quota purposes for server-side applications. Can be any
441
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
442
+ # @param [Google::Apis::RequestOptions] options
443
+ # Request-specific options
444
+ #
445
+ # @yield [result, err] Result & error if block supplied
446
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
447
+ # @yieldparam err [StandardError] error object if request failed
448
+ #
449
+ # @return [Google::Apis::CloudresourcemanagerV1::Policy]
450
+ #
451
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
452
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
453
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
454
+ def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
455
+ command = make_simple_command(:post, 'v1/projects/{resource}:getIamPolicy', options)
456
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
457
+ command.request_object = get_iam_policy_request_object
458
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
459
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
460
+ command.params['resource'] = resource unless resource.nil?
461
+ command.query['fields'] = fields unless fields.nil?
462
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
463
+ execute_or_queue_command(command, &block)
464
+ end
465
+
466
+ # Gets a `Policy` on a resource.
467
+ # If no `Policy` is set on the resource, a `Policy` is returned with default
468
+ # values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
469
+ # `etag` value can be used with `SetOrgPolicy()` to create or update a
470
+ # `Policy` during read-modify-write.
471
+ # @param [String] resource
472
+ # Name of the resource the `Policy` is set on.
473
+ # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
474
+ # @param [String] fields
475
+ # Selector specifying which fields to include in a partial response.
476
+ # @param [String] quota_user
477
+ # Available to use for quota purposes for server-side applications. Can be any
478
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
479
+ # @param [Google::Apis::RequestOptions] options
480
+ # Request-specific options
481
+ #
482
+ # @yield [result, err] Result & error if block supplied
483
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
484
+ # @yieldparam err [StandardError] error object if request failed
485
+ #
486
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
487
+ #
488
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
489
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
490
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
491
+ def get_project_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
492
+ command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
493
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
494
+ command.request_object = get_org_policy_request_object
495
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
496
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
497
+ command.params['resource'] = resource unless resource.nil?
498
+ command.query['fields'] = fields unless fields.nil?
499
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
500
+ execute_or_queue_command(command, &block)
501
+ end
502
+
503
+ # Gets the effective `Policy` on a resource. This is the result of merging
504
+ # `Policies` in the resource hierarchy. The returned `Policy` will not have
505
+ # an `etag`set because it is a computed `Policy` across multiple resources.
506
+ # @param [String] resource
507
+ # The name of the resource to start computing the effective `Policy`.
508
+ # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
509
+ # @param [String] fields
510
+ # Selector specifying which fields to include in a partial response.
511
+ # @param [String] quota_user
512
+ # Available to use for quota purposes for server-side applications. Can be any
513
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
514
+ # @param [Google::Apis::RequestOptions] options
515
+ # Request-specific options
516
+ #
517
+ # @yield [result, err] Result & error if block supplied
518
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
519
+ # @yieldparam err [StandardError] error object if request failed
520
+ #
521
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
522
+ #
523
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
524
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
525
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
526
+ def get_project_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
527
+ command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
528
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
529
+ command.request_object = get_effective_org_policy_request_object
530
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
531
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
532
+ command.params['resource'] = resource unless resource.nil?
533
+ command.query['fields'] = fields unless fields.nil?
534
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
535
+ execute_or_queue_command(command, &block)
536
+ end
537
+
538
+ # Gets a `Policy` on a resource.
539
+ # If no `Policy` is set on the resource, a `Policy` is returned with default
540
+ # values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
541
+ # `etag` value can be used with `SetOrgPolicy()` to create or update a
542
+ # `Policy` during read-modify-write.
543
+ # @param [String] resource
544
+ # Name of the resource the `Policy` is set on.
545
+ # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
546
+ # @param [String] fields
547
+ # Selector specifying which fields to include in a partial response.
548
+ # @param [String] quota_user
549
+ # Available to use for quota purposes for server-side applications. Can be any
550
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
551
+ # @param [Google::Apis::RequestOptions] options
552
+ # Request-specific options
553
+ #
554
+ # @yield [result, err] Result & error if block supplied
555
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
556
+ # @yieldparam err [StandardError] error object if request failed
557
+ #
558
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
559
+ #
560
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
561
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
562
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
563
+ def get_project_org_policy_v1(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
564
+ command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicyV1', options)
565
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
566
+ command.request_object = get_org_policy_request_object
567
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
568
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
569
+ command.params['resource'] = resource unless resource.nil?
570
+ command.query['fields'] = fields unless fields.nil?
571
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
572
+ execute_or_queue_command(command, &block)
573
+ end
574
+
575
+ # Restores the Project identified by the specified
576
+ # `project_id` (for example, `my-project-123`).
577
+ # You can only use this method for a Project that has a lifecycle state of
578
+ # DELETE_REQUESTED.
579
+ # After deletion starts, the Project cannot be restored.
580
+ # The caller must have modify permissions for this Project.
581
+ # @param [String] project_id
582
+ # The project ID (for example, `foo-bar-123`).
583
+ # Required.
584
+ # @param [Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest] undelete_project_request_object
585
+ # @param [String] fields
586
+ # Selector specifying which fields to include in a partial response.
587
+ # @param [String] quota_user
588
+ # Available to use for quota purposes for server-side applications. Can be any
589
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
590
+ # @param [Google::Apis::RequestOptions] options
591
+ # Request-specific options
592
+ #
593
+ # @yield [result, err] Result & error if block supplied
594
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
595
+ # @yieldparam err [StandardError] error object if request failed
596
+ #
597
+ # @return [Google::Apis::CloudresourcemanagerV1::Empty]
598
+ #
599
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
600
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
601
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
602
+ def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
603
+ command = make_simple_command(:post, 'v1/projects/{projectId}:undelete', options)
604
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest::Representation
605
+ command.request_object = undelete_project_request_object
606
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
607
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
608
+ command.params['projectId'] = project_id unless project_id.nil?
609
+ command.query['fields'] = fields unless fields.nil?
610
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
611
+ execute_or_queue_command(command, &block)
612
+ end
613
+
614
+ # Updates the attributes of the Project identified by the specified
615
+ # `project_id` (for example, `my-project-123`).
616
+ # The caller must have modify permissions for this Project.
617
+ # @param [String] project_id
618
+ # The project ID (for example, `my-project-123`).
619
+ # Required.
620
+ # @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
621
+ # @param [String] fields
622
+ # Selector specifying which fields to include in a partial response.
623
+ # @param [String] quota_user
624
+ # Available to use for quota purposes for server-side applications. Can be any
625
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
626
+ # @param [Google::Apis::RequestOptions] options
627
+ # Request-specific options
628
+ #
629
+ # @yield [result, err] Result & error if block supplied
630
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
631
+ # @yieldparam err [StandardError] error object if request failed
632
+ #
633
+ # @return [Google::Apis::CloudresourcemanagerV1::Project]
634
+ #
635
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
636
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
637
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
638
+ def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
639
+ command = make_simple_command(:put, 'v1/projects/{projectId}', options)
640
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
641
+ command.request_object = project_object
642
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
643
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Project
644
+ command.params['projectId'] = project_id unless project_id.nil?
645
+ command.query['fields'] = fields unless fields.nil?
646
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
647
+ execute_or_queue_command(command, &block)
648
+ end
649
+
650
+ # Updates the specified `Policy` on the resource. Creates a new `Policy` for
651
+ # that `Constraint` on the resource if one does not exist.
652
+ # Not supplying an `etag` on the request `Policy` results in an unconditional
653
+ # write of the `Policy`.
654
+ # @param [String] resource
655
+ # Resource name of the resource to attach the `Policy`.
656
+ # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
657
+ # @param [String] fields
658
+ # Selector specifying which fields to include in a partial response.
659
+ # @param [String] quota_user
660
+ # Available to use for quota purposes for server-side applications. Can be any
661
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
662
+ # @param [Google::Apis::RequestOptions] options
663
+ # Request-specific options
664
+ #
665
+ # @yield [result, err] Result & error if block supplied
666
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
667
+ # @yieldparam err [StandardError] error object if request failed
668
+ #
669
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
670
+ #
671
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
672
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
673
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
674
+ def set_project_org_policy_v1(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
675
+ command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicyV1', options)
676
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
677
+ command.request_object = set_org_policy_request_object
678
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
679
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
680
+ command.params['resource'] = resource unless resource.nil?
681
+ command.query['fields'] = fields unless fields.nil?
682
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
683
+ execute_or_queue_command(command, &block)
684
+ end
685
+
686
+ # Lists Projects that are visible to the user and satisfy the
687
+ # specified filter. This method returns Projects in an unspecified order.
688
+ # New Projects do not necessarily appear at the end of the list.
689
+ # @param [String] page_token
690
+ # A pagination token returned from a previous call to ListProjects
691
+ # that indicates from where listing should continue.
692
+ # Optional.
693
+ # @param [Fixnum] page_size
694
+ # The maximum number of Projects to return in the response.
695
+ # The server can return fewer Projects than requested.
696
+ # If unspecified, server picks an appropriate default.
697
+ # Optional.
698
+ # @param [String] filter
699
+ # An expression for filtering the results of the request. Filter rules are
700
+ # case insensitive. The fields eligible for filtering are:
701
+ # + `name`
702
+ # + `id`
703
+ # + <code>labels.<em>key</em></code> where *key* is the name of a label
704
+ # Some examples of using labels as filters:
705
+ # |Filter|Description|
706
+ # |------|-----------|
707
+ # |name:*|The project has a name.|
708
+ # |name:Howl|The project's name is `Howl` or `howl`.|
709
+ # |name:HOWL|Equivalent to above.|
710
+ # |NAME:howl|Equivalent to above.|
711
+ # |labels.color:*|The project has the label `color`.|
712
+ # |labels.color:red|The project's label `color` has the value `red`.|
713
+ # |labels.color:red&nbsp;labels.size:big|The project's label `color` has the
714
+ # value `red` and its label `size` has the value `big`.
715
+ # Optional.
716
+ # @param [String] fields
717
+ # Selector specifying which fields to include in a partial response.
718
+ # @param [String] quota_user
719
+ # Available to use for quota purposes for server-side applications. Can be any
720
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
721
+ # @param [Google::Apis::RequestOptions] options
722
+ # Request-specific options
723
+ #
724
+ # @yield [result, err] Result & error if block supplied
725
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListProjectsResponse] parsed result object
726
+ # @yieldparam err [StandardError] error object if request failed
727
+ #
728
+ # @return [Google::Apis::CloudresourcemanagerV1::ListProjectsResponse]
729
+ #
730
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
731
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
732
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
733
+ def list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
734
+ command = make_simple_command(:get, 'v1/projects', options)
735
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse::Representation
736
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse
737
+ command.query['pageToken'] = page_token unless page_token.nil?
738
+ command.query['pageSize'] = page_size unless page_size.nil?
739
+ command.query['filter'] = filter unless filter.nil?
740
+ command.query['fields'] = fields unless fields.nil?
741
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
742
+ execute_or_queue_command(command, &block)
743
+ end
744
+
745
+ # Updates the specified `Policy` on the resource. Creates a new `Policy` for
746
+ # that `Constraint` on the resource if one does not exist.
747
+ # Not supplying an `etag` on the request `Policy` results in an unconditional
748
+ # write of the `Policy`.
749
+ # @param [String] resource
750
+ # Resource name of the resource to attach the `Policy`.
751
+ # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
752
+ # @param [String] fields
753
+ # Selector specifying which fields to include in a partial response.
754
+ # @param [String] quota_user
755
+ # Available to use for quota purposes for server-side applications. Can be any
756
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
757
+ # @param [Google::Apis::RequestOptions] options
758
+ # Request-specific options
759
+ #
760
+ # @yield [result, err] Result & error if block supplied
761
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
762
+ # @yieldparam err [StandardError] error object if request failed
763
+ #
764
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
765
+ #
766
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
767
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
768
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
769
+ def set_project_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
770
+ command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
771
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
772
+ command.request_object = set_org_policy_request_object
773
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
774
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
775
+ command.params['resource'] = resource unless resource.nil?
776
+ command.query['fields'] = fields unless fields.nil?
777
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
778
+ execute_or_queue_command(command, &block)
779
+ end
780
+
781
+ # Clears a `Policy` from a resource.
782
+ # @param [String] resource
783
+ # Name of the resource for the `Policy` to clear.
784
+ # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
785
+ # @param [String] fields
786
+ # Selector specifying which fields to include in a partial response.
787
+ # @param [String] quota_user
788
+ # Available to use for quota purposes for server-side applications. Can be any
789
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
790
+ # @param [Google::Apis::RequestOptions] options
791
+ # Request-specific options
792
+ #
793
+ # @yield [result, err] Result & error if block supplied
794
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
795
+ # @yieldparam err [StandardError] error object if request failed
796
+ #
797
+ # @return [Google::Apis::CloudresourcemanagerV1::Empty]
798
+ #
799
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
800
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
801
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
802
+ def clear_project_org_policy_v1(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
803
+ command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicyV1', options)
804
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
805
+ command.request_object = clear_org_policy_request_object
806
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
807
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
808
+ command.params['resource'] = resource unless resource.nil?
809
+ command.query['fields'] = fields unless fields.nil?
810
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
811
+ execute_or_queue_command(command, &block)
812
+ end
813
+
814
+ # Request that a new Project be created. The result is an Operation which
815
+ # can be used to track the creation process. It is automatically deleted
816
+ # after a few hours, so there is no need to call DeleteOperation.
817
+ # Our SLO permits Project creation to take up to 30 seconds at the 90th
818
+ # percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile
819
+ # latency. 95th percentile latency is around 11 seconds. We recommend
820
+ # polling at the 5th second with an exponential backoff.
821
+ # @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
822
+ # @param [String] fields
823
+ # Selector specifying which fields to include in a partial response.
824
+ # @param [String] quota_user
825
+ # Available to use for quota purposes for server-side applications. Can be any
826
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
827
+ # @param [Google::Apis::RequestOptions] options
828
+ # Request-specific options
829
+ #
830
+ # @yield [result, err] Result & error if block supplied
831
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
832
+ # @yieldparam err [StandardError] error object if request failed
833
+ #
834
+ # @return [Google::Apis::CloudresourcemanagerV1::Operation]
835
+ #
836
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
837
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
838
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
839
+ def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
840
+ command = make_simple_command(:post, 'v1/projects', options)
841
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
842
+ command.request_object = project_object
843
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
844
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
845
+ command.query['fields'] = fields unless fields.nil?
846
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
847
+ execute_or_queue_command(command, &block)
848
+ end
849
+
850
+ # Lists all the `Policies` set for a particular resource.
851
+ # @param [String] resource
852
+ # Name of the resource to list Policies for.
853
+ # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
854
+ # @param [String] fields
855
+ # Selector specifying which fields to include in a partial response.
856
+ # @param [String] quota_user
857
+ # Available to use for quota purposes for server-side applications. Can be any
858
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
859
+ # @param [Google::Apis::RequestOptions] options
860
+ # Request-specific options
861
+ #
862
+ # @yield [result, err] Result & error if block supplied
863
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
864
+ # @yieldparam err [StandardError] error object if request failed
865
+ #
866
+ # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
867
+ #
868
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
869
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
870
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
871
+ def list_project_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
872
+ command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
873
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
874
+ command.request_object = list_org_policies_request_object
875
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
876
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
877
+ command.params['resource'] = resource unless resource.nil?
878
+ command.query['fields'] = fields unless fields.nil?
879
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
880
+ execute_or_queue_command(command, &block)
881
+ end
882
+
883
+ # Retrieves the Project identified by the specified
884
+ # `project_id` (for example, `my-project-123`).
885
+ # The caller must have read permissions for this Project.
886
+ # @param [String] project_id
887
+ # The Project ID (for example, `my-project-123`).
888
+ # Required.
889
+ # @param [String] fields
890
+ # Selector specifying which fields to include in a partial response.
891
+ # @param [String] quota_user
892
+ # Available to use for quota purposes for server-side applications. Can be any
893
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
894
+ # @param [Google::Apis::RequestOptions] options
895
+ # Request-specific options
896
+ #
897
+ # @yield [result, err] Result & error if block supplied
898
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
899
+ # @yieldparam err [StandardError] error object if request failed
900
+ #
901
+ # @return [Google::Apis::CloudresourcemanagerV1::Project]
902
+ #
903
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
904
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
905
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
906
+ def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
907
+ command = make_simple_command(:get, 'v1/projects/{projectId}', options)
908
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
909
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Project
910
+ command.params['projectId'] = project_id unless project_id.nil?
911
+ command.query['fields'] = fields unless fields.nil?
912
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
913
+ execute_or_queue_command(command, &block)
914
+ end
915
+
916
+ # Gets a list of ancestors in the resource hierarchy for the Project
917
+ # identified by the specified `project_id` (for example, `my-project-123`).
918
+ # The caller must have read permissions for this Project.
919
+ # @param [String] project_id
920
+ # The Project ID (for example, `my-project-123`).
921
+ # Required.
922
+ # @param [Google::Apis::CloudresourcemanagerV1::GetAncestryRequest] get_ancestry_request_object
923
+ # @param [String] fields
924
+ # Selector specifying which fields to include in a partial response.
925
+ # @param [String] quota_user
926
+ # Available to use for quota purposes for server-side applications. Can be any
927
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
928
+ # @param [Google::Apis::RequestOptions] options
929
+ # Request-specific options
930
+ #
931
+ # @yield [result, err] Result & error if block supplied
932
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse] parsed result object
933
+ # @yieldparam err [StandardError] error object if request failed
934
+ #
935
+ # @return [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse]
936
+ #
937
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
938
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
939
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
940
+ def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
941
+ command = make_simple_command(:post, 'v1/projects/{projectId}:getAncestry', options)
942
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryRequest::Representation
943
+ command.request_object = get_ancestry_request_object
944
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse::Representation
945
+ command.response_class = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse
946
+ command.params['projectId'] = project_id unless project_id.nil?
947
+ command.query['fields'] = fields unless fields.nil?
948
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
949
+ execute_or_queue_command(command, &block)
950
+ end
951
+
952
+ # Returns permissions that a caller has on the specified Project.
78
953
  # @param [String] resource
79
- # REQUIRED: The resource for which the policy is being specified.
954
+ # REQUIRED: The resource for which the policy detail is being requested.
80
955
  # See the operation documentation for the appropriate value for this field.
81
- # @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
956
+ # @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
82
957
  # @param [String] fields
83
958
  # Selector specifying which fields to include in a partial response.
84
959
  # @param [String] quota_user
@@ -88,34 +963,32 @@ module Google
88
963
  # Request-specific options
89
964
  #
90
965
  # @yield [result, err] Result & error if block supplied
91
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
966
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
92
967
  # @yieldparam err [StandardError] error object if request failed
93
968
  #
94
- # @return [Google::Apis::CloudresourcemanagerV1::Policy]
969
+ # @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
95
970
  #
96
971
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
97
972
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
98
973
  # @raise [Google::Apis::AuthorizationError] Authorization is required
99
- def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
100
- command = make_simple_command(:post, 'v1/projects/{resource}:setIamPolicy', options)
101
- command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
102
- command.request_object = set_iam_policy_request_object
103
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
104
- command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
974
+ def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
975
+ command = make_simple_command(:post, 'v1/projects/{resource}:testIamPermissions', options)
976
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
977
+ command.request_object = test_iam_permissions_request_object
978
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
979
+ command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
105
980
  command.params['resource'] = resource unless resource.nil?
106
981
  command.query['fields'] = fields unless fields.nil?
107
982
  command.query['quotaUser'] = quota_user unless quota_user.nil?
108
983
  execute_or_queue_command(command, &block)
109
984
  end
110
985
 
111
- # Request that a new Project be created. The result is an Operation which
112
- # can be used to track the creation process. It is automatically deleted
113
- # after a few hours, so there is no need to call DeleteOperation.
114
- # Our SLO permits Project creation to take up to 30 seconds at the 90th
115
- # percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile
116
- # latency. 95th percentile latency is around 11 seconds. We recommend
117
- # polling at the 5th second with an exponential backoff.
118
- # @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
986
+ # Gets the effective `Policy` on a resource. This is the result of merging
987
+ # `Policies` in the resource hierarchy. The returned `Policy` will not have
988
+ # an `etag`set because it is a computed `Policy` across multiple resources.
989
+ # @param [String] resource
990
+ # The name of the resource to start computing the effective `Policy`.
991
+ # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
119
992
  # @param [String] fields
120
993
  # Selector specifying which fields to include in a partial response.
121
994
  # @param [String] quota_user
@@ -125,31 +998,140 @@ module Google
125
998
  # Request-specific options
126
999
  #
127
1000
  # @yield [result, err] Result & error if block supplied
128
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
1001
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
129
1002
  # @yieldparam err [StandardError] error object if request failed
130
1003
  #
131
- # @return [Google::Apis::CloudresourcemanagerV1::Operation]
1004
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
132
1005
  #
133
1006
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
134
1007
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
135
1008
  # @raise [Google::Apis::AuthorizationError] Authorization is required
136
- def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
137
- command = make_simple_command(:post, 'v1/projects', options)
138
- command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
139
- command.request_object = project_object
140
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
141
- command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
1009
+ def get_project_effective_org_policy_v1(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1010
+ command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicyV1', options)
1011
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
1012
+ command.request_object = get_effective_org_policy_request_object
1013
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
1014
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
1015
+ command.params['resource'] = resource unless resource.nil?
142
1016
  command.query['fields'] = fields unless fields.nil?
143
1017
  command.query['quotaUser'] = quota_user unless quota_user.nil?
144
1018
  execute_or_queue_command(command, &block)
145
1019
  end
146
1020
 
147
- # Returns the IAM access control policy for the specified Project.
148
- # Permission is denied if the policy or the resource does not exist.
1021
+ # Marks the Project identified by the specified
1022
+ # `project_id` (for example, `my-project-123`) for deletion.
1023
+ # This method will only affect the Project if the following criteria are met:
1024
+ # + The Project does not have a billing account associated with it.
1025
+ # + The Project has a lifecycle state of
1026
+ # ACTIVE.
1027
+ # This method changes the Project's lifecycle state from
1028
+ # ACTIVE
1029
+ # to DELETE_REQUESTED.
1030
+ # The deletion starts at an unspecified time,
1031
+ # at which point the Project is no longer accessible.
1032
+ # Until the deletion completes, you can check the lifecycle state
1033
+ # checked by retrieving the Project with GetProject,
1034
+ # and the Project remains visible to ListProjects.
1035
+ # However, you cannot update the project.
1036
+ # After the deletion completes, the Project is not retrievable by
1037
+ # the GetProject and
1038
+ # ListProjects methods.
1039
+ # The caller must have modify permissions for this Project.
1040
+ # @param [String] project_id
1041
+ # The Project ID (for example, `foo-bar-123`).
1042
+ # Required.
1043
+ # @param [String] fields
1044
+ # Selector specifying which fields to include in a partial response.
1045
+ # @param [String] quota_user
1046
+ # Available to use for quota purposes for server-side applications. Can be any
1047
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1048
+ # @param [Google::Apis::RequestOptions] options
1049
+ # Request-specific options
1050
+ #
1051
+ # @yield [result, err] Result & error if block supplied
1052
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
1053
+ # @yieldparam err [StandardError] error object if request failed
1054
+ #
1055
+ # @return [Google::Apis::CloudresourcemanagerV1::Empty]
1056
+ #
1057
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1058
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1059
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1060
+ def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
1061
+ command = make_simple_command(:delete, 'v1/projects/{projectId}', options)
1062
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
1063
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
1064
+ command.params['projectId'] = project_id unless project_id.nil?
1065
+ command.query['fields'] = fields unless fields.nil?
1066
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1067
+ execute_or_queue_command(command, &block)
1068
+ end
1069
+
1070
+ # Clears a `Policy` from a resource.
149
1071
  # @param [String] resource
150
- # REQUIRED: The resource for which the policy is being requested.
1072
+ # Name of the resource for the `Policy` to clear.
1073
+ # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
1074
+ # @param [String] fields
1075
+ # Selector specifying which fields to include in a partial response.
1076
+ # @param [String] quota_user
1077
+ # Available to use for quota purposes for server-side applications. Can be any
1078
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1079
+ # @param [Google::Apis::RequestOptions] options
1080
+ # Request-specific options
1081
+ #
1082
+ # @yield [result, err] Result & error if block supplied
1083
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
1084
+ # @yieldparam err [StandardError] error object if request failed
1085
+ #
1086
+ # @return [Google::Apis::CloudresourcemanagerV1::Empty]
1087
+ #
1088
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1089
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1090
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1091
+ def clear_project_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1092
+ command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
1093
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
1094
+ command.request_object = clear_org_policy_request_object
1095
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
1096
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
1097
+ command.params['resource'] = resource unless resource.nil?
1098
+ command.query['fields'] = fields unless fields.nil?
1099
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1100
+ execute_or_queue_command(command, &block)
1101
+ end
1102
+
1103
+ # Sets the IAM access control policy for the specified Project. Replaces
1104
+ # any existing policy.
1105
+ # The following constraints apply when using `setIamPolicy()`:
1106
+ # + Project does not support `allUsers` and `allAuthenticatedUsers` as
1107
+ # `members` in a `Binding` of a `Policy`.
1108
+ # + The owner role can be granted only to `user` and `serviceAccount`.
1109
+ # + Service accounts can be made owners of a project directly
1110
+ # without any restrictions. However, to be added as an owner, a user must be
1111
+ # invited via Cloud Platform console and must accept the invitation.
1112
+ # + A user cannot be granted the owner role using `setIamPolicy()`. The user
1113
+ # must be granted the owner role using the Cloud Platform Console and must
1114
+ # explicitly accept the invitation.
1115
+ # + Invitations to grant the owner role cannot be sent using
1116
+ # `setIamPolicy()`;
1117
+ # they must be sent only using the Cloud Platform Console.
1118
+ # + Membership changes that leave the project without any owners that have
1119
+ # accepted the Terms of Service (ToS) will be rejected.
1120
+ # + There must be at least one owner who has accepted the Terms of
1121
+ # Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
1122
+ # remove the last ToS-accepted owner from the policy will fail. This
1123
+ # restriction also applies to legacy projects that no longer have owners
1124
+ # who have accepted the ToS. Edits to IAM policies will be rejected until
1125
+ # the lack of a ToS-accepting owner is rectified.
1126
+ # + Calling this method requires enabling the App Engine Admin API.
1127
+ # Note: Removing service accounts from policies or changing their roles
1128
+ # can render services completely inoperable. It is important to understand
1129
+ # how the service account is being used before removing or updating its
1130
+ # roles.
1131
+ # @param [String] resource
1132
+ # REQUIRED: The resource for which the policy is being specified.
151
1133
  # See the operation documentation for the appropriate value for this field.
152
- # @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
1134
+ # @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
153
1135
  # @param [String] fields
154
1136
  # Selector specifying which fields to include in a partial response.
155
1137
  # @param [String] quota_user
@@ -167,10 +1149,10 @@ module Google
167
1149
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
168
1150
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
169
1151
  # @raise [Google::Apis::AuthorizationError] Authorization is required
170
- def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
171
- command = make_simple_command(:post, 'v1/projects/{resource}:getIamPolicy', options)
172
- command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
173
- command.request_object = get_iam_policy_request_object
1152
+ def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1153
+ command = make_simple_command(:post, 'v1/projects/{resource}:setIamPolicy', options)
1154
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
1155
+ command.request_object = set_iam_policy_request_object
174
1156
  command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
175
1157
  command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
176
1158
  command.params['resource'] = resource unless resource.nil?
@@ -179,12 +1161,10 @@ module Google
179
1161
  execute_or_queue_command(command, &block)
180
1162
  end
181
1163
 
182
- # Retrieves the Project identified by the specified
183
- # `project_id` (for example, `my-project-123`).
184
- # The caller must have read permissions for this Project.
185
- # @param [String] project_id
186
- # The Project ID (for example, `my-project-123`).
187
- # Required.
1164
+ # Lists all the `Policies` set for a particular resource.
1165
+ # @param [String] resource
1166
+ # Name of the resource to list Policies for.
1167
+ # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
188
1168
  # @param [String] fields
189
1169
  # Selector specifying which fields to include in a partial response.
190
1170
  # @param [String] quota_user
@@ -194,34 +1174,31 @@ module Google
194
1174
  # Request-specific options
195
1175
  #
196
1176
  # @yield [result, err] Result & error if block supplied
197
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
1177
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
198
1178
  # @yieldparam err [StandardError] error object if request failed
199
1179
  #
200
- # @return [Google::Apis::CloudresourcemanagerV1::Project]
1180
+ # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
201
1181
  #
202
1182
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
1183
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
1184
  # @raise [Google::Apis::AuthorizationError] Authorization is required
205
- def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
206
- command = make_simple_command(:get, 'v1/projects/{projectId}', options)
207
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
208
- command.response_class = Google::Apis::CloudresourcemanagerV1::Project
209
- command.params['projectId'] = project_id unless project_id.nil?
1185
+ def list_organization_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1186
+ command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
1187
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
1188
+ command.request_object = list_org_policies_request_object
1189
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
1190
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
1191
+ command.params['resource'] = resource unless resource.nil?
210
1192
  command.query['fields'] = fields unless fields.nil?
211
1193
  command.query['quotaUser'] = quota_user unless quota_user.nil?
212
1194
  execute_or_queue_command(command, &block)
213
1195
  end
214
1196
 
215
- # Restores the Project identified by the specified
216
- # `project_id` (for example, `my-project-123`).
217
- # You can only use this method for a Project that has a lifecycle state of
218
- # DELETE_REQUESTED.
219
- # After deletion starts, the Project cannot be restored.
220
- # The caller must have modify permissions for this Project.
221
- # @param [String] project_id
222
- # The project ID (for example, `foo-bar-123`).
223
- # Required.
224
- # @param [Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest] undelete_project_request_object
1197
+ # Searches Organization resources that are visible to the user and satisfy
1198
+ # the specified filter. This method returns Organizations in an unspecified
1199
+ # order. New Organizations do not necessarily appear at the end of the
1200
+ # results.
1201
+ # @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
225
1202
  # @param [String] fields
226
1203
  # Selector specifying which fields to include in a partial response.
227
1204
  # @param [String] quota_user
@@ -231,33 +1208,28 @@ module Google
231
1208
  # Request-specific options
232
1209
  #
233
1210
  # @yield [result, err] Result & error if block supplied
234
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
1211
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
235
1212
  # @yieldparam err [StandardError] error object if request failed
236
1213
  #
237
- # @return [Google::Apis::CloudresourcemanagerV1::Empty]
1214
+ # @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
238
1215
  #
239
1216
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
240
1217
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
241
1218
  # @raise [Google::Apis::AuthorizationError] Authorization is required
242
- def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
243
- command = make_simple_command(:post, 'v1/projects/{projectId}:undelete', options)
244
- command.request_representation = Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest::Representation
245
- command.request_object = undelete_project_request_object
246
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
247
- command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
248
- command.params['projectId'] = project_id unless project_id.nil?
1219
+ def search_organizations(search_organizations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1220
+ command = make_simple_command(:post, 'v1/organizations:search', options)
1221
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
1222
+ command.request_object = search_organizations_request_object
1223
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
1224
+ command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
249
1225
  command.query['fields'] = fields unless fields.nil?
250
1226
  command.query['quotaUser'] = quota_user unless quota_user.nil?
251
1227
  execute_or_queue_command(command, &block)
252
1228
  end
253
1229
 
254
- # Updates the attributes of the Project identified by the specified
255
- # `project_id` (for example, `my-project-123`).
256
- # The caller must have modify permissions for this Project.
257
- # @param [String] project_id
258
- # The project ID (for example, `my-project-123`).
259
- # Required.
260
- # @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
1230
+ # Fetches an Organization resource identified by the specified resource name.
1231
+ # @param [String] name
1232
+ # The resource name of the Organization to fetch, e.g. "organizations/1234".
261
1233
  # @param [String] fields
262
1234
  # Selector specifying which fields to include in a partial response.
263
1235
  # @param [String] quota_user
@@ -267,33 +1239,30 @@ module Google
267
1239
  # Request-specific options
268
1240
  #
269
1241
  # @yield [result, err] Result & error if block supplied
270
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
1242
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Organization] parsed result object
271
1243
  # @yieldparam err [StandardError] error object if request failed
272
1244
  #
273
- # @return [Google::Apis::CloudresourcemanagerV1::Project]
1245
+ # @return [Google::Apis::CloudresourcemanagerV1::Organization]
274
1246
  #
275
1247
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
276
1248
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
277
1249
  # @raise [Google::Apis::AuthorizationError] Authorization is required
278
- def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
279
- command = make_simple_command(:put, 'v1/projects/{projectId}', options)
280
- command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
281
- command.request_object = project_object
282
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
283
- command.response_class = Google::Apis::CloudresourcemanagerV1::Project
284
- command.params['projectId'] = project_id unless project_id.nil?
1250
+ def get_organization(name, fields: nil, quota_user: nil, options: nil, &block)
1251
+ command = make_simple_command(:get, 'v1/{+name}', options)
1252
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation
1253
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Organization
1254
+ command.params['name'] = name unless name.nil?
285
1255
  command.query['fields'] = fields unless fields.nil?
286
1256
  command.query['quotaUser'] = quota_user unless quota_user.nil?
287
1257
  execute_or_queue_command(command, &block)
288
1258
  end
289
1259
 
290
- # Gets a list of ancestors in the resource hierarchy for the Project
291
- # identified by the specified `project_id` (for example, `my-project-123`).
292
- # The caller must have read permissions for this Project.
293
- # @param [String] project_id
294
- # The Project ID (for example, `my-project-123`).
295
- # Required.
296
- # @param [Google::Apis::CloudresourcemanagerV1::GetAncestryRequest] get_ancestry_request_object
1260
+ # Gets the effective `Policy` on a resource. This is the result of merging
1261
+ # `Policies` in the resource hierarchy. The returned `Policy` will not have
1262
+ # an `etag`set because it is a computed `Policy` across multiple resources.
1263
+ # @param [String] resource
1264
+ # The name of the resource to start computing the effective `Policy`.
1265
+ # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
297
1266
  # @param [String] fields
298
1267
  # Selector specifying which fields to include in a partial response.
299
1268
  # @param [String] quota_user
@@ -303,27 +1272,29 @@ module Google
303
1272
  # Request-specific options
304
1273
  #
305
1274
  # @yield [result, err] Result & error if block supplied
306
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse] parsed result object
1275
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
307
1276
  # @yieldparam err [StandardError] error object if request failed
308
1277
  #
309
- # @return [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse]
1278
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
310
1279
  #
311
1280
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
312
1281
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
313
1282
  # @raise [Google::Apis::AuthorizationError] Authorization is required
314
- def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
315
- command = make_simple_command(:post, 'v1/projects/{projectId}:getAncestry', options)
316
- command.request_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryRequest::Representation
317
- command.request_object = get_ancestry_request_object
318
- command.response_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse::Representation
319
- command.response_class = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse
320
- command.params['projectId'] = project_id unless project_id.nil?
1283
+ def get_organization_effective_org_policy_v1(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1284
+ command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicyV1', options)
1285
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
1286
+ command.request_object = get_effective_org_policy_request_object
1287
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
1288
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
1289
+ command.params['resource'] = resource unless resource.nil?
321
1290
  command.query['fields'] = fields unless fields.nil?
322
1291
  command.query['quotaUser'] = quota_user unless quota_user.nil?
323
1292
  execute_or_queue_command(command, &block)
324
1293
  end
325
1294
 
326
- # Returns permissions that a caller has on the specified Project.
1295
+ # Returns permissions that a caller has on the specified Organization.
1296
+ # The `resource` field should be the organization's resource name,
1297
+ # e.g. "organizations/123".
327
1298
  # @param [String] resource
328
1299
  # REQUIRED: The resource for which the policy detail is being requested.
329
1300
  # See the operation documentation for the appropriate value for this field.
@@ -345,8 +1316,8 @@ module Google
345
1316
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
346
1317
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
347
1318
  # @raise [Google::Apis::AuthorizationError] Authorization is required
348
- def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
349
- command = make_simple_command(:post, 'v1/projects/{resource}:testIamPermissions', options)
1319
+ def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1320
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
350
1321
  command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
351
1322
  command.request_object = test_iam_permissions_request_object
352
1323
  command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
@@ -357,28 +1328,10 @@ module Google
357
1328
  execute_or_queue_command(command, &block)
358
1329
  end
359
1330
 
360
- # Marks the Project identified by the specified
361
- # `project_id` (for example, `my-project-123`) for deletion.
362
- # This method will only affect the Project if the following criteria are met:
363
- # + The Project does not have a billing account associated with it.
364
- # + The Project has a lifecycle state of
365
- # ACTIVE.
366
- # This method changes the Project's lifecycle state from
367
- # ACTIVE
368
- # to DELETE_REQUESTED.
369
- # The deletion starts at an unspecified time,
370
- # at which point the Project is no longer accessible.
371
- # Until the deletion completes, you can check the lifecycle state
372
- # checked by retrieving the Project with GetProject,
373
- # and the Project remains visible to ListProjects.
374
- # However, you cannot update the project.
375
- # After the deletion completes, the Project is not retrievable by
376
- # the GetProject and
377
- # ListProjects methods.
378
- # The caller must have modify permissions for this Project.
379
- # @param [String] project_id
380
- # The Project ID (for example, `foo-bar-123`).
381
- # Required.
1331
+ # Clears a `Policy` from a resource.
1332
+ # @param [String] resource
1333
+ # Name of the resource for the `Policy` to clear.
1334
+ # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
382
1335
  # @param [String] fields
383
1336
  # Selector specifying which fields to include in a partial response.
384
1337
  # @param [String] quota_user
@@ -396,46 +1349,25 @@ module Google
396
1349
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
397
1350
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
398
1351
  # @raise [Google::Apis::AuthorizationError] Authorization is required
399
- def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
400
- command = make_simple_command(:delete, 'v1/projects/{projectId}', options)
1352
+ def clear_organization_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1353
+ command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
1354
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
1355
+ command.request_object = clear_org_policy_request_object
401
1356
  command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
402
1357
  command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
403
- command.params['projectId'] = project_id unless project_id.nil?
1358
+ command.params['resource'] = resource unless resource.nil?
404
1359
  command.query['fields'] = fields unless fields.nil?
405
1360
  command.query['quotaUser'] = quota_user unless quota_user.nil?
406
1361
  execute_or_queue_command(command, &block)
407
1362
  end
408
1363
 
409
- # Lists Projects that are visible to the user and satisfy the
410
- # specified filter. This method returns Projects in an unspecified order.
411
- # New Projects do not necessarily appear at the end of the list.
412
- # @param [String] page_token
413
- # A pagination token returned from a previous call to ListProjects
414
- # that indicates from where listing should continue.
415
- # Optional.
416
- # @param [Fixnum] page_size
417
- # The maximum number of Projects to return in the response.
418
- # The server can return fewer Projects than requested.
419
- # If unspecified, server picks an appropriate default.
420
- # Optional.
421
- # @param [String] filter
422
- # An expression for filtering the results of the request. Filter rules are
423
- # case insensitive. The fields eligible for filtering are:
424
- # + `name`
425
- # + `id`
426
- # + <code>labels.<em>key</em></code> where *key* is the name of a label
427
- # Some examples of using labels as filters:
428
- # |Filter|Description|
429
- # |------|-----------|
430
- # |name:*|The project has a name.|
431
- # |name:Howl|The project's name is `Howl` or `howl`.|
432
- # |name:HOWL|Equivalent to above.|
433
- # |NAME:howl|Equivalent to above.|
434
- # |labels.color:*|The project has the label `color`.|
435
- # |labels.color:red|The project's label `color` has the value `red`.|
436
- # |labels.color:red&nbsp;label.size:big|The project's label `color` has the
437
- # value `red` and its label `size` has the value `big`.
438
- # Optional.
1364
+ # Sets the access control policy on an Organization resource. Replaces any
1365
+ # existing policy. The `resource` field should be the organization's resource
1366
+ # name, e.g. "organizations/123".
1367
+ # @param [String] resource
1368
+ # REQUIRED: The resource for which the policy is being specified.
1369
+ # See the operation documentation for the appropriate value for this field.
1370
+ # @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
439
1371
  # @param [String] fields
440
1372
  # Selector specifying which fields to include in a partial response.
441
1373
  # @param [String] quota_user
@@ -445,21 +1377,54 @@ module Google
445
1377
  # Request-specific options
446
1378
  #
447
1379
  # @yield [result, err] Result & error if block supplied
448
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListProjectsResponse] parsed result object
1380
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
449
1381
  # @yieldparam err [StandardError] error object if request failed
450
1382
  #
451
- # @return [Google::Apis::CloudresourcemanagerV1::ListProjectsResponse]
1383
+ # @return [Google::Apis::CloudresourcemanagerV1::Policy]
452
1384
  #
453
1385
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
454
1386
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
455
1387
  # @raise [Google::Apis::AuthorizationError] Authorization is required
456
- def list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
457
- command = make_simple_command(:get, 'v1/projects', options)
458
- command.response_representation = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse::Representation
459
- command.response_class = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse
460
- command.query['pageToken'] = page_token unless page_token.nil?
461
- command.query['pageSize'] = page_size unless page_size.nil?
462
- command.query['filter'] = filter unless filter.nil?
1388
+ def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1389
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1390
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
1391
+ command.request_object = set_iam_policy_request_object
1392
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
1393
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
1394
+ command.params['resource'] = resource unless resource.nil?
1395
+ command.query['fields'] = fields unless fields.nil?
1396
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1397
+ execute_or_queue_command(command, &block)
1398
+ end
1399
+
1400
+ # Lists `Constraints` that could be applied on the specified resource.
1401
+ # @param [String] resource
1402
+ # Name of the resource to list `Constraints` for.
1403
+ # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
1404
+ # @param [String] fields
1405
+ # Selector specifying which fields to include in a partial response.
1406
+ # @param [String] quota_user
1407
+ # Available to use for quota purposes for server-side applications. Can be any
1408
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1409
+ # @param [Google::Apis::RequestOptions] options
1410
+ # Request-specific options
1411
+ #
1412
+ # @yield [result, err] Result & error if block supplied
1413
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
1414
+ # @yieldparam err [StandardError] error object if request failed
1415
+ #
1416
+ # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
1417
+ #
1418
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1419
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1420
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1421
+ def list_organization_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1422
+ command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
1423
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
1424
+ command.request_object = list_available_org_policy_constraints_request_object
1425
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
1426
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
1427
+ command.params['resource'] = resource unless resource.nil?
463
1428
  command.query['fields'] = fields unless fields.nil?
464
1429
  command.query['quotaUser'] = quota_user unless quota_user.nil?
465
1430
  execute_or_queue_command(command, &block)
@@ -501,11 +1466,14 @@ module Google
501
1466
  execute_or_queue_command(command, &block)
502
1467
  end
503
1468
 
504
- # Searches Organization resources that are visible to the user and satisfy
505
- # the specified filter. This method returns Organizations in an unspecified
506
- # order. New Organizations do not necessarily appear at the end of the
507
- # results.
508
- # @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
1469
+ # Gets a `Policy` on a resource.
1470
+ # If no `Policy` is set on the resource, a `Policy` is returned with default
1471
+ # values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
1472
+ # `etag` value can be used with `SetOrgPolicy()` to create or update a
1473
+ # `Policy` during read-modify-write.
1474
+ # @param [String] resource
1475
+ # Name of the resource the `Policy` is set on.
1476
+ # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
509
1477
  # @param [String] fields
510
1478
  # Selector specifying which fields to include in a partial response.
511
1479
  # @param [String] quota_user
@@ -515,28 +1483,32 @@ module Google
515
1483
  # Request-specific options
516
1484
  #
517
1485
  # @yield [result, err] Result & error if block supplied
518
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
1486
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
519
1487
  # @yieldparam err [StandardError] error object if request failed
520
1488
  #
521
- # @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
1489
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
522
1490
  #
523
1491
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
524
1492
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
525
1493
  # @raise [Google::Apis::AuthorizationError] Authorization is required
526
- def search_organizations(search_organizations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
527
- command = make_simple_command(:post, 'v1/organizations:search', options)
528
- command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
529
- command.request_object = search_organizations_request_object
530
- command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
531
- command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
1494
+ def get_organization_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1495
+ command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
1496
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
1497
+ command.request_object = get_org_policy_request_object
1498
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
1499
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
1500
+ command.params['resource'] = resource unless resource.nil?
532
1501
  command.query['fields'] = fields unless fields.nil?
533
1502
  command.query['quotaUser'] = quota_user unless quota_user.nil?
534
1503
  execute_or_queue_command(command, &block)
535
1504
  end
536
1505
 
537
- # Fetches an Organization resource identified by the specified resource name.
538
- # @param [String] name
539
- # The resource name of the Organization to fetch, e.g. "organizations/1234".
1506
+ # Gets the effective `Policy` on a resource. This is the result of merging
1507
+ # `Policies` in the resource hierarchy. The returned `Policy` will not have
1508
+ # an `etag`set because it is a computed `Policy` across multiple resources.
1509
+ # @param [String] resource
1510
+ # The name of the resource to start computing the effective `Policy`.
1511
+ # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
540
1512
  # @param [String] fields
541
1513
  # Selector specifying which fields to include in a partial response.
542
1514
  # @param [String] quota_user
@@ -546,31 +1518,34 @@ module Google
546
1518
  # Request-specific options
547
1519
  #
548
1520
  # @yield [result, err] Result & error if block supplied
549
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Organization] parsed result object
1521
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
550
1522
  # @yieldparam err [StandardError] error object if request failed
551
1523
  #
552
- # @return [Google::Apis::CloudresourcemanagerV1::Organization]
1524
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
553
1525
  #
554
1526
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
555
1527
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
556
1528
  # @raise [Google::Apis::AuthorizationError] Authorization is required
557
- def get_organization(name, fields: nil, quota_user: nil, options: nil, &block)
558
- command = make_simple_command(:get, 'v1/{+name}', options)
559
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation
560
- command.response_class = Google::Apis::CloudresourcemanagerV1::Organization
561
- command.params['name'] = name unless name.nil?
1529
+ def get_organization_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1530
+ command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
1531
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
1532
+ command.request_object = get_effective_org_policy_request_object
1533
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
1534
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
1535
+ command.params['resource'] = resource unless resource.nil?
562
1536
  command.query['fields'] = fields unless fields.nil?
563
1537
  command.query['quotaUser'] = quota_user unless quota_user.nil?
564
1538
  execute_or_queue_command(command, &block)
565
1539
  end
566
1540
 
567
- # Sets the access control policy on an Organization resource. Replaces any
568
- # existing policy. The `resource` field should be the organization's resource
569
- # name, e.g. "organizations/123".
1541
+ # Gets a `Policy` on a resource.
1542
+ # If no `Policy` is set on the resource, a `Policy` is returned with default
1543
+ # values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
1544
+ # `etag` value can be used with `SetOrgPolicy()` to create or update a
1545
+ # `Policy` during read-modify-write.
570
1546
  # @param [String] resource
571
- # REQUIRED: The resource for which the policy is being specified.
572
- # See the operation documentation for the appropriate value for this field.
573
- # @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
1547
+ # Name of the resource the `Policy` is set on.
1548
+ # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
574
1549
  # @param [String] fields
575
1550
  # Selector specifying which fields to include in a partial response.
576
1551
  # @param [String] quota_user
@@ -580,33 +1555,33 @@ module Google
580
1555
  # Request-specific options
581
1556
  #
582
1557
  # @yield [result, err] Result & error if block supplied
583
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
1558
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
584
1559
  # @yieldparam err [StandardError] error object if request failed
585
1560
  #
586
- # @return [Google::Apis::CloudresourcemanagerV1::Policy]
1561
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
587
1562
  #
588
1563
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
589
1564
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
590
1565
  # @raise [Google::Apis::AuthorizationError] Authorization is required
591
- def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
592
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
593
- command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
594
- command.request_object = set_iam_policy_request_object
595
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
596
- command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
1566
+ def get_organization_org_policy_v1(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1567
+ command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicyV1', options)
1568
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
1569
+ command.request_object = get_org_policy_request_object
1570
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
1571
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
597
1572
  command.params['resource'] = resource unless resource.nil?
598
1573
  command.query['fields'] = fields unless fields.nil?
599
1574
  command.query['quotaUser'] = quota_user unless quota_user.nil?
600
1575
  execute_or_queue_command(command, &block)
601
1576
  end
602
1577
 
603
- # Returns permissions that a caller has on the specified Organization.
604
- # The `resource` field should be the organization's resource name,
605
- # e.g. "organizations/123".
1578
+ # Updates the specified `Policy` on the resource. Creates a new `Policy` for
1579
+ # that `Constraint` on the resource if one does not exist.
1580
+ # Not supplying an `etag` on the request `Policy` results in an unconditional
1581
+ # write of the `Policy`.
606
1582
  # @param [String] resource
607
- # REQUIRED: The resource for which the policy detail is being requested.
608
- # See the operation documentation for the appropriate value for this field.
609
- # @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1583
+ # Resource name of the resource to attach the `Policy`.
1584
+ # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
610
1585
  # @param [String] fields
611
1586
  # Selector specifying which fields to include in a partial response.
612
1587
  # @param [String] quota_user
@@ -616,20 +1591,89 @@ module Google
616
1591
  # Request-specific options
617
1592
  #
618
1593
  # @yield [result, err] Result & error if block supplied
619
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
1594
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
620
1595
  # @yieldparam err [StandardError] error object if request failed
621
1596
  #
622
- # @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
1597
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
623
1598
  #
624
1599
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
625
1600
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
626
1601
  # @raise [Google::Apis::AuthorizationError] Authorization is required
627
- def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
628
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
629
- command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
630
- command.request_object = test_iam_permissions_request_object
631
- command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
632
- command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
1602
+ def set_organization_org_policy_v1(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1603
+ command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicyV1', options)
1604
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
1605
+ command.request_object = set_org_policy_request_object
1606
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
1607
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
1608
+ command.params['resource'] = resource unless resource.nil?
1609
+ command.query['fields'] = fields unless fields.nil?
1610
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1611
+ execute_or_queue_command(command, &block)
1612
+ end
1613
+
1614
+ # Updates the specified `Policy` on the resource. Creates a new `Policy` for
1615
+ # that `Constraint` on the resource if one does not exist.
1616
+ # Not supplying an `etag` on the request `Policy` results in an unconditional
1617
+ # write of the `Policy`.
1618
+ # @param [String] resource
1619
+ # Resource name of the resource to attach the `Policy`.
1620
+ # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
1621
+ # @param [String] fields
1622
+ # Selector specifying which fields to include in a partial response.
1623
+ # @param [String] quota_user
1624
+ # Available to use for quota purposes for server-side applications. Can be any
1625
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1626
+ # @param [Google::Apis::RequestOptions] options
1627
+ # Request-specific options
1628
+ #
1629
+ # @yield [result, err] Result & error if block supplied
1630
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
1631
+ # @yieldparam err [StandardError] error object if request failed
1632
+ #
1633
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
1634
+ #
1635
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1636
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1637
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1638
+ def set_organization_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1639
+ command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
1640
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
1641
+ command.request_object = set_org_policy_request_object
1642
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
1643
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
1644
+ command.params['resource'] = resource unless resource.nil?
1645
+ command.query['fields'] = fields unless fields.nil?
1646
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1647
+ execute_or_queue_command(command, &block)
1648
+ end
1649
+
1650
+ # Clears a `Policy` from a resource.
1651
+ # @param [String] resource
1652
+ # Name of the resource for the `Policy` to clear.
1653
+ # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
1654
+ # @param [String] fields
1655
+ # Selector specifying which fields to include in a partial response.
1656
+ # @param [String] quota_user
1657
+ # Available to use for quota purposes for server-side applications. Can be any
1658
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1659
+ # @param [Google::Apis::RequestOptions] options
1660
+ # Request-specific options
1661
+ #
1662
+ # @yield [result, err] Result & error if block supplied
1663
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
1664
+ # @yieldparam err [StandardError] error object if request failed
1665
+ #
1666
+ # @return [Google::Apis::CloudresourcemanagerV1::Empty]
1667
+ #
1668
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1669
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1670
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1671
+ def clear_organization_org_policy_v1(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1672
+ command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicyV1', options)
1673
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
1674
+ command.request_object = clear_org_policy_request_object
1675
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
1676
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
633
1677
  command.params['resource'] = resource unless resource.nil?
634
1678
  command.query['fields'] = fields unless fields.nil?
635
1679
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -707,13 +1751,13 @@ module Google
707
1751
  # Callers of this method will require permission on the `parent` resource.
708
1752
  # For example, a Lien with a `parent` of `projects/1234` requires permission
709
1753
  # `resourcemanager.projects.get`.
1754
+ # @param [String] parent
1755
+ # The name of the resource to list all attached Liens.
1756
+ # For example, `projects/1234`.
710
1757
  # @param [String] page_token
711
1758
  # The `next_page_token` value returned from a previous List request, if any.
712
1759
  # @param [Fixnum] page_size
713
1760
  # The maximum number of items to return. This is a suggestion for the server.
714
- # @param [String] parent
715
- # The name of the resource to list all attached Liens.
716
- # For example, `projects/1234`.
717
1761
  # @param [String] fields
718
1762
  # Selector specifying which fields to include in a partial response.
719
1763
  # @param [String] quota_user
@@ -731,13 +1775,13 @@ module Google
731
1775
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
732
1776
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
733
1777
  # @raise [Google::Apis::AuthorizationError] Authorization is required
734
- def list_liens(page_token: nil, page_size: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1778
+ def list_liens(parent: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
735
1779
  command = make_simple_command(:get, 'v1/liens', options)
736
1780
  command.response_representation = Google::Apis::CloudresourcemanagerV1::ListLiensResponse::Representation
737
1781
  command.response_class = Google::Apis::CloudresourcemanagerV1::ListLiensResponse
1782
+ command.query['parent'] = parent unless parent.nil?
738
1783
  command.query['pageToken'] = page_token unless page_token.nil?
739
1784
  command.query['pageSize'] = page_size unless page_size.nil?
740
- command.query['parent'] = parent unless parent.nil?
741
1785
  command.query['fields'] = fields unless fields.nil?
742
1786
  command.query['quotaUser'] = quota_user unless quota_user.nil?
743
1787
  execute_or_queue_command(command, &block)