google-api-client 0.25.0 → 0.26.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (265) hide show
  1. checksums.yaml +4 -4
  2. data/{CONTRIBUTING.md → .github/CONTRIBUTING.md} +0 -0
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
  4. data/.github/ISSUE_TEMPLATE/feature_request.md +21 -0
  5. data/.github/ISSUE_TEMPLATE/support_request.md +7 -0
  6. data/.kokoro/build.bat +8 -0
  7. data/.kokoro/build.sh +36 -0
  8. data/.kokoro/common.cfg +22 -0
  9. data/.kokoro/continuous/common.cfg +20 -0
  10. data/.kokoro/continuous/linux.cfg +15 -0
  11. data/.kokoro/continuous/osx.cfg +3 -0
  12. data/.kokoro/continuous/windows.cfg +3 -0
  13. data/.kokoro/osx.sh +35 -0
  14. data/.kokoro/presubmit/common.cfg +19 -0
  15. data/.kokoro/presubmit/linux.cfg +14 -0
  16. data/.kokoro/presubmit/osx.cfg +3 -0
  17. data/.kokoro/presubmit/windows.cfg +3 -0
  18. data/.kokoro/trampoline.sh +24 -0
  19. data/.kokoro/windows.sh +32 -0
  20. data/CHANGELOG.md +83 -0
  21. data/Gemfile +2 -2
  22. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  23. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
  24. data/generated/google/apis/alertcenter_v1beta1.rb +5 -3
  25. data/generated/google/apis/alertcenter_v1beta1/classes.rb +110 -101
  26. data/generated/google/apis/alertcenter_v1beta1/representations.rb +13 -0
  27. data/generated/google/apis/alertcenter_v1beta1/service.rb +83 -76
  28. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  29. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +7 -0
  30. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +2 -0
  31. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +1 -1
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidenterprise_v1/classes.rb +129 -44
  34. data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
  35. data/generated/google/apis/androidenterprise_v1/service.rb +218 -0
  36. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  37. data/generated/google/apis/androidmanagement_v1/classes.rb +1 -1
  38. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  39. data/generated/google/apis/androidpublisher_v3/classes.rb +8 -0
  40. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  41. data/generated/google/apis/appengine_v1.rb +1 -1
  42. data/generated/google/apis/appengine_v1beta.rb +1 -1
  43. data/generated/google/apis/bigquery_v2.rb +1 -1
  44. data/generated/google/apis/bigquery_v2/classes.rb +87 -29
  45. data/generated/google/apis/bigquery_v2/representations.rb +21 -0
  46. data/generated/google/apis/bigquery_v2/service.rb +7 -9
  47. data/generated/google/apis/calendar_v3.rb +2 -2
  48. data/generated/google/apis/calendar_v3/classes.rb +14 -6
  49. data/generated/google/apis/classroom_v1.rb +1 -1
  50. data/generated/google/apis/classroom_v1/service.rb +1 -1
  51. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  52. data/generated/google/apis/cloudasset_v1beta1/classes.rb +14 -10
  53. data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
  54. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  55. data/generated/google/apis/clouddebugger_v2/classes.rb +2 -2
  56. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  57. data/generated/google/apis/cloudfunctions_v1/classes.rb +2 -3
  58. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  59. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +2 -3
  60. data/generated/google/apis/cloudiot_v1.rb +1 -1
  61. data/generated/google/apis/cloudiot_v1/classes.rb +127 -0
  62. data/generated/google/apis/cloudiot_v1/representations.rb +70 -0
  63. data/generated/google/apis/cloudiot_v1/service.rb +172 -2
  64. data/generated/google/apis/cloudkms_v1.rb +1 -1
  65. data/generated/google/apis/cloudkms_v1/service.rb +107 -0
  66. data/generated/google/apis/{cloudiot_v1beta1.rb → cloudscheduler_v1beta1.rb} +8 -12
  67. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +882 -0
  68. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +264 -0
  69. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +445 -0
  70. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  71. data/generated/google/apis/cloudsearch_v1/classes.rb +79 -1
  72. data/generated/google/apis/cloudsearch_v1/representations.rb +44 -0
  73. data/generated/google/apis/cloudsearch_v1/service.rb +88 -3
  74. data/generated/google/apis/composer_v1.rb +1 -1
  75. data/generated/google/apis/composer_v1/classes.rb +9 -0
  76. data/generated/google/apis/composer_v1/representations.rb +1 -0
  77. data/generated/google/apis/compute_alpha.rb +1 -1
  78. data/generated/google/apis/compute_alpha/classes.rb +938 -117
  79. data/generated/google/apis/compute_alpha/representations.rb +310 -2
  80. data/generated/google/apis/compute_alpha/service.rb +1203 -245
  81. data/generated/google/apis/compute_beta.rb +1 -1
  82. data/generated/google/apis/compute_beta/classes.rb +1175 -219
  83. data/generated/google/apis/compute_beta/representations.rb +375 -2
  84. data/generated/google/apis/compute_beta/service.rb +907 -139
  85. data/generated/google/apis/compute_v1.rb +1 -1
  86. data/generated/google/apis/compute_v1/classes.rb +1485 -143
  87. data/generated/google/apis/compute_v1/representations.rb +503 -0
  88. data/generated/google/apis/compute_v1/service.rb +1375 -85
  89. data/generated/google/apis/container_v1.rb +3 -3
  90. data/generated/google/apis/container_v1/classes.rb +99 -6
  91. data/generated/google/apis/container_v1/representations.rb +39 -0
  92. data/generated/google/apis/container_v1/service.rb +2 -2
  93. data/generated/google/apis/container_v1beta1.rb +3 -3
  94. data/generated/google/apis/container_v1beta1/classes.rb +162 -9
  95. data/generated/google/apis/container_v1beta1/representations.rb +80 -0
  96. data/generated/google/apis/container_v1beta1/service.rb +3 -3
  97. data/generated/google/apis/content_v2.rb +1 -1
  98. data/generated/google/apis/content_v2/classes.rb +40 -32
  99. data/generated/google/apis/content_v2/representations.rb +0 -1
  100. data/generated/google/apis/content_v2/service.rb +3 -3
  101. data/generated/google/apis/content_v2_1.rb +35 -0
  102. data/generated/google/apis/content_v2_1/classes.rb +9104 -0
  103. data/generated/google/apis/content_v2_1/representations.rb +3967 -0
  104. data/generated/google/apis/content_v2_1/service.rb +3463 -0
  105. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  106. data/generated/google/apis/dataflow_v1b3/classes.rb +82 -0
  107. data/generated/google/apis/dataflow_v1b3/representations.rb +33 -0
  108. data/generated/google/apis/dataflow_v1b3/service.rb +97 -6
  109. data/generated/google/apis/dataproc_v1.rb +1 -1
  110. data/generated/google/apis/dataproc_v1/classes.rb +15 -1
  111. data/generated/google/apis/dataproc_v1/representations.rb +2 -0
  112. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  113. data/generated/google/apis/dataproc_v1beta2/classes.rb +125 -1
  114. data/generated/google/apis/dataproc_v1beta2/representations.rb +41 -0
  115. data/generated/google/apis/dialogflow_v2.rb +1 -1
  116. data/generated/google/apis/dialogflow_v2/classes.rb +13 -6
  117. data/generated/google/apis/dialogflow_v2/service.rb +2 -0
  118. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  119. data/generated/google/apis/dialogflow_v2beta1/classes.rb +26 -6
  120. data/generated/google/apis/dialogflow_v2beta1/representations.rb +12 -0
  121. data/generated/google/apis/dialogflow_v2beta1/service.rb +261 -12
  122. data/generated/google/apis/dlp_v2.rb +1 -1
  123. data/generated/google/apis/dlp_v2/classes.rb +4 -4
  124. data/generated/google/apis/dns_v1beta2.rb +1 -1
  125. data/generated/google/apis/dns_v1beta2/classes.rb +326 -0
  126. data/generated/google/apis/dns_v1beta2/representations.rb +149 -0
  127. data/generated/google/apis/dns_v1beta2/service.rb +246 -0
  128. data/generated/google/apis/drive_v2.rb +3 -3
  129. data/generated/google/apis/drive_v3.rb +3 -3
  130. data/generated/google/apis/driveactivity_v2.rb +37 -0
  131. data/generated/google/apis/driveactivity_v2/classes.rb +1388 -0
  132. data/generated/google/apis/driveactivity_v2/representations.rb +799 -0
  133. data/generated/google/apis/driveactivity_v2/service.rb +89 -0
  134. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  135. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +8 -1
  136. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
  137. data/generated/google/apis/firebasehosting_v1beta1.rb +3 -2
  138. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +43 -17
  139. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +13 -0
  140. data/generated/google/apis/firebasehosting_v1beta1/service.rb +74 -1
  141. data/generated/google/apis/firestore_v1.rb +1 -1
  142. data/generated/google/apis/firestore_v1/classes.rb +2225 -520
  143. data/generated/google/apis/firestore_v1/representations.rb +800 -33
  144. data/generated/google/apis/firestore_v1/service.rb +526 -0
  145. data/generated/google/apis/fitness_v1.rb +1 -1
  146. data/generated/google/apis/fitness_v1/classes.rb +1 -2
  147. data/generated/google/apis/fitness_v1/service.rb +7 -3
  148. data/generated/google/apis/games_management_v1management.rb +1 -4
  149. data/generated/google/apis/games_v1.rb +1 -4
  150. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  151. data/generated/google/apis/genomics_v2alpha1/classes.rb +6 -1
  152. data/generated/google/apis/gmail_v1.rb +2 -2
  153. data/generated/google/apis/iap_v1.rb +34 -0
  154. data/generated/google/apis/iap_v1/classes.rb +308 -0
  155. data/generated/google/apis/iap_v1/representations.rb +126 -0
  156. data/generated/google/apis/iap_v1/service.rb +725 -0
  157. data/generated/google/apis/iap_v1beta1.rb +1 -1
  158. data/generated/google/apis/iap_v1beta1/classes.rb +0 -132
  159. data/generated/google/apis/iap_v1beta1/representations.rb +0 -32
  160. data/generated/google/apis/jobs_v2.rb +1 -1
  161. data/generated/google/apis/jobs_v2/classes.rb +8 -9
  162. data/generated/google/apis/jobs_v3.rb +1 -1
  163. data/generated/google/apis/jobs_v3/classes.rb +6 -6
  164. data/generated/google/apis/jobs_v3/service.rb +8 -8
  165. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  166. data/generated/google/apis/jobs_v3p1beta1/classes.rb +9 -9
  167. data/generated/google/apis/jobs_v3p1beta1/service.rb +8 -8
  168. data/generated/google/apis/monitoring_v3.rb +1 -1
  169. data/generated/google/apis/monitoring_v3/classes.rb +20 -7
  170. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  171. data/generated/google/apis/monitoring_v3/service.rb +0 -365
  172. data/generated/google/apis/pagespeedonline_v5.rb +32 -0
  173. data/generated/google/apis/pagespeedonline_v5/classes.rb +724 -0
  174. data/generated/google/apis/pagespeedonline_v5/representations.rb +315 -0
  175. data/generated/google/apis/pagespeedonline_v5/service.rb +116 -0
  176. data/generated/google/apis/people_v1.rb +3 -3
  177. data/generated/google/apis/pubsub_v1.rb +1 -1
  178. data/generated/google/apis/pubsub_v1/classes.rb +63 -12
  179. data/generated/google/apis/pubsub_v1/representations.rb +15 -0
  180. data/generated/google/apis/pubsub_v1/service.rb +26 -18
  181. data/generated/google/apis/redis_v1.rb +2 -3
  182. data/generated/google/apis/redis_v1/service.rb +1 -2
  183. data/generated/google/apis/redis_v1beta1.rb +2 -3
  184. data/generated/google/apis/redis_v1beta1/service.rb +1 -2
  185. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  186. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +2 -2
  187. data/generated/google/apis/script_v1.rb +24 -6
  188. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  189. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +66 -1
  190. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
  191. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +89 -0
  192. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  193. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  194. data/generated/google/apis/servicemanagement_v1/classes.rb +7 -0
  195. data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
  196. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  197. data/generated/google/apis/servicenetworking_v1beta/classes.rb +84 -37
  198. data/generated/google/apis/servicenetworking_v1beta/representations.rb +15 -0
  199. data/generated/google/apis/servicenetworking_v1beta/service.rb +132 -43
  200. data/generated/google/apis/serviceusage_v1.rb +1 -1
  201. data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
  202. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  203. data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
  204. data/generated/google/apis/sheets_v4.rb +4 -4
  205. data/generated/google/apis/slides_v1.rb +4 -4
  206. data/generated/google/apis/slides_v1/classes.rb +187 -2
  207. data/generated/google/apis/slides_v1/representations.rb +67 -0
  208. data/generated/google/apis/slides_v1/service.rb +4 -3
  209. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  210. data/generated/google/apis/sourcerepo_v1/service.rb +1 -1
  211. data/generated/google/apis/speech_v1.rb +1 -1
  212. data/generated/google/apis/speech_v1/classes.rb +58 -10
  213. data/generated/google/apis/speech_v1/representations.rb +29 -1
  214. data/generated/google/apis/{speech_v1beta1.rb → speech_v1p1beta1.rb} +6 -6
  215. data/generated/google/apis/speech_v1p1beta1/classes.rb +922 -0
  216. data/generated/google/apis/speech_v1p1beta1/representations.rb +294 -0
  217. data/generated/google/apis/{speech_v1beta1 → speech_v1p1beta1}/service.rb +33 -35
  218. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  219. data/generated/google/apis/sqladmin_v1beta4/classes.rb +64 -3
  220. data/generated/google/apis/sqladmin_v1beta4/representations.rb +31 -0
  221. data/generated/google/apis/storage_v1.rb +1 -1
  222. data/generated/google/apis/storage_v1/classes.rb +54 -0
  223. data/generated/google/apis/storage_v1/representations.rb +31 -0
  224. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  225. data/generated/google/apis/streetviewpublish_v1/classes.rb +26 -0
  226. data/generated/google/apis/streetviewpublish_v1/representations.rb +4 -0
  227. data/generated/google/apis/streetviewpublish_v1/service.rb +29 -3
  228. data/generated/google/apis/tasks_v1.rb +1 -1
  229. data/generated/google/apis/testing_v1.rb +1 -1
  230. data/generated/google/apis/testing_v1/classes.rb +49 -19
  231. data/generated/google/apis/testing_v1/representations.rb +20 -2
  232. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  233. data/generated/google/apis/toolresults_v1beta3/classes.rb +77 -70
  234. data/generated/google/apis/vault_v1.rb +1 -1
  235. data/generated/google/apis/vault_v1/classes.rb +78 -7
  236. data/generated/google/apis/vault_v1/representations.rb +34 -1
  237. data/generated/google/apis/vault_v1/service.rb +141 -0
  238. data/generated/google/apis/vision_v1.rb +1 -1
  239. data/generated/google/apis/vision_v1/classes.rb +33 -0
  240. data/generated/google/apis/vision_v1/representations.rb +16 -0
  241. data/generated/google/apis/vision_v1/service.rb +2 -2
  242. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  243. data/generated/google/apis/vision_v1p1beta1/classes.rb +33 -0
  244. data/generated/google/apis/vision_v1p1beta1/representations.rb +16 -0
  245. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  246. data/generated/google/apis/vision_v1p2beta1/classes.rb +33 -0
  247. data/generated/google/apis/vision_v1p2beta1/representations.rb +16 -0
  248. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  249. data/google-api-client.gemspec +1 -1
  250. data/lib/google/api_client/auth/installed_app.rb +17 -2
  251. data/lib/google/api_client/client_secrets.rb +1 -1
  252. data/lib/google/apis/core/download.rb +2 -2
  253. data/lib/google/apis/errors.rb +9 -0
  254. data/lib/google/apis/generator/annotator.rb +2 -2
  255. data/lib/google/apis/version.rb +1 -1
  256. metadata +46 -17
  257. data/generated/google/apis/cloudiot_v1beta1/classes.rb +0 -959
  258. data/generated/google/apis/cloudiot_v1beta1/representations.rb +0 -375
  259. data/generated/google/apis/cloudiot_v1beta1/service.rb +0 -618
  260. data/generated/google/apis/dfareporting_v3_0.rb +0 -40
  261. data/generated/google/apis/dfareporting_v3_0/classes.rb +0 -12119
  262. data/generated/google/apis/dfareporting_v3_0/representations.rb +0 -4336
  263. data/generated/google/apis/dfareporting_v3_0/service.rb +0 -8701
  264. data/generated/google/apis/speech_v1beta1/classes.rb +0 -480
  265. data/generated/google/apis/speech_v1beta1/representations.rb +0 -194
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/monitoring/api/
28
28
  module MonitoringV3
