google-api-client 0.11.2 → 0.11.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +6 -0
  4. data/api_names.yaml +1 -0
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +38 -38
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +13 -13
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +201 -201
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +46 -46
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +119 -119
  12. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +52 -9
  14. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +9 -0
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +926 -926
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +149 -149
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +18 -11
  21. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +1 -1
  24. data/generated/google/apis/appengine_v1/classes.rb +1487 -1487
  25. data/generated/google/apis/appengine_v1/representations.rb +229 -229
  26. data/generated/google/apis/appengine_v1/service.rb +188 -188
  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 +15 -10
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/service.rb +10 -4
  32. data/generated/google/apis/classroom_v1.rb +26 -17
  33. data/generated/google/apis/classroom_v1/classes.rb +990 -990
  34. data/generated/google/apis/classroom_v1/representations.rb +239 -239
  35. data/generated/google/apis/classroom_v1/service.rb +853 -853
  36. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +627 -627
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +116 -116
  40. data/generated/google/apis/cloudbuild_v1/service.rb +162 -157
  41. data/generated/google/apis/clouddebugger_v2/classes.rb +258 -258
  42. data/generated/google/apis/clouddebugger_v2/representations.rb +80 -80
  43. data/generated/google/apis/clouddebugger_v2/service.rb +163 -163
  44. data/generated/google/apis/clouderrorreporting_v1beta1.rb +3 -4
  45. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +202 -167
  46. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +53 -37
  47. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +50 -51
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudkms_v1.rb +1 -1
  50. data/generated/google/apis/cloudkms_v1/classes.rb +628 -622
  51. data/generated/google/apis/cloudkms_v1/representations.rb +134 -133
  52. data/generated/google/apis/cloudkms_v1/service.rb +190 -190
  53. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +835 -835
  55. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +138 -138
  56. data/generated/google/apis/cloudresourcemanager_v1/service.rb +474 -474
  57. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +386 -386
  59. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +75 -75
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +64 -64
  61. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  62. data/generated/google/apis/cloudtrace_v1/classes.rb +114 -114
  63. data/generated/google/apis/cloudtrace_v1/representations.rb +23 -23
  64. data/generated/google/apis/cloudtrace_v1/service.rb +14 -14
  65. data/generated/google/apis/compute_beta.rb +1 -1
  66. data/generated/google/apis/compute_beta/classes.rb +66 -25
  67. data/generated/google/apis/compute_beta/representations.rb +16 -0
  68. data/generated/google/apis/compute_beta/service.rb +85 -3
  69. data/generated/google/apis/compute_v1.rb +1 -1
  70. data/generated/google/apis/compute_v1/classes.rb +375 -24
  71. data/generated/google/apis/compute_v1/representations.rb +155 -0
  72. data/generated/google/apis/compute_v1/service.rb +481 -3
  73. data/generated/google/apis/container_v1.rb +1 -1
  74. data/generated/google/apis/container_v1/classes.rb +301 -301
  75. data/generated/google/apis/container_v1/representations.rb +59 -59
  76. data/generated/google/apis/container_v1/service.rb +178 -178
  77. data/generated/google/apis/content_v2.rb +1 -1
  78. data/generated/google/apis/content_v2/classes.rb +37 -2
  79. data/generated/google/apis/content_v2/representations.rb +15 -0
  80. data/generated/google/apis/content_v2/service.rb +58 -3
  81. data/generated/google/apis/dataflow_v1b3.rb +4 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3514 -3279
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +530 -440
  84. data/generated/google/apis/dataflow_v1b3/service.rb +378 -137
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +446 -446
  87. data/generated/google/apis/dataproc_v1/representations.rb +96 -96
  88. data/generated/google/apis/dataproc_v1/service.rb +302 -302
  89. data/generated/google/apis/datastore_v1.rb +1 -1
  90. data/generated/google/apis/datastore_v1/classes.rb +370 -374
  91. data/generated/google/apis/datastore_v1/representations.rb +120 -120
  92. data/generated/google/apis/datastore_v1/service.rb +62 -62
  93. data/generated/google/apis/dns_v1.rb +1 -1
  94. data/generated/google/apis/dns_v2beta1.rb +1 -1
  95. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -0
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2.rb +1 -1
  98. data/generated/google/apis/drive_v2/classes.rb +24 -21
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +24 -22
  101. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  102. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +148 -149
  103. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +42 -42
  104. data/generated/google/apis/firebaserules_v1/classes.rb +71 -71
  105. data/generated/google/apis/firebaserules_v1/representations.rb +22 -22
  106. data/generated/google/apis/firebaserules_v1/service.rb +68 -68
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_management_v1management.rb +1 -1
  109. data/generated/google/apis/games_v1.rb +1 -1
  110. data/generated/google/apis/genomics_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1/classes.rb +2348 -2348
  112. data/generated/google/apis/genomics_v1/representations.rb +430 -430
  113. data/generated/google/apis/genomics_v1/service.rb +1159 -1159
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/service.rb +2 -2
  116. data/generated/google/apis/iam_v1.rb +1 -1
  117. data/generated/google/apis/iam_v1/classes.rb +305 -298
  118. data/generated/google/apis/iam_v1/representations.rb +97 -96
  119. data/generated/google/apis/iam_v1/service.rb +86 -86
  120. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  121. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  122. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  123. data/generated/google/apis/language_v1.rb +4 -4
  124. data/generated/google/apis/language_v1/classes.rb +452 -452
  125. data/generated/google/apis/language_v1/representations.rb +93 -93
  126. data/generated/google/apis/language_v1/service.rb +48 -48
  127. data/generated/google/apis/language_v1beta1.rb +4 -4
  128. data/generated/google/apis/language_v1beta1/classes.rb +84 -84
  129. data/generated/google/apis/language_v1beta1/representations.rb +22 -22
  130. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  131. data/generated/google/apis/logging_v2.rb +1 -1
  132. data/generated/google/apis/logging_v2/classes.rb +884 -873
  133. data/generated/google/apis/logging_v2/representations.rb +167 -166
  134. data/generated/google/apis/logging_v2/service.rb +430 -430
  135. data/generated/google/apis/logging_v2beta1.rb +1 -1
  136. data/generated/google/apis/logging_v2beta1/classes.rb +550 -539
  137. data/generated/google/apis/logging_v2beta1/representations.rb +124 -123
  138. data/generated/google/apis/logging_v2beta1/service.rb +292 -292
  139. data/generated/google/apis/manufacturers_v1/classes.rb +322 -322
  140. data/generated/google/apis/manufacturers_v1/representations.rb +66 -66
  141. data/generated/google/apis/ml_v1.rb +1 -1
  142. data/generated/google/apis/ml_v1/classes.rb +501 -494
  143. data/generated/google/apis/ml_v1/representations.rb +92 -91
  144. data/generated/google/apis/ml_v1/service.rb +190 -190
  145. data/generated/google/apis/monitoring_v3.rb +1 -1
  146. data/generated/google/apis/monitoring_v3/classes.rb +878 -878
  147. data/generated/google/apis/monitoring_v3/representations.rb +176 -176
  148. data/generated/google/apis/monitoring_v3/service.rb +223 -262
  149. data/generated/google/apis/oauth2_v2.rb +1 -1
  150. data/generated/google/apis/partners_v2.rb +1 -1
  151. data/generated/google/apis/partners_v2/classes.rb +1506 -1506
  152. data/generated/google/apis/partners_v2/representations.rb +370 -370
  153. data/generated/google/apis/partners_v2/service.rb +393 -393
  154. data/generated/google/apis/people_v1.rb +13 -13
  155. data/generated/google/apis/people_v1/classes.rb +597 -594
  156. data/generated/google/apis/people_v1/representations.rb +121 -121
  157. data/generated/google/apis/people_v1/service.rb +39 -48
  158. data/generated/google/apis/plus_domains_v1.rb +1 -1
  159. data/generated/google/apis/plus_v1.rb +1 -1
  160. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  161. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +323 -327
  162. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +100 -100
  163. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +184 -184
  164. data/generated/google/apis/pubsub_v1.rb +1 -1
  165. data/generated/google/apis/pubsub_v1/classes.rb +178 -178
  166. data/generated/google/apis/pubsub_v1/representations.rb +55 -55
  167. data/generated/google/apis/pubsub_v1/service.rb +357 -357
  168. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  169. data/generated/google/apis/runtimeconfig_v1/classes.rb +20 -20
  170. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  171. data/generated/google/apis/runtimeconfig_v1/service.rb +12 -7
  172. data/generated/google/apis/script_v1.rb +16 -16
  173. data/generated/google/apis/script_v1/classes.rb +113 -113
  174. data/generated/google/apis/script_v1/representations.rb +28 -28
  175. data/generated/google/apis/script_v1/service.rb +4 -4
  176. data/generated/google/apis/searchconsole_v1.rb +1 -1
  177. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  178. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  179. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  180. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  181. data/generated/google/apis/servicecontrol_v1/classes.rb +1146 -1145
  182. data/generated/google/apis/servicecontrol_v1/representations.rb +203 -203
  183. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  184. data/generated/google/apis/servicemanagement_v1.rb +4 -4
  185. data/generated/google/apis/servicemanagement_v1/classes.rb +3486 -3360
  186. data/generated/google/apis/servicemanagement_v1/representations.rb +342 -329
  187. data/generated/google/apis/servicemanagement_v1/service.rb +260 -250
  188. data/generated/google/apis/serviceuser_v1.rb +1 -1
  189. data/generated/google/apis/serviceuser_v1/classes.rb +2716 -2596
  190. data/generated/google/apis/serviceuser_v1/representations.rb +391 -379
  191. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +4255 -4252
  194. data/generated/google/apis/sheets_v4/representations.rb +548 -548
  195. data/generated/google/apis/sheets_v4/service.rb +170 -170
  196. data/generated/google/apis/slides_v1.rb +4 -4
  197. data/generated/google/apis/slides_v1/classes.rb +2945 -2916
  198. data/generated/google/apis/slides_v1/representations.rb +700 -697
  199. data/generated/google/apis/slides_v1/service.rb +44 -44
  200. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  201. data/generated/google/apis/sourcerepo_v1/classes.rb +419 -410
  202. data/generated/google/apis/sourcerepo_v1/representations.rb +88 -87
  203. data/generated/google/apis/sourcerepo_v1/service.rb +67 -58
  204. data/generated/google/apis/spanner_v1/classes.rb +2187 -2187
  205. data/generated/google/apis/spanner_v1/representations.rb +323 -323
  206. data/generated/google/apis/spanner_v1/service.rb +383 -383
  207. data/generated/google/apis/speech_v1beta1.rb +1 -1
  208. data/generated/google/apis/speech_v1beta1/classes.rb +226 -226
  209. data/generated/google/apis/speech_v1beta1/representations.rb +44 -44
  210. data/generated/google/apis/speech_v1beta1/service.rb +37 -32
  211. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  212. data/generated/google/apis/sqladmin_v1beta4/classes.rb +10 -28
  213. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -16
  214. data/generated/google/apis/sqladmin_v1beta4/service.rb +1 -1
  215. data/generated/google/apis/storage_v1.rb +1 -1
  216. data/generated/google/apis/storage_v1/classes.rb +26 -0
  217. data/generated/google/apis/storage_v1/representations.rb +15 -0
  218. data/generated/google/apis/storage_v1/service.rb +168 -42
  219. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1/classes.rb +218 -218
  221. data/generated/google/apis/storagetransfer_v1/representations.rb +47 -47
  222. data/generated/google/apis/storagetransfer_v1/service.rb +68 -68
  223. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  224. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -4
  225. data/generated/google/apis/toolresults_v1beta3/service.rb +9 -8
  226. data/generated/google/apis/translate_v2.rb +11 -4
  227. data/generated/google/apis/translate_v2/classes.rb +140 -37
  228. data/generated/google/apis/translate_v2/representations.rb +62 -15
  229. data/generated/google/apis/translate_v2/service.rb +119 -66
  230. data/generated/google/apis/vision_v1.rb +1 -1
  231. data/generated/google/apis/vision_v1/classes.rb +1265 -1273
  232. data/generated/google/apis/vision_v1/representations.rb +202 -202
  233. data/generated/google/apis/vision_v1/service.rb +4 -4
  234. data/generated/google/apis/webmasters_v3.rb +1 -1
  235. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  236. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  237. data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
  238. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  239. data/generated/google/apis/youtubereporting_v1/classes.rb +91 -91
  240. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  241. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  242. data/lib/google/apis/core/api_command.rb +43 -10
  243. data/lib/google/apis/core/json_representation.rb +1 -1
  244. data/lib/google/apis/options.rb +6 -2
  245. data/lib/google/apis/version.rb +1 -1
  246. metadata +3 -3
