google-api-client 0.9.28 → 0.10.0

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