google-api-client 0.9.20 → 0.9.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +8 -4
  3. data/api_names.yaml +33179 -1058
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +24 -6
  7. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +2 -0
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +14 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +2 -0
  11. data/generated/google/apis/adsense_v1_4.rb +1 -1
  12. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  13. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  14. data/generated/google/apis/analyticsreporting_v4/classes.rb +7 -0
  15. data/generated/google/apis/analyticsreporting_v4/representations.rb +1 -0
  16. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  17. data/generated/google/apis/androidenterprise_v1/classes.rb +96 -156
  18. data/generated/google/apis/androidenterprise_v1/representations.rb +18 -47
  19. data/generated/google/apis/androidenterprise_v1/service.rb +15 -459
  20. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  21. data/generated/google/apis/androidpublisher_v2/classes.rb +176 -0
  22. data/generated/google/apis/androidpublisher_v2/representations.rb +62 -0
  23. data/generated/google/apis/androidpublisher_v2/service.rb +60 -2
  24. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  25. data/generated/google/apis/appengine_v1beta5/classes.rb +300 -198
  26. data/generated/google/apis/appengine_v1beta5/representations.rb +36 -0
  27. data/generated/google/apis/appengine_v1beta5/service.rb +54 -49
  28. data/generated/google/apis/appsactivity_v1.rb +1 -1
  29. data/generated/google/apis/appstate_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/bigquery_v2/classes.rb +50 -6
  32. data/generated/google/apis/bigquery_v2/representations.rb +5 -0
  33. data/generated/google/apis/books_v1.rb +1 -1
  34. data/generated/google/apis/books_v1/classes.rb +7 -2
  35. data/generated/google/apis/books_v1/representations.rb +1 -0
  36. data/generated/google/apis/calendar_v3.rb +1 -1
  37. data/generated/google/apis/classroom_v1.rb +1 -1
  38. data/generated/google/apis/classroom_v1/classes.rb +74 -74
  39. data/generated/google/apis/classroom_v1/representations.rb +29 -29
  40. data/generated/google/apis/classroom_v1/service.rb +132 -28
  41. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  42. data/generated/google/apis/cloudbuild_v1/classes.rb +47 -27
  43. data/generated/google/apis/cloudbuild_v1/representations.rb +20 -7
  44. data/generated/google/apis/cloudbuild_v1/service.rb +42 -0
  45. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  46. data/generated/google/apis/clouddebugger_v2/classes.rb +648 -578
  47. data/generated/google/apis/clouddebugger_v2/representations.rb +140 -140
  48. data/generated/google/apis/clouddebugger_v2/service.rb +161 -155
  49. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +563 -423
  51. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +116 -76
  52. data/generated/google/apis/cloudresourcemanager_v1/service.rb +318 -249
  53. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +396 -331
  55. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +317 -281
  57. data/generated/google/apis/compute_beta.rb +1 -1
  58. data/generated/google/apis/compute_beta/classes.rb +352 -80
  59. data/generated/google/apis/compute_beta/representations.rb +132 -19
  60. data/generated/google/apis/compute_beta/service.rb +214 -0
  61. data/generated/google/apis/compute_v1.rb +1 -1
  62. data/generated/google/apis/compute_v1/classes.rb +673 -73
  63. data/generated/google/apis/compute_v1/representations.rb +274 -9
  64. data/generated/google/apis/compute_v1/service.rb +1574 -2
  65. data/generated/google/apis/content_v2.rb +1 -1
  66. data/generated/google/apis/content_v2/classes.rb +7 -8
  67. data/generated/google/apis/content_v2/service.rb +125 -54
  68. data/generated/google/apis/dataflow_v1b3.rb +2 -3
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +286 -114
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +73 -0
  71. data/generated/google/apis/dataflow_v1b3/service.rb +37 -38
  72. data/generated/google/apis/datastore_v1.rb +1 -1
  73. data/generated/google/apis/datastore_v1/classes.rb +5 -0
  74. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  75. data/generated/google/apis/deploymentmanager_v2/classes.rb +37 -5
  76. data/generated/google/apis/deploymentmanager_v2/representations.rb +16 -0
  77. data/generated/google/apis/deploymentmanager_v2/service.rb +4 -1
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  80. data/generated/google/apis/drive_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2/classes.rb +55 -21
  82. data/generated/google/apis/drive_v2/representations.rb +2 -0
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +41 -12
  85. data/generated/google/apis/drive_v3/representations.rb +2 -0
  86. data/generated/google/apis/fitness_v1.rb +31 -1
  87. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  88. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  89. data/generated/google/apis/games_management_v1management.rb +1 -1
  90. data/generated/google/apis/games_v1.rb +1 -1
  91. data/generated/google/apis/gmail_v1.rb +1 -1
  92. data/generated/google/apis/gmail_v1/classes.rb +32 -1
  93. data/generated/google/apis/gmail_v1/representations.rb +15 -0
  94. data/generated/google/apis/gmail_v1/service.rb +41 -2
  95. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  96. data/generated/google/apis/identitytoolkit_v3/classes.rb +7 -0
  97. data/generated/google/apis/identitytoolkit_v3/representations.rb +1 -0
  98. data/generated/google/apis/kgsearch_v1.rb +2 -3
  99. data/generated/google/apis/kgsearch_v1/classes.rb +10 -10
  100. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  101. data/generated/google/apis/kgsearch_v1/service.rb +28 -26
  102. data/generated/google/apis/language_v1beta1.rb +1 -1
  103. data/generated/google/apis/language_v1beta1/classes.rb +166 -8
  104. data/generated/google/apis/language_v1beta1/representations.rb +50 -0
  105. data/generated/google/apis/language_v1beta1/service.rb +32 -0
  106. data/generated/google/apis/logging_v2beta1.rb +6 -6
  107. data/generated/google/apis/logging_v2beta1/classes.rb +868 -789
  108. data/generated/google/apis/logging_v2beta1/representations.rb +179 -147
  109. data/generated/google/apis/logging_v2beta1/service.rb +378 -211
  110. data/generated/google/apis/monitoring_v3.rb +1 -1
  111. data/generated/google/apis/monitoring_v3/classes.rb +110 -112
  112. data/generated/google/apis/monitoring_v3/service.rb +68 -73
  113. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  114. data/generated/google/apis/plus_domains_v1.rb +1 -1
  115. data/generated/google/apis/plus_v1.rb +1 -1
  116. data/generated/google/apis/pubsub_v1.rb +1 -1
  117. data/generated/google/apis/pubsub_v1/classes.rb +380 -327
  118. data/generated/google/apis/pubsub_v1/representations.rb +79 -79
  119. data/generated/google/apis/pubsub_v1/service.rb +424 -396
  120. data/generated/google/apis/sheets_v4.rb +1 -1
  121. data/generated/google/apis/sheets_v4/classes.rb +175 -53
  122. data/generated/google/apis/sheets_v4/representations.rb +48 -13
  123. data/generated/google/apis/site_verification_v1.rb +1 -1
  124. data/generated/google/apis/slides_v1.rb +1 -1
  125. data/generated/google/apis/slides_v1/classes.rb +149 -31
  126. data/generated/google/apis/slides_v1/representations.rb +52 -9
  127. data/generated/google/apis/slides_v1/service.rb +5 -5
  128. data/generated/google/apis/speech_v1beta1.rb +1 -1
  129. data/generated/google/apis/speech_v1beta1/service.rb +3 -1
  130. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  131. data/generated/google/apis/sqladmin_v1beta4/classes.rb +54 -2
  132. data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -0
  133. data/generated/google/apis/sqladmin_v1beta4/service.rb +41 -0
  134. data/generated/google/apis/storage_v1.rb +1 -1
  135. data/generated/google/apis/storage_v1/classes.rb +7 -0
  136. data/generated/google/apis/storage_v1/representations.rb +2 -0
  137. data/generated/google/apis/tagmanager_v1.rb +5 -5
  138. data/generated/google/apis/vision_v1.rb +1 -1
  139. data/generated/google/apis/vision_v1/classes.rb +63 -59
  140. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  141. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  142. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  143. data/generated/google/apis/youtube_analytics_v1/service.rb +0 -76
  144. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  145. data/generated/google/apis/youtube_partner_v1/classes.rb +71 -0
  146. data/generated/google/apis/youtube_partner_v1/representations.rb +33 -0
  147. data/generated/google/apis/youtube_partner_v1/service.rb +52 -0
  148. data/generated/google/apis/youtube_v3.rb +1 -1
  149. data/generated/google/apis/youtube_v3/classes.rb +15 -2
  150. data/generated/google/apis/youtube_v3/representations.rb +3 -0
  151. data/generated/google/apis/youtube_v3/service.rb +4 -4
  152. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  153. data/generated/google/apis/youtubereporting_v1/classes.rb +146 -137
  154. data/generated/google/apis/youtubereporting_v1/representations.rb +33 -33
  155. data/generated/google/apis/youtubereporting_v1/service.rb +149 -145
  156. data/lib/google/apis/version.rb +1 -1
  157. data/samples/cli/lib/samples/calendar.rb +1 -1
  158. data/samples/cli/lib/samples/gmail.rb +74 -0
  159. metadata +29 -29
