google-api-client 0.11.1 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/api_names.yaml +42335 -1
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +28 -28
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +12 -12
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +757 -757
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +162 -162
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +48 -48
  12. data/generated/google/apis/admin_directory_v1.rb +1 -1
  13. data/generated/google/apis/admin_directory_v1/classes.rb +75 -7
  14. data/generated/google/apis/admin_directory_v1/representations.rb +20 -0
  15. data/generated/google/apis/admin_directory_v1/service.rb +61 -61
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +403 -403
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +36 -11
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
  24. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  25. data/generated/google/apis/appengine_v1.rb +6 -5
  26. data/generated/google/apis/appengine_v1/classes.rb +1429 -1421
  27. data/generated/google/apis/appengine_v1/representations.rb +331 -331
  28. data/generated/google/apis/appengine_v1/service.rb +173 -168
  29. data/generated/google/apis/appstate_v1.rb +1 -1
  30. data/generated/google/apis/bigquery_v2.rb +1 -1
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/classroom_v1.rb +1 -1
  33. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  35. data/generated/google/apis/cloudbuild_v1/classes.rb +624 -618
  36. data/generated/google/apis/cloudbuild_v1/representations.rb +126 -125
  37. data/generated/google/apis/cloudbuild_v1/service.rb +87 -87
  38. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  39. data/generated/google/apis/clouddebugger_v2/classes.rb +267 -267
  40. data/generated/google/apis/clouddebugger_v2/representations.rb +83 -83
  41. data/generated/google/apis/clouddebugger_v2/service.rb +137 -137
  42. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  43. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +131 -131
  44. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +28 -28
  45. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +17 -17
  46. data/generated/google/apis/cloudfunctions_v1.rb +1 -4
  47. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -47
  48. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -17
  49. data/generated/google/apis/cloudfunctions_v1/service.rb +0 -30
  50. data/generated/google/apis/cloudkms_v1.rb +1 -1
  51. data/generated/google/apis/cloudkms_v1/classes.rb +625 -625
  52. data/generated/google/apis/cloudkms_v1/representations.rb +132 -132
  53. data/generated/google/apis/cloudkms_v1/service.rb +272 -272
  54. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +242 -242
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +43 -43
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +505 -505
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +172 -172
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +39 -39
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +310 -310
  63. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +96 -69
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +16 -16
  66. data/generated/google/apis/cloudtrace_v1/service.rb +42 -15
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +194 -25
  69. data/generated/google/apis/compute_beta/representations.rb +42 -0
  70. data/generated/google/apis/compute_beta/service.rb +196 -100
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +69 -18
  73. data/generated/google/apis/compute_v1/representations.rb +16 -0
  74. data/generated/google/apis/compute_v1/service.rb +84 -26
  75. data/generated/google/apis/container_v1.rb +3 -3
  76. data/generated/google/apis/container_v1/classes.rb +794 -586
  77. data/generated/google/apis/container_v1/representations.rb +202 -118
  78. data/generated/google/apis/container_v1/service.rb +396 -167
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +4 -4
  81. data/generated/google/apis/dataproc_v1.rb +1 -1
  82. data/generated/google/apis/dataproc_v1/classes.rb +487 -484
  83. data/generated/google/apis/dataproc_v1/representations.rb +83 -83
  84. data/generated/google/apis/dataproc_v1/service.rb +299 -297
  85. data/generated/google/apis/datastore_v1.rb +1 -1
  86. data/generated/google/apis/datastore_v1/classes.rb +703 -703
  87. data/generated/google/apis/datastore_v1/representations.rb +148 -148
  88. data/generated/google/apis/datastore_v1/service.rb +62 -62
  89. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  90. data/generated/google/apis/deploymentmanager_v2/classes.rb +7 -5
  91. data/generated/google/apis/dfareporting_v2_6.rb +1 -1
  92. data/generated/google/apis/dfareporting_v2_6/classes.rb +66 -53
  93. data/generated/google/apis/dfareporting_v2_6/service.rb +30 -30
  94. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  95. data/generated/google/apis/dfareporting_v2_7/classes.rb +69 -55
  96. data/generated/google/apis/dfareporting_v2_7/service.rb +38 -37
  97. data/generated/google/apis/dfareporting_v2_8.rb +40 -0
  98. data/generated/google/apis/dfareporting_v2_8/classes.rb +12046 -0
  99. data/generated/google/apis/dfareporting_v2_8/representations.rb +4310 -0
  100. data/generated/google/apis/dfareporting_v2_8/service.rb +9135 -0
  101. data/generated/google/apis/dns_v1.rb +1 -1
  102. data/generated/google/apis/dns_v2beta1.rb +1 -1
  103. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2.rb +1 -1
  105. data/generated/google/apis/drive_v2/classes.rb +15 -0
  106. data/generated/google/apis/drive_v2/representations.rb +2 -0
  107. data/generated/google/apis/drive_v2/service.rb +2 -1
  108. data/generated/google/apis/drive_v3.rb +1 -1
  109. data/generated/google/apis/drive_v3/classes.rb +16 -0
  110. data/generated/google/apis/drive_v3/representations.rb +2 -0
  111. data/generated/google/apis/drive_v3/service.rb +2 -1
  112. data/generated/google/apis/firebasedynamiclinks_v1.rb +2 -3
  113. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +159 -159
  114. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +55 -55
  115. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -6
  116. data/generated/google/apis/firebaserules_v1.rb +1 -1
  117. data/generated/google/apis/firebaserules_v1/classes.rb +73 -73
  118. data/generated/google/apis/firebaserules_v1/representations.rb +25 -25
  119. data/generated/google/apis/firebaserules_v1/service.rb +118 -118
  120. data/generated/google/apis/fusiontables_v2.rb +1 -1
  121. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  122. data/generated/google/apis/games_management_v1management.rb +1 -1
  123. data/generated/google/apis/games_v1.rb +1 -1
  124. data/generated/google/apis/genomics_v1.rb +1 -1
  125. data/generated/google/apis/genomics_v1/classes.rb +920 -920
  126. data/generated/google/apis/genomics_v1/representations.rb +202 -202
  127. data/generated/google/apis/genomics_v1/service.rb +1092 -1092
  128. data/generated/google/apis/gmail_v1.rb +1 -1
  129. data/generated/google/apis/iam_v1.rb +1 -1
  130. data/generated/google/apis/iam_v1/classes.rb +455 -435
  131. data/generated/google/apis/iam_v1/representations.rb +96 -93
  132. data/generated/google/apis/iam_v1/service.rb +157 -157
  133. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  134. data/generated/google/apis/identitytoolkit_v3/classes.rb +12 -0
  135. data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -0
  136. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  137. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  138. data/generated/google/apis/kgsearch_v1/service.rb +9 -9
  139. data/generated/google/apis/language_v1.rb +1 -1
  140. data/generated/google/apis/language_v1/classes.rb +455 -455
  141. data/generated/google/apis/language_v1/representations.rb +102 -102
  142. data/generated/google/apis/language_v1/service.rb +42 -42
  143. data/generated/google/apis/language_v1beta1.rb +1 -1
  144. data/generated/google/apis/language_v1beta1/classes.rb +216 -215
  145. data/generated/google/apis/language_v1beta1/representations.rb +75 -75
  146. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  147. data/generated/google/apis/logging_v2.rb +1 -1
  148. data/generated/google/apis/logging_v2/classes.rb +908 -895
  149. data/generated/google/apis/logging_v2/representations.rb +121 -120
  150. data/generated/google/apis/logging_v2/service.rb +489 -489
  151. data/generated/google/apis/logging_v2beta1.rb +4 -4
  152. data/generated/google/apis/logging_v2beta1/classes.rb +928 -915
  153. data/generated/google/apis/logging_v2beta1/representations.rb +121 -120
  154. data/generated/google/apis/logging_v2beta1/service.rb +249 -249
  155. data/generated/google/apis/manufacturers_v1.rb +1 -1
  156. data/generated/google/apis/manufacturers_v1/classes.rb +294 -294
  157. data/generated/google/apis/manufacturers_v1/representations.rb +84 -84
  158. data/generated/google/apis/manufacturers_v1/service.rb +8 -8
  159. data/generated/google/apis/mirror_v1.rb +1 -1
  160. data/generated/google/apis/ml_v1.rb +1 -1
  161. data/generated/google/apis/ml_v1/classes.rb +1186 -1183
  162. data/generated/google/apis/ml_v1/representations.rb +177 -177
  163. data/generated/google/apis/ml_v1/service.rb +244 -244
  164. data/generated/google/apis/monitoring_v3.rb +1 -1
  165. data/generated/google/apis/monitoring_v3/classes.rb +866 -866
  166. data/generated/google/apis/monitoring_v3/representations.rb +163 -163
  167. data/generated/google/apis/monitoring_v3/service.rb +355 -316
  168. data/generated/google/apis/oauth2_v2.rb +1 -1
  169. data/generated/google/apis/partners_v2.rb +1 -1
  170. data/generated/google/apis/partners_v2/classes.rb +1499 -1499
  171. data/generated/google/apis/partners_v2/representations.rb +368 -368
  172. data/generated/google/apis/partners_v2/service.rb +512 -512
  173. data/generated/google/apis/people_v1.rb +10 -10
  174. data/generated/google/apis/people_v1/classes.rb +544 -423
  175. data/generated/google/apis/people_v1/representations.rb +127 -109
  176. data/generated/google/apis/people_v1/service.rb +8 -8
  177. data/generated/google/apis/plus_domains_v1.rb +1 -1
  178. data/generated/google/apis/plus_v1.rb +1 -1
  179. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  180. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +200 -200
  181. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +41 -41
  182. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +80 -80
  183. data/generated/google/apis/pubsub_v1.rb +1 -1
  184. data/generated/google/apis/pubsub_v1/classes.rb +377 -377
  185. data/generated/google/apis/pubsub_v1/representations.rb +82 -82
  186. data/generated/google/apis/pubsub_v1/service.rb +93 -93
  187. data/generated/google/apis/runtimeconfig_v1.rb +6 -4
  188. data/generated/google/apis/runtimeconfig_v1/classes.rb +22 -22
  189. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  190. data/generated/google/apis/runtimeconfig_v1/service.rb +57 -55
  191. data/generated/google/apis/script_v1.rb +14 -14
  192. data/generated/google/apis/script_v1/classes.rb +113 -58
  193. data/generated/google/apis/script_v1/representations.rb +43 -14
  194. data/generated/google/apis/script_v1/service.rb +6 -6
  195. data/generated/google/apis/searchconsole_v1.rb +1 -1
  196. data/generated/google/apis/searchconsole_v1/classes.rb +67 -67
  197. data/generated/google/apis/searchconsole_v1/representations.rb +29 -29
  198. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  199. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  200. data/generated/google/apis/servicecontrol_v1/classes.rb +1125 -1125
  201. data/generated/google/apis/servicecontrol_v1/representations.rb +213 -213
  202. data/generated/google/apis/servicecontrol_v1/service.rb +92 -92
  203. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  204. data/generated/google/apis/servicemanagement_v1/classes.rb +3364 -3622
  205. data/generated/google/apis/servicemanagement_v1/representations.rb +546 -530
  206. data/generated/google/apis/servicemanagement_v1/service.rb +262 -152
  207. data/generated/google/apis/serviceuser_v1.rb +4 -4
  208. data/generated/google/apis/serviceuser_v1/classes.rb +2616 -2874
  209. data/generated/google/apis/serviceuser_v1/representations.rb +294 -278
  210. data/generated/google/apis/serviceuser_v1/service.rb +19 -19
  211. data/generated/google/apis/sheets_v4.rb +4 -1
  212. data/generated/google/apis/sheets_v4/classes.rb +4315 -4313
  213. data/generated/google/apis/sheets_v4/representations.rb +858 -858
  214. data/generated/google/apis/sheets_v4/service.rb +115 -115
  215. data/generated/google/apis/slides_v1.rb +1 -1
  216. data/generated/google/apis/slides_v1/classes.rb +2890 -2890
  217. data/generated/google/apis/slides_v1/representations.rb +638 -638
  218. data/generated/google/apis/slides_v1/service.rb +36 -36
  219. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  220. data/generated/google/apis/sourcerepo_v1/classes.rb +283 -283
  221. data/generated/google/apis/sourcerepo_v1/representations.rb +67 -67
  222. data/generated/google/apis/sourcerepo_v1/service.rb +88 -88
  223. data/generated/google/apis/spanner_v1.rb +1 -1
  224. data/generated/google/apis/spanner_v1/classes.rb +2258 -2233
  225. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  226. data/generated/google/apis/spanner_v1/service.rb +466 -466
  227. data/generated/google/apis/speech_v1beta1.rb +2 -2
  228. data/generated/google/apis/speech_v1beta1/classes.rb +97 -97
  229. data/generated/google/apis/speech_v1beta1/representations.rb +29 -29
  230. data/generated/google/apis/speech_v1beta1/service.rb +49 -49
  231. data/generated/google/apis/storage_v1.rb +1 -1
  232. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  233. data/generated/google/apis/storagetransfer_v1/classes.rb +786 -786
  234. data/generated/google/apis/storagetransfer_v1/representations.rb +133 -133
  235. data/generated/google/apis/storagetransfer_v1/service.rb +30 -30
  236. data/generated/google/apis/surveys_v2.rb +1 -1
  237. data/generated/google/apis/surveys_v2/classes.rb +0 -12
  238. data/generated/google/apis/surveys_v2/representations.rb +0 -4
  239. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  240. data/generated/google/apis/vision_v1.rb +1 -1
  241. data/generated/google/apis/vision_v1/classes.rb +1301 -1302
  242. data/generated/google/apis/vision_v1/representations.rb +183 -183
  243. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  244. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  245. data/generated/google/apis/youtube_partner_v1/classes.rb +10 -0
  246. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -0
  247. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  248. data/generated/google/apis/youtubereporting_v1/classes.rb +64 -64
  249. data/generated/google/apis/youtubereporting_v1/representations.rb +12 -12
  250. data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
  251. data/lib/google/apis/version.rb +1 -1
  252. metadata +7 -3
