google-api-client 0.10.1 → 0.10.2

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.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +395 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
  11. data/generated/google/apis/admin_reports_v1.rb +3 -3
  12. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analytics_v3/service.rb +39 -0
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  19. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
  22. data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
  23. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  24. data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
  25. data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
  26. data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +32 -37
  30. data/generated/google/apis/bigquery_v2/service.rb +10 -2
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/calendar_v3/classes.rb +205 -0
  33. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  34. data/generated/google/apis/classroom_v1.rb +22 -25
  35. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
  40. data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
  41. data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
  42. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  43. data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
  44. data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
  45. data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
  46. data/generated/google/apis/cloudkms_v1.rb +1 -1
  47. data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
  48. data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
  49. data/generated/google/apis/cloudkms_v1/service.rb +228 -228
  50. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
  59. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  60. data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
  61. data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
  62. data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
  63. data/generated/google/apis/compute_beta.rb +1 -1
  64. data/generated/google/apis/compute_beta/classes.rb +116 -0
  65. data/generated/google/apis/compute_beta/representations.rb +48 -0
  66. data/generated/google/apis/compute_beta/service.rb +46 -1
  67. data/generated/google/apis/compute_v1.rb +1 -1
  68. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
  71. data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
  74. data/generated/google/apis/dataproc_v1/representations.rb +255 -253
  75. data/generated/google/apis/dataproc_v1/service.rb +100 -100
  76. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  77. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/dns_v2beta1.rb +1 -1
  80. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2/classes.rb +3 -1
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +3 -1
  85. data/generated/google/apis/fusiontables_v2.rb +1 -1
  86. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  87. data/generated/google/apis/games_management_v1management.rb +1 -1
  88. data/generated/google/apis/games_v1.rb +1 -1
  89. data/generated/google/apis/genomics_v1.rb +7 -7
  90. data/generated/google/apis/genomics_v1/classes.rb +959 -959
  91. data/generated/google/apis/genomics_v1/representations.rb +238 -238
  92. data/generated/google/apis/genomics_v1/service.rb +996 -996
  93. data/generated/google/apis/iam_v1.rb +1 -1
  94. data/generated/google/apis/iam_v1/classes.rb +440 -440
  95. data/generated/google/apis/iam_v1/representations.rb +94 -94
  96. data/generated/google/apis/iam_v1/service.rb +170 -173
  97. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  98. data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
  99. data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
  100. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  101. data/generated/google/apis/language_v1beta1.rb +1 -1
  102. data/generated/google/apis/language_v1beta1/classes.rb +427 -427
  103. data/generated/google/apis/language_v1beta1/representations.rb +113 -113
  104. data/generated/google/apis/language_v1beta1/service.rb +25 -24
  105. data/generated/google/apis/licensing_v1.rb +2 -2
  106. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  107. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  108. data/generated/google/apis/licensing_v1/service.rb +1 -1
  109. data/generated/google/apis/logging_v2beta1.rb +1 -1
  110. data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
  111. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  112. data/generated/google/apis/logging_v2beta1/service.rb +261 -261
  113. data/generated/google/apis/manufacturers_v1.rb +1 -1
  114. data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
  115. data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
  116. data/generated/google/apis/manufacturers_v1/service.rb +11 -11
  117. data/generated/google/apis/mirror_v1.rb +1 -1
  118. data/generated/google/apis/monitoring_v3.rb +7 -7
  119. data/generated/google/apis/monitoring_v3/classes.rb +668 -670
  120. data/generated/google/apis/monitoring_v3/representations.rb +140 -140
  121. data/generated/google/apis/monitoring_v3/service.rb +208 -208
  122. data/generated/google/apis/partners_v2.rb +1 -1
  123. data/generated/google/apis/partners_v2/classes.rb +505 -505
  124. data/generated/google/apis/partners_v2/representations.rb +118 -118
  125. data/generated/google/apis/partners_v2/service.rb +275 -275
  126. data/generated/google/apis/people_v1.rb +1 -1
  127. data/generated/google/apis/people_v1/classes.rb +1037 -1031
  128. data/generated/google/apis/people_v1/representations.rb +247 -246
  129. data/generated/google/apis/people_v1/service.rb +20 -20
  130. data/generated/google/apis/plus_domains_v1.rb +1 -1
  131. data/generated/google/apis/plus_v1.rb +1 -1
  132. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  133. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
  134. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
  135. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
  136. data/generated/google/apis/pubsub_v1.rb +4 -4
  137. data/generated/google/apis/pubsub_v1/classes.rb +131 -132
  138. data/generated/google/apis/pubsub_v1/representations.rb +35 -35
  139. data/generated/google/apis/pubsub_v1/service.rb +399 -408
  140. data/generated/google/apis/reseller_v1.rb +1 -1
  141. data/generated/google/apis/reseller_v1/classes.rb +9 -0
  142. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  143. data/generated/google/apis/script_v1.rb +9 -9
  144. data/generated/google/apis/script_v1/classes.rb +110 -110
  145. data/generated/google/apis/script_v1/representations.rb +26 -26
  146. data/generated/google/apis/sheets_v4.rb +4 -4
  147. data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
  148. data/generated/google/apis/sheets_v4/representations.rb +856 -856
  149. data/generated/google/apis/sheets_v4/service.rb +106 -106
  150. data/generated/google/apis/slides_v1.rb +4 -4
  151. data/generated/google/apis/slides_v1/classes.rb +2923 -2841
  152. data/generated/google/apis/slides_v1/representations.rb +722 -691
  153. data/generated/google/apis/slides_v1/service.rb +58 -15
  154. data/generated/google/apis/speech_v1beta1.rb +1 -1
  155. data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
  156. data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
  157. data/generated/google/apis/speech_v1beta1/service.rb +70 -70
  158. data/generated/google/apis/storage_v1.rb +1 -1
  159. data/generated/google/apis/storage_v1/classes.rb +151 -0
  160. data/generated/google/apis/storage_v1/representations.rb +45 -0
  161. data/generated/google/apis/storage_v1/service.rb +248 -0
  162. data/generated/google/apis/vision_v1.rb +1 -1
  163. data/generated/google/apis/vision_v1/classes.rb +1227 -1221
  164. data/generated/google/apis/vision_v1/representations.rb +217 -215
  165. data/generated/google/apis/webmasters_v3.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  167. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  168. data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
  169. data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
  170. data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
  171. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  172. data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
  173. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  174. data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
  175. data/lib/google/apis/version.rb +1 -1
  176. metadata +2 -2
@@ -22,7 +22,7 @@ module Google
22
22
  module Apis
23
23
  module ManufacturersV1
24
24
 
25
- class Issue
25
+ class Count
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
@@ -34,7 +34,7 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class Attributes
37
+ class Capacity
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
@@ -46,19 +46,56 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class ProductDetail
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class FeatureDescription
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
49
61
  class Issue
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class Price
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Image
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class Attributes
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Count
50
86
  # @private
51
87
  class Representation < Google::Apis::Core::JsonRepresentation
52
- property :description, as: 'description'
53
- property :type, as: 'type'
54
- property :attribute, as: 'attribute'
55
- property :severity, as: 'severity'
88
+ property :value, as: 'value'
89
+ property :unit, as: 'unit'
56
90
  end
57
91
  end
58
92
 
59
93
  class Product
60
94
  # @private
61
95
  class Representation < Google::Apis::Core::JsonRepresentation
96
+ property :target_country, as: 'targetCountry'
97
+ property :content_language, as: 'contentLanguage'
98
+ property :name, as: 'name'
62
99
  collection :manually_deleted_attributes, as: 'manuallyDeletedAttributes'
63
100
  collection :issues, as: 'issues', class: Google::Apis::ManufacturersV1::Issue, decorator: Google::Apis::ManufacturersV1::Issue::Representation
64
101
 
@@ -70,23 +107,14 @@ module Google
70
107
  property :parent, as: 'parent'
71
108
  property :manually_provided_attributes, as: 'manuallyProvidedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
72
109
 
73
- property :target_country, as: 'targetCountry'
74
- property :content_language, as: 'contentLanguage'
75
- property :name, as: 'name'
76
110
  end
77
111
  end
78
112
 
79
- class Attributes
113
+ class Capacity
80
114
  # @private
81
115
  class Representation < Google::Apis::Core::JsonRepresentation
82
- collection :gtin, as: 'gtin'
83
- property :title, as: 'title'
84
- property :product_line, as: 'productLine'
85
- property :brand, as: 'brand'
86
- property :product_name, as: 'productName'
87
- collection :product_type, as: 'productType'
88
- property :mpn, as: 'mpn'
89
- property :product_page_url, as: 'productPageUrl'
116
+ property :value, as: 'value'
117
+ property :unit, as: 'unit'
90
118
  end
91
119
  end
92
120
 
@@ -98,6 +126,98 @@ module Google
98
126
  property :next_page_token, as: 'nextPageToken'
99
127
  end
100
128
  end