@@ -22,13 +22,7 @@ module Google
22
22
  module Apis
23
23
  module CloudresourcemanagerV1beta1
24
24
 
25
- class Project
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class ResourceId
25
+ class FolderOperationError
32
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
27
 
34
28
  include Google::Apis::Core::JsonObjectSupport
@@ -40,37 +34,37 @@ module Google
40
34
  include Google::Apis::Core::JsonObjectSupport
41
35
  end
42
36
 
43
- class Empty
37
+ class UndeleteProjectRequest
44
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
39
 
46
40
  include Google::Apis::Core::JsonObjectSupport
47
41
  end
48
42
 
49
- class UndeleteProjectRequest
43
+ class FolderOperation
50
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
45
 
52
46
  include Google::Apis::Core::JsonObjectSupport
53
47
  end
54
48
 
55
- class GetAncestryRequest
49
+ class GetIamPolicyRequest
56
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
51
 
58
52
  include Google::Apis::Core::JsonObjectSupport
59
53
  end
60
54
 
61
- class GetAncestryResponse
55
+ class SetIamPolicyRequest
62
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
57
 
64
58
  include Google::Apis::Core::JsonObjectSupport
65
59
  end
66
60
 
67
- class Ancestor
61
+ class TestIamPermissionsResponse
68
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
63
 
70
64
  include Google::Apis::Core::JsonObjectSupport
71
65
  end
72
66
 
73
- class GetIamPolicyRequest
67
+ class Organization
74
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
69
 
76
70
  include Google::Apis::Core::JsonObjectSupport
@@ -82,85 +76,76 @@ module Google
82
76
  include Google::Apis::Core::JsonObjectSupport
83
77
  end
84
78
 
85
- class Binding
79
+ class ProjectCreationStatus
86
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
81
 
88
82
  include Google::Apis::Core::JsonObjectSupport
89
83
  end
90
84
 
91
- class SetIamPolicyRequest
85
+ class TestIamPermissionsRequest
92
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
87
 
94
88
  include Google::Apis::Core::JsonObjectSupport
95
89
  end
96
90
 
97
- class TestIamPermissionsRequest
91
+ class ListOrganizationsResponse
98
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
93
 
100
94
  include Google::Apis::Core::JsonObjectSupport
101
95
  end
102
96
 
103
- class TestIamPermissionsResponse
97
+ class GetAncestryRequest
104
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
99
 
106
100
  include Google::Apis::Core::JsonObjectSupport
107
101
  end
108
102
 
109
- class ListOrganizationsResponse
103
+ class GetAncestryResponse
110
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
105
 
112
106
  include Google::Apis::Core::JsonObjectSupport
113
107
  end
114
108
 
115
- class Organization
109
+ class Empty
116
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
111
 
118
112
  include Google::Apis::Core::JsonObjectSupport
119
113
  end
120
114
 
121
- class OrganizationOwner
115
+ class Ancestor
122
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
117
 
124
118
  include Google::Apis::Core::JsonObjectSupport
125
119
  end
126
120
 
127
- class ProjectCreationStatus
121
+ class ResourceId
128
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
123
 
130
124
  include Google::Apis::Core::JsonObjectSupport
131
125
  end
132
126
 
133
- class FolderOperation
127
+ class Project
134
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
129
 
136
130
  include Google::Apis::Core::JsonObjectSupport
137
131
  end
138
132
 
139
- class FolderOperationError
133
+ class Binding
140
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
135
 
142
136
  include Google::Apis::Core::JsonObjectSupport
143
137
  end
144
138
 
145
- class Project
146
- # @private
147
- class Representation < Google::Apis::Core::JsonRepresentation
148
- property :project_number, as: 'projectNumber'
149
- property :project_id, as: 'projectId'
150
- property :lifecycle_state, as: 'lifecycleState'
151
- property :name, as: 'name'
152
- property :create_time, as: 'createTime'
153
- hash :labels, as: 'labels'
154
- property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
139
+ class OrganizationOwner
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
155
141
 
156
- end
142
+ include Google::Apis::Core::JsonObjectSupport
157
143
  end
158
144
 
159
- class ResourceId
145
+ class FolderOperationError
160
146
  # @private
161
147
  class Representation < Google::Apis::Core::JsonRepresentation
162
- property :type, as: 'type'
163
- property :id, as: 'id'
148
+ property :error_message_id, as: 'errorMessageId'
164
149
  end
165
150
  end
166
151
 
@@ -173,138 +158,153 @@ module Google
173
158
  end
174
159
  end
175
160
 
176
- class Empty
161
+ class UndeleteProjectRequest
177
162
  # @private
178
163
  class Representation < Google::Apis::Core::JsonRepresentation
179
164
  end
180
165
  end
181
166
 
182
- class UndeleteProjectRequest
167
+ class FolderOperation
183
168
  # @private
184
169
  class Representation < Google::Apis::Core::JsonRepresentation
170
+ property :display_name, as: 'displayName'
171
+ property :source_parent, as: 'sourceParent'
172
+ property :destination_parent, as: 'destinationParent'
173
+ property :operation_type, as: 'operationType'
185
174
  end
186
175
  end
187
176
 
188
- class GetAncestryRequest
177
+ class GetIamPolicyRequest
189
178
  # @private
190
179
  class Representation < Google::Apis::Core::JsonRepresentation
191
180
  end
192
181
  end
193
182
 
194
- class GetAncestryResponse
183
+ class SetIamPolicyRequest
195
184
  # @private
196
185
  class Representation < Google::Apis::Core::JsonRepresentation
197
- collection :ancestor, as: 'ancestor', class: Google::Apis::CloudresourcemanagerV1beta1::Ancestor, decorator: Google::Apis::CloudresourcemanagerV1beta1::Ancestor::Representation
186
+ property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
198
187
 
199
188
  end
200
189
  end
201
190
 
202
- class Ancestor
191
+ class TestIamPermissionsResponse
203
192
  # @private
204
193
  class Representation < Google::Apis::Core::JsonRepresentation
205
- property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
206
-
194
+ collection :permissions, as: 'permissions'
207
195
  end
208
196
  end
209
197
 
210
- class GetIamPolicyRequest
198
+ class Organization
211
199
  # @private
212
200
  class Representation < Google::Apis::Core::JsonRepresentation