@@ -49,61 +49,105 @@ module Google
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
- # Deletes an existing group.
53
- # @param [String] name
54
- # The group to delete. The format is "projects/`project_id_or_number`/groups/`
55
- # group_id`".
56
- # @param [String] fields
57
- # Selector specifying which fields to include in a partial response.
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 [Google::Apis::RequestOptions] options
62
- # Request-specific options
63
- #
64
- # @yield [result, err] Result & error if block supplied
65
- # @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
66
- # @yieldparam err [StandardError] error object if request failed
67
- #
68
- # @return [Google::Apis::MonitoringV3::Empty]
69
- #
70
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
- # @raise [Google::Apis::AuthorizationError] Authorization is required
73
- def delete_project_group(name, fields: nil, quota_user: nil, options: nil, &block)
74
- command = make_simple_command(:delete, 'v3/{+name}', options)
75
- command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
76
- command.response_class = Google::Apis::MonitoringV3::Empty
77
- command.params['name'] = name unless name.nil?
78
- command.query['fields'] = fields unless fields.nil?
79
- command.query['quotaUser'] = quota_user unless quota_user.nil?
80
- execute_or_queue_command(command, &block)
81
- end
82
-
83
- # Lists the existing groups.
52
+ # Lists time series that match a filter. This method does not require a
53
+ # Stackdriver account.
84
54
  # @param [String] name
85
- # The project whose groups are to be listed. The format is "projects/`
55
+ # The project on which to execute the request. The format is "projects/`
86
56
  # project_id_or_number`".
87
57
  # @param [String] page_token
88
58
  # If this field is not empty then it must contain the nextPageToken value
89
59
  # returned by a previous call to this method. Using this field causes the method
90
60
  # to return additional results from the previous method call.