29
29
  VERSION = 'V3'
30
- REVISION = '20181027'
30
+ REVISION = '20181205'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -646,7 +646,8 @@ module Google
646
646
  # to each of several time series. The new data point must be more recent than
647
647
  # any other point in its time series. Each TimeSeries value must fully specify a
648
648
  # unique time series by supplying all label values for the metric and the
649
- # monitored resource.
649
+ # monitored resource.The maximum number of TimeSeries objects per Create request
650
+ # is 200.
650
651
  # Corresponds to the JSON property `timeSeries`
651
652
  # @return [Array<Google::Apis::MonitoringV3::TimeSeries>]
652
653
  attr_accessor :time_series
@@ -1237,6 +1238,11 @@ module Google
1237
1238
  # @return [String]
1238
1239
  attr_accessor :peer_project_id
1239
1240
 
1241
+ # The current operational state of the internal checker.
1242
+ # Corresponds to the JSON property `state`
1243
+ # @return [String]
1244
+ attr_accessor :state
1245
+
1240
1246
  def initialize(**args)
1241
1247
  update!(**args)
1242
1248
  end
@@ -1248,6 +1254,7 @@ module Google
1248
1254
  @name = args[:name] if args.key?(:name)
1249
1255
  @network = args[:network] if args.key?(:network)
