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.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +65 -0
  3. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  4. data/generated/google/apis/androidpublisher_v3.rb +3 -3
  5. data/generated/google/apis/androidpublisher_v3/classes.rb +468 -750
  6. data/generated/google/apis/androidpublisher_v3/representations.rb +9 -202
  7. data/generated/google/apis/androidpublisher_v3/service.rb +531 -863
  8. data/generated/google/apis/apigee_v1.rb +1 -1
  9. data/generated/google/apis/apigee_v1/classes.rb +12 -6
  10. data/generated/google/apis/apigee_v1/representations.rb +1 -0
  11. data/generated/google/apis/appsmarket_v2.rb +1 -1
  12. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  13. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +113 -0
  14. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +61 -0
  15. data/generated/google/apis/bigquery_v2.rb +1 -1
  16. data/generated/google/apis/bigquery_v2/classes.rb +15 -7
  17. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  18. data/generated/google/apis/binaryauthorization_v1/classes.rb +1 -4
  19. data/generated/google/apis/books_v1.rb +1 -1
  20. data/generated/google/apis/books_v1/service.rb +2 -2
  21. data/generated/google/apis/cloudasset_v1.rb +1 -1
  22. data/generated/google/apis/cloudasset_v1/classes.rb +25 -342
  23. data/generated/google/apis/cloudasset_v1/representations.rb +1 -96
  24. data/generated/google/apis/cloudasset_v1/service.rb +11 -186
  25. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  26. data/generated/google/apis/cloudasset_v1beta1/classes.rb +6 -6
  27. data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
  28. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  29. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +6 -6
  30. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +15 -16
  31. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  32. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +26 -8
  33. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +24 -3
  34. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  35. data/generated/google/apis/cloudbuild_v1/classes.rb +2 -2
  36. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  37. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +2 -2
  38. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +2 -2
  40. data/generated/google/apis/cloudkms_v1.rb +1 -1
  41. data/generated/google/apis/cloudkms_v1/classes.rb +7 -7
  42. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  43. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -6
  44. data/generated/google/apis/cloudresourcemanager_v1/service.rb +6 -8
  45. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +6 -6
  47. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +8 -8
  48. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  49. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +6 -6
  50. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +6 -6
  52. data/generated/google/apis/compute_alpha.rb +1 -1
  53. data/generated/google/apis/compute_alpha/classes.rb +91 -3
  54. data/generated/google/apis/compute_alpha/representations.rb +36 -0
  55. data/generated/google/apis/compute_beta.rb +1 -1
  56. data/generated/google/apis/compute_beta/classes.rb +15 -3
  57. data/generated/google/apis/compute_beta/representations.rb +2 -0
  58. data/generated/google/apis/compute_v1.rb +1 -1
  59. data/generated/google/apis/compute_v1/classes.rb +3 -3
  60. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  61. data/generated/google/apis/datafusion_v1beta1/classes.rb +64 -19
  62. data/generated/google/apis/datafusion_v1beta1/representations.rb +16 -0
  63. data/generated/google/apis/datafusion_v1beta1/service.rb +49 -2
  64. data/generated/google/apis/displayvideo_v1.rb +1 -1
  65. data/generated/google/apis/displayvideo_v1/classes.rb +1 -1
  66. data/generated/google/apis/displayvideo_v1/service.rb +4 -0
  67. data/generated/google/apis/dlp_v2.rb +1 -1
  68. data/generated/google/apis/dlp_v2/classes.rb +8 -6
  69. data/generated/google/apis/dlp_v2/service.rb +170 -64
  70. data/generated/google/apis/fcm_v1.rb +1 -1
  71. data/generated/google/apis/file_v1.rb +1 -1
  72. data/generated/google/apis/file_v1beta1.rb +1 -1
  73. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  74. data/generated/google/apis/genomics_v2alpha1/classes.rb +84 -0
  75. data/generated/google/apis/genomics_v2alpha1/representations.rb +28 -0
  76. data/generated/google/apis/genomics_v2alpha1/service.rb +38 -2
  77. data/generated/google/apis/gmail_v1.rb +3 -2
  78. data/generated/google/apis/gmail_v1/classes.rb +263 -200
  79. data/generated/google/apis/gmail_v1/service.rb +551 -743
  80. data/generated/google/apis/groupsmigration_v1.rb +3 -2
  81. data/generated/google/apis/groupsmigration_v1/service.rb +10 -17
  82. data/generated/google/apis/iam_v1.rb +1 -1
  83. data/generated/google/apis/iam_v1/classes.rb +87 -81
  84. data/generated/google/apis/iam_v1/service.rb +163 -148
  85. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  86. data/generated/google/apis/iamcredentials_v1/classes.rb +4 -3
  87. data/generated/google/apis/jobs_v3.rb +1 -1
  88. data/generated/google/apis/jobs_v3/classes.rb +4 -2
  89. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  90. data/generated/google/apis/jobs_v3p1beta1/classes.rb +4 -2
  91. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  92. data/generated/google/apis/memcache_v1beta2/classes.rb +6 -6
  93. data/generated/google/apis/monitoring_v1.rb +1 -1
  94. data/generated/google/apis/monitoring_v1/classes.rb +46 -0
  95. data/generated/google/apis/monitoring_v1/representations.rb +18 -0
  96. data/generated/google/apis/monitoring_v3.rb +1 -1
  97. data/generated/google/apis/monitoring_v3/classes.rb +10 -0
  98. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  99. data/generated/google/apis/osconfig_v1.rb +1 -1
  100. data/generated/google/apis/osconfig_v1/classes.rb +2 -2
  101. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  102. data/generated/google/apis/osconfig_v1beta/classes.rb +6 -7
  103. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  104. data/generated/google/apis/pagespeedonline_v5/classes.rb +7 -0
  105. data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
  106. data/generated/google/apis/people_v1.rb +1 -1
  107. data/generated/google/apis/people_v1/classes.rb +118 -2
  108. data/generated/google/apis/people_v1/representations.rb +51 -0
  109. data/generated/google/apis/people_v1/service.rb +336 -67
  110. data/generated/google/apis/playcustomapp_v1.rb +3 -3
  111. data/generated/google/apis/playcustomapp_v1/classes.rb +7 -0
  112. data/generated/google/apis/playcustomapp_v1/representations.rb +1 -0
  113. data/generated/google/apis/playcustomapp_v1/service.rb +11 -19
  114. data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
  115. data/generated/google/apis/policytroubleshooter_v1/classes.rb +6 -6
  116. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  117. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +6 -6
  118. data/generated/google/apis/pubsub_v1.rb +1 -1
  119. data/generated/google/apis/pubsub_v1/classes.rb +49 -7
  120. data/generated/google/apis/pubsub_v1/representations.rb +16 -0
  121. data/generated/google/apis/secretmanager_v1.rb +1 -1
  122. data/generated/google/apis/secretmanager_v1/classes.rb +6 -6
  123. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  124. data/generated/google/apis/secretmanager_v1beta1/classes.rb +6 -6
  125. data/generated/google/apis/securitycenter_v1.rb +1 -1
  126. data/generated/google/apis/securitycenter_v1/classes.rb +106 -6
  127. data/generated/google/apis/securitycenter_v1/representations.rb +38 -0
  128. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  129. data/generated/google/apis/securitycenter_v1beta1/classes.rb +106 -6
  130. data/generated/google/apis/securitycenter_v1beta1/representations.rb +38 -0
  131. data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
  132. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +100 -0
  133. data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +38 -0
  134. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  135. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +106 -6
  136. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +38 -0
  137. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  138. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +108 -44
  139. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -1
  140. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  141. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +114 -44
  142. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +1 -1
  143. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  144. data/generated/google/apis/servicemanagement_v1/classes.rb +6 -12
  145. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
  146. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  147. data/generated/google/apis/servicenetworking_v1/classes.rb +109 -44
  148. data/generated/google/apis/servicenetworking_v1/representations.rb +0 -1
  149. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  150. data/generated/google/apis/servicenetworking_v1beta/classes.rb +109 -44
  151. data/generated/google/apis/servicenetworking_v1beta/representations.rb +0 -1
  152. data/generated/google/apis/serviceusage_v1.rb +1 -1
  153. data/generated/google/apis/serviceusage_v1/classes.rb +109 -45
  154. data/generated/google/apis/serviceusage_v1/representations.rb +0 -1
  155. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  156. data/generated/google/apis/serviceusage_v1beta1/classes.rb +115 -45
  157. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -1
  158. data/generated/google/apis/serviceusage_v1beta1/service.rb +34 -0
  159. data/generated/google/apis/texttospeech_v1.rb +1 -1
  160. data/generated/google/apis/texttospeech_v1/classes.rb +1 -1
  161. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  162. data/generated/google/apis/texttospeech_v1beta1/classes.rb +1 -1
  163. data/lib/google/apis/version.rb +1 -1
  164. 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 = '20200603'
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. For example, the
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. All user-defined metric types have the DNS name
2032
- # `custom.googleapis.com` or `external.googleapis.com`. Metric types should
2033
- # use a natural hierarchical grouping. For example:
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 APIs can support different monitored resource types. APIs generally
2313
- # provide a `list` method that returns the monitored resource descriptors used
2314
- # by the API.
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. For example, an individual Google Cloud SQL database is
2334
- # identified by values for the labels `"database_id"` and `"zone"`.
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
- # Required. The monitored resource type. For example, the type
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/overdue_count` metric is only sent to the
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/branch
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: /city
2387
- # description: The city where the library branch is located in.
2388
- # - key: /name
2389
- # description: The name of the branch.
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: /customer_id
2396
- # - name: library.googleapis.com/book/overdue_count
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: /customer_id
2448
+ # - key: customer_id
2449
+ # description: "The id of the customer."
2401
2450
  # monitoring:
2402
2451
  # producer_destinations:
2403
- # - monitored_resource: library.googleapis.com/branch
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/branch
2456
+ # - monitored_resource: library.googleapis.com/Branch
2408
2457
  # metrics:
2409
2458
  # - library.googleapis.com/book/returned_count
2410
- # - library.googleapis.com/book/overdue_count
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 resouce type may
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 resouce type may
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/overdue_count` metric is only sent to the
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/branch
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: /city
3192
- # description: The city where the library branch is located in.
3193
- # - key: /name
3194
- # description: The name of the branch.
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: /customer_id
3201
- # - name: library.googleapis.com/book/overdue_count
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: /customer_id
3268
+ # - key: customer_id
3269
+ # description: "The id of the customer."
3206
3270
  # monitoring:
3207
3271
  # producer_destinations:
3208
- # - monitored_resource: library.googleapis.com/branch
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/branch
3276
+ # - monitored_resource: library.googleapis.com/Branch
3213
3277
  # metrics:
3214
3278
  # - library.googleapis.com/book/returned_count
3215
- # - library.googleapis.com/book/overdue_count
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 = '20200603'
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. For example, the
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. All user-defined metric types have the DNS name
1810
- # `custom.googleapis.com` or `external.googleapis.com`. Metric types should
1811
- # use a natural hierarchical grouping. For example:
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 APIs can support different monitored resource types. APIs generally
2091
- # provide a `list` method that returns the monitored resource descriptors used
2092
- # by the API.
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. For example, an individual Google Cloud SQL database is
2112
- # identified by values for the labels `"database_id"` and `"zone"`.
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
- # Required. The monitored resource type. For example, the type
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/overdue_count` metric is only sent to the
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/branch
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: /city
2165
- # description: The city where the library branch is located in.
2166
- # - key: /name
2167
- # description: The name of the branch.
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: /customer_id
2174
- # - name: library.googleapis.com/book/overdue_count
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: /customer_id
2226
+ # - key: customer_id
2227
+ # description: "The id of the customer."
2179
2228
  # monitoring:
2180
2229
  # producer_destinations:
2181
- # - monitored_resource: library.googleapis.com/branch
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/branch
2234
+ # - monitored_resource: library.googleapis.com/Branch
2186
2235
  # metrics:
2187
2236
  # - library.googleapis.com/book/returned_count
2188
- # - library.googleapis.com/book/overdue_count
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 resouce type may
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 resouce type may
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/overdue_count` metric is only sent to the
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/branch
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: /city
2898
- # description: The city where the library branch is located in.
2899
- # - key: /name
2900
- # description: The name of the branch.
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: /customer_id
2907
- # - name: library.googleapis.com/book/overdue_count
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: /customer_id
2974
+ # - key: customer_id
2975
+ # description: "The id of the customer."
2912
2976
  # monitoring:
2913
2977
  # producer_destinations:
2914
- # - monitored_resource: library.googleapis.com/branch
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/branch
2982
+ # - monitored_resource: library.googleapis.com/Branch
2919
2983
  # metrics:
2920
2984
  # - library.googleapis.com/book/returned_count
2921
- # - library.googleapis.com/book/overdue_count
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