129
+
130
+ class ProductDetail
131
+ # @private
132
+ class Representation < Google::Apis::Core::JsonRepresentation
133
+ property :attribute_value, as: 'attributeValue'
134
+ property :section_name, as: 'sectionName'
135
+ property :attribute_name, as: 'attributeName'
136
+ end
137
+ end
138
+
139
+ class FeatureDescription
140
+ # @private
141
+ class Representation < Google::Apis::Core::JsonRepresentation
142
+ property :text, as: 'text'
143
+ property :image, as: 'image', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
144
+
145
+ property :headline, as: 'headline'
146
+ end
147
+ end
148
+
149
+ class Issue
150
+ # @private
151
+ class Representation < Google::Apis::Core::JsonRepresentation
152
+ property :timestamp, as: 'timestamp'
153
+ property :severity, as: 'severity'
154
+ property :description, as: 'description'
155
+ property :type, as: 'type'
156
+ property :attribute, as: 'attribute'
157
+ end
158
+ end
159
+
160
+ class Price
161
+ # @private
162
+ class Representation < Google::Apis::Core::JsonRepresentation
163
+ property :amount, as: 'amount'
164
+ property :currency, as: 'currency'
165
+ end
166
+ end
167
+
168
+ class Image
169
+ # @private
170
+ class Representation < Google::Apis::Core::JsonRepresentation
171
+ property :type, as: 'type'
172
+ property :image_url, as: 'imageUrl'
173
+ property :status, as: 'status'
174
+ end
175
+ end
176
+
177
+ class Attributes
178
+ # @private
179
+ class Representation < Google::Apis::Core::JsonRepresentation
180
+ property :size_system, as: 'sizeSystem'
181
+ property :theme, as: 'theme'
182
+ property :pattern, as: 'pattern'
183
+ property :image_link, as: 'imageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
184
+
185
+ collection :product_type, as: 'productType'
186
+ property :format, as: 'format'
187
+ collection :additional_image_link, as: 'additionalImageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
188
+
189
+ collection :video_link, as: 'videoLink'
190
+ property :color, as: 'color'
191
+ property :product_name, as: 'productName'
192
+ property :size_type, as: 'sizeType'
193
+ property :suggested_retail_price, as: 'suggestedRetailPrice', class: Google::Apis::ManufacturersV1::Price, decorator: Google::Apis::ManufacturersV1::Price::Representation
194
+
195
+ collection :feature_description, as: 'featureDescription', class: Google::Apis::ManufacturersV1::FeatureDescription, decorator: Google::Apis::ManufacturersV1::FeatureDescription::Representation
196
+
197
+ property :size, as: 'size'
198
+ property :title, as: 'title'
199
+ property :count, as: 'count', class: Google::Apis::ManufacturersV1::Count, decorator: Google::Apis::ManufacturersV1::Count::Representation
200
+
201
+ property :brand, as: 'brand'
202
+ property :disclosure_date, as: 'disclosureDate'
203
+ property :material, as: 'material'
204
+ property :scent, as: 'scent'
205
+ property :age_group, as: 'ageGroup'
206
+ collection :product_detail, as: 'productDetail', class: Google::Apis::ManufacturersV1::ProductDetail, decorator: Google::Apis::ManufacturersV1::ProductDetail::Representation
207
+
208
+ property :flavor, as: 'flavor'
209
+ property :product_page_url, as: 'productPageUrl'
210
+ property :mpn, as: 'mpn'
211
+ property :release_date, as: 'releaseDate'
212
+ collection :gtin, as: 'gtin'
213
+ property :item_group_id, as: 'itemGroupId'
214
+ property :product_line, as: 'productLine'
215
+ property :capacity, as: 'capacity', class: Google::Apis::ManufacturersV1::Capacity, decorator: Google::Apis::ManufacturersV1::Capacity::Representation
216
+
217
+ property :description, as: 'description'
218
+ property :gender, as: 'gender'
219
+ end
220
+ end
101
221
  end
102
222
  end
103
223
  end
@@ -50,16 +50,16 @@ module Google
50
50
  # @param [String] parent
51
51
  # Parent ID in the format `accounts/`account_id``.
52
52
  # `account_id` - The ID of the Manufacturer Center account.
53
+ # @param [String] page_token
54
+ # The token returned by the previous request.
53
55
  # @param [Fixnum] page_size
54
56
  # Maximum number of product statuses to return in the response, used for
55
57
  # paging.
56
- # @param [String] page_token
57
- # The token returned by the previous request.
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
58
60
  # @param [String] quota_user
59
61
  # Available to use for quota purposes for server-side applications. Can be any
60
62
  # arbitrary string assigned to a user, but should not exceed 40 characters.
61
- # @param [String] fields
62
- # Selector specifying which fields to include in a partial response.
63
63
  # @param [Google::Apis::RequestOptions] options
64
64
  # Request-specific options
65
65
  #
@@ -72,15 +72,15 @@ module Google
72
72
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
73
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
74
  # @raise [Google::Apis::AuthorizationError] Authorization is required
