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