google-apis-serviceconsumermanagement_v1beta1 0.1.0 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 886df30b4486ffeb16f2dce1c38e2441d4f3ab323b3f0fa1a1b69ba896c7d5a8
4
- data.tar.gz: 74e2364d4c7f1a0a99304722a9a8828886fd36bea193a96841d2de0cf5ee52c5
3
+ metadata.gz: bfa61684309bc0e459ab9f28fc693311cbc5aa2f094dc68a2226f3fec128c55e
4
+ data.tar.gz: b5dbb0bc348484e4380c7136dc4da44f5bfb426f14d6b1044e7934d9dc827c60
5
5
  SHA512:
6
- metadata.gz: 05cc1b8678a7ef6165d190261549e9a121f0acfbdab037c865239616bdab450b45468d862f2c2938a73b73f78ebd57b1b15fe85490d37693ef533861bf7a9c8f
7
- data.tar.gz: 62f719f5dbe17a82c705f408f90184f2e32f8f1c7fb3ad8e68c2db205937c2300891acaf19cf369e8c76d16b426bdd4cf75edd50cd54a327758ece1a31891dfa
6
+ metadata.gz: 4cc204e844794173cc3e60f161f19bebed01c695c000a17a7e158f5027dc140703ed1f736e58b685faf047c0912b8abee6b0654a0962f2307331333208d86849
7
+ data.tar.gz: a04349e92a2b3186eeefc020369968a81dffe222551247d44b7282275678298a8131f70bf6df929e10741c74323ab3b70ba90be9fbbddb456868dcfd00fa8f52
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-serviceconsumermanagement_v1beta1
2
2
 
3
+ ### v0.2.0 (2021-01-28)
4
+
5
+ * Regenerated from discovery document revision 20210126
6
+ * Regenerated using generator version 0.1.2
7
+
3
8
  ### v0.1.0 (2021-01-07)
4
9
 
5
10
  * Regenerated using generator version 0.1.1
@@ -1543,11 +1543,11 @@ module Google
1543
1543
 
1544
1544
  # The units in which the metric value is reported. It is only applicable if the `
1545
1545
  # value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the
1546
- # representation of the stored metric values. Different systems may scale the
1547
- # values to be more easily displayed (so a value of `0.02KBy` _might_ be
1548
- # displayed as `20By`, and a value of `3523KBy` _might_ be displayed as `3.5MBy`)
1549
- # . However, if the `unit` is `KBy`, then the value of the metric is always in
1550
- # thousands of bytes, no matter how it may be displayed.. If you want a custom
1546
+ # representation of the stored metric values. Different systems might scale the
1547
+ # values to be more easily displayed (so a value of `0.02kBy` _might_ be
1548
+ # displayed as `20By`, and a value of `3523kBy` _might_ be displayed as `3.5MBy`)
1549
+ # . However, if the `unit` is `kBy`, then the value of the metric is always in
1550
+ # thousands of bytes, no matter how it might be displayed. If you want a custom
1551
1551
  # metric to record the exact number of CPU-seconds used by a job, you can create
1552
1552
  # an `INT64 CUMULATIVE` metric whose `unit` is `s`CPU`` (or equivalently `1s`CPU`
1553
1553
  # ` or just `s`). If the job uses 12,005 CPU-seconds, then the value is written
@@ -1555,7 +1555,7 @@ module Google
1555
1555
  # more granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
1556
1556
  # `ks`CPU``, and then write the value `12.005` (which is `12005/1000`), or use `
1557
1557
  # Kis`CPU`` and write `11.723` (which is `12005/1024`). The supported units are
1558
- # a subset of [The Unified Code for Units of Measure](http://unitsofmeasure.org/
1558
+ # a subset of [The Unified Code for Units of Measure](https://unitsofmeasure.org/
1559
1559
  # ucum.html) standard: **Basic units (UNIT)** * `bit` bit * `By` byte * `s`
1560
1560
  # second * `min` minute * `h` hour * `d` day * `1` dimensionless **Prefixes (
1561
1561
  # PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^
@@ -2764,7 +2764,11 @@ module Google
2764
2764
 
2765
2765
  # Requirements that must be satisfied before a consumer project can use the
2766
2766
  # service. Each requirement is of the form /; for example 'serviceusage.
