google-apis-serviceconsumermanagement_v1beta1 0.49.0 → 0.51.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 +9 -0
- data/lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb +167 -77
- data/lib/google/apis/serviceconsumermanagement_v1beta1/gem_version.rb +3 -3
- data/lib/google/apis/serviceconsumermanagement_v1beta1/representations.rb +47 -0
- data/lib/google/apis/serviceconsumermanagement_v1beta1/service.rb +250 -21
- 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: bcb2a3e5f2d0803b3cc97ba1b985e5f282e9a1a289d1c6a90348cc680f67b691
|
4
|
+
data.tar.gz: bec82414991d90b05570be19cfa1907a3488ac3694d36e610817e3ac1f2cd788
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c322440ba0f7a38f54bb503f5f7f66c0fb250cfa413aed3260f8fc8a42a7c49c264aec98923cfa99619b482b57388db1b9190710e08a29e641e50fb138d7590
|
7
|
+
data.tar.gz: 2bcfbbc532ee866a9332b788f8b4333b62675d70af66a10f2d248e90df0bafce43c84816cf6cdb95996e9f3ede6ef7fc8d6fa5b5d84c5d0fa753e3e245e2de0d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-serviceconsumermanagement_v1beta1
|
2
2
|
|
3
|
+
### v0.51.0 (2024-06-16)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240609
|
6
|
+
|
7
|
+
### v0.50.0 (2024-05-19)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240512
|
10
|
+
* Regenerated using generator version 0.15.0
|
11
|
+
|
3
12
|
### v0.49.0 (2024-05-05)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20240429
|
@@ -1318,7 +1318,7 @@ module Google
|
|
1318
1318
|
end
|
1319
1319
|
end
|
1320
1320
|
|
1321
|
-
#
|
1321
|
+
# gRPC Transcoding gRPC Transcoding is a feature for mapping between a gRPC
|
1322
1322
|
# method and one or more HTTP REST endpoints. It allows developers to build a
|
1323
1323
|
# single API service that supports both gRPC APIs and REST APIs. Many systems,
|
1324
1324
|
# including [Google APIs](https://github.com/googleapis/googleapis), [Cloud
|
@@ -1338,70 +1338,69 @@ module Google
|
|
1338
1338
|
# Message) ` option (google.api.http) = ` get: "/v1/`name=messages/*`" `; ` `
|
1339
1339
|
# message GetMessageRequest ` string name = 1; // Mapped to URL path. ` message
|
1340
1340
|
# Message ` string text = 1; // The resource content. ` This enables an HTTP
|
1341
|
-
# REST to gRPC mapping as below: HTTP
|
1342
|
-
#
|
1343
|
-
#
|
1344
|
-
#
|
1345
|
-
#
|
1346
|
-
#
|
1347
|
-
#
|
1348
|
-
#
|
1349
|
-
#
|
1350
|
-
#
|
1351
|
-
#
|
1352
|
-
#
|
1353
|
-
#
|
1354
|
-
#
|
1355
|
-
#
|
1356
|
-
#
|
1357
|
-
#
|
1358
|
-
#
|
1359
|
-
#
|
1360
|
-
#
|
1361
|
-
#
|
1362
|
-
#
|
1363
|
-
#
|
1364
|
-
#
|
1365
|
-
#
|
1366
|
-
#
|
1367
|
-
#
|
1368
|
-
#
|
1369
|
-
#
|
1370
|
-
#
|
1371
|
-
#
|
1372
|
-
#
|
1373
|
-
#
|
1374
|
-
#
|
1375
|
-
#
|
1376
|
-
#
|
1377
|
-
#
|
1378
|
-
#
|
1379
|
-
#
|
1380
|
-
#
|
1381
|
-
#
|
1382
|
-
#
|
1383
|
-
#
|
1384
|
-
#
|
1385
|
-
#
|
1386
|
-
# messages/123456`
|
1387
|
-
#
|
1388
|
-
#
|
1389
|
-
#
|
1390
|
-
# referred by the
|
1391
|
-
#
|
1392
|
-
#
|
1393
|
-
#
|
1394
|
-
#
|
1395
|
-
#
|
1396
|
-
#
|
1397
|
-
#
|
1398
|
-
#
|
1399
|
-
# "
|
1400
|
-
#
|
1401
|
-
#
|
1402
|
-
#
|
1403
|
-
#
|
1404
|
-
# specified by its template. A variable template must not contain other
|
1341
|
+
# REST to gRPC mapping as below: - HTTP: `GET /v1/messages/123456` - gRPC: `
|
1342
|
+
# GetMessage(name: "messages/123456")` Any fields in the request message which
|
1343
|
+
# are not bound by the path template automatically become HTTP query parameters
|
1344
|
+
# if there is no HTTP request body. For example: service Messaging ` rpc
|
1345
|
+
# GetMessage(GetMessageRequest) returns (Message) ` option (google.api.http) = `
|
1346
|
+
# get:"/v1/messages/`message_id`" `; ` ` message GetMessageRequest ` message
|
1347
|
+
# SubMessage ` string subfield = 1; ` string message_id = 1; // Mapped to URL
|
1348
|
+
# path. int64 revision = 2; // Mapped to URL query parameter `revision`.
|
1349
|
+
# SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. ` This
|
1350
|
+
# enables a HTTP JSON to RPC mapping as below: - HTTP: `GET /v1/messages/123456?
|
1351
|
+
# revision=2&sub.subfield=foo` - gRPC: `GetMessage(message_id: "123456" revision:
|
1352
|
+
# 2 sub: SubMessage(subfield: "foo"))` Note that fields which are mapped to URL
|
1353
|
+
# query parameters must have a primitive type or a repeated primitive type or a
|
1354
|
+
# non-repeated message type. In the case of a repeated type, the parameter can
|
1355
|
+
# be repeated in the URL as `...?param=A¶m=B`. In the case of a message type,
|
1356
|
+
# each field of the message is mapped to a separate parameter, such as `...?foo.
|
1357
|
+
# a=A&foo.b=B&foo.c=C`. For HTTP methods that allow a request body, the `body`
|
1358
|
+
# field specifies the mapping. Consider a REST update method on the message
|
1359
|
+
# resource collection: service Messaging ` rpc UpdateMessage(
|
1360
|
+
# UpdateMessageRequest) returns (Message) ` option (google.api.http) = ` patch: "
|
1361
|
+
# /v1/messages/`message_id`" body: "message" `; ` ` message UpdateMessageRequest
|
1362
|
+
# ` string message_id = 1; // mapped to the URL Message message = 2; // mapped
|
1363
|
+
# to the body ` The following HTTP JSON to RPC mapping is enabled, where the
|
1364
|
+
# representation of the JSON in the request body is determined by protos JSON
|
1365
|
+
# encoding: - HTTP: `PATCH /v1/messages/123456 ` "text": "Hi!" `` - gRPC: `
|
1366
|
+
# UpdateMessage(message_id: "123456" message ` text: "Hi!" `)` The special name `
|
1367
|
+
# *` can be used in the body mapping to define that every field not bound by the
|
1368
|
+
# path template should be mapped to the request body. This enables the following
|
1369
|
+
# alternative definition of the update method: service Messaging ` rpc
|
1370
|
+
# UpdateMessage(Message) returns (Message) ` option (google.api.http) = ` patch:
|
1371
|
+
# "/v1/messages/`message_id`" body: "*" `; ` ` message Message ` string
|
1372
|
+
# message_id = 1; string text = 2; ` The following HTTP JSON to RPC mapping is
|
1373
|
+
# enabled: - HTTP: `PATCH /v1/messages/123456 ` "text": "Hi!" `` - gRPC: `
|
1374
|
+
# UpdateMessage(message_id: "123456" text: "Hi!")` Note that when using `*` in
|
1375
|
+
# the body mapping, it is not possible to have HTTP parameters, as all fields
|
1376
|
+
# not bound by the path end in the body. This makes this option more rarely used
|
1377
|
+
# in practice when defining REST APIs. The common usage of `*` is in custom
|
1378
|
+
# methods which don't use the URL at all for transferring data. It is possible
|
1379
|
+
# to define multiple HTTP methods for one RPC by using the `additional_bindings`
|
1380
|
+
# option. Example: service Messaging ` rpc GetMessage(GetMessageRequest) returns
|
1381
|
+
# (Message) ` option (google.api.http) = ` get: "/v1/messages/`message_id`"
|
1382
|
+
# additional_bindings ` get: "/v1/users/`user_id`/messages/`message_id`" ` `; ` `
|
1383
|
+
# message GetMessageRequest ` string message_id = 1; string user_id = 2; ` This
|
1384
|
+
# enables the following two alternative HTTP JSON to RPC mappings: - HTTP: `GET /
|
1385
|
+
# v1/messages/123456` - gRPC: `GetMessage(message_id: "123456")` - HTTP: `GET /
|
1386
|
+
# v1/users/me/messages/123456` - gRPC: `GetMessage(user_id: "me" message_id: "
|
1387
|
+
# 123456")` Rules for HTTP mapping 1. Leaf request fields (recursive expansion
|
1388
|
+
# nested messages in the request message) are classified into three categories: -
|
1389
|
+
# Fields referred by the path template. They are passed via the URL path. -
|
1390
|
+
# Fields referred by the HttpRule.body. They are passed via the HTTP request
|
1391
|
+
# body. - All other fields are passed via the URL query parameters, and the
|
1392
|
+
# parameter name is the field path in the request message. A repeated field can
|
1393
|
+
# be represented as multiple query parameters under the same name. 2. If
|
1394
|
+
# HttpRule.body is "*", there is no URL query parameter, all fields are passed
|
1395
|
+
# via URL path and HTTP request body. 3. If HttpRule.body is omitted, there is
|
1396
|
+
# no HTTP request body, all fields are passed via URL path and URL query
|
1397
|
+
# parameters. Path template syntax Template = "/" Segments [ Verb ] ; Segments =
|
1398
|
+
# Segment ` "/" Segment ` ; Segment = "*" | "**" | LITERAL | Variable ; Variable
|
1399
|
+
# = "`" FieldPath [ "=" Segments ] "`" ; FieldPath = IDENT ` "." IDENT ` ; Verb =
|
1400
|
+
# ":" LITERAL ; The syntax `*` matches a single URL path segment. The syntax `**
|
1401
|
+
# ` matches zero or more URL path segments, which must be the last part of the
|
1402
|
+
# URL path except the `Verb`. The syntax `Variable` matches part of the URL path
|
1403
|
+
# as specified by its template. A variable template must not contain other
|
1405
1404
|
# variables. If a variable matches a single path segment, its template may be
|
1406
1405
|
# omitted, e.g. ``var`` is equivalent to ``var=*``. The syntax `LITERAL` matches
|
1407
1406
|
# literal text in the URL path. If the `LITERAL` contains any reserved character,
|
@@ -1416,7 +1415,7 @@ module Google
|
|
1416
1415
|
# except `[-_.~/0-9a-zA-Z]` are percent-encoded. The server side does the
|
1417
1416
|
# reverse decoding, except "%2F" and "%2f" are left unchanged. Such variables
|
1418
1417
|
# show up in the [Discovery Document](https://developers.google.com/discovery/v1/
|
1419
|
-
# reference/apis) as ``+var``.
|
1418
|
+
# reference/apis) as ``+var``. Using gRPC API Service Configuration gRPC API
|
1420
1419
|
# Service Configuration (service config) is a configuration language for
|
1421
1420
|
# configuring a gRPC service to become a user-facing product. The service config
|
1422
1421
|
# is simply the YAML representation of the `google.api.Service` proto message.
|
@@ -1426,11 +1425,11 @@ module Google
|
|
1426
1425
|
# effect as the proto annotation. This can be particularly useful if you have a
|
1427
1426
|
# proto that is reused in multiple services. Note that any transcoding specified
|
1428
1427
|
# in the service config will override any matching transcoding configuration in
|
1429
|
-
# the proto. Example
|
1430
|
-
#
|
1431
|
-
# message_id`/`sub.subfield`
|
1432
|
-
#
|
1433
|
-
#
|
1428
|
+
# the proto. Example below selects a gRPC method and applies HttpRule to it.
|
1429
|
+
# http: rules: - selector: example.v1.Messaging.GetMessage get: /v1/messages/`
|
1430
|
+
# message_id`/`sub.subfield` Special notes When gRPC Transcoding is used to map
|
1431
|
+
# a gRPC to JSON REST endpoints, the proto to JSON conversion must follow the [
|
1432
|
+
# proto3 specification](https://developers.google.com/protocol-buffers/docs/
|
1434
1433
|
# proto3#json). While the single segment variable follows the semantics of [RFC
|
1435
1434
|
# 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
|
1436
1435
|
# Expansion, the multi segment variable **does not** follow RFC 6570 Section 3.2.
|
@@ -3676,20 +3675,22 @@ module Google
|
|
3676
3675
|
|
3677
3676
|
# Whether to force the creation of the quota overrides. Setting the force
|
3678
3677
|
# parameter to 'true' ignores all quota safety checks that would fail the
|
3679
|
-
# request. QuotaSafetyCheck lists all such validations.
|
3680
|
-
# it is recommended to include a case id in "X-Goog-Request-Reason" header when
|
3681
|
-
# sending the request.
|
3678
|
+
# request. QuotaSafetyCheck lists all such validations.
|
3682
3679
|
# Corresponds to the JSON property `force`
|
3683
3680
|
# @return [Boolean]
|
3684
3681
|
attr_accessor :force
|
3685
3682
|
alias_method :force?, :force
|
3686
3683
|
|
3684
|
+
# If force option is set to true, force_justification is suggested to be set to
|
3685
|
+
# log the reason in audit logs.
|
3686
|
+
# Corresponds to the JSON property `forceJustification`
|
3687
|
+
# @return [String]
|
3688
|
+
attr_accessor :force_justification
|
3689
|
+
|
3687
3690
|
# The list of quota safety checks to ignore before the override mutation. Unlike
|
3688
3691
|
# 'force' field that ignores all the quota safety checks, the 'force_only' field
|
3689
3692
|
# ignores only the specified checks; other checks are still enforced. The 'force'
|
3690
|
-
# and 'force_only' fields cannot both be set.
|
3691
|
-
# recommended to include a case id in "X-Goog-Request-Reason" header when
|
3692
|
-
# sending the request.
|
3693
|
+
# and 'force_only' fields cannot both be set.
|
3693
3694
|
# Corresponds to the JSON property `forceOnly`
|
3694
3695
|
# @return [Array<String>]
|
3695
3696
|
attr_accessor :force_only
|
@@ -3706,6 +3707,7 @@ module Google
|
|
3706
3707
|
# Update properties of this object
|
3707
3708
|
def update!(**args)
|
3708
3709
|
@force = args[:force] if args.key?(:force)
|
3710
|
+
@force_justification = args[:force_justification] if args.key?(:force_justification)
|
3709
3711
|
@force_only = args[:force_only] if args.key?(:force_only)
|
3710
3712
|
@inline_source = args[:inline_source] if args.key?(:inline_source)
|
3711
3713
|
end
|
@@ -3730,6 +3732,49 @@ module Google
|
|
3730
3732
|
end
|
3731
3733
|
end
|
3732
3734
|
|
3735
|
+
# Request message for ImportProducerQuotaPolicies
|
3736
|
+
class V1Beta1ImportProducerQuotaPoliciesRequest
|
3737
|
+
include Google::Apis::Core::Hashable
|
3738
|
+
|
3739
|
+
# Whether to force the import of the quota policies. If the policy import would
|
3740
|
+
# decrease the default limit of any consumer tier by more than 10 percent, the
|
3741
|
+
# call is rejected, as a safety measure to avoid accidentally decreasing quota
|
3742
|
+
# too quickly. Setting the force parameter to true ignores this restriction.
|
3743
|
+
# Corresponds to the JSON property `force`
|
3744
|
+
# @return [Boolean]
|
3745
|
+
attr_accessor :force
|
3746
|
+
alias_method :force?, :force
|
3747
|
+
|
3748
|
+
# If force option is set to true, force_justification is suggested to be set to
|
3749
|
+
# log the reason in audit logs.
|
3750
|
+
# Corresponds to the JSON property `forceJustification`
|
3751
|
+
# @return [String]
|
3752
|
+
attr_accessor :force_justification
|
3753
|
+
|
3754
|
+
# Import data embedded in the request message
|
3755
|
+
# Corresponds to the JSON property `inlineSource`
|
3756
|
+
# @return [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1PolicyInlineSource]
|
3757
|
+
attr_accessor :inline_source
|
3758
|
+
|
3759
|
+
# If set to true, validate the request, but do not actually update.
|
3760
|
+
# Corresponds to the JSON property `validateOnly`
|
3761
|
+
# @return [Boolean]
|
3762
|
+
attr_accessor :validate_only
|
3763
|
+
alias_method :validate_only?, :validate_only
|
3764
|
+
|
3765
|
+
def initialize(**args)
|
3766
|
+
update!(**args)
|
3767
|
+
end
|
3768
|
+
|
3769
|
+
# Update properties of this object
|
3770
|
+
def update!(**args)
|
3771
|
+
@force = args[:force] if args.key?(:force)
|
3772
|
+
@force_justification = args[:force_justification] if args.key?(:force_justification)
|
3773
|
+
@inline_source = args[:inline_source] if args.key?(:inline_source)
|
3774
|
+
@validate_only = args[:validate_only] if args.key?(:validate_only)
|
3775
|
+
end
|
3776
|
+
end
|
3777
|
+
|
3733
3778
|
# Response message for ImportProducerQuotaPolicies
|
3734
3779
|
class V1Beta1ImportProducerQuotaPoliciesResponse
|
3735
3780
|
include Google::Apis::Core::Hashable
|
@@ -3799,6 +3844,31 @@ module Google
|
|
3799
3844
|
end
|
3800
3845
|
end
|
3801
3846
|
|
3847
|
+
# Response message for ListProducerQuotaPolicies.
|
3848
|
+
class V1Beta1ListProducerQuotaPoliciesResponse
|
3849
|
+
include Google::Apis::Core::Hashable
|
3850
|
+
|
3851
|
+
# Token identifying which result to start with; returned by a previous list call.
|
3852
|
+
# Corresponds to the JSON property `nextPageToken`
|
3853
|
+
# @return [String]
|
3854
|
+
attr_accessor :next_page_token
|
3855
|
+
|
3856
|
+
# Producer policies on this limit.
|
3857
|
+
# Corresponds to the JSON property `producerQuotaPolicies`
|
3858
|
+
# @return [Array<Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy>]
|
3859
|
+
attr_accessor :producer_quota_policies
|
3860
|
+
|
3861
|
+
def initialize(**args)
|
3862
|
+
update!(**args)
|
3863
|
+
end
|
3864
|
+
|
3865
|
+
# Update properties of this object
|
3866
|
+
def update!(**args)
|
3867
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3868
|
+
@producer_quota_policies = args[:producer_quota_policies] if args.key?(:producer_quota_policies)
|
3869
|
+
end
|
3870
|
+
end
|
3871
|
+
|
3802
3872
|
# Import data embedded in the request message
|
3803
3873
|
class V1Beta1OverrideInlineSource
|
3804
3874
|
include Google::Apis::Core::Hashable
|
@@ -3820,6 +3890,26 @@ module Google
|
|
3820
3890
|
end
|
3821
3891
|
end
|
3822
3892
|
|
3893
|
+
# Import data embedded in the request message
|
3894
|
+
class V1Beta1PolicyInlineSource
|
3895
|
+
include Google::Apis::Core::Hashable
|
3896
|
+
|
3897
|
+
# The policies to create. Each policy must have a value for 'metric' and 'unit',
|
3898
|
+
# to specify which metric and which limit the policy should be applied to.
|
3899
|
+
# Corresponds to the JSON property `policies`
|
3900
|
+
# @return [Array<Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy>]
|
3901
|
+
attr_accessor :policies
|
3902
|
+
|
3903
|
+
def initialize(**args)
|
3904
|
+
update!(**args)
|
3905
|
+
end
|
3906
|
+
|
3907
|
+
# Update properties of this object
|
3908
|
+
def update!(**args)
|
3909
|
+
@policies = args[:policies] if args.key?(:policies)
|
3910
|
+
end
|
3911
|
+
end
|
3912
|
+
|
3823
3913
|
# Quota policy created by service producer.
|
3824
3914
|
class V1Beta1ProducerQuotaPolicy
|
3825
3915
|
include Google::Apis::Core::Hashable
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.51.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240609"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -478,6 +478,12 @@ module Google
|
|
478
478
|
include Google::Apis::Core::JsonObjectSupport
|
479
479
|
end
|
480
480
|
|
481
|
+
class V1Beta1ImportProducerQuotaPoliciesRequest
|
482
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
483
|
+
|
484
|
+
include Google::Apis::Core::JsonObjectSupport
|
485
|
+
end
|
486
|
+
|
481
487
|
class V1Beta1ImportProducerQuotaPoliciesResponse
|
482
488
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
483
489
|
|
@@ -496,12 +502,24 @@ module Google
|
|
496
502
|
include Google::Apis::Core::JsonObjectSupport
|
497
503
|
end
|
498
504
|
|
505
|
+
class V1Beta1ListProducerQuotaPoliciesResponse
|
506
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
507
|
+
|
508
|
+
include Google::Apis::Core::JsonObjectSupport
|
509
|
+
end
|
510
|
+
|
499
511
|
class V1Beta1OverrideInlineSource
|
500
512
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
501
513
|
|
502
514
|
include Google::Apis::Core::JsonObjectSupport
|
503
515
|
end
|
504
516
|
|
517
|
+
class V1Beta1PolicyInlineSource
|
518
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
519
|
+
|
520
|
+
include Google::Apis::Core::JsonObjectSupport
|
521
|
+
end
|
522
|
+
|
505
523
|
class V1Beta1ProducerQuotaPolicy
|
506
524
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
507
525
|
|
@@ -1418,6 +1436,7 @@ module Google
|
|
1418
1436
|
# @private
|
1419
1437
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1420
1438
|
property :force, as: 'force'
|
1439
|
+
property :force_justification, as: 'forceJustification'
|
1421
1440
|
collection :force_only, as: 'forceOnly'
|
1422
1441
|
property :inline_source, as: 'inlineSource', class: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1OverrideInlineSource, decorator: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1OverrideInlineSource::Representation
|
1423
1442
|
|
@@ -1432,6 +1451,17 @@ module Google
|
|
1432
1451
|
end
|
1433
1452
|
end
|
1434
1453
|
|
1454
|
+
class V1Beta1ImportProducerQuotaPoliciesRequest
|
1455
|
+
# @private
|
1456
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1457
|
+
property :force, as: 'force'
|
1458
|
+
property :force_justification, as: 'forceJustification'
|
1459
|
+
property :inline_source, as: 'inlineSource', class: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1PolicyInlineSource, decorator: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1PolicyInlineSource::Representation
|
1460
|
+
|
1461
|
+
property :validate_only, as: 'validateOnly'
|
1462
|
+
end
|
1463
|
+
end
|
1464
|
+
|
1435
1465
|
class V1Beta1ImportProducerQuotaPoliciesResponse
|
1436
1466
|
# @private
|
1437
1467
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1458,6 +1488,15 @@ module Google
|
|
1458
1488
|
end
|
1459
1489
|
end
|
1460
1490
|
|
1491
|
+
class V1Beta1ListProducerQuotaPoliciesResponse
|
1492
|
+
# @private
|
1493
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1494
|
+
property :next_page_token, as: 'nextPageToken'
|
1495
|
+
collection :producer_quota_policies, as: 'producerQuotaPolicies', class: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy, decorator: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy::Representation
|
1496
|
+
|
1497
|
+
end
|
1498
|
+
end
|
1499
|
+
|
1461
1500
|
class V1Beta1OverrideInlineSource
|
1462
1501
|
# @private
|
1463
1502
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1466,6 +1505,14 @@ module Google
|
|
1466
1505
|
end
|
1467
1506
|
end
|
1468
1507
|
|
1508
|
+
class V1Beta1PolicyInlineSource
|
1509
|
+
# @private
|
1510
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1511
|
+
collection :policies, as: 'policies', class: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy, decorator: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy::Representation
|
1512
|
+
|
1513
|
+
end
|
1514
|
+
end
|
1515
|
+
|
1469
1516
|
class V1Beta1ProducerQuotaPolicy
|
1470
1517
|
# @private
|
1471
1518
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -153,6 +153,42 @@ module Google
|
|
153
153
|
execute_or_queue_command(command, &block)
|
154
154
|
end
|
155
155
|
|
156
|
+
# Create or update multiple producer quota policies atomically, all on the same
|
157
|
+
# ancestor, but on many different metrics or limits. The name field in the quota
|
158
|
+
# policy message should not be set.
|
159
|
+
# @param [String] parent
|
160
|
+
# The resource name of the consumer. An example name would be: `services/compute.
|
161
|
+
# googleapis.com/organizations/123`
|
162
|
+
# @param [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ImportProducerQuotaPoliciesRequest] v1_beta1_import_producer_quota_policies_request_object
|
163
|
+
# @param [String] fields
|
164
|
+
# Selector specifying which fields to include in a partial response.
|
165
|
+
# @param [String] quota_user
|
166
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
167
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
168
|
+
# @param [Google::Apis::RequestOptions] options
|
169
|
+
# Request-specific options
|
170
|
+
#
|
171
|
+
# @yield [result, err] Result & error if block supplied
|
172
|
+
# @yieldparam result [Google::Apis::ServiceconsumermanagementV1beta1::Operation] parsed result object
|
173
|
+
# @yieldparam err [StandardError] error object if request failed
|
174
|
+
#
|
175
|
+
# @return [Google::Apis::ServiceconsumermanagementV1beta1::Operation]
|
176
|
+
#
|
177
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
178
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
179
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
180
|
+
def import_service_consumer_quota_metric_producer_quota_policies(parent, v1_beta1_import_producer_quota_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
181
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/consumerQuotaMetrics:importProducerQuotaPolicies', options)
|
182
|
+
command.request_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ImportProducerQuotaPoliciesRequest::Representation
|
183
|
+
command.request_object = v1_beta1_import_producer_quota_policies_request_object
|
184
|
+
command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::Operation::Representation
|
185
|
+
command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::Operation
|
186
|
+
command.params['parent'] = parent unless parent.nil?
|
187
|
+
command.query['fields'] = fields unless fields.nil?
|
188
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
189
|
+
execute_or_queue_command(command, &block)
|
190
|
+
end
|
191
|
+
|
156
192
|
# Retrieves a summary of all quota information about this consumer that is
|
157
193
|
# visible to the service producer, for each quota metric defined by the service.
|
158
194
|
# Each metric includes information about all of its defined limits. Each limit
|
@@ -249,16 +285,15 @@ module Google
|
|
249
285
|
# @param [Boolean] force
|
250
286
|
# Whether to force the creation of the quota override. Setting the force
|
251
287
|
# parameter to 'true' ignores all quota safety checks that would fail the
|
252
|
-
# request. QuotaSafetyCheck lists all such validations.
|
253
|
-
#
|
254
|
-
#
|
288
|
+
# request. QuotaSafetyCheck lists all such validations.
|
289
|
+
# @param [String] force_justification
|
290
|
+
# If force option is set to true, force_justification is suggested to be set to
|
291
|
+
# log the reason in audit logs.
|
255
292
|
# @param [Array<String>, String] force_only
|
256
293
|
# The list of quota safety checks to ignore before the override mutation. Unlike
|
257
294
|
# 'force' field that ignores all the quota safety checks, the 'force_only' field
|
258
295
|
# ignores only the specified checks; other checks are still enforced. The 'force'
|
259
|
-
# and 'force_only' fields cannot both be set.
|
260
|
-
# recommended to include a case id in "X-Goog-Request-Reason" header when
|
261
|
-
# sending the request.
|
296
|
+
# and 'force_only' fields cannot both be set.
|
262
297
|
# @param [String] fields
|
263
298
|
# Selector specifying which fields to include in a partial response.
|
264
299
|
# @param [String] quota_user
|
@@ -276,7 +311,7 @@ module Google
|
|
276
311
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
277
312
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
278
313
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
279
|
-
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)
|
314
|
+
def create_service_consumer_quota_metric_limit_producer_override(parent, v1_beta1_quota_override_object = nil, force: nil, force_justification: nil, force_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
280
315
|
command = make_simple_command(:post, 'v1beta1/{+parent}/producerOverrides', options)
|
281
316
|
command.request_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride::Representation
|
282
317
|
command.request_object = v1_beta1_quota_override_object
|
@@ -284,6 +319,7 @@ module Google
|
|
284
319
|
command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::Operation
|
285
320
|
command.params['parent'] = parent unless parent.nil?
|
286
321
|
command.query['force'] = force unless force.nil?
|
322
|
+
command.query['forceJustification'] = force_justification unless force_justification.nil?
|
287
323
|
command.query['forceOnly'] = force_only unless force_only.nil?
|
288
324
|
command.query['fields'] = fields unless fields.nil?
|
289
325
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -298,16 +334,15 @@ module Google
|
|
298
334
|
# @param [Boolean] force
|
299
335
|
# Whether to force the deletion of the quota override. Setting the force
|
300
336
|
# parameter to 'true' ignores all quota safety checks that would fail the
|
301
|
-
# request. QuotaSafetyCheck lists all such validations.
|
302
|
-
#
|
303
|
-
#
|
337
|
+
# request. QuotaSafetyCheck lists all such validations.
|
338
|
+
# @param [String] force_justification
|
339
|
+
# If force option is set to true, force_justification is suggested to be set to
|
340
|
+
# log the reason in audit logs.
|
304
341
|
# @param [Array<String>, String] force_only
|
305
342
|
# The list of quota safety checks to ignore before the override mutation. Unlike
|
306
343
|
# 'force' field that ignores all the quota safety checks, the 'force_only' field
|
307
344
|
# ignores only the specified checks; other checks are still enforced. The 'force'
|
308
|
-
# and 'force_only' fields cannot both be set.
|
309
|
-
# recommended to include a case id in "X-Goog-Request-Reason" header when
|
310
|
-
# sending the request.
|
345
|
+
# and 'force_only' fields cannot both be set.
|
311
346
|
# @param [String] fields
|
312
347
|
# Selector specifying which fields to include in a partial response.
|
313
348
|
# @param [String] quota_user
|
@@ -325,12 +360,13 @@ module Google
|
|
325
360
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
326
361
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
327
362
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
328
|
-
def delete_service_consumer_quota_metric_limit_producer_override(name, force: nil, force_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
363
|
+
def delete_service_consumer_quota_metric_limit_producer_override(name, force: nil, force_justification: nil, force_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
329
364
|
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
330
365
|
command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::Operation::Representation
|
331
366
|
command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::Operation
|
332
367
|
command.params['name'] = name unless name.nil?
|
333
368
|
command.query['force'] = force unless force.nil?
|
369
|
+
command.query['forceJustification'] = force_justification unless force_justification.nil?
|
334
370
|
command.query['forceOnly'] = force_only unless force_only.nil?
|
335
371
|
command.query['fields'] = fields unless fields.nil?
|
336
372
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -385,16 +421,15 @@ module Google
|
|
385
421
|
# @param [Boolean] force
|
386
422
|
# Whether to force the update of the quota override. Setting the force parameter
|
387
423
|
# to 'true' ignores all quota safety checks that would fail the request.
|
388
|
-
# QuotaSafetyCheck lists all such validations.
|
389
|
-
#
|
390
|
-
#
|
424
|
+
# QuotaSafetyCheck lists all such validations.
|
425
|
+
# @param [String] force_justification
|
426
|
+
# If force option is set to true, force_justification is suggested to be set to
|
427
|
+
# log the reason in audit logs.
|
391
428
|
# @param [Array<String>, String] force_only
|
392
429
|
# The list of quota safety checks to ignore before the override mutation. Unlike
|
393
430
|
# 'force' field that ignores all the quota safety checks, the 'force_only' field
|
394
431
|
# ignores only the specified checks; other checks are still enforced. The 'force'
|
395
|
-
# and 'force_only' fields cannot both be set.
|
396
|
-
# recommended to include a case id in "X-Goog-Request-Reason" header when
|
397
|
-
# sending the request.
|
432
|
+
# and 'force_only' fields cannot both be set.
|
398
433
|
# @param [String] update_mask
|
399
434
|
# Update only the specified fields. If unset, all modifiable fields will be
|
400
435
|
# updated.
|
@@ -415,7 +450,7 @@ module Google
|
|
415
450
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
416
451
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
417
452
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
418
|
-
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)
|
453
|
+
def patch_service_consumer_quota_metric_limit_producer_override(name, v1_beta1_quota_override_object = nil, force: nil, force_justification: nil, force_only: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
419
454
|
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
420
455
|
command.request_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1QuotaOverride::Representation
|
421
456
|
command.request_object = v1_beta1_quota_override_object
|
@@ -423,12 +458,206 @@ module Google
|
|
423
458
|
command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::Operation
|
424
459
|
command.params['name'] = name unless name.nil?
|
425
460
|
command.query['force'] = force unless force.nil?
|
461
|
+
command.query['forceJustification'] = force_justification unless force_justification.nil?
|
426
462
|
command.query['forceOnly'] = force_only unless force_only.nil?
|
427
463
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
428
464
|
command.query['fields'] = fields unless fields.nil?
|
429
465
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
430
466
|
execute_or_queue_command(command, &block)
|
431
467
|
end
|
468
|
+
|
469
|
+
# Creates a producer quota policy. A producer quota policy is applied by the
|
470
|
+
# owner or administrator of a service at an org or folder node to set the
|
471
|
+
# default quota limit for all consumers under the node where the policy is
|
472
|
+
# created. To create multiple policies at once, use ImportProducerQuotaPolicies
|
473
|
+
# instead. If a policy with the specified dimensions already exists, this call
|
474
|
+
# will fail. To overwrite an existing policy if one is already present ("upsert"
|
475
|
+
# semantics), use ImportProducerQuotaPolicies instead.
|
476
|
+
# @param [String] parent
|
477
|
+
# Required. The resource name of the parent quota limit. An example name would
|
478
|
+
# be: `services/compute.googleapis.com/organizations/123/consumerQuotaMetrics/
|
479
|
+
# compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
480
|
+
# @param [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy] v1_beta1_producer_quota_policy_object
|
481
|
+
# @param [Boolean] force
|
482
|
+
# Whether to force the creation of the quota policy. If the policy creation
|
483
|
+
# would decrease the default limit of any consumer tier by more than 10 percent,
|
484
|
+
# the call is rejected, as a safety measure to avoid accidentally decreasing
|
485
|
+
# quota too quickly. Setting the force parameter to true ignores this
|
486
|
+
# restriction.
|
487
|
+
# @param [String] force_justification
|
488
|
+
# If force option is set to true, force_justification is suggested to be set to
|
489
|
+
# log the reason in audit logs.
|
490
|
+
# @param [Boolean] validate_only
|
491
|
+
# If set to true, validate the request, but do not actually update.
|
492
|
+
# @param [String] fields
|
493
|
+
# Selector specifying which fields to include in a partial response.
|
494
|
+
# @param [String] quota_user
|
495
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
496
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
497
|
+
# @param [Google::Apis::RequestOptions] options
|
498
|
+
# Request-specific options
|
499
|
+
#
|
500
|
+
# @yield [result, err] Result & error if block supplied
|
501
|
+
# @yieldparam result [Google::Apis::ServiceconsumermanagementV1beta1::Operation] parsed result object
|
502
|
+
# @yieldparam err [StandardError] error object if request failed
|
503
|
+
#
|
504
|
+
# @return [Google::Apis::ServiceconsumermanagementV1beta1::Operation]
|
505
|
+
#
|
506
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
507
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
508
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
509
|
+
def create_service_consumer_quota_metric_limit_producer_quota_policy(parent, v1_beta1_producer_quota_policy_object = nil, force: nil, force_justification: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
510
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/producerQuotaPolicies', options)
|
511
|
+
command.request_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy::Representation
|
512
|
+
command.request_object = v1_beta1_producer_quota_policy_object
|
513
|
+
command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::Operation::Representation
|
514
|
+
command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::Operation
|
515
|
+
command.params['parent'] = parent unless parent.nil?
|
516
|
+
command.query['force'] = force unless force.nil?
|
517
|
+
command.query['forceJustification'] = force_justification unless force_justification.nil?
|
518
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
519
|
+
command.query['fields'] = fields unless fields.nil?
|
520
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
521
|
+
execute_or_queue_command(command, &block)
|
522
|
+
end
|
523
|
+
|
524
|
+
# Deletes a producer quota policy.
|
525
|
+
# @param [String] name
|
526
|
+
# Required. The resource name of the policy to delete. An example name would be:
|
527
|
+
# `services/compute.googleapis.com/organizations/123/consumerQuotaMetrics/
|
528
|
+
# compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/
|
529
|
+
# 4a3f2c1d`
|
530
|
+
# @param [Boolean] force
|
531
|
+
# Whether to force the deletion of the quota policy. If the policy deletion
|
532
|
+
# would decrease the default limit of any consumer tier by more than 10 percent,
|
533
|
+
# the call is rejected, as a safety measure to avoid accidentally decreasing
|
534
|
+
# quota too quickly. Setting the force parameter to true ignores this
|
535
|
+
# restriction.
|
536
|
+
# @param [String] force_justification
|
537
|
+
# If force option is set to true, force_justification is suggested to be set to
|
538
|
+
# log the reason in audit logs.
|
539
|
+
# @param [Boolean] validate_only
|
540
|
+
# If set to true, validate the request, but do not actually update.
|
541
|
+
# @param [String] fields
|
542
|
+
# Selector specifying which fields to include in a partial response.
|
543
|
+
# @param [String] quota_user
|
544
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
545
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
546
|
+
# @param [Google::Apis::RequestOptions] options
|
547
|
+
# Request-specific options
|
548
|
+
#
|
549
|
+
# @yield [result, err] Result & error if block supplied
|
550
|
+
# @yieldparam result [Google::Apis::ServiceconsumermanagementV1beta1::Operation] parsed result object
|
551
|
+
# @yieldparam err [StandardError] error object if request failed
|
552
|
+
#
|
553
|
+
# @return [Google::Apis::ServiceconsumermanagementV1beta1::Operation]
|
554
|
+
#
|
555
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
556
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
557
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
558
|
+
def delete_service_consumer_quota_metric_limit_producer_quota_policy(name, force: nil, force_justification: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
559
|
+
command = make_simple_command(:delete, 'v1beta1/{+name}', options)
|
560
|
+
command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::Operation::Representation
|
561
|
+
command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::Operation
|
562
|
+
command.params['name'] = name unless name.nil?
|
563
|
+
command.query['force'] = force unless force.nil?
|
564
|
+
command.query['forceJustification'] = force_justification unless force_justification.nil?
|
565
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
566
|
+
command.query['fields'] = fields unless fields.nil?
|
567
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
568
|
+
execute_or_queue_command(command, &block)
|
569
|
+
end
|
570
|
+
|
571
|
+
# Lists all producer policies created at current consumer node for a limit.
|
572
|
+
# @param [String] parent
|
573
|
+
# Required. The resource name of the parent quota limit. An example name would
|
574
|
+
# be: `services/compute.googleapis.com/organizations/123/consumerQuotaMetrics/
|
575
|
+
# compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
576
|
+
# @param [Fixnum] page_size
|
577
|
+
# Requested size of the next page of data.
|
578
|
+
# @param [String] page_token
|
579
|
+
# Token identifying which result to start with; returned by a previous list call.
|
580
|
+
# @param [String] fields
|
581
|
+
# Selector specifying which fields to include in a partial response.
|
582
|
+
# @param [String] quota_user
|
583
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
584
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
585
|
+
# @param [Google::Apis::RequestOptions] options
|
586
|
+
# Request-specific options
|
587
|
+
#
|
588
|
+
# @yield [result, err] Result & error if block supplied
|
589
|
+
# @yieldparam result [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ListProducerQuotaPoliciesResponse] parsed result object
|
590
|
+
# @yieldparam err [StandardError] error object if request failed
|
591
|
+
#
|
592
|
+
# @return [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ListProducerQuotaPoliciesResponse]
|
593
|
+
#
|
594
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
595
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
596
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
597
|
+
def list_service_consumer_quota_metric_limit_producer_quota_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
598
|
+
command = make_simple_command(:get, 'v1beta1/{+parent}/producerQuotaPolicies', options)
|
599
|
+
command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ListProducerQuotaPoliciesResponse::Representation
|
600
|
+
command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ListProducerQuotaPoliciesResponse
|
601
|
+
command.params['parent'] = parent unless parent.nil?
|
602
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
603
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
604
|
+
command.query['fields'] = fields unless fields.nil?
|
605
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
606
|
+
execute_or_queue_command(command, &block)
|
607
|
+
end
|
608
|
+
|
609
|
+
# Updates a producer quota policy.
|
610
|
+
# @param [String] name
|
611
|
+
# The resource name of the producer policy. An example name would be: `services/
|
612
|
+
# compute.googleapis.com/organizations/123/consumerQuotaMetrics/compute.
|
613
|
+
# googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/
|
614
|
+
# 4a3f2c1d`
|
615
|
+
# @param [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy] v1_beta1_producer_quota_policy_object
|
616
|
+
# @param [Boolean] force
|
617
|
+
# Whether to force the update of the quota policy. If the policy update would
|
618
|
+
# decrease the default limit of any consumer tier by more than 10 percent, the
|
619
|
+
# call is rejected, as a safety measure to avoid accidentally decreasing quota
|
620
|
+
# too quickly. Setting the force parameter to true ignores this restriction.
|
621
|
+
# @param [String] force_justification
|
622
|
+
# If force option is set to true, force_justification is suggested to be set to
|
623
|
+
# log the reason in audit logs.
|
624
|
+
# @param [String] update_mask
|
625
|
+
# Update only the specified fields. If unset, all modifiable fields will be
|
626
|
+
# updated.
|
627
|
+
# @param [Boolean] validate_only
|
628
|
+
# If set to true, validate the request, but do not actually update.
|
629
|
+
# @param [String] fields
|
630
|
+
# Selector specifying which fields to include in a partial response.
|
631
|
+
# @param [String] quota_user
|
632
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
633
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
634
|
+
# @param [Google::Apis::RequestOptions] options
|
635
|
+
# Request-specific options
|
636
|
+
#
|
637
|
+
# @yield [result, err] Result & error if block supplied
|
638
|
+
# @yieldparam result [Google::Apis::ServiceconsumermanagementV1beta1::Operation] parsed result object
|
639
|
+
# @yieldparam err [StandardError] error object if request failed
|
640
|
+
#
|
641
|
+
# @return [Google::Apis::ServiceconsumermanagementV1beta1::Operation]
|
642
|
+
#
|
643
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
644
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
645
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
646
|
+
def patch_service_consumer_quota_metric_limit_producer_quota_policy(name, v1_beta1_producer_quota_policy_object = nil, force: nil, force_justification: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
647
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
648
|
+
command.request_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy::Representation
|
649
|
+
command.request_object = v1_beta1_producer_quota_policy_object
|
650
|
+
command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::Operation::Representation
|
651
|
+
command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::Operation
|
652
|
+
command.params['name'] = name unless name.nil?
|
653
|
+
command.query['force'] = force unless force.nil?
|
654
|
+
command.query['forceJustification'] = force_justification unless force_justification.nil?
|
655
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
656
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
657
|
+
command.query['fields'] = fields unless fields.nil?
|
658
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
659
|
+
execute_or_queue_command(command, &block)
|
660
|
+
end
|
432
661
|
|
433
662
|
protected
|
434
663
|
|
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.
|
4
|
+
version: 0.51.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: 2024-
|
11
|
+
date: 2024-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.15.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.15.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-serviceconsumermanagement_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-serviceconsumermanagement_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-serviceconsumermanagement_v1beta1/v0.51.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-serviceconsumermanagement_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|