201
+ property :lifecycle_state, as: 'lifecycleState'
202
+ property :display_name, as: 'displayName'
203
+ property :organization_id, as: 'organizationId'
204
+ property :name, as: 'name'
205
+ property :creation_time, as: 'creationTime'
206
+ property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
207
+
213
208
  end
214
209
  end
215
210
 
216
211
  class Policy
217
212
  # @private
218
213
  class Representation < Google::Apis::Core::JsonRepresentation
219
- property :version, as: 'version'
220
214
  collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1beta1::Binding, decorator: Google::Apis::CloudresourcemanagerV1beta1::Binding::Representation
221
215
 
222
216
  property :etag, :base64 => true, as: 'etag'
217
+ property :version, as: 'version'
223
218
  end
224
219
  end
225
220
 
226
- class Binding
221
+ class ProjectCreationStatus
227
222
  # @private
228
223
  class Representation < Google::Apis::Core::JsonRepresentation
229
- property :role, as: 'role'
230
- collection :members, as: 'members'
224
+ property :ready, as: 'ready'
225
+ property :gettable, as: 'gettable'
226
+ property :create_time, as: 'createTime'
231
227
  end
232
228
  end
233
229
 
234
- class SetIamPolicyRequest
230
+ class TestIamPermissionsRequest
235
231
  # @private
236
232
  class Representation < Google::Apis::Core::JsonRepresentation
237
- property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1beta1::Policy, decorator: Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
238
-
233
+ collection :permissions, as: 'permissions'
239
234
  end
240
235
  end
241
236
 
242
- class TestIamPermissionsRequest
237
+ class ListOrganizationsResponse
243
238
  # @private
244
239
  class Representation < Google::Apis::Core::JsonRepresentation
245
- collection :permissions, as: 'permissions'
240
+ collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
241
+
242
+ property :next_page_token, as: 'nextPageToken'
246
243
  end
247
244
  end
248
245
 
249
- class TestIamPermissionsResponse
246
+ class GetAncestryRequest
250
247
  # @private
251
248
  class Representation < Google::Apis::Core::JsonRepresentation
252
- collection :permissions, as: 'permissions'
253
249
  end
254
250
  end
255
251
 
256
- class ListOrganizationsResponse
252
+ class GetAncestryResponse
257
253
  # @private
258
254
  class Representation < Google::Apis::Core::JsonRepresentation
259
- collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1beta1::Organization, decorator: Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
255
+ collection :ancestor, as: 'ancestor', class: Google::Apis::CloudresourcemanagerV1beta1::Ancestor, decorator: Google::Apis::CloudresourcemanagerV1beta1::Ancestor::Representation
260
256
 
261
- property :next_page_token, as: 'nextPageToken'
262
257
  end
263
258
  end
264
259
 
265
- class Organization
260
+ class Empty
266
261
  # @private
267
262
  class Representation < Google::Apis::Core::JsonRepresentation
268
- property :name, as: 'name'
269
- property :organization_id, as: 'organizationId'
270
- property :display_name, as: 'displayName'
271
- property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner::Representation
263
+ end
264
+ end
265
+
266
+ class Ancestor
267
+ # @private
268
+ class Representation < Google::Apis::Core::JsonRepresentation
269
+ property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
272
270
 
273
- property :creation_time, as: 'creationTime'
274
- property :lifecycle_state, as: 'lifecycleState'
275
271
  end
276
272
  end
277
273
 
278
- class OrganizationOwner
274
+ class ResourceId
279
275
  # @private
280
276
  class Representation < Google::Apis::Core::JsonRepresentation
281
- property :directory_customer_id, as: 'directoryCustomerId'
277
+ property :type, as: 'type'
278
+ property :id, as: 'id'
282
279
  end
283
280
  end
284
281
 
285
- class ProjectCreationStatus
282
+ class Project
286
283
  # @private
287
284
  class Representation < Google::Apis::Core::JsonRepresentation
285
+ property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1beta1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1beta1::ResourceId::Representation
286
+
287
+ hash :labels, as: 'labels'
288
+ property :lifecycle_state, as: 'lifecycleState'
288
289
  property :create_time, as: 'createTime'
289
- property :gettable, as: 'gettable'
290
- property :ready, as: 'ready'
290
+ property :name, as: 'name'
291
+ property :project_number, as: 'projectNumber'
292
+ property :project_id, as: 'projectId'
291
293
  end
292
294
  end
293
295
 
294
- class FolderOperation
296
+ class Binding
295
297
  # @private
296
298
  class Representation < Google::Apis::Core::JsonRepresentation
297
- property :display_name, as: 'displayName'
298
- property :operation_type, as: 'operationType'
299
- property :source_parent, as: 'sourceParent'
300
- property :destination_parent, as: 'destinationParent'
299
+ collection :members, as: 'members'
300
+ property :role, as: 'role'
301
301
  end
302
302
  end
303
303
 
304
- class FolderOperationError
304
+ class OrganizationOwner
305
305
  # @private
306
306
  class Representation < Google::Apis::Core::JsonRepresentation
307
- property :error_message_id, as: 'errorMessageId'
307
+ property :directory_customer_id, as: 'directoryCustomerId'
308
308
  end
309
309
  end
310
310
  end
@@ -47,280 +47,319 @@ module Google
47
47
  super('https://cloudresourcemanager.googleapis.com/', '')
48
48
  end
49
49
 
50
- # Creates a Project resource. Initially, the Project resource is owned by its
51
- # creator exclusively. The creator can later grant permission to others to read
52
- # or update the Project. Several APIs are activated automatically for the
53
- # Project, including Google Cloud Storage.
54
- # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
55
- # @param [Boolean] use_legacy_stack
56
- # A safety hatch to opt out of the new reliable project creation process.
57
- # @param [String] fields
58
- # Selector specifying which fields to include in a partial response.
50
+ # Gets a list of ancestors in the resource hierarchy for the Project
51
+ # identified by the specified `project_id` (for example, `my-project-123`).
52
+ # The caller must have read permissions for this Project.
53
+ # @param [String] project_id
54
+ # The Project ID (for example, `my-project-123`).
55
+ # Required.
56
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
59
57
  # @param [String] quota_user
60
58
  # Available to use for quota purposes for server-side applications. Can be any
61
59
  # arbitrary string assigned to a user, but should not exceed 40 characters.
60
+ # @param [String] fields
61
+ # Selector specifying which fields to include in a partial response.
62
62
  # @param [Google::Apis::RequestOptions] options
63
63
  # Request-specific options
64
64
  #
65
65
  # @yield [result, err] Result & error if block supplied
66
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
66
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
67
67
  # @yieldparam err [StandardError] error object if request failed
68
68
  #
69
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
69
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
70
70
  #
71
71
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
72
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
73
  # @raise [Google::Apis::AuthorizationError] Authorization is required