61
+ # @param [String] aggregation_per_series_aligner
62
+ # The approach to be used to align individual time series. Not all alignment
63
+ # functions may be applied to all time series, depending on the metric type and
64
+ # value type of the original time series. Alignment may change the metric type
65
+ # or the value type of the time series.Time series data must be aligned in order
66
+ # to perform cross-time series reduction. If crossSeriesReducer is specified,
67
+ # then perSeriesAligner must be specified and not equal ALIGN_NONE and
68
+ # alignmentPeriod must be specified; otherwise, an error is returned.
69
+ # @param [String] interval_start_time
70
+ # Optional. The beginning of the time interval. The default value for the start
71
+ # time is the end time. The start time must not be later than the end time.
72
+ # @param [String] view
73
+ # Specifies which information is returned about the time series.
74
+ # @param [String] secondary_aggregation_cross_series_reducer
75
+ # The approach to be used to combine time series. Not all reducer functions may
76
+ # be applied to all time series, depending on the metric type and the value type
77
+ # of the original time series. Reduction may change the metric type of value
78
+ # type of the time series.Time series data must be aligned in order to perform
79
+ # cross-time series reduction. If crossSeriesReducer is specified, then
80
+ # perSeriesAligner must be specified and not equal ALIGN_NONE and
81
+ # alignmentPeriod must be specified; otherwise, an error is returned.
82
+ # @param [Array<String>, String] secondary_aggregation_group_by_fields
83
+ # The set of fields to preserve when crossSeriesReducer is specified. The
84
+ # groupByFields determine how the time series are partitioned into subsets prior
85
+ # to applying the aggregation function. Each subset contains time series that
86
+ # have the same value for each of the grouping fields. Each individual time
87
+ # series is a member of exactly one subset. The crossSeriesReducer is applied to
88
+ # each subset of time series. It is not possible to reduce across different
89
+ # resource types, so this field implicitly contains resource.type. Fields not
90
+ # specified in groupByFields are aggregated away. If groupByFields is not
91
+ # specified and all the time series have the same resource type, then the time
92
+ # series are aggregated into a single output time series. If crossSeriesReducer
93
+ # is not defined, this field is ignored.
94
+ # @param [Array<String>, String] aggregation_group_by_fields
95
+ # The set of fields to preserve when crossSeriesReducer is specified. The
96
+ # groupByFields determine how the time series are partitioned into subsets prior
97
+ # to applying the aggregation function. Each subset contains time series that
98
+ # have the same value for each of the grouping fields. Each individual time
99
+ # series is a member of exactly one subset. The crossSeriesReducer is applied to
100
+ # each subset of time series. It is not possible to reduce across different
101
+ # resource types, so this field implicitly contains resource.type. Fields not
102
+ # specified in groupByFields are aggregated away. If groupByFields is not
103
+ # specified and all the time series have the same resource type, then the time
104
+ # series are aggregated into a single output time series. If crossSeriesReducer
105
+ # is not defined, this field is ignored.
106
+ # @param [String] interval_end_time
107
+ # Required. The end of the time interval.
108
+ # @param [String] aggregation_alignment_period
109
+ # The alignment period for per-time series alignment. If present,
110
+ # alignmentPeriod must be at least 60 seconds. After per-time series alignment,
111
+ # each time series will contain data points only on the period boundaries. If
112
+ # perSeriesAligner is not specified or equals ALIGN_NONE, then this field is
113
+ # ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then
114
+ # this field must be defined; otherwise an error is returned.
115
+ # @param [String] secondary_aggregation_alignment_period
116
+ # The alignment period for per-time series alignment. If present,
117
+ # alignmentPeriod must be at least 60 seconds. After per-time series alignment,
118
+ # each time series will contain data points only on the period boundaries. If
119
+ # perSeriesAligner is not specified or equals ALIGN_NONE, then this field is
120
+ # ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then
121
+ # this field must be defined; otherwise an error is returned.
91
122
  # @param [Fixnum] page_size
92
- # A positive number that is the maximum number of results to return.
93
- # @param [String] ancestors_of_group
94
- # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns
95
- # groups that are ancestors of the specified group. The groups are returned in
96
- # order, starting with the immediate parent and ending with the most distant
97
- # ancestor. If the specified group has no immediate parent, the results are
98
- # empty.
99
- # @param [String] children_of_group
100
- # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns
101
- # groups whose parentName field contains the group name. If no groups have this
102
- # parent, the results are empty.
103
- # @param [String] descendants_of_group
104
- # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns the
105
- # descendants of the specified group. This is a superset of the results returned
106
- # by the childrenOfGroup filter, and includes children-of-children, and so forth.
123
+ # A positive number that is the maximum number of results to return. When view
124
+ # field sets to FULL, it limits the number of Points server will return; if view
125
+ # field is HEADERS, it limits the number of TimeSeries server will return.
126
+ # @param [String] secondary_aggregation_per_series_aligner
127
+ # The approach to be used to align individual time series. Not all alignment
128
+ # functions may be applied to all time series, depending on the metric type and
129
+ # value type of the original time series. Alignment may change the metric type
130
+ # or the value type of the time series.Time series data must be aligned in order
131
+ # to perform cross-time series reduction. If crossSeriesReducer is specified,
132
+ # then perSeriesAligner must be specified and not equal ALIGN_NONE and
133
+ # alignmentPeriod must be specified; otherwise, an error is returned.
134
+ # @param [String] order_by
135
+ # Specifies the order in which the points of the time series should be returned.
136
+ # By default, results are not ordered. Currently, this field must be left blank.
137
+ # @param [String] aggregation_cross_series_reducer
138
+ # The approach to be used to combine time series. Not all reducer functions may
139
+ # be applied to all time series, depending on the metric type and the value type
140
+ # of the original time series. Reduction may change the metric type of value
141
+ # type of the time series.Time series data must be aligned in order to perform
142
+ # cross-time series reduction. If crossSeriesReducer is specified, then
143
+ # perSeriesAligner must be specified and not equal ALIGN_NONE and
144
+ # alignmentPeriod must be specified; otherwise, an error is returned.
145
+ # @param [String] filter
146
+ # A monitoring filter that specifies which time series should be returned. The
147
+ # filter must specify a single metric type, and can additionally specify metric
148
+ # labels and other information. For example:
149
+ # metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
150
+ # metric.label.instance_name = "my-instance-name"
107
151
  # @param [String] fields
108
152
  # Selector specifying which fields to include in a partial response.
109
153
  # @param [String] quota_user
@@ -113,69 +157,46 @@ module Google
113
157
  # Request-specific options
114
158
  #
115
159
  # @yield [result, err] Result & error if block supplied
116
- # @yieldparam result [Google::Apis::MonitoringV3::ListGroupsResponse] parsed result object
160
+ # @yieldparam result [Google::Apis::MonitoringV3::ListTimeSeriesResponse] parsed result object
117
161
  # @yieldparam err [StandardError] error object if request failed
118
162
  #
119
- # @return [Google::Apis::MonitoringV3::ListGroupsResponse]
163
+ # @return [Google::Apis::MonitoringV3::ListTimeSeriesResponse]
120
164
  #
121
165
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
122
166
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
123
167
  # @raise [Google::Apis::AuthorizationError] Authorization is required