1250
1256
  @peer_project_id = args[:peer_project_id] if args.key?(:peer_project_id)
1257
+ @state = args[:state] if args.key?(:state)
1251
1258
  end
1252
1259
  end
1253
1260
 
@@ -2321,9 +2328,12 @@ module Google
2321
2328
  class Point
2322
2329
  include Google::Apis::Core::Hashable
2323
2330
 
2324
- # A time interval extending just after a start time through an end time. If the
2325
- # start time is the same as the end time, then the interval represents a single
2326
- # point in time.
2331
+ # A time interval extending just after a start time through an end time. The
2332
+ # start time must not be later than the end time. The default start time is the
2333
+ # end time, making the startTime value technically optional. Whether this is
2334
+ # useful depends on the MetricKind. If the start and end times are the same, the
2335
+ # interval represents a point in time. This is appropriate for GAUGE metrics,
2336
+ # but not for DELTA and CUMULATIVE metrics, which cover a span of time.
2327
2337
  # Corresponds to the JSON property `interval`
2328
2338
  # @return [Google::Apis::MonitoringV3::TimeInterval]
2329
2339
  attr_accessor :interval
@@ -2543,9 +2553,12 @@ module Google
2543
2553
  end
2544
2554
  end
2545
2555
 
2546
- # A time interval extending just after a start time through an end time. If the
2547
- # start time is the same as the end time, then the interval represents a single
2548
- # point in time.
2556
+ # A time interval extending just after a start time through an end time. The
2557
+ # start time must not be later than the end time. The default start time is the
2558
+ # end time, making the startTime value technically optional. Whether this is
2559
+ # useful depends on the MetricKind. If the start and end times are the same, the
2560
+ # interval represents a point in time. This is appropriate for GAUGE metrics,
2561
+ # but not for DELTA and CUMULATIVE metrics, which cover a span of time.
2549
2562
  class TimeInterval
