google-api-client 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/README.md +28 -3
  4. data/api_names.yaml +1 -0
  5. data/api_names_out.yaml +418 -0
  6. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  7. data/generated/google/apis/adsense_v1_4.rb +2 -3
  8. data/generated/google/apis/adsense_v1_4/service.rb +1 -2
  9. data/generated/google/apis/adsensehost_v4_1.rb +3 -3
  10. data/generated/google/apis/adsensehost_v4_1/service.rb +2 -2
  11. data/generated/google/apis/analytics_v3.rb +2 -2
  12. data/generated/google/apis/analytics_v3/classes.rb +42 -0
  13. data/generated/google/apis/analytics_v3/representations.rb +6 -0
  14. data/generated/google/apis/analytics_v3/service.rb +3 -3
  15. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  16. data/generated/google/apis/appsactivity_v1.rb +1 -1
  17. data/generated/google/apis/appsactivity_v1/classes.rb +16 -0
  18. data/generated/google/apis/appsactivity_v1/representations.rb +2 -0
  19. data/generated/google/apis/appstate_v1.rb +1 -1
  20. data/generated/google/apis/bigquery_v2.rb +1 -1
  21. data/generated/google/apis/bigquery_v2/classes.rb +200 -13
  22. data/generated/google/apis/bigquery_v2/representations.rb +54 -0
  23. data/generated/google/apis/books_v1.rb +1 -1
  24. data/generated/google/apis/books_v1/classes.rb +6 -0
  25. data/generated/google/apis/books_v1/representations.rb +1 -0
  26. data/generated/google/apis/books_v1/service.rb +4 -1
  27. data/generated/google/apis/calendar_v3.rb +1 -1
  28. data/generated/google/apis/cloudbuild_v1.rb +2 -3
  29. data/generated/google/apis/cloudbuild_v1/classes.rb +7 -0
  30. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  31. data/generated/google/apis/cloudbuild_v1/service.rb +1 -2
  32. data/generated/google/apis/clouddebugger_v2.rb +2 -2
  33. data/generated/google/apis/clouddebugger_v2/classes.rb +8 -1
  34. data/generated/google/apis/clouddebugger_v2/representations.rb +1 -0
  35. data/generated/google/apis/clouddebugger_v2/service.rb +26 -6
  36. data/generated/google/apis/cloudlatencytest_v2.rb +2 -2
  37. data/generated/google/apis/cloudlatencytest_v2/service.rb +1 -1
  38. data/generated/google/apis/cloudmonitoring_v2beta2.rb +2 -2
  39. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -1
  40. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  41. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +355 -0
  42. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +181 -0
  43. data/generated/google/apis/cloudresourcemanager_v1/service.rb +373 -0
  44. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  45. data/generated/google/apis/clouduseraccounts_beta.rb +3 -2
  46. data/generated/google/apis/clouduseraccounts_beta/classes.rb +52 -30
  47. data/generated/google/apis/clouduseraccounts_beta/representations.rb +1 -0
  48. data/generated/google/apis/clouduseraccounts_beta/service.rb +110 -57
  49. data/generated/google/apis/compute_beta.rb +1 -1
  50. data/generated/google/apis/compute_beta/classes.rb +324 -101
  51. data/generated/google/apis/compute_beta/representations.rb +78 -0
  52. data/generated/google/apis/compute_beta/service.rb +1599 -208
  53. data/generated/google/apis/compute_v1.rb +1 -1
  54. data/generated/google/apis/compute_v1/classes.rb +96 -79
  55. data/generated/google/apis/compute_v1/service.rb +199 -169
  56. data/generated/google/apis/content_v2.rb +2 -2
  57. data/generated/google/apis/content_v2/classes.rb +6 -0
  58. data/generated/google/apis/content_v2/representations.rb +1 -0
  59. data/generated/google/apis/content_v2/service.rb +1 -1
  60. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  61. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
  62. data/generated/google/apis/deploymentmanager_v2/service.rb +10 -10
  63. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  64. data/generated/google/apis/doubleclicksearch_v2.rb +2 -2
  65. data/generated/google/apis/doubleclicksearch_v2/service.rb +1 -1
  66. data/generated/google/apis/drive_v2.rb +1 -1
  67. data/generated/google/apis/drive_v3.rb +1 -1
  68. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  69. data/generated/google/apis/games_management_v1management.rb +1 -1
  70. data/generated/google/apis/games_v1.rb +1 -1
  71. data/generated/google/apis/games_v1/classes.rb +9 -2
  72. data/generated/google/apis/games_v1/representations.rb +1 -0
  73. data/generated/google/apis/genomics_v1.rb +4 -5
  74. data/generated/google/apis/genomics_v1/classes.rb +51 -0
  75. data/generated/google/apis/genomics_v1/representations.rb +17 -0
  76. data/generated/google/apis/genomics_v1/service.rb +44 -8
  77. data/generated/google/apis/gmail_v1.rb +2 -2
  78. data/generated/google/apis/gmail_v1/classes.rb +19 -0
  79. data/generated/google/apis/gmail_v1/representations.rb +13 -0
  80. data/generated/google/apis/gmail_v1/service.rb +43 -2
  81. data/generated/google/apis/iam_v1.rb +36 -0
  82. data/generated/google/apis/iam_v1/classes.rb +665 -0
  83. data/generated/google/apis/iam_v1/representations.rb +325 -0
  84. data/generated/google/apis/iam_v1/service.rb +520 -0
  85. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  86. data/generated/google/apis/identitytoolkit_v3/classes.rb +306 -0
  87. data/generated/google/apis/identitytoolkit_v3/representations.rb +85 -0
  88. data/generated/google/apis/identitytoolkit_v3/service.rb +42 -1
  89. data/generated/google/apis/pagespeedonline_v2.rb +2 -2
  90. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  91. data/generated/google/apis/plus_domains_v1.rb +1 -1
  92. data/generated/google/apis/plus_v1.rb +1 -1
  93. data/generated/google/apis/prediction_v1_6.rb +1 -1
  94. data/generated/google/apis/prediction_v1_6/classes.rb +1 -1
  95. data/generated/google/apis/qpx_express_v1.rb +2 -2
  96. data/generated/google/apis/qpx_express_v1/service.rb +1 -1
  97. data/generated/google/apis/replicapoolupdater_v1beta1.rb +2 -3
  98. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -2
  99. data/generated/google/apis/reseller_v1.rb +2 -2
  100. data/generated/google/apis/reseller_v1/service.rb +1 -1
  101. data/generated/google/apis/site_verification_v1.rb +2 -2
  102. data/generated/google/apis/site_verification_v1/service.rb +1 -1
  103. data/generated/google/apis/storage_v1.rb +2 -2
  104. data/generated/google/apis/storage_v1/service.rb +1 -1
  105. data/generated/google/apis/tagmanager_v1.rb +2 -2
  106. data/generated/google/apis/tagmanager_v1/service.rb +1 -1
  107. data/generated/google/apis/vision_v1.rb +1 -1
  108. data/generated/google/apis/vision_v1/classes.rb +2 -2
  109. data/generated/google/apis/youtube_analytics_v1.rb +2 -2
  110. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -1
  111. data/generated/google/apis/youtube_v3.rb +1 -1
  112. data/generated/google/apis/youtube_v3/classes.rb +8 -0
  113. data/generated/google/apis/youtube_v3/representations.rb +1 -0
  114. data/generated/google/apis/youtubereporting_v1.rb +3 -3
  115. data/generated/google/apis/youtubereporting_v1/classes.rb +1 -2
  116. data/generated/google/apis/youtubereporting_v1/service.rb +4 -4
  117. data/lib/google/apis/core/base_service.rb +84 -6
  118. data/lib/google/apis/version.rb +1 -1
  119. data/script/generate +2 -0
  120. data/spec/google/apis/core/service_spec.rb +66 -0
  121. metadata +10 -2