75
- def list_account_products(parent, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
75
+ def list_account_products(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
76
76
  command = make_simple_command(:get, 'v1/{+parent}/products', options)
77
77
  command.response_representation = Google::Apis::ManufacturersV1::ListProductsResponse::Representation
78
78
  command.response_class = Google::Apis::ManufacturersV1::ListProductsResponse
79
79
  command.params['parent'] = parent unless parent.nil?
80
- command.query['pageSize'] = page_size unless page_size.nil?
81
80
  command.query['pageToken'] = page_token unless page_token.nil?
82
- command.query['quotaUser'] = quota_user unless quota_user.nil?
81
+ command.query['pageSize'] = page_size unless page_size.nil?
83
82
  command.query['fields'] = fields unless fields.nil?
83
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
84
84
  execute_or_queue_command(command, &block)
85
85
  end
86
86
 
@@ -98,11 +98,11 @@ module Google
98
98
  # `product_id` - The ID of the product. For more information, see
99
99
  # https://support.google.com/manufacturers/answer/6124116#
100
100
  # id.
101
+ # @param [String] fields
102
+ # Selector specifying which fields to include in a partial response.
101
103
  # @param [String] quota_user
102
104
  # Available to use for quota purposes for server-side applications. Can be any
103
105
  # arbitrary string assigned to a user, but should not exceed 40 characters.
104
- # @param [String] fields
105
- # Selector specifying which fields to include in a partial response.
106
106
  # @param [Google::Apis::RequestOptions] options
107
107
  # Request-specific options
108
108
  #
@@ -115,14 +115,14 @@ module Google
115
115
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
116
116
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
117
117
  # @raise [Google::Apis::AuthorizationError] Authorization is required
118
- def get_account_product(parent, name, quota_user: nil, fields: nil, options: nil, &block)
118
+ def get_account_product(parent, name, fields: nil, quota_user: nil, options: nil, &block)
119
119
  command = make_simple_command(:get, 'v1/{+parent}/products/{+name}', options)
120
120
  command.response_representation = Google::Apis::ManufacturersV1::Product::Representation
121
121
  command.response_class = Google::Apis::ManufacturersV1::Product
122
122
  command.params['parent'] = parent unless parent.nil?
123
123
  command.params['name'] = name unless name.nil?
124
- command.query['quotaUser'] = quota_user unless quota_user.nil?
125
124
  command.query['fields'] = fields unless fields.nil?
125
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
126
126
  execute_or_queue_command(command, &block)
127
127
  end
128
128
 
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/glass
26
26
  module MirrorV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160616'
28
+ REVISION = '20170314'
29
29
 
30
30
  # View your location
31
31
  AUTH_GLASS_LOCATION = 'https://www.googleapis.com/auth/glass.location'
@@ -27,19 +27,19 @@ module Google
27
27
  # @see https://cloud.google.com/monitoring/api/
28
28
  module MonitoringV3
29
29
  VERSION = 'V3'
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'
34
-
35
- # Publish metric data to your Google Cloud projects
36
- AUTH_MONITORING_WRITE = 'https://www.googleapis.com/auth/monitoring.write'
30
+ REVISION = '20170320'
37
31
 
38
32
  # View and manage your data across Google Cloud Platform services
39
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
40
34
 
41
35
  # View monitoring data for all of your Google Cloud and third-party projects
42
36
  AUTH_MONITORING_READ = 'https://www.googleapis.com/auth/monitoring.read'
37
+
38
+ # View and write monitoring data for all of your Google and third-party Cloud and API projects
39
+ AUTH_MONITORING = 'https://www.googleapis.com/auth/monitoring'
40
+
41
+ # Publish metric data to your Google Cloud projects
42
+ AUTH_MONITORING_WRITE = 'https://www.googleapis.com/auth/monitoring.write'
43
43
  end
44
44
  end
45
45
  end
@@ -22,6 +22,328 @@ module Google
22
22
  module Apis
23
23
  module MonitoringV3
24
24
 
25
+ # BucketOptions describes the bucket boundaries used to create a histogram for
26
+ # the distribution. The buckets can be in a linear sequence, an exponential
27
+ # sequence, or each bucket can be specified explicitly. BucketOptions does not
28
+ # include the number of values in each bucket.A bucket has an inclusive lower
29
+ # bound and exclusive upper bound for the values that are counted for that
30
+ # bucket. The upper bound of a bucket must be strictly greater than the lower
31
+ # bound. The sequence of N buckets for a distribution consists of an underflow
32
+ # bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an
33
+ # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
34
+ # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
35
+ # span the whole range of finite values: lower bound of the underflow bucket is -
36
+ # infinity and the upper bound of the overflow bucket is +infinity. The finite
37
+ # buckets are so-called because both bounds are finite.
38
+ class BucketOptions
39
+ include Google::Apis::Core::Hashable
40
+
41
+ # Specifies an exponential sequence of buckets that have a width that is
42
+ # proportional to the value of the lower bound. Each bucket represents a
43
+ # constant relative uncertainty on a specific value in the bucket.There are
44
+ # num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:
45
+ # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i <
46
+ # N): scale * (growth_factor ^ (i - 1)).
47
+ # Corresponds to the JSON property `exponentialBuckets`
48
+ # @return [Google::Apis::MonitoringV3::Exponential]
49
+ attr_accessor :exponential_buckets
50
+
51
+ # Specifies a linear sequence of buckets that all have the same width (except
52
+ # overflow and underflow). Each bucket represents a constant absolute
53
+ # uncertainty on the specific value in the bucket.There are num_finite_buckets +
54
+ # 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-
55
+ # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1))
56
+ # .
57
+ # Corresponds to the JSON property `linearBuckets`
58
+ # @return [Google::Apis::MonitoringV3::Linear]
59
+ attr_accessor :linear_buckets
60
+
61
+ # Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (=
62
+ # N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1):
63
+ # boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at
64
+ # least one element. If bounds has only one element, then there are no finite
65
+ # buckets, and that single element is the common boundary of the overflow and
66
+ # underflow buckets.
67
+ # Corresponds to the JSON property `explicitBuckets`
68
+ # @return [Google::Apis::MonitoringV3::Explicit]
69
+ attr_accessor :explicit_buckets
70
+
71
+ def initialize(**args)
72
+ update!(**args)
73
+ end
74
+
75
+ # Update properties of this object
76
+ def update!(**args)
77
+ @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
78
+ @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
79
+ @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
80
+ end
81
+ end
82
+
83
+ # A single data point from a collectd-based plugin.
84
+ class CollectdValue
85
+ include Google::Apis::Core::Hashable
86
+
87
+ # The data source for the collectd value. For example there are two data sources
88
+ # for network measurements: "rx" and "tx".
89
+ # Corresponds to the JSON property `dataSourceName`
90
+ # @return [String]
91
+ attr_accessor :data_source_name
92
+
93
+ # A single strongly-typed value.
94
+ # Corresponds to the JSON property `value`
95
+ # @return [Google::Apis::MonitoringV3::TypedValue]
96
+ attr_accessor :value
97
+
98
+ # The type of measurement.
99
+ # Corresponds to the JSON property `dataSourceType`
100
+ # @return [String]
101
+ attr_accessor :data_source_type
102
+
103
+ def initialize(**args)
104
+ update!(**args)
105
+ end
106
+
107
+ # Update properties of this object
108
+ def update!(**args)
109
+ @data_source_name = args[:data_source_name] if args.key?(:data_source_name)
110
+ @value = args[:value] if args.key?(:value)
111
+ @data_source_type = args[:data_source_type] if args.key?(:data_source_type)
112
+ end
113
+ end
114
+
115
+ # SourceContext represents information about the source of a protobuf element,
116
+ # like the file in which it is defined.
117
+ class SourceContext
118
+ include Google::Apis::Core::Hashable
119
+
120
+ # The path-qualified name of the .proto file that contained the associated
121
+ # protobuf element. For example: "google/protobuf/source_context.proto".
122
+ # Corresponds to the JSON property `fileName`
123
+ # @return [String]
124
+ attr_accessor :file_name
125
+
126
+ def initialize(**args)
127
+ update!(**args)
128
+ end
129
+
130
+ # Update properties of this object
131
+ def update!(**args)
132
+ @file_name = args[:file_name] if args.key?(:file_name)
133
+ end
134
+ end
135
+
136
+ # Defines a metric type and its schema. Once a metric descriptor is created,
137
+ # deleting or altering it stops data collection and makes the metric type's
138
+ # existing data unusable.
139
+ class MetricDescriptor
140
+ include Google::Apis::Core::Hashable
141
+
142
+ # Whether the measurement is an integer, a floating-point number, etc. Some
143
+ # combinations of metric_kind and value_type might not be supported.
144
+ # Corresponds to the JSON property `valueType`
145
+ # @return [String]
146
+ attr_accessor :value_type
147
+
148
+ # Whether the metric records instantaneous values, changes to a value, etc. Some
149
+ # combinations of metric_kind and value_type might not be supported.
150
+ # Corresponds to the JSON property `metricKind`
151
+ # @return [String]
152
+ attr_accessor :metric_kind
153
+
154
+ # A concise name for the metric, which can be displayed in user interfaces. Use
155
+ # sentence case without an ending period, for example "Request count".
156
+ # Corresponds to the JSON property `displayName`
157
+ # @return [String]
158
+ attr_accessor :display_name
159
+
160
+ # A detailed description of the metric, which can be used in documentation.
161
+ # Corresponds to the JSON property `description`
162
+ # @return [String]
163
+ attr_accessor :description
164
+
165
+ # The unit in which the metric value is reported. It is only applicable if the
166
+ # value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset
167
+ # of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html)
168
+ # standard:Basic units (UNIT)
169
+ # bit bit
170
+ # By byte
171
+ # s second
172
+ # min minute
173
+ # h hour
174
+ # d dayPrefixes (PREFIX)
175
+ # k kilo (10**3)
176
+ # M mega (10**6)
177
+ # G giga (10**9)
178
+ # T tera (10**12)
179
+ # P peta (10**15)
180
+ # E exa (10**18)
181
+ # Z zetta (10**21)
182
+ # Y yotta (10**24)
183
+ # m milli (10**-3)
184
+ # u micro (10**-6)
185
+ # n nano (10**-9)
186
+ # p pico (10**-12)
187
+ # f femto (10**-15)
188
+ # a atto (10**-18)
189
+ # z zepto (10**-21)
190
+ # y yocto (10**-24)
191
+ # Ki kibi (2**10)
192
+ # Mi mebi (2**20)
193
+ # Gi gibi (2**30)
194
+ # Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such as 1/
195
+ # s.The grammar also includes these connectors:
196
+ # / division (as an infix operator, e.g. 1/s).
197
+ # . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is
198
+ # as follows:
199
+ # Expression = Component ` "." Component ` ` "/" Component ` ;
200
+ # Component = [ PREFIX ] UNIT [ Annotation ]
201
+ # | Annotation
202
+ # | "1"
203
+ # ;
204
+ # Annotation = "`" NAME "`" ;
205
+ # Notes:
206
+ # Annotation is just a comment if it follows a UNIT and is equivalent to 1 if
207
+ # it is used alone. For examples, `requests`/s == 1/s, By`transmitted`/s == By/
208
+ # s.
209
+ # NAME is a sequence of non-blank printable ASCII characters not containing '`'
210
+ # or '`'.
211
+ # Corresponds to the JSON property `unit`
212
+ # @return [String]
213
+ attr_accessor :unit
214
+
215
+ # The set of labels that can be used to describe a specific instance of this
216
+ # metric type. For example, the appengine.googleapis.com/http/server/
217
+ # response_latencies metric type has a label for the HTTP response code,
218
+ # response_code, so you can look at latencies for successful responses or just
219
+ # for responses that failed.
220
+ # Corresponds to the JSON property `labels`
221
+ # @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
222
+ attr_accessor :labels
223
+
224
+ # The resource name of the metric descriptor. Depending on the implementation,
225
+ # the name typically includes: (1) the parent resource name that defines the
226
+ # scope of the metric type or of its data; and (2) the metric's URL-encoded type,
227
+ # which also appears in the type field of this descriptor. For example,
228
+ # following is the resource name of a custom metric within the GCP project my-
229
+ # project-id:
230
+ # "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
231
+ # 2Fpaid%2Famount"
232
+ # Corresponds to the JSON property `name`
233
+ # @return [String]
234
+ attr_accessor :name
235
+
236
+ # The metric type, including its DNS name prefix. The type is not URL-encoded.
237
+ # All user-defined custom metric types have the DNS name custom.googleapis.com.
238
+ # Metric types should use a natural hierarchical grouping. For example:
239
+ # "custom.googleapis.com/invoice/paid/amount"
240
+ # "appengine.googleapis.com/http/server/response_latencies"
241
+ # Corresponds to the JSON property `type`
242
+ # @return [String]
243
+ attr_accessor :type
244
+
245
+ def initialize(**args)
246
+ update!(**args)
247
+ end
248
+
249
+ # Update properties of this object
250
+ def update!(**args)
251
+ @value_type = args[:value_type] if args.key?(:value_type)
252
+ @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
253
+ @display_name = args[:display_name] if args.key?(:display_name)
254
+ @description = args[:description] if args.key?(:description)
255
+ @unit = args[:unit] if args.key?(:unit)
256
+ @labels = args[:labels] if args.key?(:labels)
257
+ @name = args[:name] if args.key?(:name)
258
+ @type = args[:type] if args.key?(:type)
259
+ end
260
+ end
261
+
262
+ # The range of the population values.
263
+ class Range
264
+ include Google::Apis::Core::Hashable
265
+
266
+ # The minimum of the population values.
267
+ # Corresponds to the JSON property `min`
268
+ # @return [Float]
269
+ attr_accessor :min
270
+
271
+ # The maximum of the population values.
272
+ # Corresponds to the JSON property `max`
273
+ # @return [Float]
274
+ attr_accessor :max
275
+
276
+ def initialize(**args)
277
+ update!(**args)
278
+ end
279
+
280
+ # Update properties of this object
281
+ def update!(**args)
282
+ @min = args[:min] if args.key?(:min)
283
+ @max = args[:max] if args.key?(:max)
284
+ end
285
+ end
286
+
287
+ # The ListGroups response.
288
+ class ListGroupsResponse
289
+ include Google::Apis::Core::Hashable
290
+
291
+ # If there are more results than have been returned, then this field is set to a
292
+ # non-empty value. To see the additional results, use that value as pageToken in
293
+ # the next call to this method.
294
+ # Corresponds to the JSON property `nextPageToken`
295
+ # @return [String]
296
+ attr_accessor :next_page_token
297
+
298
+ # The groups that match the specified filters.
299
+ # Corresponds to the JSON property `group`
300
+ # @return [Array<Google::Apis::MonitoringV3::Group>]
301
+ attr_accessor :group
302
+
303
+ def initialize(**args)
304
+ update!(**args)
305
+ end
306
+
307
+ # Update properties of this object
308
+ def update!(**args)
309
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
310
+ @group = args[:group] if args.key?(:group)
311
+ end
312
+ end
313
+
314
+ # The ListGroupMembers response.
315
+ class ListGroupMembersResponse
316
+ include Google::Apis::Core::Hashable
317
+
318
+ # If there are more results than have been returned, then this field is set to a
319
+ # non-empty value. To see the additional results, use that value as pageToken in
320
+ # the next call to this method.
321
+ # Corresponds to the JSON property `nextPageToken`
322
+ # @return [String]
323
+ attr_accessor :next_page_token
324
+
325
+ # The total number of elements matching this request.
326
+ # Corresponds to the JSON property `totalSize`
327
+ # @return [Fixnum]
328
+ attr_accessor :total_size
329
+
330
+ # A set of monitored resources in the group.
331
+ # Corresponds to the JSON property `members`
332
+ # @return [Array<Google::Apis::MonitoringV3::MonitoredResource>]
333
+ attr_accessor :members
334
+
335
+ def initialize(**args)
336
+ update!(**args)
337
+ end
338
+
339
+ # Update properties of this object
340
+ def update!(**args)
341
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
342
+ @total_size = args[:total_size] if args.key?(:total_size)
343
+ @members = args[:members] if args.key?(:members)
344
+ end
345
+ end
346
+
25
347
  # The CreateCollectdTimeSeries request.
26
348
  class CreateCollectdTimeSeriesRequest
27
349
  include Google::Apis::Core::Hashable
@@ -67,39 +389,6 @@ module Google
67
389
  end
68
390
  end
69
391
 
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
- end
101
- end
102
-
103
392
  # The ListMonitoredResourcDescriptors response.
104
393
  class ListMonitoredResourceDescriptorsResponse
105
394
  include Google::Apis::Core::Hashable
@@ -135,22 +424,6 @@ module Google
135
424
  class TimeSeries
136
425
  include Google::Apis::Core::Hashable
137
426
 
138
- # A specific metric, identified by specifying values for all of the labels of a
139
- # MetricDescriptor.
140
- # Corresponds to the JSON property `metric`
141
- # @return [Google::Apis::MonitoringV3::Metric]
142
- attr_accessor :metric
143
-
144
- # The data points of this time series. When listing time series, the order of
145
- # the points is specified by the list method.When creating a time series, this
146
- # field must contain exactly one point and the point's type must be the same as
147
- # the value type of the associated metric. If the associated metric's descriptor
148
- # must be auto-created, then the value type of the descriptor is determined by
149
- # the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION.
150
- # Corresponds to the JSON property `points`
151
- # @return [Array<Google::Apis::MonitoringV3::Point>]
152
- attr_accessor :points
153
-
154
427
  # The value type of the time series. When listing time series, this value type
155
428
  # might be different from the value type of the associated metric if this time
156
429
  # series is an alignment or reduction of other time series.When creating a time
@@ -187,17 +460,33 @@ module Google
187
460
  # @return [String]
188
461
  attr_accessor :metric_kind
189
462
 
463
+ # A specific metric, identified by specifying values for all of the labels of a
464
+ # MetricDescriptor.
465
+ # Corresponds to the JSON property `metric`
466
+ # @return [Google::Apis::MonitoringV3::Metric]
467
+ attr_accessor :metric
468
+
469
+ # The data points of this time series. When listing time series, the order of
470
+ # the points is specified by the list method.When creating a time series, this
471
+ # field must contain exactly one point and the point's type must be the same as
472
+ # the value type of the associated metric. If the associated metric's descriptor
473
+ # must be auto-created, then the value type of the descriptor is determined by
474
+ # the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION.
475
+ # Corresponds to the JSON property `points`
476
+ # @return [Array<Google::Apis::MonitoringV3::Point>]
477
+ attr_accessor :points
478
+
190
479
  def initialize(**args)
191
480
  update!(**args)
192
481
  end
193
482
 
194
483
  # Update properties of this object
195
484
  def update!(**args)
196
- @metric = args[:metric] if args.key?(:metric)
197
- @points = args[:points] if args.key?(:points)
198
485
  @value_type = args[:value_type] if args.key?(:value_type)
199
486
  @resource = args[:resource] if args.key?(:resource)
200
487
  @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
488
+ @metric = args[:metric] if args.key?(:metric)
489
+ @points = args[:points] if args.key?(:points)
201
490
  end
202
491
  end
203
492
 
@@ -224,36 +513,22 @@ module Google
224
513
  end
225
514
  end
226
515
 
227
- # Distribution contains summary statistics for a population of values and,
228
- # optionally, a histogram representing the distribution of those values across a
229
- # specified set of histogram buckets.The summary statistics are the count, mean,
230
- # sum of the squared deviation from the mean, the minimum, and the maximum of
231
- # the set of population of values.The histogram is based on a sequence of
232
- # buckets and gives a count of values that fall into each bucket. The boundaries
233
- # of the buckets are given either explicitly or by specifying parameters for a
234
- # method of computing them (buckets of fixed width or buckets of exponentially
235
- # increasing width).Although it is not forbidden, it is generally a bad idea to
236
- # include non-finite values (infinities or NaNs) in the population of values, as
237
- # this will render the mean and sum_of_squared_deviation fields meaningless.
516
+ # Distribution contains summary statistics for a population of values. It
517
+ # optionally contains a histogram representing the distribution of those values
518
+ # across a set of buckets.The summary statistics are the count, mean, sum of the
519
+ # squared deviation from the mean, the minimum, and the maximum of the set of
520
+ # population of values. The histogram is based on a sequence of buckets and
521
+ # gives a count of values that fall into each bucket. The boundaries of the
522
+ # buckets are given either explicitly or by formulas for buckets of fixed or
523
+ # exponentially increasing widths.Although it is not forbidden, it is generally
524
+ # a bad idea to include non-finite values (infinities or NaNs) in the population
525
+ # of values, as this will render the mean and sum_of_squared_deviation fields
526
+ # meaningless.
238
527
  class Distribution
239
528
  include Google::Apis::Core::Hashable
240
529
 
241
- # The sum of squared deviations from the mean of the values in the population.
242
- # For values x_i this is:
243
- # Sum[i=1..n]((x_i - mean)^2)
244
- # Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
245
- # describes Welford's method for accumulating this sum in one pass.If count is
246
- # zero then this field must be zero.
247
- # Corresponds to the JSON property `sumOfSquaredDeviation`
248
- # @return [Float]
249
- attr_accessor :sum_of_squared_deviation
250
-
251
- # The range of the population values.
252
- # Corresponds to the JSON property `range`
253
- # @return [Google::Apis::MonitoringV3::Range]
254
- attr_accessor :range
255
-
256
- # The number of values in the population. Must be non-negative.
530
+ # The number of values in the population. Must be non-negative. This value must
531
+ # equal the sum of the values in bucket_counts if a histogram is provided.
257
532
  # Corresponds to the JSON property `count`
258
533
  # @return [String]
259
534
  attr_accessor :count
@@ -264,50 +539,62 @@ module Google
264
539
  # @return [Float]
265
540
  attr_accessor :mean
266
541
 
267
- # If bucket_options is given, then the sum of the values in bucket_counts must
268
- # equal the value in count. If bucket_options is not given, no bucket_counts
269
- # fields may be given.Bucket counts are given in order under the numbering
270
- # scheme described above (the underflow bucket has number 0; the finite buckets,
271
- # if any, have numbers 1 through N-2; the overflow bucket has number N-1).The
272
- # size of bucket_counts must be no greater than N as defined in bucket_options.
273
- # Any suffix of trailing zero bucket_count fields may be omitted.
542
+ # Required in the Stackdriver Monitoring API v3. The values for each bucket
543
+ # specified in bucket_options. The sum of the values in bucketCounts must equal
544
+ # the value in the count field of the Distribution object. The order of the
545
+ # bucket counts follows the numbering schemes described for the three bucket
546
+ # types. The underflow bucket has number 0; the finite buckets, if any, have
547
+ # numbers 1 through N-2; and the overflow bucket has number N-1. The size of
548
+ # bucket_counts must not be greater than N. If the size is less than N, then the
549
+ # remaining buckets are assigned values of zero.
274
550
  # Corresponds to the JSON property `bucketCounts`
275
551
  # @return [Array<String>]
276
552
  attr_accessor :bucket_counts
277
553
 
278
- # A Distribution may optionally contain a histogram of the values in the
279
- # population. The histogram is given in bucket_counts as counts of values that
280
- # fall into one of a sequence of non-overlapping buckets. The sequence of
281
- # buckets is described by bucket_options.A bucket specifies an inclusive lower
554
+ # BucketOptions describes the bucket boundaries used to create a histogram for
555
+ # the distribution. The buckets can be in a linear sequence, an exponential
556
+ # sequence, or each bucket can be specified explicitly. BucketOptions does not
557
+ # include the number of values in each bucket.A bucket has an inclusive lower
282
558
  # bound and exclusive upper bound for the values that are counted for that
283
- # bucket. The upper bound of a bucket is strictly greater than the lower bound.
284
- # The sequence of N buckets for a Distribution consists of an underflow bucket (
285
- # number 0), zero or more finite buckets (number 1 through N - 2) and an
559
+ # bucket. The upper bound of a bucket must be strictly greater than the lower
560
+ # bound. The sequence of N buckets for a distribution consists of an underflow
561
+ # bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an
286
562
  # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
287
563
  # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
288
564
  # span the whole range of finite values: lower bound of the underflow bucket is -
289
565
  # infinity and the upper bound of the overflow bucket is +infinity. The finite
290
- # buckets are so-called because both bounds are finite.BucketOptions describes
291
- # bucket boundaries in one of three ways. Two describe the boundaries by giving
292
- # parameters for a formula to generate boundaries and one gives the bucket
293
- # boundaries explicitly.If bucket_options is not given, then no bucket_counts
294
- # may be given.
566
+ # buckets are so-called because both bounds are finite.
295
567
  # Corresponds to the JSON property `bucketOptions`
296
568
  # @return [Google::Apis::MonitoringV3::BucketOptions]
297
569
  attr_accessor :bucket_options
298
570
 
571
+ # The sum of squared deviations from the mean of the values in the population.
572
+ # For values x_i this is:
573
+ # Sum[i=1..n]((x_i - mean)^2)
574
+ # Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
575
+ # describes Welford's method for accumulating this sum in one pass.If count is
576
+ # zero then this field must be zero.
577
+ # Corresponds to the JSON property `sumOfSquaredDeviation`
578
+ # @return [Float]
579
+ attr_accessor :sum_of_squared_deviation
580
+
581
+ # The range of the population values.
582
+ # Corresponds to the JSON property `range`
583
+ # @return [Google::Apis::MonitoringV3::Range]
584
+ attr_accessor :range
585
+
299
586
  def initialize(**args)
300
587
  update!(**args)
301
588
  end
302
589
 
303
590
  # Update properties of this object
304
591
  def update!(**args)
305
- @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation)
306
- @range = args[:range] if args.key?(:range)
307
592
  @count = args[:count] if args.key?(:count)
308
593
  @mean = args[:mean] if args.key?(:mean)
309
594
  @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
310
595
  @bucket_options = args[:bucket_options] if args.key?(:bucket_options)
596
+ @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation)
597
+ @range = args[:range] if args.key?(:range)
311
598
  end
