google-api-client 0.9.25 → 0.9.26

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