google-api-client 0.40.0 → 0.40.1
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 +53 -0
- data/generated/google/apis/admob_v1.rb +1 -1
- data/generated/google/apis/admob_v1/classes.rb +5 -6
- data/generated/google/apis/androidenterprise_v1.rb +2 -2
- data/generated/google/apis/androidenterprise_v1/classes.rb +547 -724
- data/generated/google/apis/androidenterprise_v1/representations.rb +0 -54
- data/generated/google/apis/androidenterprise_v1/service.rb +540 -795
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +21 -2
- data/generated/google/apis/androidpublisher_v3/representations.rb +2 -0
- data/generated/google/apis/appsmarket_v2.rb +3 -3
- data/generated/google/apis/appsmarket_v2/classes.rb +160 -159
- data/generated/google/apis/appsmarket_v2/representations.rb +78 -78
- data/generated/google/apis/appsmarket_v2/service.rb +24 -39
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +14 -2
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +42 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +12 -0
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +12 -0
- data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/service.rb +1 -1
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +6 -4
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +9 -0
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +63 -99
- data/generated/google/apis/compute_alpha/representations.rb +14 -32
- data/generated/google/apis/compute_alpha/service.rb +37 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +51 -26
- data/generated/google/apis/compute_beta/representations.rb +3 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +5 -5
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +34 -0
- data/generated/google/apis/content_v2/representations.rb +16 -0
- data/generated/google/apis/content_v2/service.rb +5 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +357 -5
- data/generated/google/apis/content_v2_1/representations.rb +135 -0
- data/generated/google/apis/content_v2_1/service.rb +85 -1
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +22 -22
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +23 -23
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +9 -29
- data/generated/google/apis/dialogflow_v2/representations.rb +0 -4
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +0 -28
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +0 -4
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +463 -0
- data/generated/google/apis/displayvideo_v1/representations.rb +238 -0
- data/generated/google/apis/displayvideo_v1/service.rb +1718 -376
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +0 -1156
- data/generated/google/apis/file_v1/representations.rb +0 -381
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +67 -1156
- data/generated/google/apis/file_v1beta1/representations.rb +14 -376
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +30 -25
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +3 -3
- data/generated/google/apis/healthcare_v1/service.rb +3 -3
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +3 -3
- data/generated/google/apis/healthcare_v1beta1/service.rb +3 -3
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +36 -5
- data/generated/google/apis/memcache_v1beta2/representations.rb +15 -0
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +100 -0
- data/generated/google/apis/people_v1/representations.rb +31 -0
- data/generated/google/apis/people_v1/service.rb +95 -2
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +30 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +15 -1
- data/generated/google/apis/pubsub_v1/representations.rb +12 -0
- data/generated/google/apis/pubsub_v1/service.rb +35 -1
- data/generated/google/apis/{dialogflow_v3alpha1.rb → recommender_v1.rb} +9 -13
- data/generated/google/apis/recommender_v1/classes.rb +505 -0
- data/generated/google/apis/recommender_v1/representations.rb +232 -0
- data/generated/google/apis/recommender_v1/service.rb +266 -0
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +9 -0
- data/generated/google/apis/run_v1/representations.rb +1 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +9 -0
- data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/service.rb +30 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +97 -0
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +32 -0
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +97 -0
- data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +32 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +3 -3
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +89 -0
- data/generated/google/apis/serviceusage_v1/representations.rb +32 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +89 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +32 -0
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +23 -10
- data/generated/google/apis/sourcerepo_v1/service.rb +3 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +1 -2
- data/generated/google/apis/spanner_v1/service.rb +8 -8
- data/generated/google/apis/sql_v1beta4.rb +1 -1
- data/generated/google/apis/sql_v1beta4/classes.rb +7 -0
- data/generated/google/apis/sql_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +2 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +2 -1
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +1 -1
- data/generated/google/apis/videointelligence_v1/service.rb +32 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/core/api_command.rb +12 -7
- data/lib/google/apis/options.rb +5 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -7
- data/generated/google/apis/dialogflow_v3alpha1/classes.rb +0 -5579
- data/generated/google/apis/dialogflow_v3alpha1/representations.rb +0 -2295
- data/generated/google/apis/dialogflow_v3alpha1/service.rb +0 -296
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/run/
|
|
27
27
|
module RunV1
|
|
28
28
|
VERSION = 'V1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20200521'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -887,6 +887,14 @@ module Google
|
|
|
887
887
|
# @return [Array<Google::Apis::RunV1::ResourceRecord>]
|
|
888
888
|
attr_accessor :resource_records
|
|
889
889
|
|
|
890
|
+
# Cloud Run fully managed: not supported
|
|
891
|
+
# Cloud Run on GKE: supported
|
|
892
|
+
# Holds the URL that will serve the traffic of the DomainMapping.
|
|
893
|
+
# +optional
|
|
894
|
+
# Corresponds to the JSON property `url`
|
|
895
|
+
# @return [String]
|
|
896
|
+
attr_accessor :url
|
|
897
|
+
|
|
890
898
|
def initialize(**args)
|
|
891
899
|
update!(**args)
|
|
892
900
|
end
|
|
@@ -897,6 +905,7 @@ module Google
|
|
|
897
905
|
@mapped_route_name = args[:mapped_route_name] if args.key?(:mapped_route_name)
|
|
898
906
|
@observed_generation = args[:observed_generation] if args.key?(:observed_generation)
|
|
899
907
|
@resource_records = args[:resource_records] if args.key?(:resource_records)
|
|
908
|
+
@url = args[:url] if args.key?(:url)
|
|
900
909
|
end
|
|
901
910
|
end
|
|
902
911
|
|
|
@@ -614,6 +614,7 @@ module Google
|
|
|
614
614
|
property :observed_generation, as: 'observedGeneration'
|
|
615
615
|
collection :resource_records, as: 'resourceRecords', class: Google::Apis::RunV1::ResourceRecord, decorator: Google::Apis::RunV1::ResourceRecord::Representation
|
|
616
616
|
|
|
617
|
+
property :url, as: 'url'
|
|
617
618
|
end
|
|
618
619
|
end
|
|
619
620
|
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/run/
|
|
27
27
|
module RunV1alpha1
|
|
28
28
|
VERSION = 'V1alpha1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20200521'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -1815,6 +1815,14 @@ module Google
|
|
|
1815
1815
|
# @return [Array<Google::Apis::RunV1alpha1::ResourceRecord>]
|
|
1816
1816
|
attr_accessor :resource_records
|
|
1817
1817
|
|
|
1818
|
+
# Cloud Run fully managed: not supported
|
|
1819
|
+
# Cloud Run on GKE: supported
|
|
1820
|
+
# Holds the URL that will serve the traffic of the DomainMapping.
|
|
1821
|
+
# +optional
|
|
1822
|
+
# Corresponds to the JSON property `url`
|
|
1823
|
+
# @return [String]
|
|
1824
|
+
attr_accessor :url
|
|
1825
|
+
|
|
1818
1826
|
def initialize(**args)
|
|
1819
1827
|
update!(**args)
|
|
1820
1828
|
end
|
|
@@ -1825,6 +1833,7 @@ module Google
|
|
|
1825
1833
|
@mapped_route_name = args[:mapped_route_name] if args.key?(:mapped_route_name)
|
|
1826
1834
|
@observed_generation = args[:observed_generation] if args.key?(:observed_generation)
|
|
1827
1835
|
@resource_records = args[:resource_records] if args.key?(:resource_records)
|
|
1836
|
+
@url = args[:url] if args.key?(:url)
|
|
1828
1837
|
end
|
|
1829
1838
|
end
|
|
1830
1839
|
|
|
@@ -1064,6 +1064,7 @@ module Google
|
|
|
1064
1064
|
property :observed_generation, as: 'observedGeneration'
|
|
1065
1065
|
collection :resource_records, as: 'resourceRecords', class: Google::Apis::RunV1alpha1::ResourceRecord, decorator: Google::Apis::RunV1alpha1::ResourceRecord::Representation
|
|
1066
1066
|
|
|
1067
|
+
property :url, as: 'url'
|
|
1067
1068
|
end
|
|
1068
1069
|
end
|
|
1069
1070
|
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/spectrum-access-system/
|
|
26
26
|
module SasportalV1alpha1
|
|
27
27
|
VERSION = 'V1alpha1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200601'
|
|
29
29
|
|
|
30
30
|
# View your email address
|
|
31
31
|
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
|
@@ -818,6 +818,36 @@ module Google
|
|
|
818
818
|
execute_or_queue_command(command, &block)
|
|
819
819
|
end
|
|
820
820
|
|
|
821
|
+
# Returns a requested node.
|
|
822
|
+
# @param [String] name
|
|
823
|
+
# Required. The name of the node.
|
|
824
|
+
# @param [String] fields
|
|
825
|
+
# Selector specifying which fields to include in a partial response.
|
|
826
|
+
# @param [String] quota_user
|
|
827
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
828
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
829
|
+
# @param [Google::Apis::RequestOptions] options
|
|
830
|
+
# Request-specific options
|
|
831
|
+
#
|
|
832
|
+
# @yield [result, err] Result & error if block supplied
|
|
833
|
+
# @yieldparam result [Google::Apis::SasportalV1alpha1::SasPortalNode] parsed result object
|
|
834
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
835
|
+
#
|
|
836
|
+
# @return [Google::Apis::SasportalV1alpha1::SasPortalNode]
|
|
837
|
+
#
|
|
838
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
839
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
840
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
841
|
+
def get_node(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
842
|
+
command = make_simple_command(:get, 'v1alpha1/{+name}', options)
|
|
843
|
+
command.response_representation = Google::Apis::SasportalV1alpha1::SasPortalNode::Representation
|
|
844
|
+
command.response_class = Google::Apis::SasportalV1alpha1::SasPortalNode
|
|
845
|
+
command.params['name'] = name unless name.nil?
|
|
846
|
+
command.query['fields'] = fields unless fields.nil?
|
|
847
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
848
|
+
execute_or_queue_command(command, &block)
|
|
849
|
+
end
|
|
850
|
+
|
|
821
851
|
# Creates a device under a node or customer. Returned devices are unordered.
|
|
822
852
|
# @param [String] parent
|
|
823
853
|
# Required. The name of the parent resource.
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/service-consumer-management/docs/overview
|
|
26
26
|
module ServiceconsumermanagementV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200603'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -4071,6 +4071,103 @@ module Google
|
|
|
4071
4071
|
end
|
|
4072
4072
|
end
|
|
4073
4073
|
|
|
4074
|
+
# Response message for ImportProducerQuotaPolicies
|
|
4075
|
+
class V1Beta1ImportProducerQuotaPoliciesResponse
|
|
4076
|
+
include Google::Apis::Core::Hashable
|
|
4077
|
+
|
|
4078
|
+
# The policies that were created from the imported data.
|
|
4079
|
+
# Corresponds to the JSON property `policies`
|
|
4080
|
+
# @return [Array<Google::Apis::ServiceconsumermanagementV1::V1Beta1ProducerQuotaPolicy>]
|
|
4081
|
+
attr_accessor :policies
|
|
4082
|
+
|
|
4083
|
+
def initialize(**args)
|
|
4084
|
+
update!(**args)
|
|
4085
|
+
end
|
|
4086
|
+
|
|
4087
|
+
# Update properties of this object
|
|
4088
|
+
def update!(**args)
|
|
4089
|
+
@policies = args[:policies] if args.key?(:policies)
|
|
4090
|
+
end
|
|
4091
|
+
end
|
|
4092
|
+
|
|
4093
|
+
# Quota policy created by service producer.
|
|
4094
|
+
class V1Beta1ProducerQuotaPolicy
|
|
4095
|
+
include Google::Apis::Core::Hashable
|
|
4096
|
+
|
|
4097
|
+
# The cloud resource container at which the quota policy is created. The
|
|
4098
|
+
# format is `container_type`/`container_number`
|
|
4099
|
+
# Corresponds to the JSON property `container`
|
|
4100
|
+
# @return [String]
|
|
4101
|
+
attr_accessor :container
|
|
4102
|
+
|
|
4103
|
+
# If this map is nonempty, then this policy applies only to specific values
|
|
4104
|
+
# for dimensions defined in the limit unit.
|
|
4105
|
+
# For example, an policy on a limit with the unit 1/`project`/`region`
|
|
4106
|
+
# could contain an entry with the key "region" and the value "us-east-1";
|
|
4107
|
+
# the policy is only applied to quota consumed in that region.
|
|
4108
|
+
# This map has the following restrictions:
|
|
4109
|
+
# * Keys that are not defined in the limit's unit are not valid keys.
|
|
4110
|
+
# Any string appearing in `brackets` in the unit (besides `project` or
|
|
4111
|
+
# `user`) is a defined key.
|
|
4112
|
+
# * "project" is not a valid key; the project is already specified in
|
|
4113
|
+
# the parent resource name.
|
|
4114
|
+
# * "user" is not a valid key; the API does not support quota polcies
|
|
4115
|
+
# that apply only to a specific user.
|
|
4116
|
+
# * If "region" appears as a key, its value must be a valid Cloud region.
|
|
4117
|
+
# * If "zone" appears as a key, its value must be a valid Cloud zone.
|
|
4118
|
+
# * If any valid key other than "region" or "zone" appears in the map, then
|
|
4119
|
+
# all valid keys other than "region" or "zone" must also appear in the
|
|
4120
|
+
# map.
|
|
4121
|
+
# Corresponds to the JSON property `dimensions`
|
|
4122
|
+
# @return [Hash<String,String>]
|
|
4123
|
+
attr_accessor :dimensions
|
|
4124
|
+
|
|
4125
|
+
# The name of the metric to which this policy applies.
|
|
4126
|
+
# An example name would be:
|
|
4127
|
+
# `compute.googleapis.com/cpus`
|
|
4128
|
+
# Corresponds to the JSON property `metric`
|
|
4129
|
+
# @return [String]
|
|
4130
|
+
attr_accessor :metric
|
|
4131
|
+
|
|
4132
|
+
# The resource name of the producer policy.
|
|
4133
|
+
# An example name would be:
|
|
4134
|
+
# `services/compute.googleapis.com/organizations/123/consumerQuotaMetrics/
|
|
4135
|
+
# compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/
|
|
4136
|
+
# 4a3f2c1d`
|
|
4137
|
+
# Corresponds to the JSON property `name`
|
|
4138
|
+
# @return [String]
|
|
4139
|
+
attr_accessor :name
|
|
4140
|
+
|
|
4141
|
+
# The quota policy value.
|
|
4142
|
+
# Can be any nonnegative integer, or -1 (unlimited quota).
|
|
4143
|
+
# Corresponds to the JSON property `policyValue`
|
|
4144
|
+
# @return [Fixnum]
|
|
4145
|
+
attr_accessor :policy_value
|
|
4146
|
+
|
|
4147
|
+
# The limit unit of the limit to which this policy applies.
|
|
4148
|
+
# An example unit would be:
|
|
4149
|
+
# `1/`project`/`region``
|
|
4150
|
+
# Note that ``project`` and ``region`` are not placeholders in this example;
|
|
4151
|
+
# the literal characters ``` and ``` occur in the string.
|
|
4152
|
+
# Corresponds to the JSON property `unit`
|
|
4153
|
+
# @return [String]
|
|
4154
|
+
attr_accessor :unit
|
|
4155
|
+
|
|
4156
|
+
def initialize(**args)
|
|
4157
|
+
update!(**args)
|
|
4158
|
+
end
|
|
4159
|
+
|
|
4160
|
+
# Update properties of this object
|
|
4161
|
+
def update!(**args)
|
|
4162
|
+
@container = args[:container] if args.key?(:container)
|
|
4163
|
+
@dimensions = args[:dimensions] if args.key?(:dimensions)
|
|
4164
|
+
@metric = args[:metric] if args.key?(:metric)
|
|
4165
|
+
@name = args[:name] if args.key?(:name)
|
|
4166
|
+
@policy_value = args[:policy_value] if args.key?(:policy_value)
|
|
4167
|
+
@unit = args[:unit] if args.key?(:unit)
|
|
4168
|
+
end
|
|
4169
|
+
end
|
|
4170
|
+
|
|
4074
4171
|
# A quota override
|
|
4075
4172
|
class V1Beta1QuotaOverride
|
|
4076
4173
|
include Google::Apis::Core::Hashable
|
|
@@ -490,6 +490,18 @@ module Google
|
|
|
490
490
|
include Google::Apis::Core::JsonObjectSupport
|
|
491
491
|
end
|
|
492
492
|
|
|
493
|
+
class V1Beta1ImportProducerQuotaPoliciesResponse
|
|
494
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
495
|
+
|
|
496
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
class V1Beta1ProducerQuotaPolicy
|
|
500
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
501
|
+
|
|
502
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
503
|
+
end
|
|
504
|
+
|
|
493
505
|
class V1Beta1QuotaOverride
|
|
494
506
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
495
507
|
|
|
@@ -1361,6 +1373,26 @@ module Google
|
|
|
1361
1373
|
end
|
|
1362
1374
|
end
|
|
1363
1375
|
|
|
1376
|
+
class V1Beta1ImportProducerQuotaPoliciesResponse
|
|
1377
|
+
# @private
|
|
1378
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1379
|
+
collection :policies, as: 'policies', class: Google::Apis::ServiceconsumermanagementV1::V1Beta1ProducerQuotaPolicy, decorator: Google::Apis::ServiceconsumermanagementV1::V1Beta1ProducerQuotaPolicy::Representation
|
|
1380
|
+
|
|
1381
|
+
end
|
|
1382
|
+
end
|
|
1383
|
+
|
|
1384
|
+
class V1Beta1ProducerQuotaPolicy
|
|
1385
|
+
# @private
|
|
1386
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1387
|
+
property :container, as: 'container'
|
|
1388
|
+
hash :dimensions, as: 'dimensions'
|
|
1389
|
+
property :metric, as: 'metric'
|
|
1390
|
+
property :name, as: 'name'
|
|
1391
|
+
property :policy_value, :numeric_string => true, as: 'policyValue'
|
|
1392
|
+
property :unit, as: 'unit'
|
|
1393
|
+
end
|
|
1394
|
+
end
|
|
1395
|
+
|
|
1364
1396
|
class V1Beta1QuotaOverride
|
|
1365
1397
|
# @private
|
|
1366
1398
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/service-consumer-management/docs/overview
|
|
26
26
|
module ServiceconsumermanagementV1beta1
|
|
27
27
|
VERSION = 'V1beta1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20200603'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -3673,6 +3673,25 @@ module Google
|
|
|
3673
3673
|
end
|
|
3674
3674
|
end
|
|
3675
3675
|
|
|
3676
|
+
# Response message for ImportProducerQuotaPolicies
|
|
3677
|
+
class V1Beta1ImportProducerQuotaPoliciesResponse
|
|
3678
|
+
include Google::Apis::Core::Hashable
|
|
3679
|
+
|
|
3680
|
+
# The policies that were created from the imported data.
|
|
3681
|
+
# Corresponds to the JSON property `policies`
|
|
3682
|
+
# @return [Array<Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy>]
|
|
3683
|
+
attr_accessor :policies
|
|
3684
|
+
|
|
3685
|
+
def initialize(**args)
|
|
3686
|
+
update!(**args)
|
|
3687
|
+
end
|
|
3688
|
+
|
|
3689
|
+
# Update properties of this object
|
|
3690
|
+
def update!(**args)
|
|
3691
|
+
@policies = args[:policies] if args.key?(:policies)
|
|
3692
|
+
end
|
|
3693
|
+
end
|
|
3694
|
+
|
|
3676
3695
|
# Response message for ListConsumerQuotaMetrics.
|
|
3677
3696
|
class V1Beta1ListConsumerQuotaMetricsResponse
|
|
3678
3697
|
include Google::Apis::Core::Hashable
|
|
@@ -3746,6 +3765,84 @@ module Google
|
|
|
3746
3765
|
end
|
|
3747
3766
|
end
|
|
3748
3767
|
|
|
3768
|
+
# Quota policy created by service producer.
|
|
3769
|
+
class V1Beta1ProducerQuotaPolicy
|
|
3770
|
+
include Google::Apis::Core::Hashable
|
|
3771
|
+
|
|
3772
|
+
# The cloud resource container at which the quota policy is created. The
|
|
3773
|
+
# format is `container_type`/`container_number`
|
|
3774
|
+
# Corresponds to the JSON property `container`
|
|
3775
|
+
# @return [String]
|
|
3776
|
+
attr_accessor :container
|
|
3777
|
+
|
|
3778
|
+
# If this map is nonempty, then this policy applies only to specific values
|
|
3779
|
+
# for dimensions defined in the limit unit.
|
|
3780
|
+
# For example, an policy on a limit with the unit 1/`project`/`region`
|
|
3781
|
+
# could contain an entry with the key "region" and the value "us-east-1";
|
|
3782
|
+
# the policy is only applied to quota consumed in that region.
|
|
3783
|
+
# This map has the following restrictions:
|
|
3784
|
+
# * Keys that are not defined in the limit's unit are not valid keys.
|
|
3785
|
+
# Any string appearing in `brackets` in the unit (besides `project` or
|
|
3786
|
+
# `user`) is a defined key.
|
|
3787
|
+
# * "project" is not a valid key; the project is already specified in
|
|
3788
|
+
# the parent resource name.
|
|
3789
|
+
# * "user" is not a valid key; the API does not support quota polcies
|
|
3790
|
+
# that apply only to a specific user.
|
|
3791
|
+
# * If "region" appears as a key, its value must be a valid Cloud region.
|
|
3792
|
+
# * If "zone" appears as a key, its value must be a valid Cloud zone.
|
|
3793
|
+
# * If any valid key other than "region" or "zone" appears in the map, then
|
|
3794
|
+
# all valid keys other than "region" or "zone" must also appear in the
|
|
3795
|
+
# map.
|
|
3796
|
+
# Corresponds to the JSON property `dimensions`
|
|
3797
|
+
# @return [Hash<String,String>]
|
|
3798
|
+
attr_accessor :dimensions
|
|
3799
|
+
|
|
3800
|
+
# The name of the metric to which this policy applies.
|
|
3801
|
+
# An example name would be:
|
|
3802
|
+
# `compute.googleapis.com/cpus`
|
|
3803
|
+
# Corresponds to the JSON property `metric`
|
|
3804
|
+
# @return [String]
|
|
3805
|
+
attr_accessor :metric
|
|
3806
|
+
|
|
3807
|
+
# The resource name of the producer policy.
|
|
3808
|
+
# An example name would be:
|
|
3809
|
+
# `services/compute.googleapis.com/organizations/123/consumerQuotaMetrics/
|
|
3810
|
+
# compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/
|
|
3811
|
+
# 4a3f2c1d`
|
|
3812
|
+
# Corresponds to the JSON property `name`
|
|
3813
|
+
# @return [String]
|
|
3814
|
+
attr_accessor :name
|
|
3815
|
+
|
|
3816
|
+
# The quota policy value.
|
|
3817
|
+
# Can be any nonnegative integer, or -1 (unlimited quota).
|
|
3818
|
+
# Corresponds to the JSON property `policyValue`
|
|
3819
|
+
# @return [Fixnum]
|
|
3820
|
+
attr_accessor :policy_value
|
|
3821
|
+
|
|
3822
|
+
# The limit unit of the limit to which this policy applies.
|
|
3823
|
+
# An example unit would be:
|
|
3824
|
+
# `1/`project`/`region``
|
|
3825
|
+
# Note that ``project`` and ``region`` are not placeholders in this example;
|
|
3826
|
+
# the literal characters ``` and ``` occur in the string.
|
|
3827
|
+
# Corresponds to the JSON property `unit`
|
|
3828
|
+
# @return [String]
|
|
3829
|
+
attr_accessor :unit
|
|
3830
|
+
|
|
3831
|
+
def initialize(**args)
|
|
3832
|
+
update!(**args)
|
|
3833
|
+
end
|
|
3834
|
+
|
|
3835
|
+
# Update properties of this object
|
|
3836
|
+
def update!(**args)
|
|
3837
|
+
@container = args[:container] if args.key?(:container)
|
|
3838
|
+
@dimensions = args[:dimensions] if args.key?(:dimensions)
|
|
3839
|
+
@metric = args[:metric] if args.key?(:metric)
|
|
3840
|
+
@name = args[:name] if args.key?(:name)
|
|
3841
|
+
@policy_value = args[:policy_value] if args.key?(:policy_value)
|
|
3842
|
+
@unit = args[:unit] if args.key?(:unit)
|
|
3843
|
+
end
|
|
3844
|
+
end
|
|
3845
|
+
|
|
3749
3846
|
# A quota bucket is a quota provisioning unit for a specific set of dimensions.
|
|
3750
3847
|
class V1Beta1QuotaBucket
|
|
3751
3848
|
include Google::Apis::Core::Hashable
|
|
@@ -394,6 +394,12 @@ module Google
|
|
|
394
394
|
include Google::Apis::Core::JsonObjectSupport
|
|
395
395
|
end
|
|
396
396
|
|
|
397
|
+
class V1Beta1ImportProducerQuotaPoliciesResponse
|
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
399
|
+
|
|
400
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
401
|
+
end
|
|
402
|
+
|
|
397
403
|
class V1Beta1ListConsumerQuotaMetricsResponse
|
|
398
404
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
399
405
|
|
|
@@ -412,6 +418,12 @@ module Google
|
|
|
412
418
|
include Google::Apis::Core::JsonObjectSupport
|
|
413
419
|
end
|
|
414
420
|
|
|
421
|
+
class V1Beta1ProducerQuotaPolicy
|
|
422
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
423
|
+
|
|
424
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
425
|
+
end
|
|
426
|
+
|
|
415
427
|
class V1Beta1QuotaBucket
|
|
416
428
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
417
429
|
|
|
@@ -1165,6 +1177,14 @@ module Google
|
|
|
1165
1177
|
end
|
|
1166
1178
|
end
|
|
1167
1179
|
|
|
1180
|
+
class V1Beta1ImportProducerQuotaPoliciesResponse
|
|
1181
|
+
# @private
|
|
1182
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1183
|
+
collection :policies, as: 'policies', class: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy, decorator: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy::Representation
|
|
1184
|
+
|
|
1185
|
+
end
|
|
1186
|
+
end
|
|
1187
|
+
|
|
1168
1188
|
class V1Beta1ListConsumerQuotaMetricsResponse
|
|
1169
1189
|
# @private
|
|
1170
1190
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1191,6 +1211,18 @@ module Google
|
|
|
1191
1211
|
end
|
|
1192
1212
|
end
|
|
1193
1213
|
|
|
1214
|
+
class V1Beta1ProducerQuotaPolicy
|
|
1215
|
+
# @private
|
|
1216
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1217
|
+
property :container, as: 'container'
|
|
1218
|
+
hash :dimensions, as: 'dimensions'
|
|
1219
|
+
property :metric, as: 'metric'
|
|
1220
|
+
property :name, as: 'name'
|
|
1221
|
+
property :policy_value, :numeric_string => true, as: 'policyValue'
|
|
1222
|
+
property :unit, as: 'unit'
|
|
1223
|
+
end
|
|
1224
|
+
end
|
|
1225
|
+
|
|
1194
1226
|
class V1Beta1QuotaBucket
|
|
1195
1227
|
# @private
|
|
1196
1228
|
class Representation < Google::Apis::Core::JsonRepresentation
|