google-api-client 0.40.1 → 0.40.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +65 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +3 -3
- data/generated/google/apis/androidpublisher_v3/classes.rb +468 -750
- data/generated/google/apis/androidpublisher_v3/representations.rb +9 -202
- data/generated/google/apis/androidpublisher_v3/service.rb +531 -863
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +12 -6
- data/generated/google/apis/apigee_v1/representations.rb +1 -0
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +113 -0
- data/generated/google/apis/artifactregistry_v1beta1/representations.rb +61 -0
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +15 -7
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +1 -4
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/service.rb +2 -2
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +25 -342
- data/generated/google/apis/cloudasset_v1/representations.rb +1 -96
- data/generated/google/apis/cloudasset_v1/service.rb +11 -186
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +6 -6
- data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
- data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +6 -6
- data/generated/google/apis/cloudasset_v1p1beta1/service.rb +15 -16
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +26 -8
- data/generated/google/apis/cloudasset_v1p4beta1/service.rb +24 -3
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +2 -2
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +2 -2
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +2 -2
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +7 -7
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -6
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +6 -8
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +6 -6
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +8 -8
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +6 -6
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +6 -6
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +91 -3
- data/generated/google/apis/compute_alpha/representations.rb +36 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +15 -3
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +3 -3
- data/generated/google/apis/datafusion_v1beta1.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/classes.rb +64 -19
- data/generated/google/apis/datafusion_v1beta1/representations.rb +16 -0
- data/generated/google/apis/datafusion_v1beta1/service.rb +49 -2
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +1 -1
- data/generated/google/apis/displayvideo_v1/service.rb +4 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +8 -6
- data/generated/google/apis/dlp_v2/service.rb +170 -64
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +84 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +28 -0
- data/generated/google/apis/genomics_v2alpha1/service.rb +38 -2
- data/generated/google/apis/gmail_v1.rb +3 -2
- data/generated/google/apis/gmail_v1/classes.rb +263 -200
- data/generated/google/apis/gmail_v1/service.rb +551 -743
- data/generated/google/apis/groupsmigration_v1.rb +3 -2
- data/generated/google/apis/groupsmigration_v1/service.rb +10 -17
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +87 -81
- data/generated/google/apis/iam_v1/service.rb +163 -148
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/classes.rb +4 -3
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +4 -2
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +4 -2
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +6 -6
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +46 -0
- data/generated/google/apis/monitoring_v1/representations.rb +18 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +10 -0
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/osconfig_v1.rb +1 -1
- data/generated/google/apis/osconfig_v1/classes.rb +2 -2
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/osconfig_v1beta/classes.rb +6 -7
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5/classes.rb +7 -0
- data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +118 -2
- data/generated/google/apis/people_v1/representations.rb +51 -0
- data/generated/google/apis/people_v1/service.rb +336 -67
- data/generated/google/apis/playcustomapp_v1.rb +3 -3
- data/generated/google/apis/playcustomapp_v1/classes.rb +7 -0
- data/generated/google/apis/playcustomapp_v1/representations.rb +1 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +11 -19
- data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1/classes.rb +6 -6
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +6 -6
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +49 -7
- data/generated/google/apis/pubsub_v1/representations.rb +16 -0
- data/generated/google/apis/secretmanager_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1/classes.rb +6 -6
- data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
- data/generated/google/apis/secretmanager_v1beta1/classes.rb +6 -6
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +106 -6
- data/generated/google/apis/securitycenter_v1/representations.rb +38 -0
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +106 -6
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +38 -0
- data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +100 -0
- data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +38 -0
- data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +106 -6
- data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +38 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +108 -44
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +114 -44
- data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +6 -12
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +109 -44
- data/generated/google/apis/servicenetworking_v1/representations.rb +0 -1
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +109 -44
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +0 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +109 -45
- data/generated/google/apis/serviceusage_v1/representations.rb +0 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +115 -45
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/service.rb +34 -0
- data/generated/google/apis/texttospeech_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1/classes.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1/classes.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +3 -3
@@ -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 = '20200611'
|
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'
|
@@ -1124,11 +1124,6 @@ module Google
|
|
1124
1124
|
attr_accessor :allow_cors
|
1125
1125
|
alias_method :allow_cors?, :allow_cors
|
1126
1126
|
|
1127
|
-
# The list of features enabled on this endpoint.
|
1128
|
-
# Corresponds to the JSON property `features`
|
1129
|
-
# @return [Array<String>]
|
1130
|
-
attr_accessor :features
|
1131
|
-
|
1132
1127
|
# The canonical name of this endpoint.
|
1133
1128
|
# Corresponds to the JSON property `name`
|
1134
1129
|
# @return [String]
|
@@ -1151,7 +1146,6 @@ module Google
|
|
1151
1146
|
def update!(**args)
|
1152
1147
|
@aliases = args[:aliases] if args.key?(:aliases)
|
1153
1148
|
@allow_cors = args[:allow_cors] if args.key?(:allow_cors)
|
1154
|
-
@features = args[:features] if args.key?(:features)
|
1155
1149
|
@name = args[:name] if args.key?(:name)
|
1156
1150
|
@target = args[:target] if args.key?(:target)
|
1157
1151
|
end
|
@@ -1971,6 +1965,15 @@ module Google
|
|
1971
1965
|
# Defines a metric type and its schema. Once a metric descriptor is created,
|
1972
1966
|
# deleting or altering it stops data collection and makes the metric type's
|
1973
1967
|
# existing data unusable.
|
1968
|
+
# The following are specific rules for service defined Monitoring metric
|
1969
|
+
# descriptors:
|
1970
|
+
# * `type`, `metric_kind`, `value_type`, `description`, `display_name`,
|
1971
|
+
# `launch_stage` fields are all required. The `unit` field must be specified
|
1972
|
+
# if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION.
|
1973
|
+
# * Maximum of default 500 metric descriptors per service is allowed.
|
1974
|
+
# * Maximum of default 10 labels per metric descriptor is allowed.
|
1975
|
+
# The default maximum limit can be overridden. Please follow
|
1976
|
+
# https://cloud.google.com/monitoring/quotas
|
1974
1977
|
class MetricDescriptor
|
1975
1978
|
include Google::Apis::Core::Hashable
|
1976
1979
|
|
@@ -1988,7 +1991,13 @@ module Google
|
|
1988
1991
|
attr_accessor :display_name
|
1989
1992
|
|
1990
1993
|
# The set of labels that can be used to describe a specific
|
1991
|
-
# instance of this metric type.
|
1994
|
+
# instance of this metric type.
|
1995
|
+
# The label key name must follow:
|
1996
|
+
# * Only upper and lower-case letters, digits and underscores (_) are
|
1997
|
+
# allowed.
|
1998
|
+
# * Label name must start with a letter or digit.
|
1999
|
+
# * The maximum length of a label name is 100 characters.
|
2000
|
+
# For example, the
|
1992
2001
|
# `appengine.googleapis.com/http/server/response_latencies` metric
|
1993
2002
|
# type has a label for the HTTP response code, `response_code`, so
|
1994
2003
|
# you can look at latencies for successful responses or just
|
@@ -2028,9 +2037,19 @@ module Google
|
|
2028
2037
|
attr_accessor :name
|
2029
2038
|
|
2030
2039
|
# The metric type, including its DNS name prefix. The type is not
|
2031
|
-
# URL-encoded.
|
2032
|
-
#
|
2033
|
-
#
|
2040
|
+
# URL-encoded.
|
2041
|
+
# All service defined metrics must be prefixed with the service name, in the
|
2042
|
+
# format of ``service name`/`relative metric name``, such as
|
2043
|
+
# `cloudsql.googleapis.com/database/cpu/utilization`. The relative metric
|
2044
|
+
# name must follow:
|
2045
|
+
# * Only upper and lower-case letters, digits, '/' and underscores '_' are
|
2046
|
+
# allowed.
|
2047
|
+
# * The maximum number of characters allowed for the relative_metric_name is
|
2048
|
+
# 100.
|
2049
|
+
# All user-defined metric types have the DNS name
|
2050
|
+
# `custom.googleapis.com`, `external.googleapis.com`, or
|
2051
|
+
# `logging.googleapis.com/user/`.
|
2052
|
+
# Metric types should use a natural hierarchical grouping. For example:
|
2034
2053
|
# "custom.googleapis.com/invoice/paid/amount"
|
2035
2054
|
# "external.googleapis.com/prometheus/up"
|
2036
2055
|
# "appengine.googleapis.com/http/server/response_latencies"
|
@@ -2309,9 +2328,20 @@ module Google
|
|
2309
2328
|
# descriptor for Google Compute Engine VM instances has a type of
|
2310
2329
|
# `"gce_instance"` and specifies the use of the labels `"instance_id"` and
|
2311
2330
|
# `"zone"` to identify particular VM instances.
|
2312
|
-
# Different
|
2313
|
-
#
|
2314
|
-
#
|
2331
|
+
# Different services can support different monitored resource types.
|
2332
|
+
# The following are specific rules to service defined monitored resources for
|
2333
|
+
# Monitoring and Logging:
|
2334
|
+
# * The `type`, `display_name`, `description`, `labels` and `launch_stage`
|
2335
|
+
# fields are all required.
|
2336
|
+
# * The first label of the monitored resource descriptor must be
|
2337
|
+
# `resource_container`. There are legacy monitored resource descritptors
|
2338
|
+
# start with `project_id`.
|
2339
|
+
# * It must include a `location` label. * Maximum of default 5 service defined
|
2340
|
+
# monitored resource descriptors
|
2341
|
+
# is allowed per service.
|
2342
|
+
# * Maximum of default 10 labels per monitored resource is allowed.
|
2343
|
+
# The default maximum limit can be overridden. Please follow
|
2344
|
+
# https://cloud.google.com/monitoring/quotas
|
2315
2345
|
class MonitoredResourceDescriptor
|
2316
2346
|
include Google::Apis::Core::Hashable
|
2317
2347
|
|
@@ -2330,8 +2360,14 @@ module Google
|
|
2330
2360
|
attr_accessor :display_name
|
2331
2361
|
|
2332
2362
|
# Required. A set of labels used to describe instances of this monitored
|
2333
|
-
# resource type.
|
2334
|
-
#
|
2363
|
+
# resource type.
|
2364
|
+
# The label key name must follow:
|
2365
|
+
# * Only upper and lower-case letters, digits and underscores (_) are
|
2366
|
+
# allowed.
|
2367
|
+
# * Label name must start with a letter or digit.
|
2368
|
+
# * The maximum length of a label name is 100 characters.
|
2369
|
+
# For example, an individual Google Cloud SQL database is
|
2370
|
+
# identified by values for the labels `database_id` and `location`.
|
2335
2371
|
# Corresponds to the JSON property `labels`
|
2336
2372
|
# @return [Array<Google::Apis::ServiceconsumermanagementV1::LabelDescriptor>]
|
2337
2373
|
attr_accessor :labels
|
@@ -2351,9 +2387,7 @@ module Google
|
|
2351
2387
|
# @return [String]
|
2352
2388
|
attr_accessor :name
|
2353
2389
|
|
2354
|
-
#
|
2355
|
-
# `"cloudsql_database"` represents databases in Google Cloud SQL.
|
2356
|
-
# The maximum length of this value is 256 characters.
|
2390
|
+
# Note there are legacy service monitored resources not following this rule.
|
2357
2391
|
# Corresponds to the JSON property `type`
|
2358
2392
|
# @return [String]
|
2359
2393
|
attr_accessor :type
|
@@ -2378,41 +2412,56 @@ module Google
|
|
2378
2412
|
# for monitoring. In the example, a monitored resource and two metrics are
|
2379
2413
|
# defined. The `library.googleapis.com/book/returned_count` metric is sent
|
2380
2414
|
# to both producer and consumer projects, whereas the
|
2381
|
-
# `library.googleapis.com/book/
|
2415
|
+
# `library.googleapis.com/book/num_overdue` metric is only sent to the
|
2382
2416
|
# consumer project.
|
2383
2417
|
# monitored_resources:
|
2384
|
-
# - type: library.googleapis.com/
|
2418
|
+
# - type: library.googleapis.com/Branch
|
2419
|
+
# display_name: "Library Branch"
|
2420
|
+
# description: "A branch of a library."
|
2421
|
+
# launch_stage: GA
|
2385
2422
|
# labels:
|
2386
|
-
# - key:
|
2387
|
-
# description: The
|
2388
|
-
# - key:
|
2389
|
-
# description: The
|
2423
|
+
# - key: resource_container
|
2424
|
+
# description: "The Cloud container (ie. project id) for the Branch."
|
2425
|
+
# - key: location
|
2426
|
+
# description: "The location of the library branch."
|
2427
|
+
# - key: branch_id
|
2428
|
+
# description: "The id of the branch."
|
2390
2429
|
# metrics:
|
2391
2430
|
# - name: library.googleapis.com/book/returned_count
|
2431
|
+
# display_name: "Books Returned"
|
2432
|
+
# description: "The count of books that have been returned."
|
2433
|
+
# launch_stage: GA
|
2392
2434
|
# metric_kind: DELTA
|
2393
2435
|
# value_type: INT64
|
2436
|
+
# unit: "1"
|
2394
2437
|
# labels:
|
2395
|
-
# - key:
|
2396
|
-
#
|
2438
|
+
# - key: customer_id
|
2439
|
+
# description: "The id of the customer."
|
2440
|
+
# - name: library.googleapis.com/book/num_overdue
|
2441
|
+
# display_name: "Books Overdue"
|
2442
|
+
# description: "The current number of overdue books."
|
2443
|
+
# launch_stage: GA
|
2397
2444
|
# metric_kind: GAUGE
|
2398
2445
|
# value_type: INT64
|
2446
|
+
# unit: "1"
|
2399
2447
|
# labels:
|
2400
|
-
# - key:
|
2448
|
+
# - key: customer_id
|
2449
|
+
# description: "The id of the customer."
|
2401
2450
|
# monitoring:
|
2402
2451
|
# producer_destinations:
|
2403
|
-
# - monitored_resource: library.googleapis.com/
|
2452
|
+
# - monitored_resource: library.googleapis.com/Branch
|
2404
2453
|
# metrics:
|
2405
2454
|
# - library.googleapis.com/book/returned_count
|
2406
2455
|
# consumer_destinations:
|
2407
|
-
# - monitored_resource: library.googleapis.com/
|
2456
|
+
# - monitored_resource: library.googleapis.com/Branch
|
2408
2457
|
# metrics:
|
2409
2458
|
# - library.googleapis.com/book/returned_count
|
2410
|
-
# - library.googleapis.com/book/
|
2459
|
+
# - library.googleapis.com/book/num_overdue
|
2411
2460
|
class Monitoring
|
2412
2461
|
include Google::Apis::Core::Hashable
|
2413
2462
|
|
2414
2463
|
# Monitoring configurations for sending metrics to the consumer project.
|
2415
|
-
# There can be multiple consumer destinations. A monitored
|
2464
|
+
# There can be multiple consumer destinations. A monitored resource type may
|
2416
2465
|
# appear in multiple monitoring destinations if different aggregations are
|
2417
2466
|
# needed for different sets of metrics associated with that monitored
|
2418
2467
|
# resource type. A monitored resource and metric pair may only be used once
|
@@ -2422,7 +2471,7 @@ module Google
|
|
2422
2471
|
attr_accessor :consumer_destinations
|
2423
2472
|
|
2424
2473
|
# Monitoring configurations for sending metrics to the producer project.
|
2425
|
-
# There can be multiple producer destinations. A monitored
|
2474
|
+
# There can be multiple producer destinations. A monitored resource type may
|
2426
2475
|
# appear in multiple monitoring destinations if different aggregations are
|
2427
2476
|
# needed for different sets of metrics associated with that monitored
|
2428
2477
|
# resource type. A monitored resource and metric pair may only be used once
|
@@ -3183,36 +3232,51 @@ module Google
|
|
3183
3232
|
# for monitoring. In the example, a monitored resource and two metrics are
|
3184
3233
|
# defined. The `library.googleapis.com/book/returned_count` metric is sent
|
3185
3234
|
# to both producer and consumer projects, whereas the
|
3186
|
-
# `library.googleapis.com/book/
|
3235
|
+
# `library.googleapis.com/book/num_overdue` metric is only sent to the
|
3187
3236
|
# consumer project.
|
3188
3237
|
# monitored_resources:
|
3189
|
-
# - type: library.googleapis.com/
|
3238
|
+
# - type: library.googleapis.com/Branch
|
3239
|
+
# display_name: "Library Branch"
|
3240
|
+
# description: "A branch of a library."
|
3241
|
+
# launch_stage: GA
|
3190
3242
|
# labels:
|
3191
|
-
# - key:
|
3192
|
-
# description: The
|
3193
|
-
# - key:
|
3194
|
-
# description: The
|
3243
|
+
# - key: resource_container
|
3244
|
+
# description: "The Cloud container (ie. project id) for the Branch."
|
3245
|
+
# - key: location
|
3246
|
+
# description: "The location of the library branch."
|
3247
|
+
# - key: branch_id
|
3248
|
+
# description: "The id of the branch."
|
3195
3249
|
# metrics:
|
3196
3250
|
# - name: library.googleapis.com/book/returned_count
|
3251
|
+
# display_name: "Books Returned"
|
3252
|
+
# description: "The count of books that have been returned."
|
3253
|
+
# launch_stage: GA
|
3197
3254
|
# metric_kind: DELTA
|
3198
3255
|
# value_type: INT64
|
3256
|
+
# unit: "1"
|
3199
3257
|
# labels:
|
3200
|
-
# - key:
|
3201
|
-
#
|
3258
|
+
# - key: customer_id
|
3259
|
+
# description: "The id of the customer."
|
3260
|
+
# - name: library.googleapis.com/book/num_overdue
|
3261
|
+
# display_name: "Books Overdue"
|
3262
|
+
# description: "The current number of overdue books."
|
3263
|
+
# launch_stage: GA
|
3202
3264
|
# metric_kind: GAUGE
|
3203
3265
|
# value_type: INT64
|
3266
|
+
# unit: "1"
|
3204
3267
|
# labels:
|
3205
|
-
# - key:
|
3268
|
+
# - key: customer_id
|
3269
|
+
# description: "The id of the customer."
|
3206
3270
|
# monitoring:
|
3207
3271
|
# producer_destinations:
|
3208
|
-
# - monitored_resource: library.googleapis.com/
|
3272
|
+
# - monitored_resource: library.googleapis.com/Branch
|
3209
3273
|
# metrics:
|
3210
3274
|
# - library.googleapis.com/book/returned_count
|
3211
3275
|
# consumer_destinations:
|
3212
|
-
# - monitored_resource: library.googleapis.com/
|
3276
|
+
# - monitored_resource: library.googleapis.com/Branch
|
3213
3277
|
# metrics:
|
3214
3278
|
# - library.googleapis.com/book/returned_count
|
3215
|
-
# - library.googleapis.com/book/
|
3279
|
+
# - library.googleapis.com/book/num_overdue
|
3216
3280
|
# Corresponds to the JSON property `monitoring`
|
3217
3281
|
# @return [Google::Apis::ServiceconsumermanagementV1::Monitoring]
|
3218
3282
|
attr_accessor :monitoring
|
@@ -806,7 +806,6 @@ module Google
|
|
806
806
|
class Representation < Google::Apis::Core::JsonRepresentation
|
807
807
|
collection :aliases, as: 'aliases'
|
808
808
|
property :allow_cors, as: 'allowCors'
|
809
|
-
collection :features, as: 'features'
|
810
809
|
property :name, as: 'name'
|
811
810
|
property :target, as: 'target'
|
812
811
|
end
|
@@ -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 = '20200611'
|
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'
|
@@ -952,11 +952,6 @@ module Google
|
|
952
952
|
attr_accessor :allow_cors
|
953
953
|
alias_method :allow_cors?, :allow_cors
|
954
954
|
|
955
|
-
# The list of features enabled on this endpoint.
|
956
|
-
# Corresponds to the JSON property `features`
|
957
|
-
# @return [Array<String>]
|
958
|
-
attr_accessor :features
|
959
|
-
|
960
955
|
# The canonical name of this endpoint.
|
961
956
|
# Corresponds to the JSON property `name`
|
962
957
|
# @return [String]
|
@@ -979,7 +974,6 @@ module Google
|
|
979
974
|
def update!(**args)
|
980
975
|
@aliases = args[:aliases] if args.key?(:aliases)
|
981
976
|
@allow_cors = args[:allow_cors] if args.key?(:allow_cors)
|
982
|
-
@features = args[:features] if args.key?(:features)
|
983
977
|
@name = args[:name] if args.key?(:name)
|
984
978
|
@target = args[:target] if args.key?(:target)
|
985
979
|
end
|
@@ -1749,6 +1743,15 @@ module Google
|
|
1749
1743
|
# Defines a metric type and its schema. Once a metric descriptor is created,
|
1750
1744
|
# deleting or altering it stops data collection and makes the metric type's
|
1751
1745
|
# existing data unusable.
|
1746
|
+
# The following are specific rules for service defined Monitoring metric
|
1747
|
+
# descriptors:
|
1748
|
+
# * `type`, `metric_kind`, `value_type`, `description`, `display_name`,
|
1749
|
+
# `launch_stage` fields are all required. The `unit` field must be specified
|
1750
|
+
# if the `value_type` is any of DOUBLE, INT64, DISTRIBUTION.
|
1751
|
+
# * Maximum of default 500 metric descriptors per service is allowed.
|
1752
|
+
# * Maximum of default 10 labels per metric descriptor is allowed.
|
1753
|
+
# The default maximum limit can be overridden. Please follow
|
1754
|
+
# https://cloud.google.com/monitoring/quotas
|
1752
1755
|
class MetricDescriptor
|
1753
1756
|
include Google::Apis::Core::Hashable
|
1754
1757
|
|
@@ -1766,7 +1769,13 @@ module Google
|
|
1766
1769
|
attr_accessor :display_name
|
1767
1770
|
|
1768
1771
|
# The set of labels that can be used to describe a specific
|
1769
|
-
# instance of this metric type.
|
1772
|
+
# instance of this metric type.
|
1773
|
+
# The label key name must follow:
|
1774
|
+
# * Only upper and lower-case letters, digits and underscores (_) are
|
1775
|
+
# allowed.
|
1776
|
+
# * Label name must start with a letter or digit.
|
1777
|
+
# * The maximum length of a label name is 100 characters.
|
1778
|
+
# For example, the
|
1770
1779
|
# `appengine.googleapis.com/http/server/response_latencies` metric
|
1771
1780
|
# type has a label for the HTTP response code, `response_code`, so
|
1772
1781
|
# you can look at latencies for successful responses or just
|
@@ -1806,9 +1815,19 @@ module Google
|
|
1806
1815
|
attr_accessor :name
|
1807
1816
|
|
1808
1817
|
# The metric type, including its DNS name prefix. The type is not
|
1809
|
-
# URL-encoded.
|
1810
|
-
#
|
1811
|
-
#
|
1818
|
+
# URL-encoded.
|
1819
|
+
# All service defined metrics must be prefixed with the service name, in the
|
1820
|
+
# format of ``service name`/`relative metric name``, such as
|
1821
|
+
# `cloudsql.googleapis.com/database/cpu/utilization`. The relative metric
|
1822
|
+
# name must follow:
|
1823
|
+
# * Only upper and lower-case letters, digits, '/' and underscores '_' are
|
1824
|
+
# allowed.
|
1825
|
+
# * The maximum number of characters allowed for the relative_metric_name is
|
1826
|
+
# 100.
|
1827
|
+
# All user-defined metric types have the DNS name
|
1828
|
+
# `custom.googleapis.com`, `external.googleapis.com`, or
|
1829
|
+
# `logging.googleapis.com/user/`.
|
1830
|
+
# Metric types should use a natural hierarchical grouping. For example:
|
1812
1831
|
# "custom.googleapis.com/invoice/paid/amount"
|
1813
1832
|
# "external.googleapis.com/prometheus/up"
|
1814
1833
|
# "appengine.googleapis.com/http/server/response_latencies"
|
@@ -2087,9 +2106,20 @@ module Google
|
|
2087
2106
|
# descriptor for Google Compute Engine VM instances has a type of
|
2088
2107
|
# `"gce_instance"` and specifies the use of the labels `"instance_id"` and
|
2089
2108
|
# `"zone"` to identify particular VM instances.
|
2090
|
-
# Different
|
2091
|
-
#
|
2092
|
-
#
|
2109
|
+
# Different services can support different monitored resource types.
|
2110
|
+
# The following are specific rules to service defined monitored resources for
|
2111
|
+
# Monitoring and Logging:
|
2112
|
+
# * The `type`, `display_name`, `description`, `labels` and `launch_stage`
|
2113
|
+
# fields are all required.
|
2114
|
+
# * The first label of the monitored resource descriptor must be
|
2115
|
+
# `resource_container`. There are legacy monitored resource descritptors
|
2116
|
+
# start with `project_id`.
|
2117
|
+
# * It must include a `location` label. * Maximum of default 5 service defined
|
2118
|
+
# monitored resource descriptors
|
2119
|
+
# is allowed per service.
|
2120
|
+
# * Maximum of default 10 labels per monitored resource is allowed.
|
2121
|
+
# The default maximum limit can be overridden. Please follow
|
2122
|
+
# https://cloud.google.com/monitoring/quotas
|
2093
2123
|
class MonitoredResourceDescriptor
|
2094
2124
|
include Google::Apis::Core::Hashable
|
2095
2125
|
|
@@ -2108,8 +2138,14 @@ module Google
|
|
2108
2138
|
attr_accessor :display_name
|
2109
2139
|
|
2110
2140
|
# Required. A set of labels used to describe instances of this monitored
|
2111
|
-
# resource type.
|
2112
|
-
#
|
2141
|
+
# resource type.
|
2142
|
+
# The label key name must follow:
|
2143
|
+
# * Only upper and lower-case letters, digits and underscores (_) are
|
2144
|
+
# allowed.
|
2145
|
+
# * Label name must start with a letter or digit.
|
2146
|
+
# * The maximum length of a label name is 100 characters.
|
2147
|
+
# For example, an individual Google Cloud SQL database is
|
2148
|
+
# identified by values for the labels `database_id` and `location`.
|
2113
2149
|
# Corresponds to the JSON property `labels`
|
2114
2150
|
# @return [Array<Google::Apis::ServiceconsumermanagementV1beta1::LabelDescriptor>]
|
2115
2151
|
attr_accessor :labels
|
@@ -2129,9 +2165,7 @@ module Google
|
|
2129
2165
|
# @return [String]
|
2130
2166
|
attr_accessor :name
|
2131
2167
|
|
2132
|
-
#
|
2133
|
-
# `"cloudsql_database"` represents databases in Google Cloud SQL.
|
2134
|
-
# The maximum length of this value is 256 characters.
|
2168
|
+
# Note there are legacy service monitored resources not following this rule.
|
2135
2169
|
# Corresponds to the JSON property `type`
|
2136
2170
|
# @return [String]
|
2137
2171
|
attr_accessor :type
|
@@ -2156,41 +2190,56 @@ module Google
|
|
2156
2190
|
# for monitoring. In the example, a monitored resource and two metrics are
|
2157
2191
|
# defined. The `library.googleapis.com/book/returned_count` metric is sent
|
2158
2192
|
# to both producer and consumer projects, whereas the
|
2159
|
-
# `library.googleapis.com/book/
|
2193
|
+
# `library.googleapis.com/book/num_overdue` metric is only sent to the
|
2160
2194
|
# consumer project.
|
2161
2195
|
# monitored_resources:
|
2162
|
-
# - type: library.googleapis.com/
|
2196
|
+
# - type: library.googleapis.com/Branch
|
2197
|
+
# display_name: "Library Branch"
|
2198
|
+
# description: "A branch of a library."
|
2199
|
+
# launch_stage: GA
|
2163
2200
|
# labels:
|
2164
|
-
# - key:
|
2165
|
-
# description: The
|
2166
|
-
# - key:
|
2167
|
-
# description: The
|
2201
|
+
# - key: resource_container
|
2202
|
+
# description: "The Cloud container (ie. project id) for the Branch."
|
2203
|
+
# - key: location
|
2204
|
+
# description: "The location of the library branch."
|
2205
|
+
# - key: branch_id
|
2206
|
+
# description: "The id of the branch."
|
2168
2207
|
# metrics:
|
2169
2208
|
# - name: library.googleapis.com/book/returned_count
|
2209
|
+
# display_name: "Books Returned"
|
2210
|
+
# description: "The count of books that have been returned."
|
2211
|
+
# launch_stage: GA
|
2170
2212
|
# metric_kind: DELTA
|
2171
2213
|
# value_type: INT64
|
2214
|
+
# unit: "1"
|
2172
2215
|
# labels:
|
2173
|
-
# - key:
|
2174
|
-
#
|
2216
|
+
# - key: customer_id
|
2217
|
+
# description: "The id of the customer."
|
2218
|
+
# - name: library.googleapis.com/book/num_overdue
|
2219
|
+
# display_name: "Books Overdue"
|
2220
|
+
# description: "The current number of overdue books."
|
2221
|
+
# launch_stage: GA
|
2175
2222
|
# metric_kind: GAUGE
|
2176
2223
|
# value_type: INT64
|
2224
|
+
# unit: "1"
|
2177
2225
|
# labels:
|
2178
|
-
# - key:
|
2226
|
+
# - key: customer_id
|
2227
|
+
# description: "The id of the customer."
|
2179
2228
|
# monitoring:
|
2180
2229
|
# producer_destinations:
|
2181
|
-
# - monitored_resource: library.googleapis.com/
|
2230
|
+
# - monitored_resource: library.googleapis.com/Branch
|
2182
2231
|
# metrics:
|
2183
2232
|
# - library.googleapis.com/book/returned_count
|
2184
2233
|
# consumer_destinations:
|
2185
|
-
# - monitored_resource: library.googleapis.com/
|
2234
|
+
# - monitored_resource: library.googleapis.com/Branch
|
2186
2235
|
# metrics:
|
2187
2236
|
# - library.googleapis.com/book/returned_count
|
2188
|
-
# - library.googleapis.com/book/
|
2237
|
+
# - library.googleapis.com/book/num_overdue
|
2189
2238
|
class Monitoring
|
2190
2239
|
include Google::Apis::Core::Hashable
|
2191
2240
|
|
2192
2241
|
# Monitoring configurations for sending metrics to the consumer project.
|
2193
|
-
# There can be multiple consumer destinations. A monitored
|
2242
|
+
# There can be multiple consumer destinations. A monitored resource type may
|
2194
2243
|
# appear in multiple monitoring destinations if different aggregations are
|
2195
2244
|
# needed for different sets of metrics associated with that monitored
|
2196
2245
|
# resource type. A monitored resource and metric pair may only be used once
|
@@ -2200,7 +2249,7 @@ module Google
|
|
2200
2249
|
attr_accessor :consumer_destinations
|
2201
2250
|
|
2202
2251
|
# Monitoring configurations for sending metrics to the producer project.
|
2203
|
-
# There can be multiple producer destinations. A monitored
|
2252
|
+
# There can be multiple producer destinations. A monitored resource type may
|
2204
2253
|
# appear in multiple monitoring destinations if different aggregations are
|
2205
2254
|
# needed for different sets of metrics associated with that monitored
|
2206
2255
|
# resource type. A monitored resource and metric pair may only be used once
|
@@ -2889,36 +2938,51 @@ module Google
|
|
2889
2938
|
# for monitoring. In the example, a monitored resource and two metrics are
|
2890
2939
|
# defined. The `library.googleapis.com/book/returned_count` metric is sent
|
2891
2940
|
# to both producer and consumer projects, whereas the
|
2892
|
-
# `library.googleapis.com/book/
|
2941
|
+
# `library.googleapis.com/book/num_overdue` metric is only sent to the
|
2893
2942
|
# consumer project.
|
2894
2943
|
# monitored_resources:
|
2895
|
-
# - type: library.googleapis.com/
|
2944
|
+
# - type: library.googleapis.com/Branch
|
2945
|
+
# display_name: "Library Branch"
|
2946
|
+
# description: "A branch of a library."
|
2947
|
+
# launch_stage: GA
|
2896
2948
|
# labels:
|
2897
|
-
# - key:
|
2898
|
-
# description: The
|
2899
|
-
# - key:
|
2900
|
-
# description: The
|
2949
|
+
# - key: resource_container
|
2950
|
+
# description: "The Cloud container (ie. project id) for the Branch."
|
2951
|
+
# - key: location
|
2952
|
+
# description: "The location of the library branch."
|
2953
|
+
# - key: branch_id
|
2954
|
+
# description: "The id of the branch."
|
2901
2955
|
# metrics:
|
2902
2956
|
# - name: library.googleapis.com/book/returned_count
|
2957
|
+
# display_name: "Books Returned"
|
2958
|
+
# description: "The count of books that have been returned."
|
2959
|
+
# launch_stage: GA
|
2903
2960
|
# metric_kind: DELTA
|
2904
2961
|
# value_type: INT64
|
2962
|
+
# unit: "1"
|
2905
2963
|
# labels:
|
2906
|
-
# - key:
|
2907
|
-
#
|
2964
|
+
# - key: customer_id
|
2965
|
+
# description: "The id of the customer."
|
2966
|
+
# - name: library.googleapis.com/book/num_overdue
|
2967
|
+
# display_name: "Books Overdue"
|
2968
|
+
# description: "The current number of overdue books."
|
2969
|
+
# launch_stage: GA
|
2908
2970
|
# metric_kind: GAUGE
|
2909
2971
|
# value_type: INT64
|
2972
|
+
# unit: "1"
|
2910
2973
|
# labels:
|
2911
|
-
# - key:
|
2974
|
+
# - key: customer_id
|
2975
|
+
# description: "The id of the customer."
|
2912
2976
|
# monitoring:
|
2913
2977
|
# producer_destinations:
|
2914
|
-
# - monitored_resource: library.googleapis.com/
|
2978
|
+
# - monitored_resource: library.googleapis.com/Branch
|
2915
2979
|
# metrics:
|
2916
2980
|
# - library.googleapis.com/book/returned_count
|
2917
2981
|
# consumer_destinations:
|
2918
|
-
# - monitored_resource: library.googleapis.com/
|
2982
|
+
# - monitored_resource: library.googleapis.com/Branch
|
2919
2983
|
# metrics:
|
2920
2984
|
# - library.googleapis.com/book/returned_count
|
2921
|
-
# - library.googleapis.com/book/
|
2985
|
+
# - library.googleapis.com/book/num_overdue
|
2922
2986
|
# Corresponds to the JSON property `monitoring`
|
2923
2987
|
# @return [Google::Apis::ServiceconsumermanagementV1beta1::Monitoring]
|
2924
2988
|
attr_accessor :monitoring
|
@@ -3560,6 +3624,11 @@ module Google
|
|
3560
3624
|
# @return [String]
|
3561
3625
|
attr_accessor :name
|
3562
3626
|
|
3627
|
+
# The units in which the metric value is reported.
|
3628
|
+
# Corresponds to the JSON property `unit`
|
3629
|
+
# @return [String]
|
3630
|
+
attr_accessor :unit
|
3631
|
+
|
3563
3632
|
def initialize(**args)
|
3564
3633
|
update!(**args)
|
3565
3634
|
end
|
@@ -3570,6 +3639,7 @@ module Google
|
|
3570
3639
|
@display_name = args[:display_name] if args.key?(:display_name)
|
3571
3640
|
@metric = args[:metric] if args.key?(:metric)
|
3572
3641
|
@name = args[:name] if args.key?(:name)
|
3642
|
+
@unit = args[:unit] if args.key?(:unit)
|
3573
3643
|
end
|
3574
3644
|
end
|
3575
3645
|
|