74
- def create_project(project_object = nil, use_legacy_stack: nil, fields: nil, quota_user: nil, options: nil, &block)
75
- command = make_simple_command(:post, 'v1beta1/projects', options)
76
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
77
- command.request_object = project_object
78
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
79
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
80
- command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil?
81
- command.query['fields'] = fields unless fields.nil?
74
+ def get_project_ancestry(project_id, get_ancestry_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
75
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
76
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
77
+ command.request_object = get_ancestry_request_object
78
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
79
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
80
+ command.params['projectId'] = project_id unless project_id.nil?
82
81
  command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ command.query['fields'] = fields unless fields.nil?
83
83
  execute_or_queue_command(command, &block)
84
84
  end
85
85
 
86
- # Lists Projects that are visible to the user and satisfy the specified filter.
87
- # This method returns Projects in an unspecified order. New Projects do not
88
- # necessarily appear at the end of the list.
89
- # @param [String] page_token
90
- # A pagination token returned from a previous call to ListProjects that
91
- # indicates from where listing should continue. Optional.
92
- # @param [Fixnum] page_size
93
- # The maximum number of Projects to return in the response. The server can
94
- # return fewer Projects than requested. If unspecified, server picks an
95
- # appropriate default. Optional.
96
- # @param [String] filter
97
- # An expression for filtering the results of the request. Filter rules are case
98
- # insensitive. The fields eligible for filtering are: + `name` + `id` + labels.
99
- # key where *key* is the name of a label Some examples of using labels as
100
- # filters: |Filter|Description| |------|-----------| |name:*|The project has a
101
- # name.| |name:Howl|The project's name is `Howl` or `howl`.| |name:HOWL|
102
- # Equivalent to above.| |NAME:howl|Equivalent to above.| |labels.color:*|The
103
- # project has the label `color`.| |labels.color:red|The project's label `color`
104
- # has the value `red`.| |labels.color:red label.size:big|The project's label `
105
- # color` has the value `red` and its label `size` has the value `big`. Optional.
106
- # @param [String] fields
107
- # Selector specifying which fields to include in a partial response.
86
+ # Returns the IAM access control policy for the specified Project.
87
+ # Permission is denied if the policy or the resource does not exist.
88
+ # @param [String] resource
89
+ # REQUIRED: The resource for which the policy is being requested.
90
+ # `resource` is usually specified as a path. For example, a Project
91
+ # resource is specified as `projects/`project``.
92
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
108
93
  # @param [String] quota_user
109
94
  # Available to use for quota purposes for server-side applications. Can be any
110
95
  # arbitrary string assigned to a user, but should not exceed 40 characters.
96
+ # @param [String] fields
97
+ # Selector specifying which fields to include in a partial response.
111
98
  # @param [Google::Apis::RequestOptions] options
112
99
  # Request-specific options
113
100
  #
114
101
  # @yield [result, err] Result & error if block supplied
115
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object
102
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
116
103
  # @yieldparam err [StandardError] error object if request failed
117
104
  #
118
- # @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse]
105
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
119
106
  #
120
107
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
121
108
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
122
109
  # @raise [Google::Apis::AuthorizationError] Authorization is required
123
- def list_projects(page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
124
- command = make_simple_command(:get, 'v1beta1/projects', options)
125
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
126
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
127
- command.query['pageToken'] = page_token unless page_token.nil?
128
- command.query['pageSize'] = page_size unless page_size.nil?
129
- command.query['filter'] = filter unless filter.nil?
130
- command.query['fields'] = fields unless fields.nil?
110
+ def get_project_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
111
+ command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
112
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
113
+ command.request_object = get_iam_policy_request_object
114
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
115
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
116
+ command.params['resource'] = resource unless resource.nil?
131
117
  command.query['quotaUser'] = quota_user unless quota_user.nil?
118
+ command.query['fields'] = fields unless fields.nil?
132
119
  execute_or_queue_command(command, &block)
133
120
  end
134
121
 
135
- # Retrieves the Project identified by the specified `project_id` (for example, `
136
- # my-project-123`). The caller must have read permissions for this Project.
122
+ # Restores the Project identified by the specified
123
+ # `project_id` (for example, `my-project-123`).
124
+ # You can only use this method for a Project that has a lifecycle state of
125
+ # DELETE_REQUESTED.
126
+ # After deletion starts, the Project cannot be restored.
127
+ # The caller must have modify permissions for this Project.
137
128
  # @param [String] project_id
138
- # The Project ID (for example, `my-project-123`). Required.
139
- # @param [String] fields
140
- # Selector specifying which fields to include in a partial response.
129
+ # The project ID (for example, `foo-bar-123`).
130
+ # Required.
131
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
141
132
  # @param [String] quota_user
142
133
  # Available to use for quota purposes for server-side applications. Can be any
143
134
  # arbitrary string assigned to a user, but should not exceed 40 characters.
135
+ # @param [String] fields
136
+ # Selector specifying which fields to include in a partial response.
144
137
  # @param [Google::Apis::RequestOptions] options
145
138
  # Request-specific options
146
139
  #
147
140
  # @yield [result, err] Result & error if block supplied
148
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
141
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
149
142
  # @yieldparam err [StandardError] error object if request failed
150
143
  #
151
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
144
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
152
145
  #
153
146
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
154
147
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
155
148
  # @raise [Google::Apis::AuthorizationError] Authorization is required
156
- def get_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
157
- command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
158
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
159
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
149
+ def undelete_project(project_id, undelete_project_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
150
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
151
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
152
+ command.request_object = undelete_project_request_object
153
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
154
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
160
155
  command.params['projectId'] = project_id unless project_id.nil?
161
- command.query['fields'] = fields unless fields.nil?
162
156
  command.query['quotaUser'] = quota_user unless quota_user.nil?
157
+ command.query['fields'] = fields unless fields.nil?
163
158
  execute_or_queue_command(command, &block)
164
159
  end
165
160
 
166
- # Updates the attributes of the Project identified by the specified `project_id`
167
- # (for example, `my-project-123`). The caller must have modify permissions for
168
- # this Project.
169
- # @param [String] project_id
170
- # The project ID (for example, `my-project-123`). Required.
171
- # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
172
- # @param [String] fields
173
- # Selector specifying which fields to include in a partial response.
161
+ # Lists Projects that are visible to the user and satisfy the
162
+ # specified filter. This method returns Projects in an unspecified order.
163
+ # New Projects do not necessarily appear at the end of the list.
164
+ # @param [Fixnum] page_size
165
+ # The maximum number of Projects to return in the response.
166
+ # The server can return fewer Projects than requested.
167
+ # If unspecified, server picks an appropriate default.
168
+ # Optional.
169
+ # @param [String] filter
170
+ # An expression for filtering the results of the request. Filter rules are
171
+ # case insensitive. The fields eligible for filtering are:
172
+ # + `name`
173
+ # + `id`
174
+ # + <code>labels.<em>key</em></code> where *key* is the name of a label
175
+ # Some examples of using labels as filters:
176
+ # |Filter|Description|
177
+ # |------|-----------|
178
+ # |name:*|The project has a name.|
179
+ # |name:Howl|The project's name is `Howl` or `howl`.|
180
+ # |name:HOWL|Equivalent to above.|
181
+ # |NAME:howl|Equivalent to above.|
182
+ # |labels.color:*|The project has the label `color`.|
183
+ # |labels.color:red|The project's label `color` has the value `red`.|
184
+ # |labels.color:red&nbsp;label.size:big|The project's label `color` has the
185
+ # value `red` and its label `size` has the value `big`.
186
+ # Optional.
187
+ # @param [String] page_token
188
+ # A pagination token returned from a previous call to ListProjects
189
+ # that indicates from where listing should continue.
190
+ # Optional.
174
191
  # @param [String] quota_user
175
192
  # Available to use for quota purposes for server-side applications. Can be any
176
193
  # arbitrary string assigned to a user, but should not exceed 40 characters.
194
+ # @param [String] fields
195
+ # Selector specifying which fields to include in a partial response.
177
196
  # @param [Google::Apis::RequestOptions] options
178
197
  # Request-specific options
179
198
  #
180
199
  # @yield [result, err] Result & error if block supplied
181
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
200
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse] parsed result object
182
201
  # @yieldparam err [StandardError] error object if request failed
183
202
  #
184
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
203
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse]
185
204
  #
186
205
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
187
206
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
188
207
  # @raise [Google::Apis::AuthorizationError] Authorization is required
189
- def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
190
- command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
191
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
192
- command.request_object = project_object
193
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
194
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
195
- command.params['projectId'] = project_id unless project_id.nil?
196
- command.query['fields'] = fields unless fields.nil?
208
+ def list_projects(page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
209
+ command = make_simple_command(:get, 'v1beta1/projects', options)
210
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse::Representation
211
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListProjectsResponse
212
+ command.query['pageSize'] = page_size unless page_size.nil?
213
+ command.query['filter'] = filter unless filter.nil?
214
+ command.query['pageToken'] = page_token unless page_token.nil?
197
215
  command.query['quotaUser'] = quota_user unless quota_user.nil?
216
+ command.query['fields'] = fields unless fields.nil?
198
217
  execute_or_queue_command(command, &block)
199
218
  end
200
219
 
201
- # Marks the Project identified by the specified `project_id` (for example, `my-
202
- # project-123`) for deletion. This method will only affect the Project if the
203
- # following criteria are met: + The Project does not have a billing account
204
- # associated with it. + The Project has a lifecycle state of ACTIVE. This method
205
- # changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The
206
- # deletion starts at an unspecified time, at which point the project is no
207
- # longer accessible. Until the deletion completes, you can check the lifecycle
208
- # state checked by retrieving the Project with GetProject, and the Project
209
- # remains visible to ListProjects. However, you cannot update the project. After
210
- # the deletion completes, the Project is not retrievable by the GetProject and
211
- # ListProjects methods. The caller must have modify permissions for this Project.
220
+ # Retrieves the Project identified by the specified
221
+ # `project_id` (for example, `my-project-123`).
222
+ # The caller must have read permissions for this Project.
212
223
  # @param [String] project_id
213
- # The Project ID (for example, `foo-bar-123`). Required.
214
- # @param [String] fields
215
- # Selector specifying which fields to include in a partial response.
224
+ # The Project ID (for example, `my-project-123`).
225
+ # Required.
216
226
  # @param [String] quota_user
217
227
  # Available to use for quota purposes for server-side applications. Can be any
218
228
  # arbitrary string assigned to a user, but should not exceed 40 characters.
229
+ # @param [String] fields
230
+ # Selector specifying which fields to include in a partial response.
219
231
  # @param [Google::Apis::RequestOptions] options
220
232
  # Request-specific options
221
233
  #
222
234
  # @yield [result, err] Result & error if block supplied
223
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
235
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
224
236
  # @yieldparam err [StandardError] error object if request failed
225
237
  #
226
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
238
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
227
239
  #
228
240
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
229
241
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
230
242
  # @raise [Google::Apis::AuthorizationError] Authorization is required
231
- def delete_project(project_id, fields: nil, quota_user: nil, options: nil, &block)
232
- command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
233
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
234
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
243
+ def get_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
244
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}', options)
245
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
246
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
235
247
  command.params['projectId'] = project_id unless project_id.nil?
236
- command.query['fields'] = fields unless fields.nil?
237
248
  command.query['quotaUser'] = quota_user unless quota_user.nil?
249
+ command.query['fields'] = fields unless fields.nil?
238
250
  execute_or_queue_command(command, &block)
239
251
  end
240
252
 
241
- # Restores the Project identified by the specified `project_id` (for example, `
242
- # my-project-123`). You can only use this method for a Project that has a
243
- # lifecycle state of DELETE_REQUESTED. After deletion starts, the Project cannot
244
- # be restored. The caller must have modify permissions for this Project.
253
+ # Updates the attributes of the Project identified by the specified
254
+ # `project_id` (for example, `my-project-123`).
255
+ # The caller must have modify permissions for this Project.
245
256
  # @param [String] project_id
246
- # The project ID (for example, `foo-bar-123`). Required.
247
- # @param [Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest] undelete_project_request_object
248
- # @param [String] fields
249
- # Selector specifying which fields to include in a partial response.
257
+ # The project ID (for example, `my-project-123`).
258
+ # Required.
259
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
250
260
  # @param [String] quota_user
251
261
  # Available to use for quota purposes for server-side applications. Can be any
252
262
  # arbitrary string assigned to a user, but should not exceed 40 characters.
263
+ # @param [String] fields
264
+ # Selector specifying which fields to include in a partial response.
253
265
  # @param [Google::Apis::RequestOptions] options
254
266
  # Request-specific options
255
267
  #
256
268
  # @yield [result, err] Result & error if block supplied
257
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
269
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
258
270
  # @yieldparam err [StandardError] error object if request failed
259
271
  #
260
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
272
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
261
273
  #
262
274
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
263
275
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
264
276
  # @raise [Google::Apis::AuthorizationError] Authorization is required
265
- def undelete_project(project_id, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
266
- command = make_simple_command(:post, 'v1beta1/projects/{projectId}:undelete', options)
267
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::UndeleteProjectRequest::Representation
268
- command.request_object = undelete_project_request_object
269
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
270
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
277
+ def update_project(project_id, project_object = nil, quota_user: nil, fields: nil, options: nil, &block)
278
+ command = make_simple_command(:put, 'v1beta1/projects/{projectId}', options)
279
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
280
+ command.request_object = project_object
281
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
282
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
271
283
  command.params['projectId'] = project_id unless project_id.nil?
272
- command.query['fields'] = fields unless fields.nil?
273
284
  command.query['quotaUser'] = quota_user unless quota_user.nil?
285
+ command.query['fields'] = fields unless fields.nil?
274
286
  execute_or_queue_command(command, &block)
275
287
  end
276
288
 
277
- # Gets a list of ancestors in the resource hierarchy for the Project identified
278
- # by the specified `project_id` (for example, `my-project-123`). The caller must
279
- # have read permissions for this Project.
280
- # @param [String] project_id
281
- # The Project ID (for example, `my-project-123`). Required.
282
- # @param [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest] get_ancestry_request_object
283
- # @param [String] fields
284
- # Selector specifying which fields to include in a partial response.
289
+ # Creates a Project resource.
290
+ # Initially, the Project resource is owned by its creator exclusively.
291
+ # The creator can later grant permission to others to read or update the
292
+ # Project.
293
+ # Several APIs are activated automatically for the Project, including
294
+ # Google Cloud Storage.
295
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
296
+ # @param [Boolean] use_legacy_stack
297
+ # A safety hatch to opt out of the new reliable project creation process.
285
298
  # @param [String] quota_user
286
299
  # Available to use for quota purposes for server-side applications. Can be any
287
300
  # arbitrary string assigned to a user, but should not exceed 40 characters.
301
+ # @param [String] fields
302
+ # Selector specifying which fields to include in a partial response.
288
303
  # @param [Google::Apis::RequestOptions] options
289
304
  # Request-specific options
290
305
  #
291
306
  # @yield [result, err] Result & error if block supplied
292
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse] parsed result object
307
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Project] parsed result object
293
308
  # @yieldparam err [StandardError] error object if request failed