@@ -22,7 +22,55 @@ module Google
22
22
  module Apis
23
23
  module CloudresourcemanagerV1
24
24
 
25
- class Constraint
25
+ class TestIamPermissionsRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ListAvailableOrgPolicyConstraintsRequest
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class FolderOperation
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Policy
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class ResourceId
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GetEffectiveOrgPolicyRequest
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ListOrgPoliciesRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Operation
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class AuditConfig
26
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
75
 
28
76
  include Google::Apis::Core::JsonObjectSupport
@@ -40,6 +88,12 @@ module Google
40
88
  include Google::Apis::Core::JsonObjectSupport
41
89
  end
42
90
 
91
+ class Constraint
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
43
97
  class Binding
44
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
99
 
@@ -58,13 +112,13 @@ module Google
58
112
  include Google::Apis::Core::JsonObjectSupport
59
113
  end
60
114
 
61
- class UndeleteProjectRequest
115
+ class ClearOrgPolicyRequest
62
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
117
 
64
118
  include Google::Apis::Core::JsonObjectSupport
65
119
  end
66
120
 
67
- class ClearOrgPolicyRequest
121
+ class UndeleteProjectRequest
68
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
123
 
70
124
  include Google::Apis::Core::JsonObjectSupport
@@ -221,70 +275,82 @@ module Google
221
275
  end
222
276
 
223
277
  class TestIamPermissionsRequest
224
- class Representation < Google::Apis::Core::JsonRepresentation; end
225
-
226
- include Google::Apis::Core::JsonObjectSupport
278
+ # @private
279
+ class Representation < Google::Apis::Core::JsonRepresentation
280
+ collection :permissions, as: 'permissions'
281
+ end
227
282
  end
228
283
 
229
284
  class ListAvailableOrgPolicyConstraintsRequest
230
- class Representation < Google::Apis::Core::JsonRepresentation; end
285
+ # @private
286
+ class Representation < Google::Apis::Core::JsonRepresentation
287
+ property :page_token, as: 'pageToken'
288
+ property :page_size, as: 'pageSize'
289
+ end
290
+ end
231
291
 
232
- include Google::Apis::Core::JsonObjectSupport
292
+ class FolderOperation
293
+ # @private
294
+ class Representation < Google::Apis::Core::JsonRepresentation
295
+ property :destination_parent, as: 'destinationParent'
296
+ property :operation_type, as: 'operationType'
297
+ property :display_name, as: 'displayName'
298
+ property :source_parent, as: 'sourceParent'
299
+ end
233
300
  end
234
301
 
235
302
  class Policy
236
- class Representation < Google::Apis::Core::JsonRepresentation; end
237
-
238
- include Google::Apis::Core::JsonObjectSupport
239
- end
303
+ # @private
304
+ class Representation < Google::Apis::Core::JsonRepresentation
305
+ property :etag, :base64 => true, as: 'etag'
306
+ property :version, as: 'version'
307
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditConfig::Representation
240
308
 
241
- class FolderOperation
242
- class Representation < Google::Apis::Core::JsonRepresentation; end
309
+ collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1::Binding, decorator: Google::Apis::CloudresourcemanagerV1::Binding::Representation
243
310
 
244
- include Google::Apis::Core::JsonObjectSupport
311
+ end
245
312
  end
246
313
 
247
314
  class ResourceId
248
- class Representation < Google::Apis::Core::JsonRepresentation; end
249
-
250
- include Google::Apis::Core::JsonObjectSupport
315
+ # @private
316
+ class Representation < Google::Apis::Core::JsonRepresentation
317
+ property :type, as: 'type'
318
+ property :id, as: 'id'
319
+ end
251
320
  end
252
321
 
253
322
  class GetEffectiveOrgPolicyRequest
254
- class Representation < Google::Apis::Core::JsonRepresentation; end
255
-
256
- include Google::Apis::Core::JsonObjectSupport
323
+ # @private
324
+ class Representation < Google::Apis::Core::JsonRepresentation
325
+ property :constraint, as: 'constraint'
326
+ end
257
327
  end
258
328
 
259
329
  class ListOrgPoliciesRequest
260
- class Representation < Google::Apis::Core::JsonRepresentation; end
261
-
262
- include Google::Apis::Core::JsonObjectSupport
330
+ # @private
331
+ class Representation < Google::Apis::Core::JsonRepresentation
332
+ property :page_token, as: 'pageToken'
333
+ property :page_size, as: 'pageSize'
334
+ end
263
335
  end
264
336
 
265
337
  class Operation
266
- class Representation < Google::Apis::Core::JsonRepresentation; end
338
+ # @private
339
+ class Representation < Google::Apis::Core::JsonRepresentation
340
+ hash :response, as: 'response'
341
+ property :name, as: 'name'
342
+ property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
267
343
 
268
- include Google::Apis::Core::JsonObjectSupport
344
+ hash :metadata, as: 'metadata'
345
+ property :done, as: 'done'
346
+ end
269
347
  end
270
348
 
271
349
  class AuditConfig
272
- class Representation < Google::Apis::Core::JsonRepresentation; end
273
-
274
- include Google::Apis::Core::JsonObjectSupport
275
- end
276
-
277
- class Constraint
278
350
  # @private
279
351
  class Representation < Google::Apis::Core::JsonRepresentation
280
- property :description, as: 'description'
281
- property :display_name, as: 'displayName'
282
- property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1::BooleanConstraint::Representation
283
-
284
- property :constraint_default, as: 'constraintDefault'
285
- property :name, as: 'name'
286
- property :version, as: 'version'
287
- property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1::ListConstraint::Representation
352
+ property :service, as: 'service'
353
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditLogConfig::Representation
288
354
 
289
355
  end
290
356
  end
@@ -292,18 +358,33 @@ module Google
292
358
  class Status
293
359
  # @private
294
360
  class Representation < Google::Apis::Core::JsonRepresentation
295
- collection :details, as: 'details'
296
361
  property :code, as: 'code'
297
362
  property :message, as: 'message'
363
+ collection :details, as: 'details'
298
364
  end
299
365
  end
300
366
 
301
367
  class ListLiensResponse
302
368
  # @private
303
369
  class Representation < Google::Apis::Core::JsonRepresentation
304
- property :next_page_token, as: 'nextPageToken'
305
370
  collection :liens, as: 'liens', class: Google::Apis::CloudresourcemanagerV1::Lien, decorator: Google::Apis::CloudresourcemanagerV1::Lien::Representation
306
371
 
372
+ property :next_page_token, as: 'nextPageToken'
373
+ end
374
+ end
375
+
376
+ class Constraint
377
+ # @private
378
+ class Representation < Google::Apis::Core::JsonRepresentation
379
+ property :list_constraint, as: 'listConstraint', class: Google::Apis::CloudresourcemanagerV1::ListConstraint, decorator: Google::Apis::CloudresourcemanagerV1::ListConstraint::Representation
380
+
381
+ property :version, as: 'version'
382
+ property :display_name, as: 'displayName'
383
+ property :description, as: 'description'
384
+ property :boolean_constraint, as: 'booleanConstraint', class: Google::Apis::CloudresourcemanagerV1::BooleanConstraint, decorator: Google::Apis::CloudresourcemanagerV1::BooleanConstraint::Representation
385
+
386
+ property :constraint_default, as: 'constraintDefault'
387
+ property :name, as: 'name'
307
388
  end
308
389
  end
309
390
 
@@ -328,17 +409,17 @@ module Google
328
409
  end
329
410
  end
330
411
 
331
- class UndeleteProjectRequest
412
+ class ClearOrgPolicyRequest
332
413
  # @private
333
414
  class Representation < Google::Apis::Core::JsonRepresentation
415
+ property :etag, :base64 => true, as: 'etag'
416
+ property :constraint, as: 'constraint'
334
417
  end
335
418
  end
336
419
 
337
- class ClearOrgPolicyRequest
420
+ class UndeleteProjectRequest
338
421
  # @private
339
422
  class Representation < Google::Apis::Core::JsonRepresentation
