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