294
309
  #
295
- # @return [Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse]
310
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Project]
296
311
  #
297
312
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
298
313
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
299
314
  # @raise [Google::Apis::AuthorizationError] Authorization is required
300
- def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
301
- command = make_simple_command(:post, 'v1beta1/projects/{projectId}:getAncestry', options)
302
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryRequest::Representation
303
- command.request_object = get_ancestry_request_object
304
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse::Representation
305
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::GetAncestryResponse
306
- command.params['projectId'] = project_id unless project_id.nil?
307
- command.query['fields'] = fields unless fields.nil?
315
+ def create_project(project_object = nil, use_legacy_stack: nil, quota_user: nil, fields: nil, options: nil, &block)
316
+ command = make_simple_command(:post, 'v1beta1/projects', options)
317
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
318
+ command.request_object = project_object
319
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Project::Representation
320
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Project
321
+ command.query['useLegacyStack'] = use_legacy_stack unless use_legacy_stack.nil?
308
322
  command.query['quotaUser'] = quota_user unless quota_user.nil?
323
+ command.query['fields'] = fields unless fields.nil?
309
324
  execute_or_queue_command(command, &block)
310
325
  end
311
326
 
312
- # Returns the IAM access control policy for the specified Project. Permission is
313
- # denied if the policy or the resource does not exist.
327
+ # Sets the IAM access control policy for the specified Project. Replaces
328
+ # any existing policy.
329
+ # The following constraints apply when using `setIamPolicy()`:
330
+ # + Project does not support `allUsers` and `allAuthenticatedUsers` as
331
+ # `members` in a `Binding` of a `Policy`.
332
+ # + The owner role can be granted only to `user` and `serviceAccount`.
333
+ # + Service accounts can be made owners of a project directly
334
+ # without any restrictions. However, to be added as an owner, a user must be
335
+ # invited via Cloud Platform console and must accept the invitation.
336
+ # + A user cannot be granted the owner role using `setIamPolicy()`. The user
337
+ # must be granted the owner role using the Cloud Platform Console and must
338
+ # explicitly accept the invitation.
339
+ # + Invitations to grant the owner role cannot be sent using `setIamPolicy()`;
340
+ # they must be sent only using the Cloud Platform Console.
341
+ # + Membership changes that leave the project without any owners that have
342
+ # accepted the Terms of Service (ToS) will be rejected.
343
+ # + There must be at least one owner who has accepted the Terms of
344
+ # Service (ToS) agreement in the policy. Calling `setIamPolicy()` to
345
+ # to remove the last ToS-accepted owner from the policy will fail. This
346
+ # restriction also applies to legacy projects that no longer have owners
347
+ # who have accepted the ToS. Edits to IAM policies will be rejected until
348
+ # the lack of a ToS-accepting owner is rectified.
349
+ # + Calling this method requires enabling the App Engine Admin API.
350
+ # Note: Removing service accounts from policies or changing their roles
351
+ # can render services completely inoperable. It is important to understand
352
+ # how the service account is being used before removing or updating its roles.
314
353
  # @param [String] resource
