google-api-client 0.9.26 → 0.9.28

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