google-api-client 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  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/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -22,13 +22,13 @@ module Google
22
22
  module Apis
23
23
  module MonitoringV3
24
24
 
25
- class ListGroupMembersResponse
25
+ class CreateCollectdTimeSeriesRequest
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class CreateCollectdTimeSeriesRequest
31
+ class ListGroupMembersResponse
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
@@ -154,13 +154,13 @@ module Google
154
154
  include Google::Apis::Core::JsonObjectSupport
155
155
  end
156
156
 
157
- class Group
157
+ class Type
158
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
159
 
160
160
  include Google::Apis::Core::JsonObjectSupport
161
161
  end
162
162
 
163
- class Type
163
+ class Group
164
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
165
 
166
166
  include Google::Apis::Core::JsonObjectSupport
@@ -202,24 +202,24 @@ module Google
202
202
  include Google::Apis::Core::JsonObjectSupport
203
203
  end
204
204
 
205
- class ListGroupMembersResponse
205
+ class CreateCollectdTimeSeriesRequest
206
206
  # @private
207
207
  class Representation < Google::Apis::Core::JsonRepresentation
208
- collection :members, as: 'members', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation
208
+ property :resource, as: 'resource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation
209
209
 
210
- property :next_page_token, as: 'nextPageToken'
211
- property :total_size, as: 'totalSize'
210
+ collection :collectd_payloads, as: 'collectdPayloads', class: Google::Apis::MonitoringV3::CollectdPayload, decorator: Google::Apis::MonitoringV3::CollectdPayload::Representation
211
+
212
+ property :collectd_version, as: 'collectdVersion'
212
213
  end
213
214
  end
214
215
 
215
- class CreateCollectdTimeSeriesRequest
216
+ class ListGroupMembersResponse
216
217
  # @private
217
218
  class Representation < Google::Apis::Core::JsonRepresentation
218
- property :collectd_version, as: 'collectdVersion'
219
- property :resource, as: 'resource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation
220
-
221
- collection :collectd_payloads, as: 'collectdPayloads', class: Google::Apis::MonitoringV3::CollectdPayload, decorator: Google::Apis::MonitoringV3::CollectdPayload::Representation
219
+ collection :members, as: 'members', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation
222
220
 
221
+ property :next_page_token, as: 'nextPageToken'
222
+ property :total_size, as: 'totalSize'
223
223
  end
224
224
  end
225
225
 
@@ -235,7 +235,6 @@ module Google
235
235
  class TimeSeries
236
236
  # @private
237
237
  class Representation < Google::Apis::Core::JsonRepresentation
238
- property :metric_kind, as: 'metricKind'
239
238
  property :metric, as: 'metric', class: Google::Apis::MonitoringV3::Metric, decorator: Google::Apis::MonitoringV3::Metric::Representation
240
239
 
241
240
  collection :points, as: 'points', class: Google::Apis::MonitoringV3::Point, decorator: Google::Apis::MonitoringV3::Point::Representation
@@ -243,6 +242,7 @@ module Google
243
242
  property :value_type, as: 'valueType'
244
243
  property :resource, as: 'resource', class: Google::Apis::MonitoringV3::MonitoredResource, decorator: Google::Apis::MonitoringV3::MonitoredResource::Representation
245
244
 
245
+ property :metric_kind, as: 'metricKind'
246
246
  end
247
247
  end
248
248
 
@@ -288,12 +288,12 @@ module Google
288
288
  class MonitoredResourceDescriptor
289
289
  # @private
290
290
  class Representation < Google::Apis::Core::JsonRepresentation
291
- collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::LabelDescriptor::Representation
292
-
293
- property :name, as: 'name'
294
291
  property :display_name, as: 'displayName'
295
292
  property :description, as: 'description'
296
293
  property :type, as: 'type'
294
+ collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::LabelDescriptor::Representation
295
+
296
+ property :name, as: 'name'
297
297
  end
298
298
  end
299
299
 
@@ -312,16 +312,16 @@ module Google
312
312
  class CollectdPayload
313
313
  # @private
314
314
  class Representation < Google::Apis::Core::JsonRepresentation
315
- collection :values, as: 'values', class: Google::Apis::MonitoringV3::CollectdValue, decorator: Google::Apis::MonitoringV3::CollectdValue::Representation
316
-
317
- property :type_instance, as: 'typeInstance'
318
- property :type, as: 'type'
319
315
  hash :metadata, as: 'metadata', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation
320
316
 
317
+ property :type, as: 'type'
321
318
  property :plugin, as: 'plugin'
322
319
  property :plugin_instance, as: 'pluginInstance'
323
320
  property :end_time, as: 'endTime'
324
321
  property :start_time, as: 'startTime'
322
+ collection :values, as: 'values', class: Google::Apis::MonitoringV3::CollectdValue, decorator: Google::Apis::MonitoringV3::CollectdValue::Representation
323
+
324
+ property :type_instance, as: 'typeInstance'
325
325
  end
326
326
  end
327
327
 
@@ -337,8 +337,8 @@ module Google
337
337
  class Option
338
338
  # @private
339
339
  class Representation < Google::Apis::Core::JsonRepresentation
340
- property :name, as: 'name'
341
340
  hash :value, as: 'value'
341
+ property :name, as: 'name'
342
342
  end
343
343
  end
344
344
 
@@ -366,19 +366,19 @@ module Google
366
366
  class Exponential
367
367
  # @private
368
368
  class Representation < Google::Apis::Core::JsonRepresentation
369
+ property :num_finite_buckets, as: 'numFiniteBuckets'
369
370
  property :growth_factor, as: 'growthFactor'
370
371
  property :scale, as: 'scale'
371
- property :num_finite_buckets, as: 'numFiniteBuckets'
372
372
  end
373
373
  end
374
374
 
375
375
  class Point
376
376
  # @private
377
377
  class Representation < Google::Apis::Core::JsonRepresentation
