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