340
- property :etag, :base64 => true, as: 'etag'
341
- property :constraint, as: 'constraint'
342
423
  end
343
424
  end
344
425
 
@@ -380,23 +461,23 @@ module Google
380
461
  class ListProjectsResponse
381
462
  # @private
382
463
  class Representation < Google::Apis::Core::JsonRepresentation
383
- property :next_page_token, as: 'nextPageToken'
384
464
  collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1::Project, decorator: Google::Apis::CloudresourcemanagerV1::Project::Representation
385
465
 
466
+ property :next_page_token, as: 'nextPageToken'
386
467
  end
387
468
  end
388
469
 
389
470
  class Project
390
471
  # @private
391
472
  class Representation < Google::Apis::Core::JsonRepresentation
392
- property :lifecycle_state, as: 'lifecycleState'
393
473
  property :project_number, :numeric_string => true, as: 'projectNumber'
394
474
  property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
395
475
 
396
- hash :labels, as: 'labels'
397
476
  property :create_time, as: 'createTime'
477
+ hash :labels, as: 'labels'
398
478
  property :name, as: 'name'
399
479
  property :project_id, as: 'projectId'
480
+ property :lifecycle_state, as: 'lifecycleState'
400
481
  end
401
482
  end
402
483
 
@@ -428,16 +509,16 @@ module Google
428
509
  class OrgPolicy
429
510
  # @private
430
511
  class Representation < Google::Apis::Core::JsonRepresentation
512
+ property :update_time, as: 'updateTime'
431
513
  property :version, as: 'version'
432
514
  property :restore_default, as: 'restoreDefault', class: Google::Apis::CloudresourcemanagerV1::RestoreDefault, decorator: Google::Apis::CloudresourcemanagerV1::RestoreDefault::Representation
433
515
 
434
516
  property :list_policy, as: 'listPolicy', class: Google::Apis::CloudresourcemanagerV1::ListPolicy, decorator: Google::Apis::CloudresourcemanagerV1::ListPolicy::Representation
435
517
 
436
518
  property :etag, :base64 => true, as: 'etag'
437
- property :constraint, as: 'constraint'
438
519
  property :boolean_policy, as: 'booleanPolicy', class: Google::Apis::CloudresourcemanagerV1::BooleanPolicy, decorator: Google::Apis::CloudresourcemanagerV1::BooleanPolicy::Representation
439
520
 
440
- property :update_time, as: 'updateTime'
521
+ property :constraint, as: 'constraint'
441
522
  end
442
523
  end
443
524
 
@@ -451,12 +532,12 @@ module Google
451
532
  class Lien
452
533
  # @private
453
534
  class Representation < Google::Apis::Core::JsonRepresentation
454
- property :parent, as: 'parent'
455
- property :create_time, as: 'createTime'
456
535
  property :name, as: 'name'
457
536
  property :reason, as: 'reason'
458
537
  property :origin, as: 'origin'
459
538
  collection :restrictions, as: 'restrictions'
539
+ property :parent, as: 'parent'
540
+ property :create_time, as: 'createTime'
460
541
  end
461
542
  end
462
543
 
@@ -486,9 +567,9 @@ module Google
486
567
  class SetIamPolicyRequest
487
568
  # @private
488
569
  class Representation < Google::Apis::Core::JsonRepresentation
489
- property :update_mask, as: 'updateMask'
490
570
  property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation
491
571
 
572
+ property :update_mask, as: 'updateMask'
492
573
  end
493
574
  end
494
575
 
@@ -501,21 +582,21 @@ module Google
501
582
  class Organization
502
583
  # @private
503
584
  class Representation < Google::Apis::Core::JsonRepresentation
504
- property :creation_time, as: 'creationTime'
505
585
  property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1::OrganizationOwner::Representation
506
586
 
507
587
  property :lifecycle_state, as: 'lifecycleState'
508
588
  property :name, as: 'name'
509
589
  property :display_name, as: 'displayName'
590
+ property :creation_time, as: 'creationTime'
510
591
  end
511
592
  end
512
593
 
513
594
  class ListAvailableOrgPolicyConstraintsResponse
514
595
  # @private
515
596
  class Representation < Google::Apis::Core::JsonRepresentation
516
- property :next_page_token, as: 'nextPageToken'
517
597
  collection :constraints, as: 'constraints', class: Google::Apis::CloudresourcemanagerV1::Constraint, decorator: Google::Apis::CloudresourcemanagerV1::Constraint::Representation
518
598
 
599
+ property :next_page_token, as: 'nextPageToken'
519
600
  end
520
601
  end
521
602
 
@@ -541,8 +622,8 @@ module Google
541
622
  class AuditLogConfig
542
623
  # @private
543
624
  class Representation < Google::Apis::Core::JsonRepresentation
544
- collection :exempted_members, as: 'exemptedMembers'
545
625
  property :log_type, as: 'logType'
626
+ collection :exempted_members, as: 'exemptedMembers'
546
627
  end
547
628
  end
548
629
 
@@ -560,87 +641,6 @@ module Google
560
641
  class Representation < Google::Apis::Core::JsonRepresentation
561
642
  end
562
643
  end
563
-
564
- class TestIamPermissionsRequest
565
- # @private
566
- class Representation < Google::Apis::Core::JsonRepresentation
567
- collection :permissions, as: 'permissions'
568
- end
569
- end
570
-
571
- class ListAvailableOrgPolicyConstraintsRequest
572
- # @private
573
- class Representation < Google::Apis::Core::JsonRepresentation
574
- property :page_token, as: 'pageToken'
575
- property :page_size, as: 'pageSize'
576
- end
577
- end
578
-
579
- class Policy
580
- # @private
581
- class Representation < Google::Apis::Core::JsonRepresentation
582
- property :etag, :base64 => true, as: 'etag'
583
- property :version, as: 'version'
584
- collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditConfig::Representation
585
-
586
- collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1::Binding, decorator: Google::Apis::CloudresourcemanagerV1::Binding::Representation
587
-
588
- end
589
- end
590
-
591
- class FolderOperation
592
- # @private
593
- class Representation < Google::Apis::Core::JsonRepresentation
594
- property :operation_type, as: 'operationType'
595
- property :display_name, as: 'displayName'
596
- property :source_parent, as: 'sourceParent'
597
- property :destination_parent, as: 'destinationParent'
598
- end
599
- end
600
-
601
- class ResourceId
602
- # @private
603
- class Representation < Google::Apis::Core::JsonRepresentation
604
- property :type, as: 'type'
605
- property :id, as: 'id'
606
- end
607
- end
608
-
609
- class GetEffectiveOrgPolicyRequest
610
- # @private
611
- class Representation < Google::Apis::Core::JsonRepresentation
612
- property :constraint, as: 'constraint'
613
- end
614
- end
615
-
616
- class ListOrgPoliciesRequest
617
- # @private
618
- class Representation < Google::Apis::Core::JsonRepresentation
619
- property :page_token, as: 'pageToken'
620
- property :page_size, as: 'pageSize'
621
- end
622
- end
623
-
624
- class Operation
625
- # @private
626
- class Representation < Google::Apis::Core::JsonRepresentation
627
- hash :response, as: 'response'
628
- property :name, as: 'name'
629
- property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
630
-
631
- hash :metadata, as: 'metadata'
632
- property :done, as: 'done'
633
- end
634
- end
635
-
636
- class AuditConfig
637
- # @private
638
- class Representation < Google::Apis::Core::JsonRepresentation
639
- property :service, as: 'service'
640
- collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudresourcemanagerV1::AuditLogConfig, decorator: Google::Apis::CloudresourcemanagerV1::AuditLogConfig::Representation
641
-
642
- end
643
- end
644
644
  end
645
645
  end
646
646
  end
@@ -48,10 +48,10 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
- # Clears a `Policy` from a resource.
51
+ # Lists `Constraints` that could be applied on the specified resource.
52
52
  # @param [String] resource
53
- # Name of the resource for the `Policy` to clear.
54
- # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
53
+ # Name of the resource to list `Constraints` for.
54
+ # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
55
55
  # @param [String] fields
56
56
  # Selector specifying which fields to include in a partial response.
57
57
  # @param [String] quota_user
@@ -61,33 +61,30 @@ module Google
61
61
  # Request-specific options
62
62
  #
63
63
  # @yield [result, err] Result & error if block supplied
64
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
64
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
65
65
  # @yieldparam err [StandardError] error object if request failed
66
66
  #
67
- # @return [Google::Apis::CloudresourcemanagerV1::Empty]
67
+ # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
68
68
  #
69
69
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
70
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
71
  # @raise [Google::Apis::AuthorizationError] Authorization is required
72
- def clear_folder_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
- command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
74
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
75
- command.request_object = clear_org_policy_request_object
76
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
77
- command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
72
+ def list_organization_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
74
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
75
+ command.request_object = list_available_org_policy_constraints_request_object
76
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
77
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
78
78
  command.params['resource'] = resource unless resource.nil?
79
79
  command.query['fields'] = fields unless fields.nil?
80
80
  command.query['quotaUser'] = quota_user unless quota_user.nil?
81
81
  execute_or_queue_command(command, &block)
82
82
  end
83
83
 
84
- # Updates the specified `Policy` on the resource. Creates a new `Policy` for
85
- # that `Constraint` on the resource if one does not exist.
86
- # Not supplying an `etag` on the request `Policy` results in an unconditional
87
- # write of the `Policy`.
84
+ # Lists all the `Policies` set for a particular resource.
88
85
  # @param [String] resource
89
- # Resource name of the resource to attach the `Policy`.
90
- # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
86
+ # Name of the resource to list Policies for.
87
+ # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
91
88
  # @param [String] fields
92
89
  # Selector specifying which fields to include in a partial response.
93
90
  # @param [String] quota_user
@@ -97,30 +94,33 @@ module Google
97
94
  # Request-specific options
98
95
  #
99
96
  # @yield [result, err] Result & error if block supplied
100
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
97
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
101
98
  # @yieldparam err [StandardError] error object if request failed
102
99
  #
103
- # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
100
+ # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
104
101
  #
105
102
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
106
103
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
107
104
  # @raise [Google::Apis::AuthorizationError] Authorization is required
108
- def set_folder_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
109
- command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
110
- command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
111
- command.request_object = set_org_policy_request_object
112
- command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
113
- command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
105
+ def list_organization_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
106
+ command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
107
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
108
+ command.request_object = list_org_policies_request_object
109
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
110
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
114
111
  command.params['resource'] = resource unless resource.nil?