315
- # REQUIRED: The resource for which the policy is being requested. `resource` is
316
- # usually specified as a path. For example, a Project resource is specified as `
317
- # projects/`project``.
318
- # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
319
- # @param [String] fields
320
- # Selector specifying which fields to include in a partial response.
354
+ # REQUIRED: The resource for which the policy is being specified.
355
+ # `resource` is usually specified as a path. For example, a Project
356
+ # resource is specified as `projects/`project``.
357
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
321
358
  # @param [String] quota_user
322
359
  # Available to use for quota purposes for server-side applications. Can be any
323
360
  # arbitrary string assigned to a user, but should not exceed 40 characters.
361
+ # @param [String] fields
362
+ # Selector specifying which fields to include in a partial response.
324
363
  # @param [Google::Apis::RequestOptions] options
325
364
  # Request-specific options
326
365
  #
@@ -333,85 +372,78 @@ module Google
333
372
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
334
373
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
335
374
  # @raise [Google::Apis::AuthorizationError] Authorization is required
336
- def get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
337
- command = make_simple_command(:post, 'v1beta1/projects/{resource}:getIamPolicy', options)
338
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
339
- command.request_object = get_iam_policy_request_object
375
+ def set_project_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
376
+ command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
377
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
378
+ command.request_object = set_iam_policy_request_object
340
379
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
341
380
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
342
381
  command.params['resource'] = resource unless resource.nil?
343
- command.query['fields'] = fields unless fields.nil?
344
382
  command.query['quotaUser'] = quota_user unless quota_user.nil?
383
+ command.query['fields'] = fields unless fields.nil?
345
384
  execute_or_queue_command(command, &block)
346
385
  end
347
386
 
348
- # Sets the IAM access control policy for the specified Project. Replaces any
349
- # existing policy. The following constraints apply when using `setIamPolicy()`: +
350
- # Project does not support `allUsers` and `allAuthenticatedUsers` as `members`
351
- # in a `Binding` of a `Policy`. + The owner role can be granted only to `user`
352
- # and `serviceAccount`. + Service accounts can be made owners of a project
353
- # directly without any restrictions. However, to be added as an owner, a user
354
- # must be invited via Cloud Platform console and must accept the invitation. + A
355
- # user cannot be granted the owner role using `setIamPolicy()`. The user must be
356
- # granted the owner role using the Cloud Platform Console and must explicitly
357
- # accept the invitation. + Invitations to grant the owner role cannot be sent
358
- # using `setIamPolicy()`; they must be sent only using the Cloud Platform
359
- # Console. + Membership changes that leave the project without any owners that
360
- # have accepted the Terms of Service (ToS) will be rejected. + There must be at
361
- # least one owner who has accepted the Terms of Service (ToS) agreement in the
362
- # policy. Calling `setIamPolicy()` to to remove the last ToS-accepted owner from
363
- # the policy will fail. This restriction also applies to legacy projects that no
364
- # longer have owners who have accepted the ToS. Edits to IAM policies will be
365
- # rejected until the lack of a ToS-accepting owner is rectified. + Calling this
366
- # method requires enabling the App Engine Admin API. Note: Removing service
367
- # accounts from policies or changing their roles can render services completely
368
- # inoperable. It is important to understand how the service account is being
369
- # used before removing or updating its roles.
370
- # @param [String] resource
371
- # REQUIRED: The resource for which the policy is being specified. `resource` is
372
- # usually specified as a path. For example, a Project resource is specified as `
373
- # projects/`project``.
374
- # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
375
- # @param [String] fields
376
- # Selector specifying which fields to include in a partial response.
387
+ # Marks the Project identified by the specified
388
+ # `project_id` (for example, `my-project-123`) for deletion.
389
+ # This method will only affect the Project if the following criteria are met:
390
+ # + The Project does not have a billing account associated with it.
391
+ # + The Project has a lifecycle state of
392
+ # ACTIVE.
393
+ # This method changes the Project's lifecycle state from
394
+ # ACTIVE
395
+ # to DELETE_REQUESTED.
396
+ # The deletion starts at an unspecified time, at which point the project is
397
+ # no longer accessible.
398
+ # Until the deletion completes, you can check the lifecycle state
399
+ # checked by retrieving the Project with GetProject,
400
+ # and the Project remains visible to ListProjects.
401
+ # However, you cannot update the project.
402
+ # After the deletion completes, the Project is not retrievable by
403
+ # the GetProject and
404
+ # ListProjects methods.
405
+ # The caller must have modify permissions for this Project.
406
+ # @param [String] project_id
407
+ # The Project ID (for example, `foo-bar-123`).
408
+ # Required.
377
409
  # @param [String] quota_user
378
410
  # Available to use for quota purposes for server-side applications. Can be any
379
411
  # arbitrary string assigned to a user, but should not exceed 40 characters.
412
+ # @param [String] fields
413
+ # Selector specifying which fields to include in a partial response.
380
414
  # @param [Google::Apis::RequestOptions] options
381
415
  # Request-specific options
382
416
  #
383
417
  # @yield [result, err] Result & error if block supplied
384
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
418
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Empty] parsed result object
385
419
  # @yieldparam err [StandardError] error object if request failed
386
420
  #
387
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
421
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Empty]
388
422
  #
389
423
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
390
424
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
391
425
  # @raise [Google::Apis::AuthorizationError] Authorization is required
392
- def set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
393
- command = make_simple_command(:post, 'v1beta1/projects/{resource}:setIamPolicy', options)
394
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
395
- command.request_object = set_iam_policy_request_object
396
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
397
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
398
- command.params['resource'] = resource unless resource.nil?
399
- command.query['fields'] = fields unless fields.nil?
426
+ def delete_project(project_id, quota_user: nil, fields: nil, options: nil, &block)
427
+ command = make_simple_command(:delete, 'v1beta1/projects/{projectId}', options)
428
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Empty::Representation
429
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Empty
430
+ command.params['projectId'] = project_id unless project_id.nil?
400
431
  command.query['quotaUser'] = quota_user unless quota_user.nil?
432
+ command.query['fields'] = fields unless fields.nil?
401
433
  execute_or_queue_command(command, &block)
402
434
  end
403
435
 
