google-api-client 0.9.26 → 0.9.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/api_names.yaml +36326 -36213
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +155 -155
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +32 -32
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +104 -104
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.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 +260 -248
- data/generated/google/apis/cloudbuild_v1/representations.rb +47 -45
- data/generated/google/apis/cloudbuild_v1/service.rb +167 -167
- data/generated/google/apis/clouddebugger_v2.rb +3 -3
- data/generated/google/apis/clouddebugger_v2/classes.rb +569 -569
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +145 -145
- data/generated/google/apis/cloudkms_v1beta1.rb +4 -3
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +428 -428
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +115 -115
- data/generated/google/apis/cloudkms_v1beta1/service.rb +161 -160
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +583 -583
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +100 -100
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +116 -116
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +195 -195
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +58 -58
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +316 -316
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +12 -0
- data/generated/google/apis/content_v2/representations.rb +2 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +2833 -2694
- data/generated/google/apis/dataflow_v1b3/representations.rb +666 -666
- data/generated/google/apis/dataflow_v1b3/service.rb +351 -349
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +21 -12
- data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +5 -5
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +26 -0
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +38 -2
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +4 -4
- data/generated/google/apis/genomics_v1/classes.rb +2317 -2317
- data/generated/google/apis/genomics_v1/representations.rb +476 -476
- data/generated/google/apis/genomics_v1/service.rb +1038 -1038
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +82 -1
- data/generated/google/apis/gmail_v1/representations.rb +33 -0
- data/generated/google/apis/gmail_v1/service.rb +215 -5
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +446 -343
- data/generated/google/apis/iam_v1/representations.rb +112 -85
- data/generated/google/apis/iam_v1/service.rb +248 -192
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +15 -15
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +396 -396
- data/generated/google/apis/language_v1beta1/representations.rb +97 -97
- data/generated/google/apis/language_v1beta1/service.rb +42 -42
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +855 -855
- data/generated/google/apis/logging_v2beta1/representations.rb +155 -155
- data/generated/google/apis/logging_v2beta1/service.rb +214 -214
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +551 -551
- data/generated/google/apis/monitoring_v3/representations.rb +123 -123
- data/generated/google/apis/monitoring_v3/service.rb +80 -80
- 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 +391 -391
- data/generated/google/apis/pubsub_v1/representations.rb +83 -83
- data/generated/google/apis/pubsub_v1/service.rb +257 -257
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4334 -4334
- data/generated/google/apis/sheets_v4/representations.rb +861 -861
- data/generated/google/apis/sheets_v4/service.rb +191 -191
- data/generated/google/apis/slides_v1.rb +7 -7
- data/generated/google/apis/slides_v1/classes.rb +2726 -2555
- data/generated/google/apis/slides_v1/representations.rb +678 -607
- data/generated/google/apis/slides_v1/service.rb +16 -16
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +57 -59
- data/generated/google/apis/speech_v1beta1/representations.rb +9 -9
- data/generated/google/apis/speech_v1beta1/service.rb +63 -63
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +4 -3
- data/generated/google/apis/vision_v1/classes.rb +925 -925
- data/generated/google/apis/vision_v1/representations.rb +134 -134
- 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/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +234 -1
- data/generated/google/apis/youtube_v3/representations.rb +83 -0
- data/generated/google/apis/youtube_v3/service.rb +55 -0
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +105 -105
- data/generated/google/apis/youtubereporting_v1/representations.rb +31 -31
- data/generated/google/apis/youtubereporting_v1/service.rb +78 -78
- data/lib/google/apis/core/api_command.rb +11 -5
- data/lib/google/apis/core/base_service.rb +7 -5
- data/lib/google/apis/errors.rb +4 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +28 -28
|
@@ -22,336 +22,336 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module CloudresourcemanagerV1
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class SetIamPolicyRequest
|
|
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 Status
|
|
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 Binding
|
|
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 Empty
|
|
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 UndeleteProjectRequest
|
|
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 Organization
|
|
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 ProjectCreationStatus
|
|
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 TestIamPermissionsResponse
|
|
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 GetIamPolicyRequest
|
|
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 GetAncestryResponse
|
|
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 OrganizationOwner
|
|
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 ListProjectsResponse
|
|
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 SearchOrganizationsRequest
|
|
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 GetAncestryRequest
|
|
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 Project
|
|
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 TestIamPermissionsRequest
|
|
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 SearchOrganizationsResponse
|
|
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 Policy
|
|
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 FolderOperation
|
|
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 FolderOperationError
|
|
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 ResourceId
|
|
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 Operation
|
|
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 Ancestor
|
|
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 SetIamPolicyRequest
|
|
164
164
|
# @private
|
|
165
165
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
166
|
+
property :policy, as: 'policy', class: Google::Apis::CloudresourcemanagerV1::Policy, decorator: Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
|
167
|
+
|
|
166
168
|
end
|
|
167
169
|
end
|
|
168
170
|
|
|
169
|
-
class
|
|
171
|
+
class Status
|
|
170
172
|
# @private
|
|
171
173
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
172
|
-
property :
|
|
173
|
-
property :
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
property :create_time, as: 'createTime'
|
|
177
|
-
hash :labels, as: 'labels'
|
|
178
|
-
property :name, as: 'name'
|
|
179
|
-
property :project_id, as: 'projectId'
|
|
174
|
+
property :code, as: 'code'
|
|
175
|
+
property :message, as: 'message'
|
|
176
|
+
collection :details, as: 'details'
|
|
180
177
|
end
|
|
181
178
|
end
|
|
182
179
|
|
|
183
|
-
class
|
|
180
|
+
class Binding
|
|
184
181
|
# @private
|
|
185
182
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
186
|
-
collection :
|
|
187
|
-
|
|
188
|
-
property :next_page_token, as: 'nextPageToken'
|
|
183
|
+
collection :members, as: 'members'
|
|
184
|
+
property :role, as: 'role'
|
|
189
185
|
end
|
|
190
186
|
end
|
|
191
187
|
|
|
192
|
-
class
|
|
188
|
+
class Empty
|
|
193
189
|
# @private
|
|
194
190
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
195
|
-
collection :permissions, as: 'permissions'
|
|
196
191
|
end
|
|
197
192
|
end
|
|
198
193
|
|
|
199
|
-
class
|
|
194
|
+
class UndeleteProjectRequest
|
|
200
195
|
# @private
|
|
201
196
|
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'
|
|
206
197
|
end
|
|
207
198
|
end
|
|
208
199
|
|
|
209
|
-
class
|
|
200
|
+
class Organization
|
|
210
201
|
# @private
|
|
211
202
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
212
203
|
property :display_name, as: 'displayName'
|
|
213
|
-
property :
|
|
214
|
-
property :
|
|
215
|
-
|
|
204
|
+
property :creation_time, as: 'creationTime'
|
|
205
|
+
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1::OrganizationOwner::Representation
|
|
206
|
+
|
|
207
|
+
property :lifecycle_state, as: 'lifecycleState'
|
|
208
|
+
property :name, as: 'name'
|
|
216
209
|
end
|
|
217
210
|
end
|
|
218
211
|
|
|
219
|
-
class
|
|
212
|
+
class ProjectCreationStatus
|
|
220
213
|
# @private
|
|
221
214
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
222
|
-
property :
|
|
215
|
+
property :ready, as: 'ready'
|
|
216
|
+
property :create_time, as: 'createTime'
|
|
217
|
+
property :gettable, as: 'gettable'
|
|
223
218
|
end
|
|
224
219
|
end
|
|
225
220
|
|
|
226
|
-
class
|
|
221
|
+
class TestIamPermissionsResponse
|
|
227
222
|
# @private
|
|
228
223
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
229
|
-
|
|
230
|
-
property :id, as: 'id'
|
|
224
|
+
collection :permissions, as: 'permissions'
|
|
231
225
|
end
|
|
232
226
|
end
|
|
233
227
|
|
|
234
|
-
class
|
|
228
|
+
class GetIamPolicyRequest
|
|
235
229
|
# @private
|
|
236
230
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
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
|
|
241
|
-
|
|
242
|
-
hash :metadata, as: 'metadata'
|
|
243
231
|
end
|
|
244
232
|
end
|
|
245
233
|
|
|
246
|
-
class
|
|
234
|
+
class GetAncestryResponse
|
|
247
235
|
# @private
|
|
248
236
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
249
|
-
|
|
237
|
+
collection :ancestor, as: 'ancestor', class: Google::Apis::CloudresourcemanagerV1::Ancestor, decorator: Google::Apis::CloudresourcemanagerV1::Ancestor::Representation
|
|
250
238
|
|
|
251
239
|
end
|
|
252
240
|
end
|
|
253
241
|
|
|
254
|
-
class
|
|
242
|
+
class OrganizationOwner
|
|
255
243
|
# @private
|
|
256
244
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
257
|
-
property :
|
|
258
|
-
|
|
245
|
+
property :directory_customer_id, as: 'directoryCustomerId'
|
|
259
246
|
end
|
|
260
247
|
end
|
|
261
248
|
|
|
262
|
-
class
|
|
249
|
+
class ListProjectsResponse
|
|
263
250
|
# @private
|
|
264
251
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
252
|
+
collection :projects, as: 'projects', class: Google::Apis::CloudresourcemanagerV1::Project, decorator: Google::Apis::CloudresourcemanagerV1::Project::Representation
|
|
253
|
+
|
|
254
|
+
property :next_page_token, as: 'nextPageToken'
|
|
268
255
|
end
|
|
269
256
|
end
|
|
270
257
|
|
|
271
|
-
class
|
|
258
|
+
class SearchOrganizationsRequest
|
|
272
259
|
# @private
|
|
273
260
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
274
|
-
|
|
275
|
-
property :
|
|
261
|
+
property :filter, as: 'filter'
|
|
262
|
+
property :page_token, as: 'pageToken'
|
|
263
|
+
property :page_size, as: 'pageSize'
|
|
276
264
|
end
|
|
277
265
|
end
|
|
278
266
|
|
|
279
|
-
class
|
|
267
|
+
class GetAncestryRequest
|
|
280
268
|
# @private
|
|
281
269
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
282
270
|
end
|
|
283
271
|
end
|
|
284
272
|
|
|
285
|
-
class
|
|
273
|
+
class Project
|
|
286
274
|
# @private
|
|
287
275
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
276
|
+
property :lifecycle_state, as: 'lifecycleState'
|
|
277
|
+
property :project_number, as: 'projectNumber'
|
|
278
|
+
property :parent, as: 'parent', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
|
|
279
|
+
|
|
280
|
+
property :create_time, as: 'createTime'
|
|
281
|
+
hash :labels, as: 'labels'
|
|
282
|
+
property :name, as: 'name'
|
|
283
|
+
property :project_id, as: 'projectId'
|
|
288
284
|
end
|
|
289
285
|
end
|
|
290
286
|
|
|
291
|
-
class
|
|
287
|
+
class TestIamPermissionsRequest
|
|
292
288
|
# @private
|
|
293
289
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
294
|
-
|
|
295
|
-
property :creation_time, as: 'creationTime'
|
|
296
|
-
property :owner, as: 'owner', class: Google::Apis::CloudresourcemanagerV1::OrganizationOwner, decorator: Google::Apis::CloudresourcemanagerV1::OrganizationOwner::Representation
|
|
297
|
-
|
|
298
|
-
property :lifecycle_state, as: 'lifecycleState'
|
|
299
|
-
property :name, as: 'name'
|
|
290
|
+
collection :permissions, as: 'permissions'
|
|
300
291
|
end
|
|
301
292
|
end
|
|
302
293
|
|
|
303
|
-
class
|
|
294
|
+
class SearchOrganizationsResponse
|
|
304
295
|
# @private
|
|
305
296
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
306
|
-
property :
|
|
307
|
-
|
|
308
|
-
|
|
297
|
+
property :next_page_token, as: 'nextPageToken'
|
|
298
|
+
collection :organizations, as: 'organizations', class: Google::Apis::CloudresourcemanagerV1::Organization, decorator: Google::Apis::CloudresourcemanagerV1::Organization::Representation
|
|
299
|
+
|
|
309
300
|
end
|
|
310
301
|
end
|
|
311
302
|
|
|
312
|
-
class
|
|
303
|
+
class Policy
|
|
313
304
|
# @private
|
|
314
305
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
306
|
+
property :etag, :base64 => true, as: 'etag'
|
|
307
|
+
property :version, as: 'version'
|
|
308
|
+
collection :bindings, as: 'bindings', class: Google::Apis::CloudresourcemanagerV1::Binding, decorator: Google::Apis::CloudresourcemanagerV1::Binding::Representation
|
|
309
|
+
|
|
315
310
|
end
|
|
316
311
|
end
|
|
317
312
|
|
|
318
|
-
class
|
|
313
|
+
class FolderOperation
|
|
319
314
|
# @private
|
|
320
315
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
321
|
-
|
|
316
|
+
property :operation_type, as: 'operationType'
|
|
317
|
+
property :display_name, as: 'displayName'
|
|
318
|
+
property :source_parent, as: 'sourceParent'
|
|
319
|
+
property :destination_parent, as: 'destinationParent'
|
|
322
320
|
end
|
|
323
321
|
end
|
|
324
322
|
|
|
325
|
-
class
|
|
323
|
+
class FolderOperationError
|
|
326
324
|
# @private
|
|
327
325
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
328
|
-
|
|
329
|
-
|
|
326
|
+
property :error_message_id, as: 'errorMessageId'
|
|
330
327
|
end
|
|
331
328
|
end
|
|
332
329
|
|
|
333
|
-
class
|
|
330
|
+
class ResourceId
|
|
334
331
|
# @private
|
|
335
332
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
336
|
-
property :
|
|
333
|
+
property :type, as: 'type'
|
|
334
|
+
property :id, as: 'id'
|
|
337
335
|
end
|
|
338
336
|
end
|
|
339
337
|
|
|
340
|
-
class
|
|
338
|
+
class Operation
|
|
341
339
|
# @private
|
|
342
340
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
343
|
-
|
|
341
|
+
property :done, as: 'done'
|
|
342
|
+
hash :response, as: 'response'
|
|
343
|
+
property :name, as: 'name'
|
|
344
|
+
property :error, as: 'error', class: Google::Apis::CloudresourcemanagerV1::Status, decorator: Google::Apis::CloudresourcemanagerV1::Status::Representation
|
|
344
345
|
|
|
345
|
-
|
|
346
|
+
hash :metadata, as: 'metadata'
|
|
346
347
|
end
|
|
347
348
|
end
|
|
348
349
|
|
|
349
|
-
class
|
|
350
|
+
class Ancestor
|
|
350
351
|
# @private
|
|
351
352
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
352
|
-
property :
|
|
353
|
-
|
|
354
|
-
property :page_size, as: 'pageSize'
|
|
353
|
+
property :resource_id, as: 'resourceId', class: Google::Apis::CloudresourcemanagerV1::ResourceId, decorator: Google::Apis::CloudresourcemanagerV1::ResourceId::Representation
|
|
354
|
+
|
|
355
355
|
end
|
|
356
356
|
end
|
|
357
357
|
end
|
|
@@ -155,13 +155,13 @@ module Google
|
|
|
155
155
|
execute_or_queue_command(command, &block)
|
|
156
156
|
end
|
|
157
157
|
|
|
158
|
-
#
|
|
159
|
-
# `project_id` (for example, `my-project-123`).
|
|
160
|
-
# The caller must have
|
|
158
|
+
# Gets a list of ancestors in the resource hierarchy for the Project
|
|
159
|
+
# identified by the specified `project_id` (for example, `my-project-123`).
|
|
160
|
+
# The caller must have read permissions for this Project.
|
|
161
161
|
# @param [String] project_id
|
|
162
|
-
# The
|
|
162
|
+
# The Project ID (for example, `my-project-123`).
|
|
163
163
|
# Required.
|
|
164
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
|
164
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetAncestryRequest] get_ancestry_request_object
|
|
165
165
|
# @param [String] fields
|
|
166
166
|
# Selector specifying which fields to include in a partial response.
|
|
167
167
|
# @param [String] quota_user
|
|
@@ -171,33 +171,33 @@ module Google
|
|
|
171
171
|
# Request-specific options
|
|
172
172
|
#
|
|
173
173
|
# @yield [result, err] Result & error if block supplied
|
|
174
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
|
174
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse] parsed result object
|
|
175
175
|
# @yieldparam err [StandardError] error object if request failed
|
|
176
176
|
#
|
|
177
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
|
177
|
+
# @return [Google::Apis::CloudresourcemanagerV1::GetAncestryResponse]
|
|
178
178
|
#
|
|
179
179
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
180
180
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
181
181
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
182
|
-
def
|
|
183
|
-
command = make_simple_command(:
|
|
184
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
|
185
|
-
command.request_object =
|
|
186
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
|
187
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
|
182
|
+
def get_project_ancestry(project_id, get_ancestry_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
183
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}:getAncestry', options)
|
|
184
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryRequest::Representation
|
|
185
|
+
command.request_object = get_ancestry_request_object
|
|
186
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse::Representation
|
|
187
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::GetAncestryResponse
|
|
188
188
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
189
189
|
command.query['fields'] = fields unless fields.nil?
|
|
190
190
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
191
191
|
execute_or_queue_command(command, &block)
|
|
192
192
|
end
|
|
193
193
|
|
|
194
|
-
#
|
|
195
|
-
#
|
|
196
|
-
# The caller must have
|
|
194
|
+
# Updates the attributes of the Project identified by the specified
|
|
195
|
+
# `project_id` (for example, `my-project-123`).
|
|
196
|
+
# The caller must have modify permissions for this Project.
|
|
197
197
|
# @param [String] project_id
|
|
198
|
-
# The
|
|
198
|
+
# The project ID (for example, `my-project-123`).
|
|
199
199
|
# Required.
|
|
200
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
|
200
|
+
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
|
|
201
201
|
# @param [String] fields
|
|
202
202
|
# Selector specifying which fields to include in a partial response.
|
|
203
203
|
# @param [String] quota_user
|
|
@@ -207,20 +207,20 @@ module Google
|
|
|
207
207
|
# Request-specific options
|
|
208
208
|
#
|
|
209
209
|
# @yield [result, err] Result & error if block supplied
|
|
210
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
|
210
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Project] parsed result object
|
|
211
211
|
# @yieldparam err [StandardError] error object if request failed
|
|
212
212
|
#
|
|
213
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
|
213
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Project]
|
|
214
214
|
#
|
|
215
215
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
216
216
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
217
217
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
218
|
-
def
|
|
219
|
-
command = make_simple_command(:
|
|
220
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
|
221
|
-
command.request_object =
|
|
222
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
|
223
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
|
218
|
+
def update_project(project_id, project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
219
|
+
command = make_simple_command(:put, 'v1/projects/{projectId}', options)
|
|
220
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
|
|
221
|
+
command.request_object = project_object
|
|
222
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
|
|
223
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Project
|
|
224
224
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
225
225
|
command.query['fields'] = fields unless fields.nil?
|
|
226
226
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -370,6 +370,42 @@ module Google
|
|
|
370
370
|
execute_or_queue_command(command, &block)
|
|
371
371
|
end
|
|
372
372
|
|
|
373
|
+
# Request that a new Project be created. The result is an Operation which
|
|
374
|
+
# can be used to track the creation process. It is automatically deleted
|
|
375
|
+
# after a few hours, so there is no need to call DeleteOperation.
|
|
376
|
+
# Our SLO permits Project creation to take up to 30 seconds at the 90th
|
|
377
|
+
# percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile
|
|
378
|
+
# latency. 95th percentile latency is around 11 seconds. We recommend
|
|
379
|
+
# polling at the 5th second with an exponential backoff.
|
|
380
|
+
# @param [Google::Apis::CloudresourcemanagerV1::Project] project_object
|
|
381
|
+
# @param [String] fields
|
|
382
|
+
# Selector specifying which fields to include in a partial response.
|
|
383
|
+
# @param [String] quota_user
|
|
384
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
385
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
386
|
+
# @param [Google::Apis::RequestOptions] options
|
|
387
|
+
# Request-specific options
|
|
388
|
+
#
|
|
389
|
+
# @yield [result, err] Result & error if block supplied
|
|
390
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Operation] parsed result object
|
|
391
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
392
|
+
#
|
|
393
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Operation]
|
|
394
|
+
#
|
|
395
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
396
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
397
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
398
|
+
def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
399
|
+
command = make_simple_command(:post, 'v1/projects', options)
|
|
400
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::Project::Representation
|
|
401
|
+
command.request_object = project_object
|
|
402
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Operation::Representation
|
|
403
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Operation
|
|
404
|
+
command.query['fields'] = fields unless fields.nil?
|
|
405
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
406
|
+
execute_or_queue_command(command, &block)
|
|
407
|
+
end
|
|
408
|
+
|
|
373
409
|
# Sets the IAM access control policy for the specified Project. Replaces
|
|
374
410
|
# any existing policy.
|
|
375
411
|
# The following constraints apply when using `setIamPolicy()`:
|
|
@@ -432,14 +468,14 @@ module Google
|
|
|
432
468
|
execute_or_queue_command(command, &block)
|
|
433
469
|
end
|
|
434
470
|
|
|
435
|
-
#
|
|
436
|
-
#
|
|
437
|
-
#
|
|
438
|
-
#
|
|
439
|
-
#
|
|
440
|
-
#
|
|
441
|
-
#
|
|
442
|
-
# @param [Google::Apis::CloudresourcemanagerV1::
|
|
471
|
+
# Returns permissions that a caller has on the specified Organization.
|
|
472
|
+
# The `resource` field should be the organization's resource name,
|
|
473
|
+
# e.g. "organizations/123".
|
|
474
|
+
# @param [String] resource
|
|
475
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
|
476
|
+
# `resource` is usually specified as a path. For example, a Project
|
|
477
|
+
# resource is specified as `projects/`project``.
|
|
478
|
+
# @param [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
443
479
|
# @param [String] fields
|
|
444
480
|
# Selector specifying which fields to include in a partial response.
|
|
445
481
|
# @param [String] quota_user
|
|
@@ -449,20 +485,58 @@ module Google
|
|
|
449
485
|
# Request-specific options
|
|
450
486
|
#
|
|
451
487
|
# @yield [result, err] Result & error if block supplied
|
|
452
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::
|
|
488
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
|
|
453
489
|
# @yieldparam err [StandardError] error object if request failed
|
|
454
490
|
#
|
|
455
|
-
# @return [Google::Apis::CloudresourcemanagerV1::
|
|
491
|
+
# @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
|
|
456
492
|
#
|
|
457
493
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
458
494
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
459
495
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
460
|
-
def
|
|
461
|
-
command = make_simple_command(:post, 'v1/
|
|
462
|
-
command.request_representation = Google::Apis::CloudresourcemanagerV1::
|
|
463
|
-
command.request_object =
|
|
464
|
-
command.response_representation = Google::Apis::CloudresourcemanagerV1::
|
|
465
|
-
command.response_class = Google::Apis::CloudresourcemanagerV1::
|
|
496
|
+
def test_organization_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
497
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
498
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsRequest::Representation
|
|
499
|
+
command.request_object = test_iam_permissions_request_object
|
|
500
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse::Representation
|
|
501
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse
|
|
502
|
+
command.params['resource'] = resource unless resource.nil?
|
|
503
|
+
command.query['fields'] = fields unless fields.nil?
|
|
504
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
505
|
+
execute_or_queue_command(command, &block)
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
# Gets the access control policy for an Organization resource. May be empty
|
|
509
|
+
# if no such policy or resource exists. The `resource` field should be the
|
|
510
|
+
# organization's resource name, e.g. "organizations/123".
|
|
511
|
+
# @param [String] resource
|
|
512
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
513
|
+
# `resource` is usually specified as a path. For example, a Project
|
|
514
|
+
# resource is specified as `projects/`project``.
|
|
515
|
+
# @param [Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest] get_iam_policy_request_object
|
|
516
|
+
# @param [String] fields
|
|
517
|
+
# Selector specifying which fields to include in a partial response.
|
|
518
|
+
# @param [String] quota_user
|
|
519
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
520
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
521
|
+
# @param [Google::Apis::RequestOptions] options
|
|
522
|
+
# Request-specific options
|
|
523
|
+
#
|
|
524
|
+
# @yield [result, err] Result & error if block supplied
|
|
525
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
|
|
526
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
527
|
+
#
|
|
528
|
+
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
|
|
529
|
+
#
|
|
530
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
531
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
532
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
533
|
+
def get_organization_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
534
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
|
535
|
+
command.request_representation = Google::Apis::CloudresourcemanagerV1::GetIamPolicyRequest::Representation
|
|
536
|
+
command.request_object = get_iam_policy_request_object
|
|
537
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV1::Policy::Representation
|
|
538
|
+
command.response_class = Google::Apis::CloudresourcemanagerV1::Policy
|
|
539
|
+
command.params['resource'] = resource unless resource.nil?
|
|
466
540
|
command.query['fields'] = fields unless fields.nil?
|
|
467
541
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
468
542
|
execute_or_queue_command(command, &block)
|
|
@@ -568,80 +642,6 @@ module Google
|
|
|
568
642
|
execute_or_queue_command(command, &block)
|
|
569
643
|
end
|
|
570
644
|
|
|
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.
|
|
581
|
-
# @param [String] quota_user
|
|
582
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
583
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
584
|
-
# @param [Google::Apis::RequestOptions] options
|
|
585
|
-
# Request-specific options
|
|
586
|
-
#
|
|
587
|
-
# @yield [result, err] Result & error if block supplied
|
|
588
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse] parsed result object
|
|
589
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
590
|
-
#
|
|
591
|
-
# @return [Google::Apis::CloudresourcemanagerV1::TestIamPermissionsResponse]
|
|
592
|
-
#
|
|
593
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
594
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
595
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
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?
|
|
603
|
-
command.query['fields'] = fields unless fields.nil?
|
|
604
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
605
|
-
execute_or_queue_command(command, &block)
|
|
606
|
-
end
|
|
607
|
-
|
|
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
|
-
# @param [String] resource
|
|
612
|
-
# REQUIRED: The resource for which the policy is being requested.
|
|
613
|
-
# `resource` is usually specified as a path. For example, a Project
|
|
614
|
-
# resource is specified as `projects/`project``.
|
|
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.
|
|
618
|
-
# @param [String] quota_user
|
|
619
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
620
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
621
|
-
# @param [Google::Apis::RequestOptions] options
|
|
622
|
-
# Request-specific options
|
|
623
|
-
#
|
|
624
|
-
# @yield [result, err] Result & error if block supplied
|
|
625
|
-
# @yieldparam result [Google::Apis::CloudresourcemanagerV1::Policy] parsed result object
|
|
626
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
627
|
-
#
|
|
628
|
-
# @return [Google::Apis::CloudresourcemanagerV1::Policy]
|
|
629
|
-
#
|
|
630
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
631
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
632
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
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
|
-
command.params['resource'] = resource unless resource.nil?
|
|
640
|
-
command.query['fields'] = fields unless fields.nil?
|
|
641
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
642
|
-
execute_or_queue_command(command, &block)
|
|
643
|
-
end
|
|
644
|
-
|
|
645
645
|
# Gets the latest state of a long-running operation. Clients can use this
|
|
646
646
|
# method to poll the operation result at intervals as recommended by the API
|
|
647
647
|
# service.
|