115
112
  command.query['fields'] = fields unless fields.nil?
116
113
  command.query['quotaUser'] = quota_user unless quota_user.nil?
117
114
  execute_or_queue_command(command, &block)
118
115
  end
119
116
 
120
- # Lists `Constraints` that could be applied on the specified resource.
117
+ # Gets the access control policy for an Organization resource. May be empty
118
+ # if no such policy or resource exists. The `resource` field should be the
119
+ # organization's resource name, e.g. "organizations/123".
121
120
  # @param [String] resource
122
- # Name of the resource to list `Constraints` for.
123
- # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
121
+ # REQUIRED: The resource for which the policy is being requested.
122
+ # See the operation documentation for the appropriate value for this field.
123
+ # @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
124
124
  # @param [String] fields
125
125
  # Selector specifying which fields to include in a partial response.
126
126
  # @param [String] quota_user
@@ -130,30 +130,31 @@ module Google
130
130
  # Request-specific options
131
131
  #
132
132
  # @yield [result, err] Result & error if block supplied
133
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
133
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
134
134
  # @yieldparam err [StandardError] error object if request failed
135
135
  #
136
- # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
136
+ # @return [Google::Apis::CloudresourcemanagerV1::Policy]
137
137
  #
138
138
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
139
139
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
140
140
  # @raise [Google::Apis::AuthorizationError] Authorization is required
141
- def list_folder_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
142
- command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
143
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
144
- command.request_object = list_available_org_policy_constraints_request_object
145
- command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
146
- command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
141
+ def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
142
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
143
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
144
+ command.request_object = get_iam_policy_request_object
145
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
146
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
147
147
  command.params['resource'] = resource unless resource.nil?
148
148
  command.query['fields'] = fields unless fields.nil?
149
149
  command.query['quotaUser'] = quota_user unless quota_user.nil?
150
150
  execute_or_queue_command(command, &block)
151
151
  end
152
152
 
153
- # Lists all the `Policies` set for a particular resource.
154
- # @param [String] resource
155
- # Name of the resource to list Policies for.
156
- # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
153
+ # Searches Organization resources that are visible to the user and satisfy
154
+ # the specified filter. This method returns Organizations in an unspecified
155
+ # order. New Organizations do not necessarily appear at the end of the
156
+ # results.
157
+ # @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
157
158
  # @param [String] fields
158
159
  # Selector specifying which fields to include in a partial response.
159
160
  # @param [String] quota_user
@@ -163,21 +164,20 @@ module Google
163
164
  # Request-specific options
164
165
  #
165
166
  # @yield [result, err] Result & error if block supplied
166
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
167
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
167
168
  # @yieldparam err [StandardError] error object if request failed
168
169
  #
169
- # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
170
+ # @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
170
171
  #
171
172
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
172
173
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
173
174
  # @raise [Google::Apis::AuthorizationError] Authorization is required
174
- def list_folder_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
175
- command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
176
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
177
- command.request_object = list_org_policies_request_object
178
- command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
179
- command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
180
- command.params['resource'] = resource unless resource.nil?
175
+ def search_organizations(search_organizations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
176
+ command = make_simple_command(:post, 'v1/organizations:search', options)
177
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
178
+ command.request_object = search_organizations_request_object
179
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
180
+ command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
181
181
  command.query['fields'] = fields unless fields.nil?
182
182
  command.query['quotaUser'] = quota_user unless quota_user.nil?
183
183
  execute_or_queue_command(command, &block)
@@ -208,7 +208,7 @@ module Google
208
208
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
209
209
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
210
210
  # @raise [Google::Apis::AuthorizationError] Authorization is required
211
- def get_folder_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
211
+ def get_organization_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
212
212
  command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
213
213
  command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
214
214
  command.request_object = get_org_policy_request_object
@@ -243,7 +243,7 @@ module Google
243
243
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
244
244
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
245
245
  # @raise [Google::Apis::AuthorizationError] Authorization is required
246
- def get_folder_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
246
+ def get_organization_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
247
247
  command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
248
248
  command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
249
249
  command.request_object = get_effective_org_policy_request_object
@@ -255,10 +255,9 @@ module Google
255
255
  execute_or_queue_command(command, &block)
256
256
  end
257
257
 
258
- # Lists `Constraints` that could be applied on the specified resource.
259
- # @param [String] resource
260
- # Name of the resource to list `Constraints` for.
261
- # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
258
+ # Fetches an Organization resource identified by the specified resource name.
259
+ # @param [String] name
260
+ # The resource name of the Organization to fetch, e.g. "organizations/1234".
262
261
  # @param [String] fields
263
262
  # Selector specifying which fields to include in a partial response.
264
263
  # @param [String] quota_user
@@ -268,32 +267,31 @@ module Google
268
267
  # Request-specific options
269
268
  #
270
269
  # @yield [result, err] Result & error if block supplied
271
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
270
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Organization] parsed result object
272
271
  # @yieldparam err [StandardError] error object if request failed
273
272
  #
274
- # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
273
+ # @return [Google::Apis::CloudresourcemanagerV1::Organization]
275
274
  #
276
275
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
277
276
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
278
277
  # @raise [Google::Apis::AuthorizationError] Authorization is required
279
- def list_project_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
280
- command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
281
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
282
- command.request_object = list_available_org_policy_constraints_request_object
283
- command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
284
- command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
285
- command.params['resource'] = resource unless resource.nil?
278
+ def get_organization(name, fields: nil, quota_user: nil, options: nil, &block)
279
+ command = make_simple_command(:get, 'v1/{+name}', options)
280
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation
281
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Organization
282
+ command.params['name'] = name unless name.nil?
286
283
  command.query['fields'] = fields unless fields.nil?
287
284
  command.query['quotaUser'] = quota_user unless quota_user.nil?
288
285
  execute_or_queue_command(command, &block)
289
286
  end
290
287
 
291
- # Returns the IAM access control policy for the specified Project.
292
- # Permission is denied if the policy or the resource does not exist.
288
+ # Returns permissions that a caller has on the specified Organization.
289
+ # The `resource` field should be the organization's resource name,
290
+ # e.g. "organizations/123".
293
291
  # @param [String] resource
294
- # REQUIRED: The resource for which the policy is being requested.
292
+ # REQUIRED: The resource for which the policy detail is being requested.
295
293
  # See the operation documentation for the appropriate value for this field.
296
- # @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
294
+ # @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
297
295
  # @param [String] fields
298
296
  # Selector specifying which fields to include in a partial response.
299
297
  # @param [String] quota_user
@@ -303,34 +301,30 @@ module Google
303
301
  # Request-specific options
304
302
  #
305
303
  # @yield [result, err] Result & error if block supplied
306
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
304
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
307
305
  # @yieldparam err [StandardError] error object if request failed
308
306
  #
309
- # @return [Google::Apis::CloudresourcemanagerV1::Policy]
307
+ # @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
310
308
  #
311
309
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
312
310
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
313
311
  # @raise [Google::Apis::AuthorizationError] Authorization is required
314
- def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
315
- command = make_simple_command(:post, 'v1/projects/{resource}:getIamPolicy', options)
316
- command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
317
- command.request_object = get_iam_policy_request_object
318
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
319
- command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
312
+ def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
313
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
314
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
315
+ command.request_object = test_iam_permissions_request_object
316
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
317
+ command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
320
318
  command.params['resource'] = resource unless resource.nil?
321
319
  command.query['fields'] = fields unless fields.nil?
322
320
  command.query['quotaUser'] = quota_user unless quota_user.nil?
323
321
  execute_or_queue_command(command, &block)
324
322
  end
325
323
 
326
- # Gets a `Policy` on a resource.
327
- # If no `Policy` is set on the resource, a `Policy` is returned with default
328
- # values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
329
- # `etag` value can be used with `SetOrgPolicy()` to create or update a
330
- # `Policy` during read-modify-write.
324
+ # Clears a `Policy` from a resource.
331
325
  # @param [String] resource
332
- # Name of the resource the `Policy` is set on.
333
- # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
326
+ # Name of the resource for the `Policy` to clear.
327
+ # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
334
328
  # @param [String] fields
335
329
  # Selector specifying which fields to include in a partial response.
336
330
  # @param [String] quota_user
@@ -340,32 +334,33 @@ module Google
340
334
  # Request-specific options
341
335
  #
342
336
  # @yield [result, err] Result & error if block supplied
343
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
337
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
344
338
  # @yieldparam err [StandardError] error object if request failed
345
339
  #
346
- # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
340
+ # @return [Google::Apis::CloudresourcemanagerV1::Empty]
347
341
  #
348
342
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
349
343
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
350
344
  # @raise [Google::Apis::AuthorizationError] Authorization is required
351
- def get_project_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
352
- command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
353
- command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
354
- command.request_object = get_org_policy_request_object
355
- command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
356
- command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
345
+ def clear_organization_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
346
+ command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
347
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
348
+ command.request_object = clear_org_policy_request_object
349
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
350
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
357
351
  command.params['resource'] = resource unless resource.nil?
358
352
  command.query['fields'] = fields unless fields.nil?
359
353
  command.query['quotaUser'] = quota_user unless quota_user.nil?
360
354
  execute_or_queue_command(command, &block)
361
355
  end
362
356
 
363
- # Gets the effective `Policy` on a resource. This is the result of merging
364
- # `Policies` in the resource hierarchy. The returned `Policy` will not have
365
- # an `etag`set because it is a computed `Policy` across multiple resources.
357
+ # Updates the specified `Policy` on the resource. Creates a new `Policy` for
358
+ # that `Constraint` on the resource if one does not exist.
359
+ # Not supplying an `etag` on the request `Policy` results in an unconditional
360
+ # write of the `Policy`.
366
361
  # @param [String] resource
367
- # The name of the resource to start computing the effective `Policy`.
368
- # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
362
+ # Resource name of the resource to attach the `Policy`.
363
+ # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
369
364
  # @param [String] fields
370
365
  # Selector specifying which fields to include in a partial response.
371
366
  # @param [String] quota_user
@@ -383,10 +378,10 @@ module Google
383
378
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
384
379
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
385
380
  # @raise [Google::Apis::AuthorizationError] Authorization is required
386
- def get_project_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
387
- command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
388
- command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
389
- command.request_object = get_effective_org_policy_request_object
381
+ def set_organization_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
382
+ command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
383
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
384
+ command.request_object = set_org_policy_request_object
390
385
  command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