312
599
  end
313
600
 
@@ -389,6 +676,23 @@ module Google
389
676
  class MonitoredResourceDescriptor
390
677
  include Google::Apis::Core::Hashable
391
678
 
679
+ # Required. A set of labels used to describe instances of this monitored
680
+ # resource type. For example, an individual Google Cloud SQL database is
681
+ # identified by values for the labels "database_id" and "zone".
682
+ # Corresponds to the JSON property `labels`
683
+ # @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
684
+ attr_accessor :labels
685
+
686
+ # Optional. The resource name of the monitored resource descriptor: "projects/`
687
+ # project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of
688
+ # the type field in this object and `project_id` is a project ID that provides
689
+ # API-specific context for accessing the type. APIs that do not use project
690
+ # information can use the resource name format "monitoredResourceDescriptors/`
691
+ # type`".
692
+ # Corresponds to the JSON property `name`
693
+ # @return [String]
694
+ attr_accessor :name
695
+
392
696
  # Optional. A concise name for the monitored resource type that might be
393
697
  # displayed in user interfaces. It should be a Title Cased Noun Phrase, without
394
698
  # any article or other determiners. For example, "Google Cloud SQL Database".
@@ -409,34 +713,17 @@ module Google
409
713
  # @return [String]
410
714
  attr_accessor :type
411
715
 
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
716
  def initialize(**args)
430
717
  update!(**args)
431
718
  end
432
719
 
433
720
  # Update properties of this object
434
721
  def update!(**args)
722
+ @labels = args[:labels] if args.key?(:labels)
723
+ @name = args[:name] if args.key?(:name)
435
724
  @display_name = args[:display_name] if args.key?(:display_name)
436
725
  @description = args[:description] if args.key?(:description)
437
726
  @type = args[:type] if args.key?(:type)
