google-api-client 0.10.2 → 0.10.3

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