391
386
  command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
392
387
  command.params['resource'] = resource unless resource.nil?
@@ -395,16 +390,13 @@ module Google
395
390
  execute_or_queue_command(command, &block)
396
391
  end
397
392
 
398
- # Restores the Project identified by the specified
399
- # `project_id` (for example, `my-project-123`).
400
- # You can only use this method for a Project that has a lifecycle state of
401
- # DELETE_REQUESTED.
402
- # After deletion starts, the Project cannot be restored.
403
- # The caller must have modify permissions for this Project.
404
- # @param [String] project_id
405
- # The project ID (for example, `foo-bar-123`).
406
- # Required.
407
- # @param [Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest] undelete_project_request_object
393
+ # Sets the access control policy on an Organization resource. Replaces any
394
+ # existing policy. The `resource` field should be the organization's resource
395
+ # name, e.g. "organizations/123".
396
+ # @param [String] resource
397
+ # REQUIRED: The resource for which the policy is being specified.
398
+ # See the operation documentation for the appropriate value for this field.
399
+ # @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
408
400
  # @param [String] fields
409
401
  # Selector specifying which fields to include in a partial response.
410
402
  # @param [String] quota_user
@@ -414,33 +406,32 @@ module Google
414
406
  # Request-specific options
415
407
  #
416
408
  # @yield [result, err] Result & error if block supplied
417
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
409
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
418
410
  # @yieldparam err [StandardError] error object if request failed
419
411
  #
420
- # @return [Google::Apis::CloudresourcemanagerV1::Empty]
412
+ # @return [Google::Apis::CloudresourcemanagerV1::Policy]
421
413
  #
422
414
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
423
415
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
424
416
  # @raise [Google::Apis::AuthorizationError] Authorization is required
425
- def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
426
- command = make_simple_command(:post, 'v1/projects/{projectId}:undelete', options)
427
- command.request_representation = Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest::Representation
428
- command.request_object = undelete_project_request_object
429
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
430
- command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
431
- command.params['projectId'] = project_id unless project_id.nil?
417
+ def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
418
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
419
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
420
+ command.request_object = set_iam_policy_request_object
421
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
422
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
423
+ command.params['resource'] = resource unless resource.nil?
432
424
  command.query['fields'] = fields unless fields.nil?
433
425
  command.query['quotaUser'] = quota_user unless quota_user.nil?
434
426
  execute_or_queue_command(command, &block)
435
427
  end
436
428
 
437
- # Updates the attributes of the Project identified by the specified
438
- # `project_id` (for example, `my-project-123`).
439
- # The caller must have modify permissions for this Project.
440
- # @param [String] project_id
441
- # The project ID (for example, `my-project-123`).
442
- # Required.
443
- # @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
429
+ # Delete a Lien by `name`.
430
+ # Callers of this method will require permission on the `parent` resource.
431
+ # For example, a Lien with a `parent` of `projects/1234` requires permission
432
+ # `resourcemanager.projects.updateLiens`.
433
+ # @param [String] name
434
+ # The name/identifier of the Lien to delete.
444
435
  # @param [String] fields
445
436
  # Selector specifying which fields to include in a partial response.
446
437
  # @param [String] quota_user
@@ -450,56 +441,35 @@ module Google
450
441
  # Request-specific options
451
442
  #
452
443
  # @yield [result, err] Result & error if block supplied
453
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
444
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
454
445
  # @yieldparam err [StandardError] error object if request failed
455
446
  #
456
- # @return [Google::Apis::CloudresourcemanagerV1::Project]
447
+ # @return [Google::Apis::CloudresourcemanagerV1::Empty]
457
448
  #
458
449
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
459
450
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
460
451
  # @raise [Google::Apis::AuthorizationError] Authorization is required
461
- def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
462
- command = make_simple_command(:put, 'v1/projects/{projectId}', options)
463
- command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
464
- command.request_object = project_object
465
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
466
- command.response_class = Google::Apis::CloudresourcemanagerV1::Project
467
- command.params['projectId'] = project_id unless project_id.nil?
468
- command.query['fields'] = fields unless fields.nil?
469
- command.query['quotaUser'] = quota_user unless quota_user.nil?
452
+ def delete_lien(name, fields: nil, quota_user: nil, options: nil, &block)
453
+ command = make_simple_command(:delete, 'v1/{+name}', options)
454
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
455
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
456
+ command.params['name'] = name unless name.nil?
457
+ command.query['fields'] = fields unless fields.nil?
458
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
470
459
  execute_or_queue_command(command, &block)
471
460
  end
472
461
 
473
- # Lists Projects that are visible to the user and satisfy the
474
- # specified filter. This method returns Projects in an unspecified order.
475
- # New Projects do not necessarily appear at the end of the list.
476
- # @param [String] filter
477
- # An expression for filtering the results of the request. Filter rules are
478
- # case insensitive. The fields eligible for filtering are:
479
- # + `name`
480
- # + `id`
481
- # + <code>labels.<em>key</em></code> where *key* is the name of a label
482
- # Some examples of using labels as filters:
483
- # |Filter|Description|
484
- # |------|-----------|
485
- # |name:how*|The project's name starts with "how".|
486
- # |name:Howl|The project's name is `Howl` or `howl`.|
487
- # |name:HOWL|Equivalent to above.|
488
- # |NAME:howl|Equivalent to above.|
489
- # |labels.color:*|The project has the label `color`.|
490
- # |labels.color:red|The project's label `color` has the value `red`.|
491
- # |labels.color:red&nbsp;labels.size:big|The project's label `color` has the
492
- # value `red` and its label `size` has the value `big`.
493
- # Optional.
462
+ # List all Liens applied to the `parent` resource.
463
+ # Callers of this method will require permission on the `parent` resource.
464
+ # For example, a Lien with a `parent` of `projects/1234` requires permission
465
+ # `resourcemanager.projects.get`.
494
466
  # @param [String] page_token
495
- # A pagination token returned from a previous call to ListProjects
496
- # that indicates from where listing should continue.
497
- # Optional.
467
+ # The `next_page_token` value returned from a previous List request, if any.
498
468
  # @param [Fixnum] page_size
499
- # The maximum number of Projects to return in the response.
500
- # The server can return fewer Projects than requested.
501
- # If unspecified, server picks an appropriate default.
502
- # Optional.
469
+ # The maximum number of items to return. This is a suggestion for the server.
470
+ # @param [String] parent
471
+ # The name of the resource to list all attached Liens.
472
+ # For example, `projects/1234`.
503
473
  # @param [String] fields
504
474
  # Selector specifying which fields to include in a partial response.
505
475
  # @param [String] quota_user
@@ -509,21 +479,155 @@ module Google
509
479
  # Request-specific options
510
480
  #
511
481
  # @yield [result, err] Result & error if block supplied
512
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListProjectsResponse] parsed result object
482
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListLiensResponse] parsed result object
513
483
  # @yieldparam err [StandardError] error object if request failed
514
484
  #
515
- # @return [Google::Apis::CloudresourcemanagerV1::ListProjectsResponse]
485
+ # @return [Google::Apis::CloudresourcemanagerV1::ListLiensResponse]
516
486
  #
517
487
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
518
488
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
519
489
  # @raise [Google::Apis::AuthorizationError] Authorization is required
