google-api-client 0.11.2 → 0.11.3

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