404
436
  # Returns permissions that a caller has on the specified Project.
405
437
  # @param [String] resource
406
- # REQUIRED: The resource for which the policy detail is being requested. `
407
- # resource` is usually specified as a path. For example, a Project resource is
408
- # specified as `projects/`project``.
438
+ # REQUIRED: The resource for which the policy detail is being requested.
439
+ # `resource` is usually specified as a path. For example, a Project
440
+ # resource is specified as `projects/`project``.
409
441
  # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
410
- # @param [String] fields
411
- # Selector specifying which fields to include in a partial response.
412
442
  # @param [String] quota_user
413
443
  # Available to use for quota purposes for server-side applications. Can be any
414
444
  # arbitrary string assigned to a user, but should not exceed 40 characters.
445
+ # @param [String] fields
446
+ # Selector specifying which fields to include in a partial response.
415
447
  # @param [Google::Apis::RequestOptions] options
416
448
  # Request-specific options
417
449
  #
@@ -424,40 +456,81 @@ module Google
424
456
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
425
457
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
426
458
  # @raise [Google::Apis::AuthorizationError] Authorization is required
427
- def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
459
+ def test_project_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
428
460
  command = make_simple_command(:post, 'v1beta1/projects/{resource}:testIamPermissions', options)
429
461
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
430
462
  command.request_object = test_iam_permissions_request_object
431
463
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
432
464
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
433
465
  command.params['resource'] = resource unless resource.nil?
466
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
434
467
  command.query['fields'] = fields unless fields.nil?
468
+ execute_or_queue_command(command, &block)
469
+ end
470
+
471
+ # Gets the access control policy for an Organization resource. May be empty
472
+ # if no such policy or resource exists. The `resource` field should be the
473
+ # organization's resource name, e.g. "organizations/123".
474
+ # @param [String] resource
475
+ # REQUIRED: The resource for which the policy is being requested.
476
+ # `resource` is usually specified as a path. For example, a Project
477
+ # resource is specified as `projects/`project``.
478
+ # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
479
+ # @param [String] quota_user
480
+ # Available to use for quota purposes for server-side applications. Can be any
481
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
482
+ # @param [String] fields
483
+ # Selector specifying which fields to include in a partial response.
484
+ # @param [Google::Apis::RequestOptions] options
485
+ # Request-specific options
486
+ #
487
+ # @yield [result, err] Result & error if block supplied
488
+ # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
489
+ # @yieldparam err [StandardError] error object if request failed
490
+ #
491
+ # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
492
+ #
493
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
494
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
495
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
496
+ def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
497
+ command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
498
+ command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
499
+ command.request_object = get_iam_policy_request_object
500
+ command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
501
+ command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
502
+ command.params['resource'] = resource unless resource.nil?
435
503
  command.query['quotaUser'] = quota_user unless quota_user.nil?
504
+ command.query['fields'] = fields unless fields.nil?
436
505
  execute_or_queue_command(command, &block)
437
506
  end
438
507
 
439
- # Lists Organization resources that are visible to the user and satisfy the
440
- # specified filter. This method returns Organizations in an unspecified order.
441
- # New Organizations do not necessarily appear at the end of the list.
508
+ # Lists Organization resources that are visible to the user and satisfy
509
+ # the specified filter. This method returns Organizations in an unspecified
510
+ # order. New Organizations do not necessarily appear at the end of the list.
442
511
  # @param [Fixnum] page_size
443
- # The maximum number of Organizations to return in the response. This field is
444
- # optional.
445
- # @param [String] page_token
446
- # A pagination token returned from a previous call to `ListOrganizations` that
447
- # indicates from where listing should continue. This field is optional.
512
+ # The maximum number of Organizations to return in the response.
513
+ # This field is optional.
448
514
  # @param [String] filter
449
- # An optional query string used to filter the Organizations to return in the
450
- # response. Filter rules are case-insensitive. Organizations may be filtered by `
451
- # owner.directoryCustomerId` or by `domain`, where the domain is a Google for
452
- # Work domain, for example: |Filter|Description| |------|-----------| |owner.
453
- # directorycustomerid:123456789|Organizations with `owner.directory_customer_id`
454
- # equal to `123456789`.| |domain:google.com|Organizations corresponding to the
455
- # domain `google.com`.| This field is optional.
456
- # @param [String] fields
457
- # Selector specifying which fields to include in a partial response.
515
+ # An optional query string used to filter the Organizations to return in
516
+ # the response. Filter rules are case-insensitive.
517
+ # Organizations may be filtered by `owner.directoryCustomerId` or by
518
+ # `domain`, where the domain is a Google for Work domain, for example:
519
+ # |Filter|Description|
520
+ # |------|-----------|
521
+ # |owner.directorycustomerid:123456789|Organizations with `owner.
522
+ # directory_customer_id` equal to `123456789`.|
523
+ # |domain:google.com|Organizations corresponding to the domain `google.com`.|
524
+ # This field is optional.
525
+ # @param [String] page_token
526
+ # A pagination token returned from a previous call to `ListOrganizations`
527
+ # that indicates from where listing should continue.
528
+ # This field is optional.
458
529
  # @param [String] quota_user
459
530
  # Available to use for quota purposes for server-side applications. Can be any
460
531
  # arbitrary string assigned to a user, but should not exceed 40 characters.
532
+ # @param [String] fields
533
+ # Selector specifying which fields to include in a partial response.
461
534
  # @param [Google::Apis::RequestOptions] options
462
535
  # Request-specific options
463
536
  #
@@ -470,15 +543,15 @@ module Google
470
543
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
471
544
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
472
545
  # @raise [Google::Apis::AuthorizationError] Authorization is required
