google-apis-serviceusage_v1beta1 0.1.0 → 0.6.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 +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/google/apis/serviceusage_v1beta1.rb +1 -1
- data/lib/google/apis/serviceusage_v1beta1/classes.rb +50 -22
- data/lib/google/apis/serviceusage_v1beta1/gem_version.rb +3 -3
- data/lib/google/apis/serviceusage_v1beta1/representations.rb +4 -0
- data/lib/google/apis/serviceusage_v1beta1/service.rb +60 -36
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 720487f3607be69e52405f2f73986df73ca99d8f9b62f08f41756957164a4439
|
4
|
+
data.tar.gz: c360724d8ec3515c8385893292b8365d9e0d72b00f03d50f7f0929b240f9ca2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 153477abe5e587528f5eb17285ba045d8e41aeedfda6c1b2e852621d8da72b4b27da57ebc9faf5d5c89ce34a4ce8700c39d3d7eb12d334b0d4e2db18760fb862
|
7
|
+
data.tar.gz: f697ab07163962b6da137a2ca12f908bf3e8bdad655dc8eb26c1656ca34318cf84fbf3847b3c5fd299cfd296644d3d827c87828c381dde43ec77dc8b9e5239ca
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-serviceusage_v1beta1
|
2
2
|
|
3
|
+
### v0.6.0 (2021-03-23)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210319
|
6
|
+
* Regenerated using generator version 0.2.0
|
7
|
+
|
8
|
+
### v0.5.0 (2021-03-04)
|
9
|
+
|
10
|
+
* Unspecified changes
|
11
|
+
|
12
|
+
### v0.4.0 (2021-02-19)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210217
|
15
|
+
|
16
|
+
### v0.3.0 (2021-02-11)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210209
|
19
|
+
|
20
|
+
### v0.2.0 (2021-01-28)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210126
|
23
|
+
* Regenerated using generator version 0.1.2
|
24
|
+
|
3
25
|
### v0.1.0 (2021-01-07)
|
4
26
|
|
5
27
|
* Regenerated using generator version 0.1.1
|
@@ -31,7 +31,7 @@ module Google
|
|
31
31
|
# This is NOT the gem version.
|
32
32
|
VERSION = 'V1beta1'
|
33
33
|
|
34
|
-
#
|
34
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
35
35
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
36
36
|
|
37
37
|
# View your data across Google Cloud Platform services
|
@@ -694,6 +694,15 @@ module Google
|
|
694
694
|
# @return [Array<Google::Apis::ServiceusageV1beta1::ConsumerQuotaLimit>]
|
695
695
|
attr_accessor :consumer_quota_limits
|
696
696
|
|
697
|
+
# The quota limits targeting the descendant containers of the consumer in
|
698
|
+
# request. If the consumer in request is of type `organizations` or `folders`,
|
699
|
+
# the field will list per-project limits in the metric; if the consumer in
|
700
|
+
# request is of type `project`, the field will be empty. The `quota_buckets`
|
701
|
+
# field of each descendant consumer quota limit will not be populated.
|
702
|
+
# Corresponds to the JSON property `descendantConsumerQuotaLimits`
|
703
|
+
# @return [Array<Google::Apis::ServiceusageV1beta1::ConsumerQuotaLimit>]
|
704
|
+
attr_accessor :descendant_consumer_quota_limits
|
705
|
+
|
697
706
|
# The display name of the metric. An example name would be: "CPUs"
|
698
707
|
# Corresponds to the JSON property `displayName`
|
699
708
|
# @return [String]
|
@@ -725,6 +734,7 @@ module Google
|
|
725
734
|
# Update properties of this object
|
726
735
|
def update!(**args)
|
727
736
|
@consumer_quota_limits = args[:consumer_quota_limits] if args.key?(:consumer_quota_limits)
|
737
|
+
@descendant_consumer_quota_limits = args[:descendant_consumer_quota_limits] if args.key?(:descendant_consumer_quota_limits)
|
728
738
|
@display_name = args[:display_name] if args.key?(:display_name)
|
729
739
|
@metric = args[:metric] if args.key?(:metric)
|
730
740
|
@name = args[:name] if args.key?(:name)
|
@@ -1381,11 +1391,11 @@ module Google
|
|
1381
1391
|
# and delegates other aspects to sub-sections. Each sub-section is either a
|
1382
1392
|
# proto message or a repeated proto message that configures a specific aspect,
|
1383
1393
|
# such as auth. See each proto message definition for details. Example: type:
|
1384
|
-
# google.api.Service
|
1385
|
-
#
|
1386
|
-
#
|
1387
|
-
#
|
1388
|
-
#
|
1394
|
+
# google.api.Service name: calendar.googleapis.com title: Google Calendar API
|
1395
|
+
# apis: - name: google.calendar.v3.Calendar authentication: providers: - id:
|
1396
|
+
# google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs
|
1397
|
+
# issuer: https://securetoken.google.com rules: - selector: "*" requirements:
|
1398
|
+
# provider_id: google_calendar_auth
|
1389
1399
|
class GoogleApiService
|
1390
1400
|
include Google::Apis::Core::Hashable
|
1391
1401
|
|
@@ -2198,16 +2208,22 @@ module Google
|
|
2198
2208
|
class ImportAdminOverridesRequest
|
2199
2209
|
include Google::Apis::Core::Hashable
|
2200
2210
|
|
2201
|
-
# Whether to force the creation of the quota overrides.
|
2202
|
-
#
|
2203
|
-
#
|
2204
|
-
# decreasing quota too quickly. Setting the force parameter to true ignores this
|
2205
|
-
# restriction.
|
2211
|
+
# Whether to force the creation of the quota overrides. Setting the force
|
2212
|
+
# parameter to 'true' ignores all quota safety checks that would fail the
|
2213
|
+
# request. QuotaSafetyCheck lists all such validations.
|
2206
2214
|
# Corresponds to the JSON property `force`
|
2207
2215
|
# @return [Boolean]
|
2208
2216
|
attr_accessor :force
|
2209
2217
|
alias_method :force?, :force
|
2210
2218
|
|
2219
|
+
# The list of quota safety checks to ignore before the override mutation. Unlike
|
2220
|
+
# 'force' field that ignores all the quota safety checks, the 'force_only' field
|
2221
|
+
# ignores only the specified checks; other checks are still enforced. The 'force'
|
2222
|
+
# and 'force_only' fields cannot both be set.
|
2223
|
+
# Corresponds to the JSON property `forceOnly`
|
2224
|
+
# @return [Array<String>]
|
2225
|
+
attr_accessor :force_only
|
2226
|
+
|
2211
2227
|
# Import data embedded in the request message
|
2212
2228
|
# Corresponds to the JSON property `inlineSource`
|
2213
2229
|
# @return [Google::Apis::ServiceusageV1beta1::OverrideInlineSource]
|
@@ -2220,6 +2236,7 @@ module Google
|
|
2220
2236
|
# Update properties of this object
|
2221
2237
|
def update!(**args)
|
2222
2238
|
@force = args[:force] if args.key?(:force)
|
2239
|
+
@force_only = args[:force_only] if args.key?(:force_only)
|
2223
2240
|
@inline_source = args[:inline_source] if args.key?(:inline_source)
|
2224
2241
|
end
|
2225
2242
|
end
|
@@ -2266,16 +2283,22 @@ module Google
|
|
2266
2283
|
class ImportConsumerOverridesRequest
|
2267
2284
|
include Google::Apis::Core::Hashable
|
2268
2285
|
|
2269
|
-
# Whether to force the creation of the quota overrides.
|
2270
|
-
#
|
2271
|
-
#
|
2272
|
-
# decreasing quota too quickly. Setting the force parameter to true ignores this
|
2273
|
-
# restriction.
|
2286
|
+
# Whether to force the creation of the quota overrides. Setting the force
|
2287
|
+
# parameter to 'true' ignores all quota safety checks that would fail the
|
2288
|
+
# request. QuotaSafetyCheck lists all such validations.
|
2274
2289
|
# Corresponds to the JSON property `force`
|
2275
2290
|
# @return [Boolean]
|
2276
2291
|
attr_accessor :force
|
2277
2292
|
alias_method :force?, :force
|
2278
2293
|
|
2294
|
+
# The list of quota safety checks to ignore before the override mutation. Unlike
|
2295
|
+
# 'force' field that ignores all the quota safety checks, the 'force_only' field
|
2296
|
+
# ignores only the specified checks; other checks are still enforced. The 'force'
|
2297
|
+
# and 'force_only' fields cannot both be set.
|
2298
|
+
# Corresponds to the JSON property `forceOnly`
|
2299
|
+
# @return [Array<String>]
|
2300
|
+
attr_accessor :force_only
|
2301
|
+
|
2279
2302
|
# Import data embedded in the request message
|
2280
2303
|
# Corresponds to the JSON property `inlineSource`
|
2281
2304
|
# @return [Google::Apis::ServiceusageV1beta1::OverrideInlineSource]
|
@@ -2288,6 +2311,7 @@ module Google
|
|
2288
2311
|
# Update properties of this object
|
2289
2312
|
def update!(**args)
|
2290
2313
|
@force = args[:force] if args.key?(:force)
|
2314
|
+
@force_only = args[:force_only] if args.key?(:force_only)
|
2291
2315
|
@inline_source = args[:inline_source] if args.key?(:inline_source)
|
2292
2316
|
end
|
2293
2317
|
end
|
@@ -2743,11 +2767,11 @@ module Google
|
|
2743
2767
|
|
2744
2768
|
# The units in which the metric value is reported. It is only applicable if the `
|
2745
2769
|
# value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the
|
2746
|
-
# representation of the stored metric values. Different systems
|
2747
|
-
# values to be more easily displayed (so a value of `0.
|
2748
|
-
# displayed as `20By`, and a value of `
|
2749
|
-
# . However, if the `unit` is `
|
2750
|
-
# thousands of bytes, no matter how it
|
2770
|
+
# representation of the stored metric values. Different systems might scale the
|
2771
|
+
# values to be more easily displayed (so a value of `0.02kBy` _might_ be
|
2772
|
+
# displayed as `20By`, and a value of `3523kBy` _might_ be displayed as `3.5MBy`)
|
2773
|
+
# . However, if the `unit` is `kBy`, then the value of the metric is always in
|
2774
|
+
# thousands of bytes, no matter how it might be displayed. If you want a custom
|
2751
2775
|
# metric to record the exact number of CPU-seconds used by a job, you can create
|
2752
2776
|
# an `INT64 CUMULATIVE` metric whose `unit` is `s`CPU`` (or equivalently `1s`CPU`
|
2753
2777
|
# ` or just `s`). If the job uses 12,005 CPU-seconds, then the value is written
|
@@ -2755,7 +2779,7 @@ module Google
|
|
2755
2779
|
# more granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
|
2756
2780
|
# `ks`CPU``, and then write the value `12.005` (which is `12005/1000`), or use `
|
2757
2781
|
# Kis`CPU`` and write `11.723` (which is `12005/1024`). The supported units are
|
2758
|
-
# a subset of [The Unified Code for Units of Measure](
|
2782
|
+
# a subset of [The Unified Code for Units of Measure](https://unitsofmeasure.org/
|
2759
2783
|
# ucum.html) standard: **Basic units (UNIT)** * `bit` bit * `By` byte * `s`
|
2760
2784
|
# second * `min` minute * `h` hour * `d` day * `1` dimensionless **Prefixes (
|
2761
2785
|
# PREFIX)** * `k` kilo (10^3) * `M` mega (10^6) * `G` giga (10^9) * `T` tera (10^
|
@@ -4027,7 +4051,11 @@ module Google
|
|
4027
4051
|
|
4028
4052
|
# Requirements that must be satisfied before a consumer project can use the
|
4029
4053
|
# service. Each requirement is of the form /; for example 'serviceusage.
|
4030
|
-
# googleapis.com/billing-enabled'.
|
4054
|
+
# googleapis.com/billing-enabled'. For Google APIs, a Terms of Service
|
4055
|
+
# requirement must be included here. Google Cloud APIs must include "
|
4056
|
+
# serviceusage.googleapis.com/tos/cloud". Other Google APIs should include "
|
4057
|
+
# serviceusage.googleapis.com/tos/universal". Additional ToS can be included
|
4058
|
+
# based on the business needs.
|
4031
4059
|
# Corresponds to the JSON property `requirements`
|
4032
4060
|
# @return [Array<String>]
|
4033
4061
|
attr_accessor :requirements
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ServiceusageV1beta1
|
18
18
|
# Version of the google-apis-serviceusage_v1beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210319"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -712,6 +712,8 @@ module Google
|
|
712
712
|
class Representation < Google::Apis::Core::JsonRepresentation
|
713
713
|
collection :consumer_quota_limits, as: 'consumerQuotaLimits', class: Google::Apis::ServiceusageV1beta1::ConsumerQuotaLimit, decorator: Google::Apis::ServiceusageV1beta1::ConsumerQuotaLimit::Representation
|
714
714
|
|
715
|
+
collection :descendant_consumer_quota_limits, as: 'descendantConsumerQuotaLimits', class: Google::Apis::ServiceusageV1beta1::ConsumerQuotaLimit, decorator: Google::Apis::ServiceusageV1beta1::ConsumerQuotaLimit::Representation
|
716
|
+
|
715
717
|
property :display_name, as: 'displayName'
|
716
718
|
property :metric, as: 'metric'
|
717
719
|
property :name, as: 'name'
|
@@ -1040,6 +1042,7 @@ module Google
|
|
1040
1042
|
# @private
|
1041
1043
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1042
1044
|
property :force, as: 'force'
|
1045
|
+
collection :force_only, as: 'forceOnly'
|
1043
1046
|
property :inline_source, as: 'inlineSource', class: Google::Apis::ServiceusageV1beta1::OverrideInlineSource, decorator: Google::Apis::ServiceusageV1beta1::OverrideInlineSource::Representation
|
1044
1047
|
|
1045
1048
|
end
|
@@ -1065,6 +1068,7 @@ module Google
|
|
1065
1068
|
# @private
|
1066
1069
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1067
1070
|
property :force, as: 'force'
|
1071
|
+
collection :force_only, as: 'forceOnly'
|
1068
1072
|
property :inline_source, as: 'inlineSource', class: Google::Apis::ServiceusageV1beta1::OverrideInlineSource, decorator: Google::Apis::ServiceusageV1beta1::OverrideInlineSource::Representation
|
1069
1073
|
|
1070
1074
|
end
|
@@ -556,11 +556,14 @@ module Google
|
|
556
556
|
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
557
557
|
# @param [Google::Apis::ServiceusageV1beta1::QuotaOverride] quota_override_object
|
558
558
|
# @param [Boolean] force
|
559
|
-
# Whether to force the creation of the quota override.
|
560
|
-
#
|
561
|
-
#
|
562
|
-
#
|
563
|
-
#
|
559
|
+
# Whether to force the creation of the quota override. Setting the force
|
560
|
+
# parameter to 'true' ignores all quota safety checks that would fail the
|
561
|
+
# request. QuotaSafetyCheck lists all such validations.
|
562
|
+
# @param [Array<String>, String] force_only
|
563
|
+
# The list of quota safety checks to ignore before the override mutation. Unlike
|
564
|
+
# 'force' field that ignores all the quota safety checks, the 'force_only' field
|
565
|
+
# ignores only the specified checks; other checks are still enforced. The 'force'
|
566
|
+
# and 'force_only' fields cannot both be set.
|
564
567
|
# @param [String] fields
|
565
568
|
# Selector specifying which fields to include in a partial response.
|
566
569
|
# @param [String] quota_user
|
@@ -578,7 +581,7 @@ module Google
|
|
578
581
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
579
582
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
580
583
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
581
|
-
def create_service_consumer_quota_metric_limit_admin_override(parent, quota_override_object = nil, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
584
|
+
def create_service_consumer_quota_metric_limit_admin_override(parent, quota_override_object = nil, force: nil, force_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
582
585
|
command = make_simple_command(:post, 'v1beta1/{+parent}/adminOverrides', options)
|
583
586
|
command.request_representation = Google::Apis::ServiceusageV1beta1::QuotaOverride::Representation
|
584
587
|
command.request_object = quota_override_object
|
@@ -586,6 +589,7 @@ module Google
|
|
586
589
|
command.response_class = Google::Apis::ServiceusageV1beta1::Operation
|
587
590
|
command.params['parent'] = parent unless parent.nil?
|
588
591
|
command.query['force'] = force unless force.nil?
|
592
|
+
command.query['forceOnly'] = force_only unless force_only.nil?
|
589
593
|
command.query['fields'] = fields unless fields.nil?
|
590
594
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
591
595
|
execute_or_queue_command(command, &block)
|
@@ -597,11 +601,14 @@ module Google
|
|
597
601
|
# projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.
|
598
602
|
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
|
599
603
|
# @param [Boolean] force
|
600
|
-
# Whether to force the deletion of the quota override.
|
601
|
-
#
|
602
|
-
#
|
603
|
-
#
|
604
|
-
#
|
604
|
+
# Whether to force the deletion of the quota override. Setting the force
|
605
|
+
# parameter to 'true' ignores all quota safety checks that would fail the
|
606
|
+
# request. QuotaSafetyCheck lists all such validations.
|
607
|
+
# @param [Array<String>, String] force_only
|
608
|
+
# The list of quota safety checks to ignore before the override mutation. Unlike
|
609
|
+
# 'force' field that ignores all the quota safety checks, the 'force_only' field
|
610
|
+
# ignores only the specified checks; other checks are still enforced. The 'force'
|
611
|
+
# and 'force_only' fields cannot both be set.
|
605
612
|
# @param [String] fields
|
606
613
|
# Selector specifying which fields to include in a partial response.
|
607
614
|
# @param [String] quota_user
|
@@ -619,12 +626,13 @@ module Google
|
|
619
626
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
620
627
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
621
628
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
622
|
-
def delete_service_consumer_quota_metric_limit_admin_override(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
629
|
+
def delete_service_consumer_quota_metric_limit_admin_override(name, force: nil, force_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
623
630
|
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
624
631
|
command.response_representation = Google::Apis::ServiceusageV1beta1::Operation::Representation
|
625
632
|
command.response_class = Google::Apis::ServiceusageV1beta1::Operation
|
626
633
|
command.params['name'] = name unless name.nil?
|
627
634
|
command.query['force'] = force unless force.nil?
|
635
|
+
command.query['forceOnly'] = force_only unless force_only.nil?
|
628
636
|
command.query['fields'] = fields unless fields.nil?
|
629
637
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
630
638
|
execute_or_queue_command(command, &block)
|
@@ -676,11 +684,14 @@ module Google
|
|
676
684
|
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
|
677
685
|
# @param [Google::Apis::ServiceusageV1beta1::QuotaOverride] quota_override_object
|
678
686
|
# @param [Boolean] force
|
679
|
-
# Whether to force the update of the quota override.
|
680
|
-
#
|
681
|
-
#
|
682
|
-
#
|
683
|
-
#
|
687
|
+
# Whether to force the update of the quota override. Setting the force parameter
|
688
|
+
# to 'true' ignores all quota safety checks that would fail the request.
|
689
|
+
# QuotaSafetyCheck lists all such validations.
|
690
|
+
# @param [Array<String>, String] force_only
|
691
|
+
# The list of quota safety checks to ignore before the override mutation. Unlike
|
692
|
+
# 'force' field that ignores all the quota safety checks, the 'force_only' field
|
693
|
+
# ignores only the specified checks; other checks are still enforced. The 'force'
|
694
|
+
# and 'force_only' fields cannot both be set.
|
684
695
|
# @param [String] update_mask
|
685
696
|
# Update only the specified fields of the override. If unset, all fields will be
|
686
697
|
# updated.
|
@@ -701,7 +712,7 @@ module Google
|
|
701
712
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
702
713
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
703
714
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
704
|
-
def patch_service_consumer_quota_metric_limit_admin_override(name, quota_override_object = nil, force: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
715
|
+
def patch_service_consumer_quota_metric_limit_admin_override(name, quota_override_object = nil, force: nil, force_only: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
705
716
|
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
706
717
|
command.request_representation = Google::Apis::ServiceusageV1beta1::QuotaOverride::Representation
|
707
718
|
command.request_object = quota_override_object
|
@@ -709,6 +720,7 @@ module Google
|
|
709
720
|
command.response_class = Google::Apis::ServiceusageV1beta1::Operation
|
710
721
|
command.params['name'] = name unless name.nil?
|
711
722
|
command.query['force'] = force unless force.nil?
|
723
|
+
command.query['forceOnly'] = force_only unless force_only.nil?
|
712
724
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
713
725
|
command.query['fields'] = fields unless fields.nil?
|
714
726
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -726,11 +738,14 @@ module Google
|
|
726
738
|
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
727
739
|
# @param [Google::Apis::ServiceusageV1beta1::QuotaOverride] quota_override_object
|
728
740
|
# @param [Boolean] force
|
729
|
-
# Whether to force the creation of the quota override.
|
730
|
-
#
|
731
|
-
#
|
732
|
-
#
|
733
|
-
#
|
741
|
+
# Whether to force the creation of the quota override. Setting the force
|
742
|
+
# parameter to 'true' ignores all quota safety checks that would fail the
|
743
|
+
# request. QuotaSafetyCheck lists all such validations.
|
744
|
+
# @param [Array<String>, String] force_only
|
745
|
+
# The list of quota safety checks to ignore before the override mutation. Unlike
|
746
|
+
# 'force' field that ignores all the quota safety checks, the 'force_only' field
|
747
|
+
# ignores only the specified checks; other checks are still enforced. The 'force'
|
748
|
+
# and 'force_only' fields cannot both be set.
|
734
749
|
# @param [String] fields
|
735
750
|
# Selector specifying which fields to include in a partial response.
|
736
751
|
# @param [String] quota_user
|
@@ -748,7 +763,7 @@ module Google
|
|
748
763
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
749
764
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
750
765
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
751
|
-
def create_service_consumer_quota_metric_limit_consumer_override(parent, quota_override_object = nil, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
766
|
+
def create_service_consumer_quota_metric_limit_consumer_override(parent, quota_override_object = nil, force: nil, force_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
752
767
|
command = make_simple_command(:post, 'v1beta1/{+parent}/consumerOverrides', options)
|
753
768
|
command.request_representation = Google::Apis::ServiceusageV1beta1::QuotaOverride::Representation
|
754
769
|
command.request_object = quota_override_object
|
@@ -756,6 +771,7 @@ module Google
|
|
756
771
|
command.response_class = Google::Apis::ServiceusageV1beta1::Operation
|
757
772
|
command.params['parent'] = parent unless parent.nil?
|
758
773
|
command.query['force'] = force unless force.nil?
|
774
|
+
command.query['forceOnly'] = force_only unless force_only.nil?
|
759
775
|
command.query['fields'] = fields unless fields.nil?
|
760
776
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
761
777
|
execute_or_queue_command(command, &block)
|
@@ -767,11 +783,14 @@ module Google
|
|
767
783
|
# projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.
|
768
784
|
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
|
769
785
|
# @param [Boolean] force
|
770
|
-
# Whether to force the deletion of the quota override.
|
771
|
-
#
|
772
|
-
#
|
773
|
-
#
|
774
|
-
#
|
786
|
+
# Whether to force the deletion of the quota override. Setting the force
|
787
|
+
# parameter to 'true' ignores all quota safety checks that would fail the
|
788
|
+
# request. QuotaSafetyCheck lists all such validations.
|
789
|
+
# @param [Array<String>, String] force_only
|
790
|
+
# The list of quota safety checks to ignore before the override mutation. Unlike
|
791
|
+
# 'force' field that ignores all the quota safety checks, the 'force_only' field
|
792
|
+
# ignores only the specified checks; other checks are still enforced. The 'force'
|
793
|
+
# and 'force_only' fields cannot both be set.
|
775
794
|
# @param [String] fields
|
776
795
|
# Selector specifying which fields to include in a partial response.
|
777
796
|
# @param [String] quota_user
|
@@ -789,12 +808,13 @@ module Google
|
|
789
808
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
790
809
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
791
810
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
792
|
-
def delete_service_consumer_quota_metric_limit_consumer_override(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
811
|
+
def delete_service_consumer_quota_metric_limit_consumer_override(name, force: nil, force_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
793
812
|
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
794
813
|
command.response_representation = Google::Apis::ServiceusageV1beta1::Operation::Representation
|
795
814
|
command.response_class = Google::Apis::ServiceusageV1beta1::Operation
|
796
815
|
command.params['name'] = name unless name.nil?
|
797
816
|
command.query['force'] = force unless force.nil?
|
817
|
+
command.query['forceOnly'] = force_only unless force_only.nil?
|
798
818
|
command.query['fields'] = fields unless fields.nil?
|
799
819
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
800
820
|
execute_or_queue_command(command, &block)
|
@@ -846,11 +866,14 @@ module Google
|
|
846
866
|
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
|
847
867
|
# @param [Google::Apis::ServiceusageV1beta1::QuotaOverride] quota_override_object
|
848
868
|
# @param [Boolean] force
|
849
|
-
# Whether to force the update of the quota override.
|
850
|
-
#
|
851
|
-
#
|
852
|
-
#
|
853
|
-
#
|
869
|
+
# Whether to force the update of the quota override. Setting the force parameter
|
870
|
+
# to 'true' ignores all quota safety checks that would fail the request.
|
871
|
+
# QuotaSafetyCheck lists all such validations.
|
872
|
+
# @param [Array<String>, String] force_only
|
873
|
+
# The list of quota safety checks to ignore before the override mutation. Unlike
|
874
|
+
# 'force' field that ignores all the quota safety checks, the 'force_only' field
|
875
|
+
# ignores only the specified checks; other checks are still enforced. The 'force'
|
876
|
+
# and 'force_only' fields cannot both be set.
|
854
877
|
# @param [String] update_mask
|
855
878
|
# Update only the specified fields of the override. If unset, all fields will be
|
856
879
|
# updated.
|
@@ -871,7 +894,7 @@ module Google
|
|
871
894
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
872
895
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
873
896
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
874
|
-
def patch_service_consumer_quota_metric_limit_consumer_override(name, quota_override_object = nil, force: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
897
|
+
def patch_service_consumer_quota_metric_limit_consumer_override(name, quota_override_object = nil, force: nil, force_only: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
875
898
|
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
876
899
|
command.request_representation = Google::Apis::ServiceusageV1beta1::QuotaOverride::Representation
|
877
900
|
command.request_object = quota_override_object
|
@@ -879,6 +902,7 @@ module Google
|
|
879
902
|
command.response_class = Google::Apis::ServiceusageV1beta1::Operation
|
880
903
|
command.params['name'] = name unless name.nil?
|
881
904
|
command.query['force'] = force unless force.nil?
|
905
|
+
command.query['forceOnly'] = force_only unless force_only.nil?
|
882
906
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
883
907
|
command.query['fields'] = fields unless fields.nil?
|
884
908
|
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-serviceusage_v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.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-
|
11
|
+
date: 2021-03-29 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-serviceusage_v1beta1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-serviceusage_v1beta1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-serviceusage_v1beta1/v0.6.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-serviceusage_v1beta1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.13
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Service Usage API V1beta1
|