google-api-client 0.13.0 → 0.13.1

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