438
- @labels = args[:labels] if args.key?(:labels)
439
- @name = args[:name] if args.key?(:name)
440
727
  end
441
728
  end
442
729
 
@@ -444,29 +731,22 @@ module Google
444
731
  class TypedValue
445
732
  include Google::Apis::Core::Hashable
446
733
 
447
- # A 64-bit double-precision floating-point number. Its magnitude is
448
- # approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16 significant
449
- # digits of precision.
450
- # Corresponds to the JSON property `doubleValue`
451
- # @return [Float]
452
- attr_accessor :double_value
453
-
454
734
  # A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.
455
735
  # Corresponds to the JSON property `int64Value`
456
736
  # @return [String]
457
737
  attr_accessor :int64_value
458
738
 
459
- # Distribution contains summary statistics for a population of values and,
460
- # optionally, a histogram representing the distribution of those values across a
461
- # specified set of histogram buckets.The summary statistics are the count, mean,
462
- # sum of the squared deviation from the mean, the minimum, and the maximum of
463
- # the set of population of values.The histogram is based on a sequence of
464
- # buckets and gives a count of values that fall into each bucket. The boundaries
465
- # of the buckets are given either explicitly or by specifying parameters for a
466
- # method of computing them (buckets of fixed width or buckets of exponentially
467
- # increasing width).Although it is not forbidden, it is generally a bad idea to
468
- # include non-finite values (infinities or NaNs) in the population of values, as
469
- # this will render the mean and sum_of_squared_deviation fields meaningless.
739
+ # Distribution contains summary statistics for a population of values. It
740
+ # optionally contains a histogram representing the distribution of those values
741
+ # across a set of buckets.The summary statistics are the count, mean, sum of the
742
+ # squared deviation from the mean, the minimum, and the maximum of the set of
743
+ # population of values. The histogram is based on a sequence of buckets and
744
+ # gives a count of values that fall into each bucket. The boundaries of the
745
+ # buckets are given either explicitly or by formulas for buckets of fixed or
746
+ # exponentially increasing widths.Although it is not forbidden, it is generally
747
+ # a bad idea to include non-finite values (infinities or NaNs) in the population
748
+ # of values, as this will render the mean and sum_of_squared_deviation fields
749
+ # meaningless.
470
750
  # Corresponds to the JSON property `distributionValue`
471
751
  # @return [Google::Apis::MonitoringV3::Distribution]
472
752
  attr_accessor :distribution_value
@@ -482,17 +762,24 @@ module Google
482
762
  # @return [String]
483
763
  attr_accessor :string_value
484
764
 
765
+ # A 64-bit double-precision floating-point number. Its magnitude is
766
+ # approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16 significant
767
+ # digits of precision.
768
+ # Corresponds to the JSON property `doubleValue`
769
+ # @return [Float]
770
+ attr_accessor :double_value
771
+
485
772
  def initialize(**args)
486
773
  update!(**args)
487
774
  end
488
775
 
489
776
  # Update properties of this object
490
777
  def update!(**args)
491
- @double_value = args[:double_value] if args.key?(:double_value)
492
778
  @int64_value = args[:int64_value] if args.key?(:int64_value)
493
779
  @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
494
780
  @bool_value = args[:bool_value] if args.key?(:bool_value)
495
781
  @string_value = args[:string_value] if args.key?(:string_value)
782
+ @double_value = args[:double_value] if args.key?(:double_value)
496
783
  end
497
784
  end
498
785
 
@@ -501,16 +788,6 @@ module Google
501
788
  class CollectdPayload
502
789
  include Google::Apis::Core::Hashable
503
790
 
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
508
-
509
- # The measurement type. Example: "memory".
510
- # Corresponds to the JSON property `type`
511
- # @return [String]
512
- attr_accessor :type
513
-
514
791
  # The name of the plugin. Example: "disk".
515
792
  # Corresponds to the JSON property `plugin`
516
793
  # @return [String]
@@ -542,31 +819,47 @@ module Google
542
819
  # @return [String]
543
820
  attr_accessor :type_instance
544
821
 
822
+ # The measurement metadata. Example: "process_id" -> 12345
823
+ # Corresponds to the JSON property `metadata`
824
+ # @return [Hash<String,Google::Apis::MonitoringV3::TypedValue>]
825
+ attr_accessor :metadata
826
+
827
+ # The measurement type. Example: "memory".
828
+ # Corresponds to the JSON property `type`
829
+ # @return [String]
830
+ attr_accessor :type
831
+
545
832
  def initialize(**args)
546
833
  update!(**args)
547
834
  end
548
835
 
549
836
  # Update properties of this object
550
837
  def update!(**args)
551
- @metadata = args[:metadata] if args.key?(:metadata)
552
- @type = args[:type] if args.key?(:type)
553
838
  @plugin = args[:plugin] if args.key?(:plugin)
554
839
  @plugin_instance = args[:plugin_instance] if args.key?(:plugin_instance)
555
840
  @end_time = args[:end_time] if args.key?(:end_time)
556
841
  @start_time = args[:start_time] if args.key?(:start_time)
557
842
  @values = args[:values] if args.key?(:values)
558
843
  @type_instance = args[:type_instance] if args.key?(:type_instance)
844
+ @metadata = args[:metadata] if args.key?(:metadata)
845
+ @type = args[:type] if args.key?(:type)
559
846
  end
560
847
  end
561
848
 
562
- # Specify a sequence of buckets that all have the same width (except overflow
563
- # and underflow). Each bucket represents a constant absolute uncertainty on the
564
- # specific value in the bucket.Defines num_finite_buckets + 2 (= N) buckets with
565
- # these boundaries for bucket i:Upper bound (0 <= i < N-1): offset + (width * i).
566
- # Lower bound (1 <= i < N): offset + (width * (i - 1)).
849
+ # Specifies a linear sequence of buckets that all have the same width (except
850
+ # overflow and underflow). Each bucket represents a constant absolute
851
+ # uncertainty on the specific value in the bucket.There are num_finite_buckets +
852
+ # 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-
853
+ # 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1))
854
+ # .
567
855
  class Linear
568
856
  include Google::Apis::Core::Hashable
569
857
 
858
+ # Must be greater than 0.
859
+ # Corresponds to the JSON property `width`
860
+ # @return [Float]
861
+ attr_accessor :width
862
+
570
863
  # Lower bound of the first bucket.
571
864
  # Corresponds to the JSON property `offset`
572
865
  # @return [Float]
@@ -577,20 +870,15 @@ module Google
577
870
  # @return [Fixnum]
578
871
  attr_accessor :num_finite_buckets
579
872
 
580
- # Must be greater than 0.
581
- # Corresponds to the JSON property `width`
582
- # @return [Float]
583
- attr_accessor :width
584
-
585
873
  def initialize(**args)
586
874
  update!(**args)
587
875
  end
588
876
 
589
877
  # Update properties of this object
590
878
  def update!(**args)
879
+ @width = args[:width] if args.key?(:width)
591
880
  @offset = args[:offset] if args.key?(:offset)
592
881
  @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
593
- @width = args[:width] if args.key?(:width)
594
882
  end
595
883
  end
596
884
 
@@ -645,29 +933,6 @@ module Google
645
933
  end
646
934
  end
647
935
 
648
- # A set of buckets with arbitrary widths.Defines size(bounds) + 1 (= N) buckets
649
- # with these boundaries for bucket i:Upper bound (0 <= i < N-1): boundsi Lower
650
- # bound (1 <= i < N); boundsi - 1There must be at least one element in bounds.
651
- # If bounds has only one element, there are no finite buckets, and that single
652
- # element is the common boundary of the overflow and underflow buckets.
653
- class Explicit
654
- include Google::Apis::Core::Hashable
655
-
656
- # The values must be monotonically increasing.
657
- # Corresponds to the JSON property `bounds`
658
- # @return [Array<Float>]
659
- attr_accessor :bounds
660
-
661
- def initialize(**args)
662
- update!(**args)
663
- end
664
-
665
- # Update properties of this object
666
- def update!(**args)
667
- @bounds = args[:bounds] if args.key?(:bounds)
668
- end
669
- end
670
-
671
936
  # A time interval extending just after a start time through an end time. If the
672
937
  # start time is the same as the end time, then the interval represents a single
673
938
  # point in time.
@@ -696,191 +961,53 @@ module Google
696
961
  end
697
962
  end
698
963
 