124
- def list_project_groups(name, page_token: nil, page_size: nil, ancestors_of_group: nil, children_of_group: nil, descendants_of_group: nil, fields: nil, quota_user: nil, options: nil, &block)
125
- command = make_simple_command(:get, 'v3/{+name}/groups', options)
126
- command.response_representation = Google::Apis::MonitoringV3::ListGroupsResponse::Representation
127
- command.response_class = Google::Apis::MonitoringV3::ListGroupsResponse
168
+ def list_project_time_series(name, page_token: nil, aggregation_per_series_aligner: nil, interval_start_time: nil, view: nil, secondary_aggregation_cross_series_reducer: nil, secondary_aggregation_group_by_fields: nil, aggregation_group_by_fields: nil, interval_end_time: nil, aggregation_alignment_period: nil, secondary_aggregation_alignment_period: nil, page_size: nil, secondary_aggregation_per_series_aligner: nil, order_by: nil, aggregation_cross_series_reducer: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
169
+ command = make_simple_command(:get, 'v3/{+name}/timeSeries', options)
170
+ command.response_representation = Google::Apis::MonitoringV3::ListTimeSeriesResponse::Representation
171
+ command.response_class = Google::Apis::MonitoringV3::ListTimeSeriesResponse
128
172
  command.params['name'] = name unless name.nil?
129
173
  command.query['pageToken'] = page_token unless page_token.nil?
174
+ command.query['aggregation.perSeriesAligner'] = aggregation_per_series_aligner unless aggregation_per_series_aligner.nil?
175
+ command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
176
+ command.query['view'] = view unless view.nil?
177
+ command.query['secondaryAggregation.crossSeriesReducer'] = secondary_aggregation_cross_series_reducer unless secondary_aggregation_cross_series_reducer.nil?
178
+ command.query['secondaryAggregation.groupByFields'] = secondary_aggregation_group_by_fields unless secondary_aggregation_group_by_fields.nil?
179
+ command.query['aggregation.groupByFields'] = aggregation_group_by_fields unless aggregation_group_by_fields.nil?
180
+ command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
181
+ command.query['aggregation.alignmentPeriod'] = aggregation_alignment_period unless aggregation_alignment_period.nil?
182
+ command.query['secondaryAggregation.alignmentPeriod'] = secondary_aggregation_alignment_period unless secondary_aggregation_alignment_period.nil?
130
183
  command.query['pageSize'] = page_size unless page_size.nil?
131
- command.query['ancestorsOfGroup'] = ancestors_of_group unless ancestors_of_group.nil?
132
- command.query['childrenOfGroup'] = children_of_group unless children_of_group.nil?
133
- command.query['descendantsOfGroup'] = descendants_of_group unless descendants_of_group.nil?
134
- command.query['fields'] = fields unless fields.nil?
135
- command.query['quotaUser'] = quota_user unless quota_user.nil?
136
- execute_or_queue_command(command, &block)
137
- end
138
-
139
- # Gets a single group.
140
- # @param [String] name
141
- # The group to retrieve. The format is "projects/`project_id_or_number`/groups/`
142
- # group_id`".
143
- # @param [String] fields
144
- # Selector specifying which fields to include in a partial response.
145
- # @param [String] quota_user
146
- # Available to use for quota purposes for server-side applications. Can be any
147
- # arbitrary string assigned to a user, but should not exceed 40 characters.
148
- # @param [Google::Apis::RequestOptions] options
149
- # Request-specific options
150
- #
151
- # @yield [result, err] Result & error if block supplied
152
- # @yieldparam result [Google::Apis::MonitoringV3::Group] parsed result object
153
- # @yieldparam err [StandardError] error object if request failed
154
- #
155
- # @return [Google::Apis::MonitoringV3::Group]
156
- #
157
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
158
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
159
- # @raise [Google::Apis::AuthorizationError] Authorization is required
160
- def get_project_group(name, fields: nil, quota_user: nil, options: nil, &block)
161
- command = make_simple_command(:get, 'v3/{+name}', options)
162
- command.response_representation = Google::Apis::MonitoringV3::Group::Representation
163
- command.response_class = Google::Apis::MonitoringV3::Group
164
- command.params['name'] = name unless name.nil?
184
+ command.query['secondaryAggregation.perSeriesAligner'] = secondary_aggregation_per_series_aligner unless secondary_aggregation_per_series_aligner.nil?
185
+ command.query['orderBy'] = order_by unless order_by.nil?
186
+ command.query['aggregation.crossSeriesReducer'] = aggregation_cross_series_reducer unless aggregation_cross_series_reducer.nil?
187
+ command.query['filter'] = filter unless filter.nil?
165
188
  command.query['fields'] = fields unless fields.nil?
166
189
  command.query['quotaUser'] = quota_user unless quota_user.nil?
167
190
  execute_or_queue_command(command, &block)
168
191
  end
169
192
 
170
- # Updates an existing group. You can change any group attributes except name.
193
+ # Creates or adds data to one or more time series. The response is empty if all
194
+ # time series in the request were written. If any time series could not be
195
+ # written, a corresponding failure message is included in the error response.
171
196
  # @param [String] name
172
- # Output only. The name of this group. The format is "projects/`
173
- # project_id_or_number`/groups/`group_id`". When creating a group, this field is
174
- # ignored and a new name is created consisting of the project specified in the
175
- # call to CreateGroup and a unique `group_id` that is generated automatically.
176
- # @param [Google::Apis::MonitoringV3::Group] group_object
177
- # @param [Boolean] validate_only
178
- # If true, validate this request but do not update the existing group.
197
+ # The project on which to execute the request. The format is "projects/`
198
+ # project_id_or_number`".
199
+ # @param [Google::Apis::MonitoringV3::CreateTimeSeriesRequest] create_time_series_request_object
179
200
  # @param [String] fields
180
201
  # Selector specifying which fields to include in a partial response.
181
202
  # @param [String] quota_user
@@ -185,34 +206,42 @@ module Google
185
206
  # Request-specific options
186
207
  #
187
208
  # @yield [result, err] Result & error if block supplied
188
- # @yieldparam result [Google::Apis::MonitoringV3::Group] parsed result object
209
+ # @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
189
210
  # @yieldparam err [StandardError] error object if request failed
190
211
  #
191
- # @return [Google::Apis::MonitoringV3::Group]
212
+ # @return [Google::Apis::MonitoringV3::Empty]
192
213
  #
193
214
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
194
215
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
195
216
  # @raise [Google::Apis::AuthorizationError] Authorization is required
196
- def update_project_group(name, group_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
197
- command = make_simple_command(:put, 'v3/{+name}', options)
198
- command.request_representation = Google::Apis::MonitoringV3::Group::Representation
199
- command.request_object = group_object
200
- command.response_representation = Google::Apis::MonitoringV3::Group::Representation
201
- command.response_class = Google::Apis::MonitoringV3::Group
217
+ def create_time_series(name, create_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
218
+ command = make_simple_command(:post, 'v3/{+name}/timeSeries', options)
219
+ command.request_representation = Google::Apis::MonitoringV3::CreateTimeSeriesRequest::Representation
220
+ command.request_object = create_time_series_request_object
221
+ command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
222
+ command.response_class = Google::Apis::MonitoringV3::Empty
202
223
  command.params['name'] = name unless name.nil?
203
- command.query['validateOnly'] = validate_only unless validate_only.nil?
204
224
  command.query['fields'] = fields unless fields.nil?
205
225
  command.query['quotaUser'] = quota_user unless quota_user.nil?
206
226
  execute_or_queue_command(command, &block)
207
227
  end
208
228
 
209
- # Creates a new group.
229
+ # Lists metric descriptors that match a filter. This method does not require a
230
+ # Stackdriver account.
210
231
  # @param [String] name
211
- # The project in which to create the group. The format is "projects/`
232
+ # The project on which to execute the request. The format is "projects/`
212
233
  # project_id_or_number`".
213
- # @param [Google::Apis::MonitoringV3::Group] group_object
214
- # @param [Boolean] validate_only
215
- # If true, validate this request but do not create the group.
234
+ # @param [String] page_token
235
+ # If this field is not empty then it must contain the nextPageToken value
236
+ # returned by a previous call to this method. Using this field causes the method
237
+ # to return additional results from the previous method call.
238
+ # @param [Fixnum] page_size
239
+ # A positive number that is the maximum number of results to return.
240
+ # @param [String] filter
241
+ # If this field is empty, all custom and system-defined metric descriptors are
242
+ # returned. Otherwise, the filter specifies which metric descriptors are to be
243
+ # returned. For example, the following filter matches all custom metrics:
244
+ # metric.type = starts_with("custom.googleapis.com/")
216
245
  # @param [String] fields
217
246
  # Selector specifying which fields to include in a partial response.
218
247
  # @param [String] quota_user
@@ -222,48 +251,33 @@ module Google
222
251
  # Request-specific options
223
252
  #
224
253
  # @yield [result, err] Result & error if block supplied
225
- # @yieldparam result [Google::Apis::MonitoringV3::Group] parsed result object
254
+ # @yieldparam result [Google::Apis::MonitoringV3::ListMetricDescriptorsResponse] parsed result object
226
255
  # @yieldparam err [StandardError] error object if request failed
227
256
  #
228
- # @return [Google::Apis::MonitoringV3::Group]
257
+ # @return [Google::Apis::MonitoringV3::ListMetricDescriptorsResponse]
229
258
  #
230
259
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
231
260
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
232
261
  # @raise [Google::Apis::AuthorizationError] Authorization is required
233
- def create_project_group(name, group_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
234
- command = make_simple_command(:post, 'v3/{+name}/groups', options)
235
- command.request_representation = Google::Apis::MonitoringV3::Group::Representation
236
- command.request_object = group_object
237
- command.response_representation = Google::Apis::MonitoringV3::Group::Representation
238
- command.response_class = Google::Apis::MonitoringV3::Group
262
+ def list_project_metric_descriptors(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
263
+ command = make_simple_command(:get, 'v3/{+name}/metricDescriptors', options)
264
+ command.response_representation = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse::Representation
265
+ command.response_class = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse
239
266
  command.params['name'] = name unless name.nil?
240
- command.query['validateOnly'] = validate_only unless validate_only.nil?
267
+ command.query['pageToken'] = page_token unless page_token.nil?
268
+ command.query['pageSize'] = page_size unless page_size.nil?
269
+ command.query['filter'] = filter unless filter.nil?
241
270
  command.query['fields'] = fields unless fields.nil?
242
271
  command.query['quotaUser'] = quota_user unless quota_user.nil?
243
272
  execute_or_queue_command(command, &block)
244
273
  end
245
274
 
246
- # Lists the monitored resources that are members of a group.
275
+ # Gets a single metric descriptor. This method does not require a Stackdriver
276
+ # account.
247
277
  # @param [String] name
248
- # The group whose members are listed. The format is "projects/`
249
- # project_id_or_number`/groups/`group_id`".
250
- # @param [String] filter
251
- # An optional list filter describing the members to be returned. The filter may
252
- # reference the type, labels, and metadata of monitored resources that comprise
253
- # the group. For example, to return only resources representing Compute Engine
254
- # VM instances, use this filter:
255
- # resource.type = "gce_instance"
256
- # @param [String] page_token
257
- # If this field is not empty then it must contain the nextPageToken value
258
- # returned by a previous call to this method. Using this field causes the method
259
- # to return additional results from the previous method call.
260
- # @param [Fixnum] page_size
261
- # A positive number that is the maximum number of results to return.
262
- # @param [String] interval_start_time
263
- # Optional. The beginning of the time interval. The default value for the start
264
- # time is the end time. The start time must not be later than the end time.
265
- # @param [String] interval_end_time
266
- # Required. The end of the time interval.
278
+ # The metric descriptor on which to execute the request. The format is "projects/
279
+ # `project_id_or_number`/metricDescriptors/`metric_id`". An example value of `
280
+ # metric_id` is "compute.googleapis.com/instance/disk/read_bytes_count".
267
281
  # @param [String] fields
268
282
  # Selector specifying which fields to include in a partial response.
269
283
  # @param [String] quota_user
@@ -273,36 +287,30 @@ module Google
273
287
  # Request-specific options
274
288
  #
275
289
  # @yield [result, err] Result & error if block supplied
276
- # @yieldparam result [Google::Apis::MonitoringV3::ListGroupMembersResponse] parsed result object
290
+ # @yieldparam result [Google::Apis::MonitoringV3::MetricDescriptor] parsed result object
277
291
  # @yieldparam err [StandardError] error object if request failed
278
292
  #
279
- # @return [Google::Apis::MonitoringV3::ListGroupMembersResponse]
293
+ # @return [Google::Apis::MonitoringV3::MetricDescriptor]
280
294
  #
281
295
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
282
296
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
283
297
  # @raise [Google::Apis::AuthorizationError] Authorization is required
284
- 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)
285
- command = make_simple_command(:get, 'v3/{+name}/members', options)
286
- command.response_representation = Google::Apis::MonitoringV3::ListGroupMembersResponse::Representation
287
- command.response_class = Google::Apis::MonitoringV3::ListGroupMembersResponse
298
+ def get_project_metric_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
299
+ command = make_simple_command(:get, 'v3/{+name}', options)
300
+ command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
301
+ command.response_class = Google::Apis::MonitoringV3::MetricDescriptor
288
302
  command.params['name'] = name unless name.nil?
289
- command.query['filter'] = filter unless filter.nil?
290
- command.query['pageToken'] = page_token unless page_token.nil?
291
- command.query['pageSize'] = page_size unless page_size.nil?
292
- command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
293
- command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
294
303
  command.query['fields'] = fields unless fields.nil?
295
304
  command.query['quotaUser'] = quota_user unless quota_user.nil?
296
305
  execute_or_queue_command(command, &block)
297
306
  end
298
307
 
299
- # Stackdriver Monitoring Agent only: Creates a new time series.<aside class="
300
- # caution">This method is only for use by the Stackdriver Monitoring Agent. Use
301
- # projects.timeSeries.create instead.</aside>
308
+ # Creates a new metric descriptor. User-created metric descriptors define custom
309
+ # metrics.
302
310
  # @param [String] name
303
- # The project in which to create the time series. The format is "projects/
304
- # PROJECT_ID_OR_NUMBER".
305
- # @param [Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest] create_collectd_time_series_request_object
311
+ # The project on which to execute the request. The format is "projects/`
312
+ # project_id_or_number`".
313
+ # @param [Google::Apis::MonitoringV3::MetricDescriptor] metric_descriptor_object
306
314
  # @param [String] fields
307
315
  # Selector specifying which fields to include in a partial response.
308
316
  # @param [String] quota_user
@@ -312,33 +320,31 @@ module Google
312
320
  # Request-specific options
313
321
  #
314
322
  # @yield [result, err] Result & error if block supplied
315
- # @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
323
+ # @yieldparam result [Google::Apis::MonitoringV3::MetricDescriptor] parsed result object
316
324
  # @yieldparam err [StandardError] error object if request failed
317
325
  #
318
- # @return [Google::Apis::MonitoringV3::Empty]
326
+ # @return [Google::Apis::MonitoringV3::MetricDescriptor]
319
327
  #
320
328
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
321
329
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
322
330
  # @raise [Google::Apis::AuthorizationError] Authorization is required
323
- def create_collectd_time_series(name, create_collectd_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
324
- command = make_simple_command(:post, 'v3/{+name}/collectdTimeSeries', options)
325
- command.request_representation = Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest::Representation
326
- command.request_object = create_collectd_time_series_request_object
327
- command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
328
- command.response_class = Google::Apis::MonitoringV3::Empty
331
+ def create_project_metric_descriptor(name, metric_descriptor_object = nil, fields: nil, quota_user: nil, options: nil, &block)
332
+ command = make_simple_command(:post, 'v3/{+name}/metricDescriptors', options)
333
+ command.request_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
334
+ command.request_object = metric_descriptor_object
335
+ command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
336
+ command.response_class = Google::Apis::MonitoringV3::MetricDescriptor
329
337
  command.params['name'] = name unless name.nil?
330
338
  command.query['fields'] = fields unless fields.nil?
331
339
  command.query['quotaUser'] = quota_user unless quota_user.nil?
332
340
  execute_or_queue_command(command, &block)
333
341
  end
334
342
 
335
- # Creates or adds data to one or more time series. The response is empty if all
336
- # time series in the request were written. If any time series could not be
337
- # written, a corresponding failure message is included in the error response.
343
+ # Deletes a metric descriptor. Only user-created custom metrics can be deleted.
338
344
  # @param [String] name
339
- # The project on which to execute the request. The format is "projects/`
340
- # project_id_or_number`".
341
- # @param [Google::Apis::MonitoringV3::CreateTimeSeriesRequest] create_time_series_request_object
345
+ # The metric descriptor on which to execute the request. The format is "projects/
346
+ # `project_id_or_number`/metricDescriptors/`metric_id`". An example of `
347
+ # metric_id` is: "custom.googleapis.com/my_test_metric".
342
348
  # @param [String] fields
343
349
  # Selector specifying which fields to include in a partial response.
344
350
  # @param [String] quota_user
@@ -356,10 +362,8 @@ module Google
356
362
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
357
363
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
358
364
  # @raise [Google::Apis::AuthorizationError] Authorization is required
359
- def create_time_series(name, create_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
360
- command = make_simple_command(:post, 'v3/{+name}/timeSeries', options)
361
- command.request_representation = Google::Apis::MonitoringV3::CreateTimeSeriesRequest::Representation
362
- command.request_object = create_time_series_request_object
365
+ def delete_project_metric_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
366
+ command = make_simple_command(:delete, 'v3/{+name}', options)
363
367
  command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
364
368
  command.response_class = Google::Apis::MonitoringV3::Empty
365
369
  command.params['name'] = name unless name.nil?
@@ -368,70 +372,22 @@ module Google
368
372
  execute_or_queue_command(command, &block)
369
373
  end
370
374
 
371
- # Lists time series that match a filter. This method does not require a
372
- # Stackdriver account.
375
+ # Lists monitored resource descriptors that match a filter. This method does not
376
+ # require a Stackdriver account.
373
377
  # @param [String] name
374
378
  # The project on which to execute the request. The format is "projects/`
375
379
  # project_id_or_number`".
376
- # @param [String] aggregation_per_series_aligner
377
- # The approach to be used to align individual time series. Not all alignment
378
- # functions may be applied to all time series, depending on the metric type and
379
- # value type of the original time series. Alignment may change the metric type
380
- # or the value type of the time series.Time series data must be aligned in order
381
- # to perform cross-time series reduction. If crossSeriesReducer is specified,
382
- # then perSeriesAligner must be specified and not equal ALIGN_NONE and
383
- # alignmentPeriod must be specified; otherwise, an error is returned.
384
380
  # @param [String] page_token
385
381
  # If this field is not empty then it must contain the nextPageToken value
386
382
  # returned by a previous call to this method. Using this field causes the method
387
383
  # to return additional results from the previous method call.
388
- # @param [String] interval_start_time
389
- # Optional. The beginning of the time interval. The default value for the start
390
- # time is the end time. The start time must not be later than the end time.
391
- # @param [String] view
392
- # Specifies which information is returned about the time series.
393
- # @param [Array<String>, String] aggregation_group_by_fields
394
- # The set of fields to preserve when crossSeriesReducer is specified. The
395
- # groupByFields determine how the time series are partitioned into subsets prior
396
- # to applying the aggregation function. Each subset contains time series that
397
- # have the same value for each of the grouping fields. Each individual time
398
- # series is a member of exactly one subset. The crossSeriesReducer is applied to
399
- # each subset of time series. It is not possible to reduce across different
400
- # resource types, so this field implicitly contains resource.type. Fields not
401
- # specified in groupByFields are aggregated away. If groupByFields is not
402
- # specified and all the time series have the same resource type, then the time
403
- # series are aggregated into a single output time series. If crossSeriesReducer
404
- # is not defined, this field is ignored.
405
- # @param [String] interval_end_time
406
- # Required. The end of the time interval.
407
- # @param [String] aggregation_alignment_period
408
- # The alignment period for per-time series alignment. If present,
409
- # alignmentPeriod must be at least 60 seconds. After per-time series alignment,
410
- # each time series will contain data points only on the period boundaries. If
411
- # perSeriesAligner is not specified or equals ALIGN_NONE, then this field is
412
- # ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then
413
- # this field must be defined; otherwise an error is returned.
414
384
  # @param [Fixnum] page_size
415
- # A positive number that is the maximum number of results to return. When view
416
- # field sets to FULL, it limits the number of Points server will return; if view
417
- # field is HEADERS, it limits the number of TimeSeries server will return.
418
- # @param [String] order_by
419
- # Specifies the order in which the points of the time series should be returned.
420
- # By default, results are not ordered. Currently, this field must be left blank.
421
- # @param [String] aggregation_cross_series_reducer
422
- # The approach to be used to combine time series. Not all reducer functions may
423
- # be applied to all time series, depending on the metric type and the value type
424
- # of the original time series. Reduction may change the metric type of value
425
- # type of the time series.Time series data must be aligned in order to perform
426
- # cross-time series reduction. If crossSeriesReducer is specified, then
427
- # perSeriesAligner must be specified and not equal ALIGN_NONE and
428
- # alignmentPeriod must be specified; otherwise, an error is returned.
429
- # @param [String] filter
430
- # A monitoring filter that specifies which time series should be returned. The
431
- # filter must specify a single metric type, and can additionally specify metric
432
- # labels and other information. For example:
433
- # metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
434
- # metric.label.instance_name = "my-instance-name"
385
+ # A positive number that is the maximum number of results to return.
386
+ # @param [String] filter
387
+ # An optional filter describing the descriptors to be returned. The filter can
388
+ # reference the descriptor's type and labels. For example, the following filter
389
+ # returns only Google Compute Engine descriptors that have an id label:
390
+ # resource.type = starts_with("gce_") AND resource.label:id
435
391
  # @param [String] fields
436
392
  # Selector specifying which fields to include in a partial response.
437
393
  # @param [String] quota_user
@@ -441,40 +397,64 @@ module Google
441
397
  # Request-specific options
442
398
  #
443
399
  # @yield [result, err] Result & error if block supplied
444
- # @yieldparam result [Google::Apis::MonitoringV3::ListTimeSeriesResponse] parsed result object
400
+ # @yieldparam result [Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse] parsed result object
445
401
  # @yieldparam err [StandardError] error object if request failed
446
402
  #
447
- # @return [Google::Apis::MonitoringV3::ListTimeSeriesResponse]
403
+ # @return [Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse]
448
404
  #
449
405
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
450
406
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
451
407
  # @raise [Google::Apis::AuthorizationError] Authorization is required
452
- def list_project_time_series(name, aggregation_per_series_aligner: nil, page_token: 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, aggregation_cross_series_reducer: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
453
- command = make_simple_command(:get, 'v3/{+name}/timeSeries', options)
454
- command.response_representation = Google::Apis::MonitoringV3::ListTimeSeriesResponse::Representation
455
- command.response_class = Google::Apis::MonitoringV3::ListTimeSeriesResponse
408
+ def list_project_monitored_resource_descriptors(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
409
+ command = make_simple_command(:get, 'v3/{+name}/monitoredResourceDescriptors', options)
410
+ command.response_representation = Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse::Representation
411
+ command.response_class = Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse
456
412
  command.params['name'] = name unless name.nil?
457
- command.query['aggregation.perSeriesAligner'] = aggregation_per_series_aligner unless aggregation_per_series_aligner.nil?
458
413
  command.query['pageToken'] = page_token unless page_token.nil?
459
- command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
460
- command.query['view'] = view unless view.nil?
461
- command.query['aggregation.groupByFields'] = aggregation_group_by_fields unless aggregation_group_by_fields.nil?
462
- command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
463
- command.query['aggregation.alignmentPeriod'] = aggregation_alignment_period unless aggregation_alignment_period.nil?
464
414
  command.query['pageSize'] = page_size unless page_size.nil?
465
- command.query['orderBy'] = order_by unless order_by.nil?
466
- command.query['aggregation.crossSeriesReducer'] = aggregation_cross_series_reducer unless aggregation_cross_series_reducer.nil?
467
415
  command.query['filter'] = filter unless filter.nil?
468
416
  command.query['fields'] = fields unless fields.nil?
469
417
  command.query['quotaUser'] = quota_user unless quota_user.nil?
470
418
  execute_or_queue_command(command, &block)
471
419
  end
472
420
 
473
- # Deletes a metric descriptor. Only user-created custom metrics can be deleted.
421
+ # Gets a single monitored resource descriptor. This method does not require a
422
+ # Stackdriver account.
474
423
  # @param [String] name
475
- # The metric descriptor on which to execute the request. The format is "projects/
476
- # `project_id_or_number`/metricDescriptors/`metric_id`". An example of `
477
- # metric_id` is: "custom.googleapis.com/my_test_metric".
424
+ # The monitored resource descriptor to get. The format is "projects/`
425
+ # project_id_or_number`/monitoredResourceDescriptors/`resource_type`". The `
426
+ # resource_type` is a predefined type, such as cloudsql_database.
427
+ # @param [String] fields
428
+ # Selector specifying which fields to include in a partial response.
429
+ # @param [String] quota_user
430
+ # Available to use for quota purposes for server-side applications. Can be any
431
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
432
+ # @param [Google::Apis::RequestOptions] options
433
+ # Request-specific options
434
+ #
435
+ # @yield [result, err] Result & error if block supplied
436
+ # @yieldparam result [Google::Apis::MonitoringV3::MonitoredResourceDescriptor] parsed result object
437
+ # @yieldparam err [StandardError] error object if request failed
438
+ #
439
+ # @return [Google::Apis::MonitoringV3::MonitoredResourceDescriptor]
440
+ #
441
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
442
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
443
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
444
+ def get_project_monitored_resource_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
445
+ command = make_simple_command(:get, 'v3/{+name}', options)
446
+ command.response_representation = Google::Apis::MonitoringV3::MonitoredResourceDescriptor::Representation
447
+ command.response_class = Google::Apis::MonitoringV3::MonitoredResourceDescriptor
448
+ command.params['name'] = name unless name.nil?
449
+ command.query['fields'] = fields unless fields.nil?
450
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
451
+ execute_or_queue_command(command, &block)
452
+ end
453
+
454
+ # Deletes an existing group.
455
+ # @param [String] name
456
+ # The group to delete. The format is "projects/`project_id_or_number`/groups/`
457
+ # group_id`".
478
458
  # @param [String] fields
479
459
  # Selector specifying which fields to include in a partial response.
480
460
  # @param [String] quota_user
@@ -492,7 +472,7 @@ module Google
492
472
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
493
473
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
494
474
  # @raise [Google::Apis::AuthorizationError] Authorization is required
495
- def delete_project_metric_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
475
+ def delete_project_group(name, fields: nil, quota_user: nil, options: nil, &block)
496
476
  command = make_simple_command(:delete, 'v3/{+name}', options)
497
477
  command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
498
478
  command.response_class = Google::Apis::MonitoringV3::Empty
@@ -502,22 +482,30 @@ module Google
502
482
  execute_or_queue_command(command, &block)
503
483
  end
504
484
 
505
- # Lists metric descriptors that match a filter. This method does not require a
506
- # Stackdriver account.
485
+ # Lists the existing groups.
507
486
  # @param [String] name
508
- # The project on which to execute the request. The format is "projects/`
487
+ # The project whose groups are to be listed. The format is "projects/`
509
488
  # project_id_or_number`".
510
- # @param [Fixnum] page_size
511
- # A positive number that is the maximum number of results to return.
512
- # @param [String] filter
513
- # If this field is empty, all custom and system-defined metric descriptors are
514
- # returned. Otherwise, the filter specifies which metric descriptors are to be
515
- # returned. For example, the following filter matches all custom metrics:
516
- # metric.type = starts_with("custom.googleapis.com/")
517
489
  # @param [String] page_token
518
490
  # If this field is not empty then it must contain the nextPageToken value
519
491
  # returned by a previous call to this method. Using this field causes the method
520
492
  # to return additional results from the previous method call.
493
+ # @param [Fixnum] page_size
494
+ # A positive number that is the maximum number of results to return.
495
+ # @param [String] ancestors_of_group
496
+ # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns
497
+ # groups that are ancestors of the specified group. The groups are returned in
498
+ # order, starting with the immediate parent and ending with the most distant
499
+ # ancestor. If the specified group has no immediate parent, the results are
500
+ # empty.
501
+ # @param [String] children_of_group
502
+ # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns
503
+ # groups whose parentName field contains the group name. If no groups have this
504
+ # parent, the results are empty.
505
+ # @param [String] descendants_of_group
506
+ # A group name: "projects/`project_id_or_number`/groups/`group_id`". Returns the
507
+ # descendants of the specified group. This is a superset of the results returned
508
+ # by the childrenOfGroup filter, and includes children-of-children, and so forth.
521
509
  # @param [String] fields
522
510
  # Selector specifying which fields to include in a partial response.
523
511
  # @param [String] quota_user
@@ -527,33 +515,33 @@ module Google
527
515
  # Request-specific options
528
516
  #
529
517
  # @yield [result, err] Result & error if block supplied
530
- # @yieldparam result [Google::Apis::MonitoringV3::ListMetricDescriptorsResponse] parsed result object
518
+ # @yieldparam result [Google::Apis::MonitoringV3::ListGroupsResponse] parsed result object
531
519
  # @yieldparam err [StandardError] error object if request failed
532
520
  #
533
- # @return [Google::Apis::MonitoringV3::ListMetricDescriptorsResponse]
521
+ # @return [Google::Apis::MonitoringV3::ListGroupsResponse]
534
522
  #
535
523
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
536
524
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
537
525
  # @raise [Google::Apis::AuthorizationError] Authorization is required
538
- def list_project_metric_descriptors(name, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
539
- command = make_simple_command(:get, 'v3/{+name}/metricDescriptors', options)
540
- command.response_representation = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse::Representation
541
- command.response_class = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse
526
+ def list_project_groups(name, page_token: nil, page_size: nil, ancestors_of_group: nil, children_of_group: nil, descendants_of_group: nil, fields: nil, quota_user: nil, options: nil, &block)
527
+ command = make_simple_command(:get, 'v3/{+name}/groups', options)
528
+ command.response_representation = Google::Apis::MonitoringV3::ListGroupsResponse::Representation
529
+ command.response_class = Google::Apis::MonitoringV3::ListGroupsResponse
542
530
  command.params['name'] = name unless name.nil?
543
- command.query['pageSize'] = page_size unless page_size.nil?
544
- command.query['filter'] = filter unless filter.nil?
545
531
  command.query['pageToken'] = page_token unless page_token.nil?
532
+ command.query['pageSize'] = page_size unless page_size.nil?
533
+ command.query['ancestorsOfGroup'] = ancestors_of_group unless ancestors_of_group.nil?
534
+ command.query['childrenOfGroup'] = children_of_group unless children_of_group.nil?
535
+ command.query['descendantsOfGroup'] = descendants_of_group unless descendants_of_group.nil?
546
536
  command.query['fields'] = fields unless fields.nil?
547
537
  command.query['quotaUser'] = quota_user unless quota_user.nil?
548
538
  execute_or_queue_command(command, &block)
549
539
  end
550
540
 
551
- # Gets a single metric descriptor. This method does not require a Stackdriver
552
- # account.
541
+ # Gets a single group.
553
542
  # @param [String] name
554
- # The metric descriptor on which to execute the request. The format is "projects/
555
- # `project_id_or_number`/metricDescriptors/`metric_id`". An example value of `
556
- # metric_id` is "compute.googleapis.com/instance/disk/read_bytes_count".
543
+ # The group to retrieve. The format is "projects/`project_id_or_number`/groups/`
544
+ # group_id`".
557
545
  # @param [String] fields
558
546
  # Selector specifying which fields to include in a partial response.
559
547
  # @param [String] quota_user
@@ -563,30 +551,33 @@ module Google
563
551
  # Request-specific options
564
552
  #
565
553
  # @yield [result, err] Result & error if block supplied
566
- # @yieldparam result [Google::Apis::MonitoringV3::MetricDescriptor] parsed result object
554
+ # @yieldparam result [Google::Apis::MonitoringV3::Group] parsed result object
567
555
  # @yieldparam err [StandardError] error object if request failed
568
556
  #
569
- # @return [Google::Apis::MonitoringV3::MetricDescriptor]
557
+ # @return [Google::Apis::MonitoringV3::Group]
570
558
  #
571
559
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
572
560
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
573
561
  # @raise [Google::Apis::AuthorizationError] Authorization is required
574
- def get_project_metric_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
562
+ def get_project_group(name, fields: nil, quota_user: nil, options: nil, &block)
575
563
  command = make_simple_command(:get, 'v3/{+name}', options)
576
- command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
577
- command.response_class = Google::Apis::MonitoringV3::MetricDescriptor
564
+ command.response_representation = Google::Apis::MonitoringV3::Group::Representation
565
+ command.response_class = Google::Apis::MonitoringV3::Group
578
566
  command.params['name'] = name unless name.nil?
579
567
  command.query['fields'] = fields unless fields.nil?
580
568
  command.query['quotaUser'] = quota_user unless quota_user.nil?
581
569
  execute_or_queue_command(command, &block)
582
570
  end
583
571
 
584
- # Creates a new metric descriptor. User-created metric descriptors define custom
585
- # metrics.
572
+ # Updates an existing group. You can change any group attributes except name.
586
573
  # @param [String] name
587
- # The project on which to execute the request. The format is "projects/`
588
- # project_id_or_number`".
589
- # @param [Google::Apis::MonitoringV3::MetricDescriptor] metric_descriptor_object
574
+ # Output only. The name of this group. The format is "projects/`
575
+ # project_id_or_number`/groups/`group_id`". When creating a group, this field is
576
+ # ignored and a new name is created consisting of the project specified in the
577
+ # call to CreateGroup and a unique `group_id` that is generated automatically.
578
+ # @param [Google::Apis::MonitoringV3::Group] group_object
579
+ # @param [Boolean] validate_only
580
+ # If true, validate this request but do not update the existing group.
590
581
  # @param [String] fields
591
582
  # Selector specifying which fields to include in a partial response.
592
583
  # @param [String] quota_user
@@ -596,42 +587,85 @@ module Google
596
587
  # Request-specific options
597
588
  #
598
589
  # @yield [result, err] Result & error if block supplied
599
- # @yieldparam result [Google::Apis::MonitoringV3::MetricDescriptor] parsed result object
590
+ # @yieldparam result [Google::Apis::MonitoringV3::Group] parsed result object
600
591
  # @yieldparam err [StandardError] error object if request failed
601
592
  #
602
- # @return [Google::Apis::MonitoringV3::MetricDescriptor]
593
+ # @return [Google::Apis::MonitoringV3::Group]
603
594
  #
604
595
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
605
596
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
606
597
  # @raise [Google::Apis::AuthorizationError] Authorization is required
607
- def create_project_metric_descriptor(name, metric_descriptor_object = nil, fields: nil, quota_user: nil, options: nil, &block)
608
- command = make_simple_command(:post, 'v3/{+name}/metricDescriptors', options)
609
- command.request_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
610
- command.request_object = metric_descriptor_object
611
- command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
612
- command.response_class = Google::Apis::MonitoringV3::MetricDescriptor
598
+ def update_project_group(name, group_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
599
+ command = make_simple_command(:put, 'v3/{+name}', options)
600
+ command.request_representation = Google::Apis::MonitoringV3::Group::Representation
601
+ command.request_object = group_object
602
+ command.response_representation = Google::Apis::MonitoringV3::Group::Representation
603
+ command.response_class = Google::Apis::MonitoringV3::Group
613
604
  command.params['name'] = name unless name.nil?
605
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
614
606
  command.query['fields'] = fields unless fields.nil?
615
607
  command.query['quotaUser'] = quota_user unless quota_user.nil?
616
608
  execute_or_queue_command(command, &block)
617
609
  end
618
610
 
619
- # Lists monitored resource descriptors that match a filter. This method does not
620
- # require a Stackdriver account.
611
+ # Creates a new group.
621
612
  # @param [String] name
622
- # The project on which to execute the request. The format is "projects/`
613
+ # The project in which to create the group. The format is "projects/`
623
614
  # project_id_or_number`".
624
- # @param [String] filter
625
- # An optional filter describing the descriptors to be returned. The filter can
626
- # reference the descriptor's type and labels. For example, the following filter
627
- # returns only Google Compute Engine descriptors that have an id label:
628
- # resource.type = starts_with("gce_") AND resource.label:id
615
+ # @param [Google::Apis::MonitoringV3::Group] group_object
616
+ # @param [Boolean] validate_only
617
+ # If true, validate this request but do not create the group.
618
+ # @param [String] fields
619
+ # Selector specifying which fields to include in a partial response.
620
+ # @param [String] quota_user
621
+ # Available to use for quota purposes for server-side applications. Can be any
622
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
623
+ # @param [Google::Apis::RequestOptions] options
624
+ # Request-specific options
625
+ #
626
+ # @yield [result, err] Result & error if block supplied
627
+ # @yieldparam result [Google::Apis::MonitoringV3::Group] parsed result object
628
+ # @yieldparam err [StandardError] error object if request failed
629
+ #
630
+ # @return [Google::Apis::MonitoringV3::Group]
631
+ #
632
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
633
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
634
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
635
+ def create_project_group(name, group_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
636
+ command = make_simple_command(:post, 'v3/{+name}/groups', options)
637
+ command.request_representation = Google::Apis::MonitoringV3::Group::Representation
638
+ command.request_object = group_object
639
+ command.response_representation = Google::Apis::MonitoringV3::Group::Representation
640
+ command.response_class = Google::Apis::MonitoringV3::Group
641
+ command.params['name'] = name unless name.nil?
642
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
643
+ command.query['fields'] = fields unless fields.nil?
644
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
645
+ execute_or_queue_command(command, &block)
646
+ end
647
+
648
+ # Lists the monitored resources that are members of a group.
649
+ # @param [String] name
650
+ # The group whose members are listed. The format is "projects/`
651
+ # project_id_or_number`/groups/`group_id`".
629
652
  # @param [String] page_token
630
653
  # If this field is not empty then it must contain the nextPageToken value
631
654
  # returned by a previous call to this method. Using this field causes the method
632
655
  # to return additional results from the previous method call.
633
656
  # @param [Fixnum] page_size
634
657
  # A positive number that is the maximum number of results to return.
658
+ # @param [String] interval_start_time
659
+ # Optional. The beginning of the time interval. The default value for the start
660
+ # time is the end time. The start time must not be later than the end time.
661
+ # @param [String] interval_end_time
662
+ # Required. The end of the time interval.
663
+ # @param [String] filter
664
+ # An optional list filter describing the members to be returned. The filter may
665
+ # reference the type, labels, and metadata of monitored resources that comprise
666
+ # the group. For example, to return only resources representing Compute Engine
667
+ # VM instances, use this filter:
668
+ # resource.type = "gce_instance"
635
669
  # @param [String] fields
636
670
  # Selector specifying which fields to include in a partial response.
637
671
  # @param [String] quota_user
@@ -641,33 +675,36 @@ module Google
641
675
  # Request-specific options
642
676
  #
643
677
  # @yield [result, err] Result & error if block supplied
644
- # @yieldparam result [Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse] parsed result object
678
+ # @yieldparam result [Google::Apis::MonitoringV3::ListGroupMembersResponse] parsed result object
645
679
  # @yieldparam err [StandardError] error object if request failed
646
680
  #
647
- # @return [Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse]
681
+ # @return [Google::Apis::MonitoringV3::ListGroupMembersResponse]
648
682
  #
649
683
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
650
684
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
651
685
  # @raise [Google::Apis::AuthorizationError] Authorization is required
652
- def list_project_monitored_resource_descriptors(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
653
- command = make_simple_command(:get, 'v3/{+name}/monitoredResourceDescriptors', options)
654
- command.response_representation = Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse::Representation
655
- command.response_class = Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse
686
+ def list_project_group_members(name, page_token: nil, page_size: nil, interval_start_time: nil, interval_end_time: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
687
+ command = make_simple_command(:get, 'v3/{+name}/members', options)
688
+ command.response_representation = Google::Apis::MonitoringV3::ListGroupMembersResponse::Representation
689
+ command.response_class = Google::Apis::MonitoringV3::ListGroupMembersResponse
656
690
  command.params['name'] = name unless name.nil?
657
- command.query['filter'] = filter unless filter.nil?
658
691
  command.query['pageToken'] = page_token unless page_token.nil?
659
692
  command.query['pageSize'] = page_size unless page_size.nil?
693
+ command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
694
+ command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
695
+ command.query['filter'] = filter unless filter.nil?
660
696
  command.query['fields'] = fields unless fields.nil?
661
697
  command.query['quotaUser'] = quota_user unless quota_user.nil?
662
698
  execute_or_queue_command(command, &block)
663
699
  end
664
700
 
665
- # Gets a single monitored resource descriptor. This method does not require a
666
- # Stackdriver account.
701
+ # Stackdriver Monitoring Agent only: Creates a new time series.<aside class="
702
+ # caution">This method is only for use by the Stackdriver Monitoring Agent. Use
703
+ # projects.timeSeries.create instead.</aside>
667
704
  # @param [String] name
668
- # The monitored resource descriptor to get. The format is "projects/`
669
- # project_id_or_number`/monitoredResourceDescriptors/`resource_type`". The `
670
- # resource_type` is a predefined type, such as cloudsql_database.
705
+ # The project in which to create the time series. The format is "projects/
706
+ # PROJECT_ID_OR_NUMBER".
707
+ # @param [Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest] create_collectd_time_series_request_object
671
708
  # @param [String] fields
672
709
  # Selector specifying which fields to include in a partial response.
673
710
  # @param [String] quota_user
@@ -677,18 +714,20 @@ module Google
677
714
  # Request-specific options
678
715
  #
679
716
  # @yield [result, err] Result & error if block supplied
680
- # @yieldparam result [Google::Apis::MonitoringV3::MonitoredResourceDescriptor] parsed result object
717
+ # @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
681
718
  # @yieldparam err [StandardError] error object if request failed
682
719
  #
683
- # @return [Google::Apis::MonitoringV3::MonitoredResourceDescriptor]
720
+ # @return [Google::Apis::MonitoringV3::Empty]
684
721
  #
685
722
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
686
723
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
687
724
  # @raise [Google::Apis::AuthorizationError] Authorization is required
688
- def get_project_monitored_resource_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
689
- command = make_simple_command(:get, 'v3/{+name}', options)
690
- command.response_representation = Google::Apis::MonitoringV3::MonitoredResourceDescriptor::Representation
691
- command.response_class = Google::Apis::MonitoringV3::MonitoredResourceDescriptor
725
+ def create_collectd_time_series(name, create_collectd_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
726
+ command = make_simple_command(:post, 'v3/{+name}/collectdTimeSeries', options)
727
+ command.request_representation = Google::Apis::MonitoringV3::CreateCollectdTimeSeriesRequest::Representation
728
+ command.request_object = create_collectd_time_series_request_object
729
+ command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
730
+ command.response_class = Google::Apis::MonitoringV3::Empty
692
731
  command.params['name'] = name unless name.nil?
693
732
  command.query['fields'] = fields unless fields.nil?
694
733
  command.query['quotaUser'] = quota_user unless quota_user.nil?