2767
- # googleapis.com/billing-enabled'.
2767
+ # googleapis.com/billing-enabled'. For Google APIs, a Terms of Service
2768
+ # requirement must be included here. Google Cloud APIs must include "
2769
+ # serviceusage.googleapis.com/tos/cloud". Other Google APIs should include "
2770
+ # serviceusage.googleapis.com/tos/universal". Additional ToS can be included
2771
+ # based on the business needs.
2768
2772
  # Corresponds to the JSON property `requirements`
2769
2773
  # @return [Array<String>]
2770
2774
  attr_accessor :requirements
@@ -3008,16 +3012,22 @@ module Google
3008
3012
  class V1Beta1ImportProducerOverridesRequest
3009
3013
  include Google::Apis::Core::Hashable
3010
3014
 
3011
- # Whether to force the creation of the quota overrides. If creating an override
3012
- # would cause the effective quota for the consumer to decrease by more than 10
3013
- # percent, the call is rejected, as a safety measure to avoid accidentally
3014
- # decreasing quota too quickly. Setting the force parameter to true ignores this
3015
- # restriction.
3015
+ # Whether to force the creation of the quota overrides. Setting the force
3016
+ # parameter to 'true' ignores all quota safety checks that would fail the
3017
+ # request. QuotaSafetyCheck lists all such validations.
3016
3018
  # Corresponds to the JSON property `force`
3017
3019
  # @return [Boolean]
3018
3020
  attr_accessor :force
3019
3021
  alias_method :force?, :force
3020
3022
 
3023
+ # The list of quota safety checks to ignore before the override mutation. Unlike
3024
+ # 'force' field that ignores all the quota safety checks, the 'force_only' field
3025
+ # ignores only the specified checks; other checks are still enforced. The 'force'
3026
+ # and 'force_only' fields cannot both be set.
3027
+ # Corresponds to the JSON property `forceOnly`
3028
+ # @return [Array<String>]
3029
+ attr_accessor :force_only
3030
+
3021
3031
  # Import data embedded in the request message
3022
3032
  # Corresponds to the JSON property `inlineSource`
3023
3033
  # @return [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1OverrideInlineSource]
@@ -3030,6 +3040,7 @@ module Google
3030
3040
  # Update properties of this object
3031
3041
  def update!(**args)
3032
3042
  @force = args[:force] if args.key?(:force)
3043
+ @force_only = args[:force_only] if args.key?(:force_only)
3033
3044
  @inline_source = args[:inline_source] if args.key?(:inline_source)
3034
3045
  end
3035
3046
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ServiceconsumermanagementV1beta1
18
18
  # Version of the google-apis-serviceconsumermanagement_v1beta1 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201208"
25
+ REVISION = "20210126"
26
26
  end
27
27
  end
28
28
  end
@@ -1146,6 +1146,7 @@ module Google
1146
1146
  # @private
1147
1147
  class Representation < Google::Apis::Core::JsonRepresentation
1148
1148
  property :force, as: 'force'
1149
+ collection :force_only, as: 'forceOnly'
1149
1150
  property :inline_source, as: 'inlineSource', class: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1OverrideInlineSource, decorator: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1OverrideInlineSource::Representation
1150
1151
 
1151
1152
  end
@@ -245,11 +245,14 @@ module Google
245
245
  # googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
246
246
  # @param [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride] v1_beta1_quota_override_object
247
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.
248
+ # Whether to force the creation of the quota override. Setting the force
249
+ # parameter to 'true' ignores all quota safety checks that would fail the
250
+ # request. QuotaSafetyCheck lists all such validations.
251
+ # @param [Array<String>, String] force_only
252
+ # The list of quota safety checks to ignore before the override mutation. Unlike
253
+ # 'force' field that ignores all the quota safety checks, the 'force_only' field
254
+ # ignores only the specified checks; other checks are still enforced. The 'force'
255
+ # and 'force_only' fields cannot both be set.
253
256
  # @param [String] fields
254
257
  # Selector specifying which fields to include in a partial response.
255
258
  # @param [String] quota_user
@@ -267,7 +270,7 @@ module Google
267
270
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
268
271
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
269
272
  # @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)
273
+ def create_service_consumer_quota_metric_limit_producer_override(parent, v1_beta1_quota_override_object = nil, force: nil, force_only: nil, fields: nil, quota_user: nil, options: nil, &block)
271
274
  command = make_simple_command(:post, 'v1beta1/{+parent}/producerOverrides', options)
