google-apis-serviceconsumermanagement_v1beta1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,416 @@
1
+ # Copyright 2020 Google LLC
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 ServiceconsumermanagementV1beta1
23
+ # Service Consumer Management API
24
+ #
25
+ # Manages the service consumers of a Service Infrastructure service.
26
+ #
27
+ # @example
28
+ # require 'google/apis/serviceconsumermanagement_v1beta1'
29
+ #
30
+ # Serviceconsumermanagement = Google::Apis::ServiceconsumermanagementV1beta1 # Alias the module
31
+ # service = Serviceconsumermanagement::ServiceConsumerManagementService.new
32
+ #
33
+ # @see https://cloud.google.com/service-consumer-management/docs/overview
34
+ class ServiceConsumerManagementService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://serviceconsumermanagement.googleapis.com/', '',
47
+ client_name: 'google-apis-serviceconsumermanagement_v1beta1',
48
+ client_version: Google::Apis::ServiceconsumermanagementV1beta1::GEM_VERSION)
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Gets the latest state of a long-running operation. Clients can use this method
53
+ # to poll the operation result at intervals as recommended by the API service.
54
+ # @param [String] name
55
+ # The name of the operation resource.
56
+ # @param [String] fields
57
+ # Selector specifying which fields to include in a partial response.
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 [Google::Apis::RequestOptions] options
62
+ # Request-specific options
63
+ #
64
+ # @yield [result, err] Result & error if block supplied
65
+ # @yieldparam result [Google::Apis::ServiceconsumermanagementV1beta1::Operation] parsed result object
66
+ # @yieldparam err [StandardError] error object if request failed
67
+ #
68
+ # @return [Google::Apis::ServiceconsumermanagementV1beta1::Operation]
69
+ #
70
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
73
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
74
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
75
+ command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::Operation::Representation
76
+ command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::Operation
77
+ command.params['name'] = name unless name.nil?
78
+ command.query['fields'] = fields unless fields.nil?
79
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
80
+ execute_or_queue_command(command, &block)
81
+ end
82
+
83
+ # Retrieves a summary of quota information for a specific quota metric.
84
+ # @param [String] name
85
+ # The resource name of the quota metric, returned by a ListConsumerQuotaMetrics
86
+ # call. An example name would be: `services/compute.googleapis.com/projects/123/
87
+ # consumerQuotaMetrics/compute.googleapis.com%2Fcpus`
88
+ # @param [String] view
89
+ # Specifies the level of detail for quota information in the response.
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
92
+ # @param [String] quota_user
93
+ # Available to use for quota purposes for server-side applications. Can be any
94
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
95
+ # @param [Google::Apis::RequestOptions] options
96
+ # Request-specific options
97
+ #
98
+ # @yield [result, err] Result & error if block supplied
99
+ # @yieldparam result [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerQuotaMetric] parsed result object
100
+ # @yieldparam err [StandardError] error object if request failed
101
+ #
102
+ # @return [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerQuotaMetric]
103
+ #
104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
107
+ def get_service_consumer_quota_metric(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
108
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
109
+ command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerQuotaMetric::Representation
110
+ command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerQuotaMetric
111
+ command.params['name'] = name unless name.nil?
112
+ command.query['view'] = view unless view.nil?
113
+ command.query['fields'] = fields unless fields.nil?
114
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
115
+ execute_or_queue_command(command, &block)
116
+ end
117
+
118
+ # Create or update multiple producer overrides atomically, all on the same
119
+ # consumer, but on many different metrics or limits. The name field in the quota
120
+ # override message should not be set.
121
+ # @param [String] parent
122
+ # The resource name of the consumer. An example name would be: `services/compute.
123
+ # googleapis.com/projects/123`
124
+ # @param [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ImportProducerOverridesRequest] v1_beta1_import_producer_overrides_request_object
125
+ # @param [String] fields
126
+ # Selector specifying which fields to include in a partial response.
127
+ # @param [String] quota_user
128
+ # Available to use for quota purposes for server-side applications. Can be any
129
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
130
+ # @param [Google::Apis::RequestOptions] options
131
+ # Request-specific options
132
+ #
133
+ # @yield [result, err] Result & error if block supplied
134
+ # @yieldparam result [Google::Apis::ServiceconsumermanagementV1beta1::Operation] parsed result object
135
+ # @yieldparam err [StandardError] error object if request failed
136
+ #
137
+ # @return [Google::Apis::ServiceconsumermanagementV1beta1::Operation]
138
+ #
139
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
140
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
141
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
142
+ def import_service_consumer_quota_metric_producer_overrides(parent, v1_beta1_import_producer_overrides_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
143
+ command = make_simple_command(:post, 'v1beta1/{+parent}/consumerQuotaMetrics:importProducerOverrides', options)
144
+ command.request_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ImportProducerOverridesRequest::Representation
145
+ command.request_object = v1_beta1_import_producer_overrides_request_object
146
+ command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::Operation::Representation
147
+ command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::Operation
148
+ command.params['parent'] = parent unless parent.nil?
149
+ command.query['fields'] = fields unless fields.nil?
150
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
151
+ execute_or_queue_command(command, &block)
152
+ end
153
+
154
+ # Retrieves a summary of all quota information about this consumer that is
155
+ # visible to the service producer, for each quota metric defined by the service.
156
+ # Each metric includes information about all of its defined limits. Each limit
157
+ # includes the limit configuration (quota unit, preciseness, default value), the
158
+ # current effective limit value, and all of the overrides applied to the limit.
159
+ # @param [String] parent
160
+ # Parent of the quotas resource. An example parent would be: `services/
161
+ # serviceconsumermanagement.googleapis.com/projects/123`
162
+ # @param [Fixnum] page_size
163
+ # Requested size of the next page of data.
164
+ # @param [String] page_token
165
+ # Token identifying which result to start with; returned by a previous list call.
166
+ # @param [String] view
167
+ # Specifies the level of detail for quota information in the response.
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::ServiceconsumermanagementV1beta1::V1Beta1ListConsumerQuotaMetricsResponse] parsed result object
178
+ # @yieldparam err [StandardError] error object if request failed
179
+ #
180
+ # @return [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ListConsumerQuotaMetricsResponse]
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 list_service_consumer_quota_metrics(parent, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
186
+ command = make_simple_command(:get, 'v1beta1/{+parent}/consumerQuotaMetrics', options)
187
+ command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ListConsumerQuotaMetricsResponse::Representation
188
+ command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ListConsumerQuotaMetricsResponse
189
+ command.params['parent'] = parent unless parent.nil?
190
+ command.query['pageSize'] = page_size unless page_size.nil?
191
+ command.query['pageToken'] = page_token unless page_token.nil?
192
+ command.query['view'] = view unless view.nil?
193
+ command.query['fields'] = fields unless fields.nil?
194
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
195
+ execute_or_queue_command(command, &block)
196
+ end
197
+
198
+ # Retrieves a summary of quota information for a specific quota limit.
199
+ # @param [String] name
200
+ # The resource name of the quota limit, returned by a ListConsumerQuotaMetrics
201
+ # or GetConsumerQuotaMetric call. An example name would be: `services/compute.
202
+ # googleapis.com/projects/123/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/
203
+ # limits/%2Fproject%2Fregion`
204
+ # @param [String] view
205
+ # Specifies the level of detail for quota information in the response.
206
+ # @param [String] fields
207
+ # Selector specifying which fields to include in a partial response.
208
+ # @param [String] quota_user
209
+ # Available to use for quota purposes for server-side applications. Can be any
210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
211
+ # @param [Google::Apis::RequestOptions] options
212
+ # Request-specific options
213
+ #
214
+ # @yield [result, err] Result & error if block supplied
215
+ # @yieldparam result [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerQuotaLimit] parsed result object
216
+ # @yieldparam err [StandardError] error object if request failed
217
+ #
218
+ # @return [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerQuotaLimit]
219
+ #
220
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
221
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
222
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
223
+ def get_service_consumer_quota_metric_limit(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
224
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
225
+ command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerQuotaLimit::Representation
226
+ command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerQuotaLimit
227
+ command.params['name'] = name unless name.nil?
228
+ command.query['view'] = view unless view.nil?
229
+ command.query['fields'] = fields unless fields.nil?
230
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
231
+ execute_or_queue_command(command, &block)
232
+ end
233
+
234
+ # Creates a producer override. A producer override is applied by the owner or
235
+ # administrator of a service to increase or decrease the amount of quota a
236
+ # consumer of the service is allowed to use. To create multiple overrides at
237
+ # once, use ImportProducerOverrides instead. If an override with the specified
238
+ # dimensions already exists, this call will fail. To overwrite an existing
239
+ # override if one is already present ("upsert" semantics), use
240
+ # ImportProducerOverrides instead.
241
+ # @param [String] parent
242
+ # The resource name of the parent quota limit, returned by a
243
+ # ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would
244
+ # be: `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.
245
+ # googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
246
+ # @param [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride] v1_beta1_quota_override_object
247
+ # @param [Boolean] force
248
+ # Whether to force the creation of the quota override. If creating an override
249
+ # would cause the effective quota for the consumer to decrease by more than 10
250
+ # percent, the call is rejected, as a safety measure to avoid accidentally
251
+ # decreasing quota too quickly. Setting the force parameter to true ignores this
252
+ # restriction.
253
+ # @param [String] fields
254
+ # Selector specifying which fields to include in a partial response.
255
+ # @param [String] quota_user
256
+ # Available to use for quota purposes for server-side applications. Can be any
257
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
258
+ # @param [Google::Apis::RequestOptions] options
259
+ # Request-specific options
260
+ #
261
+ # @yield [result, err] Result & error if block supplied
262
+ # @yieldparam result [Google::Apis::ServiceconsumermanagementV1beta1::Operation] parsed result object
263
+ # @yieldparam err [StandardError] error object if request failed
264
+ #
265
+ # @return [Google::Apis::ServiceconsumermanagementV1beta1::Operation]
266
+ #
267
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
268
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
269
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
270
+ def create_service_consumer_quota_metric_limit_producer_override(parent, v1_beta1_quota_override_object = nil, force: nil, fields: nil, quota_user: nil, options: nil, &block)
271
+ command = make_simple_command(:post, 'v1beta1/{+parent}/producerOverrides', options)
272
+ command.request_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride::Representation
273
+ command.request_object = v1_beta1_quota_override_object
274
+ command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::Operation::Representation
275
+ command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::Operation
276
+ command.params['parent'] = parent unless parent.nil?
277
+ command.query['force'] = force unless force.nil?
278
+ command.query['fields'] = fields unless fields.nil?
279
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
280
+ execute_or_queue_command(command, &block)
281
+ end
282
+
283
+ # Deletes a producer override.
284
+ # @param [String] name
285
+ # The resource name of the override to delete. An example name would be: `
286
+ # services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.
287
+ # googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerOverrides/4a3f2c1d`
288
+ # @param [Boolean] force
289
+ # Whether to force the deletion of the quota override. If deleting an override
290
+ # would cause the effective quota for the consumer to decrease by more than 10
291
+ # percent, the call is rejected, as a safety measure to avoid accidentally
292
+ # decreasing quota too quickly. Setting the force parameter to true ignores this
293
+ # restriction.
294
+ # @param [String] fields
295
+ # Selector specifying which fields to include in a partial response.
296
+ # @param [String] quota_user
297
+ # Available to use for quota purposes for server-side applications. Can be any
298
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
299
+ # @param [Google::Apis::RequestOptions] options
300
+ # Request-specific options
301
+ #
302
+ # @yield [result, err] Result & error if block supplied
303
+ # @yieldparam result [Google::Apis::ServiceconsumermanagementV1beta1::Operation] parsed result object
304
+ # @yieldparam err [StandardError] error object if request failed
305
+ #
306
+ # @return [Google::Apis::ServiceconsumermanagementV1beta1::Operation]
307
+ #
308
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
309
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
310
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
311
+ def delete_service_consumer_quota_metric_limit_producer_override(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
312
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
313
+ command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::Operation::Representation
314
+ command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::Operation
315
+ command.params['name'] = name unless name.nil?
316
+ command.query['force'] = force unless force.nil?
317
+ command.query['fields'] = fields unless fields.nil?
318
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
319
+ execute_or_queue_command(command, &block)
320
+ end
321
+
322
+ # Lists all producer overrides on this limit.
323
+ # @param [String] parent
324
+ # The resource name of the parent quota limit, returned by a
325
+ # ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would
326
+ # be: `services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.
327
+ # googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
328
+ # @param [Fixnum] page_size
329
+ # Requested size of the next page of data.
330
+ # @param [String] page_token
331
+ # Token identifying which result to start with; returned by a previous list call.
332
+ # @param [String] fields
333
+ # Selector specifying which fields to include in a partial response.
334
+ # @param [String] quota_user
335
+ # Available to use for quota purposes for server-side applications. Can be any
336
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
337
+ # @param [Google::Apis::RequestOptions] options
338
+ # Request-specific options
339
+ #
340
+ # @yield [result, err] Result & error if block supplied
341
+ # @yieldparam result [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ListProducerOverridesResponse] parsed result object
342
+ # @yieldparam err [StandardError] error object if request failed
343
+ #
344
+ # @return [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ListProducerOverridesResponse]
345
+ #
346
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
347
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
348
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
349
+ def list_service_consumer_quota_metric_limit_producer_overrides(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
350
+ command = make_simple_command(:get, 'v1beta1/{+parent}/producerOverrides', options)
351
+ command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ListProducerOverridesResponse::Representation
352
+ command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ListProducerOverridesResponse
353
+ command.params['parent'] = parent unless parent.nil?
354
+ command.query['pageSize'] = page_size unless page_size.nil?
355
+ command.query['pageToken'] = page_token unless page_token.nil?
356
+ command.query['fields'] = fields unless fields.nil?
357
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
358
+ execute_or_queue_command(command, &block)
359
+ end
360
+
361
+ # Updates a producer override.
362
+ # @param [String] name
363
+ # The resource name of the override to update. An example name would be: `
364
+ # services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.
365
+ # googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerOverrides/4a3f2c1d`
366
+ # @param [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride] v1_beta1_quota_override_object
367
+ # @param [Boolean] force
368
+ # Whether to force the update of the quota override. If updating an override
369
+ # would cause the effective quota for the consumer to decrease by more than 10
370
+ # percent, the call is rejected, as a safety measure to avoid accidentally
371
+ # decreasing quota too quickly. Setting the force parameter to true ignores this
372
+ # restriction.
373
+ # @param [String] update_mask
374
+ # Update only the specified fields. If unset, all modifiable fields will be
375
+ # updated.
376
+ # @param [String] fields
377
+ # Selector specifying which fields to include in a partial response.
378
+ # @param [String] quota_user
379
+ # Available to use for quota purposes for server-side applications. Can be any
380
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
381
+ # @param [Google::Apis::RequestOptions] options
382
+ # Request-specific options
383
+ #
384
+ # @yield [result, err] Result & error if block supplied
385
+ # @yieldparam result [Google::Apis::ServiceconsumermanagementV1beta1::Operation] parsed result object
386
+ # @yieldparam err [StandardError] error object if request failed
387
+ #
388
+ # @return [Google::Apis::ServiceconsumermanagementV1beta1::Operation]
389
+ #
390
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
391
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
392
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
393
+ def patch_service_consumer_quota_metric_limit_producer_override(name, v1_beta1_quota_override_object = nil, force: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
394
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
395
+ command.request_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride::Representation
396
+ command.request_object = v1_beta1_quota_override_object
397
+ command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::Operation::Representation
398
+ command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::Operation
399
+ command.params['name'] = name unless name.nil?
400
+ command.query['force'] = force unless force.nil?
401
+ command.query['updateMask'] = update_mask unless update_mask.nil?
402
+ command.query['fields'] = fields unless fields.nil?
403
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
404
+ execute_or_queue_command(command, &block)
405
+ end
406
+
407
+ protected
408
+
409
+ def apply_command_defaults(command)
410
+ command.query['key'] = key unless key.nil?
411
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
412
+ end
413
+ end
414
+ end
415
+ end
416
+ end
metadata ADDED
@@ -0,0 +1,76 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google-apis-serviceconsumermanagement_v1beta1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Google LLC
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-01-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: google-apis-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.1'
27
+ description: This is the simple REST client for Service Consumer Management API V1beta1.
28
+ Simple REST clients are Ruby client libraries that provide access to Google services
29
+ via their HTTP REST API endpoints. These libraries are generated and updated automatically
30
+ based on the discovery documents published by the service, and they handle most
31
+ concerns such as authentication, pagination, retry, timeouts, and logging. You can
32
+ use this client to access the Service Consumer Management API, but note that some
33
+ services may provide a separate modern client that is easier to use.
34
+ email: googleapis-packages@google.com
35
+ executables: []
36
+ extensions: []
37
+ extra_rdoc_files: []
38
+ files:
39
+ - ".yardopts"
40
+ - CHANGELOG.md
41
+ - LICENSE.md
42
+ - OVERVIEW.md
43
+ - lib/google-apis-serviceconsumermanagement_v1beta1.rb
44
+ - lib/google/apis/serviceconsumermanagement_v1beta1.rb
45
+ - lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb
46
+ - lib/google/apis/serviceconsumermanagement_v1beta1/gem_version.rb
47
+ - lib/google/apis/serviceconsumermanagement_v1beta1/representations.rb
48
+ - lib/google/apis/serviceconsumermanagement_v1beta1/service.rb
49
+ homepage: https://github.com/google/google-api-ruby-client
50
+ licenses:
51
+ - Apache-2.0
52
+ metadata:
53
+ bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-serviceconsumermanagement_v1beta1/CHANGELOG.md
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-serviceconsumermanagement_v1beta1/v0.1.0
56
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-serviceconsumermanagement_v1beta1
57
+ post_install_message:
58
+ rdoc_options: []
59
+ require_paths:
60
+ - lib
61
+ required_ruby_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: '2.4'
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ requirements: []
72
+ rubygems_version: 3.1.4
73
+ signing_key:
74
+ specification_version: 4
75
+ summary: Simple REST client for Service Consumer Management API V1beta1
76
+ test_files: []