378
- property :value, as: 'value', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation
379
-
380
378
  property :interval, as: 'interval', class: Google::Apis::MonitoringV3::TimeInterval, decorator: Google::Apis::MonitoringV3::TimeInterval::Representation
381
379
 
380
+ property :value, as: 'value', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation
381
+
382
382
  end
383
383
  end
384
384
 
@@ -387,8 +387,8 @@ module Google
387
387
  class Representation < Google::Apis::Core::JsonRepresentation
388
388
  property :type_url, as: 'typeUrl'
389
389
  property :number, as: 'number'
390
- property :json_name, as: 'jsonName'
391
390
  property :kind, as: 'kind'
391
+ property :json_name, as: 'jsonName'
392
392
  collection :options, as: 'options', class: Google::Apis::MonitoringV3::Option, decorator: Google::Apis::MonitoringV3::Option::Representation
393
393
 
394
394
  property :oneof_index, as: 'oneofIndex'
@@ -402,17 +402,17 @@ module Google
402
402
  class Metric
403
403
  # @private
404
404
  class Representation < Google::Apis::Core::JsonRepresentation
405
- hash :labels, as: 'labels'
406
405
  property :type, as: 'type'
406
+ hash :labels, as: 'labels'
407
407
  end
408
408
  end
409
409
 
410
410
  class LabelDescriptor
411
411
  # @private
412
412
  class Representation < Google::Apis::Core::JsonRepresentation
413
- property :key, as: 'key'
414
413
  property :description, as: 'description'
415
414
  property :value_type, as: 'valueType'
415
+ property :key, as: 'key'
416
416
  end
417
417
  end
418
418
 
@@ -425,20 +425,10 @@ module Google
425
425
  end
426
426
  end
427
427
 
428
- class Group
429
- # @private
430
- class Representation < Google::Apis::Core::JsonRepresentation
431
- property :display_name, as: 'displayName'
432
- property :is_cluster, as: 'isCluster'
433
- property :filter, as: 'filter'
434
- property :name, as: 'name'
435
- property :parent_name, as: 'parentName'
436
- end
437
- end
438
-
439
428
  class Type
440
429
  # @private
441
430
  class Representation < Google::Apis::Core::JsonRepresentation
431
+ collection :oneofs, as: 'oneofs'
442
432
  property :syntax, as: 'syntax'
443
433
  property :source_context, as: 'sourceContext', class: Google::Apis::MonitoringV3::SourceContext, decorator: Google::Apis::MonitoringV3::SourceContext::Representation
444
434
 
@@ -447,7 +437,17 @@ module Google
447
437
  collection :fields, as: 'fields', class: Google::Apis::MonitoringV3::Field, decorator: Google::Apis::MonitoringV3::Field::Representation
448
438
 
449
439
  property :name, as: 'name'
450
- collection :oneofs, as: 'oneofs'
440
+ end
441
+ end
442
+
443
+ class Group
444
+ # @private
445
+ class Representation < Google::Apis::Core::JsonRepresentation
446
+ property :display_name, as: 'displayName'
447
+ property :is_cluster, as: 'isCluster'
448
+ property :filter, as: 'filter'
449
+ property :name, as: 'name'
450
+ property :parent_name, as: 'parentName'
451
451
  end
452
452
  end
453
453
 
@@ -466,10 +466,10 @@ module Google
466
466
  class CollectdValue
467
467
  # @private
468
468
  class Representation < Google::Apis::Core::JsonRepresentation
469
+ property :data_source_type, as: 'dataSourceType'
469
470
  property :data_source_name, as: 'dataSourceName'
470
471
  property :value, as: 'value', class: Google::Apis::MonitoringV3::TypedValue, decorator: Google::Apis::MonitoringV3::TypedValue::Representation
471
472
 
472
- property :data_source_type, as: 'dataSourceType'
473
473
  end
474
474
  end
475
475
 
@@ -483,15 +483,15 @@ module Google
483
483
  class MetricDescriptor
484
484
  # @private
485
485
  class Representation < Google::Apis::Core::JsonRepresentation
486
- property :metric_kind, as: 'metricKind'
487
- property :display_name, as: 'displayName'
488
- property :description, as: 'description'
489
- property :unit, as: 'unit'
490
486
  collection :labels, as: 'labels', class: Google::Apis::MonitoringV3::LabelDescriptor, decorator: Google::Apis::MonitoringV3::LabelDescriptor::Representation
491
487
 
492
488
  property :name, as: 'name'
493
489
  property :type, as: 'type'
494
490
  property :value_type, as: 'valueType'
491
+ property :metric_kind, as: 'metricKind'
492
+ property :description, as: 'description'
493
+ property :display_name, as: 'displayName'
494
+ property :unit, as: 'unit'
495
495
  end
496
496
  end
497
497
 
@@ -34,77 +34,25 @@ module Google
34
34
  #
35
35
  # @see https://cloud.google.com/monitoring/api/
36
36
  class MonitoringService < Google::Apis::Core::BaseService
37
- # @return [String]
38
- # Available to use for quota purposes for server-side applications. Can be any
39
- # arbitrary string assigned to a user, but should not exceed 40 characters.
40
- attr_accessor :quota_user
41
-
42
37
  # @return [String]
43
38
  # API key. Your API key identifies your project and provides you with API access,
44
39
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
45
40
  attr_accessor :key
46
41
 
42
+ # @return [String]
43
+ # Available to use for quota purposes for server-side applications. Can be any
44
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
45
+ attr_accessor :quota_user
46
+
47
47
  def initialize
48
48
  super('https://monitoring.googleapis.com/', '')
49
49
  end
50
50
 