699
- # Specify a sequence of buckets that have a width that is proportional to the
700
- # value of the lower bound. Each bucket represents a constant relative
701
- # uncertainty on a specific value in the bucket.Defines num_finite_buckets + 2 (=
702
- # N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1):
703
- # scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor
704
- # ^ (i - 1)).
705
- class Exponential
706
- include Google::Apis::Core::Hashable
707
-
708
- # Must be greater than 0.
709
- # Corresponds to the JSON property `numFiniteBuckets`
710
- # @return [Fixnum]
711
- attr_accessor :num_finite_buckets
712
-
713
- # Must be greater than 1.
714
- # Corresponds to the JSON property `growthFactor`
715
- # @return [Float]
716
- attr_accessor :growth_factor
717
-
718
- # Must be greater than 0.
719
- # Corresponds to the JSON property `scale`
720
- # @return [Float]
721
- attr_accessor :scale
722
-
723
- def initialize(**args)
724
- update!(**args)
725
- end
726
-
727
- # Update properties of this object
728
- def update!(**args)
729
- @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
730
- @growth_factor = args[:growth_factor] if args.key?(:growth_factor)
731
- @scale = args[:scale] if args.key?(:scale)
732
- end
733
- end
734
-
735
- # A single data point in a time series.
736
- class Point
737
- include Google::Apis::Core::Hashable
738
-
739
- # A time interval extending just after a start time through an end time. If the
740
- # start time is the same as the end time, then the interval represents a single
741
- # point in time.
742
- # Corresponds to the JSON property `interval`
743
- # @return [Google::Apis::MonitoringV3::TimeInterval]
744
- attr_accessor :interval
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
- def initialize(**args)
752
- update!(**args)
753
- end
754
-
755
- # Update properties of this object
756
- def update!(**args)
757
- @interval = args[:interval] if args.key?(:interval)
758
- @value = args[:value] if args.key?(:value)
759
- end
760
- end
761
-
762
- # A single field of a message type.
763
- class Field
764
- include Google::Apis::Core::Hashable
765
-
766
- # The field type URL, without the scheme, for message or enumeration types.
767
- # Example: "type.googleapis.com/google.protobuf.Timestamp".
768
- # Corresponds to the JSON property `typeUrl`
769
- # @return [String]
770
- attr_accessor :type_url
771
-
772
- # The field number.
773
- # Corresponds to the JSON property `number`
774
- # @return [Fixnum]
775
- attr_accessor :number
776
-
777
- # The field type.
778
- # Corresponds to the JSON property `kind`
779
- # @return [String]
780
- attr_accessor :kind
781
-
782
- # The field JSON name.
783
- # Corresponds to the JSON property `jsonName`
784
- # @return [String]
785
- attr_accessor :json_name
786
-
787
- # The protocol buffer options.
788
- # Corresponds to the JSON property `options`
789
- # @return [Array<Google::Apis::MonitoringV3::Option>]
790
- attr_accessor :options
791
-
792
- # The index of the field type in Type.oneofs, for message or enumeration types.
793
- # The first type has index 1; zero means the type is not in the list.
794
- # Corresponds to the JSON property `oneofIndex`
795
- # @return [Fixnum]
796
- attr_accessor :oneof_index
797
-
798
- # The field cardinality.
799
- # Corresponds to the JSON property `cardinality`
800
- # @return [String]
801
- attr_accessor :cardinality
802
-
803
- # Whether to use alternative packed wire representation.
804
- # Corresponds to the JSON property `packed`
805
- # @return [Boolean]
806
- attr_accessor :packed
807
- alias_method :packed?, :packed
808
-
809
- # The string value of the default value of this field. Proto2 syntax only.
810
- # Corresponds to the JSON property `defaultValue`
811
- # @return [String]
812
- attr_accessor :default_value
813
-
814
- # The field name.
815
- # Corresponds to the JSON property `name`
816
- # @return [String]
817
- attr_accessor :name
818
-
819
- def initialize(**args)
820
- update!(**args)
821
- end
822
-
823
- # Update properties of this object
824
- def update!(**args)
825
- @type_url = args[:type_url] if args.key?(:type_url)
826
- @number = args[:number] if args.key?(:number)
827
- @kind = args[:kind] if args.key?(:kind)
828
- @json_name = args[:json_name] if args.key?(:json_name)
829
- @options = args[:options] if args.key?(:options)
830
- @oneof_index = args[:oneof_index] if args.key?(:oneof_index)
831
- @cardinality = args[:cardinality] if args.key?(:cardinality)
832
- @packed = args[:packed] if args.key?(:packed)
833
- @default_value = args[:default_value] if args.key?(:default_value)
834
- @name = args[:name] if args.key?(:name)
835
- end
836
- end
837
-
838
- # A specific metric, identified by specifying values for all of the labels of a
839
- # MetricDescriptor.
840
- class Metric
964
+ # Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (=
965
+ # N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1):
966
+ # boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at
967
+ # least one element. If bounds has only one element, then there are no finite
968
+ # buckets, and that single element is the common boundary of the overflow and
969
+ # underflow buckets.
970
+ class Explicit
841
971
  include Google::Apis::Core::Hashable
842
972
 
843
- # An existing metric type, see google.api.MetricDescriptor. For example, custom.
844
- # googleapis.com/invoice/paid/amount.
845
- # Corresponds to the JSON property `type`
846
- # @return [String]
847
- attr_accessor :type
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
-
973
+ # The values must be monotonically increasing.
974
+ # Corresponds to the JSON property `bounds`
975
+ # @return [Array<Float>]
976
+ attr_accessor :bounds
977
+
855
978
  def initialize(**args)
856
979
  update!(**args)
857
980
  end
858
981
 
859
982
  # Update properties of this object
860
983
  def update!(**args)
861
- @type = args[:type] if args.key?(:type)
862
- @labels = args[:labels] if args.key?(:labels)
984
+ @bounds = args[:bounds] if args.key?(:bounds)
863
985
  end
864
986
  end
865
987
 
866
- # A description of a label.
867
- class LabelDescriptor
988
+ # Specifies an exponential sequence of buckets that have a width that is
989
+ # proportional to the value of the lower bound. Each bucket represents a
990
+ # constant relative uncertainty on a specific value in the bucket.There are
991
+ # num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:
992
+ # Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i <
993
+ # N): scale * (growth_factor ^ (i - 1)).
994
+ class Exponential
868
995
  include Google::Apis::Core::Hashable
869
996
 
870
- # A human-readable description for the label.
871
- # Corresponds to the JSON property `description`
872
- # @return [String]
873
- attr_accessor :description
997
+ # Must be greater than 0.
998
+ # Corresponds to the JSON property `scale`
999
+ # @return [Float]
1000
+ attr_accessor :scale
874
1001
 
875
- # The type of data that can be assigned to the label.
876
- # Corresponds to the JSON property `valueType`
877
- # @return [String]
878
- attr_accessor :value_type
1002
+ # Must be greater than 0.
1003
+ # Corresponds to the JSON property `numFiniteBuckets`
1004
+ # @return [Fixnum]
1005
+ attr_accessor :num_finite_buckets
879
1006
 
880
- # The label key.
881
- # Corresponds to the JSON property `key`
882
- # @return [String]
883
- attr_accessor :key
1007
+ # Must be greater than 1.
1008
+ # Corresponds to the JSON property `growthFactor`
1009
+ # @return [Float]
1010
+ attr_accessor :growth_factor
884
1011
 
885
1012
  def initialize(**args)
886
1013
  update!(**args)
@@ -888,27 +1015,27 @@ module Google
888
1015
 
889
1016
  # Update properties of this object
890
1017
  def update!(**args)
891
- @description = args[:description] if args.key?(:description)
892
- @value_type = args[:value_type] if args.key?(:value_type)
893
- @key = args[:key] if args.key?(:key)
1018
+ @scale = args[:scale] if args.key?(:scale)
1019
+ @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
1020
+ @growth_factor = args[:growth_factor] if args.key?(:growth_factor)
894
1021
  end
895
1022
  end
896
1023
 
897
- # The ListTimeSeries response.
898
- class ListTimeSeriesResponse
1024
+ # A single data point in a time series.
1025
+ class Point
899
1026
  include Google::Apis::Core::Hashable
900
1027
 
901
- # One or more time series that match the filter included in the request.
902
- # Corresponds to the JSON property `timeSeries`
903
- # @return [Array<Google::Apis::MonitoringV3::TimeSeries>]
904
- attr_accessor :time_series
1028
+ # A time interval extending just after a start time through an end time. If the
1029
+ # start time is the same as the end time, then the interval represents a single
1030
+ # point in time.
1031
+ # Corresponds to the JSON property `interval`
1032
+ # @return [Google::Apis::MonitoringV3::TimeInterval]
1033
+ attr_accessor :interval
905
1034
 
906
- # If there are more results than have been returned, then this field is set to a
907
- # non-empty value. To see the additional results, use that value as pageToken in
908
- # the next call to this method.
909
- # Corresponds to the JSON property `nextPageToken`
910
- # @return [String]
911
- attr_accessor :next_page_token
1035
+ # A single strongly-typed value.
1036
+ # Corresponds to the JSON property `value`
1037
+ # @return [Google::Apis::MonitoringV3::TypedValue]
1038
+ attr_accessor :value
912
1039
 
913
1040
  def initialize(**args)
914
1041
  update!(**args)
@@ -916,45 +1043,27 @@ module Google
916
1043
 
917
1044
  # Update properties of this object
918
1045
  def update!(**args)
919
- @time_series = args[:time_series] if args.key?(:time_series)
920
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1046
+ @interval = args[:interval] if args.key?(:interval)
1047
+ @value = args[:value] if args.key?(:value)
921
1048
  end
922
1049
  end
923
1050
 
924
- # A protocol buffer message type.
925
- class Type
1051
+ # A specific metric, identified by specifying values for all of the labels of a
1052
+ # MetricDescriptor.
1053
+ class Metric
926
1054
  include Google::Apis::Core::Hashable
927
1055
 
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
1056
+ # The set of label values that uniquely identify this metric. All labels listed
1057
+ # in the MetricDescriptor must be assigned values.
1058
+ # Corresponds to the JSON property `labels`
1059
+ # @return [Hash<String,String>]
1060
+ attr_accessor :labels
953
1061
 
954
- # The fully qualified message name.
955
- # Corresponds to the JSON property `name`
1062
+ # An existing metric type, see google.api.MetricDescriptor. For example, custom.
1063
+ # googleapis.com/invoice/paid/amount.
1064
+ # Corresponds to the JSON property `type`
956
1065
  # @return [String]
957
- attr_accessor :name
1066
+ attr_accessor :type
958
1067
 
959
1068
  def initialize(**args)
960
1069
  update!(**args)
@@ -962,131 +1071,67 @@ module Google
962
1071
 
963
1072
  # Update properties of this object
964
1073
  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)
1074
+ @labels = args[:labels] if args.key?(:labels)
1075
+ @type = args[:type] if args.key?(:type)
971
1076
  end
972
1077
  end
973
1078
 
974
- # The description of a dynamic collection of monitored resources. Each group has
975
- # a filter that is matched against monitored resources and their associated
976
- # metadata. If a group's filter matches an available monitored resource, then
977
- # that resource is a member of that group. Groups can contain any number of
978
- # monitored resources, and each monitored resource can be a member of any number
979
- # of groups.Groups can be nested in parent-child hierarchies. The parentName
980
- # field identifies an optional parent for each group. If a group has a parent,
981
- # then the only monitored resources available to be matched by the group's
982
- # filter are the resources contained in the parent group. In other words, a
983
- # group contains the monitored resources that match its filter and the filters
984
- # of all the group's ancestors. A group without a parent can contain any
985
- # monitored resource.For example, consider an infrastructure running a set of
986
- # instances with two user-defined tags: "environment" and "role". A parent group
987
- # has a filter, environment="production". A child of that parent group has a
988
- # filter, role="transcoder". The parent group contains all instances in the
989
- # production environment, regardless of their roles. The child group contains
990
- # instances that have the transcoder role and are in the production environment.
991
- # The monitored resources contained in a group can change at any moment,
992
- # depending on what resources exist and what filters are associated with the
993
- # group and its ancestors.
994
- class Group
1079
+ # A single field of a message type.
1080
+ class Field
995
1081
  include Google::Apis::Core::Hashable
996
1082
 
997
- # A user-assigned name for this group, used only for display purposes.
998
- # Corresponds to the JSON property `displayName`
1083
+ # The index of the field type in Type.oneofs, for message or enumeration types.
1084
+ # The first type has index 1; zero means the type is not in the list.
1085
+ # Corresponds to the JSON property `oneofIndex`
1086
+ # @return [Fixnum]
1087
+ attr_accessor :oneof_index
1088
+
1089
+ # The field cardinality.
1090
+ # Corresponds to the JSON property `cardinality`
999
1091
  # @return [String]
