google-api-client 0.10.0 → 0.10.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 +4 -0
- data/README.md +1 -1
- data/api_names.yaml +37747 -36512
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
- data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
- data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +34 -8
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +3 -5
- data/generated/google/apis/classroom_v1.rb +25 -22
- data/generated/google/apis/classroom_v1/classes.rb +910 -1001
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1064 -1272
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
- data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
- data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
- data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
- data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +813 -82
- data/generated/google/apis/compute_beta/representations.rb +305 -0
- data/generated/google/apis/compute_beta/service.rb +971 -180
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +147 -21
- data/generated/google/apis/compute_v1/representations.rb +38 -0
- data/generated/google/apis/compute_v1/service.rb +347 -65
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +2 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
- data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
- data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
- data/generated/google/apis/dataproc_v1/representations.rb +220 -204
- data/generated/google/apis/dataproc_v1/service.rb +299 -299
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +688 -688
- data/generated/google/apis/datastore_v1/representations.rb +167 -167
- data/generated/google/apis/datastore_v1/service.rb +68 -68
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +487 -15
- data/generated/google/apis/drive_v2/representations.rb +120 -0
- data/generated/google/apis/drive_v2/service.rb +355 -38
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +416 -14
- data/generated/google/apis/drive_v3/representations.rb +99 -0
- data/generated/google/apis/drive_v3/service.rb +315 -28
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
- data/generated/google/apis/genomics_v1/representations.rb +239 -239
- data/generated/google/apis/genomics_v1/service.rb +599 -599
- data/generated/google/apis/gmail_v1.rb +2 -2
- data/generated/google/apis/gmail_v1/service.rb +18 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +96 -96
- data/generated/google/apis/iam_v1/service.rb +150 -150
- data/generated/google/apis/kgsearch_v1/service.rb +13 -13
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +235 -235
- data/generated/google/apis/language_v1beta1/representations.rb +73 -73
- data/generated/google/apis/language_v1beta1/service.rb +49 -49
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
- data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
- data/generated/google/apis/logging_v2beta1/service.rb +315 -316
- data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
- data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
- data/generated/google/apis/manufacturers_v1/service.rb +32 -32
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +229 -229
- data/generated/google/apis/monitoring_v3/representations.rb +45 -45
- data/generated/google/apis/monitoring_v3/service.rb +141 -141
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1837 -483
- data/generated/google/apis/partners_v2/representations.rb +614 -157
- data/generated/google/apis/partners_v2/service.rb +881 -150
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +517 -465
- data/generated/google/apis/people_v1/representations.rb +138 -107
- data/generated/google/apis/people_v1/service.rb +56 -49
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +203 -203
- data/generated/google/apis/pubsub_v1/representations.rb +65 -65
- data/generated/google/apis/pubsub_v1/service.rb +226 -217
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +213 -61
- data/generated/google/apis/reseller_v1/representations.rb +27 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +14 -14
- data/generated/google/apis/script_v1/classes.rb +95 -95
- data/generated/google/apis/script_v1/representations.rb +25 -25
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
- data/generated/google/apis/sheets_v4/representations.rb +853 -837
- data/generated/google/apis/sheets_v4/service.rb +32 -32
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +804 -748
- data/generated/google/apis/slides_v1/representations.rb +204 -187
- data/generated/google/apis/slides_v1/service.rb +16 -16
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
- data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
- data/generated/google/apis/speech_v1beta1/service.rb +66 -66
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +10 -7
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1393 -865
- data/generated/google/apis/vision_v1/representations.rb +367 -102
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
- data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
- data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
- data/lib/google/apis/version.rb +1 -1
- metadata +34 -30
|
@@ -46,20 +46,15 @@ module Google
|
|
|
46
46
|
super('https://manufacturers.googleapis.com/', '')
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
#
|
|
50
|
-
# issues.
|
|
49
|
+
# Lists all the products in a Manufacturer Center account.
|
|
51
50
|
# @param [String] parent
|
|
52
51
|
# Parent ID in the format `accounts/`account_id``.
|
|
53
52
|
# `account_id` - The ID of the Manufacturer Center account.
|
|
54
|
-
# @param [
|
|
55
|
-
#
|
|
56
|
-
#
|
|
57
|
-
#
|
|
58
|
-
#
|
|
59
|
-
# ISO 639-1 language code (for example, en).
|
|
60
|
-
# `product_id` - The ID of the product. For more information, see
|
|
61
|
-
# https://support.google.com/manufacturers/answer/6124116#
|
|
62
|
-
# id.
|
|
53
|
+
# @param [Fixnum] page_size
|
|
54
|
+
# Maximum number of product statuses to return in the response, used for
|
|
55
|
+
# paging.
|
|
56
|
+
# @param [String] page_token
|
|
57
|
+
# The token returned by the previous request.
|
|
63
58
|
# @param [String] quota_user
|
|
64
59
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
65
60
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -69,34 +64,40 @@ module Google
|
|
|
69
64
|
# Request-specific options
|
|
70
65
|
#
|
|
71
66
|
# @yield [result, err] Result & error if block supplied
|
|
72
|
-
# @yieldparam result [Google::Apis::ManufacturersV1::
|
|
67
|
+
# @yieldparam result [Google::Apis::ManufacturersV1::ListProductsResponse] parsed result object
|
|
73
68
|
# @yieldparam err [StandardError] error object if request failed
|
|
74
69
|
#
|
|
75
|
-
# @return [Google::Apis::ManufacturersV1::
|
|
70
|
+
# @return [Google::Apis::ManufacturersV1::ListProductsResponse]
|
|
76
71
|
#
|
|
77
72
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
78
73
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
79
74
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
80
|
-
def
|
|
81
|
-
command = make_simple_command(:get, 'v1/{+parent}/products
|
|
82
|
-
command.response_representation = Google::Apis::ManufacturersV1::
|
|
83
|
-
command.response_class = Google::Apis::ManufacturersV1::
|
|
75
|
+
def list_account_products(parent, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
76
|
+
command = make_simple_command(:get, 'v1/{+parent}/products', options)
|
|
77
|
+
command.response_representation = Google::Apis::ManufacturersV1::ListProductsResponse::Representation
|
|
78
|
+
command.response_class = Google::Apis::ManufacturersV1::ListProductsResponse
|
|
84
79
|
command.params['parent'] = parent unless parent.nil?
|
|
85
|
-
command.
|
|
80
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
81
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
86
82
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
87
83
|
command.query['fields'] = fields unless fields.nil?
|
|
88
84
|
execute_or_queue_command(command, &block)
|
|
89
85
|
end
|
|
90
86
|
|
|
91
|
-
#
|
|
87
|
+
# Gets the product from a Manufacturer Center account, including product
|
|
88
|
+
# issues.
|
|
92
89
|
# @param [String] parent
|
|
93
90
|
# Parent ID in the format `accounts/`account_id``.
|
|
94
91
|
# `account_id` - The ID of the Manufacturer Center account.
|
|
95
|
-
# @param [
|
|
96
|
-
#
|
|
97
|
-
#
|
|
98
|
-
#
|
|
99
|
-
# The
|
|
92
|
+
# @param [String] name
|
|
93
|
+
# Name in the format ``target_country`:`content_language`:`product_id``.
|
|
94
|
+
# `target_country` - The target country of the product as a CLDR territory
|
|
95
|
+
# code (for example, US).
|
|
96
|
+
# `content_language` - The content language of the product as a two-letter
|
|
97
|
+
# ISO 639-1 language code (for example, en).
|
|
98
|
+
# `product_id` - The ID of the product. For more information, see
|
|
99
|
+
# https://support.google.com/manufacturers/answer/6124116#
|
|
100
|
+
# id.
|
|
100
101
|
# @param [String] quota_user
|
|
101
102
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
102
103
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
@@ -106,21 +107,20 @@ module Google
|
|
|
106
107
|
# Request-specific options
|
|
107
108
|
#
|
|
108
109
|
# @yield [result, err] Result & error if block supplied
|
|
109
|
-
# @yieldparam result [Google::Apis::ManufacturersV1::
|
|
110
|
+
# @yieldparam result [Google::Apis::ManufacturersV1::Product] parsed result object
|
|
110
111
|
# @yieldparam err [StandardError] error object if request failed
|
|
111
112
|
#
|
|
112
|
-
# @return [Google::Apis::ManufacturersV1::
|
|
113
|
+
# @return [Google::Apis::ManufacturersV1::Product]
|
|
113
114
|
#
|
|
114
115
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
115
116
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
116
117
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
117
|
-
def
|
|
118
|
-
command = make_simple_command(:get, 'v1/{+parent}/products', options)
|
|
119
|
-
command.response_representation = Google::Apis::ManufacturersV1::
|
|
120
|
-
command.response_class = Google::Apis::ManufacturersV1::
|
|
118
|
+
def get_account_product(parent, name, quota_user: nil, fields: nil, options: nil, &block)
|
|
119
|
+
command = make_simple_command(:get, 'v1/{+parent}/products/{+name}', options)
|
|
120
|
+
command.response_representation = Google::Apis::ManufacturersV1::Product::Representation
|
|
121
|
+
command.response_class = Google::Apis::ManufacturersV1::Product
|
|
121
122
|
command.params['parent'] = parent unless parent.nil?
|
|
122
|
-
command.
|
|
123
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
123
|
+
command.params['name'] = name unless name.nil?
|
|
124
124
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
125
125
|
command.query['fields'] = fields unless fields.nil?
|
|
126
126
|
execute_or_queue_command(command, &block)
|
|
@@ -27,7 +27,10 @@ module Google
|
|
|
27
27
|
# @see https://cloud.google.com/monitoring/api/
|
|
28
28
|
module MonitoringV3
|
|
29
29
|
VERSION = 'V3'
|
|
30
|
-
REVISION = '
|
|
30
|
+
REVISION = '20170306'
|
|
31
|
+
|
|
32
|
+
# View and write monitoring data for all of your Google and third-party Cloud and API projects
|
|
33
|
+
AUTH_MONITORING = 'https://www.googleapis.com/auth/monitoring'
|
|
31
34
|
|
|
32
35
|
# Publish metric data to your Google Cloud projects
|
|
33
36
|
AUTH_MONITORING_WRITE = 'https://www.googleapis.com/auth/monitoring.write'
|
|
@@ -37,9 +40,6 @@ module Google
|
|
|
37
40
|
|
|
38
41
|
# View monitoring data for all of your Google Cloud and third-party projects
|
|
39
42
|
AUTH_MONITORING_READ = 'https://www.googleapis.com/auth/monitoring.read'
|
|
40
|
-
|
|
41
|
-
# View and write monitoring data for all of your Google and third-party Cloud and API projects
|
|
42
|
-
AUTH_MONITORING = 'https://www.googleapis.com/auth/monitoring'
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
end
|
|
@@ -22,48 +22,10 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module MonitoringV3
|
|
24
24
|
|
|
25
|
-
# The ListGroupMembers response.
|
|
26
|
-
class ListGroupMembersResponse
|
|
27
|
-
include Google::Apis::Core::Hashable
|
|
28
|
-
|
|
29
|
-
# A set of monitored resources in the group.
|
|
30
|
-
# Corresponds to the JSON property `members`
|
|
31
|
-
# @return [Array<Google::Apis::MonitoringV3::MonitoredResource>]
|
|
32
|
-
attr_accessor :members
|
|
33
|
-
|
|
34
|
-
# If there are more results than have been returned, then this field is set to a
|
|
35
|
-
# non-empty value. To see the additional results, use that value as pageToken in
|
|
36
|
-
# the next call to this method.
|
|
37
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
38
|
-
# @return [String]
|
|
39
|
-
attr_accessor :next_page_token
|
|
40
|
-
|
|
41
|
-
# The total number of elements matching this request.
|
|
42
|
-
# Corresponds to the JSON property `totalSize`
|
|
43
|
-
# @return [Fixnum]
|
|
44
|
-
attr_accessor :total_size
|
|
45
|
-
|
|
46
|
-
def initialize(**args)
|
|
47
|
-
update!(**args)
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
# Update properties of this object
|
|
51
|
-
def update!(**args)
|
|
52
|
-
@members = args[:members] if args.key?(:members)
|
|
53
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
54
|
-
@total_size = args[:total_size] if args.key?(:total_size)
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
|
|
58
25
|
# The CreateCollectdTimeSeries request.
|
|
59
26
|
class CreateCollectdTimeSeriesRequest
|
|
60
27
|
include Google::Apis::Core::Hashable
|
|
61
28
|
|
|
62
|
-
# The version of collectd that collected the data. Example: "5.3.0-192.el6".
|
|
63
|
-
# Corresponds to the JSON property `collectdVersion`
|
|
64
|
-
# @return [String]
|
|
65
|
-
attr_accessor :collectd_version
|
|
66
|
-
|
|
67
29
|
# An object representing a resource that can be used for monitoring, logging,
|
|
68
30
|
# billing, or other purposes. Examples include virtual machine instances,
|
|
69
31
|
# databases, and storage devices such as disks. The type field identifies a
|
|
@@ -88,15 +50,53 @@ module Google
|
|
|
88
50
|
# @return [Array<Google::Apis::MonitoringV3::CollectdPayload>]
|
|
89
51
|
attr_accessor :collectd_payloads
|
|
90
52
|
|
|
53
|
+
# The version of collectd that collected the data. Example: "5.3.0-192.el6".
|
|
54
|
+
# Corresponds to the JSON property `collectdVersion`
|
|
55
|
+
# @return [String]
|
|
56
|
+
attr_accessor :collectd_version
|
|
57
|
+
|
|
91
58
|
def initialize(**args)
|
|
92
59
|
update!(**args)
|
|
93
60
|
end
|
|
94
61
|
|
|
95
62
|
# Update properties of this object
|
|
96
63
|
def update!(**args)
|
|
97
|
-
@collectd_version = args[:collectd_version] if args.key?(:collectd_version)
|
|
98
64
|
@resource = args[:resource] if args.key?(:resource)
|
|
99
65
|
@collectd_payloads = args[:collectd_payloads] if args.key?(:collectd_payloads)
|
|
66
|
+
@collectd_version = args[:collectd_version] if args.key?(:collectd_version)
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# The ListGroupMembers response.
|
|
71
|
+
class ListGroupMembersResponse
|
|
72
|
+
include Google::Apis::Core::Hashable
|
|
73
|
+
|
|
74
|
+
# A set of monitored resources in the group.
|
|
75
|
+
# Corresponds to the JSON property `members`
|
|
76
|
+
# @return [Array<Google::Apis::MonitoringV3::MonitoredResource>]
|
|
77
|
+
attr_accessor :members
|
|
78
|
+
|
|
79
|
+
# If there are more results than have been returned, then this field is set to a
|
|
80
|
+
# non-empty value. To see the additional results, use that value as pageToken in
|
|
81
|
+
# the next call to this method.
|
|
82
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
83
|
+
# @return [String]
|
|
84
|
+
attr_accessor :next_page_token
|
|
85
|
+
|
|
86
|
+
# The total number of elements matching this request.
|
|
87
|
+
# Corresponds to the JSON property `totalSize`
|
|
88
|
+
# @return [Fixnum]
|
|
89
|
+
attr_accessor :total_size
|
|
90
|
+
|
|
91
|
+
def initialize(**args)
|
|
92
|
+
update!(**args)
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Update properties of this object
|
|
96
|
+
def update!(**args)
|
|
97
|
+
@members = args[:members] if args.key?(:members)
|
|
98
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
99
|
+
@total_size = args[:total_size] if args.key?(:total_size)
|
|
100
100
|
end
|
|
101
101
|
end
|
|
102
102
|
|
|
@@ -135,17 +135,6 @@ module Google
|
|
|
135
135
|
class TimeSeries
|
|
136
136
|
include Google::Apis::Core::Hashable
|
|
137
137
|
|
|
138
|
-
# The metric kind of the time series. When listing time series, this metric kind
|
|
139
|
-
# might be different from the metric kind of the associated metric if this time
|
|
140
|
-
# series is an alignment or reduction of other time series.When creating a time
|
|
141
|
-
# series, this field is optional. If present, it must be the same as the metric
|
|
142
|
-
# kind of the associated metric. If the associated metric's descriptor must be
|
|
143
|
-
# auto-created, then this field specifies the metric kind of the new descriptor
|
|
144
|
-
# and must be either GAUGE (the default) or CUMULATIVE.
|
|
145
|
-
# Corresponds to the JSON property `metricKind`
|
|
146
|
-
# @return [String]
|
|
147
|
-
attr_accessor :metric_kind
|
|
148
|
-
|
|
149
138
|
# A specific metric, identified by specifying values for all of the labels of a
|
|
150
139
|
# MetricDescriptor.
|
|
151
140
|
# Corresponds to the JSON property `metric`
|
|
@@ -187,17 +176,28 @@ module Google
|
|
|
187
176
|
# @return [Google::Apis::MonitoringV3::MonitoredResource]
|
|
188
177
|
attr_accessor :resource
|
|
189
178
|
|
|
179
|
+
# The metric kind of the time series. When listing time series, this metric kind
|
|
180
|
+
# might be different from the metric kind of the associated metric if this time
|
|
181
|
+
# series is an alignment or reduction of other time series.When creating a time
|
|
182
|
+
# series, this field is optional. If present, it must be the same as the metric
|
|
183
|
+
# kind of the associated metric. If the associated metric's descriptor must be
|
|
184
|
+
# auto-created, then this field specifies the metric kind of the new descriptor
|
|
185
|
+
# and must be either GAUGE (the default) or CUMULATIVE.
|
|
186
|
+
# Corresponds to the JSON property `metricKind`
|
|
187
|
+
# @return [String]
|
|
188
|
+
attr_accessor :metric_kind
|
|
189
|
+
|
|
190
190
|
def initialize(**args)
|
|
191
191
|
update!(**args)
|
|
192
192
|
end
|
|
193
193
|
|
|
194
194
|
# Update properties of this object
|
|
195
195
|
def update!(**args)
|
|
196
|
-
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
|
|
197
196
|
@metric = args[:metric] if args.key?(:metric)
|
|
198
197
|
@points = args[:points] if args.key?(:points)
|
|
199
198
|
@value_type = args[:value_type] if args.key?(:value_type)
|
|
200
199
|
@resource = args[:resource] if args.key?(:resource)
|
|
200
|
+
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
|
|
201
201
|
end
|
|
202
202
|
end
|
|
203
203
|
|
|
@@ -389,23 +389,6 @@ module Google
|
|
|
389
389
|
class MonitoredResourceDescriptor
|
|
390
390
|
include Google::Apis::Core::Hashable
|
|
391
391
|
|
|
392
|
-
# Required. A set of labels used to describe instances of this monitored
|
|
393
|
-
# resource type. For example, an individual Google Cloud SQL database is
|
|
394
|
-
# identified by values for the labels "database_id" and "zone".
|
|
395
|
-
# Corresponds to the JSON property `labels`
|
|
396
|
-
# @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
|
|
397
|
-
attr_accessor :labels
|
|
398
|
-
|
|
399
|
-
# Optional. The resource name of the monitored resource descriptor: "projects/`
|
|
400
|
-
# project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of
|
|
401
|
-
# the type field in this object and `project_id` is a project ID that provides
|
|
402
|
-
# API-specific context for accessing the type. APIs that do not use project
|
|
403
|
-
# information can use the resource name format "monitoredResourceDescriptors/`
|
|
404
|
-
# type`".
|
|
405
|
-
# Corresponds to the JSON property `name`
|
|
406
|
-
# @return [String]
|
|
407
|
-
attr_accessor :name
|
|
408
|
-
|
|
409
392
|
# Optional. A concise name for the monitored resource type that might be
|
|
410
393
|
# displayed in user interfaces. It should be a Title Cased Noun Phrase, without
|
|
411
394
|
# any article or other determiners. For example, "Google Cloud SQL Database".
|
|
@@ -426,17 +409,34 @@ module Google
|
|
|
426
409
|
# @return [String]
|
|
427
410
|
attr_accessor :type
|
|
428
411
|
|
|
412
|
+
# Required. A set of labels used to describe instances of this monitored
|
|
413
|
+
# resource type. For example, an individual Google Cloud SQL database is
|
|
414
|
+
# identified by values for the labels "database_id" and "zone".
|
|
415
|
+
# Corresponds to the JSON property `labels`
|
|
416
|
+
# @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
|
|
417
|
+
attr_accessor :labels
|
|
418
|
+
|
|
419
|
+
# Optional. The resource name of the monitored resource descriptor: "projects/`
|
|
420
|
+
# project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of
|
|
421
|
+
# the type field in this object and `project_id` is a project ID that provides
|
|
422
|
+
# API-specific context for accessing the type. APIs that do not use project
|
|
423
|
+
# information can use the resource name format "monitoredResourceDescriptors/`
|
|
424
|
+
# type`".
|
|
425
|
+
# Corresponds to the JSON property `name`
|
|
426
|
+
# @return [String]
|
|
427
|
+
attr_accessor :name
|
|
428
|
+
|
|
429
429
|
def initialize(**args)
|
|
430
430
|
update!(**args)
|
|
431
431
|
end
|
|
432
432
|
|
|
433
433
|
# Update properties of this object
|
|
434
434
|
def update!(**args)
|
|
435
|
-
@labels = args[:labels] if args.key?(:labels)
|
|
436
|
-
@name = args[:name] if args.key?(:name)
|
|
437
435
|
@display_name = args[:display_name] if args.key?(:display_name)
|
|
438
436
|
@description = args[:description] if args.key?(:description)
|
|
439
437
|
@type = args[:type] if args.key?(:type)
|
|
438
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
439
|
+
@name = args[:name] if args.key?(:name)
|
|
440
440
|
end
|
|
441
441
|
end
|
|
442
442
|
|
|
@@ -501,27 +501,16 @@ module Google
|
|
|
501
501
|
class CollectdPayload
|
|
502
502
|
include Google::Apis::Core::Hashable
|
|
503
503
|
|
|
504
|
-
# The
|
|
505
|
-
#
|
|
506
|
-
#
|
|
507
|
-
|
|
508
|
-
attr_accessor :values
|
|
509
|
-
|
|
510
|
-
# The measurement type instance. Example: "used".
|
|
511
|
-
# Corresponds to the JSON property `typeInstance`
|
|
512
|
-
# @return [String]
|
|
513
|
-
attr_accessor :type_instance
|
|
504
|
+
# The measurement metadata. Example: "process_id" -> 12345
|
|
505
|
+
# Corresponds to the JSON property `metadata`
|
|
506
|
+
# @return [Hash<String,Google::Apis::MonitoringV3::TypedValue>]
|
|
507
|
+
attr_accessor :metadata
|
|
514
508
|
|
|
515
509
|
# The measurement type. Example: "memory".
|
|
516
510
|
# Corresponds to the JSON property `type`
|
|
517
511
|
# @return [String]
|
|
518
512
|
attr_accessor :type
|
|
519
513
|
|
|
520
|
-
# The measurement metadata. Example: "process_id" -> 12345
|
|
521
|
-
# Corresponds to the JSON property `metadata`
|
|
522
|
-
# @return [Hash<String,Google::Apis::MonitoringV3::TypedValue>]
|
|
523
|
-
attr_accessor :metadata
|
|
524
|
-
|
|
525
514
|
# The name of the plugin. Example: "disk".
|
|
526
515
|
# Corresponds to the JSON property `plugin`
|
|
527
516
|
# @return [String]
|
|
@@ -542,20 +531,31 @@ module Google
|
|
|
542
531
|
# @return [String]
|
|
543
532
|
attr_accessor :start_time
|
|
544
533
|
|
|
534
|
+
# The measured values during this time interval. Each value must have a
|
|
535
|
+
# different dataSourceName.
|
|
536
|
+
# Corresponds to the JSON property `values`
|
|
537
|
+
# @return [Array<Google::Apis::MonitoringV3::CollectdValue>]
|
|
538
|
+
attr_accessor :values
|
|
539
|
+
|
|
540
|
+
# The measurement type instance. Example: "used".
|
|
541
|
+
# Corresponds to the JSON property `typeInstance`
|
|
542
|
+
# @return [String]
|
|
543
|
+
attr_accessor :type_instance
|
|
544
|
+
|
|
545
545
|
def initialize(**args)
|
|
546
546
|
update!(**args)
|
|
547
547
|
end
|
|
548
548
|
|
|
549
549
|
# Update properties of this object
|
|
550
550
|
def update!(**args)
|
|
551
|
-
@values = args[:values] if args.key?(:values)
|
|
552
|
-
@type_instance = args[:type_instance] if args.key?(:type_instance)
|
|
553
|
-
@type = args[:type] if args.key?(:type)
|
|
554
551
|
@metadata = args[:metadata] if args.key?(:metadata)
|
|
552
|
+
@type = args[:type] if args.key?(:type)
|
|
555
553
|
@plugin = args[:plugin] if args.key?(:plugin)
|
|
556
554
|
@plugin_instance = args[:plugin_instance] if args.key?(:plugin_instance)
|
|
557
555
|
@end_time = args[:end_time] if args.key?(:end_time)
|
|
558
556
|
@start_time = args[:start_time] if args.key?(:start_time)
|
|
557
|
+
@values = args[:values] if args.key?(:values)
|
|
558
|
+
@type_instance = args[:type_instance] if args.key?(:type_instance)
|
|
559
559
|
end
|
|
560
560
|
end
|
|
561
561
|
|
|
@@ -599,14 +599,6 @@ module Google
|
|
|
599
599
|
class Option
|
|
600
600
|
include Google::Apis::Core::Hashable
|
|
601
601
|
|
|
602
|
-
# The option's name. For protobuf built-in options (options defined in
|
|
603
|
-
# descriptor.proto), this is the short name. For example, "map_entry". For
|
|
604
|
-
# custom options, it should be the fully-qualified name. For example, "google.
|
|
605
|
-
# api.http".
|
|
606
|
-
# Corresponds to the JSON property `name`
|
|
607
|
-
# @return [String]
|
|
608
|
-
attr_accessor :name
|
|
609
|
-
|
|
610
602
|
# The option's value packed in an Any message. If the value is a primitive, the
|
|
611
603
|
# corresponding wrapper type defined in google/protobuf/wrappers.proto should be
|
|
612
604
|
# used. If the value is an enum, it should be stored as an int32 value using the
|
|
@@ -615,14 +607,22 @@ module Google
|
|
|
615
607
|
# @return [Hash<String,Object>]
|
|
616
608
|
attr_accessor :value
|
|
617
609
|
|
|
610
|
+
# The option's name. For protobuf built-in options (options defined in
|
|
611
|
+
# descriptor.proto), this is the short name. For example, "map_entry". For
|
|
612
|
+
# custom options, it should be the fully-qualified name. For example, "google.
|
|
613
|
+
# api.http".
|
|
614
|
+
# Corresponds to the JSON property `name`
|
|
615
|
+
# @return [String]
|
|
616
|
+
attr_accessor :name
|
|
617
|
+
|
|
618
618
|
def initialize(**args)
|
|
619
619
|
update!(**args)
|
|
620
620
|
end
|
|
621
621
|
|
|
622
622
|
# Update properties of this object
|
|
623
623
|
def update!(**args)
|
|
624
|
-
@name = args[:name] if args.key?(:name)
|
|
625
624
|
@value = args[:value] if args.key?(:value)
|
|
625
|
+
@name = args[:name] if args.key?(:name)
|
|
626
626
|
end
|
|
627
627
|
end
|
|
628
628
|
|
|
@@ -705,6 +705,11 @@ module Google
|
|
|
705
705
|
class Exponential
|
|
706
706
|
include Google::Apis::Core::Hashable
|
|
707
707
|
|
|
708
|
+
# Must be greater than 0.
|
|
709
|
+
# Corresponds to the JSON property `numFiniteBuckets`
|
|
710
|
+
# @return [Fixnum]
|
|
711
|
+
attr_accessor :num_finite_buckets
|
|
712
|
+
|
|
708
713
|
# Must be greater than 1.
|
|
709
714
|
# Corresponds to the JSON property `growthFactor`
|
|
710
715
|
# @return [Float]
|
|
@@ -715,20 +720,15 @@ module Google
|
|
|
715
720
|
# @return [Float]
|
|
716
721
|
attr_accessor :scale
|
|
717
722
|
|
|
718
|
-
# Must be greater than 0.
|
|
719
|
-
# Corresponds to the JSON property `numFiniteBuckets`
|
|
720
|
-
# @return [Fixnum]
|
|
721
|
-
attr_accessor :num_finite_buckets
|
|
722
|
-
|
|
723
723
|
def initialize(**args)
|
|
724
724
|
update!(**args)
|
|
725
725
|
end
|
|
726
726
|
|
|
727
727
|
# Update properties of this object
|
|
728
728
|
def update!(**args)
|
|
729
|
+
@num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
|
|
729
730
|
@growth_factor = args[:growth_factor] if args.key?(:growth_factor)
|
|
730
731
|
@scale = args[:scale] if args.key?(:scale)
|
|
731
|
-
@num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
|
|
732
732
|
end
|
|
733
733
|
end
|
|
734
734
|
|
|
@@ -736,11 +736,6 @@ module Google
|
|
|
736
736
|
class Point
|
|
737
737
|
include Google::Apis::Core::Hashable
|
|
738
738
|
|
|
739
|
-
# A single strongly-typed value.
|
|
740
|
-
# Corresponds to the JSON property `value`
|
|
741
|
-
# @return [Google::Apis::MonitoringV3::TypedValue]
|
|
742
|
-
attr_accessor :value
|
|
743
|
-
|
|
744
739
|
# A time interval extending just after a start time through an end time. If the
|
|
745
740
|
# start time is the same as the end time, then the interval represents a single
|
|
746
741
|
# point in time.
|
|
@@ -748,14 +743,19 @@ module Google
|
|
|
748
743
|
# @return [Google::Apis::MonitoringV3::TimeInterval]
|
|
749
744
|
attr_accessor :interval
|
|
750
745
|
|
|
746
|
+
# A single strongly-typed value.
|
|
747
|
+
# Corresponds to the JSON property `value`
|
|
748
|
+
# @return [Google::Apis::MonitoringV3::TypedValue]
|
|
749
|
+
attr_accessor :value
|
|
750
|
+
|
|
751
751
|
def initialize(**args)
|
|
752
752
|
update!(**args)
|
|
753
753
|
end
|
|
754
754
|
|
|
755
755
|
# Update properties of this object
|
|
756
756
|
def update!(**args)
|
|
757
|
-
@value = args[:value] if args.key?(:value)
|
|
758
757
|
@interval = args[:interval] if args.key?(:interval)
|
|
758
|
+
@value = args[:value] if args.key?(:value)
|
|
759
759
|
end
|
|
760
760
|
end
|
|
761
761
|
|
|
@@ -774,16 +774,16 @@ module Google
|
|
|
774
774
|
# @return [Fixnum]
|
|
775
775
|
attr_accessor :number
|
|
776
776
|
|
|
777
|
-
# The field JSON name.
|
|
778
|
-
# Corresponds to the JSON property `jsonName`
|
|
779
|
-
# @return [String]
|
|
780
|
-
attr_accessor :json_name
|
|
781
|
-
|
|
782
777
|
# The field type.
|
|
783
778
|
# Corresponds to the JSON property `kind`
|
|
784
779
|
# @return [String]
|
|
785
780
|
attr_accessor :kind
|
|
786
781
|
|
|
782
|
+
# The field JSON name.
|
|
783
|
+
# Corresponds to the JSON property `jsonName`
|
|
784
|
+
# @return [String]
|
|
785
|
+
attr_accessor :json_name
|
|
786
|
+
|
|
787
787
|
# The protocol buffer options.
|
|
788
788
|
# Corresponds to the JSON property `options`
|
|
789
789
|
# @return [Array<Google::Apis::MonitoringV3::Option>]
|
|
@@ -824,8 +824,8 @@ module Google
|
|
|
824
824
|
def update!(**args)
|
|
825
825
|
@type_url = args[:type_url] if args.key?(:type_url)
|
|
826
826
|
@number = args[:number] if args.key?(:number)
|
|
827
|
-
@json_name = args[:json_name] if args.key?(:json_name)
|
|
828
827
|
@kind = args[:kind] if args.key?(:kind)
|
|
828
|
+
@json_name = args[:json_name] if args.key?(:json_name)
|
|
829
829
|
@options = args[:options] if args.key?(:options)
|
|
830
830
|
@oneof_index = args[:oneof_index] if args.key?(:oneof_index)
|
|
831
831
|
@cardinality = args[:cardinality] if args.key?(:cardinality)
|
|
@@ -840,26 +840,26 @@ module Google
|
|
|
840
840
|
class Metric
|
|
841
841
|
include Google::Apis::Core::Hashable
|
|
842
842
|
|
|
843
|
-
# The set of label values that uniquely identify this metric. All labels listed
|
|
844
|
-
# in the MetricDescriptor must be assigned values.
|
|
845
|
-
# Corresponds to the JSON property `labels`
|
|
846
|
-
# @return [Hash<String,String>]
|
|
847
|
-
attr_accessor :labels
|
|
848
|
-
|
|
849
843
|
# An existing metric type, see google.api.MetricDescriptor. For example, custom.
|
|
850
844
|
# googleapis.com/invoice/paid/amount.
|
|
851
845
|
# Corresponds to the JSON property `type`
|
|
852
846
|
# @return [String]
|
|
853
847
|
attr_accessor :type
|
|
854
848
|
|
|
849
|
+
# The set of label values that uniquely identify this metric. All labels listed
|
|
850
|
+
# in the MetricDescriptor must be assigned values.
|
|
851
|
+
# Corresponds to the JSON property `labels`
|
|
852
|
+
# @return [Hash<String,String>]
|
|
853
|
+
attr_accessor :labels
|
|
854
|
+
|
|
855
855
|
def initialize(**args)
|
|
856
856
|
update!(**args)
|
|
857
857
|
end
|
|
858
858
|
|
|
859
859
|
# Update properties of this object
|
|
860
860
|
def update!(**args)
|
|
861
|
-
@labels = args[:labels] if args.key?(:labels)
|
|
862
861
|
@type = args[:type] if args.key?(:type)
|
|
862
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
863
863
|
end
|
|
864
864
|
end
|
|
865
865
|
|
|
@@ -867,11 +867,6 @@ module Google
|
|
|
867
867
|
class LabelDescriptor
|
|
868
868
|
include Google::Apis::Core::Hashable
|
|
869
869
|
|
|
870
|
-
# The label key.
|
|
871
|
-
# Corresponds to the JSON property `key`
|
|
872
|
-
# @return [String]
|
|
873
|
-
attr_accessor :key
|
|
874
|
-
|
|
875
870
|
# A human-readable description for the label.
|
|
876
871
|
# Corresponds to the JSON property `description`
|
|
877
872
|
# @return [String]
|
|
@@ -882,15 +877,20 @@ module Google
|
|
|
882
877
|
# @return [String]
|
|
883
878
|
attr_accessor :value_type
|
|
884
879
|
|
|
880
|
+
# The label key.
|
|
881
|
+
# Corresponds to the JSON property `key`
|
|
882
|
+
# @return [String]
|
|
883
|
+
attr_accessor :key
|
|
884
|
+
|
|
885
885
|
def initialize(**args)
|
|
886
886
|
update!(**args)
|
|
887
887
|
end
|
|
888
888
|
|
|
889
889
|
# Update properties of this object
|
|
890
890
|
def update!(**args)
|
|
891
|
-
@key = args[:key] if args.key?(:key)
|
|
892
891
|
@description = args[:description] if args.key?(:description)
|
|
893
892
|
@value_type = args[:value_type] if args.key?(:value_type)
|
|
893
|
+
@key = args[:key] if args.key?(:key)
|
|
894
894
|
end
|
|
895
895
|
end
|
|
896
896
|
|
|
@@ -921,6 +921,56 @@ module Google
|
|
|
921
921
|
end
|
|
922
922
|
end
|
|
923
923
|
|
|
924
|
+
# A protocol buffer message type.
|
|
925
|
+
class Type
|
|
926
|
+
include Google::Apis::Core::Hashable
|
|
927
|
+
|
|
928
|
+
# The list of types appearing in oneof definitions in this type.
|
|
929
|
+
# Corresponds to the JSON property `oneofs`
|
|
930
|
+
# @return [Array<String>]
|
|
931
|
+
attr_accessor :oneofs
|
|
932
|
+
|
|
933
|
+
# The source syntax.
|
|
934
|
+
# Corresponds to the JSON property `syntax`
|
|
935
|
+
# @return [String]
|
|
936
|
+
attr_accessor :syntax
|
|
937
|
+
|
|
938
|
+
# SourceContext represents information about the source of a protobuf element,
|
|
939
|
+
# like the file in which it is defined.
|
|
940
|
+
# Corresponds to the JSON property `sourceContext`
|
|
941
|
+
# @return [Google::Apis::MonitoringV3::SourceContext]
|
|
942
|
+
attr_accessor :source_context
|
|
943
|
+
|
|
944
|
+
# The protocol buffer options.
|
|
945
|
+
# Corresponds to the JSON property `options`
|
|
946
|
+
# @return [Array<Google::Apis::MonitoringV3::Option>]
|
|
947
|
+
attr_accessor :options
|
|
948
|
+
|
|
949
|
+
# The list of fields.
|
|
950
|
+
# Corresponds to the JSON property `fields`
|
|
951
|
+
# @return [Array<Google::Apis::MonitoringV3::Field>]
|
|
952
|
+
attr_accessor :fields
|
|
953
|
+
|
|
954
|
+
# The fully qualified message name.
|
|
955
|
+
# Corresponds to the JSON property `name`
|
|
956
|
+
# @return [String]
|
|
957
|
+
attr_accessor :name
|
|
958
|
+
|
|
959
|
+
def initialize(**args)
|
|
960
|
+
update!(**args)
|
|
961
|
+
end
|
|
962
|
+
|
|
963
|
+
# Update properties of this object
|
|
964
|
+
def update!(**args)
|
|
965
|
+
@oneofs = args[:oneofs] if args.key?(:oneofs)
|
|
966
|
+
@syntax = args[:syntax] if args.key?(:syntax)
|
|
967
|
+
@source_context = args[:source_context] if args.key?(:source_context)
|
|
968
|
+
@options = args[:options] if args.key?(:options)
|
|
969
|
+
@fields = args[:fields] if args.key?(:fields)
|
|
970
|
+
@name = args[:name] if args.key?(:name)
|
|
971
|
+
end
|
|
972
|
+
end
|
|
973
|
+
|
|
924
974
|
# The description of a dynamic collection of monitored resources. Each group has
|
|
925
975
|
# a filter that is matched against monitored resources and their associated
|
|
926
976
|
# metadata. If a group's filter matches an available monitored resource, then
|
|
@@ -990,56 +1040,6 @@ module Google
|
|
|
990
1040
|
end
|
|
991
1041
|
end
|
|
992
1042
|
|
|
993
|
-
# A protocol buffer message type.
|
|
994
|
-
class Type
|
|
995
|
-
include Google::Apis::Core::Hashable
|
|
996
|
-
|
|
997
|
-
# The source syntax.
|
|
998
|
-
# Corresponds to the JSON property `syntax`
|
|
999
|
-
# @return [String]
|
|
1000
|
-
attr_accessor :syntax
|
|
1001
|
-
|
|
1002
|
-
# SourceContext represents information about the source of a protobuf element,
|
|
1003
|
-
# like the file in which it is defined.
|
|
1004
|
-
# Corresponds to the JSON property `sourceContext`
|
|
1005
|
-
# @return [Google::Apis::MonitoringV3::SourceContext]
|
|
1006
|
-
attr_accessor :source_context
|
|
1007
|
-
|
|
1008
|
-
# The protocol buffer options.
|
|
1009
|
-
# Corresponds to the JSON property `options`
|
|
1010
|
-
# @return [Array<Google::Apis::MonitoringV3::Option>]
|
|
1011
|
-
attr_accessor :options
|
|
1012
|
-
|
|
1013
|
-
# The list of fields.
|
|
1014
|
-
# Corresponds to the JSON property `fields`
|
|
1015
|
-
# @return [Array<Google::Apis::MonitoringV3::Field>]
|
|
1016
|
-
attr_accessor :fields
|
|
1017
|
-
|
|
1018
|
-
# The fully qualified message name.
|
|
1019
|
-
# Corresponds to the JSON property `name`
|
|
1020
|
-
# @return [String]
|
|
1021
|
-
attr_accessor :name
|
|
1022
|
-
|
|
1023
|
-
# The list of types appearing in oneof definitions in this type.
|
|
1024
|
-
# Corresponds to the JSON property `oneofs`
|
|
1025
|
-
# @return [Array<String>]
|
|
1026
|
-
attr_accessor :oneofs
|
|
1027
|
-
|
|
1028
|
-
def initialize(**args)
|
|
1029
|
-
update!(**args)
|
|
1030
|
-
end
|
|
1031
|
-
|
|
1032
|
-
# Update properties of this object
|
|
1033
|
-
def update!(**args)
|
|
1034
|
-
@syntax = args[:syntax] if args.key?(:syntax)
|
|
1035
|
-
@source_context = args[:source_context] if args.key?(:source_context)
|
|
1036
|
-
@options = args[:options] if args.key?(:options)
|
|
1037
|
-
@fields = args[:fields] if args.key?(:fields)
|
|
1038
|
-
@name = args[:name] if args.key?(:name)
|
|
1039
|
-
@oneofs = args[:oneofs] if args.key?(:oneofs)
|
|
1040
|
-
end
|
|
1041
|
-
end
|
|
1042
|
-
|
|
1043
1043
|
# A Distribution may optionally contain a histogram of the values in the
|
|
1044
1044
|
# population. The histogram is given in bucket_counts as counts of values that
|
|
1045
1045
|
# fall into one of a sequence of non-overlapping buckets. The sequence of
|
|
@@ -1104,6 +1104,11 @@ module Google
|
|
|
1104
1104
|
class CollectdValue
|
|
1105
1105
|
include Google::Apis::Core::Hashable
|
|
1106
1106
|
|
|
1107
|
+
# The type of measurement.
|
|
1108
|
+
# Corresponds to the JSON property `dataSourceType`
|
|
1109
|
+
# @return [String]
|
|
1110
|
+
attr_accessor :data_source_type
|
|
1111
|
+
|
|
1107
1112
|
# The data source for the collectd value. For example there are two data sources
|
|
1108
1113
|
# for network measurements: "rx" and "tx".
|
|
1109
1114
|
# Corresponds to the JSON property `dataSourceName`
|
|
@@ -1115,20 +1120,15 @@ module Google
|
|
|
1115
1120
|
# @return [Google::Apis::MonitoringV3::TypedValue]
|
|
1116
1121
|
attr_accessor :value
|
|
1117
1122
|
|
|
1118
|
-
# The type of measurement.
|
|
1119
|
-
# Corresponds to the JSON property `dataSourceType`
|
|
1120
|
-
# @return [String]
|
|
1121
|
-
attr_accessor :data_source_type
|
|
1122
|
-
|
|
1123
1123
|
def initialize(**args)
|
|
1124
1124
|
update!(**args)
|
|
1125
1125
|
end
|
|
1126
1126
|
|
|
1127
1127
|
# Update properties of this object
|
|
1128
1128
|
def update!(**args)
|
|
1129
|
+
@data_source_type = args[:data_source_type] if args.key?(:data_source_type)
|
|
1129
1130
|
@data_source_name = args[:data_source_name] if args.key?(:data_source_name)
|
|
1130
1131
|
@value = args[:value] if args.key?(:value)
|
|
1131
|
-
@data_source_type = args[:data_source_type] if args.key?(:data_source_type)
|
|
1132
1132
|
end
|
|
1133
1133
|
end
|
|
1134
1134
|
|
|
@@ -1159,23 +1159,59 @@ module Google
|
|
|
1159
1159
|
class MetricDescriptor
|
|
1160
1160
|
include Google::Apis::Core::Hashable
|
|
1161
1161
|
|
|
1162
|
+
# The set of labels that can be used to describe a specific instance of this
|
|
1163
|
+
# metric type. For example, the appengine.googleapis.com/http/server/
|
|
1164
|
+
# response_latencies metric type has a label for the HTTP response code,
|
|
1165
|
+
# response_code, so you can look at latencies for successful responses or just
|
|
1166
|
+
# for responses that failed.
|
|
1167
|
+
# Corresponds to the JSON property `labels`
|
|
1168
|
+
# @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
|
|
1169
|
+
attr_accessor :labels
|
|
1170
|
+
|
|
1171
|
+
# The resource name of the metric descriptor. Depending on the implementation,
|
|
1172
|
+
# the name typically includes: (1) the parent resource name that defines the
|
|
1173
|
+
# scope of the metric type or of its data; and (2) the metric's URL-encoded type,
|
|
1174
|
+
# which also appears in the type field of this descriptor. For example,
|
|
1175
|
+
# following is the resource name of a custom metric within the GCP project my-
|
|
1176
|
+
# project-id:
|
|
1177
|
+
# "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
|
|
1178
|
+
# 2Fpaid%2Famount"
|
|
1179
|
+
# Corresponds to the JSON property `name`
|
|
1180
|
+
# @return [String]
|
|
1181
|
+
attr_accessor :name
|
|
1182
|
+
|
|
1183
|
+
# The metric type, including its DNS name prefix. The type is not URL-encoded.
|
|
1184
|
+
# All user-defined custom metric types have the DNS name custom.googleapis.com.
|
|
1185
|
+
# Metric types should use a natural hierarchical grouping. For example:
|
|
1186
|
+
# "custom.googleapis.com/invoice/paid/amount"
|
|
1187
|
+
# "appengine.googleapis.com/http/server/response_latencies"
|
|
1188
|
+
# Corresponds to the JSON property `type`
|
|
1189
|
+
# @return [String]
|
|
1190
|
+
attr_accessor :type
|
|
1191
|
+
|
|
1192
|
+
# Whether the measurement is an integer, a floating-point number, etc. Some
|
|
1193
|
+
# combinations of metric_kind and value_type might not be supported.
|
|
1194
|
+
# Corresponds to the JSON property `valueType`
|
|
1195
|
+
# @return [String]
|
|
1196
|
+
attr_accessor :value_type
|
|
1197
|
+
|
|
1162
1198
|
# Whether the metric records instantaneous values, changes to a value, etc. Some
|
|
1163
1199
|
# combinations of metric_kind and value_type might not be supported.
|
|
1164
1200
|
# Corresponds to the JSON property `metricKind`
|
|
1165
1201
|
# @return [String]
|
|
1166
1202
|
attr_accessor :metric_kind
|
|
1167
1203
|
|
|
1204
|
+
# A detailed description of the metric, which can be used in documentation.
|
|
1205
|
+
# Corresponds to the JSON property `description`
|
|
1206
|
+
# @return [String]
|
|
1207
|
+
attr_accessor :description
|
|
1208
|
+
|
|
1168
1209
|
# A concise name for the metric, which can be displayed in user interfaces. Use
|
|
1169
1210
|
# sentence case without an ending period, for example "Request count".
|
|
1170
1211
|
# Corresponds to the JSON property `displayName`
|
|
1171
1212
|
# @return [String]
|
|
1172
1213
|
attr_accessor :display_name
|
|
1173
1214
|
|
|
1174
|
-
# A detailed description of the metric, which can be used in documentation.
|
|
1175
|
-
# Corresponds to the JSON property `description`
|
|
1176
|
-
# @return [String]
|
|
1177
|
-
attr_accessor :description
|
|
1178
|
-
|
|
1179
1215
|
# The unit in which the metric value is reported. It is only applicable if the
|
|
1180
1216
|
# value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset
|
|
1181
1217
|
# of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html)
|
|
@@ -1226,56 +1262,20 @@ module Google
|
|
|
1226
1262
|
# @return [String]
|
|
1227
1263
|
attr_accessor :unit
|
|
1228
1264
|
|
|
1229
|
-
# The set of labels that can be used to describe a specific instance of this
|
|
1230
|
-
# metric type. For example, the appengine.googleapis.com/http/server/
|
|
1231
|
-
# response_latencies metric type has a label for the HTTP response code,
|
|
1232
|
-
# response_code, so you can look at latencies for successful responses or just
|
|
1233
|
-
# for responses that failed.
|
|
1234
|
-
# Corresponds to the JSON property `labels`
|
|
1235
|
-
# @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
|
|
1236
|
-
attr_accessor :labels
|
|
1237
|
-
|
|
1238
|
-
# The resource name of the metric descriptor. Depending on the implementation,
|
|
1239
|
-
# the name typically includes: (1) the parent resource name that defines the
|
|
1240
|
-
# scope of the metric type or of its data; and (2) the metric's URL-encoded type,
|
|
1241
|
-
# which also appears in the type field of this descriptor. For example,
|
|
1242
|
-
# following is the resource name of a custom metric within the GCP project my-
|
|
1243
|
-
# project-id:
|
|
1244
|
-
# "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
|
|
1245
|
-
# 2Fpaid%2Famount"
|
|
1246
|
-
# Corresponds to the JSON property `name`
|
|
1247
|
-
# @return [String]
|
|
1248
|
-
attr_accessor :name
|
|
1249
|
-
|
|
1250
|
-
# The metric type, including its DNS name prefix. The type is not URL-encoded.
|
|
1251
|
-
# All user-defined custom metric types have the DNS name custom.googleapis.com.
|
|
1252
|
-
# Metric types should use a natural hierarchical grouping. For example:
|
|
1253
|
-
# "custom.googleapis.com/invoice/paid/amount"
|
|
1254
|
-
# "appengine.googleapis.com/http/server/response_latencies"
|
|
1255
|
-
# Corresponds to the JSON property `type`
|
|
1256
|
-
# @return [String]
|
|
1257
|
-
attr_accessor :type
|
|
1258
|
-
|
|
1259
|
-
# Whether the measurement is an integer, a floating-point number, etc. Some
|
|
1260
|
-
# combinations of metric_kind and value_type might not be supported.
|
|
1261
|
-
# Corresponds to the JSON property `valueType`
|
|
1262
|
-
# @return [String]
|
|
1263
|
-
attr_accessor :value_type
|
|
1264
|
-
|
|
1265
1265
|
def initialize(**args)
|
|
1266
1266
|
update!(**args)
|
|
1267
1267
|
end
|
|
1268
1268
|
|
|
1269
1269
|
# Update properties of this object
|
|
1270
1270
|
def update!(**args)
|
|
1271
|
-
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
|
|
1272
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
|
1273
|
-
@description = args[:description] if args.key?(:description)
|
|
1274
|
-
@unit = args[:unit] if args.key?(:unit)
|
|
1275
1271
|
@labels = args[:labels] if args.key?(:labels)
|
|
1276
1272
|
@name = args[:name] if args.key?(:name)
|
|
1277
1273
|
@type = args[:type] if args.key?(:type)
|
|
1278
1274
|
@value_type = args[:value_type] if args.key?(:value_type)
|
|
1275
|
+
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
|
|
1276
|
+
@description = args[:description] if args.key?(:description)
|
|
1277
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
1278
|
+
@unit = args[:unit] if args.key?(:unit)
|
|
1279
1279
|
end
|
|
1280
1280
|
end
|
|
1281
1281
|
|