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