473
- def list_organizations(page_size: nil, page_token: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
546
+ def list_organizations(page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
474
547
  command = make_simple_command(:get, 'v1beta1/organizations', options)
475
548
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse::Representation
476
549
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::ListOrganizationsResponse
477
550
  command.query['pageSize'] = page_size unless page_size.nil?
478
- command.query['pageToken'] = page_token unless page_token.nil?
479
551
  command.query['filter'] = filter unless filter.nil?
480
- command.query['fields'] = fields unless fields.nil?
552
+ command.query['pageToken'] = page_token unless page_token.nil?
481
553
  command.query['quotaUser'] = quota_user unless quota_user.nil?
554
+ command.query['fields'] = fields unless fields.nil?
482
555
  execute_or_queue_command(command, &block)
483
556
  end
484
557
 
@@ -486,13 +559,13 @@ module Google
486
559
  # @param [String] name
487
560
  # The resource name of the Organization to fetch, e.g. "organizations/1234".
488
561
  # @param [String] organization_id
489
- # The id of the Organization resource to fetch. This field is deprecated and
490
- # will be removed in v1. Use name instead.
491
- # @param [String] fields
492
- # Selector specifying which fields to include in a partial response.
562
+ # The id of the Organization resource to fetch.
563
+ # This field is deprecated and will be removed in v1. Use name instead.
493
564
  # @param [String] quota_user
494
565
  # Available to use for quota purposes for server-side applications. Can be any
495
566
  # arbitrary string assigned to a user, but should not exceed 40 characters.
567
+ # @param [String] fields
568
+ # Selector specifying which fields to include in a partial response.
496
569
  # @param [Google::Apis::RequestOptions] options
497
570
  # Request-specific options
498
571
  #
@@ -505,28 +578,28 @@ module Google
505
578
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
506
579
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
507
580
  # @raise [Google::Apis::AuthorizationError] Authorization is required
508
- def get_organization(name, organization_id: nil, fields: nil, quota_user: nil, options: nil, &block)
581
+ def get_organization(name, organization_id: nil, quota_user: nil, fields: nil, options: nil, &block)
509
582
  command = make_simple_command(:get, 'v1beta1/{+name}', options)
510
583
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
511
584
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
512
585
  command.params['name'] = name unless name.nil?
513
586
  command.query['organizationId'] = organization_id unless organization_id.nil?
514
- command.query['fields'] = fields unless fields.nil?
515
587
  command.query['quotaUser'] = quota_user unless quota_user.nil?
588
+ command.query['fields'] = fields unless fields.nil?
516
589
  execute_or_queue_command(command, &block)
517
590
  end
518
591
 
519
592
  # Updates an Organization resource identified by the specified resource name.
520
593
  # @param [String] name
521
- # Output Only. The resource name of the organization. This is the organization's
522
- # relative path in the API. Its format is "organizations/[organization_id]". For
523
- # example, "organizations/1234".
594
+ # Output Only. The resource name of the organization. This is the
595
+ # organization's relative path in the API. Its format is
596
+ # "organizations/[organization_id]". For example, "organizations/1234".
524
597
  # @param [Google::Apis::CloudresourcemanagerV1beta1::Organization] organization_object
525
- # @param [String] fields
526
- # Selector specifying which fields to include in a partial response.
527
598
  # @param [String] quota_user
528
599
  # Available to use for quota purposes for server-side applications. Can be any
529
600
  # arbitrary string assigned to a user, but should not exceed 40 characters.
601
+ # @param [String] fields
602
+ # Selector specifying which fields to include in a partial response.
530
603
  # @param [Google::Apis::RequestOptions] options
531
604
  # Request-specific options
532
605
  #
@@ -539,15 +612,15 @@ module Google
539
612
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
540
613
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
541
614
  # @raise [Google::Apis::AuthorizationError] Authorization is required
542
- def update_organization(name, organization_object = nil, fields: nil, quota_user: nil, options: nil, &block)
615
+ def update_organization(name, organization_object = nil, quota_user: nil, fields: nil, options: nil, &block)
543
616
  command = make_simple_command(:put, 'v1beta1/{+name}', options)
544
617
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
545
618
  command.request_object = organization_object
546
619
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Organization::Representation
547
620
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Organization
548
621
  command.params['name'] = name unless name.nil?
549
- command.query['fields'] = fields unless fields.nil?
550
622
  command.query['quotaUser'] = quota_user unless quota_user.nil?
623
+ command.query['fields'] = fields unless fields.nil?
551
624
  execute_or_queue_command(command, &block)
552
625
  end
553
626
 
@@ -555,15 +628,15 @@ module Google
555
628
  # existing policy. The `resource` field should be the organization's resource
556
629
  # name, e.g. "organizations/123".
557
630
  # @param [String] resource
558
- # REQUIRED: The resource for which the policy is being specified. `resource` is
559
- # usually specified as a path. For example, a Project resource is specified as `
560
- # projects/`project``.
631
+ # REQUIRED: The resource for which the policy is being specified.
632
+ # `resource` is usually specified as a path. For example, a Project
633
+ # resource is specified as `projects/`project``.
561
634
  # @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
562
- # @param [String] fields
563
- # Selector specifying which fields to include in a partial response.
564
635
  # @param [String] quota_user
565
636
  # Available to use for quota purposes for server-side applications. Can be any
566
637
  # arbitrary string assigned to a user, but should not exceed 40 characters.
638
+ # @param [String] fields
639
+ # Selector specifying which fields to include in a partial response.
567
640
  # @param [Google::Apis::RequestOptions] options
568
641
  # Request-specific options
569
642
  #
@@ -576,68 +649,31 @@ module Google
576
649
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
577
650
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
578
651
  # @raise [Google::Apis::AuthorizationError] Authorization is required
579
- def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
652
+ def set_organization_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
580
653
  command = make_simple_command(:post, 'v1beta1/{+resource}:setIamPolicy', options)
581
654
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest::Representation
582
655
  command.request_object = set_iam_policy_request_object
583
656
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
584
657
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
585
658
  command.params['resource'] = resource unless resource.nil?
586
- command.query['fields'] = fields unless fields.nil?
587
659
  command.query['quotaUser'] = quota_user unless quota_user.nil?
588
- execute_or_queue_command(command, &block)
589
- end
590
-
591
- # Gets the access control policy for an Organization resource. May be empty if
592
- # no such policy or resource exists. The `resource` field should be the
593
- # organization's resource name, e.g. "organizations/123".
594
- # @param [String] resource
595
- # REQUIRED: The resource for which the policy is being requested. `resource` is
596
- # usually specified as a path. For example, a Project resource is specified as `
597
- # projects/`project``.
598
- # @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
599
- # @param [String] fields
600
- # Selector specifying which fields to include in a partial response.
601
- # @param [String] quota_user
602
- # Available to use for quota purposes for server-side applications. Can be any
603
- # arbitrary string assigned to a user, but should not exceed 40 characters.
604
- # @param [Google::Apis::RequestOptions] options
605
- # Request-specific options
606
- #
607
- # @yield [result, err] Result & error if block supplied
608
- # @yieldparam result [Google::Apis::CloudresourcemanagerV1beta1::Policy] parsed result object
609
- # @yieldparam err [StandardError] error object if request failed
610
- #
611
- # @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
612
- #
613
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
614
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
615
- # @raise [Google::Apis::AuthorizationError] Authorization is required
616
- def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
617
- command = make_simple_command(:post, 'v1beta1/{+resource}:getIamPolicy', options)
618
- command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest::Representation
619
- command.request_object = get_iam_policy_request_object
620
- command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::Policy::Representation
621
- command.response_class = Google::Apis::CloudresourcemanagerV1beta1::Policy
622
- command.params['resource'] = resource unless resource.nil?
623
660
  command.query['fields'] = fields unless fields.nil?
624
- command.query['quotaUser'] = quota_user unless quota_user.nil?
625
661
  execute_or_queue_command(command, &block)
626
662
  end
627
663
 
628
- # Returns permissions that a caller has on the specified Organization. The `
629
- # resource` field should be the organization's resource name, e.g. "
630
- # organizations/123".
664
+ # Returns permissions that a caller has on the specified Organization.
665
+ # The `resource` field should be the organization's resource name,
666
+ # e.g. "organizations/123".
631
667
  # @param [String] resource
632
- # REQUIRED: The resource for which the policy detail is being requested. `
633
- # resource` is usually specified as a path. For example, a Project resource is
634
- # specified as `projects/`project``.
668
+ # REQUIRED: The resource for which the policy detail is being requested.
669
+ # `resource` is usually specified as a path. For example, a Project
670
+ # resource is specified as `projects/`project``.
635
671
  # @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
636
- # @param [String] fields
637
- # Selector specifying which fields to include in a partial response.
638
672
  # @param [String] quota_user
639
673
  # Available to use for quota purposes for server-side applications. Can be any
640
674
  # arbitrary string assigned to a user, but should not exceed 40 characters.
675
+ # @param [String] fields
676
+ # Selector specifying which fields to include in a partial response.
641
677
  # @param [Google::Apis::RequestOptions] options
642
678
  # Request-specific options
643
679
  #
@@ -650,15 +686,15 @@ module Google
650
686
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
651
687
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
652
688
  # @raise [Google::Apis::AuthorizationError] Authorization is required
653
- def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
689
+ def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
654
690
  command = make_simple_command(:post, 'v1beta1/{+resource}:testIamPermissions', options)
655
691
  command.request_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest::Representation
656
692
  command.request_object = test_iam_permissions_request_object
657
693
  command.response_representation = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse::Representation
658
694
  command.response_class = Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsResponse
659
695
  command.params['resource'] = resource unless resource.nil?
660
- command.query['fields'] = fields unless fields.nil?
661
696
  command.query['quotaUser'] = quota_user unless quota_user.nil?
697
+ command.query['fields'] = fields unless fields.nil?
662
698
  execute_or_queue_command(command, &block)
663
699
  end
664
700