520
- def list_projects(filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
521
- command = make_simple_command(:get, 'v1/projects', options)
522
- command.response_representation = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse::Representation
523
- command.response_class = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse
524
- command.query['filter'] = filter unless filter.nil?
490
+ def list_liens(page_token: nil, page_size: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
491
+ command = make_simple_command(:get, 'v1/liens', options)
492
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListLiensResponse::Representation
493
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListLiensResponse
525
494
  command.query['pageToken'] = page_token unless page_token.nil?
526
495
  command.query['pageSize'] = page_size unless page_size.nil?
496
+ command.query['parent'] = parent unless parent.nil?
497
+ command.query['fields'] = fields unless fields.nil?
498
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
499
+ execute_or_queue_command(command, &block)
500
+ end
501
+
502
+ # Create a Lien which applies to the resource denoted by the `parent` field.
503
+ # Callers of this method will require permission on the `parent` resource.
504
+ # For example, applying to `projects/1234` requires permission
505
+ # `resourcemanager.projects.updateLiens`.
506
+ # NOTE: Some resources may limit the number of Liens which may be applied.
507
+ # @param [Google::Apis::CloudresourcemanagerV1::Lien] lien_object
508
+ # @param [String] fields
509
+ # Selector specifying which fields to include in a partial response.
510
+ # @param [String] quota_user
511
+ # Available to use for quota purposes for server-side applications. Can be any
512
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
513
+ # @param [Google::Apis::RequestOptions] options
514
+ # Request-specific options
515
+ #
516
+ # @yield [result, err] Result & error if block supplied
517
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Lien] parsed result object
518
+ # @yieldparam err [StandardError] error object if request failed
519
+ #
520
+ # @return [Google::Apis::CloudresourcemanagerV1::Lien]
521
+ #
522
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
523
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
524
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
525
+ def create_lien(lien_object = nil, fields: nil, quota_user: nil, options: nil, &block)
526
+ command = make_simple_command(:post, 'v1/liens', options)
527
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
528
+ command.request_object = lien_object
529
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
530
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Lien
531
+ command.query['fields'] = fields unless fields.nil?
532
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
533
+ execute_or_queue_command(command, &block)
534
+ end
535
+
536
+ # Gets the latest state of a long-running operation. Clients can use this
537
+ # method to poll the operation result at intervals as recommended by the API
538
+ # service.
539
+ # @param [String] name
540
+ # The name of the operation resource.
541
+ # @param [String] fields
542
+ # Selector specifying which fields to include in a partial response.
543
+ # @param [String] quota_user
544
+ # Available to use for quota purposes for server-side applications. Can be any
545
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
546
+ # @param [Google::Apis::RequestOptions] options
547
+ # Request-specific options
548
+ #
549
+ # @yield [result, err] Result & error if block supplied
550
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
551
+ # @yieldparam err [StandardError] error object if request failed
552
+ #
553
+ # @return [Google::Apis::CloudresourcemanagerV1::Operation]
554
+ #
555
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
556
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
557
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
558
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
559
+ command = make_simple_command(:get, 'v1/{+name}', options)
560
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
561
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
562
+ command.params['name'] = name unless name.nil?
563
+ command.query['fields'] = fields unless fields.nil?
564
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
565
+ execute_or_queue_command(command, &block)
566
+ end
567
+
568
+ # Gets the effective `Policy` on a resource. This is the result of merging
569
+ # `Policies` in the resource hierarchy. The returned `Policy` will not have
570
+ # an `etag`set because it is a computed `Policy` across multiple resources.
571
+ # @param [String] resource
572
+ # The name of the resource to start computing the effective `Policy`.
573
+ # @param [Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest] get_effective_org_policy_request_object
574
+ # @param [String] fields
575
+ # Selector specifying which fields to include in a partial response.
576
+ # @param [String] quota_user
577
+ # Available to use for quota purposes for server-side applications. Can be any
578
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
579
+ # @param [Google::Apis::RequestOptions] options
580
+ # Request-specific options
581
+ #
582
+ # @yield [result, err] Result & error if block supplied
583
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
584
+ # @yieldparam err [StandardError] error object if request failed
585
+ #
586
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
587
+ #
588
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
589
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
590
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
591
+ def get_folder_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
592
+ command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
593
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
594
+ command.request_object = get_effective_org_policy_request_object
595
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
596
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
597
+ command.params['resource'] = resource unless resource.nil?
598
+ command.query['fields'] = fields unless fields.nil?
599
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
600
+ execute_or_queue_command(command, &block)
601
+ end
602
+
603
+ # Clears a `Policy` from a resource.
604
+ # @param [String] resource
605
+ # Name of the resource for the `Policy` to clear.
606
+ # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_request_object
607
+ # @param [String] fields
608
+ # Selector specifying which fields to include in a partial response.
609
+ # @param [String] quota_user
610
+ # Available to use for quota purposes for server-side applications. Can be any
611
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
612
+ # @param [Google::Apis::RequestOptions] options
613
+ # Request-specific options
614
+ #
615
+ # @yield [result, err] Result & error if block supplied
616
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
617
+ # @yieldparam err [StandardError] error object if request failed
618
+ #
619
+ # @return [Google::Apis::CloudresourcemanagerV1::Empty]
620
+ #
621
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
622
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
623
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
624
+ def clear_folder_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
625
+ command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
626
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
627
+ command.request_object = clear_org_policy_request_object
628
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
629
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
630
+ command.params['resource'] = resource unless resource.nil?
527
631
  command.query['fields'] = fields unless fields.nil?
528
632
  command.query['quotaUser'] = quota_user unless quota_user.nil?
529
633
  execute_or_queue_command(command, &block)
@@ -553,7 +657,7 @@ module Google
553
657
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
554
658
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
555
659
  # @raise [Google::Apis::AuthorizationError] Authorization is required
556
- def set_project_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
660
+ def set_folder_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
557
661
  command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
558
662
  command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
559
663
  command.request_object = set_org_policy_request_object
@@ -565,14 +669,10 @@ module Google
565
669
  execute_or_queue_command(command, &block)
566
670
  end
567
671
 
568
- # Request that a new Project be created. The result is an Operation which
569
- # can be used to track the creation process. It is automatically deleted
570
- # after a few hours, so there is no need to call DeleteOperation.
571
- # Our SLO permits Project creation to take up to 30 seconds at the 90th
572
- # percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile
573
- # latency. 95th percentile latency is around 11 seconds. We recommend
574
- # polling at the 5th second with an exponential backoff.
575
- # @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
672
+ # Lists `Constraints` that could be applied on the specified resource.
673
+ # @param [String] resource
674
+ # Name of the resource to list `Constraints` for.
675
+ # @param [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest] list_available_org_policy_constraints_request_object
576
676
  # @param [String] fields
577
677
  # Selector specifying which fields to include in a partial response.
578
678
  # @param [String] quota_user
@@ -582,20 +682,21 @@ module Google
582
682
  # Request-specific options
583
683
  #
584
684
  # @yield [result, err] Result & error if block supplied
585
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
685
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse] parsed result object
586
686
  # @yieldparam err [StandardError] error object if request failed
587
687
  #
588
- # @return [Google::Apis::CloudresourcemanagerV1::Operation]
688
+ # @return [Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse]
589
689
  #
590
690
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
591
691
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
592
692
  # @raise [Google::Apis::AuthorizationError] Authorization is required
593
- def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
594
- command = make_simple_command(:post, 'v1/projects', options)
595
- command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
596
- command.request_object = project_object
597
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
598
- command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
693
+ def list_folder_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
694
+ command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
695
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
696
+ command.request_object = list_available_org_policy_constraints_request_object
697
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse::Representation
698
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsResponse
699
+ command.params['resource'] = resource unless resource.nil?
599
700
  command.query['fields'] = fields unless fields.nil?
600
701
  command.query['quotaUser'] = quota_user unless quota_user.nil?
601
702
  execute_or_queue_command(command, &block)
@@ -622,7 +723,7 @@ module Google
622
723
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
623
724
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
624
725
  # @raise [Google::Apis::AuthorizationError] Authorization is required
625
- def list_project_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
726
+ def list_folder_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
626
727
  command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
627
728
  command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
628
729
  command.request_object = list_org_policies_request_object
@@ -634,6 +735,43 @@ module Google
634
735
  execute_or_queue_command(command, &block)
635
736
  end
636
737
 
738
+ # Gets a `Policy` on a resource.
739
+ # If no `Policy` is set on the resource, a `Policy` is returned with default
740
+ # values including `POLICY_TYPE_NOT_SET` for the `policy_type oneof`. The
741
+ # `etag` value can be used with `SetOrgPolicy()` to create or update a
742
+ # `Policy` during read-modify-write.
743
+ # @param [String] resource
744
+ # Name of the resource the `Policy` is set on.
745
+ # @param [Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest] get_org_policy_request_object
746
+ # @param [String] fields
747
+ # Selector specifying which fields to include in a partial response.
748
+ # @param [String] quota_user
749
+ # Available to use for quota purposes for server-side applications. Can be any
750
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
751
+ # @param [Google::Apis::RequestOptions] options
752
+ # Request-specific options
753
+ #
754
+ # @yield [result, err] Result & error if block supplied
755
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
756
+ # @yieldparam err [StandardError] error object if request failed
757
+ #
758
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
759
+ #
760
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
761
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
762
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
763
+ def get_folder_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
764
+ command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
765
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
766
+ command.request_object = get_org_policy_request_object
767
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
768
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
769
+ command.params['resource'] = resource unless resource.nil?
770
+ command.query['fields'] = fields unless fields.nil?
771
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
772
+ execute_or_queue_command(command, &block)
773
+ end
774
+
637
775
  # Retrieves the Project identified by the specified
638
776
  # `project_id` (for example, `my-project-123`).
639
777
  # The caller must have read permissions for this Project.
@@ -860,194 +998,20 @@ module Google
860
998
  # Request-specific options
861
999
  #
862
1000
  # @yield [result, err] Result & error if block supplied