51
- # Stackdriver Monitoring Agent only: Creates a new time series.<aside class="
52
- # caution">This method is only for use by the Stackdriver Monitoring Agent. Use
53
- # projects.timeSeries.create instead.</aside>
54
- # @param [String] name
55
- # The project in which to create the time series. The format is "projects/
56
- # PROJECT_ID_OR_NUMBER".
57
- # @param [Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest] create_collectd_time_series_request_object
58
- # @param [String] quota_user
59
- # Available to use for quota purposes for server-side applications. Can be any
60
- # 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
- # @param [Google::Apis::RequestOptions] options
64
- # Request-specific options
65
- #
66
- # @yield [result, err] Result & error if block supplied
67
- # @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
68
- # @yieldparam err [StandardError] error object if request failed
69
- #
70
- # @return [Google::Apis::MonitoringV3::Empty]
71
- #
72
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
- # @raise [Google::Apis::AuthorizationError] Authorization is required
75
- def create_collectd_time_series(name, create_collectd_time_series_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
76
- command = make_simple_command(:post, 'v3/{+name}/collectdTimeSeries', options)
77
- command.request_representation = Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest::Representation
78
- command.request_object = create_collectd_time_series_request_object
79
- command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
80
- command.response_class = Google::Apis::MonitoringV3::Empty
81
- command.params['name'] = name unless name.nil?
82
- command.query['quotaUser'] = quota_user unless quota_user.nil?
83
- command.query['fields'] = fields unless fields.nil?
84
- execute_or_queue_command(command, &block)
85
- end
86
-
87
51
  # Lists time series that match a filter. This method does not require a
88
52
  # Stackdriver account.
89
53
  # @param [String] name
90
54
  # The project on which to execute the request. The format is "projects/`
91
55
  # project_id_or_number`".
92
- # @param [String] interval_end_time
93
- # Required. The end of the time interval.
94
- # @param [String] aggregation_alignment_period
95
- # The alignment period for per-time series alignment. If present,
96
- # alignmentPeriod must be at least 60 seconds. After per-time series alignment,
97
- # each time series will contain data points only on the period boundaries. If
98
- # perSeriesAligner is not specified or equals ALIGN_NONE, then this field is
99
- # ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then
100
- # this field must be defined; otherwise an error is returned.
101
- # @param [Fixnum] page_size
102
- # A positive number that is the maximum number of results to return. When view
103
- # field sets to FULL, it limits the number of Points server will return; if view
104
- # field is HEADERS, it limits the number of TimeSeries server will return.
105
- # @param [String] order_by
106
- # Specifies the order in which the points of the time series should be returned.
107
- # By default, results are not ordered. Currently, this field must be left blank.
108
56
  # @param [String] aggregation_cross_series_reducer
109
57
  # The approach to be used to combine time series. Not all reducer functions may
110
58
  # be applied to all time series, depending on the metric type and the value type
@@ -119,6 +67,10 @@ module Google
119
67
  # labels and other information. For example:
120
68
  # metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
121
69
  # metric.label.instance_name = "my-instance-name"
70
+ # @param [String] page_token
71
+ # If this field is not empty then it must contain the nextPageToken value
72
+ # returned by a previous call to this method. Using this field causes the method
73
+ # to return additional results from the previous method call.
122
74
  # @param [String] aggregation_per_series_aligner
123
75
  # The approach to be used to align individual time series. Not all alignment
124
76
  # functions may be applied to all time series, depending on the metric type and
@@ -127,10 +79,6 @@ module Google
127
79
  # to perform cross-time series reduction. If crossSeriesReducer is specified,
128
80
  # then perSeriesAligner must be specified and not equal ALIGN_NONE and
129
81
  # alignmentPeriod must be specified; otherwise, an error is returned.
130
- # @param [String] page_token
131
- # If this field is not empty then it must contain the nextPageToken value
132
- # returned by a previous call to this method. Using this field causes the method
133
- # to return additional results from the previous method call.
134
82
  # @param [String] interval_start_time
135
83
  # Optional. The beginning of the time interval. The default value for the start
136
84
  # time is the end time. The start time must not be later than the end time.
@@ -148,11 +96,27 @@ module Google
148
96
  # specified and all the time series have the same resource type, then the time
149
97
  # series are aggregated into a single output time series. If crossSeriesReducer
150
98
  # is not defined, this field is ignored.
99
+ # @param [String] interval_end_time
100
+ # Required. The end of the time interval.
101
+ # @param [String] aggregation_alignment_period
102
+ # The alignment period for per-time series alignment. If present,
103
+ # alignmentPeriod must be at least 60 seconds. After per-time series alignment,
104
+ # each time series will contain data points only on the period boundaries. If
105
+ # perSeriesAligner is not specified or equals ALIGN_NONE, then this field is
106
+ # ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then
107
+ # this field must be defined; otherwise an error is returned.
108
+ # @param [Fixnum] page_size
109
+ # A positive number that is the maximum number of results to return. When view
110
+ # field sets to FULL, it limits the number of Points server will return; if view
111
+ # field is HEADERS, it limits the number of TimeSeries server will return.
112
+ # @param [String] order_by
113
+ # Specifies the order in which the points of the time series should be returned.
114
+ # By default, results are not ordered. Currently, this field must be left blank.
115
+ # @param [String] fields
116
+ # Selector specifying which fields to include in a partial response.
151
117
  # @param [String] quota_user
152
118
  # Available to use for quota purposes for server-side applications. Can be any
153
119
  # arbitrary string assigned to a user, but should not exceed 40 characters.
154
- # @param [String] fields
155
- # Selector specifying which fields to include in a partial response.
156
120
  # @param [Google::Apis::RequestOptions] options
157
121
  # Request-specific options
158
122
  #
@@ -165,24 +129,24 @@ module Google
165
129
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
166
130
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
167
131
  # @raise [Google::Apis::AuthorizationError] Authorization is required
168
- def list_project_time_series(name, interval_end_time: nil, aggregation_alignment_period: nil, page_size: nil, order_by: nil, aggregation_cross_series_reducer: nil, filter: nil, aggregation_per_series_aligner: nil, page_token: nil, interval_start_time: nil, view: nil, aggregation_group_by_fields: nil, quota_user: nil, fields: nil, options: nil, &block)
132
+ def list_project_time_series(name, aggregation_cross_series_reducer: nil, filter: nil, page_token: nil, aggregation_per_series_aligner: nil, interval_start_time: nil, view: nil, aggregation_group_by_fields: nil, interval_end_time: nil, aggregation_alignment_period: nil, page_size: nil, order_by: nil, fields: nil, quota_user: nil, options: nil, &block)
169
133
  command = make_simple_command(:get, 'v3/{+name}/timeSeries', options)
170
134
  command.response_representation = Google::Apis::MonitoringV3::ListTimeSeriesResponse::Representation
171
135
  command.response_class = Google::Apis::MonitoringV3::ListTimeSeriesResponse
172
136
  command.params['name'] = name unless name.nil?
173
- command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
174
- command.query['aggregation.alignmentPeriod'] = aggregation_alignment_period unless aggregation_alignment_period.nil?
175
- command.query['pageSize'] = page_size unless page_size.nil?
176
- command.query['orderBy'] = order_by unless order_by.nil?
177
137
  command.query['aggregation.crossSeriesReducer'] = aggregation_cross_series_reducer unless aggregation_cross_series_reducer.nil?
178
138
  command.query['filter'] = filter unless filter.nil?
179
- command.query['aggregation.perSeriesAligner'] = aggregation_per_series_aligner unless aggregation_per_series_aligner.nil?
180
139
  command.query['pageToken'] = page_token unless page_token.nil?
140
+ command.query['aggregation.perSeriesAligner'] = aggregation_per_series_aligner unless aggregation_per_series_aligner.nil?
181
141
  command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
182
142
  command.query['view'] = view unless view.nil?
183
143
  command.query['aggregation.groupByFields'] = aggregation_group_by_fields unless aggregation_group_by_fields.nil?
184
- command.query['quotaUser'] = quota_user unless quota_user.nil?
144
+ command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
145
+ command.query['aggregation.alignmentPeriod'] = aggregation_alignment_period unless aggregation_alignment_period.nil?
146
+ command.query['pageSize'] = page_size unless page_size.nil?
147
+ command.query['orderBy'] = order_by unless order_by.nil?
185
148
  command.query['fields'] = fields unless fields.nil?
149
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
186
150
  execute_or_queue_command(command, &block)
187
151
  end
188
152
 
@@ -193,11 +157,11 @@ module Google
193
157
  # The project on which to execute the request. The format is "projects/`
194
158
  # project_id_or_number`".
195
159
  # @param [Google::Apis::MonitoringV3::CreateTimeSeriesRequest] create_time_series_request_object
160
+ # @param [String] fields
161
+ # Selector specifying which fields to include in a partial response.
196
162
  # @param [String] quota_user
197
163
  # Available to use for quota purposes for server-side applications. Can be any
198
164
  # arbitrary string assigned to a user, but should not exceed 40 characters.
199
- # @param [String] fields
200
- # Selector specifying which fields to include in a partial response.
201
165
  # @param [Google::Apis::RequestOptions] options
202
166
  # Request-specific options
203
167
  #
@@ -210,15 +174,15 @@ module Google
210
174
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
211
175
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
212
176
  # @raise [Google::Apis::AuthorizationError] Authorization is required
213
- def create_time_series(name, create_time_series_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
177
+ def create_time_series(name, create_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
214
178
  command = make_simple_command(:post, 'v3/{+name}/timeSeries', options)
215
179
  command.request_representation = Google::Apis::MonitoringV3::CreateTimeSeriesRequest::Representation
216
180
  command.request_object = create_time_series_request_object
217
181
  command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
218
182
  command.response_class = Google::Apis::MonitoringV3::Empty
219
183
  command.params['name'] = name unless name.nil?
220
- command.query['quotaUser'] = quota_user unless quota_user.nil?
221
184
  command.query['fields'] = fields unless fields.nil?
185
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
222
186
  execute_or_queue_command(command, &block)
223
187
  end
224
188
 
@@ -238,11 +202,11 @@ module Google
238
202
  # If this field is not empty then it must contain the nextPageToken value
239
203
  # returned by a previous call to this method. Using this field causes the method
240
204
  # to return additional results from the previous method call.
205
+ # @param [String] fields
206
+ # Selector specifying which fields to include in a partial response.
241
207
  # @param [String] quota_user
242
208
  # Available to use for quota purposes for server-side applications. Can be any
243
209
  # arbitrary string assigned to a user, but should not exceed 40 characters.
244
- # @param [String] fields
245
- # Selector specifying which fields to include in a partial response.
246
210
  # @param [Google::Apis::RequestOptions] options
247
211
  # Request-specific options
248
212
  #
@@ -255,7 +219,7 @@ module Google
255
219
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
256
220
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
257
221
  # @raise [Google::Apis::AuthorizationError] Authorization is required
258
- def list_project_metric_descriptors(name, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
222
+ def list_project_metric_descriptors(name, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
259
223
  command = make_simple_command(:get, 'v3/{+name}/metricDescriptors', options)
260
224
  command.response_representation = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse::Representation
261
225
  command.response_class = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse
@@ -263,8 +227,8 @@ module Google
263
227
  command.query['pageSize'] = page_size unless page_size.nil?
264
228
  command.query['filter'] = filter unless filter.nil?
265
229
  command.query['pageToken'] = page_token unless page_token.nil?
266
- command.query['quotaUser'] = quota_user unless quota_user.nil?
267
230
  command.query['fields'] = fields unless fields.nil?
231
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
268
232
  execute_or_queue_command(command, &block)
269
233
  end
270
234
 
@@ -274,11 +238,11 @@ module Google
274
238
  # The metric descriptor on which to execute the request. The format is "projects/
275
239
  # `project_id_or_number`/metricDescriptors/`metric_id`". An example value of `
276
240
  # metric_id` is "compute.googleapis.com/instance/disk/read_bytes_count".
241
+ # @param [String] fields
242
+ # Selector specifying which fields to include in a partial response.
277
243
  # @param [String] quota_user
278
244
  # Available to use for quota purposes for server-side applications. Can be any
279
245
  # arbitrary string assigned to a user, but should not exceed 40 characters.
280
- # @param [String] fields
281
- # Selector specifying which fields to include in a partial response.
282
246
  # @param [Google::Apis::RequestOptions] options
283
247
  # Request-specific options
284
248
  #
@@ -291,13 +255,13 @@ module Google
291
255
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
292
256
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
293
257
  # @raise [Google::Apis::AuthorizationError] Authorization is required
294
- def get_project_metric_descriptor(name, quota_user: nil, fields: nil, options: nil, &block)
258
+ def get_project_metric_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
295
259
  command = make_simple_command(:get, 'v3/{+name}', options)
296
260
  command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
297
261
  command.response_class = Google::Apis::MonitoringV3::MetricDescriptor
298
262
  command.params['name'] = name unless name.nil?
299
- command.query['quotaUser'] = quota_user unless quota_user.nil?
300
263
  command.query['fields'] = fields unless fields.nil?
264
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
301
265
  execute_or_queue_command(command, &block)
302
266
  end
303
267
 
@@ -307,11 +271,11 @@ module Google
307
271
  # The project on which to execute the request. The format is "projects/`
308
272
  # project_id_or_number`".
309
273
  # @param [Google::Apis::MonitoringV3::MetricDescriptor] metric_descriptor_object
274
+ # @param [String] fields
275
+ # Selector specifying which fields to include in a partial response.
310
276
  # @param [String] quota_user
311
277
  # Available to use for quota purposes for server-side applications. Can be any
312
278
  # arbitrary string assigned to a user, but should not exceed 40 characters.
313
- # @param [String] fields
314
- # Selector specifying which fields to include in a partial response.
315
279
  # @param [Google::Apis::RequestOptions] options
316
280
  # Request-specific options
317
281
  #
@@ -324,15 +288,15 @@ module Google
324
288
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
325
289
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
326
290
  # @raise [Google::Apis::AuthorizationError] Authorization is required
327
- def create_project_metric_descriptor(name, metric_descriptor_object = nil, quota_user: nil, fields: nil, options: nil, &block)
291
+ def create_project_metric_descriptor(name, metric_descriptor_object = nil, fields: nil, quota_user: nil, options: nil, &block)
328
292
  command = make_simple_command(:post, 'v3/{+name}/metricDescriptors', options)
329
293
  command.request_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
330
294
  command.request_object = metric_descriptor_object
331
295
  command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
332
296
  command.response_class = Google::Apis::MonitoringV3::MetricDescriptor
333
297
  command.params['name'] = name unless name.nil?
334
- command.query['quotaUser'] = quota_user unless quota_user.nil?
335
298
  command.query['fields'] = fields unless fields.nil?
299
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
336
300
  execute_or_queue_command(command, &block)
337
301
  end
338
302
 
@@ -341,11 +305,11 @@ module Google
341
305
  # The metric descriptor on which to execute the request. The format is "projects/
342
306
  # `project_id_or_number`/metricDescriptors/`metric_id`". An example of `
343
307
  # metric_id` is: "custom.googleapis.com/my_test_metric".
308
+ # @param [String] fields
309
+ # Selector specifying which fields to include in a partial response.
344
310
  # @param [String] quota_user
345
311
  # Available to use for quota purposes for server-side applications. Can be any
346
312
  # arbitrary string assigned to a user, but should not exceed 40 characters.
347
- # @param [String] fields
348
- # Selector specifying which fields to include in a partial response.
349
313
  # @param [Google::Apis::RequestOptions] options
350
314
  # Request-specific options
351
315
  #
@@ -358,13 +322,13 @@ module Google
358
322
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
359
323
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
360
324
  # @raise [Google::Apis::AuthorizationError] Authorization is required
361
- def delete_project_metric_descriptor(name, quota_user: nil, fields: nil, options: nil, &block)
325
+ def delete_project_metric_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
362
326
  command = make_simple_command(:delete, 'v3/{+name}', options)
363
327
  command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
364
328
  command.response_class = Google::Apis::MonitoringV3::Empty
365
329
  command.params['name'] = name unless name.nil?
366
- command.query['quotaUser'] = quota_user unless quota_user.nil?
367
330
  command.query['fields'] = fields unless fields.nil?
331
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
368
332
  execute_or_queue_command(command, &block)
369
333
  end
370
334
 
@@ -373,6 +337,8 @@ module Google
373
337
  # @param [String] name
374
338
  # The project on which to execute the request. The format is "projects/`
375
339
  # project_id_or_number`".
340
+ # @param [Fixnum] page_size
341
+ # A positive number that is the maximum number of results to return.
376
342
  # @param [String] filter
377
343
  # An optional filter describing the descriptors to be returned. The filter can
378
344
  # reference the descriptor's type and labels. For example, the following filter
@@ -382,13 +348,11 @@ module Google
382
348
  # If this field is not empty then it must contain the nextPageToken value
383
349
  # returned by a previous call to this method. Using this field causes the method
384
350
  # to return additional results from the previous method call.
385
- # @param [Fixnum] page_size
386
- # A positive number that is the maximum number of results to return.
351
+ # @param [String] fields
352
+ # Selector specifying which fields to include in a partial response.
387
353
  # @param [String] quota_user
388
354
  # Available to use for quota purposes for server-side applications. Can be any
389
355
  # arbitrary string assigned to a user, but should not exceed 40 characters.
390
- # @param [String] fields
391
- # Selector specifying which fields to include in a partial response.
392
356
  # @param [Google::Apis::RequestOptions] options
393
357
  # Request-specific options
394
358
  #
@@ -401,16 +365,16 @@ module Google
401
365
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
402
366
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
403
367
  # @raise [Google::Apis::AuthorizationError] Authorization is required
404
- def list_project_monitored_resource_descriptors(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
368
+ def list_project_monitored_resource_descriptors(name, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
405
369
  command = make_simple_command(:get, 'v3/{+name}/monitoredResourceDescriptors', options)
406
370
  command.response_representation = Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse::Representation
407
371
  command.response_class = Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse
408
372
  command.params['name'] = name unless name.nil?
373
+ command.query['pageSize'] = page_size unless page_size.nil?
409
374
  command.query['filter'] = filter unless filter.nil?
410
375
  command.query['pageToken'] = page_token unless page_token.nil?
411
- command.query['pageSize'] = page_size unless page_size.nil?
412
- command.query['quotaUser'] = quota_user unless quota_user.nil?
413
376
  command.query['fields'] = fields unless fields.nil?
377
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
414
378
  execute_or_queue_command(command, &block)
415
379
  end
416
380
 
@@ -420,11 +384,11 @@ module Google
420
384
  # The monitored resource descriptor to get. The format is "projects/`
421
385
  # project_id_or_number`/monitoredResourceDescriptors/`resource_type`". The `
422
386
  # resource_type` is a predefined type, such as cloudsql_database.
387
+ # @param [String] fields
388
+ # Selector specifying which fields to include in a partial response.
423
389
  # @param [String] quota_user
424
390
  # Available to use for quota purposes for server-side applications. Can be any
425
391
  # arbitrary string assigned to a user, but should not exceed 40 characters.
426
- # @param [String] fields
427
- # Selector specifying which fields to include in a partial response.
428
392
  # @param [Google::Apis::RequestOptions] options
429
393
  # Request-specific options
430
394
  #
@@ -437,13 +401,13 @@ module Google
437
401
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
438
402
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
439
403
  # @raise [Google::Apis::AuthorizationError] Authorization is required
440
- def get_project_monitored_resource_descriptor(name, quota_user: nil, fields: nil, options: nil, &block)
404
+ def get_project_monitored_resource_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
441
405
  command = make_simple_command(:get, 'v3/{+name}', options)
442
406
  command.response_representation = Google::Apis::MonitoringV3::MonitoredResourceDescriptor::Representation
443
407
  command.response_class = Google::Apis::MonitoringV3::MonitoredResourceDescriptor
444
408
  command.params['name'] = name unless name.nil?
445
- command.query['quotaUser'] = quota_user unless quota_user.nil?
446
409
  command.query['fields'] = fields unless fields.nil?
410
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
447
411
  execute_or_queue_command(command, &block)
448
412
  end
449
413
 
@@ -451,11 +415,11 @@ module Google
451
415
  # @param [String] name
452
416
  # The group to delete. The format is "projects/`project_id_or_number`/groups/`
453
417
  # group_id`".
418
+ # @param [String] fields
419
+ # Selector specifying which fields to include in a partial response.
454
420
  # @param [String] quota_user
455
421
  # Available to use for quota purposes for server-side applications. Can be any
456
422
  # arbitrary string assigned to a user, but should not exceed 40 characters.
457
- # @param [String] fields
458
- # Selector specifying which fields to include in a partial response.
459
423
  # @param [Google::Apis::RequestOptions] options
460
424
  # Request-specific options
461
425
  #
@@ -468,13 +432,13 @@ module Google
468
432
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
469
433
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
470
434
  # @raise [Google::Apis::AuthorizationError] Authorization is required
471
- def delete_project_group(name, quota_user: nil, fields: nil, options: nil, &block)
435
+ def delete_project_group(name, fields: nil, quota_user: nil, options: nil, &block)
472
436
  command = make_simple_command(:delete, 'v3/{+name}', options)
473
437
  command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
474
438
  command.response_class = Google::Apis::MonitoringV3::Empty
475
439
  command.params['name'] = name unless name.nil?
476
- command.query['quotaUser'] = quota_user unless quota_user.nil?
477
440
  command.query['fields'] = fields unless fields.nil?
441
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
478
442
  execute_or_queue_command(command, &block)
479
443
  end
480
444
 
@@ -482,6 +446,14 @@ module Google
482
446
  # @param [String] name
483
447
  # The project whose groups are to be listed. The format is "projects/`
484
448
  # project_id_or_number`".
449
+ # @param [String] children_of_group
450
+ # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns
451
+ # groups whose parentName field contains the group name. If no groups have this
452
+ # parent, the results are empty.
453
+ # @param [String] descendants_of_group
454
+ # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns the
455
+ # descendants of the specified group. This is a superset of the results returned
456
+ # by the childrenOfGroup filter, and includes children-of-children, and so forth.
485
457
  # @param [String] page_token
486
458
  # If this field is not empty then it must contain the nextPageToken value
487
459
  # returned by a previous call to this method. Using this field causes the method
@@ -494,19 +466,11 @@ module Google
494
466
  # order, starting with the immediate parent and ending with the most distant
495
467
  # ancestor. If the specified group has no immediate parent, the results are
496
468
  # empty.
497
- # @param [String] children_of_group
498
- # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns
499
- # groups whose parentName field contains the group name. If no groups have this
500
- # parent, the results are empty.
501
- # @param [String] descendants_of_group
502
- # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns the
503
- # descendants of the specified group. This is a superset of the results returned
504
- # by the childrenOfGroup filter, and includes children-of-children, and so forth.
469
+ # @param [String] fields
470
+ # Selector specifying which fields to include in a partial response.
505
471
  # @param [String] quota_user
506
472
  # Available to use for quota purposes for server-side applications. Can be any
507
473
  # arbitrary string assigned to a user, but should not exceed 40 characters.
508
- # @param [String] fields
509
- # Selector specifying which fields to include in a partial response.
510
474
  # @param [Google::Apis::RequestOptions] options
511
475
  # Request-specific options
512
476
  #
@@ -519,18 +483,18 @@ module Google
519
483
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
520
484
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
521
485
  # @raise [Google::Apis::AuthorizationError] Authorization is required
522
- def list_project_groups(name, page_token: nil, page_size: nil, ancestors_of_group: nil, children_of_group: nil, descendants_of_group: nil, quota_user: nil, fields: nil, options: nil, &block)
486
+ def list_project_groups(name, children_of_group: nil, descendants_of_group: nil, page_token: nil, page_size: nil, ancestors_of_group: nil, fields: nil, quota_user: nil, options: nil, &block)
523
487
  command = make_simple_command(:get, 'v3/{+name}/groups', options)
524
488
  command.response_representation = Google::Apis::MonitoringV3::ListGroupsResponse::Representation
525
489
  command.response_class = Google::Apis::MonitoringV3::ListGroupsResponse
526
490
  command.params['name'] = name unless name.nil?
491
+ command.query['childrenOfGroup'] = children_of_group unless children_of_group.nil?
492
+ command.query['descendantsOfGroup'] = descendants_of_group unless descendants_of_group.nil?
527
493
  command.query['pageToken'] = page_token unless page_token.nil?
528
494
  command.query['pageSize'] = page_size unless page_size.nil?
529
495
  command.query['ancestorsOfGroup'] = ancestors_of_group unless ancestors_of_group.nil?
530
- command.query['childrenOfGroup'] = children_of_group unless children_of_group.nil?
531
- command.query['descendantsOfGroup'] = descendants_of_group unless descendants_of_group.nil?
532
- command.query['quotaUser'] = quota_user unless quota_user.nil?
533
496
  command.query['fields'] = fields unless fields.nil?
497
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
534
498
  execute_or_queue_command(command, &block)
535
499
  end
536
500
 
@@ -538,11 +502,11 @@ module Google
538
502
  # @param [String] name
539
503
  # The group to retrieve. The format is "projects/`project_id_or_number`/groups/`
540
504
  # group_id`".
505
+ # @param [String] fields
506
+ # Selector specifying which fields to include in a partial response.
541
507
  # @param [String] quota_user
542
508
  # Available to use for quota purposes for server-side applications. Can be any
543
509
  # arbitrary string assigned to a user, but should not exceed 40 characters.
544
- # @param [String] fields
545
- # Selector specifying which fields to include in a partial response.
546
510
  # @param [Google::Apis::RequestOptions] options
547
511
  # Request-specific options
548
512
  #
@@ -555,13 +519,13 @@ module Google
555
519
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
556
520
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
557
521
  # @raise [Google::Apis::AuthorizationError] Authorization is required
558
- def get_project_group(name, quota_user: nil, fields: nil, options: nil, &block)
522
+ def get_project_group(name, fields: nil, quota_user: nil, options: nil, &block)
559
523
  command = make_simple_command(:get, 'v3/{+name}', options)
560
524
  command.response_representation = Google::Apis::MonitoringV3::Group::Representation
561
525
  command.response_class = Google::Apis::MonitoringV3::Group
562
526
  command.params['name'] = name unless name.nil?
563
- command.query['quotaUser'] = quota_user unless quota_user.nil?
564
527
  command.query['fields'] = fields unless fields.nil?
528
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
565
529
  execute_or_queue_command(command, &block)
566
530
  end
567
531
 
@@ -574,11 +538,11 @@ module Google
574
538
  # @param [Google::Apis::MonitoringV3::Group] group_object
575
539
  # @param [Boolean] validate_only
576
540
  # If true, validate this request but do not update the existing group.
541
+ # @param [String] fields
542
+ # Selector specifying which fields to include in a partial response.
577
543
  # @param [String] quota_user
578
544
  # Available to use for quota purposes for server-side applications. Can be any
579
545
  # arbitrary string assigned to a user, but should not exceed 40 characters.
580
- # @param [String] fields
581
- # Selector specifying which fields to include in a partial response.
582
546
  # @param [Google::Apis::RequestOptions] options
583
547
  # Request-specific options
584
548
  #
@@ -591,7 +555,7 @@ module Google
591
555
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
592
556
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
593
557
  # @raise [Google::Apis::AuthorizationError] Authorization is required
594
- def update_project_group(name, group_object = nil, validate_only: nil, quota_user: nil, fields: nil, options: nil, &block)
558
+ def update_project_group(name, group_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
595
559
  command = make_simple_command(:put, 'v3/{+name}', options)
596
560
  command.request_representation = Google::Apis::MonitoringV3::Group::Representation
597
561
  command.request_object = group_object
@@ -599,8 +563,8 @@ module Google
599
563
  command.response_class = Google::Apis::MonitoringV3::Group
600
564
  command.params['name'] = name unless name.nil?
601
565
  command.query['validateOnly'] = validate_only unless validate_only.nil?
602
- command.query['quotaUser'] = quota_user unless quota_user.nil?
603
566
  command.query['fields'] = fields unless fields.nil?
567
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
604
568
  execute_or_queue_command(command, &block)
605
569
  end
606
570
 
@@ -611,11 +575,11 @@ module Google
611
575
  # @param [Google::Apis::MonitoringV3::Group] group_object
612
576
  # @param [Boolean] validate_only
613
577
  # If true, validate this request but do not create the group.
578
+ # @param [String] fields
579
+ # Selector specifying which fields to include in a partial response.
614
580
  # @param [String] quota_user
615
581
  # Available to use for quota purposes for server-side applications. Can be any
616
582
  # arbitrary string assigned to a user, but should not exceed 40 characters.
617
- # @param [String] fields
618
- # Selector specifying which fields to include in a partial response.
619
583
  # @param [Google::Apis::RequestOptions] options
620
584
  # Request-specific options
621
585
  #
@@ -628,7 +592,7 @@ module Google
628
592
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
629
593
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
630
594
  # @raise [Google::Apis::AuthorizationError] Authorization is required
631
- def create_project_group(name, group_object = nil, validate_only: nil, quota_user: nil, fields: nil, options: nil, &block)
595
+ def create_project_group(name, group_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
632
596
  command = make_simple_command(:post, 'v3/{+name}/groups', options)
633
597
  command.request_representation = Google::Apis::MonitoringV3::Group::Representation
634
598
  command.request_object = group_object
@@ -636,8 +600,8 @@ module Google
636
600
  command.response_class = Google::Apis::MonitoringV3::Group
637
601
  command.params['name'] = name unless name.nil?
638
602
  command.query['validateOnly'] = validate_only unless validate_only.nil?
639
- command.query['quotaUser'] = quota_user unless quota_user.nil?
640
603
  command.query['fields'] = fields unless fields.nil?
604
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
641
605
  execute_or_queue_command(command, &block)
642
606
  end
643
607
 
@@ -645,8 +609,6 @@ module Google
645
609
  # @param [String] name
646
610
  # The group whose members are listed. The format is "projects/`
647
611
  # project_id_or_number`/groups/`group_id`".
648
- # @param [String] interval_end_time
649
- # Required. The end of the time interval.
650
612
  # @param [String] filter
651
613
  # An optional list filter describing the members to be returned. The filter may
652
614
  # reference the type, labels, and metadata of monitored resources that comprise
@@ -657,16 +619,18 @@ module Google
657
619
  # If this field is not empty then it must contain the nextPageToken value
658
620
  # returned by a previous call to this method. Using this field causes the method
659
621
  # to return additional results from the previous method call.
622
+ # @param [Fixnum] page_size
623
+ # A positive number that is the maximum number of results to return.
660
624
  # @param [String] interval_start_time
661
625
  # Optional. The beginning of the time interval. The default value for the start
662
626
  # time is the end time. The start time must not be later than the end time.
663
- # @param [Fixnum] page_size
664
- # A positive number that is the maximum number of results to return.
627
+ # @param [String] interval_end_time
628
+ # Required. The end of the time interval.
629
+ # @param [String] fields
630
+ # Selector specifying which fields to include in a partial response.
665
631
  # @param [String] quota_user
666
632
  # Available to use for quota purposes for server-side applications. Can be any
667
633
  # arbitrary string assigned to a user, but should not exceed 40 characters.
668
- # @param [String] fields
669
- # Selector specifying which fields to include in a partial response.
670
634
  # @param [Google::Apis::RequestOptions] options
671
635
  # Request-specific options
672
636
  #
@@ -679,26 +643,62 @@ module Google
679
643
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
680
644
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
681
645
  # @raise [Google::Apis::AuthorizationError] Authorization is required
682
- def list_project_group_members(name, interval_end_time: nil, filter: nil, page_token: nil, interval_start_time: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
646
+ def list_project_group_members(name, filter: nil, page_token: nil, page_size: nil, interval_start_time: nil, interval_end_time: nil, fields: nil, quota_user: nil, options: nil, &block)
683
647
  command = make_simple_command(:get, 'v3/{+name}/members', options)
684
648
  command.response_representation = Google::Apis::MonitoringV3::ListGroupMembersResponse::Representation
685
649
  command.response_class = Google::Apis::MonitoringV3::ListGroupMembersResponse
686
650
  command.params['name'] = name unless name.nil?
687
- command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
688
651
  command.query['filter'] = filter unless filter.nil?
689
652
  command.query['pageToken'] = page_token unless page_token.nil?
690
- command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
691
653
  command.query['pageSize'] = page_size unless page_size.nil?
654
+ command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
655
+ command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
656
+ command.query['fields'] = fields unless fields.nil?
692
657
  command.query['quotaUser'] = quota_user unless quota_user.nil?
658
+ execute_or_queue_command(command, &block)
659
+ end
660
+
661
+ # Stackdriver Monitoring Agent only: Creates a new time series.<aside class="
662
+ # caution">This method is only for use by the Stackdriver Monitoring Agent. Use
663
+ # projects.timeSeries.create instead.</aside>
664
+ # @param [String] name
665
+ # The project in which to create the time series. The format is "projects/
666
+ # PROJECT_ID_OR_NUMBER".
667
+ # @param [Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest] create_collectd_time_series_request_object
668
+ # @param [String] fields
669
+ # Selector specifying which fields to include in a partial response.
670
+ # @param [String] quota_user
671
+ # Available to use for quota purposes for server-side applications. Can be any
672
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
673
+ # @param [Google::Apis::RequestOptions] options
674
+ # Request-specific options
675
+ #
676
+ # @yield [result, err] Result & error if block supplied
677
+ # @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
678
+ # @yieldparam err [StandardError] error object if request failed
679
+ #
680
+ # @return [Google::Apis::MonitoringV3::Empty]
681
+ #
682
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
683
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
684
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
685
+ def create_collectd_time_series(name, create_collectd_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
686
+ command = make_simple_command(:post, 'v3/{+name}/collectdTimeSeries', options)
687
+ command.request_representation = Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest::Representation
688
+ command.request_object = create_collectd_time_series_request_object
689
+ command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
690
+ command.response_class = Google::Apis::MonitoringV3::Empty
691
+ command.params['name'] = name unless name.nil?
693
692
  command.query['fields'] = fields unless fields.nil?
693
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
694
694
  execute_or_queue_command(command, &block)
695
695
  end
696
696
 
697
697
  protected
698
698
 
699
699
  def apply_command_defaults(command)
700
- command.query['quotaUser'] = quota_user unless quota_user.nil?
701
700
  command.query['key'] = key unless key.nil?
701
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
702
702
  end
703
703
  end
704
704
  end