google-api-client 0.9.8 → 0.10.2
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 +15 -8
- data/CHANGELOG.md +84 -0
- data/Gemfile +10 -2
- data/README.md +10 -2
- data/api_names.yaml +37172 -135
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +5 -5
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +256 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
- data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
- data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
- data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
- data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +360 -38
- data/generated/google/apis/bigquery_v2/representations.rb +106 -0
- data/generated/google/apis/bigquery_v2/service.rb +18 -4
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +83 -0
- data/generated/google/apis/books_v1/representations.rb +35 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +208 -5
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -761
- data/generated/google/apis/classroom_v1/representations.rb +263 -198
- data/generated/google/apis/classroom_v1/service.rb +1349 -672
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
- data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
- data/generated/google/apis/clouddebugger_v2.rb +5 -8
- data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
- data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
- data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
- data/generated/google/apis/cloudtrace_v1.rb +9 -9
- data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
- data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +7007 -3648
- data/generated/google/apis/compute_beta/representations.rb +1459 -120
- data/generated/google/apis/compute_beta/service.rb +7943 -3726
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2567 -370
- data/generated/google/apis/compute_v1/representations.rb +855 -0
- data/generated/google/apis/compute_v1/service.rb +6388 -2908
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +778 -10
- data/generated/google/apis/content_v2/representations.rb +339 -0
- data/generated/google/apis/content_v2/service.rb +364 -49
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
- data/generated/google/apis/dataproc_v1/representations.rb +299 -225
- data/generated/google/apis/dataproc_v1/service.rb +277 -192
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +595 -37
- data/generated/google/apis/drive_v2/representations.rb +140 -0
- data/generated/google/apis/drive_v2/service.rb +406 -40
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +507 -40
- data/generated/google/apis/drive_v3/representations.rb +105 -0
- data/generated/google/apis/drive_v3/service.rb +326 -29
- data/generated/google/apis/fitness_v1.rb +38 -2
- data/generated/google/apis/fitness_v1/classes.rb +65 -7
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +10 -12
- data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
- data/generated/google/apis/genomics_v1/representations.rb +468 -496
- data/generated/google/apis/genomics_v1/service.rb +978 -882
- data/generated/google/apis/gmail_v1.rb +11 -2
- data/generated/google/apis/gmail_v1/classes.rb +655 -5
- data/generated/google/apis/gmail_v1/representations.rb +261 -0
- data/generated/google/apis/gmail_v1/service.rb +1211 -48
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +446 -368
- data/generated/google/apis/iam_v1/representations.rb +109 -91
- data/generated/google/apis/iam_v1/service.rb +249 -162
- data/generated/google/apis/identitytoolkit_v3.rb +7 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
- data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +26 -24
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +185 -0
- data/generated/google/apis/licensing_v1.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
- data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
- data/generated/google/apis/logging_v2beta1/service.rb +427 -155
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1831 -477
- data/generated/google/apis/partners_v2/representations.rb +571 -114
- data/generated/google/apis/partners_v2/service.rb +898 -167
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +1047 -859
- data/generated/google/apis/people_v1/representations.rb +252 -213
- data/generated/google/apis/people_v1/service.rb +75 -62
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +363 -310
- data/generated/google/apis/pubsub_v1/representations.rb +76 -76
- data/generated/google/apis/pubsub_v1/service.rb +464 -335
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +222 -61
- data/generated/google/apis/reseller_v1/representations.rb +28 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +151 -137
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
- data/generated/google/apis/sheets_v4/representations.rb +988 -737
- data/generated/google/apis/sheets_v4/service.rb +266 -99
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4480 -0
- data/generated/google/apis/slides_v1/representations.rb +1926 -0
- data/generated/google/apis/slides_v1/service.rb +245 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
- data/generated/google/apis/speech_v1beta1/service.rb +270 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +205 -21
- data/generated/google/apis/storage_v1/representations.rb +51 -1
- data/generated/google/apis/storage_v1/service.rb +263 -9
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1275 -731
- data/generated/google/apis/vision_v1/representations.rb +378 -111
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +430 -22
- data/generated/google/apis/youtube_v3/representations.rb +171 -4
- data/generated/google/apis/youtube_v3/service.rb +100 -9
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
- data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
- data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
- data/google-api-client.gemspec +4 -3
- data/lib/google/apis/core/api_command.rb +16 -6
- data/lib/google/apis/core/base_service.rb +17 -9
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +6 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- data/sync.rb +71 -0
- metadata +86 -18
@@ -0,0 +1,223 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module ManufacturersV1
|
24
|
+
|
25
|
+
class Count
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class Product
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class Capacity
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class ListProductsResponse
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class ProductDetail
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class FeatureDescription
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class Issue
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class Price
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class Image
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class Attributes
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class Count
|
86
|
+
# @private
|
87
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
88
|
+
property :value, as: 'value'
|
89
|
+
property :unit, as: 'unit'
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
class Product
|
94
|
+
# @private
|
95
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
96
|
+
property :target_country, as: 'targetCountry'
|
97
|
+
property :content_language, as: 'contentLanguage'
|
98
|
+
property :name, as: 'name'
|
99
|
+
collection :manually_deleted_attributes, as: 'manuallyDeletedAttributes'
|
100
|
+
collection :issues, as: 'issues', class: Google::Apis::ManufacturersV1::Issue, decorator: Google::Apis::ManufacturersV1::Issue::Representation
|
101
|
+
|
102
|
+
property :final_attributes, as: 'finalAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
|
103
|
+
|
104
|
+
property :product_id, as: 'productId'
|
105
|
+
property :uploaded_attributes, as: 'uploadedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
|
106
|
+
|
107
|
+
property :parent, as: 'parent'
|
108
|
+
property :manually_provided_attributes, as: 'manuallyProvidedAttributes', class: Google::Apis::ManufacturersV1::Attributes, decorator: Google::Apis::ManufacturersV1::Attributes::Representation
|
109
|
+
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
class Capacity
|
114
|
+
# @private
|
115
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
116
|
+
property :value, as: 'value'
|
117
|
+
property :unit, as: 'unit'
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
class ListProductsResponse
|
122
|
+
# @private
|
123
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
124
|
+
collection :products, as: 'products', class: Google::Apis::ManufacturersV1::Product, decorator: Google::Apis::ManufacturersV1::Product::Representation
|
125
|
+
|
126
|
+
property :next_page_token, as: 'nextPageToken'
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
class ProductDetail
|
131
|
+
# @private
|
132
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
133
|
+
property :attribute_value, as: 'attributeValue'
|
134
|
+
property :section_name, as: 'sectionName'
|
135
|
+
property :attribute_name, as: 'attributeName'
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
class FeatureDescription
|
140
|
+
# @private
|
141
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
142
|
+
property :text, as: 'text'
|
143
|
+
property :image, as: 'image', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
|
144
|
+
|
145
|
+
property :headline, as: 'headline'
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
class Issue
|
150
|
+
# @private
|
151
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
152
|
+
property :timestamp, as: 'timestamp'
|
153
|
+
property :severity, as: 'severity'
|
154
|
+
property :description, as: 'description'
|
155
|
+
property :type, as: 'type'
|
156
|
+
property :attribute, as: 'attribute'
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
class Price
|
161
|
+
# @private
|
162
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
163
|
+
property :amount, as: 'amount'
|
164
|
+
property :currency, as: 'currency'
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
class Image
|
169
|
+
# @private
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
171
|
+
property :type, as: 'type'
|
172
|
+
property :image_url, as: 'imageUrl'
|
173
|
+
property :status, as: 'status'
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
class Attributes
|
178
|
+
# @private
|
179
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
180
|
+
property :size_system, as: 'sizeSystem'
|
181
|
+
property :theme, as: 'theme'
|
182
|
+
property :pattern, as: 'pattern'
|
183
|
+
property :image_link, as: 'imageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
|
184
|
+
|
185
|
+
collection :product_type, as: 'productType'
|
186
|
+
property :format, as: 'format'
|
187
|
+
collection :additional_image_link, as: 'additionalImageLink', class: Google::Apis::ManufacturersV1::Image, decorator: Google::Apis::ManufacturersV1::Image::Representation
|
188
|
+
|
189
|
+
collection :video_link, as: 'videoLink'
|
190
|
+
property :color, as: 'color'
|
191
|
+
property :product_name, as: 'productName'
|
192
|
+
property :size_type, as: 'sizeType'
|
193
|
+
property :suggested_retail_price, as: 'suggestedRetailPrice', class: Google::Apis::ManufacturersV1::Price, decorator: Google::Apis::ManufacturersV1::Price::Representation
|
194
|
+
|
195
|
+
collection :feature_description, as: 'featureDescription', class: Google::Apis::ManufacturersV1::FeatureDescription, decorator: Google::Apis::ManufacturersV1::FeatureDescription::Representation
|
196
|
+
|
197
|
+
property :size, as: 'size'
|
198
|
+
property :title, as: 'title'
|
199
|
+
property :count, as: 'count', class: Google::Apis::ManufacturersV1::Count, decorator: Google::Apis::ManufacturersV1::Count::Representation
|
200
|
+
|
201
|
+
property :brand, as: 'brand'
|
202
|
+
property :disclosure_date, as: 'disclosureDate'
|
203
|
+
property :material, as: 'material'
|
204
|
+
property :scent, as: 'scent'
|
205
|
+
property :age_group, as: 'ageGroup'
|
206
|
+
collection :product_detail, as: 'productDetail', class: Google::Apis::ManufacturersV1::ProductDetail, decorator: Google::Apis::ManufacturersV1::ProductDetail::Representation
|
207
|
+
|
208
|
+
property :flavor, as: 'flavor'
|
209
|
+
property :product_page_url, as: 'productPageUrl'
|
210
|
+
property :mpn, as: 'mpn'
|
211
|
+
property :release_date, as: 'releaseDate'
|
212
|
+
collection :gtin, as: 'gtin'
|
213
|
+
property :item_group_id, as: 'itemGroupId'
|
214
|
+
property :product_line, as: 'productLine'
|
215
|
+
property :capacity, as: 'capacity', class: Google::Apis::ManufacturersV1::Capacity, decorator: Google::Apis::ManufacturersV1::Capacity::Representation
|
216
|
+
|
217
|
+
property :description, as: 'description'
|
218
|
+
property :gender, as: 'gender'
|
219
|
+
end
|
220
|
+
end
|
221
|
+
end
|
222
|
+
end
|
223
|
+
end
|
@@ -0,0 +1,138 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module ManufacturersV1
|
23
|
+
# Manufacturer Center API
|
24
|
+
#
|
25
|
+
# Public API for managing Manufacturer Center related data.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/manufacturers_v1'
|
29
|
+
#
|
30
|
+
# Manufacturers = Google::Apis::ManufacturersV1 # Alias the module
|
31
|
+
# service = Manufacturers::ManufacturerCenterService.new
|
32
|
+
#
|
33
|
+
# @see https://developers.google.com/manufacturers/
|
34
|
+
class ManufacturerCenterService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://manufacturers.googleapis.com/', '')
|
47
|
+
end
|
48
|
+
|
49
|
+
# Lists all the products in a Manufacturer Center account.
|
50
|
+
# @param [String] parent
|
51
|
+
# Parent ID in the format `accounts/`account_id``.
|
52
|
+
# `account_id` - The ID of the Manufacturer Center account.
|
53
|
+
# @param [String] page_token
|
54
|
+
# The token returned by the previous request.
|
55
|
+
# @param [Fixnum] page_size
|
56
|
+
# Maximum number of product statuses to return in the response, used for
|
57
|
+
# paging.
|
58
|
+
# @param [String] fields
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
60
|
+
# @param [String] quota_user
|
61
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
62
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
63
|
+
# @param [Google::Apis::RequestOptions] options
|
64
|
+
# Request-specific options
|
65
|
+
#
|
66
|
+
# @yield [result, err] Result & error if block supplied
|
67
|
+
# @yieldparam result [Google::Apis::ManufacturersV1::ListProductsResponse] parsed result object
|
68
|
+
# @yieldparam err [StandardError] error object if request failed
|
69
|
+
#
|
70
|
+
# @return [Google::Apis::ManufacturersV1::ListProductsResponse]
|
71
|
+
#
|
72
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
73
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
74
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
75
|
+
def list_account_products(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
76
|
+
command = make_simple_command(:get, 'v1/{+parent}/products', options)
|
77
|
+
command.response_representation = Google::Apis::ManufacturersV1::ListProductsResponse::Representation
|
78
|
+
command.response_class = Google::Apis::ManufacturersV1::ListProductsResponse
|
79
|
+
command.params['parent'] = parent unless parent.nil?
|
80
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
81
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
82
|
+
command.query['fields'] = fields unless fields.nil?
|
83
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
|
+
execute_or_queue_command(command, &block)
|
85
|
+
end
|
86
|
+
|
87
|
+
# Gets the product from a Manufacturer Center account, including product
|
88
|
+
# issues.
|
89
|
+
# @param [String] parent
|
90
|
+
# Parent ID in the format `accounts/`account_id``.
|
91
|
+
# `account_id` - The ID of the Manufacturer Center account.
|
92
|
+
# @param [String] name
|
93
|
+
# Name in the format ``target_country`:`content_language`:`product_id``.
|
94
|
+
# `target_country` - The target country of the product as a CLDR territory
|
95
|
+
# code (for example, US).
|
96
|
+
# `content_language` - The content language of the product as a two-letter
|
97
|
+
# ISO 639-1 language code (for example, en).
|
98
|
+
# `product_id` - The ID of the product. For more information, see
|
99
|
+
# https://support.google.com/manufacturers/answer/6124116#
|
100
|
+
# id.
|
101
|
+
# @param [String] fields
|
102
|
+
# Selector specifying which fields to include in a partial response.
|
103
|
+
# @param [String] quota_user
|
104
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
105
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
106
|
+
# @param [Google::Apis::RequestOptions] options
|
107
|
+
# Request-specific options
|
108
|
+
#
|
109
|
+
# @yield [result, err] Result & error if block supplied
|
110
|
+
# @yieldparam result [Google::Apis::ManufacturersV1::Product] parsed result object
|
111
|
+
# @yieldparam err [StandardError] error object if request failed
|
112
|
+
#
|
113
|
+
# @return [Google::Apis::ManufacturersV1::Product]
|
114
|
+
#
|
115
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
116
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
117
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
118
|
+
def get_account_product(parent, name, fields: nil, quota_user: nil, options: nil, &block)
|
119
|
+
command = make_simple_command(:get, 'v1/{+parent}/products/{+name}', options)
|
120
|
+
command.response_representation = Google::Apis::ManufacturersV1::Product::Representation
|
121
|
+
command.response_class = Google::Apis::ManufacturersV1::Product
|
122
|
+
command.params['parent'] = parent unless parent.nil?
|
123
|
+
command.params['name'] = name unless name.nil?
|
124
|
+
command.query['fields'] = fields unless fields.nil?
|
125
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
126
|
+
execute_or_queue_command(command, &block)
|
127
|
+
end
|
128
|
+
|
129
|
+
protected
|
130
|
+
|
131
|
+
def apply_command_defaults(command)
|
132
|
+
command.query['key'] = key unless key.nil?
|
133
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
@@ -20,12 +20,12 @@ module Google
|
|
20
20
|
module Apis
|
21
21
|
# Google Mirror API
|
22
22
|
#
|
23
|
-
#
|
23
|
+
# Interacts with Glass users via the timeline.
|
24
24
|
#
|
25
25
|
# @see https://developers.google.com/glass
|
26
26
|
module MirrorV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170314'
|
29
29
|
|
30
30
|
# View your location
|
31
31
|
AUTH_GLASS_LOCATION = 'https://www.googleapis.com/auth/glass.location'
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/monitoring_v3/service.rb'
|
16
|
+
require 'google/apis/monitoring_v3/classes.rb'
|
17
|
+
require 'google/apis/monitoring_v3/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Stackdriver Monitoring API
|
22
|
+
#
|
23
|
+
# Manages your Stackdriver Monitoring data and configurations. Most projects
|
24
|
+
# must be associated with a Stackdriver account, with a few exceptions as noted
|
25
|
+
# on the individual method pages.
|
26
|
+
#
|
27
|
+
# @see https://cloud.google.com/monitoring/api/
|
28
|
+
module MonitoringV3
|
29
|
+
VERSION = 'V3'
|
30
|
+
REVISION = '20170320'
|
31
|
+
|
32
|
+
# View and manage your data across Google Cloud Platform services
|
33
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
|
+
|
35
|
+
# View monitoring data for all of your Google Cloud and third-party projects
|
36
|
+
AUTH_MONITORING_READ = 'https://www.googleapis.com/auth/monitoring.read'
|
37
|
+
|
38
|
+
# View and write monitoring data for all of your Google and third-party Cloud and API projects
|
39
|
+
AUTH_MONITORING = 'https://www.googleapis.com/auth/monitoring'
|
40
|
+
|
41
|
+
# Publish metric data to your Google Cloud projects
|
42
|
+
AUTH_MONITORING_WRITE = 'https://www.googleapis.com/auth/monitoring.write'
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,1333 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module MonitoringV3
|
24
|
+
|
25
|
+
# BucketOptions describes the bucket boundaries used to create a histogram for
|
26
|
+
# the distribution. The buckets can be in a linear sequence, an exponential
|
27
|
+
# sequence, or each bucket can be specified explicitly. BucketOptions does not
|
28
|
+
# include the number of values in each bucket.A bucket has an inclusive lower
|
29
|
+
# bound and exclusive upper bound for the values that are counted for that
|
30
|
+
# bucket. The upper bound of a bucket must be strictly greater than the lower
|
31
|
+
# bound. The sequence of N buckets for a distribution consists of an underflow
|
32
|
+
# bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an
|
33
|
+
# overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
|
34
|
+
# bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
|
35
|
+
# span the whole range of finite values: lower bound of the underflow bucket is -
|
36
|
+
# infinity and the upper bound of the overflow bucket is +infinity. The finite
|
37
|
+
# buckets are so-called because both bounds are finite.
|
38
|
+
class BucketOptions
|
39
|
+
include Google::Apis::Core::Hashable
|
40
|
+
|
41
|
+
# Specifies an exponential sequence of buckets that have a width that is
|
42
|
+
# proportional to the value of the lower bound. Each bucket represents a
|
43
|
+
# constant relative uncertainty on a specific value in the bucket.There are
|
44
|
+
# num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:
|
45
|
+
# Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i <
|
46
|
+
# N): scale * (growth_factor ^ (i - 1)).
|
47
|
+
# Corresponds to the JSON property `exponentialBuckets`
|
48
|
+
# @return [Google::Apis::MonitoringV3::Exponential]
|
49
|
+
attr_accessor :exponential_buckets
|
50
|
+
|
51
|
+
# Specifies a linear sequence of buckets that all have the same width (except
|
52
|
+
# overflow and underflow). Each bucket represents a constant absolute
|
53
|
+
# uncertainty on the specific value in the bucket.There are num_finite_buckets +
|
54
|
+
# 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-
|
55
|
+
# 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1))
|
56
|
+
# .
|
57
|
+
# Corresponds to the JSON property `linearBuckets`
|
58
|
+
# @return [Google::Apis::MonitoringV3::Linear]
|
59
|
+
attr_accessor :linear_buckets
|
60
|
+
|
61
|
+
# Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (=
|
62
|
+
# N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1):
|
63
|
+
# boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at
|
64
|
+
# least one element. If bounds has only one element, then there are no finite
|
65
|
+
# buckets, and that single element is the common boundary of the overflow and
|
66
|
+
# underflow buckets.
|
67
|
+
# Corresponds to the JSON property `explicitBuckets`
|
68
|
+
# @return [Google::Apis::MonitoringV3::Explicit]
|
69
|
+
attr_accessor :explicit_buckets
|
70
|
+
|
71
|
+
def initialize(**args)
|
72
|
+
update!(**args)
|
73
|
+
end
|
74
|
+
|
75
|
+
# Update properties of this object
|
76
|
+
def update!(**args)
|
77
|
+
@exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
|
78
|
+
@linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
|
79
|
+
@explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# A single data point from a collectd-based plugin.
|
84
|
+
class CollectdValue
|
85
|
+
include Google::Apis::Core::Hashable
|
86
|
+
|
87
|
+
# The data source for the collectd value. For example there are two data sources
|
88
|
+
# for network measurements: "rx" and "tx".
|
89
|
+
# Corresponds to the JSON property `dataSourceName`
|
90
|
+
# @return [String]
|
91
|
+
attr_accessor :data_source_name
|
92
|
+
|
93
|
+
# A single strongly-typed value.
|
94
|
+
# Corresponds to the JSON property `value`
|
95
|
+
# @return [Google::Apis::MonitoringV3::TypedValue]
|
96
|
+
attr_accessor :value
|
97
|
+
|
98
|
+
# The type of measurement.
|
99
|
+
# Corresponds to the JSON property `dataSourceType`
|
100
|
+
# @return [String]
|
101
|
+
attr_accessor :data_source_type
|
102
|
+
|
103
|
+
def initialize(**args)
|
104
|
+
update!(**args)
|
105
|
+
end
|
106
|
+
|
107
|
+
# Update properties of this object
|
108
|
+
def update!(**args)
|
109
|
+
@data_source_name = args[:data_source_name] if args.key?(:data_source_name)
|
110
|
+
@value = args[:value] if args.key?(:value)
|
111
|
+
@data_source_type = args[:data_source_type] if args.key?(:data_source_type)
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
# SourceContext represents information about the source of a protobuf element,
|
116
|
+
# like the file in which it is defined.
|
117
|
+
class SourceContext
|
118
|
+
include Google::Apis::Core::Hashable
|
119
|
+
|
120
|
+
# The path-qualified name of the .proto file that contained the associated
|
121
|
+
# protobuf element. For example: "google/protobuf/source_context.proto".
|
122
|
+
# Corresponds to the JSON property `fileName`
|
123
|
+
# @return [String]
|
124
|
+
attr_accessor :file_name
|
125
|
+
|
126
|
+
def initialize(**args)
|
127
|
+
update!(**args)
|
128
|
+
end
|
129
|
+
|
130
|
+
# Update properties of this object
|
131
|
+
def update!(**args)
|
132
|
+
@file_name = args[:file_name] if args.key?(:file_name)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
# Defines a metric type and its schema. Once a metric descriptor is created,
|
137
|
+
# deleting or altering it stops data collection and makes the metric type's
|
138
|
+
# existing data unusable.
|
139
|
+
class MetricDescriptor
|
140
|
+
include Google::Apis::Core::Hashable
|
141
|
+
|
142
|
+
# Whether the measurement is an integer, a floating-point number, etc. Some
|
143
|
+
# combinations of metric_kind and value_type might not be supported.
|
144
|
+
# Corresponds to the JSON property `valueType`
|
145
|
+
# @return [String]
|
146
|
+
attr_accessor :value_type
|
147
|
+
|
148
|
+
# Whether the metric records instantaneous values, changes to a value, etc. Some
|
149
|
+
# combinations of metric_kind and value_type might not be supported.
|
150
|
+
# Corresponds to the JSON property `metricKind`
|
151
|
+
# @return [String]
|
152
|
+
attr_accessor :metric_kind
|
153
|
+
|
154
|
+
# A concise name for the metric, which can be displayed in user interfaces. Use
|
155
|
+
# sentence case without an ending period, for example "Request count".
|
156
|
+
# Corresponds to the JSON property `displayName`
|
157
|
+
# @return [String]
|
158
|
+
attr_accessor :display_name
|
159
|
+
|
160
|
+
# A detailed description of the metric, which can be used in documentation.
|
161
|
+
# Corresponds to the JSON property `description`
|
162
|
+
# @return [String]
|
163
|
+
attr_accessor :description
|
164
|
+
|
165
|
+
# The unit in which the metric value is reported. It is only applicable if the
|
166
|
+
# value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset
|
167
|
+
# of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html)
|
168
|
+
# standard:Basic units (UNIT)
|
169
|
+
# bit bit
|
170
|
+
# By byte
|
171
|
+
# s second
|
172
|
+
# min minute
|
173
|
+
# h hour
|
174
|
+
# d dayPrefixes (PREFIX)
|
175
|
+
# k kilo (10**3)
|
176
|
+
# M mega (10**6)
|
177
|
+
# G giga (10**9)
|
178
|
+
# T tera (10**12)
|
179
|
+
# P peta (10**15)
|
180
|
+
# E exa (10**18)
|
181
|
+
# Z zetta (10**21)
|
182
|
+
# Y yotta (10**24)
|
183
|
+
# m milli (10**-3)
|
184
|
+
# u micro (10**-6)
|
185
|
+
# n nano (10**-9)
|
186
|
+
# p pico (10**-12)
|
187
|
+
# f femto (10**-15)
|
188
|
+
# a atto (10**-18)
|
189
|
+
# z zepto (10**-21)
|
190
|
+
# y yocto (10**-24)
|
191
|
+
# Ki kibi (2**10)
|
192
|
+
# Mi mebi (2**20)
|
193
|
+
# Gi gibi (2**30)
|
194
|
+
# Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such as 1/
|
195
|
+
# s.The grammar also includes these connectors:
|
196
|
+
# / division (as an infix operator, e.g. 1/s).
|
197
|
+
# . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is
|
198
|
+
# as follows:
|
199
|
+
# Expression = Component ` "." Component ` ` "/" Component ` ;
|
200
|
+
# Component = [ PREFIX ] UNIT [ Annotation ]
|
201
|
+
# | Annotation
|
202
|
+
# | "1"
|
203
|
+
# ;
|
204
|
+
# Annotation = "`" NAME "`" ;
|
205
|
+
# Notes:
|
206
|
+
# Annotation is just a comment if it follows a UNIT and is equivalent to 1 if
|
207
|
+
# it is used alone. For examples, `requests`/s == 1/s, By`transmitted`/s == By/
|
208
|
+
# s.
|
209
|
+
# NAME is a sequence of non-blank printable ASCII characters not containing '`'
|
210
|
+
# or '`'.
|
211
|
+
# Corresponds to the JSON property `unit`
|
212
|
+
# @return [String]
|
213
|
+
attr_accessor :unit
|
214
|
+
|
215
|
+
# The set of labels that can be used to describe a specific instance of this
|
216
|
+
# metric type. For example, the appengine.googleapis.com/http/server/
|
217
|
+
# response_latencies metric type has a label for the HTTP response code,
|
218
|
+
# response_code, so you can look at latencies for successful responses or just
|
219
|
+
# for responses that failed.
|
220
|
+
# Corresponds to the JSON property `labels`
|
221
|
+
# @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
|
222
|
+
attr_accessor :labels
|
223
|
+
|
224
|
+
# The resource name of the metric descriptor. Depending on the implementation,
|
225
|
+
# the name typically includes: (1) the parent resource name that defines the
|
226
|
+
# scope of the metric type or of its data; and (2) the metric's URL-encoded type,
|
227
|
+
# which also appears in the type field of this descriptor. For example,
|
228
|
+
# following is the resource name of a custom metric within the GCP project my-
|
229
|
+
# project-id:
|
230
|
+
# "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
|
231
|
+
# 2Fpaid%2Famount"
|
232
|
+
# Corresponds to the JSON property `name`
|
233
|
+
# @return [String]
|
234
|
+
attr_accessor :name
|
235
|
+
|
236
|
+
# The metric type, including its DNS name prefix. The type is not URL-encoded.
|
237
|
+
# All user-defined custom metric types have the DNS name custom.googleapis.com.
|
238
|
+
# Metric types should use a natural hierarchical grouping. For example:
|
239
|
+
# "custom.googleapis.com/invoice/paid/amount"
|
240
|
+
# "appengine.googleapis.com/http/server/response_latencies"
|
241
|
+
# Corresponds to the JSON property `type`
|
242
|
+
# @return [String]
|
243
|
+
attr_accessor :type
|
244
|
+
|
245
|
+
def initialize(**args)
|
246
|
+
update!(**args)
|
247
|
+
end
|
248
|
+
|
249
|
+
# Update properties of this object
|
250
|
+
def update!(**args)
|
251
|
+
@value_type = args[:value_type] if args.key?(:value_type)
|
252
|
+
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
|
253
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
254
|
+
@description = args[:description] if args.key?(:description)
|
255
|
+
@unit = args[:unit] if args.key?(:unit)
|
256
|
+
@labels = args[:labels] if args.key?(:labels)
|
257
|
+
@name = args[:name] if args.key?(:name)
|
258
|
+
@type = args[:type] if args.key?(:type)
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
# The range of the population values.
|
263
|
+
class Range
|
264
|
+
include Google::Apis::Core::Hashable
|
265
|
+
|
266
|
+
# The minimum of the population values.
|
267
|
+
# Corresponds to the JSON property `min`
|
268
|
+
# @return [Float]
|
269
|
+
attr_accessor :min
|
270
|
+
|
271
|
+
# The maximum of the population values.
|
272
|
+
# Corresponds to the JSON property `max`
|
273
|
+
# @return [Float]
|
274
|
+
attr_accessor :max
|
275
|
+
|
276
|
+
def initialize(**args)
|
277
|
+
update!(**args)
|
278
|
+
end
|
279
|
+
|
280
|
+
# Update properties of this object
|
281
|
+
def update!(**args)
|
282
|
+
@min = args[:min] if args.key?(:min)
|
283
|
+
@max = args[:max] if args.key?(:max)
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
# The ListGroups response.
|
288
|
+
class ListGroupsResponse
|
289
|
+
include Google::Apis::Core::Hashable
|
290
|
+
|
291
|
+
# If there are more results than have been returned, then this field is set to a
|
292
|
+
# non-empty value. To see the additional results, use that value as pageToken in
|
293
|
+
# the next call to this method.
|
294
|
+
# Corresponds to the JSON property `nextPageToken`
|
295
|
+
# @return [String]
|
296
|
+
attr_accessor :next_page_token
|
297
|
+
|
298
|
+
# The groups that match the specified filters.
|
299
|
+
# Corresponds to the JSON property `group`
|
300
|
+
# @return [Array<Google::Apis::MonitoringV3::Group>]
|
301
|
+
attr_accessor :group
|
302
|
+
|
303
|
+
def initialize(**args)
|
304
|
+
update!(**args)
|
305
|
+
end
|
306
|
+
|
307
|
+
# Update properties of this object
|
308
|
+
def update!(**args)
|
309
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
310
|
+
@group = args[:group] if args.key?(:group)
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
314
|
+
# The ListGroupMembers response.
|
315
|
+
class ListGroupMembersResponse
|
316
|
+
include Google::Apis::Core::Hashable
|
317
|
+
|
318
|
+
# If there are more results than have been returned, then this field is set to a
|
319
|
+
# non-empty value. To see the additional results, use that value as pageToken in
|
320
|
+
# the next call to this method.
|
321
|
+
# Corresponds to the JSON property `nextPageToken`
|
322
|
+
# @return [String]
|
323
|
+
attr_accessor :next_page_token
|
324
|
+
|
325
|
+
# The total number of elements matching this request.
|
326
|
+
# Corresponds to the JSON property `totalSize`
|
327
|
+
# @return [Fixnum]
|
328
|
+
attr_accessor :total_size
|
329
|
+
|
330
|
+
# A set of monitored resources in the group.
|
331
|
+
# Corresponds to the JSON property `members`
|
332
|
+
# @return [Array<Google::Apis::MonitoringV3::MonitoredResource>]
|
333
|
+
attr_accessor :members
|
334
|
+
|
335
|
+
def initialize(**args)
|
336
|
+
update!(**args)
|
337
|
+
end
|
338
|
+
|
339
|
+
# Update properties of this object
|
340
|
+
def update!(**args)
|
341
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
342
|
+
@total_size = args[:total_size] if args.key?(:total_size)
|
343
|
+
@members = args[:members] if args.key?(:members)
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
347
|
+
# The CreateCollectdTimeSeries request.
|
348
|
+
class CreateCollectdTimeSeriesRequest
|
349
|
+
include Google::Apis::Core::Hashable
|
350
|
+
|
351
|
+
# An object representing a resource that can be used for monitoring, logging,
|
352
|
+
# billing, or other purposes. Examples include virtual machine instances,
|
353
|
+
# databases, and storage devices such as disks. The type field identifies a
|
354
|
+
# MonitoredResourceDescriptor object that describes the resource's schema.
|
355
|
+
# Information in the labels field identifies the actual resource and its
|
356
|
+
# attributes according to the schema. For example, a particular Compute Engine
|
357
|
+
# VM instance could be represented by the following object, because the
|
358
|
+
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
359
|
+
# zone":
|
360
|
+
# ` "type": "gce_instance",
|
361
|
+
# "labels": ` "instance_id": "12345678901234",
|
362
|
+
# "zone": "us-central1-a" ``
|
363
|
+
# Corresponds to the JSON property `resource`
|
364
|
+
# @return [Google::Apis::MonitoringV3::MonitoredResource]
|
365
|
+
attr_accessor :resource
|
366
|
+
|
367
|
+
# The collectd payloads representing the time series data. You must not include
|
368
|
+
# more than a single point for each time series, so no two payloads can have the
|
369
|
+
# same values for all of the fields plugin, plugin_instance, type, and
|
370
|
+
# type_instance.
|
371
|
+
# Corresponds to the JSON property `collectdPayloads`
|
372
|
+
# @return [Array<Google::Apis::MonitoringV3::CollectdPayload>]
|
373
|
+
attr_accessor :collectd_payloads
|
374
|
+
|
375
|
+
# The version of collectd that collected the data. Example: "5.3.0-192.el6".
|
376
|
+
# Corresponds to the JSON property `collectdVersion`
|
377
|
+
# @return [String]
|
378
|
+
attr_accessor :collectd_version
|
379
|
+
|
380
|
+
def initialize(**args)
|
381
|
+
update!(**args)
|
382
|
+
end
|
383
|
+
|
384
|
+
# Update properties of this object
|
385
|
+
def update!(**args)
|
386
|
+
@resource = args[:resource] if args.key?(:resource)
|
387
|
+
@collectd_payloads = args[:collectd_payloads] if args.key?(:collectd_payloads)
|
388
|
+
@collectd_version = args[:collectd_version] if args.key?(:collectd_version)
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
392
|
+
# The ListMonitoredResourcDescriptors response.
|
393
|
+
class ListMonitoredResourceDescriptorsResponse
|
394
|
+
include Google::Apis::Core::Hashable
|
395
|
+
|
396
|
+
# If there are more results than have been returned, then this field is set to a
|
397
|
+
# non-empty value. To see the additional results, use that value as pageToken in
|
398
|
+
# the next call to this method.
|
399
|
+
# Corresponds to the JSON property `nextPageToken`
|
400
|
+
# @return [String]
|
401
|
+
attr_accessor :next_page_token
|
402
|
+
|
403
|
+
# The monitored resource descriptors that are available to this project and that
|
404
|
+
# match filter, if present.
|
405
|
+
# Corresponds to the JSON property `resourceDescriptors`
|
406
|
+
# @return [Array<Google::Apis::MonitoringV3::MonitoredResourceDescriptor>]
|
407
|
+
attr_accessor :resource_descriptors
|
408
|
+
|
409
|
+
def initialize(**args)
|
410
|
+
update!(**args)
|
411
|
+
end
|
412
|
+
|
413
|
+
# Update properties of this object
|
414
|
+
def update!(**args)
|
415
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
416
|
+
@resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors)
|
417
|
+
end
|
418
|
+
end
|
419
|
+
|
420
|
+
# A collection of data points that describes the time-varying values of a metric.
|
421
|
+
# A time series is identified by a combination of a fully-specified monitored
|
422
|
+
# resource and a fully-specified metric. This type is used for both listing and
|
423
|
+
# creating time series.
|
424
|
+
class TimeSeries
|
425
|
+
include Google::Apis::Core::Hashable
|
426
|
+
|
427
|
+
# The value type of the time series. When listing time series, this value type
|
428
|
+
# might be different from the value type of the associated metric if this time
|
429
|
+
# series is an alignment or reduction of other time series.When creating a time
|
430
|
+
# series, this field is optional. If present, it must be the same as the type of
|
431
|
+
# the data in the points field.
|
432
|
+
# Corresponds to the JSON property `valueType`
|
433
|
+
# @return [String]
|
434
|
+
attr_accessor :value_type
|
435
|
+
|
436
|
+
# An object representing a resource that can be used for monitoring, logging,
|
437
|
+
# billing, or other purposes. Examples include virtual machine instances,
|
438
|
+
# databases, and storage devices such as disks. The type field identifies a
|
439
|
+
# MonitoredResourceDescriptor object that describes the resource's schema.
|
440
|
+
# Information in the labels field identifies the actual resource and its
|
441
|
+
# attributes according to the schema. For example, a particular Compute Engine
|
442
|
+
# VM instance could be represented by the following object, because the
|
443
|
+
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
444
|
+
# zone":
|
445
|
+
# ` "type": "gce_instance",
|
446
|
+
# "labels": ` "instance_id": "12345678901234",
|
447
|
+
# "zone": "us-central1-a" ``
|
448
|
+
# Corresponds to the JSON property `resource`
|
449
|
+
# @return [Google::Apis::MonitoringV3::MonitoredResource]
|
450
|
+
attr_accessor :resource
|
451
|
+
|
452
|
+
# The metric kind of the time series. When listing time series, this metric kind
|
453
|
+
# might be different from the metric kind of the associated metric if this time
|
454
|
+
# series is an alignment or reduction of other time series.When creating a time
|
455
|
+
# series, this field is optional. If present, it must be the same as the metric
|
456
|
+
# kind of the associated metric. If the associated metric's descriptor must be
|
457
|
+
# auto-created, then this field specifies the metric kind of the new descriptor
|
458
|
+
# and must be either GAUGE (the default) or CUMULATIVE.
|
459
|
+
# Corresponds to the JSON property `metricKind`
|
460
|
+
# @return [String]
|
461
|
+
attr_accessor :metric_kind
|
462
|
+
|
463
|
+
# A specific metric, identified by specifying values for all of the labels of a
|
464
|
+
# MetricDescriptor.
|
465
|
+
# Corresponds to the JSON property `metric`
|
466
|
+
# @return [Google::Apis::MonitoringV3::Metric]
|
467
|
+
attr_accessor :metric
|
468
|
+
|
469
|
+
# The data points of this time series. When listing time series, the order of
|
470
|
+
# the points is specified by the list method.When creating a time series, this
|
471
|
+
# field must contain exactly one point and the point's type must be the same as
|
472
|
+
# the value type of the associated metric. If the associated metric's descriptor
|
473
|
+
# must be auto-created, then the value type of the descriptor is determined by
|
474
|
+
# the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION.
|
475
|
+
# Corresponds to the JSON property `points`
|
476
|
+
# @return [Array<Google::Apis::MonitoringV3::Point>]
|
477
|
+
attr_accessor :points
|
478
|
+
|
479
|
+
def initialize(**args)
|
480
|
+
update!(**args)
|
481
|
+
end
|
482
|
+
|
483
|
+
# Update properties of this object
|
484
|
+
def update!(**args)
|
485
|
+
@value_type = args[:value_type] if args.key?(:value_type)
|
486
|
+
@resource = args[:resource] if args.key?(:resource)
|
487
|
+
@metric_kind = args[:metric_kind] if args.key?(:metric_kind)
|
488
|
+
@metric = args[:metric] if args.key?(:metric)
|
489
|
+
@points = args[:points] if args.key?(:points)
|
490
|
+
end
|
491
|
+
end
|
492
|
+
|
493
|
+
# The CreateTimeSeries request.
|
494
|
+
class CreateTimeSeriesRequest
|
495
|
+
include Google::Apis::Core::Hashable
|
496
|
+
|
497
|
+
# The new data to be added to a list of time series. Adds at most one data point
|
498
|
+
# to each of several time series. The new data point must be more recent than
|
499
|
+
# any other point in its time series. Each TimeSeries value must fully specify a
|
500
|
+
# unique time series by supplying all label values for the metric and the
|
501
|
+
# monitored resource.
|
502
|
+
# Corresponds to the JSON property `timeSeries`
|
503
|
+
# @return [Array<Google::Apis::MonitoringV3::TimeSeries>]
|
504
|
+
attr_accessor :time_series
|
505
|
+
|
506
|
+
def initialize(**args)
|
507
|
+
update!(**args)
|
508
|
+
end
|
509
|
+
|
510
|
+
# Update properties of this object
|
511
|
+
def update!(**args)
|
512
|
+
@time_series = args[:time_series] if args.key?(:time_series)
|
513
|
+
end
|
514
|
+
end
|
515
|
+
|
516
|
+
# Distribution contains summary statistics for a population of values. It
|
517
|
+
# optionally contains a histogram representing the distribution of those values
|
518
|
+
# across a set of buckets.The summary statistics are the count, mean, sum of the
|
519
|
+
# squared deviation from the mean, the minimum, and the maximum of the set of
|
520
|
+
# population of values. The histogram is based on a sequence of buckets and
|
521
|
+
# gives a count of values that fall into each bucket. The boundaries of the
|
522
|
+
# buckets are given either explicitly or by formulas for buckets of fixed or
|
523
|
+
# exponentially increasing widths.Although it is not forbidden, it is generally
|
524
|
+
# a bad idea to include non-finite values (infinities or NaNs) in the population
|
525
|
+
# of values, as this will render the mean and sum_of_squared_deviation fields
|
526
|
+
# meaningless.
|
527
|
+
class Distribution
|
528
|
+
include Google::Apis::Core::Hashable
|
529
|
+
|
530
|
+
# The number of values in the population. Must be non-negative. This value must
|
531
|
+
# equal the sum of the values in bucket_counts if a histogram is provided.
|
532
|
+
# Corresponds to the JSON property `count`
|
533
|
+
# @return [String]
|
534
|
+
attr_accessor :count
|
535
|
+
|
536
|
+
# The arithmetic mean of the values in the population. If count is zero then
|
537
|
+
# this field must be zero.
|
538
|
+
# Corresponds to the JSON property `mean`
|
539
|
+
# @return [Float]
|
540
|
+
attr_accessor :mean
|
541
|
+
|
542
|
+
# Required in the Stackdriver Monitoring API v3. The values for each bucket
|
543
|
+
# specified in bucket_options. The sum of the values in bucketCounts must equal
|
544
|
+
# the value in the count field of the Distribution object. The order of the
|
545
|
+
# bucket counts follows the numbering schemes described for the three bucket
|
546
|
+
# types. The underflow bucket has number 0; the finite buckets, if any, have
|
547
|
+
# numbers 1 through N-2; and the overflow bucket has number N-1. The size of
|
548
|
+
# bucket_counts must not be greater than N. If the size is less than N, then the
|
549
|
+
# remaining buckets are assigned values of zero.
|
550
|
+
# Corresponds to the JSON property `bucketCounts`
|
551
|
+
# @return [Array<String>]
|
552
|
+
attr_accessor :bucket_counts
|
553
|
+
|
554
|
+
# BucketOptions describes the bucket boundaries used to create a histogram for
|
555
|
+
# the distribution. The buckets can be in a linear sequence, an exponential
|
556
|
+
# sequence, or each bucket can be specified explicitly. BucketOptions does not
|
557
|
+
# include the number of values in each bucket.A bucket has an inclusive lower
|
558
|
+
# bound and exclusive upper bound for the values that are counted for that
|
559
|
+
# bucket. The upper bound of a bucket must be strictly greater than the lower
|
560
|
+
# bound. The sequence of N buckets for a distribution consists of an underflow
|
561
|
+
# bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an
|
562
|
+
# overflow bucket (number N - 1). The buckets are contiguous: the lower bound of
|
563
|
+
# bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets
|
564
|
+
# span the whole range of finite values: lower bound of the underflow bucket is -
|
565
|
+
# infinity and the upper bound of the overflow bucket is +infinity. The finite
|
566
|
+
# buckets are so-called because both bounds are finite.
|
567
|
+
# Corresponds to the JSON property `bucketOptions`
|
568
|
+
# @return [Google::Apis::MonitoringV3::BucketOptions]
|
569
|
+
attr_accessor :bucket_options
|
570
|
+
|
571
|
+
# The sum of squared deviations from the mean of the values in the population.
|
572
|
+
# For values x_i this is:
|
573
|
+
# Sum[i=1..n]((x_i - mean)^2)
|
574
|
+
# Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
|
575
|
+
# describes Welford's method for accumulating this sum in one pass.If count is
|
576
|
+
# zero then this field must be zero.
|
577
|
+
# Corresponds to the JSON property `sumOfSquaredDeviation`
|
578
|
+
# @return [Float]
|
579
|
+
attr_accessor :sum_of_squared_deviation
|
580
|
+
|
581
|
+
# The range of the population values.
|
582
|
+
# Corresponds to the JSON property `range`
|
583
|
+
# @return [Google::Apis::MonitoringV3::Range]
|
584
|
+
attr_accessor :range
|
585
|
+
|
586
|
+
def initialize(**args)
|
587
|
+
update!(**args)
|
588
|
+
end
|
589
|
+
|
590
|
+
# Update properties of this object
|
591
|
+
def update!(**args)
|
592
|
+
@count = args[:count] if args.key?(:count)
|
593
|
+
@mean = args[:mean] if args.key?(:mean)
|
594
|
+
@bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
|
595
|
+
@bucket_options = args[:bucket_options] if args.key?(:bucket_options)
|
596
|
+
@sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation)
|
597
|
+
@range = args[:range] if args.key?(:range)
|
598
|
+
end
|
599
|
+
end
|
600
|
+
|
601
|
+
# An object representing a resource that can be used for monitoring, logging,
|
602
|
+
# billing, or other purposes. Examples include virtual machine instances,
|
603
|
+
# databases, and storage devices such as disks. The type field identifies a
|
604
|
+
# MonitoredResourceDescriptor object that describes the resource's schema.
|
605
|
+
# Information in the labels field identifies the actual resource and its
|
606
|
+
# attributes according to the schema. For example, a particular Compute Engine
|
607
|
+
# VM instance could be represented by the following object, because the
|
608
|
+
# MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and "
|
609
|
+
# zone":
|
610
|
+
# ` "type": "gce_instance",
|
611
|
+
# "labels": ` "instance_id": "12345678901234",
|
612
|
+
# "zone": "us-central1-a" ``
|
613
|
+
class MonitoredResource
|
614
|
+
include Google::Apis::Core::Hashable
|
615
|
+
|
616
|
+
# Required. The monitored resource type. This field must match the type field of
|
617
|
+
# a MonitoredResourceDescriptor object. For example, the type of a Cloud SQL
|
618
|
+
# database is "cloudsql_database".
|
619
|
+
# Corresponds to the JSON property `type`
|
620
|
+
# @return [String]
|
621
|
+
attr_accessor :type
|
622
|
+
|
623
|
+
# Required. Values for all of the labels listed in the associated monitored
|
624
|
+
# resource descriptor. For example, Cloud SQL databases use the labels "
|
625
|
+
# database_id" and "zone".
|
626
|
+
# Corresponds to the JSON property `labels`
|
627
|
+
# @return [Hash<String,String>]
|
628
|
+
attr_accessor :labels
|
629
|
+
|
630
|
+
def initialize(**args)
|
631
|
+
update!(**args)
|
632
|
+
end
|
633
|
+
|
634
|
+
# Update properties of this object
|
635
|
+
def update!(**args)
|
636
|
+
@type = args[:type] if args.key?(:type)
|
637
|
+
@labels = args[:labels] if args.key?(:labels)
|
638
|
+
end
|
639
|
+
end
|
640
|
+
|
641
|
+
# The ListMetricDescriptors response.
|
642
|
+
class ListMetricDescriptorsResponse
|
643
|
+
include Google::Apis::Core::Hashable
|
644
|
+
|
645
|
+
# The metric descriptors that are available to the project and that match the
|
646
|
+
# value of filter, if present.
|
647
|
+
# Corresponds to the JSON property `metricDescriptors`
|
648
|
+
# @return [Array<Google::Apis::MonitoringV3::MetricDescriptor>]
|
649
|
+
attr_accessor :metric_descriptors
|
650
|
+
|
651
|
+
# If there are more results than have been returned, then this field is set to a
|
652
|
+
# non-empty value. To see the additional results, use that value as pageToken in
|
653
|
+
# the next call to this method.
|
654
|
+
# Corresponds to the JSON property `nextPageToken`
|
655
|
+
# @return [String]
|
656
|
+
attr_accessor :next_page_token
|
657
|
+
|
658
|
+
def initialize(**args)
|
659
|
+
update!(**args)
|
660
|
+
end
|
661
|
+
|
662
|
+
# Update properties of this object
|
663
|
+
def update!(**args)
|
664
|
+
@metric_descriptors = args[:metric_descriptors] if args.key?(:metric_descriptors)
|
665
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
666
|
+
end
|
667
|
+
end
|
668
|
+
|
669
|
+
# An object that describes the schema of a MonitoredResource object using a type
|
670
|
+
# name and a set of labels. For example, the monitored resource descriptor for
|
671
|
+
# Google Compute Engine VM instances has a type of "gce_instance" and specifies
|
672
|
+
# the use of the labels "instance_id" and "zone" to identify particular VM
|
673
|
+
# instances.Different APIs can support different monitored resource types. APIs
|
674
|
+
# generally provide a list method that returns the monitored resource
|
675
|
+
# descriptors used by the API.
|
676
|
+
class MonitoredResourceDescriptor
|
677
|
+
include Google::Apis::Core::Hashable
|
678
|
+
|
679
|
+
# Required. A set of labels used to describe instances of this monitored
|
680
|
+
# resource type. For example, an individual Google Cloud SQL database is
|
681
|
+
# identified by values for the labels "database_id" and "zone".
|
682
|
+
# Corresponds to the JSON property `labels`
|
683
|
+
# @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
|
684
|
+
attr_accessor :labels
|
685
|
+
|
686
|
+
# Optional. The resource name of the monitored resource descriptor: "projects/`
|
687
|
+
# project_id`/monitoredResourceDescriptors/`type`" where `type` is the value of
|
688
|
+
# the type field in this object and `project_id` is a project ID that provides
|
689
|
+
# API-specific context for accessing the type. APIs that do not use project
|
690
|
+
# information can use the resource name format "monitoredResourceDescriptors/`
|
691
|
+
# type`".
|
692
|
+
# Corresponds to the JSON property `name`
|
693
|
+
# @return [String]
|
694
|
+
attr_accessor :name
|
695
|
+
|
696
|
+
# Optional. A concise name for the monitored resource type that might be
|
697
|
+
# displayed in user interfaces. It should be a Title Cased Noun Phrase, without
|
698
|
+
# any article or other determiners. For example, "Google Cloud SQL Database".
|
699
|
+
# Corresponds to the JSON property `displayName`
|
700
|
+
# @return [String]
|
701
|
+
attr_accessor :display_name
|
702
|
+
|
703
|
+
# Optional. A detailed description of the monitored resource type that might be
|
704
|
+
# used in documentation.
|
705
|
+
# Corresponds to the JSON property `description`
|
706
|
+
# @return [String]
|
707
|
+
attr_accessor :description
|
708
|
+
|
709
|
+
# Required. The monitored resource type. For example, the type "
|
710
|
+
# cloudsql_database" represents databases in Google Cloud SQL. The maximum
|
711
|
+
# length of this value is 256 characters.
|
712
|
+
# Corresponds to the JSON property `type`
|
713
|
+
# @return [String]
|
714
|
+
attr_accessor :type
|
715
|
+
|
716
|
+
def initialize(**args)
|
717
|
+
update!(**args)
|
718
|
+
end
|
719
|
+
|
720
|
+
# Update properties of this object
|
721
|
+
def update!(**args)
|
722
|
+
@labels = args[:labels] if args.key?(:labels)
|
723
|
+
@name = args[:name] if args.key?(:name)
|
724
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
725
|
+
@description = args[:description] if args.key?(:description)
|
726
|
+
@type = args[:type] if args.key?(:type)
|
727
|
+
end
|
728
|
+
end
|
729
|
+
|
730
|
+
# A single strongly-typed value.
|
731
|
+
class TypedValue
|
732
|
+
include Google::Apis::Core::Hashable
|
733
|
+
|
734
|
+
# A 64-bit integer. Its range is approximately ±9.2x10<sup>18</sup>.
|
735
|
+
# Corresponds to the JSON property `int64Value`
|
736
|
+
# @return [String]
|
737
|
+
attr_accessor :int64_value
|
738
|
+
|
739
|
+
# Distribution contains summary statistics for a population of values. It
|
740
|
+
# optionally contains a histogram representing the distribution of those values
|
741
|
+
# across a set of buckets.The summary statistics are the count, mean, sum of the
|
742
|
+
# squared deviation from the mean, the minimum, and the maximum of the set of
|
743
|
+
# population of values. The histogram is based on a sequence of buckets and
|
744
|
+
# gives a count of values that fall into each bucket. The boundaries of the
|
745
|
+
# buckets are given either explicitly or by formulas for buckets of fixed or
|
746
|
+
# exponentially increasing widths.Although it is not forbidden, it is generally
|
747
|
+
# a bad idea to include non-finite values (infinities or NaNs) in the population
|
748
|
+
# of values, as this will render the mean and sum_of_squared_deviation fields
|
749
|
+
# meaningless.
|
750
|
+
# Corresponds to the JSON property `distributionValue`
|
751
|
+
# @return [Google::Apis::MonitoringV3::Distribution]
|
752
|
+
attr_accessor :distribution_value
|
753
|
+
|
754
|
+
# A Boolean value: true or false.
|
755
|
+
# Corresponds to the JSON property `boolValue`
|
756
|
+
# @return [Boolean]
|
757
|
+
attr_accessor :bool_value
|
758
|
+
alias_method :bool_value?, :bool_value
|
759
|
+
|
760
|
+
# A variable-length string value.
|
761
|
+
# Corresponds to the JSON property `stringValue`
|
762
|
+
# @return [String]
|
763
|
+
attr_accessor :string_value
|
764
|
+
|
765
|
+
# A 64-bit double-precision floating-point number. Its magnitude is
|
766
|
+
# approximately ±10<sup>±300</sup> and it has 16 significant
|
767
|
+
# digits of precision.
|
768
|
+
# Corresponds to the JSON property `doubleValue`
|
769
|
+
# @return [Float]
|
770
|
+
attr_accessor :double_value
|
771
|
+
|
772
|
+
def initialize(**args)
|
773
|
+
update!(**args)
|
774
|
+
end
|
775
|
+
|
776
|
+
# Update properties of this object
|
777
|
+
def update!(**args)
|
778
|
+
@int64_value = args[:int64_value] if args.key?(:int64_value)
|
779
|
+
@distribution_value = args[:distribution_value] if args.key?(:distribution_value)
|
780
|
+
@bool_value = args[:bool_value] if args.key?(:bool_value)
|
781
|
+
@string_value = args[:string_value] if args.key?(:string_value)
|
782
|
+
@double_value = args[:double_value] if args.key?(:double_value)
|
783
|
+
end
|
784
|
+
end
|
785
|
+
|
786
|
+
# A collection of data points sent from a collectd-based plugin. See the
|
787
|
+
# collectd documentation for more information.
|
788
|
+
class CollectdPayload
|
789
|
+
include Google::Apis::Core::Hashable
|
790
|
+
|
791
|
+
# The name of the plugin. Example: "disk".
|
792
|
+
# Corresponds to the JSON property `plugin`
|
793
|
+
# @return [String]
|
794
|
+
attr_accessor :plugin
|
795
|
+
|
796
|
+
# The instance name of the plugin Example: "hdcl".
|
797
|
+
# Corresponds to the JSON property `pluginInstance`
|
798
|
+
# @return [String]
|
799
|
+
attr_accessor :plugin_instance
|
800
|
+
|
801
|
+
# The end time of the interval.
|
802
|
+
# Corresponds to the JSON property `endTime`
|
803
|
+
# @return [String]
|
804
|
+
attr_accessor :end_time
|
805
|
+
|
806
|
+
# The start time of the interval.
|
807
|
+
# Corresponds to the JSON property `startTime`
|
808
|
+
# @return [String]
|
809
|
+
attr_accessor :start_time
|
810
|
+
|
811
|
+
# The measured values during this time interval. Each value must have a
|
812
|
+
# different dataSourceName.
|
813
|
+
# Corresponds to the JSON property `values`
|
814
|
+
# @return [Array<Google::Apis::MonitoringV3::CollectdValue>]
|
815
|
+
attr_accessor :values
|
816
|
+
|
817
|
+
# The measurement type instance. Example: "used".
|
818
|
+
# Corresponds to the JSON property `typeInstance`
|
819
|
+
# @return [String]
|
820
|
+
attr_accessor :type_instance
|
821
|
+
|
822
|
+
# The measurement metadata. Example: "process_id" -> 12345
|
823
|
+
# Corresponds to the JSON property `metadata`
|
824
|
+
# @return [Hash<String,Google::Apis::MonitoringV3::TypedValue>]
|
825
|
+
attr_accessor :metadata
|
826
|
+
|
827
|
+
# The measurement type. Example: "memory".
|
828
|
+
# Corresponds to the JSON property `type`
|
829
|
+
# @return [String]
|
830
|
+
attr_accessor :type
|
831
|
+
|
832
|
+
def initialize(**args)
|
833
|
+
update!(**args)
|
834
|
+
end
|
835
|
+
|
836
|
+
# Update properties of this object
|
837
|
+
def update!(**args)
|
838
|
+
@plugin = args[:plugin] if args.key?(:plugin)
|
839
|
+
@plugin_instance = args[:plugin_instance] if args.key?(:plugin_instance)
|
840
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
841
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
842
|
+
@values = args[:values] if args.key?(:values)
|
843
|
+
@type_instance = args[:type_instance] if args.key?(:type_instance)
|
844
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
845
|
+
@type = args[:type] if args.key?(:type)
|
846
|
+
end
|
847
|
+
end
|
848
|
+
|
849
|
+
# Specifies a linear sequence of buckets that all have the same width (except
|
850
|
+
# overflow and underflow). Each bucket represents a constant absolute
|
851
|
+
# uncertainty on the specific value in the bucket.There are num_finite_buckets +
|
852
|
+
# 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-
|
853
|
+
# 1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1))
|
854
|
+
# .
|
855
|
+
class Linear
|
856
|
+
include Google::Apis::Core::Hashable
|
857
|
+
|
858
|
+
# Must be greater than 0.
|
859
|
+
# Corresponds to the JSON property `width`
|
860
|
+
# @return [Float]
|
861
|
+
attr_accessor :width
|
862
|
+
|
863
|
+
# Lower bound of the first bucket.
|
864
|
+
# Corresponds to the JSON property `offset`
|
865
|
+
# @return [Float]
|
866
|
+
attr_accessor :offset
|
867
|
+
|
868
|
+
# Must be greater than 0.
|
869
|
+
# Corresponds to the JSON property `numFiniteBuckets`
|
870
|
+
# @return [Fixnum]
|
871
|
+
attr_accessor :num_finite_buckets
|
872
|
+
|
873
|
+
def initialize(**args)
|
874
|
+
update!(**args)
|
875
|
+
end
|
876
|
+
|
877
|
+
# Update properties of this object
|
878
|
+
def update!(**args)
|
879
|
+
@width = args[:width] if args.key?(:width)
|
880
|
+
@offset = args[:offset] if args.key?(:offset)
|
881
|
+
@num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
|
882
|
+
end
|
883
|
+
end
|
884
|
+
|
885
|
+
# A protocol buffer option, which can be attached to a message, field,
|
886
|
+
# enumeration, etc.
|
887
|
+
class Option
|
888
|
+
include Google::Apis::Core::Hashable
|
889
|
+
|
890
|
+
# The option's value packed in an Any message. If the value is a primitive, the
|
891
|
+
# corresponding wrapper type defined in google/protobuf/wrappers.proto should be
|
892
|
+
# used. If the value is an enum, it should be stored as an int32 value using the
|
893
|
+
# google.protobuf.Int32Value type.
|
894
|
+
# Corresponds to the JSON property `value`
|
895
|
+
# @return [Hash<String,Object>]
|
896
|
+
attr_accessor :value
|
897
|
+
|
898
|
+
# The option's name. For protobuf built-in options (options defined in
|
899
|
+
# descriptor.proto), this is the short name. For example, "map_entry". For
|
900
|
+
# custom options, it should be the fully-qualified name. For example, "google.
|
901
|
+
# api.http".
|
902
|
+
# Corresponds to the JSON property `name`
|
903
|
+
# @return [String]
|
904
|
+
attr_accessor :name
|
905
|
+
|
906
|
+
def initialize(**args)
|
907
|
+
update!(**args)
|
908
|
+
end
|
909
|
+
|
910
|
+
# Update properties of this object
|
911
|
+
def update!(**args)
|
912
|
+
@value = args[:value] if args.key?(:value)
|
913
|
+
@name = args[:name] if args.key?(:name)
|
914
|
+
end
|
915
|
+
end
|
916
|
+
|
917
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
918
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
919
|
+
# response type of an API method. For instance:
|
920
|
+
# service Foo `
|
921
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
922
|
+
# `
|
923
|
+
# The JSON representation for Empty is empty JSON object ``.
|
924
|
+
class Empty
|
925
|
+
include Google::Apis::Core::Hashable
|
926
|
+
|
927
|
+
def initialize(**args)
|
928
|
+
update!(**args)
|
929
|
+
end
|
930
|
+
|
931
|
+
# Update properties of this object
|
932
|
+
def update!(**args)
|
933
|
+
end
|
934
|
+
end
|
935
|
+
|
936
|
+
# A time interval extending just after a start time through an end time. If the
|
937
|
+
# start time is the same as the end time, then the interval represents a single
|
938
|
+
# point in time.
|
939
|
+
class TimeInterval
|
940
|
+
include Google::Apis::Core::Hashable
|
941
|
+
|
942
|
+
# Required. The end of the time interval.
|
943
|
+
# Corresponds to the JSON property `endTime`
|
944
|
+
# @return [String]
|
945
|
+
attr_accessor :end_time
|
946
|
+
|
947
|
+
# Optional. The beginning of the time interval. The default value for the start
|
948
|
+
# time is the end time. The start time must not be later than the end time.
|
949
|
+
# Corresponds to the JSON property `startTime`
|
950
|
+
# @return [String]
|
951
|
+
attr_accessor :start_time
|
952
|
+
|
953
|
+
def initialize(**args)
|
954
|
+
update!(**args)
|
955
|
+
end
|
956
|
+
|
957
|
+
# Update properties of this object
|
958
|
+
def update!(**args)
|
959
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
960
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
961
|
+
end
|
962
|
+
end
|
963
|
+
|
964
|
+
# Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (=
|
965
|
+
# N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1):
|
966
|
+
# boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at
|
967
|
+
# least one element. If bounds has only one element, then there are no finite
|
968
|
+
# buckets, and that single element is the common boundary of the overflow and
|
969
|
+
# underflow buckets.
|
970
|
+
class Explicit
|
971
|
+
include Google::Apis::Core::Hashable
|
972
|
+
|
973
|
+
# The values must be monotonically increasing.
|
974
|
+
# Corresponds to the JSON property `bounds`
|
975
|
+
# @return [Array<Float>]
|
976
|
+
attr_accessor :bounds
|
977
|
+
|
978
|
+
def initialize(**args)
|
979
|
+
update!(**args)
|
980
|
+
end
|
981
|
+
|
982
|
+
# Update properties of this object
|
983
|
+
def update!(**args)
|
984
|
+
@bounds = args[:bounds] if args.key?(:bounds)
|
985
|
+
end
|
986
|
+
end
|
987
|
+
|
988
|
+
# Specifies an exponential sequence of buckets that have a width that is
|
989
|
+
# proportional to the value of the lower bound. Each bucket represents a
|
990
|
+
# constant relative uncertainty on a specific value in the bucket.There are
|
991
|
+
# num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:
|
992
|
+
# Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i <
|
993
|
+
# N): scale * (growth_factor ^ (i - 1)).
|
994
|
+
class Exponential
|
995
|
+
include Google::Apis::Core::Hashable
|
996
|
+
|
997
|
+
# Must be greater than 0.
|
998
|
+
# Corresponds to the JSON property `scale`
|
999
|
+
# @return [Float]
|
1000
|
+
attr_accessor :scale
|
1001
|
+
|
1002
|
+
# Must be greater than 0.
|
1003
|
+
# Corresponds to the JSON property `numFiniteBuckets`
|
1004
|
+
# @return [Fixnum]
|
1005
|
+
attr_accessor :num_finite_buckets
|
1006
|
+
|
1007
|
+
# Must be greater than 1.
|
1008
|
+
# Corresponds to the JSON property `growthFactor`
|
1009
|
+
# @return [Float]
|
1010
|
+
attr_accessor :growth_factor
|
1011
|
+
|
1012
|
+
def initialize(**args)
|
1013
|
+
update!(**args)
|
1014
|
+
end
|
1015
|
+
|
1016
|
+
# Update properties of this object
|
1017
|
+
def update!(**args)
|
1018
|
+
@scale = args[:scale] if args.key?(:scale)
|
1019
|
+
@num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
|
1020
|
+
@growth_factor = args[:growth_factor] if args.key?(:growth_factor)
|
1021
|
+
end
|
1022
|
+
end
|
1023
|
+
|
1024
|
+
# A single data point in a time series.
|
1025
|
+
class Point
|
1026
|
+
include Google::Apis::Core::Hashable
|
1027
|
+
|
1028
|
+
# A time interval extending just after a start time through an end time. If the
|
1029
|
+
# start time is the same as the end time, then the interval represents a single
|
1030
|
+
# point in time.
|
1031
|
+
# Corresponds to the JSON property `interval`
|
1032
|
+
# @return [Google::Apis::MonitoringV3::TimeInterval]
|
1033
|
+
attr_accessor :interval
|
1034
|
+
|
1035
|
+
# A single strongly-typed value.
|
1036
|
+
# Corresponds to the JSON property `value`
|
1037
|
+
# @return [Google::Apis::MonitoringV3::TypedValue]
|
1038
|
+
attr_accessor :value
|
1039
|
+
|
1040
|
+
def initialize(**args)
|
1041
|
+
update!(**args)
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
# Update properties of this object
|
1045
|
+
def update!(**args)
|
1046
|
+
@interval = args[:interval] if args.key?(:interval)
|
1047
|
+
@value = args[:value] if args.key?(:value)
|
1048
|
+
end
|
1049
|
+
end
|
1050
|
+
|
1051
|
+
# A specific metric, identified by specifying values for all of the labels of a
|
1052
|
+
# MetricDescriptor.
|
1053
|
+
class Metric
|
1054
|
+
include Google::Apis::Core::Hashable
|
1055
|
+
|
1056
|
+
# The set of label values that uniquely identify this metric. All labels listed
|
1057
|
+
# in the MetricDescriptor must be assigned values.
|
1058
|
+
# Corresponds to the JSON property `labels`
|
1059
|
+
# @return [Hash<String,String>]
|
1060
|
+
attr_accessor :labels
|
1061
|
+
|
1062
|
+
# An existing metric type, see google.api.MetricDescriptor. For example, custom.
|
1063
|
+
# googleapis.com/invoice/paid/amount.
|
1064
|
+
# Corresponds to the JSON property `type`
|
1065
|
+
# @return [String]
|
1066
|
+
attr_accessor :type
|
1067
|
+
|
1068
|
+
def initialize(**args)
|
1069
|
+
update!(**args)
|
1070
|
+
end
|
1071
|
+
|
1072
|
+
# Update properties of this object
|
1073
|
+
def update!(**args)
|
1074
|
+
@labels = args[:labels] if args.key?(:labels)
|
1075
|
+
@type = args[:type] if args.key?(:type)
|
1076
|
+
end
|
1077
|
+
end
|
1078
|
+
|
1079
|
+
# A single field of a message type.
|
1080
|
+
class Field
|
1081
|
+
include Google::Apis::Core::Hashable
|
1082
|
+
|
1083
|
+
# The index of the field type in Type.oneofs, for message or enumeration types.
|
1084
|
+
# The first type has index 1; zero means the type is not in the list.
|
1085
|
+
# Corresponds to the JSON property `oneofIndex`
|
1086
|
+
# @return [Fixnum]
|
1087
|
+
attr_accessor :oneof_index
|
1088
|
+
|
1089
|
+
# The field cardinality.
|
1090
|
+
# Corresponds to the JSON property `cardinality`
|
1091
|
+
# @return [String]
|
1092
|
+
attr_accessor :cardinality
|
1093
|
+
|
1094
|
+
# Whether to use alternative packed wire representation.
|
1095
|
+
# Corresponds to the JSON property `packed`
|
1096
|
+
# @return [Boolean]
|
1097
|
+
attr_accessor :packed
|
1098
|
+
alias_method :packed?, :packed
|
1099
|
+
|
1100
|
+
# The string value of the default value of this field. Proto2 syntax only.
|
1101
|
+
# Corresponds to the JSON property `defaultValue`
|
1102
|
+
# @return [String]
|
1103
|
+
attr_accessor :default_value
|
1104
|
+
|
1105
|
+
# The field name.
|
1106
|
+
# Corresponds to the JSON property `name`
|
1107
|
+
# @return [String]
|
1108
|
+
attr_accessor :name
|
1109
|
+
|
1110
|
+
# The field type URL, without the scheme, for message or enumeration types.
|
1111
|
+
# Example: "type.googleapis.com/google.protobuf.Timestamp".
|
1112
|
+
# Corresponds to the JSON property `typeUrl`
|
1113
|
+
# @return [String]
|
1114
|
+
attr_accessor :type_url
|
1115
|
+
|
1116
|
+
# The field number.
|
1117
|
+
# Corresponds to the JSON property `number`
|
1118
|
+
# @return [Fixnum]
|
1119
|
+
attr_accessor :number
|
1120
|
+
|
1121
|
+
# The field JSON name.
|
1122
|
+
# Corresponds to the JSON property `jsonName`
|
1123
|
+
# @return [String]
|
1124
|
+
attr_accessor :json_name
|
1125
|
+
|
1126
|
+
# The field type.
|
1127
|
+
# Corresponds to the JSON property `kind`
|
1128
|
+
# @return [String]
|
1129
|
+
attr_accessor :kind
|
1130
|
+
|
1131
|
+
# The protocol buffer options.
|
1132
|
+
# Corresponds to the JSON property `options`
|
1133
|
+
# @return [Array<Google::Apis::MonitoringV3::Option>]
|
1134
|
+
attr_accessor :options
|
1135
|
+
|
1136
|
+
def initialize(**args)
|
1137
|
+
update!(**args)
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
# Update properties of this object
|
1141
|
+
def update!(**args)
|
1142
|
+
@oneof_index = args[:oneof_index] if args.key?(:oneof_index)
|
1143
|
+
@cardinality = args[:cardinality] if args.key?(:cardinality)
|
1144
|
+
@packed = args[:packed] if args.key?(:packed)
|
1145
|
+
@default_value = args[:default_value] if args.key?(:default_value)
|
1146
|
+
@name = args[:name] if args.key?(:name)
|
1147
|
+
@type_url = args[:type_url] if args.key?(:type_url)
|
1148
|
+
@number = args[:number] if args.key?(:number)
|
1149
|
+
@json_name = args[:json_name] if args.key?(:json_name)
|
1150
|
+
@kind = args[:kind] if args.key?(:kind)
|
1151
|
+
@options = args[:options] if args.key?(:options)
|
1152
|
+
end
|
1153
|
+
end
|
1154
|
+
|
1155
|
+
# The ListTimeSeries response.
|
1156
|
+
class ListTimeSeriesResponse
|
1157
|
+
include Google::Apis::Core::Hashable
|
1158
|
+
|
1159
|
+
# If there are more results than have been returned, then this field is set to a
|
1160
|
+
# non-empty value. To see the additional results, use that value as pageToken in
|
1161
|
+
# the next call to this method.
|
1162
|
+
# Corresponds to the JSON property `nextPageToken`
|
1163
|
+
# @return [String]
|
1164
|
+
attr_accessor :next_page_token
|
1165
|
+
|
1166
|
+
# One or more time series that match the filter included in the request.
|
1167
|
+
# Corresponds to the JSON property `timeSeries`
|
1168
|
+
# @return [Array<Google::Apis::MonitoringV3::TimeSeries>]
|
1169
|
+
attr_accessor :time_series
|
1170
|
+
|
1171
|
+
def initialize(**args)
|
1172
|
+
update!(**args)
|
1173
|
+
end
|
1174
|
+
|
1175
|
+
# Update properties of this object
|
1176
|
+
def update!(**args)
|
1177
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1178
|
+
@time_series = args[:time_series] if args.key?(:time_series)
|
1179
|
+
end
|
1180
|
+
end
|
1181
|
+
|
1182
|
+
# A description of a label.
|
1183
|
+
class LabelDescriptor
|
1184
|
+
include Google::Apis::Core::Hashable
|
1185
|
+
|
1186
|
+
# The label key.
|
1187
|
+
# Corresponds to the JSON property `key`
|
1188
|
+
# @return [String]
|
1189
|
+
attr_accessor :key
|
1190
|
+
|
1191
|
+
# A human-readable description for the label.
|
1192
|
+
# Corresponds to the JSON property `description`
|
1193
|
+
# @return [String]
|
1194
|
+
attr_accessor :description
|
1195
|
+
|
1196
|
+
# The type of data that can be assigned to the label.
|
1197
|
+
# Corresponds to the JSON property `valueType`
|
1198
|
+
# @return [String]
|
1199
|
+
attr_accessor :value_type
|
1200
|
+
|
1201
|
+
def initialize(**args)
|
1202
|
+
update!(**args)
|
1203
|
+
end
|
1204
|
+
|
1205
|
+
# Update properties of this object
|
1206
|
+
def update!(**args)
|
1207
|
+
@key = args[:key] if args.key?(:key)
|
1208
|
+
@description = args[:description] if args.key?(:description)
|
1209
|
+
@value_type = args[:value_type] if args.key?(:value_type)
|
1210
|
+
end
|
1211
|
+
end
|
1212
|
+
|
1213
|
+
# The description of a dynamic collection of monitored resources. Each group has
|
1214
|
+
# a filter that is matched against monitored resources and their associated
|
1215
|
+
# metadata. If a group's filter matches an available monitored resource, then
|
1216
|
+
# that resource is a member of that group. Groups can contain any number of
|
1217
|
+
# monitored resources, and each monitored resource can be a member of any number
|
1218
|
+
# of groups.Groups can be nested in parent-child hierarchies. The parentName
|
1219
|
+
# field identifies an optional parent for each group. If a group has a parent,
|
1220
|
+
# then the only monitored resources available to be matched by the group's
|
1221
|
+
# filter are the resources contained in the parent group. In other words, a
|
1222
|
+
# group contains the monitored resources that match its filter and the filters
|
1223
|
+
# of all the group's ancestors. A group without a parent can contain any
|
1224
|
+
# monitored resource.For example, consider an infrastructure running a set of
|
1225
|
+
# instances with two user-defined tags: "environment" and "role". A parent group
|
1226
|
+
# has a filter, environment="production". A child of that parent group has a
|
1227
|
+
# filter, role="transcoder". The parent group contains all instances in the
|
1228
|
+
# production environment, regardless of their roles. The child group contains
|
1229
|
+
# instances that have the transcoder role and are in the production environment.
|
1230
|
+
# The monitored resources contained in a group can change at any moment,
|
1231
|
+
# depending on what resources exist and what filters are associated with the
|
1232
|
+
# group and its ancestors.
|
1233
|
+
class Group
|
1234
|
+
include Google::Apis::Core::Hashable
|
1235
|
+
|
1236
|
+
# The filter used to determine which monitored resources belong to this group.
|
1237
|
+
# Corresponds to the JSON property `filter`
|
1238
|
+
# @return [String]
|
1239
|
+
attr_accessor :filter
|
1240
|
+
|
1241
|
+
# Output only. The name of this group. The format is "projects/`
|
1242
|
+
# project_id_or_number`/groups/`group_id`". When creating a group, this field is
|
1243
|
+
# ignored and a new name is created consisting of the project specified in the
|
1244
|
+
# call to CreateGroup and a unique `group_id` that is generated automatically.
|
1245
|
+
# Corresponds to the JSON property `name`
|
1246
|
+
# @return [String]
|
1247
|
+
attr_accessor :name
|
1248
|
+
|
1249
|
+
# The name of the group's parent, if it has one. The format is "projects/`
|
1250
|
+
# project_id_or_number`/groups/`group_id`". For groups with no parent,
|
1251
|
+
# parentName is the empty string, "".
|
1252
|
+
# Corresponds to the JSON property `parentName`
|
1253
|
+
# @return [String]
|
1254
|
+
attr_accessor :parent_name
|
1255
|
+
|
1256
|
+
# A user-assigned name for this group, used only for display purposes.
|
1257
|
+
# Corresponds to the JSON property `displayName`
|
1258
|
+
# @return [String]
|
1259
|
+
attr_accessor :display_name
|
1260
|
+
|
1261
|
+
# If true, the members of this group are considered to be a cluster. The system
|
1262
|
+
# can perform additional analysis on groups that are clusters.
|
1263
|
+
# Corresponds to the JSON property `isCluster`
|
1264
|
+
# @return [Boolean]
|
1265
|
+
attr_accessor :is_cluster
|
1266
|
+
alias_method :is_cluster?, :is_cluster
|
1267
|
+
|
1268
|
+
def initialize(**args)
|
1269
|
+
update!(**args)
|
1270
|
+
end
|
1271
|
+
|
1272
|
+
# Update properties of this object
|
1273
|
+
def update!(**args)
|
1274
|
+
@filter = args[:filter] if args.key?(:filter)
|
1275
|
+
@name = args[:name] if args.key?(:name)
|
1276
|
+
@parent_name = args[:parent_name] if args.key?(:parent_name)
|
1277
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1278
|
+
@is_cluster = args[:is_cluster] if args.key?(:is_cluster)
|
1279
|
+
end
|
1280
|
+
end
|
1281
|
+
|
1282
|
+
# A protocol buffer message type.
|
1283
|
+
class Type
|
1284
|
+
include Google::Apis::Core::Hashable
|
1285
|
+
|
1286
|
+
# The list of fields.
|
1287
|
+
# Corresponds to the JSON property `fields`
|
1288
|
+
# @return [Array<Google::Apis::MonitoringV3::Field>]
|
1289
|
+
attr_accessor :fields
|
1290
|
+
|
1291
|
+
# The fully qualified message name.
|
1292
|
+
# Corresponds to the JSON property `name`
|
1293
|
+
# @return [String]
|
1294
|
+
attr_accessor :name
|
1295
|
+
|
1296
|
+
# The list of types appearing in oneof definitions in this type.
|
1297
|
+
# Corresponds to the JSON property `oneofs`
|
1298
|
+
# @return [Array<String>]
|
1299
|
+
attr_accessor :oneofs
|
1300
|
+
|
1301
|
+
# The source syntax.
|
1302
|
+
# Corresponds to the JSON property `syntax`
|
1303
|
+
# @return [String]
|
1304
|
+
attr_accessor :syntax
|
1305
|
+
|
1306
|
+
# SourceContext represents information about the source of a protobuf element,
|
1307
|
+
# like the file in which it is defined.
|
1308
|
+
# Corresponds to the JSON property `sourceContext`
|
1309
|
+
# @return [Google::Apis::MonitoringV3::SourceContext]
|
1310
|
+
attr_accessor :source_context
|
1311
|
+
|
1312
|
+
# The protocol buffer options.
|
1313
|
+
# Corresponds to the JSON property `options`
|
1314
|
+
# @return [Array<Google::Apis::MonitoringV3::Option>]
|
1315
|
+
attr_accessor :options
|
1316
|
+
|
1317
|
+
def initialize(**args)
|
1318
|
+
update!(**args)
|
1319
|
+
end
|
1320
|
+
|
1321
|
+
# Update properties of this object
|
1322
|
+
def update!(**args)
|
1323
|
+
@fields = args[:fields] if args.key?(:fields)
|
1324
|
+
@name = args[:name] if args.key?(:name)
|
1325
|
+
@oneofs = args[:oneofs] if args.key?(:oneofs)
|
1326
|
+
@syntax = args[:syntax] if args.key?(:syntax)
|
1327
|
+
@source_context = args[:source_context] if args.key?(:source_context)
|
1328
|
+
@options = args[:options] if args.key?(:options)
|
1329
|
+
end
|
1330
|
+
end
|
1331
|
+
end
|
1332
|
+
end
|
1333
|
+
end
|