863
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
864
- # @yieldparam err [StandardError] error object if request failed
865
- #
866
- # @return [Google::Apis::CloudresourcemanagerV1::Policy]
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 set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
872
- command = make_simple_command(:post, 'v1/projects/{resource}:setIamPolicy', options)
873
- command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
874
- command.request_object = set_iam_policy_request_object
875
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
876
- command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
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
- # Returns permissions that a caller has on the specified Organization.
884
- # The `resource` field should be the organization's resource name,
885
- # e.g. "organizations/123".
886
- # @param [String] resource
887
- # REQUIRED: The resource for which the policy detail is being requested.
888
- # See the operation documentation for the appropriate value for this field.
889
- # @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
890
- # @param [String] fields
891
- # Selector specifying which fields to include in a partial response.
892
- # @param [String] quota_user
893
- # Available to use for quota purposes for server-side applications. Can be any
894
- # arbitrary string assigned to a user, but should not exceed 40 characters.
895
- # @param [Google::Apis::RequestOptions] options
896
- # Request-specific options
897
- #
898
- # @yield [result, err] Result & error if block supplied
899
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
900
- # @yieldparam err [StandardError] error object if request failed
901
- #
902
- # @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
903
- #
904
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
905
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
906
- # @raise [Google::Apis::AuthorizationError] Authorization is required
907
- def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
908
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
909
- command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
910
- command.request_object = test_iam_permissions_request_object
911
- command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
912
- command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
913
- command.params['resource'] = resource unless resource.nil?
914
- command.query['fields'] = fields unless fields.nil?
915
- command.query['quotaUser'] = quota_user unless quota_user.nil?
916
- execute_or_queue_command(command, &block)
917
- end
918
-
919
- # Clears a `Policy` from a resource.
920
- # @param [String] resource
921
- # Name of the resource for the `Policy` to clear.
922
- # @param [Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest] clear_org_policy_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::Empty] parsed result object
933
- # @yieldparam err [StandardError] error object if request failed
934
- #
935
- # @return [Google::Apis::CloudresourcemanagerV1::Empty]
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 clear_organization_org_policy(resource, clear_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
941
- command = make_simple_command(:post, 'v1/{+resource}:clearOrgPolicy', options)
942
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ClearOrgPolicyRequest::Representation
943
- command.request_object = clear_org_policy_request_object
944
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
945
- command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
946
- command.params['resource'] = resource unless resource.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
- # Updates the specified `Policy` on the resource. Creates a new `Policy` for
953
- # that `Constraint` on the resource if one does not exist.
954
- # Not supplying an `etag` on the request `Policy` results in an unconditional
955
- # write of the `Policy`.
956
- # @param [String] resource
957
- # Resource name of the resource to attach the `Policy`.
958
- # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
959
- # @param [String] fields
960
- # Selector specifying which fields to include in a partial response.
961
- # @param [String] quota_user
962
- # Available to use for quota purposes for server-side applications. Can be any
963
- # arbitrary string assigned to a user, but should not exceed 40 characters.
964
- # @param [Google::Apis::RequestOptions] options
965
- # Request-specific options
966
- #
967
- # @yield [result, err] Result & error if block supplied
968
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
969
- # @yieldparam err [StandardError] error object if request failed
970
- #
971
- # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
972
- #
973
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
974
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
975
- # @raise [Google::Apis::AuthorizationError] Authorization is required
976
- def set_organization_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
977
- command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
978
- command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
979
- command.request_object = set_org_policy_request_object
980
- command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
981
- command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
982
- command.params['resource'] = resource unless resource.nil?
983
- command.query['fields'] = fields unless fields.nil?
984
- command.query['quotaUser'] = quota_user unless quota_user.nil?
985
- execute_or_queue_command(command, &block)
986
- end
987
-
988
- # Sets the access control policy on an Organization resource. Replaces any
989
- # existing policy. The `resource` field should be the organization's resource
990
- # name, e.g. "organizations/123".
991
- # @param [String] resource
992
- # REQUIRED: The resource for which the policy is being specified.
993
- # See the operation documentation for the appropriate value for this field.
994
- # @param [Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest] set_iam_policy_request_object
995
- # @param [String] fields
996
- # Selector specifying which fields to include in a partial response.
997
- # @param [String] quota_user
998
- # Available to use for quota purposes for server-side applications. Can be any
999
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1000
- # @param [Google::Apis::RequestOptions] options
1001
- # Request-specific options
1002
- #
1003
- # @yield [result, err] Result & error if block supplied
1004
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
1005
- # @yieldparam err [StandardError] error object if request failed
1006
- #
1007
- # @return [Google::Apis::CloudresourcemanagerV1::Policy]
1008
- #
1009
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1010
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1011
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1012
- def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1013
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1014
- command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
1015
- command.request_object = set_iam_policy_request_object
1016
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
1017
- command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
1018
- command.params['resource'] = resource unless resource.nil?
1019
- command.query['fields'] = fields unless fields.nil?
1020
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1021
- execute_or_queue_command(command, &block)
1022
- end
1023
-
1024
- # Lists all the `Policies` set for a particular resource.
1025
- # @param [String] resource
1026
- # Name of the resource to list Policies for.
1027
- # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
1028
- # @param [String] fields
1029
- # Selector specifying which fields to include in a partial response.
1030
- # @param [String] quota_user
1031
- # Available to use for quota purposes for server-side applications. Can be any
1032
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1033
- # @param [Google::Apis::RequestOptions] options
1034
- # Request-specific options
1035
- #
1036
- # @yield [result, err] Result & error if block supplied
1037
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
1001
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
1038
1002
  # @yieldparam err [StandardError] error object if request failed
1039
1003
  #
1040
- # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
1004
+ # @return [Google::Apis::CloudresourcemanagerV1::Policy]
1041
1005
  #
1042
1006
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1043
1007
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1044
1008
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1045
- def list_organization_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1046
- command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
1047
- command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
1048
- command.request_object = list_org_policies_request_object
1049
- command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
1050
- command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
1009
+ def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1010
+ command = make_simple_command(:post, 'v1/projects/{resource}:setIamPolicy', options)
1011
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetIamPolicyRequest::Representation
1012
+ command.request_object = set_iam_policy_request_object
1013
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
1014
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
1051
1015
  command.params['resource'] = resource unless resource.nil?
1052
1016
  command.query['fields'] = fields unless fields.nil?
1053
1017
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1075,7 +1039,7 @@ module Google
1075
1039
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1076
1040
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1077
1041
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1078
- def list_organization_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1042
+ def list_project_available_org_policy_constraints(resource, list_available_org_policy_constraints_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1079
1043
  command = make_simple_command(:post, 'v1/{+resource}:listAvailableOrgPolicyConstraints', options)
1080
1044
  command.request_representation = Google::Apis::CloudresourcemanagerV1::ListAvailableOrgPolicyConstraintsRequest::Representation
1081
1045
  command.request_object = list_available_org_policy_constraints_request_object
@@ -1087,9 +1051,8 @@ module Google
1087
1051
  execute_or_queue_command(command, &block)
1088
1052
  end
1089
1053
 
1090
- # Gets the access control policy for an Organization resource. May be empty
1091
- # if no such policy or resource exists. The `resource` field should be the
1092
- # organization's resource name, e.g. "organizations/123".
1054
+ # Returns the IAM access control policy for the specified Project.
1055
+ # Permission is denied if the policy or the resource does not exist.
1093
1056
  # @param [String] resource
1094
1057
  # REQUIRED: The resource for which the policy is being requested.
1095
1058
  # See the operation documentation for the appropriate value for this field.
@@ -1111,8 +1074,8 @@ module Google
1111
1074
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1112
1075
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1113
1076
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1114
- def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1115
- command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
1077
+ def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1078
+ command = make_simple_command(:post, 'v1/projects/{resource}:getIamPolicy', options)
1116
1079
  command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
1117
1080
  command.request_object = get_iam_policy_request_object
1118
1081
  command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
@@ -1148,7 +1111,7 @@ module Google
1148
1111
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1149
1112
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1150
1113
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1151
- def get_organization_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1114
+ def get_project_org_policy(resource, get_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1152
1115
  command = make_simple_command(:post, 'v1/{+resource}:getOrgPolicy', options)
1153
1116
  command.request_representation = Google::Apis::CloudresourcemanagerV1::GetOrgPolicyRequest::Representation
1154
1117
  command.request_object = get_org_policy_request_object
@@ -1160,39 +1123,6 @@ module Google
1160
1123
  execute_or_queue_command(command, &block)
1161
1124
  end
1162
1125
 
1163
- # Searches Organization resources that are visible to the user and satisfy
1164
- # the specified filter. This method returns Organizations in an unspecified
1165
- # order. New Organizations do not necessarily appear at the end of the
1166
- # results.
1167
- # @param [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest] search_organizations_request_object
1168
- # @param [String] fields
1169
- # Selector specifying which fields to include in a partial response.
1170
- # @param [String] quota_user
1171
- # Available to use for quota purposes for server-side applications. Can be any
1172
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1173
- # @param [Google::Apis::RequestOptions] options
1174
- # Request-specific options
1175
- #
1176
- # @yield [result, err] Result & error if block supplied
1177
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse] parsed result object
1178
- # @yieldparam err [StandardError] error object if request failed
1179
- #
1180
- # @return [Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse]
1181
- #
1182
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1183
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1184
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1185
- def search_organizations(search_organizations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1186
- command = make_simple_command(:post, 'v1/organizations:search', options)
1187
- command.request_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsRequest::Representation
1188
- command.request_object = search_organizations_request_object
1189
- command.response_representation = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse::Representation
1190
- command.response_class = Google::Apis::CloudresourcemanagerV1::SearchOrganizationsResponse
1191
- command.query['fields'] = fields unless fields.nil?
1192
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1193
- execute_or_queue_command(command, &block)
1194
- end
1195
-
1196
1126
  # Gets the effective `Policy` on a resource. This is the result of merging
1197
1127
  # `Policies` in the resource hierarchy. The returned `Policy` will not have
1198
1128
  # an `etag`set because it is a computed `Policy` across multiple resources.
@@ -1216,7 +1146,7 @@ module Google
1216
1146
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1217
1147
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1218
1148
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1219
- def get_organization_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1149
+ def get_project_effective_org_policy(resource, get_effective_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1220
1150
  command = make_simple_command(:post, 'v1/{+resource}:getEffectiveOrgPolicy', options)
1221
1151
  command.request_representation = Google::Apis::CloudresourcemanagerV1::GetEffectiveOrgPolicyRequest::Representation
1222
1152
  command.request_object = get_effective_org_policy_request_object
@@ -1228,9 +1158,16 @@ module Google
1228
1158
  execute_or_queue_command(command, &block)
1229
1159
  end
1230
1160
 
1231
- # Fetches an Organization resource identified by the specified resource name.
1232
- # @param [String] name
1233
- # The resource name of the Organization to fetch, e.g. "organizations/1234".
1161
+ # Restores the Project identified by the specified
1162
+ # `project_id` (for example, `my-project-123`).
1163
+ # You can only use this method for a Project that has a lifecycle state of
1164
+ # DELETE_REQUESTED.
1165
+ # After deletion starts, the Project cannot be restored.
1166
+ # The caller must have modify permissions for this Project.
1167
+ # @param [String] project_id
1168
+ # The project ID (for example, `foo-bar-123`).
1169
+ # Required.
1170
+ # @param [Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest] undelete_project_request_object
1234
1171
  # @param [String] fields
1235
1172
  # Selector specifying which fields to include in a partial response.
1236
1173
  # @param [String] quota_user
@@ -1240,30 +1177,33 @@ module Google
1240
1177
  # Request-specific options
1241
1178
  #
1242
1179
  # @yield [result, err] Result & error if block supplied
1243
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Organization] parsed result object
1180
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
1244
1181
  # @yieldparam err [StandardError] error object if request failed
1245
1182
  #
1246
- # @return [Google::Apis::CloudresourcemanagerV1::Organization]
1183
+ # @return [Google::Apis::CloudresourcemanagerV1::Empty]
1247
1184
  #
1248
1185
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1249
1186
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1250
1187
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1251
- def get_organization(name, fields: nil, quota_user: nil, options: nil, &block)
1252
- command = make_simple_command(:get, 'v1/{+name}', options)
1253
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Organization::Representation
1254
- command.response_class = Google::Apis::CloudresourcemanagerV1::Organization
1255
- command.params['name'] = name unless name.nil?
1188
+ def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1189
+ command = make_simple_command(:post, 'v1/projects/{projectId}:undelete', options)
1190
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::UndeleteProjectRequest::Representation
1191
+ command.request_object = undelete_project_request_object
1192
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
1193
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
1194
+ command.params['projectId'] = project_id unless project_id.nil?
1256
1195
  command.query['fields'] = fields unless fields.nil?
1257
1196
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1258
1197
  execute_or_queue_command(command, &block)
1259
1198
  end
1260
1199
 
1261
- # Delete a Lien by `name`.
1262
- # Callers of this method will require permission on the `parent` resource.
1263
- # For example, a Lien with a `parent` of `projects/1234` requires permission
1264
- # `resourcemanager.projects.updateLiens`.
1265
- # @param [String] name
1266
- # The name/identifier of the Lien to delete.
1200
+ # Updates the attributes of the Project identified by the specified
1201
+ # `project_id` (for example, `my-project-123`).
1202
+ # The caller must have modify permissions for this Project.
1203
+ # @param [String] project_id
1204
+ # The project ID (for example, `my-project-123`).
1205
+ # Required.
1206
+ # @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
1267
1207
  # @param [String] fields
1268
1208
  # Selector specifying which fields to include in a partial response.
1269
1209
  # @param [String] quota_user
@@ -1273,35 +1213,56 @@ module Google
1273
1213
  # Request-specific options
1274
1214
  #
1275
1215
  # @yield [result, err] Result & error if block supplied
1276
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Empty] parsed result object
1216
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
1277
1217
  # @yieldparam err [StandardError] error object if request failed
1278
1218
  #
1279
- # @return [Google::Apis::CloudresourcemanagerV1::Empty]
1219
+ # @return [Google::Apis::CloudresourcemanagerV1::Project]
1280
1220
  #
1281
1221
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1282
1222
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1283
1223
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1284
- def delete_lien(name, fields: nil, quota_user: nil, options: nil, &block)
1285
- command = make_simple_command(:delete, 'v1/{+name}', options)
1286
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Empty::Representation
1287
- command.response_class = Google::Apis::CloudresourcemanagerV1::Empty
1288
- command.params['name'] = name unless name.nil?
1224
+ def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1225
+ command = make_simple_command(:put, 'v1/projects/{projectId}', options)
1226
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
1227
+ command.request_object = project_object
1228
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
1229
+ command.response_class = Google::Apis::CloudresourcemanagerV1::Project
1230
+ command.params['projectId'] = project_id unless project_id.nil?
1289
1231
  command.query['fields'] = fields unless fields.nil?
1290
1232
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1291
1233
  execute_or_queue_command(command, &block)
1292
1234
  end
1293
1235
 
1294
- # List all Liens applied to the `parent` resource.
1295
- # Callers of this method will require permission on the `parent` resource.
1296
- # For example, a Lien with a `parent` of `projects/1234` requires permission
1297
- # `resourcemanager.projects.get`.
1236
+ # Lists Projects that are visible to the user and satisfy the
1237
+ # specified filter. This method returns Projects in an unspecified order.
1238
+ # New Projects do not necessarily appear at the end of the list.
1239
+ # @param [String] filter
1240
+ # An expression for filtering the results of the request. Filter rules are
1241
+ # case insensitive. The fields eligible for filtering are:
1242
+ # + `name`
1243
+ # + `id`
1244
+ # + <code>labels.<em>key</em></code> where *key* is the name of a label
1245
+ # Some examples of using labels as filters:
1246
+ # |Filter|Description|
1247
+ # |------|-----------|
1248
+ # |name:how*|The project's name starts with "how".|
1249
+ # |name:Howl|The project's name is `Howl` or `howl`.|
1250
+ # |name:HOWL|Equivalent to above.|
1251
+ # |NAME:howl|Equivalent to above.|
1252
+ # |labels.color:*|The project has the label `color`.|
1253
+ # |labels.color:red|The project's label `color` has the value `red`.|
1254
+ # |labels.color:red&nbsp;labels.size:big|The project's label `color` has the
1255
+ # value `red` and its label `size` has the value `big`.
1256
+ # Optional.
1298
1257
  # @param [String] page_token
1299
- # The `next_page_token` value returned from a previous List request, if any.
1258
+ # A pagination token returned from a previous call to ListProjects
1259
+ # that indicates from where listing should continue.
1260
+ # Optional.
1300
1261
  # @param [Fixnum] page_size
1301
- # The maximum number of items to return. This is a suggestion for the server.
1302
- # @param [String] parent
1303
- # The name of the resource to list all attached Liens.
1304
- # For example, `projects/1234`.
1262
+ # The maximum number of Projects to return in the response.
1263
+ # The server can return fewer Projects than requested.
1264
+ # If unspecified, server picks an appropriate default.
1265
+ # Optional.
1305
1266
  # @param [String] fields
1306
1267
  # Selector specifying which fields to include in a partial response.
1307
1268
  # @param [String] quota_user
@@ -1311,32 +1272,33 @@ module Google
1311
1272
  # Request-specific options
1312
1273
  #
1313
1274
  # @yield [result, err] Result & error if block supplied
1314
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListLiensResponse] parsed result object
1275
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListProjectsResponse] parsed result object
1315
1276
  # @yieldparam err [StandardError] error object if request failed