2550
2563
  include Google::Apis::Core::Hashable
2551
2564
 
@@ -686,6 +686,7 @@ module Google
686
686
  property :name, as: 'name'
687
687
  property :network, as: 'network'
688
688
  property :peer_project_id, as: 'peerProjectId'
689
+ property :state, as: 'state'
689
690
  end
690
691
  end
691
692
 
@@ -49,231 +49,6 @@ module Google
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
- # Creates a new metric descriptor. User-created metric descriptors define custom
53
- # metrics.
54
- # @param [String] name
55
- # The project on which to execute the request. The format is "projects/`
56
- # project_id_or_number`".
57
- # @param [Google::Apis::MonitoringV3::MetricDescriptor] metric_descriptor_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::MetricDescriptor] parsed result object
68
- # @yieldparam err [StandardError] error object if request failed
69
- #
70
- # @return [Google::Apis::MonitoringV3::MetricDescriptor]
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_metric_descriptor(name, metric_descriptor_object = nil, fields: nil, quota_user: nil, options: nil, &block)
76
- command = make_simple_command(:post, 'v3/{+name}/metricDescriptors', options)
77
- command.request_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
78
- command.request_object = metric_descriptor_object
79
- command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
80
- command.response_class = Google::Apis::MonitoringV3::MetricDescriptor
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
- # Deletes a metric descriptor. Only user-created custom metrics can be deleted.
88
- # @param [String] name
89
- # The metric descriptor on which to execute the request. The format is "projects/
90
- # `project_id_or_number`/metricDescriptors/`metric_id`". An example of `
91
- # metric_id` is: "custom.googleapis.com/my_test_metric".
92
- # @param [String] fields
93
- # Selector specifying which fields to include in a partial response.
94
- # @param [String] quota_user
95
- # Available to use for quota purposes for server-side applications. Can be any
96
- # arbitrary string assigned to a user, but should not exceed 40 characters.
97
- # @param [Google::Apis::RequestOptions] options
98
- # Request-specific options
99
- #
100
- # @yield [result, err] Result & error if block supplied
101
- # @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
102
- # @yieldparam err [StandardError] error object if request failed
103
- #
104
- # @return [Google::Apis::MonitoringV3::Empty]
105
- #
106
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
107
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
108
- # @raise [Google::Apis::AuthorizationError] Authorization is required
109
- def delete_metric_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
110
- command = make_simple_command(:delete, 'v3/{+name}', options)
111
- command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
112
- command.response_class = Google::Apis::MonitoringV3::Empty
113
- command.params['name'] = name unless name.nil?
114
- command.query['fields'] = fields unless fields.nil?
115
- command.query['quotaUser'] = quota_user unless quota_user.nil?
116
- execute_or_queue_command(command, &block)
117
- end
118
-
119
- # Gets a single metric descriptor. This method does not require a Stackdriver
120
- # account.
121
- # @param [String] name
122
- # The metric descriptor on which to execute the request. The format is "projects/
123
- # `project_id_or_number`/metricDescriptors/`metric_id`". An example value of `
124
- # metric_id` is "compute.googleapis.com/instance/disk/read_bytes_count".
125
- # @param [String] fields
126
- # Selector specifying which fields to include in a partial response.
127
- # @param [String] quota_user
128
- # Available to use for quota purposes for server-side applications. Can be any
129
- # arbitrary string assigned to a user, but should not exceed 40 characters.
130
- # @param [Google::Apis::RequestOptions] options
131
- # Request-specific options
132
- #
133
- # @yield [result, err] Result & error if block supplied
134
- # @yieldparam result [Google::Apis::MonitoringV3::MetricDescriptor] parsed result object
135
- # @yieldparam err [StandardError] error object if request failed
136
- #
137
- # @return [Google::Apis::MonitoringV3::MetricDescriptor]
138
- #
139
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
140
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
141
- # @raise [Google::Apis::AuthorizationError] Authorization is required
142
- def get_metric_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
143
- command = make_simple_command(:get, 'v3/{+name}', options)
144
- command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
145
- command.response_class = Google::Apis::MonitoringV3::MetricDescriptor
146
- command.params['name'] = name unless name.nil?
147
- command.query['fields'] = fields unless fields.nil?
148
- command.query['quotaUser'] = quota_user unless quota_user.nil?
149
- execute_or_queue_command(command, &block)
150
- end
151
-
152
- # Lists metric descriptors that match a filter. This method does not require a
153
- # Stackdriver account.
154
- # @param [String] name
155
- # The project on which to execute the request. The format is "projects/`
156
- # project_id_or_number`".
157
- # @param [String] filter
158
- # If this field is empty, all custom and system-defined metric descriptors are
159
- # returned. Otherwise, the filter specifies which metric descriptors are to be
160
- # returned. For example, the following filter matches all custom metrics:
161
- # metric.type = starts_with("custom.googleapis.com/")
162
- # @param [Fixnum] page_size
163
- # A positive number that is the maximum number of results to return.
164
- # @param [String] page_token
165
- # If this field is not empty then it must contain the nextPageToken value
166
- # returned by a previous call to this method. Using this field causes the method
167
- # to return additional results from the previous method call.
168
- # @param [String] fields
169
- # Selector specifying which fields to include in a partial response.
170
- # @param [String] quota_user
171
- # Available to use for quota purposes for server-side applications. Can be any
172
- # arbitrary string assigned to a user, but should not exceed 40 characters.
173
- # @param [Google::Apis::RequestOptions] options
174
- # Request-specific options
175
- #
176
- # @yield [result, err] Result & error if block supplied
177
- # @yieldparam result [Google::Apis::MonitoringV3::ListMetricDescriptorsResponse] parsed result object
178
- # @yieldparam err [StandardError] error object if request failed
179
- #
180
- # @return [Google::Apis::MonitoringV3::ListMetricDescriptorsResponse]
181
- #
182
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
183
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
184
- # @raise [Google::Apis::AuthorizationError] Authorization is required
185
- def list_metric_descriptors(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
186
- command = make_simple_command(:get, 'v3/{+name}/metricDescriptors', options)
187
- command.response_representation = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse::Representation
188
- command.response_class = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse
189
- command.params['name'] = name unless name.nil?
190
- command.query['filter'] = filter unless filter.nil?
191
- command.query['pageSize'] = page_size unless page_size.nil?
192
- command.query['pageToken'] = page_token unless page_token.nil?
193
- command.query['fields'] = fields unless fields.nil?
194
- command.query['quotaUser'] = quota_user unless quota_user.nil?
195
- execute_or_queue_command(command, &block)
196
- end
197
-
198
- # Gets a single monitored resource descriptor. This method does not require a
199
- # Stackdriver account.
200
- # @param [String] name
201
- # The monitored resource descriptor to get. The format is "projects/`
202
- # project_id_or_number`/monitoredResourceDescriptors/`resource_type`". The `
203
- # resource_type` is a predefined type, such as cloudsql_database.
204
- # @param [String] fields
205
- # Selector specifying which fields to include in a partial response.
206
- # @param [String] quota_user
207
- # Available to use for quota purposes for server-side applications. Can be any
208
- # arbitrary string assigned to a user, but should not exceed 40 characters.
209
- # @param [Google::Apis::RequestOptions] options
210
- # Request-specific options
211
- #
212
- # @yield [result, err] Result & error if block supplied
213
- # @yieldparam result [Google::Apis::MonitoringV3::MonitoredResourceDescriptor] parsed result object
214
- # @yieldparam err [StandardError] error object if request failed
215
- #
216
- # @return [Google::Apis::MonitoringV3::MonitoredResourceDescriptor]
217
- #
218
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
219
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
220
- # @raise [Google::Apis::AuthorizationError] Authorization is required
221
- def get_monitored_resource_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
222
- command = make_simple_command(:get, 'v3/{+name}', options)
223
- command.response_representation = Google::Apis::MonitoringV3::MonitoredResourceDescriptor::Representation
224
- command.response_class = Google::Apis::MonitoringV3::MonitoredResourceDescriptor
225
- command.params['name'] = name unless name.nil?
226
- command.query['fields'] = fields unless fields.nil?
227
- command.query['quotaUser'] = quota_user unless quota_user.nil?
228
- execute_or_queue_command(command, &block)
229
- end
230
-
231
- # Lists monitored resource descriptors that match a filter. This method does not
232
- # require a Stackdriver account.
233
- # @param [String] name
234
- # The project on which to execute the request. The format is "projects/`
235
- # project_id_or_number`".
236
- # @param [String] filter
237
- # An optional filter describing the descriptors to be returned. The filter can
238
- # reference the descriptor's type and labels. For example, the following filter
239
- # returns only Google Compute Engine descriptors that have an id label:
240
- # resource.type = starts_with("gce_") AND resource.label:id
241
- # @param [Fixnum] page_size
242
- # A positive number that is the maximum number of results to return.
243
- # @param [String] page_token
244
- # If this field is not empty then it must contain the nextPageToken value
245
- # returned by a previous call to this method. Using this field causes the method
246
- # to return additional results from the previous method call.
247
- # @param [String] fields
248
- # Selector specifying which fields to include in a partial response.
249
- # @param [String] quota_user
250
- # Available to use for quota purposes for server-side applications. Can be any
251
- # arbitrary string assigned to a user, but should not exceed 40 characters.
252
- # @param [Google::Apis::RequestOptions] options
253
- # Request-specific options
254
- #
255
- # @yield [result, err] Result & error if block supplied
256
- # @yieldparam result [Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse] parsed result object
257
- # @yieldparam err [StandardError] error object if request failed
258
- #
259
- # @return [Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse]
260
- #
261
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
262
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
263
- # @raise [Google::Apis::AuthorizationError] Authorization is required
264
- def list_monitored_resource_descriptors(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
265
- command = make_simple_command(:get, 'v3/{+name}/monitoredResourceDescriptors', options)
266
- command.response_representation = Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse::Representation
267
- command.response_class = Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse
268
- command.params['name'] = name unless name.nil?
269
- command.query['filter'] = filter unless filter.nil?
270
- command.query['pageSize'] = page_size unless page_size.nil?
271
- command.query['pageToken'] = page_token unless page_token.nil?
272
- command.query['fields'] = fields unless fields.nil?
273
- command.query['quotaUser'] = quota_user unless quota_user.nil?
274
- execute_or_queue_command(command, &block)
275
- end
276
-
277
52
  # Creates a new alerting policy.
278
53
  # @param [String] name
279
54
  # The project in which to create the alerting policy. The format is projects/[
@@ -1720,146 +1495,6 @@ module Google
1720
1495
  execute_or_queue_command(command, &block)
1721
1496
  end
1722
1497
 
1723
- # Creates or adds data to one or more time series. The response is empty if all
1724
- # time series in the request were written. If any time series could not be
1725
- # written, a corresponding failure message is included in the error response.
1726
- # @param [String] name
1727
- # The project on which to execute the request. The format is "projects/`
1728
- # project_id_or_number`".
1729
- # @param [Google::Apis::MonitoringV3::CreateTimeSeriesRequest] create_time_series_request_object
1730
- # @param [String] fields
1731
- # Selector specifying which fields to include in a partial response.
1732
- # @param [String] quota_user
1733
- # Available to use for quota purposes for server-side applications. Can be any
1734
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1735
- # @param [Google::Apis::RequestOptions] options
1736
- # Request-specific options
1737
- #
1738
- # @yield [result, err] Result & error if block supplied
1739
- # @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
1740
- # @yieldparam err [StandardError] error object if request failed
1741
- #
1742
- # @return [Google::Apis::MonitoringV3::Empty]
1743
- #
1744
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1745
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1746
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1747
- def create_time_series(name, create_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1748
- command = make_simple_command(:post, 'v3/{+name}/timeSeries', options)
1749
- command.request_representation = Google::Apis::MonitoringV3::CreateTimeSeriesRequest::Representation
1750
- command.request_object = create_time_series_request_object
1751
- command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
1752
- command.response_class = Google::Apis::MonitoringV3::Empty
1753
- command.params['name'] = name unless name.nil?
1754
- command.query['fields'] = fields unless fields.nil?
1755
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1756
- execute_or_queue_command(command, &block)
1757
- end
1758
-
1759
- # Lists time series that match a filter. This method does not require a
1760
- # Stackdriver account.
1761
- # @param [String] name
1762
- # The project on which to execute the request. The format is "projects/`
1763
- # project_id_or_number`".
1764
- # @param [String] aggregation_alignment_period
1765
- # The alignment period for per-time series alignment. If present,
1766
- # alignmentPeriod must be at least 60 seconds. After per-time series alignment,
1767
- # each time series will contain data points only on the period boundaries. If
1768
- # perSeriesAligner is not specified or equals ALIGN_NONE, then this field is
1769
- # ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then
1770
- # this field must be defined; otherwise an error is returned.
1771
- # @param [String] aggregation_cross_series_reducer
1772
- # The approach to be used to combine time series. Not all reducer functions may
1773
- # be applied to all time series, depending on the metric type and the value type
1774
- # of the original time series. Reduction may change the metric type of value
1775
- # type of the time series.Time series data must be aligned in order to perform
1776
- # cross-time series reduction. If crossSeriesReducer is specified, then
1777
- # perSeriesAligner must be specified and not equal ALIGN_NONE and
1778
- # alignmentPeriod must be specified; otherwise, an error is returned.
1779
- # @param [Array<String>, String] aggregation_group_by_fields
1780
- # The set of fields to preserve when crossSeriesReducer is specified. The
1781
- # groupByFields determine how the time series are partitioned into subsets prior
1782
- # to applying the aggregation function. Each subset contains time series that
1783
- # have the same value for each of the grouping fields. Each individual time
1784
- # series is a member of exactly one subset. The crossSeriesReducer is applied to
1785
- # each subset of time series. It is not possible to reduce across different
1786
- # resource types, so this field implicitly contains resource.type. Fields not
1787
- # specified in groupByFields are aggregated away. If groupByFields is not
1788
- # specified and all the time series have the same resource type, then the time
1789
- # series are aggregated into a single output time series. If crossSeriesReducer
1790
- # is not defined, this field is ignored.
1791
- # @param [String] aggregation_per_series_aligner
1792
- # The approach to be used to align individual time series. Not all alignment
1793
- # functions may be applied to all time series, depending on the metric type and
1794
- # value type of the original time series. Alignment may change the metric type
1795
- # or the value type of the time series.Time series data must be aligned in order
1796
- # to perform cross-time series reduction. If crossSeriesReducer is specified,
1797
- # then perSeriesAligner must be specified and not equal ALIGN_NONE and
1798
- # alignmentPeriod must be specified; otherwise, an error is returned.
1799
- # @param [String] filter
1800
- # A monitoring filter that specifies which time series should be returned. The
1801
- # filter must specify a single metric type, and can additionally specify metric
1802
- # labels and other information. For example:
1803
- # metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
1804
- # metric.label.instance_name = "my-instance-name"
1805
- # @param [String] interval_end_time
1806
- # Required. The end of the time interval.
1807
- # @param [String] interval_start_time
1808
- # Optional. The beginning of the time interval. The default value for the start
1809
- # time is the end time. The start time must not be later than the end time.
1810
- # @param [String] order_by
1811
- # Unsupported: must be left blank. The points in each time series are returned
1812
- # in reverse time order.
1813
- # @param [Fixnum] page_size
1814
- # A positive number that is the maximum number of results to return. If
1815
- # page_size is empty or more than 100,000 results, the effective page_size is
1816
- # 100,000 results. If view is set to FULL, this is the maximum number of Points
1817
- # returned. If view is set to HEADERS, this is the maximum number of TimeSeries
1818
- # returned.
1819
- # @param [String] page_token
1820
- # If this field is not empty then it must contain the nextPageToken value
1821
- # returned by a previous call to this method. Using this field causes the method
1822
- # to return additional results from the previous method call.
1823
- # @param [String] view
1824
- # Specifies which information is returned about the time series.
1825
- # @param [String] fields
1826
- # Selector specifying which fields to include in a partial response.
1827
- # @param [String] quota_user
1828
- # Available to use for quota purposes for server-side applications. Can be any
1829
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1830
- # @param [Google::Apis::RequestOptions] options
1831
- # Request-specific options
1832
- #
1833
- # @yield [result, err] Result & error if block supplied
1834
- # @yieldparam result [Google::Apis::MonitoringV3::ListTimeSeriesResponse] parsed result object
1835
- # @yieldparam err [StandardError] error object if request failed
1836
- #
1837
- # @return [Google::Apis::MonitoringV3::ListTimeSeriesResponse]
1838
- #
1839
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1840
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1841
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1842
- def list_time_series(name, aggregation_alignment_period: nil, aggregation_cross_series_reducer: nil, aggregation_group_by_fields: nil, aggregation_per_series_aligner: nil, filter: nil, interval_end_time: nil, interval_start_time: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
1843
- command = make_simple_command(:get, 'v3/{+name}/timeSeries', options)
1844
- command.response_representation = Google::Apis::MonitoringV3::ListTimeSeriesResponse::Representation
1845
- command.response_class = Google::Apis::MonitoringV3::ListTimeSeriesResponse
1846
- command.params['name'] = name unless name.nil?
1847
- command.query['aggregation.alignmentPeriod'] = aggregation_alignment_period unless aggregation_alignment_period.nil?
1848
- command.query['aggregation.crossSeriesReducer'] = aggregation_cross_series_reducer unless aggregation_cross_series_reducer.nil?
1849
- command.query['aggregation.groupByFields'] = aggregation_group_by_fields unless aggregation_group_by_fields.nil?
1850
- command.query['aggregation.perSeriesAligner'] = aggregation_per_series_aligner unless aggregation_per_series_aligner.nil?
1851
- command.query['filter'] = filter unless filter.nil?
1852
- command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
1853
- command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
1854
- command.query['orderBy'] = order_by unless order_by.nil?
1855
- command.query['pageSize'] = page_size unless page_size.nil?
1856
- command.query['pageToken'] = page_token unless page_token.nil?
1857
- command.query['view'] = view unless view.nil?
1858
- command.query['fields'] = fields unless fields.nil?
1859
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1860
- execute_or_queue_command(command, &block)
1861
- end
1862
-
1863
1498
  # Returns the list of IPs that checkers run from
1864
1499
  # @param [Fixnum] page_size
1865
1500
  # The maximum number of results to return in a single response. The server may