@@ -0,0 +1,325 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module IamV1
24
+
25
+ class ListServiceAccountsResponse
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ServiceAccount
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class CreateServiceAccountRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Empty
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class ListServiceAccountKeysResponse
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class ServiceAccountKey
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class CreateServiceAccountKeyRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class SignBlobRequest
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class SignBlobResponse
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Policy
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Binding
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class Rule
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class Condition
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class LogConfig
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class CounterOptions
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class DataAccessOptions
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class CloudAuditOptions
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class SetIamPolicyRequest
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class TestIamPermissionsRequest
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class TestIamPermissionsResponse
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class ListServiceAccountsResponse
146
+ # @private
147
+ class Representation < Google::Apis::Core::JsonRepresentation
148
+ collection :accounts, as: 'accounts', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
149
+
150
+ property :next_page_token, as: 'nextPageToken'
151
+ end
152
+ end
153
+
154
+ class ServiceAccount
155
+ # @private
156
+ class Representation < Google::Apis::Core::JsonRepresentation
157
+ property :name, as: 'name'
158
+ property :project_id, as: 'projectId'
159
+ property :unique_id, as: 'uniqueId'
160
+ property :email, as: 'email'
161
+ property :display_name, as: 'displayName'
162
+ property :etag, :base64 => true, as: 'etag'
163
+ property :oauth2_client_id, as: 'oauth2ClientId'
164
+ end
165
+ end
166
+
167
+ class CreateServiceAccountRequest
168
+ # @private
169
+ class Representation < Google::Apis::Core::JsonRepresentation
170
+ property :account_id, as: 'accountId'
171
+ property :service_account, as: 'serviceAccount', class: Google::Apis::IamV1::ServiceAccount, decorator: Google::Apis::IamV1::ServiceAccount::Representation
172
+
173
+ end
174
+ end
175
+
176
+ class Empty
177
+ # @private
178
+ class Representation < Google::Apis::Core::JsonRepresentation
179
+ end
180
+ end
181
+
182
+ class ListServiceAccountKeysResponse
183
+ # @private
184
+ class Representation < Google::Apis::Core::JsonRepresentation
185
+ collection :keys, as: 'keys', class: Google::Apis::IamV1::ServiceAccountKey, decorator: Google::Apis::IamV1::ServiceAccountKey::Representation
186
+
187
+ end
188
+ end
189
+
190
+ class ServiceAccountKey
191
+ # @private
192
+ class Representation < Google::Apis::Core::JsonRepresentation
193
+ property :name, as: 'name'
194
+ property :private_key_type, as: 'privateKeyType'
195
+ property :private_key_data, :base64 => true, as: 'privateKeyData'
196
+ property :valid_after_time, as: 'validAfterTime'
197
+ property :valid_before_time, as: 'validBeforeTime'
198
+ end
199
+ end
200
+
201
+ class CreateServiceAccountKeyRequest
202
+ # @private
203
+ class Representation < Google::Apis::Core::JsonRepresentation
204
+ property :private_key_type, as: 'privateKeyType'
205
+ end
206
+ end
207
+
208
+ class SignBlobRequest
209
+ # @private
210
+ class Representation < Google::Apis::Core::JsonRepresentation
211
+ property :bytes_to_sign, :base64 => true, as: 'bytesToSign'
212
+ end
213
+ end
214
+
215
+ class SignBlobResponse
216
+ # @private
217
+ class Representation < Google::Apis::Core::JsonRepresentation
218
+ property :key_id, as: 'keyId'
219
+ property :signature, :base64 => true, as: 'signature'
220
+ end
221
+ end
222
+
223
+ class Policy
224
+ # @private
225
+ class Representation < Google::Apis::Core::JsonRepresentation
226
+ property :version, as: 'version'
227
+ collection :bindings, as: 'bindings', class: Google::Apis::IamV1::Binding, decorator: Google::Apis::IamV1::Binding::Representation
228
+
229
+ collection :rules, as: 'rules', class: Google::Apis::IamV1::Rule, decorator: Google::Apis::IamV1::Rule::Representation
230
+
231
+ property :etag, :base64 => true, as: 'etag'
232
+ end
233
+ end
234
+
235
+ class Binding
236
+ # @private
237
+ class Representation < Google::Apis::Core::JsonRepresentation
238
+ property :role, as: 'role'
239
+ collection :members, as: 'members'
240
+ end
241
+ end
242
+
243
+ class Rule
244
+ # @private
245
+ class Representation < Google::Apis::Core::JsonRepresentation
246
+ property :description, as: 'description'
247
+ collection :permissions, as: 'permissions'
248
+ property :action, as: 'action'
249
+ collection :in, as: 'in'
250
+ collection :not_in, as: 'notIn'
251
+ collection :conditions, as: 'conditions', class: Google::Apis::IamV1::Condition, decorator: Google::Apis::IamV1::Condition::Representation
252
+
253
+ collection :log_config, as: 'logConfig', class: Google::Apis::IamV1::LogConfig, decorator: Google::Apis::IamV1::LogConfig::Representation
254
+
255
+ end
256
+ end
257
+
258
+ class Condition
259
+ # @private
260
+ class Representation < Google::Apis::Core::JsonRepresentation
261
+ property :iam, as: 'iam'
262
+ property :sys, as: 'sys'
263
+ property :svc, as: 'svc'
264
+ property :op, as: 'op'
265
+ property :value, as: 'value'
266
+ collection :values, as: 'values'
267
+ end
268
+ end
269
+
270
+ class LogConfig
271
+ # @private
272
+ class Representation < Google::Apis::Core::JsonRepresentation
273
+ property :counter, as: 'counter', class: Google::Apis::IamV1::CounterOptions, decorator: Google::Apis::IamV1::CounterOptions::Representation
274
+
275
+ property :data_access, as: 'dataAccess', class: Google::Apis::IamV1::DataAccessOptions, decorator: Google::Apis::IamV1::DataAccessOptions::Representation
276
+
277
+ property :cloud_audit, as: 'cloudAudit', class: Google::Apis::IamV1::CloudAuditOptions, decorator: Google::Apis::IamV1::CloudAuditOptions::Representation
278
+
279
+ end
280
+ end
281
+
282
+ class CounterOptions
283
+ # @private
284
+ class Representation < Google::Apis::Core::JsonRepresentation
285
+ property :metric, as: 'metric'
286
+ property :field, as: 'field'
287
+ end
288
+ end
289
+
290
+ class DataAccessOptions
291
+ # @private
292
+ class Representation < Google::Apis::Core::JsonRepresentation
293
+ end
294
+ end
295
+
296
+ class CloudAuditOptions
297
+ # @private
298
+ class Representation < Google::Apis::Core::JsonRepresentation
299
+ end
300
+ end
301
+
302
+ class SetIamPolicyRequest
303
+ # @private
304
+ class Representation < Google::Apis::Core::JsonRepresentation
305
+ property :policy, as: 'policy', class: Google::Apis::IamV1::Policy, decorator: Google::Apis::IamV1::Policy::Representation
306
+
307
+ end
308
+ end
309
+
310
+ class TestIamPermissionsRequest
311
+ # @private
312
+ class Representation < Google::Apis::Core::JsonRepresentation
313
+ collection :permissions, as: 'permissions'
314
+ end
315
+ end
316
+
317
+ class TestIamPermissionsResponse
318
+ # @private
319
+ class Representation < Google::Apis::Core::JsonRepresentation
320
+ collection :permissions, as: 'permissions'
321
+ end
322
+ end
323
+ end
324
+ end
325
+ end
@@ -0,0 +1,520 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module IamV1
23
+ # Google Identity and Access Management API
24
+ #
25
+ # Manages identity and access control for Google Cloud Platform resources,
26
+ # including the creation of service accounts, which you can use to authenticate
27
+ # to Google and make API calls.
28
+ #
29
+ # @example
30
+ # require 'google/apis/iam_v1'
31
+ #
32
+ # Iam = Google::Apis::IamV1 # Alias the module
33
+ # service = Iam::IamService.new
34
+ #
35
+ # @see https://cloud.google.com/iam/
36
+ class IamService < Google::Apis::Core::BaseService
37
+ # @return [String]
38
+ # API key. Your API key identifies your project and provides you with API access,
39
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
40
+ attr_accessor :key
41
+
42
+ # @return [String]
43
+ # Available to use for quota purposes for server-side applications. Can be any
44
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
45
+ attr_accessor :quota_user
46
+
47
+ def initialize
48
+ super('https://iam.googleapis.com/', '')
49
+ end
50
+
51
+ # Lists service accounts for a project.
52
+ # @param [String] name
53
+ # Required. The resource name of the project associated with the service
54
+ # accounts, such as "projects/123"
55
+ # @param [Fixnum] page_size
56
+ # Optional limit on the number of service accounts to include in the response.
57
+ # Further accounts can subsequently be obtained by including the [
58
+ # ListServiceAccountsResponse.next_page_token] in a subsequent request.
59
+ # @param [String] page_token
60
+ # Optional pagination token returned in an earlier [ListServiceAccountsResponse.
61
+ # next_page_token].
62
+ # @param [String] fields
63
+ # Selector specifying which fields to include in a partial response.
64
+ # @param [String] quota_user
65
+ # Available to use for quota purposes for server-side applications. Can be any
66
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67
+ # @param [Google::Apis::RequestOptions] options
68
+ # Request-specific options
69
+ #
70
+ # @yield [result, err] Result & error if block supplied
71
+ # @yieldparam result [Google::Apis::IamV1::ListServiceAccountsResponse] parsed result object
72
+ # @yieldparam err [StandardError] error object if request failed
73
+ #
74
+ # @return [Google::Apis::IamV1::ListServiceAccountsResponse]
75
+ #
76
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
79
+ def list_project_service_accounts(name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
80
+ command = make_simple_command(:get, 'v1/{+name}/serviceAccounts', options)
81
+ command.response_representation = Google::Apis::IamV1::ListServiceAccountsResponse::Representation
82
+ command.response_class = Google::Apis::IamV1::ListServiceAccountsResponse
83
+ command.params['name'] = name unless name.nil?
84
+ command.query['pageSize'] = page_size unless page_size.nil?
85
+ command.query['pageToken'] = page_token unless page_token.nil?
86
+ command.query['fields'] = fields unless fields.nil?
87
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
88
+ execute_or_queue_command(command, &block)
89
+ end
90
+
91
+ # Gets a ServiceAccount
92
+ # @param [String] name
93
+ # The resource name of the service account in the format "projects/`project`/
94
+ # serviceAccounts/`account`". Using '-' as a wildcard for the project, will
95
+ # infer the project from the account. The account value can be the email address
96
+ # or the unique_id of the service account.
97
+ # @param [String] fields
98
+ # Selector specifying which fields to include in a partial response.
99
+ # @param [String] quota_user
100
+ # Available to use for quota purposes for server-side applications. Can be any
101
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
102
+ # @param [Google::Apis::RequestOptions] options
103
+ # Request-specific options
104
+ #
105
+ # @yield [result, err] Result & error if block supplied
106
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
107
+ # @yieldparam err [StandardError] error object if request failed
108
+ #
109
+ # @return [Google::Apis::IamV1::ServiceAccount]
110
+ #
111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
114
+ def get_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
115
+ command = make_simple_command(:get, 'v1/{+name}', options)
116
+ command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
117
+ command.response_class = Google::Apis::IamV1::ServiceAccount
118
+ command.params['name'] = name unless name.nil?
119
+ command.query['fields'] = fields unless fields.nil?
120
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
121
+ execute_or_queue_command(command, &block)
122
+ end
123
+
124
+ # Creates a service account and returns it.
125
+ # @param [String] name
126
+ # Required. The resource name of the project associated with the service
127
+ # accounts, such as "projects/123"
128
+ # @param [Google::Apis::IamV1::CreateServiceAccountRequest] create_service_account_request_object
129
+ # @param [String] fields
130
+ # Selector specifying which fields to include in a partial response.
131
+ # @param [String] quota_user
132
+ # Available to use for quota purposes for server-side applications. Can be any
133
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
134
+ # @param [Google::Apis::RequestOptions] options
135
+ # Request-specific options
136
+ #
137
+ # @yield [result, err] Result & error if block supplied
138
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
139
+ # @yieldparam err [StandardError] error object if request failed
140
+ #
141
+ # @return [Google::Apis::IamV1::ServiceAccount]
142
+ #
143
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
144
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
145
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
146
+ def create_service_account(name, create_service_account_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
147
+ command = make_simple_command(:post, 'v1/{+name}/serviceAccounts', options)
148
+ command.request_representation = Google::Apis::IamV1::CreateServiceAccountRequest::Representation
149
+ command.request_object = create_service_account_request_object
150
+ command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
151
+ command.response_class = Google::Apis::IamV1::ServiceAccount
152
+ command.params['name'] = name unless name.nil?
153
+ command.query['fields'] = fields unless fields.nil?
154
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
155
+ execute_or_queue_command(command, &block)
156
+ end
157
+
158
+ # Updates a service account. Currently, only the following fields are updatable:
159
+ # 'display_name' . The 'etag' is mandatory.
160
+ # @param [String] name
161
+ # The resource name of the service account in the format "projects/`project`/
162
+ # serviceAccounts/`account`". In requests using '-' as a wildcard for the
163
+ # project, will infer the project from the account and the account value can be
164
+ # the email address or the unique_id of the service account. In responses the
165
+ # resource name will always be in the format "projects/`project`/serviceAccounts/
166
+ # `email`".
167
+ # @param [Google::Apis::IamV1::ServiceAccount] service_account_object
168
+ # @param [String] fields
169
+ # Selector specifying which fields to include in a partial response.
170
+ # @param [String] quota_user
171
+ # Available to use for quota purposes for server-side applications. Can be any
172
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
173
+ # @param [Google::Apis::RequestOptions] options
174
+ # Request-specific options
175
+ #
176
+ # @yield [result, err] Result & error if block supplied
177
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccount] parsed result object
178
+ # @yieldparam err [StandardError] error object if request failed
179
+ #
180
+ # @return [Google::Apis::IamV1::ServiceAccount]
181
+ #
182
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
183
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
184
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
185
+ def update_project_service_account(name, service_account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
186
+ command = make_simple_command(:put, 'v1/{+name}', options)
187
+ command.request_representation = Google::Apis::IamV1::ServiceAccount::Representation
188
+ command.request_object = service_account_object
189
+ command.response_representation = Google::Apis::IamV1::ServiceAccount::Representation
190
+ command.response_class = Google::Apis::IamV1::ServiceAccount
191
+ command.params['name'] = name unless name.nil?
192
+ command.query['fields'] = fields unless fields.nil?
193
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
194
+ execute_or_queue_command(command, &block)
195
+ end
196
+
197
+ # Deletes a service acount.
198
+ # @param [String] name
199
+ # The resource name of the service account in the format "projects/`project`/
200
+ # serviceAccounts/`account`". Using '-' as a wildcard for the project, will
201
+ # infer the project from the account. The account value can be the email address
202
+ # or the unique_id of the service account.
203
+ # @param [String] fields
204
+ # Selector specifying which fields to include in a partial response.
205
+ # @param [String] quota_user
206
+ # Available to use for quota purposes for server-side applications. Can be any
207
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
208
+ # @param [Google::Apis::RequestOptions] options
209
+ # Request-specific options
210
+ #
211
+ # @yield [result, err] Result & error if block supplied
212
+ # @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
213
+ # @yieldparam err [StandardError] error object if request failed
214
+ #
215
+ # @return [Google::Apis::IamV1::Empty]
216
+ #
217
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
218
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
219
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
220
+ def delete_project_service_account(name, fields: nil, quota_user: nil, options: nil, &block)
221
+ command = make_simple_command(:delete, 'v1/{+name}', options)
222
+ command.response_representation = Google::Apis::IamV1::Empty::Representation
223
+ command.response_class = Google::Apis::IamV1::Empty
224
+ command.params['name'] = name unless name.nil?
225
+ command.query['fields'] = fields unless fields.nil?
226
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
227
+ execute_or_queue_command(command, &block)
228
+ end
229
+
230
+ # Signs a blob using a service account.
231
+ # @param [String] name
232
+ # The resource name of the service account in the format "projects/`project`/
233
+ # serviceAccounts/`account`". Using '-' as a wildcard for the project, will
234
+ # infer the project from the account. The account value can be the email address
235
+ # or the unique_id of the service account.
236
+ # @param [Google::Apis::IamV1::SignBlobRequest] sign_blob_request_object
237
+ # @param [String] fields
238
+ # Selector specifying which fields to include in a partial response.
239
+ # @param [String] quota_user
240
+ # Available to use for quota purposes for server-side applications. Can be any
241
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
242
+ # @param [Google::Apis::RequestOptions] options
243
+ # Request-specific options
244
+ #
245
+ # @yield [result, err] Result & error if block supplied
246
+ # @yieldparam result [Google::Apis::IamV1::SignBlobResponse] parsed result object
247
+ # @yieldparam err [StandardError] error object if request failed
248
+ #
249
+ # @return [Google::Apis::IamV1::SignBlobResponse]
250
+ #
251
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
252
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
253
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
254
+ def sign_service_account_blob(name, sign_blob_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
255
+ command = make_simple_command(:post, 'v1/{+name}:signBlob', options)
256
+ command.request_representation = Google::Apis::IamV1::SignBlobRequest::Representation
257
+ command.request_object = sign_blob_request_object
258
+ command.response_representation = Google::Apis::IamV1::SignBlobResponse::Representation
259
+ command.response_class = Google::Apis::IamV1::SignBlobResponse
260
+ command.params['name'] = name unless name.nil?
261
+ command.query['fields'] = fields unless fields.nil?
262
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
263
+ execute_or_queue_command(command, &block)
264
+ end
265
+
266
+ # Returns the IAM access control policy for specified IAM resource.
267
+ # @param [String] resource
268
+ # REQUIRED: The resource for which the policy is being requested. `resource` is
269
+ # usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*
270
+ # disk*`. The format for the path specified in this value is resource specific
271
+ # and is specified in the `getIamPolicy` documentation.
272
+ # @param [String] fields
273
+ # Selector specifying which fields to include in a partial response.
274
+ # @param [String] quota_user
275
+ # Available to use for quota purposes for server-side applications. Can be any
276
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
277
+ # @param [Google::Apis::RequestOptions] options
278
+ # Request-specific options
279
+ #
280
+ # @yield [result, err] Result & error if block supplied
281
+ # @yieldparam result [Google::Apis::IamV1::Policy] parsed result object
282
+ # @yieldparam err [StandardError] error object if request failed
283
+ #
284
+ # @return [Google::Apis::IamV1::Policy]
285
+ #
286
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
287
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
288
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
289
+ def get_project_service_account_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
290
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
291
+ command.response_representation = Google::Apis::IamV1::Policy::Representation
292
+ command.response_class = Google::Apis::IamV1::Policy
293
+ command.params['resource'] = resource unless resource.nil?
294
+ command.query['fields'] = fields unless fields.nil?
295
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
296
+ execute_or_queue_command(command, &block)
297
+ end
298
+
299
+ # Sets the IAM access control policy for the specified IAM resource.
300
+ # @param [String] resource
301
+ # REQUIRED: The resource for which the policy is being specified. `resource` is
302
+ # usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*
303
+ # disk*`. The format for the path specified in this value is resource specific
304
+ # and is specified in the `setIamPolicy` documentation.
305
+ # @param [Google::Apis::IamV1::SetIamPolicyRequest] set_iam_policy_request_object
306
+ # @param [String] fields
307
+ # Selector specifying which fields to include in a partial response.
308
+ # @param [String] quota_user
309
+ # Available to use for quota purposes for server-side applications. Can be any
310
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
311
+ # @param [Google::Apis::RequestOptions] options
312
+ # Request-specific options
313
+ #
314
+ # @yield [result, err] Result & error if block supplied
315
+ # @yieldparam result [Google::Apis::IamV1::Policy] parsed result object
316
+ # @yieldparam err [StandardError] error object if request failed
317
+ #
318
+ # @return [Google::Apis::IamV1::Policy]
319
+ #
320
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
321
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
322
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
323
+ def set_service_account_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
324
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
325
+ command.request_representation = Google::Apis::IamV1::SetIamPolicyRequest::Representation
326
+ command.request_object = set_iam_policy_request_object
327
+ command.response_representation = Google::Apis::IamV1::Policy::Representation
328
+ command.response_class = Google::Apis::IamV1::Policy
329
+ command.params['resource'] = resource unless resource.nil?
330
+ command.query['fields'] = fields unless fields.nil?
331
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
332
+ execute_or_queue_command(command, &block)
333
+ end
334
+
335
+ # Tests the specified permissions against the IAM access control policy for the
336
+ # specified IAM resource.
337
+ # @param [String] resource
338
+ # REQUIRED: The resource for which the policy detail is being requested. `
339
+ # resource` is usually specified as a path, such as `projects/*project*/zones/*
340
+ # zone*/disks/*disk*`. The format for the path specified in this value is
341
+ # resource specific and is specified in the `testIamPermissions` documentation.
342
+ # @param [Google::Apis::IamV1::TestIamPermissionsRequest] test_iam_permissions_request_object
343
+ # @param [String] fields
344
+ # Selector specifying which fields to include in a partial response.
345
+ # @param [String] quota_user
346
+ # Available to use for quota purposes for server-side applications. Can be any
347
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
348
+ # @param [Google::Apis::RequestOptions] options
349
+ # Request-specific options
350
+ #
351
+ # @yield [result, err] Result & error if block supplied
352
+ # @yieldparam result [Google::Apis::IamV1::TestIamPermissionsResponse] parsed result object
353
+ # @yieldparam err [StandardError] error object if request failed
354
+ #
355
+ # @return [Google::Apis::IamV1::TestIamPermissionsResponse]
356
+ #
357
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
358
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
359
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
360
+ def test_service_account_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
361
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
362
+ command.request_representation = Google::Apis::IamV1::TestIamPermissionsRequest::Representation
363
+ command.request_object = test_iam_permissions_request_object
364
+ command.response_representation = Google::Apis::IamV1::TestIamPermissionsResponse::Representation
365
+ command.response_class = Google::Apis::IamV1::TestIamPermissionsResponse
366
+ command.params['resource'] = resource unless resource.nil?
367
+ command.query['fields'] = fields unless fields.nil?
368
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
369
+ execute_or_queue_command(command, &block)
370
+ end
371
+
372
+ # Lists service account keys
373
+ # @param [String] name
374
+ # The resource name of the service account in the format "projects/`project`/
375
+ # serviceAccounts/`account`". Using '-' as a wildcard for the project, will
376
+ # infer the project from the account. The account value can be the email address
377
+ # or the unique_id of the service account.
378
+ # @param [Array<String>, String] key_types
379
+ # The type of keys the user wants to list. If empty, all key types are included
380
+ # in the response. Duplicate key types are not allowed.
381
+ # @param [String] fields
382
+ # Selector specifying which fields to include in a partial response.
383
+ # @param [String] quota_user
384
+ # Available to use for quota purposes for server-side applications. Can be any
385
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
386
+ # @param [Google::Apis::RequestOptions] options
387
+ # Request-specific options
388
+ #
389
+ # @yield [result, err] Result & error if block supplied
390
+ # @yieldparam result [Google::Apis::IamV1::ListServiceAccountKeysResponse] parsed result object
391
+ # @yieldparam err [StandardError] error object if request failed
392
+ #
393
+ # @return [Google::Apis::IamV1::ListServiceAccountKeysResponse]
394
+ #
395
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
396
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
397
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
398
+ def list_project_service_account_keys(name, key_types: nil, fields: nil, quota_user: nil, options: nil, &block)
399
+ command = make_simple_command(:get, 'v1/{+name}/keys', options)
400
+ command.response_representation = Google::Apis::IamV1::ListServiceAccountKeysResponse::Representation
401
+ command.response_class = Google::Apis::IamV1::ListServiceAccountKeysResponse
402
+ command.params['name'] = name unless name.nil?
403
+ command.query['keyTypes'] = key_types unless key_types.nil?
404
+ command.query['fields'] = fields unless fields.nil?
405
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
406
+ execute_or_queue_command(command, &block)
407
+ end
408
+
409
+ # Gets the ServiceAccountKey by key id.
410
+ # @param [String] name
411
+ # The resource name of the service account key in the format "projects/`project`/
412
+ # serviceAccounts/`account`/keys/`key`". Using '-' as a wildcard for the project
413
+ # will infer the project from the account. The account value can be the email
414
+ # address or the unique_id of the service account.
415
+ # @param [String] fields
416
+ # Selector specifying which fields to include in a partial response.
417
+ # @param [String] quota_user
418
+ # Available to use for quota purposes for server-side applications. Can be any
419
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
420
+ # @param [Google::Apis::RequestOptions] options
421
+ # Request-specific options
422
+ #
423
+ # @yield [result, err] Result & error if block supplied
424
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
425
+ # @yieldparam err [StandardError] error object if request failed
426
+ #
427
+ # @return [Google::Apis::IamV1::ServiceAccountKey]
428
+ #
429
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
430
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
431
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
432
+ def get_project_service_account_key(name, fields: nil, quota_user: nil, options: nil, &block)
433
+ command = make_simple_command(:get, 'v1/{+name}', options)
434
+ command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
435
+ command.response_class = Google::Apis::IamV1::ServiceAccountKey
436
+ command.params['name'] = name unless name.nil?
437
+ command.query['fields'] = fields unless fields.nil?
438
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
439
+ execute_or_queue_command(command, &block)
440
+ end
441
+
442
+ # Creates a service account key and returns it.
443
+ # @param [String] name
444
+ # The resource name of the service account in the format "projects/`project`/
445
+ # serviceAccounts/`account`". Using '-' as a wildcard for the project, will
446
+ # infer the project from the account. The account value can be the email address
447
+ # or the unique_id of the service account.
448
+ # @param [Google::Apis::IamV1::CreateServiceAccountKeyRequest] create_service_account_key_request_object
449
+ # @param [String] fields
450
+ # Selector specifying which fields to include in a partial response.
451
+ # @param [String] quota_user
452
+ # Available to use for quota purposes for server-side applications. Can be any
453
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
454
+ # @param [Google::Apis::RequestOptions] options
455
+ # Request-specific options
456
+ #
457
+ # @yield [result, err] Result & error if block supplied
458
+ # @yieldparam result [Google::Apis::IamV1::ServiceAccountKey] parsed result object
459
+ # @yieldparam err [StandardError] error object if request failed
460
+ #
461
+ # @return [Google::Apis::IamV1::ServiceAccountKey]
462
+ #
463
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
464
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
465
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
466
+ def create_service_account_key(name, create_service_account_key_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
467
+ command = make_simple_command(:post, 'v1/{+name}/keys', options)
468
+ command.request_representation = Google::Apis::IamV1::CreateServiceAccountKeyRequest::Representation
469
+ command.request_object = create_service_account_key_request_object
470
+ command.response_representation = Google::Apis::IamV1::ServiceAccountKey::Representation
471
+ command.response_class = Google::Apis::IamV1::ServiceAccountKey
472
+ command.params['name'] = name unless name.nil?
473
+ command.query['fields'] = fields unless fields.nil?
474
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
475
+ execute_or_queue_command(command, &block)
476
+ end
477
+
478
+ # Deletes a service account key.
479
+ # @param [String] name
480
+ # The resource name of the service account key in the format "projects/`project`/
481
+ # serviceAccounts/`account`/keys/`key`". Using '-' as a wildcard for the project
482
+ # will infer the project from the account. The account value can be the email
483
+ # address or the unique_id of the service account.
484
+ # @param [String] fields
485
+ # Selector specifying which fields to include in a partial response.
486
+ # @param [String] quota_user
487
+ # Available to use for quota purposes for server-side applications. Can be any
488
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
489
+ # @param [Google::Apis::RequestOptions] options
490
+ # Request-specific options
491
+ #
492
+ # @yield [result, err] Result & error if block supplied
493
+ # @yieldparam result [Google::Apis::IamV1::Empty] parsed result object
494
+ # @yieldparam err [StandardError] error object if request failed
495
+ #
496
+ # @return [Google::Apis::IamV1::Empty]
497
+ #
498
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
499
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
500
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
501
+ def delete_project_service_account_key(name, fields: nil, quota_user: nil, options: nil, &block)
502
+ command = make_simple_command(:delete, 'v1/{+name}', options)
503
+ command.response_representation = Google::Apis::IamV1::Empty::Representation
504
+ command.response_class = Google::Apis::IamV1::Empty
505
+ command.params['name'] = name unless name.nil?
506
+ command.query['fields'] = fields unless fields.nil?
507
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
508
+ execute_or_queue_command(command, &block)
509
+ end
510
+
511
+ protected
512
+
513
+ def apply_command_defaults(command)
514
+ command.query['key'] = key unless key.nil?
515
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
516
+ end
517
+ end
518
+ end
519
+ end
520
+ end