1316
1277
  #
1317
- # @return [Google::Apis::CloudresourcemanagerV1::ListLiensResponse]
1278
+ # @return [Google::Apis::CloudresourcemanagerV1::ListProjectsResponse]
1318
1279
  #
1319
1280
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1320
1281
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1321
1282
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1322
- def list_liens(page_token: nil, page_size: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1323
- command = make_simple_command(:get, 'v1/liens', options)
1324
- command.response_representation = Google::Apis::CloudresourcemanagerV1::ListLiensResponse::Representation
1325
- command.response_class = Google::Apis::CloudresourcemanagerV1::ListLiensResponse
1283
+ def list_projects(filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
1284
+ command = make_simple_command(:get, 'v1/projects', options)
1285
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse::Representation
1286
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListProjectsResponse
1287
+ command.query['filter'] = filter unless filter.nil?
1326
1288
  command.query['pageToken'] = page_token unless page_token.nil?
1327
1289
  command.query['pageSize'] = page_size unless page_size.nil?
1328
- command.query['parent'] = parent unless parent.nil?
1329
1290
  command.query['fields'] = fields unless fields.nil?
1330
1291
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1331
1292
  execute_or_queue_command(command, &block)
1332
1293
  end
1333
1294
 
1334
- # Create a Lien which applies to the resource denoted by the `parent` field.
1335
- # Callers of this method will require permission on the `parent` resource.
1336
- # For example, applying to `projects/1234` requires permission
1337
- # `resourcemanager.projects.updateLiens`.
1338
- # NOTE: Some resources may limit the number of Liens which may be applied.
1339
- # @param [Google::Apis::CloudresourcemanagerV1::Lien] lien_object
1295
+ # Updates the specified `Policy` on the resource. Creates a new `Policy` for
1296
+ # that `Constraint` on the resource if one does not exist.
1297
+ # Not supplying an `etag` on the request `Policy` results in an unconditional
1298
+ # write of the `Policy`.
1299
+ # @param [String] resource
1300
+ # Resource name of the resource to attach the `Policy`.
1301
+ # @param [Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest] set_org_policy_request_object
1340
1302
  # @param [String] fields
1341
1303
  # Selector specifying which fields to include in a partial response.
1342
1304
  # @param [String] quota_user
@@ -1346,30 +1308,34 @@ module Google
1346
1308
  # Request-specific options
1347
1309
  #
1348
1310
  # @yield [result, err] Result & error if block supplied
1349
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1::Lien] parsed result object
1311
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::OrgPolicy] parsed result object
1350
1312
  # @yieldparam err [StandardError] error object if request failed
1351
1313
  #
1352
- # @return [Google::Apis::CloudresourcemanagerV1::Lien]
1314
+ # @return [Google::Apis::CloudresourcemanagerV1::OrgPolicy]
1353
1315
  #
1354
1316
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1355
1317
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1356
1318
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1357
- def create_lien(lien_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1358
- command = make_simple_command(:post, 'v1/liens', options)
1359
- command.request_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
1360
- command.request_object = lien_object
1361
- command.response_representation = Google::Apis::CloudresourcemanagerV1::Lien::Representation
1362
- command.response_class = Google::Apis::CloudresourcemanagerV1::Lien
1319
+ def set_project_org_policy(resource, set_org_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1320
+ command = make_simple_command(:post, 'v1/{+resource}:setOrgPolicy', options)
1321
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::SetOrgPolicyRequest::Representation
1322
+ command.request_object = set_org_policy_request_object
1323
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::OrgPolicy::Representation
1324
+ command.response_class = Google::Apis::CloudresourcemanagerV1::OrgPolicy
1325
+ command.params['resource'] = resource unless resource.nil?
1363
1326
  command.query['fields'] = fields unless fields.nil?
1364
1327
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1365
1328
  execute_or_queue_command(command, &block)
1366
1329
  end
1367
1330
 
1368
- # Gets the latest state of a long-running operation. Clients can use this
1369
- # method to poll the operation result at intervals as recommended by the API
1370
- # service.
1371
- # @param [String] name
1372
- # The name of the operation resource.
1331
+ # Request that a new Project be created. The result is an Operation which
1332
+ # can be used to track the creation process. It is automatically deleted
1333
+ # after a few hours, so there is no need to call DeleteOperation.
1334
+ # Our SLO permits Project creation to take up to 30 seconds at the 90th
1335
+ # percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile
1336
+ # latency. 95th percentile latency is around 11 seconds. We recommend
1337
+ # polling at the 5th second with an exponential backoff.
1338
+ # @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
1373
1339
  # @param [String] fields
1374
1340
  # Selector specifying which fields to include in a partial response.
1375
1341
  # @param [String] quota_user
@@ -1387,11 +1353,45 @@ module Google
1387
1353
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1388
1354
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1389
1355
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1390
- def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1391
- command = make_simple_command(:get, 'v1/{+name}', options)
1356
+ def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1357
+ command = make_simple_command(:post, 'v1/projects', options)
1358
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
1359
+ command.request_object = project_object
1392
1360
  command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
1393
1361
  command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
1394
- command.params['name'] = name unless name.nil?
1362
+ command.query['fields'] = fields unless fields.nil?
1363
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1364
+ execute_or_queue_command(command, &block)
1365
+ end
1366
+
1367
+ # Lists all the `Policies` set for a particular resource.
1368
+ # @param [String] resource
1369
+ # Name of the resource to list Policies for.
1370
+ # @param [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest] list_org_policies_request_object
1371
+ # @param [String] fields
1372
+ # Selector specifying which fields to include in a partial response.
1373
+ # @param [String] quota_user
1374
+ # Available to use for quota purposes for server-side applications. Can be any
1375
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1376
+ # @param [Google::Apis::RequestOptions] options
1377
+ # Request-specific options
1378
+ #
1379
+ # @yield [result, err] Result & error if block supplied
1380
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse] parsed result object
1381
+ # @yieldparam err [StandardError] error object if request failed
1382
+ #
1383
+ # @return [Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse]
1384
+ #
1385
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1386
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1387
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1388
+ def list_project_org_policies(resource, list_org_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1389
+ command = make_simple_command(:post, 'v1/{+resource}:listOrgPolicies', options)
1390
+ command.request_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesRequest::Representation
1391
+ command.request_object = list_org_policies_request_object
1392
+ command.response_representation = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse::Representation
1393
+ command.response_class = Google::Apis::CloudresourcemanagerV1::ListOrgPoliciesResponse
1394
+ command.params['resource'] = resource unless resource.nil?
1395
1395
  command.query['fields'] = fields unless fields.nil?
1396
1396
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1397
1397
  execute_or_queue_command(command, &block)