google-apis-serviceconsumermanagement_v1beta1 0.40.0 → 0.41.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 +4 -0
- data/lib/google/apis/serviceconsumermanagement_v1beta1/classes.rb +66 -0
- data/lib/google/apis/serviceconsumermanagement_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/serviceconsumermanagement_v1beta1/representations.rb +20 -0
- data/lib/google/apis/serviceconsumermanagement_v1beta1/service.rb +36 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20d4b659cbc183679a842c0bee9dd2406962a730872b91f3e9b0c37314c5b35e
|
4
|
+
data.tar.gz: ae2b362c45c38da9cc477d8ba1604772c3c7d1c845df5d287bb20de54ff8982a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48212e8516d2f829f034fe67e2a30c0e598c3da781b0f08be9aa9de653f43653c7d37d84c85de800534e5e70186c5539ae8a00406f57b0560c85fdf16bfca3f6
|
7
|
+
data.tar.gz: f0dc51b890f18ac6266c036d07e1b52053ac849bb248957b880c11cca5b4db60075a568319a4655a651246e25f99f982e0a47ab54361d64794b5936a3b56ae0a
|
data/CHANGELOG.md
CHANGED
@@ -1889,6 +1889,15 @@ module Google
|
|
1889
1889
|
class MethodSettings
|
1890
1890
|
include Google::Apis::Core::Hashable
|
1891
1891
|
|
1892
|
+
# List of top-level fields of the request message, that should be automatically
|
1893
|
+
# populated by the client libraries based on their (google.api.field_info).
|
1894
|
+
# format. Currently supported format: UUID4. Example of a YAML configuration:
|
1895
|
+
# publishing: method_settings: - selector: google.example.v1.ExampleService.
|
1896
|
+
# CreateExample auto_populated_fields: - request_id
|
1897
|
+
# Corresponds to the JSON property `autoPopulatedFields`
|
1898
|
+
# @return [Array<String>]
|
1899
|
+
attr_accessor :auto_populated_fields
|
1900
|
+
|
1892
1901
|
# Describes settings to use when generating API methods that use the long-
|
1893
1902
|
# running operation pattern. All default values below are from those used in the
|
1894
1903
|
# client library generators (e.g. [Java](https://github.com/googleapis/gapic-
|
@@ -1910,6 +1919,7 @@ module Google
|
|
1910
1919
|
|
1911
1920
|
# Update properties of this object
|
1912
1921
|
def update!(**args)
|
1922
|
+
@auto_populated_fields = args[:auto_populated_fields] if args.key?(:auto_populated_fields)
|
1913
1923
|
@long_running = args[:long_running] if args.key?(:long_running)
|
1914
1924
|
@selector = args[:selector] if args.key?(:selector)
|
1915
1925
|
end
|
@@ -3483,6 +3493,62 @@ module Google
|
|
3483
3493
|
end
|
3484
3494
|
end
|
3485
3495
|
|
3496
|
+
# A property assigned to a consumer of a service.
|
3497
|
+
class V1Beta1ConsumerProperty
|
3498
|
+
include Google::Apis::Core::Hashable
|
3499
|
+
|
3500
|
+
# Output only. The description of the property.
|
3501
|
+
# Corresponds to the JSON property `description`
|
3502
|
+
# @return [String]
|
3503
|
+
attr_accessor :description
|
3504
|
+
|
3505
|
+
# Output only. The resource name of this property. An example name would be: `
|
3506
|
+
# services/serviceconsumermanagement.googleapis.com/projects/123/properties/
|
3507
|
+
# SERVICE_LEVEL` The resource name is intended to be opaque and should not be
|
3508
|
+
# parsed for its component strings, since its representation could change in the
|
3509
|
+
# future.
|
3510
|
+
# Corresponds to the JSON property `name`
|
3511
|
+
# @return [String]
|
3512
|
+
attr_accessor :name
|
3513
|
+
|
3514
|
+
# This resource represents a long-running operation that is the result of a
|
3515
|
+
# network API call.
|
3516
|
+
# Corresponds to the JSON property `propagation`
|
3517
|
+
# @return [Google::Apis::ServiceconsumermanagementV1beta1::Operation]
|
3518
|
+
attr_accessor :propagation
|
3519
|
+
|
3520
|
+
# Output only. The name of the property as it appears in the service
|
3521
|
+
# configuration. An example property name would be: `SERVICE_LEVEL`
|
3522
|
+
# Corresponds to the JSON property `propertyKey`
|
3523
|
+
# @return [String]
|
3524
|
+
attr_accessor :property_key
|
3525
|
+
|
3526
|
+
# Output only. The type of this property.
|
3527
|
+
# Corresponds to the JSON property `type`
|
3528
|
+
# @return [String]
|
3529
|
+
attr_accessor :type
|
3530
|
+
|
3531
|
+
# Value of this property for the consumer. This field may be empty if the
|
3532
|
+
# consumer has not been assigned a value.
|
3533
|
+
# Corresponds to the JSON property `value`
|
3534
|
+
# @return [Object]
|
3535
|
+
attr_accessor :value
|
3536
|
+
|
3537
|
+
def initialize(**args)
|
3538
|
+
update!(**args)
|
3539
|
+
end
|
3540
|
+
|
3541
|
+
# Update properties of this object
|
3542
|
+
def update!(**args)
|
3543
|
+
@description = args[:description] if args.key?(:description)
|
3544
|
+
@name = args[:name] if args.key?(:name)
|
3545
|
+
@propagation = args[:propagation] if args.key?(:propagation)
|
3546
|
+
@property_key = args[:property_key] if args.key?(:property_key)
|
3547
|
+
@type = args[:type] if args.key?(:type)
|
3548
|
+
@value = args[:value] if args.key?(:value)
|
3549
|
+
end
|
3550
|
+
end
|
3551
|
+
|
3486
3552
|
# Consumer quota settings for a quota limit.
|
3487
3553
|
class V1Beta1ConsumerQuotaLimit
|
3488
3554
|
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.41.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20231128"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -436,6 +436,12 @@ module Google
|
|
436
436
|
include Google::Apis::Core::JsonObjectSupport
|
437
437
|
end
|
438
438
|
|
439
|
+
class V1Beta1ConsumerProperty
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
|
+
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
443
|
+
end
|
444
|
+
|
439
445
|
class V1Beta1ConsumerQuotaLimit
|
440
446
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
447
|
|
@@ -1016,6 +1022,7 @@ module Google
|
|
1016
1022
|
class MethodSettings
|
1017
1023
|
# @private
|
1018
1024
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1025
|
+
collection :auto_populated_fields, as: 'autoPopulatedFields'
|
1019
1026
|
property :long_running, as: 'longRunning', class: Google::Apis::ServiceconsumermanagementV1beta1::LongRunning, decorator: Google::Apis::ServiceconsumermanagementV1beta1::LongRunning::Representation
|
1020
1027
|
|
1021
1028
|
property :selector, as: 'selector'
|
@@ -1359,6 +1366,19 @@ module Google
|
|
1359
1366
|
end
|
1360
1367
|
end
|
1361
1368
|
|
1369
|
+
class V1Beta1ConsumerProperty
|
1370
|
+
# @private
|
1371
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1372
|
+
property :description, as: 'description'
|
1373
|
+
property :name, as: 'name'
|
1374
|
+
property :propagation, as: 'propagation', class: Google::Apis::ServiceconsumermanagementV1beta1::Operation, decorator: Google::Apis::ServiceconsumermanagementV1beta1::Operation::Representation
|
1375
|
+
|
1376
|
+
property :property_key, as: 'propertyKey'
|
1377
|
+
property :type, as: 'type'
|
1378
|
+
property :value, as: 'value'
|
1379
|
+
end
|
1380
|
+
end
|
1381
|
+
|
1362
1382
|
class V1Beta1ConsumerQuotaLimit
|
1363
1383
|
# @private
|
1364
1384
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -415,6 +415,42 @@ module Google
|
|
415
415
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
416
416
|
execute_or_queue_command(command, &block)
|
417
417
|
end
|
418
|
+
|
419
|
+
# Creates a consumer property. If the property already exists, this method fails
|
420
|
+
# with an ALREADY_EXISTS error. For this failure case, the Status details field
|
421
|
+
# will contain the existing property's value.
|
422
|
+
# @param [String] parent
|
423
|
+
# Required. Name of the property to create. An example name would be: `services/
|
424
|
+
# serviceconsumermanagement.googleapis.com/projects/123`
|
425
|
+
# @param [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerProperty] v1_beta1_consumer_property_object
|
426
|
+
# @param [String] fields
|
427
|
+
# Selector specifying which fields to include in a partial response.
|
428
|
+
# @param [String] quota_user
|
429
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
430
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
431
|
+
# @param [Google::Apis::RequestOptions] options
|
432
|
+
# Request-specific options
|
433
|
+
#
|
434
|
+
# @yield [result, err] Result & error if block supplied
|
435
|
+
# @yieldparam result [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerProperty] parsed result object
|
436
|
+
# @yieldparam err [StandardError] error object if request failed
|
437
|
+
#
|
438
|
+
# @return [Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerProperty]
|
439
|
+
#
|
440
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
441
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
442
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
443
|
+
def create_service_property(parent, v1_beta1_consumer_property_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
444
|
+
command = make_simple_command(:post, 'v1beta1/{+parent}/properties', options)
|
445
|
+
command.request_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerProperty::Representation
|
446
|
+
command.request_object = v1_beta1_consumer_property_object
|
447
|
+
command.response_representation = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerProperty::Representation
|
448
|
+
command.response_class = Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ConsumerProperty
|
449
|
+
command.params['parent'] = parent unless parent.nil?
|
450
|
+
command.query['fields'] = fields unless fields.nil?
|
451
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
452
|
+
execute_or_queue_command(command, &block)
|
453
|
+
end
|
418
454
|
|
419
455
|
protected
|
420
456
|
|
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.41.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: 2023-
|
11
|
+
date: 2023-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -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.41.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: []
|