272
275
  command.request_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride::Representation
273
276
  command.request_object = v1_beta1_quota_override_object
@@ -275,6 +278,7 @@ module Google
275
278
  command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::Operation
276
279
  command.params['parent'] = parent unless parent.nil?
277
280
  command.query['force'] = force unless force.nil?
281
+ command.query['forceOnly'] = force_only unless force_only.nil?
278
282
  command.query['fields'] = fields unless fields.nil?
279
283
  command.query['quotaUser'] = quota_user unless quota_user.nil?
280
284
  execute_or_queue_command(command, &block)
@@ -286,11 +290,14 @@ module Google
286
290
  # services/compute.googleapis.com/projects/123/consumerQuotaMetrics/compute.
287
291
  # googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerOverrides/4a3f2c1d`
288
292
  # @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.
293
+ # Whether to force the deletion of the quota override. Setting the force
294
+ # parameter to 'true' ignores all quota safety checks that would fail the
295
+ # request. QuotaSafetyCheck lists all such validations.
296
+ # @param [Array<String>, String] force_only
297
+ # The list of quota safety checks to ignore before the override mutation. Unlike
298
+ # 'force' field that ignores all the quota safety checks, the 'force_only' field
299
+ # ignores only the specified checks; other checks are still enforced. The 'force'
300
+ # and 'force_only' fields cannot both be set.
294
301
  # @param [String] fields
295
302
  # Selector specifying which fields to include in a partial response.
296
303
  # @param [String] quota_user
@@ -308,12 +315,13 @@ module Google
308
315
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
309
316
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
310
317
  # @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)
318
+ def delete_service_consumer_quota_metric_limit_producer_override(name, force: nil, force_only: nil, fields: nil, quota_user: nil, options: nil, &block)
312
319
  command = make_simple_command(:delete, 'v1beta1/{+name}', options)
313
320
  command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::Operation::Representation
314
321
  command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::Operation
315
322
  command.params['name'] = name unless name.nil?
316
323
  command.query['force'] = force unless force.nil?
324
+ command.query['forceOnly'] = force_only unless force_only.nil?
317
325
  command.query['fields'] = fields unless fields.nil?
318
326
  command.query['quotaUser'] = quota_user unless quota_user.nil?
319
327
  execute_or_queue_command(command, &block)
@@ -365,11 +373,14 @@ module Google
365
373
  # googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerOverrides/4a3f2c1d`
366
374
  # @param [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride] v1_beta1_quota_override_object
367
375
  # @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.
376
+ # Whether to force the update of the quota override. Setting the force parameter
377
+ # to 'true' ignores all quota safety checks that would fail the request.
378
+ # QuotaSafetyCheck lists all such validations.
379
+ # @param [Array<String>, String] force_only
380
+ # The list of quota safety checks to ignore before the override mutation. Unlike
381
+ # 'force' field that ignores all the quota safety checks, the 'force_only' field
382
+ # ignores only the specified checks; other checks are still enforced. The 'force'
383
+ # and 'force_only' fields cannot both be set.
373
384
  # @param [String] update_mask
374
385
  # Update only the specified fields. If unset, all modifiable fields will be
375
386
  # updated.
@@ -390,7 +401,7 @@ module Google
390
401
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
391
402
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
392
403
  # @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)
404
+ def patch_service_consumer_quota_metric_limit_producer_override(name, v1_beta1_quota_override_object = nil, force: nil, force_only: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
394
405
  command = make_simple_command(:patch, 'v1beta1/{+name}', options)
395
406
  command.request_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride::Representation
396
407
  command.request_object = v1_beta1_quota_override_object
@@ -398,6 +409,7 @@ module Google
398
409
  command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::Operation
399
410
  command.params['name'] = name unless name.nil?
400
411
  command.query['force'] = force unless force.nil?
412
+ command.query['forceOnly'] = force_only unless force_only.nil?
401
413
  command.query['updateMask'] = update_mask unless update_mask.nil?
402
414
  command.query['fields'] = fields unless fields.nil?
403
415
  command.query['quotaUser'] = quota_user unless quota_user.nil?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-serviceconsumermanagement_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
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
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-serviceconsumermanagement_v1beta1/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-serviceconsumermanagement_v1beta1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Service Consumer Management API V1beta1