1000
- attr_accessor :display_name
1092
+ attr_accessor :cardinality
1001
1093
 
1002
- # If true, the members of this group are considered to be a cluster. The system
1003
- # can perform additional analysis on groups that are clusters.
1004
- # Corresponds to the JSON property `isCluster`
1094
+ # Whether to use alternative packed wire representation.
1095
+ # Corresponds to the JSON property `packed`
1005
1096
  # @return [Boolean]
1006
- attr_accessor :is_cluster
1007
- alias_method :is_cluster?, :is_cluster
1097
+ attr_accessor :packed
1098
+ alias_method :packed?, :packed
1008
1099
 
1009
- # The filter used to determine which monitored resources belong to this group.
1010
- # Corresponds to the JSON property `filter`
1100
+ # The string value of the default value of this field. Proto2 syntax only.
1101
+ # Corresponds to the JSON property `defaultValue`
1011
1102
  # @return [String]
1012
- attr_accessor :filter
1103
+ attr_accessor :default_value
1013
1104
 
1014
- # Output only. The name of this group. The format is "projects/`
1015
- # project_id_or_number`/groups/`group_id`". When creating a group, this field is
1016
- # ignored and a new name is created consisting of the project specified in the
1017
- # call to CreateGroup and a unique `group_id` that is generated automatically.
1105
+ # The field name.
1018
1106
  # Corresponds to the JSON property `name`
1019
1107
  # @return [String]
1020
1108
  attr_accessor :name
1021
1109
 
1022
- # The name of the group's parent, if it has one. The format is "projects/`
1023
- # project_id_or_number`/groups/`group_id`". For groups with no parent,
1024
- # parentName is the empty string, "".
1025
- # Corresponds to the JSON property `parentName`
1110
+ # The field type URL, without the scheme, for message or enumeration types.
1111
+ # Example: "type.googleapis.com/google.protobuf.Timestamp".
1112
+ # Corresponds to the JSON property `typeUrl`
1026
1113
  # @return [String]
1027
- attr_accessor :parent_name
1028
-
1029
- def initialize(**args)
1030
- update!(**args)
1031
- end
1032
-
1033
- # Update properties of this object
1034
- def update!(**args)
1035
- @display_name = args[:display_name] if args.key?(:display_name)
1036
- @is_cluster = args[:is_cluster] if args.key?(:is_cluster)
1037
- @filter = args[:filter] if args.key?(:filter)
1038
- @name = args[:name] if args.key?(:name)
1039
- @parent_name = args[:parent_name] if args.key?(:parent_name)
1040
- end
1041
- end
1114
+ attr_accessor :type_url
1042
1115
 
1043
- # A Distribution may optionally contain a histogram of the values in the
1044
- # population. The histogram is given in bucket_counts as counts of values that
1045
- # fall into one of a sequence of non-overlapping buckets. The sequence of
1046
- # buckets is described by bucket_options.A bucket specifies an inclusive lower
1047
- # bound and exclusive upper bound for the values that are counted for that
1048
- # bucket. The upper bound of a bucket is strictly greater than the lower bound.
1049
- # The sequence of N buckets for a Distribution consists of an underflow bucket (
1050
- # number 0), zero or more finite buckets (number 1 through N - 2) and an
1051
- # overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
1052
- # bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
1053
- # span the whole range of finite values: lower bound of the underflow bucket is -
1054
- # infinity and the upper bound of the overflow bucket is +infinity. The finite
1055
- # buckets are so-called because both bounds are finite.BucketOptions describes
1056
- # bucket boundaries in one of three ways. Two describe the boundaries by giving
1057
- # parameters for a formula to generate boundaries and one gives the bucket
1058
- # boundaries explicitly.If bucket_options is not given, then no bucket_counts
1059
- # may be given.
1060
- class BucketOptions
1061
- include Google::Apis::Core::Hashable
1116
+ # The field number.
1117
+ # Corresponds to the JSON property `number`
1118
+ # @return [Fixnum]
1119
+ attr_accessor :number
1062
1120
 
1063
- # Specify a sequence of buckets that have a width that is proportional to the
1064
- # value of the lower bound. Each bucket represents a constant relative
1065
- # uncertainty on a specific value in the bucket.Defines num_finite_buckets + 2 (=
1066
- # N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1):
1067
- # scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor
1068
- # ^ (i - 1)).
1069
- # Corresponds to the JSON property `exponentialBuckets`
1070
- # @return [Google::Apis::MonitoringV3::Exponential]
1071
- attr_accessor :exponential_buckets
1121
+ # The field JSON name.
1122
+ # Corresponds to the JSON property `jsonName`
1123
+ # @return [String]
1124
+ attr_accessor :json_name
1072
1125
 
1073
- # Specify a sequence of buckets that all have the same width (except overflow
1074
- # and underflow). Each bucket represents a constant absolute uncertainty on the
1075
- # specific value in the bucket.Defines num_finite_buckets + 2 (= N) buckets with
1076
- # these boundaries for bucket i:Upper bound (0 <= i < N-1): offset + (width * i).
1077
- # Lower bound (1 <= i < N): offset + (width * (i - 1)).
1078
- # Corresponds to the JSON property `linearBuckets`
1079
- # @return [Google::Apis::MonitoringV3::Linear]
1080
- attr_accessor :linear_buckets
1126
+ # The field type.
1127
+ # Corresponds to the JSON property `kind`
1128
+ # @return [String]
1129
+ attr_accessor :kind
1081
1130
 
1082
- # A set of buckets with arbitrary widths.Defines size(bounds) + 1 (= N) buckets
1083
- # with these boundaries for bucket i:Upper bound (0 <= i < N-1): boundsi Lower
1084
- # bound (1 <= i < N); boundsi - 1There must be at least one element in bounds.
1085
- # If bounds has only one element, there are no finite buckets, and that single
1086
- # element is the common boundary of the overflow and underflow buckets.
1087
- # Corresponds to the JSON property `explicitBuckets`
1088
- # @return [Google::Apis::MonitoringV3::Explicit]
1089
- attr_accessor :explicit_buckets
1131
+ # The protocol buffer options.
1132
+ # Corresponds to the JSON property `options`
1133
+ # @return [Array<Google::Apis::MonitoringV3::Option>]
1134
+ attr_accessor :options
1090
1135
 
1091
1136
  def initialize(**args)
1092
1137
  update!(**args)
@@ -1094,31 +1139,34 @@ module Google
1094
1139
 
1095
1140
  # Update properties of this object
1096
1141
  def update!(**args)
1097
- @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
1098
- @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
1099
- @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
1142
+ @oneof_index = args[:oneof_index] if args.key?(:oneof_index)
1143
+ @cardinality = args[:cardinality] if args.key?(:cardinality)
1144
+ @packed = args[:packed] if args.key?(:packed)
1145
+ @default_value = args[:default_value] if args.key?(:default_value)
1146
+ @name = args[:name] if args.key?(:name)
1147
+ @type_url = args[:type_url] if args.key?(:type_url)
1148
+ @number = args[:number] if args.key?(:number)
1149
+ @json_name = args[:json_name] if args.key?(:json_name)
1150
+ @kind = args[:kind] if args.key?(:kind)
1151
+ @options = args[:options] if args.key?(:options)
1100
1152
  end
1101
1153
  end
1102
1154
 
1103
- # A single data point from a collectd-based plugin.
1104
- class CollectdValue
1155
+ # The ListTimeSeries response.
1156
+ class ListTimeSeriesResponse
1105
1157
  include Google::Apis::Core::Hashable
1106
1158
 
1107
- # The type of measurement.
1108
- # Corresponds to the JSON property `dataSourceType`
1109
- # @return [String]
1110
- attr_accessor :data_source_type
1111
-
1112
- # The data source for the collectd value. For example there are two data sources
1113
- # for network measurements: "rx" and "tx".
1114
- # Corresponds to the JSON property `dataSourceName`
1159
+ # If there are more results than have been returned, then this field is set to a
1160
+ # non-empty value. To see the additional results, use that value as pageToken in
1161
+ # the next call to this method.
1162
+ # Corresponds to the JSON property `nextPageToken`
1115
1163
  # @return [String]
1116
- attr_accessor :data_source_name
1164
+ attr_accessor :next_page_token
1117
1165
 
1118
- # A single strongly-typed value.
1119
- # Corresponds to the JSON property `value`
1120
- # @return [Google::Apis::MonitoringV3::TypedValue]
1121
- attr_accessor :value
1166
+ # One or more time series that match the filter included in the request.
1167
+ # Corresponds to the JSON property `timeSeries`
1168
+ # @return [Array<Google::Apis::MonitoringV3::TimeSeries>]
1169
+ attr_accessor :time_series
1122
1170
 
1123
1171
  def initialize(**args)
1124
1172
  update!(**args)
@@ -1126,22 +1174,29 @@ module Google
1126
1174
 
1127
1175
  # Update properties of this object
1128
1176
  def update!(**args)
1129
- @data_source_type = args[:data_source_type] if args.key?(:data_source_type)
1130
- @data_source_name = args[:data_source_name] if args.key?(:data_source_name)
1131
- @value = args[:value] if args.key?(:value)
1177
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1178
+ @time_series = args[:time_series] if args.key?(:time_series)
1132
1179
  end
1133
1180
  end
1134
1181
 
1135
- # SourceContext represents information about the source of a protobuf element,
1136
- # like the file in which it is defined.
1137
- class SourceContext
1182
+ # A description of a label.
1183
+ class LabelDescriptor
1138
1184
  include Google::Apis::Core::Hashable
1139
1185
 
1140
- # The path-qualified name of the .proto file that contained the associated
1141
- # protobuf element. For example: "google/protobuf/source_context.proto".
1142
- # Corresponds to the JSON property `fileName`
1186
+ # The label key.
1187
+ # Corresponds to the JSON property `key`
1143
1188
  # @return [String]
1144
- attr_accessor :file_name
1189
+ attr_accessor :key
1190
+
1191
+ # A human-readable description for the label.
1192
+ # Corresponds to the JSON property `description`
1193
+ # @return [String]
1194
+ attr_accessor :description
1195
+
1196
+ # The type of data that can be assigned to the label.
1197
+ # Corresponds to the JSON property `valueType`
1198
+ # @return [String]
1199
+ attr_accessor :value_type
1145
1200
 
1146
1201
  def initialize(**args)
1147
1202
  update!(**args)
@@ -1149,118 +1204,66 @@ module Google
1149
1204
 
1150
1205
  # Update properties of this object
1151
1206
  def update!(**args)
1152
- @file_name = args[:file_name] if args.key?(:file_name)
1207
+ @key = args[:key] if args.key?(:key)
1208
+ @description = args[:description] if args.key?(:description)
1209
+ @value_type = args[:value_type] if args.key?(:value_type)
1153
1210
  end
1154
1211
  end
1155
1212
 
1156
- # Defines a metric type and its schema. Once a metric descriptor is created,
1157
- # deleting or altering it stops data collection and makes the metric type's
1158
- # existing data unusable.
1159
- class MetricDescriptor
1213
+ # The description of a dynamic collection of monitored resources. Each group has
1214
+ # a filter that is matched against monitored resources and their associated
1215
+ # metadata. If a group's filter matches an available monitored resource, then
1216
+ # that resource is a member of that group. Groups can contain any number of
1217
+ # monitored resources, and each monitored resource can be a member of any number
1218
+ # of groups.Groups can be nested in parent-child hierarchies. The parentName
1219
+ # field identifies an optional parent for each group. If a group has a parent,
1220
+ # then the only monitored resources available to be matched by the group's
1221
+ # filter are the resources contained in the parent group. In other words, a
1222
+ # group contains the monitored resources that match its filter and the filters
1223
+ # of all the group's ancestors. A group without a parent can contain any
1224
+ # monitored resource.For example, consider an infrastructure running a set of
1225
+ # instances with two user-defined tags: "environment" and "role". A parent group
1226
+ # has a filter, environment="production". A child of that parent group has a
1227
+ # filter, role="transcoder". The parent group contains all instances in the
1228
+ # production environment, regardless of their roles. The child group contains
1229
+ # instances that have the transcoder role and are in the production environment.
1230
+ # The monitored resources contained in a group can change at any moment,
1231
+ # depending on what resources exist and what filters are associated with the
1232
+ # group and its ancestors.
1233
+ class Group
1160
1234
  include Google::Apis::Core::Hashable
1161
1235
 
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
1236
+ # The filter used to determine which monitored resources belong to this group.
1237
+ # Corresponds to the JSON property `filter`
1238
+ # @return [String]
1239
+ attr_accessor :filter
1170
1240
 
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"
1241
+ # Output only. The name of this group. The format is "projects/`
1242
+ # project_id_or_number`/groups/`group_id`". When creating a group, this field is
1243
+ # ignored and a new name is created consisting of the project specified in the
1244
+ # call to CreateGroup and a unique `group_id` that is generated automatically.
1179
1245
  # Corresponds to the JSON property `name`
1180
1246
  # @return [String]
1181
1247
  attr_accessor :name
1182
1248
 
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
-
1198
- # Whether the metric records instantaneous values, changes to a value, etc. Some
1199
- # combinations of metric_kind and value_type might not be supported.
1200
- # Corresponds to the JSON property `metricKind`
1201
- # @return [String]
1202
- attr_accessor :metric_kind
1203
-
1204
- # A detailed description of the metric, which can be used in documentation.
1205
- # Corresponds to the JSON property `description`
1249
+ # The name of the group's parent, if it has one. The format is "projects/`
1250
+ # project_id_or_number`/groups/`group_id`". For groups with no parent,
1251
+ # parentName is the empty string, "".
1252
+ # Corresponds to the JSON property `parentName`
1206
1253
  # @return [String]
1207
- attr_accessor :description
1254
+ attr_accessor :parent_name
1208
1255
 
1209
- # A concise name for the metric, which can be displayed in user interfaces. Use
1210
- # sentence case without an ending period, for example "Request count".
1256
+ # A user-assigned name for this group, used only for display purposes.
1211
1257
  # Corresponds to the JSON property `displayName`
1212
1258
  # @return [String]
1213
1259
  attr_accessor :display_name
1214
1260
 
1215
- # The unit in which the metric value is reported. It is only applicable if the
1216
- # value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset
1217
- # of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html)
1218
- # standard:Basic units (UNIT)
1219
- # bit bit
1220
- # By byte
1221
- # s second
1222
- # min minute
1223
- # h hour
1224
- # d dayPrefixes (PREFIX)
1225
- # k kilo (10**3)
1226
- # M mega (10**6)
1227
- # G giga (10**9)
1228
- # T tera (10**12)
1229
- # P peta (10**15)
1230
- # E exa (10**18)
1231
- # Z zetta (10**21)
1232
- # Y yotta (10**24)
1233
- # m milli (10**-3)
1234
- # u micro (10**-6)
1235
- # n nano (10**-9)
1236
- # p pico (10**-12)
1237
- # f femto (10**-15)
1238
- # a atto (10**-18)
1239
- # z zepto (10**-21)
1240
- # y yocto (10**-24)
1241
- # Ki kibi (2**10)
1242
- # Mi mebi (2**20)
1243
- # Gi gibi (2**30)
1244
- # Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such as 1/
1245
- # s.The grammar also includes these connectors:
1246
- # / division (as an infix operator, e.g. 1/s).
1247
- # . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is
1248
- # as follows:
1249
- # Expression = Component ` "." Component ` ` "/" Component ` ;
1250
- # Component = [ PREFIX ] UNIT [ Annotation ]
1251
- # | Annotation
1252
- # | "1"
1253
- # ;
1254
- # Annotation = "`" NAME "`" ;
1255
- # Notes:
1256
- # Annotation is just a comment if it follows a UNIT and is equivalent to 1 if
1257
- # it is used alone. For examples, `requests`/s == 1/s, By`transmitted`/s == By/
1258
- # s.
1259
- # NAME is a sequence of non-blank printable ASCII characters not containing '`'
1260
- # or '`'.
1261
- # Corresponds to the JSON property `unit`
1262
- # @return [String]
1263
- attr_accessor :unit
1261
+ # If true, the members of this group are considered to be a cluster. The system
1262
+ # can perform additional analysis on groups that are clusters.
1263
+ # Corresponds to the JSON property `isCluster`
1264
+ # @return [Boolean]
1265
+ attr_accessor :is_cluster
1266
+ alias_method :is_cluster?, :is_cluster
1264
1267
 
1265
1268
  def initialize(**args)
1266
1269
  update!(**args)
@@ -1268,57 +1271,48 @@ module Google
1268
1271
 
1269
1272
  # Update properties of this object
1270
1273
  def update!(**args)
1271
- @labels = args[:labels] if args.key?(:labels)
1274
+ @filter = args[:filter] if args.key?(:filter)
1272
1275
  @name = args[:name] if args.key?(:name)
1273
- @type = args[:type] if args.key?(:type)
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)
1276
+ @parent_name = args[:parent_name] if args.key?(:parent_name)
1277
1277
  @display_name = args[:display_name] if args.key?(:display_name)
1278
- @unit = args[:unit] if args.key?(:unit)
1278
+ @is_cluster = args[:is_cluster] if args.key?(:is_cluster)
1279
1279
  end
1280
1280
  end
1281
1281
 
1282
- # The range of the population values.
1283
- class Range
1282
+ # A protocol buffer message type.
1283
+ class Type
1284
1284
  include Google::Apis::Core::Hashable
1285
1285
 
1286
- # The minimum of the population values.
1287
- # Corresponds to the JSON property `min`
1288
- # @return [Float]
1289
- attr_accessor :min
1290
-
1291
- # The maximum of the population values.
1292
- # Corresponds to the JSON property `max`
1293
- # @return [Float]
1294
- attr_accessor :max
1295
-
1296
- def initialize(**args)
1297
- update!(**args)
1298
- end
1286
+ # The list of fields.
1287
+ # Corresponds to the JSON property `fields`
1288
+ # @return [Array<Google::Apis::MonitoringV3::Field>]
1289
+ attr_accessor :fields
1299
1290
 
1300
- # Update properties of this object
1301
- def update!(**args)
1302
- @min = args[:min] if args.key?(:min)
1303
- @max = args[:max] if args.key?(:max)
1304
- end
1305
- end
1291
+ # The fully qualified message name.
1292
+ # Corresponds to the JSON property `name`
1293
+ # @return [String]
1294
+ attr_accessor :name
1306
1295
 
1307
- # The ListGroups response.
1308
- class ListGroupsResponse
1309
- include Google::Apis::Core::Hashable
1296
+ # The list of types appearing in oneof definitions in this type.
1297
+ # Corresponds to the JSON property `oneofs`
1298
+ # @return [Array<String>]
1299
+ attr_accessor :oneofs
1310
1300
 
1311
- # If there are more results than have been returned, then this field is set to a
1312
- # non-empty value. To see the additional results, use that value as pageToken in
1313
- # the next call to this method.
1314
- # Corresponds to the JSON property `nextPageToken`
1301
+ # The source syntax.
1302
+ # Corresponds to the JSON property `syntax`
1315
1303
  # @return [String]
1316
- attr_accessor :next_page_token
1304
+ attr_accessor :syntax
1317
1305
 
1318
- # The groups that match the specified filters.
1319
- # Corresponds to the JSON property `group`
1320
- # @return [Array<Google::Apis::MonitoringV3::Group>]
1321
- attr_accessor :group
1306
+ # SourceContext represents information about the source of a protobuf element,
1307
+ # like the file in which it is defined.
1308
+ # Corresponds to the JSON property `sourceContext`
1309
+ # @return [Google::Apis::MonitoringV3::SourceContext]
1310
+ attr_accessor :source_context
1311
+
1312
+ # The protocol buffer options.
1313
+ # Corresponds to the JSON property `options`
1314
+ # @return [Array<Google::Apis::MonitoringV3::Option>]
1315
+ attr_accessor :options
1322
1316
 
1323
1317
  def initialize(**args)
1324
1318
  update!(**args)
@@ -1326,8 +1320,12 @@ module Google
1326
1320
 
1327
1321
  # Update properties of this object
1328
1322
  def update!(**args)
1329
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1330
- @group = args[:group] if args.key?(:group)
1323
+ @fields = args[:fields] if args.key?(:fields)
1324
+ @name = args[:name] if args.key?(:name)
1325
+ @oneofs = args[:oneofs] if args.key?(:oneofs)
1326
+ @syntax = args[:syntax] if args.key?(:syntax)
1327
+ @source_context = args[:source_context] if args.key?(:source_context)
1328
+ @options = args[:options] if args.key?(:options)
1331
1329
  end
1332
1330
  end
1333
1331
  end