google-api-client 0.9.8 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- 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,245 @@
|
|
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 SlidesV1
|
23
|
+
# Google Slides API
|
24
|
+
#
|
25
|
+
# An API for creating and editing Google Slides presentations.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/slides_v1'
|
29
|
+
#
|
30
|
+
# Slides = Google::Apis::SlidesV1 # Alias the module
|
31
|
+
# service = Slides::SlidesService.new
|
32
|
+
#
|
33
|
+
# @see https://developers.google.com/slides/
|
34
|
+
class SlidesService < 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://slides.googleapis.com/', '')
|
47
|
+
end
|
48
|
+
|
49
|
+
# Gets the latest version of the specified presentation.
|
50
|
+
# @param [String] presentation_id
|
51
|
+
# The ID of the presentation to retrieve.
|
52
|
+
# @param [String] fields
|
53
|
+
# Selector specifying which fields to include in a partial response.
|
54
|
+
# @param [String] quota_user
|
55
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
56
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
57
|
+
# @param [Google::Apis::RequestOptions] options
|
58
|
+
# Request-specific options
|
59
|
+
#
|
60
|
+
# @yield [result, err] Result & error if block supplied
|
61
|
+
# @yieldparam result [Google::Apis::SlidesV1::Presentation] parsed result object
|
62
|
+
# @yieldparam err [StandardError] error object if request failed
|
63
|
+
#
|
64
|
+
# @return [Google::Apis::SlidesV1::Presentation]
|
65
|
+
#
|
66
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
67
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
68
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
69
|
+
def get_presentation(presentation_id, fields: nil, quota_user: nil, options: nil, &block)
|
70
|
+
command = make_simple_command(:get, 'v1/presentations/{+presentationId}', options)
|
71
|
+
command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
|
72
|
+
command.response_class = Google::Apis::SlidesV1::Presentation
|
73
|
+
command.params['presentationId'] = presentation_id unless presentation_id.nil?
|
74
|
+
command.query['fields'] = fields unless fields.nil?
|
75
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
76
|
+
execute_or_queue_command(command, &block)
|
77
|
+
end
|
78
|
+
|
79
|
+
# Creates a new presentation using the title given in the request. Other
|
80
|
+
# fields in the request are ignored.
|
81
|
+
# Returns the created presentation.
|
82
|
+
# @param [Google::Apis::SlidesV1::Presentation] presentation_object
|
83
|
+
# @param [String] fields
|
84
|
+
# Selector specifying which fields to include in a partial response.
|
85
|
+
# @param [String] quota_user
|
86
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
87
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
88
|
+
# @param [Google::Apis::RequestOptions] options
|
89
|
+
# Request-specific options
|
90
|
+
#
|
91
|
+
# @yield [result, err] Result & error if block supplied
|
92
|
+
# @yieldparam result [Google::Apis::SlidesV1::Presentation] parsed result object
|
93
|
+
# @yieldparam err [StandardError] error object if request failed
|
94
|
+
#
|
95
|
+
# @return [Google::Apis::SlidesV1::Presentation]
|
96
|
+
#
|
97
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
98
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
99
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
100
|
+
def create_presentation(presentation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
101
|
+
command = make_simple_command(:post, 'v1/presentations', options)
|
102
|
+
command.request_representation = Google::Apis::SlidesV1::Presentation::Representation
|
103
|
+
command.request_object = presentation_object
|
104
|
+
command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
|
105
|
+
command.response_class = Google::Apis::SlidesV1::Presentation
|
106
|
+
command.query['fields'] = fields unless fields.nil?
|
107
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
108
|
+
execute_or_queue_command(command, &block)
|
109
|
+
end
|
110
|
+
|
111
|
+
# Applies one or more updates to the presentation.
|
112
|
+
# Each request is validated before
|
113
|
+
# being applied. If any request is not valid, then the entire request will
|
114
|
+
# fail and nothing will be applied.
|
115
|
+
# Some requests have replies to
|
116
|
+
# give you some information about how they are applied. Other requests do
|
117
|
+
# not need to return information; these each return an empty reply.
|
118
|
+
# The order of replies matches that of the requests.
|
119
|
+
# For example, suppose you call batchUpdate with four updates, and only the
|
120
|
+
# third one returns information. The response would have two empty replies:
|
121
|
+
# the reply to the third request, and another empty reply, in that order.
|
122
|
+
# Because other users may be editing the presentation, the presentation
|
123
|
+
# might not exactly reflect your changes: your changes may
|
124
|
+
# be altered with respect to collaborator changes. If there are no
|
125
|
+
# collaborators, the presentation should reflect your changes. In any case,
|
126
|
+
# the updates in your request are guaranteed to be applied together
|
127
|
+
# atomically.
|
128
|
+
# @param [String] presentation_id
|
129
|
+
# The presentation to apply the updates to.
|
130
|
+
# @param [Google::Apis::SlidesV1::BatchUpdatePresentationRequest] batch_update_presentation_request_object
|
131
|
+
# @param [String] fields
|
132
|
+
# Selector specifying which fields to include in a partial response.
|
133
|
+
# @param [String] quota_user
|
134
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
135
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
136
|
+
# @param [Google::Apis::RequestOptions] options
|
137
|
+
# Request-specific options
|
138
|
+
#
|
139
|
+
# @yield [result, err] Result & error if block supplied
|
140
|
+
# @yieldparam result [Google::Apis::SlidesV1::BatchUpdatePresentationResponse] parsed result object
|
141
|
+
# @yieldparam err [StandardError] error object if request failed
|
142
|
+
#
|
143
|
+
# @return [Google::Apis::SlidesV1::BatchUpdatePresentationResponse]
|
144
|
+
#
|
145
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
146
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
147
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
148
|
+
def batch_update_presentation(presentation_id, batch_update_presentation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
149
|
+
command = make_simple_command(:post, 'v1/presentations/{presentationId}:batchUpdate', options)
|
150
|
+
command.request_representation = Google::Apis::SlidesV1::BatchUpdatePresentationRequest::Representation
|
151
|
+
command.request_object = batch_update_presentation_request_object
|
152
|
+
command.response_representation = Google::Apis::SlidesV1::BatchUpdatePresentationResponse::Representation
|
153
|
+
command.response_class = Google::Apis::SlidesV1::BatchUpdatePresentationResponse
|
154
|
+
command.params['presentationId'] = presentation_id unless presentation_id.nil?
|
155
|
+
command.query['fields'] = fields unless fields.nil?
|
156
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
157
|
+
execute_or_queue_command(command, &block)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Generates a thumbnail of the latest version of the specified page in the
|
161
|
+
# presentation and returns a URL to the thumbnail image.
|
162
|
+
# @param [String] presentation_id
|
163
|
+
# The ID of the presentation to retrieve.
|
164
|
+
# @param [String] page_object_id
|
165
|
+
# The object ID of the page whose thumbnail to retrieve.
|
166
|
+
# @param [String] thumbnail_properties_mime_type
|
167
|
+
# The optional mime type of the thumbnail image.
|
168
|
+
# If you don't specify the mime type, the default mime type will be PNG.
|
169
|
+
# @param [String] thumbnail_properties_thumbnail_size
|
170
|
+
# The optional thumbnail image size.
|
171
|
+
# If you don't specify the size, the server chooses a default size of the
|
172
|
+
# image.
|
173
|
+
# @param [String] fields
|
174
|
+
# Selector specifying which fields to include in a partial response.
|
175
|
+
# @param [String] quota_user
|
176
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
177
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
178
|
+
# @param [Google::Apis::RequestOptions] options
|
179
|
+
# Request-specific options
|
180
|
+
#
|
181
|
+
# @yield [result, err] Result & error if block supplied
|
182
|
+
# @yieldparam result [Google::Apis::SlidesV1::Thumbnail] parsed result object
|
183
|
+
# @yieldparam err [StandardError] error object if request failed
|
184
|
+
#
|
185
|
+
# @return [Google::Apis::SlidesV1::Thumbnail]
|
186
|
+
#
|
187
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
188
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
189
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
190
|
+
def get_presentation_page_thumbnail(presentation_id, page_object_id, thumbnail_properties_mime_type: nil, thumbnail_properties_thumbnail_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
191
|
+
command = make_simple_command(:get, 'v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail', options)
|
192
|
+
command.response_representation = Google::Apis::SlidesV1::Thumbnail::Representation
|
193
|
+
command.response_class = Google::Apis::SlidesV1::Thumbnail
|
194
|
+
command.params['presentationId'] = presentation_id unless presentation_id.nil?
|
195
|
+
command.params['pageObjectId'] = page_object_id unless page_object_id.nil?
|
196
|
+
command.query['thumbnailProperties.mimeType'] = thumbnail_properties_mime_type unless thumbnail_properties_mime_type.nil?
|
197
|
+
command.query['thumbnailProperties.thumbnailSize'] = thumbnail_properties_thumbnail_size unless thumbnail_properties_thumbnail_size.nil?
|
198
|
+
command.query['fields'] = fields unless fields.nil?
|
199
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
200
|
+
execute_or_queue_command(command, &block)
|
201
|
+
end
|
202
|
+
|
203
|
+
# Gets the latest version of the specified page in the presentation.
|
204
|
+
# @param [String] presentation_id
|
205
|
+
# The ID of the presentation to retrieve.
|
206
|
+
# @param [String] page_object_id
|
207
|
+
# The object ID of the page to retrieve.
|
208
|
+
# @param [String] fields
|
209
|
+
# Selector specifying which fields to include in a partial response.
|
210
|
+
# @param [String] quota_user
|
211
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
212
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
213
|
+
# @param [Google::Apis::RequestOptions] options
|
214
|
+
# Request-specific options
|
215
|
+
#
|
216
|
+
# @yield [result, err] Result & error if block supplied
|
217
|
+
# @yieldparam result [Google::Apis::SlidesV1::Page] parsed result object
|
218
|
+
# @yieldparam err [StandardError] error object if request failed
|
219
|
+
#
|
220
|
+
# @return [Google::Apis::SlidesV1::Page]
|
221
|
+
#
|
222
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
223
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
224
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
225
|
+
def get_presentation_page(presentation_id, page_object_id, fields: nil, quota_user: nil, options: nil, &block)
|
226
|
+
command = make_simple_command(:get, 'v1/presentations/{presentationId}/pages/{pageObjectId}', options)
|
227
|
+
command.response_representation = Google::Apis::SlidesV1::Page::Representation
|
228
|
+
command.response_class = Google::Apis::SlidesV1::Page
|
229
|
+
command.params['presentationId'] = presentation_id unless presentation_id.nil?
|
230
|
+
command.params['pageObjectId'] = page_object_id unless page_object_id.nil?
|
231
|
+
command.query['fields'] = fields unless fields.nil?
|
232
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
233
|
+
execute_or_queue_command(command, &block)
|
234
|
+
end
|
235
|
+
|
236
|
+
protected
|
237
|
+
|
238
|
+
def apply_command_defaults(command)
|
239
|
+
command.query['key'] = key unless key.nil?
|
240
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
241
|
+
end
|
242
|
+
end
|
243
|
+
end
|
244
|
+
end
|
245
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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/speech_v1beta1/service.rb'
|
16
|
+
require 'google/apis/speech_v1beta1/classes.rb'
|
17
|
+
require 'google/apis/speech_v1beta1/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Google Cloud Speech API
|
22
|
+
#
|
23
|
+
# Google Cloud Speech API.
|
24
|
+
#
|
25
|
+
# @see https://cloud.google.com/speech/
|
26
|
+
module SpeechV1beta1
|
27
|
+
VERSION = 'V1beta1'
|
28
|
+
REVISION = '20170323'
|
29
|
+
|
30
|
+
# View and manage your data across Google Cloud Platform services
|
31
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,498 @@
|
|
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 SpeechV1beta1
|
24
|
+
|
25
|
+
# Alternative hypotheses (a.k.a. n-best list).
|
26
|
+
class SpeechRecognitionAlternative
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# *Output-only* The confidence estimate between 0.0 and 1.0. A higher number
|
30
|
+
# indicates an estimated greater likelihood that the recognized words are
|
31
|
+
# correct. This field is typically provided only for the top hypothesis, and
|
32
|
+
# only for `is_final=true` results. Clients should not rely on the
|
33
|
+
# `confidence` field as it is not guaranteed to be accurate, or even set, in
|
34
|
+
# any of the results.
|
35
|
+
# The default of 0.0 is a sentinel value indicating `confidence` was not set.
|
36
|
+
# Corresponds to the JSON property `confidence`
|
37
|
+
# @return [Float]
|
38
|
+
attr_accessor :confidence
|
39
|
+
|
40
|
+
# *Output-only* Transcript text representing the words that the user spoke.
|
41
|
+
# Corresponds to the JSON property `transcript`
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :transcript
|
44
|
+
|
45
|
+
def initialize(**args)
|
46
|
+
update!(**args)
|
47
|
+
end
|
48
|
+
|
49
|
+
# Update properties of this object
|
50
|
+
def update!(**args)
|
51
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
52
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# Provides "hints" to the speech recognizer to favor specific words and phrases
|
57
|
+
# in the results.
|
58
|
+
class SpeechContext
|
59
|
+
include Google::Apis::Core::Hashable
|
60
|
+
|
61
|
+
# *Optional* A list of strings containing words and phrases "hints" so that
|
62
|
+
# the speech recognition is more likely to recognize them. This can be used
|
63
|
+
# to improve the accuracy for specific words and phrases, for example, if
|
64
|
+
# specific commands are typically spoken by the user. This can also be used
|
65
|
+
# to add additional words to the vocabulary of the recognizer. See
|
66
|
+
# [usage limits](https://cloud.google.com/speech/limits#content).
|
67
|
+
# Corresponds to the JSON property `phrases`
|
68
|
+
# @return [Array<String>]
|
69
|
+
attr_accessor :phrases
|
70
|
+
|
71
|
+
def initialize(**args)
|
72
|
+
update!(**args)
|
73
|
+
end
|
74
|
+
|
75
|
+
# Update properties of this object
|
76
|
+
def update!(**args)
|
77
|
+
@phrases = args[:phrases] if args.key?(:phrases)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# The response message for Operations.ListOperations.
|
82
|
+
class ListOperationsResponse
|
83
|
+
include Google::Apis::Core::Hashable
|
84
|
+
|
85
|
+
# The standard List next-page token.
|
86
|
+
# Corresponds to the JSON property `nextPageToken`
|
87
|
+
# @return [String]
|
88
|
+
attr_accessor :next_page_token
|
89
|
+
|
90
|
+
# A list of operations that matches the specified filter in the request.
|
91
|
+
# Corresponds to the JSON property `operations`
|
92
|
+
# @return [Array<Google::Apis::SpeechV1beta1::Operation>]
|
93
|
+
attr_accessor :operations
|
94
|
+
|
95
|
+
def initialize(**args)
|
96
|
+
update!(**args)
|
97
|
+
end
|
98
|
+
|
99
|
+
# Update properties of this object
|
100
|
+
def update!(**args)
|
101
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
102
|
+
@operations = args[:operations] if args.key?(:operations)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
# A speech recognition result corresponding to a portion of the audio.
|
107
|
+
class SpeechRecognitionResult
|
108
|
+
include Google::Apis::Core::Hashable
|
109
|
+
|
110
|
+
# *Output-only* May contain one or more recognition hypotheses (up to the
|
111
|
+
# maximum specified in `max_alternatives`).
|
112
|
+
# Corresponds to the JSON property `alternatives`
|
113
|
+
# @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionAlternative>]
|
114
|
+
attr_accessor :alternatives
|
115
|
+
|
116
|
+
def initialize(**args)
|
117
|
+
update!(**args)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Update properties of this object
|
121
|
+
def update!(**args)
|
122
|
+
@alternatives = args[:alternatives] if args.key?(:alternatives)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
# The top-level message sent by the client for the `AsyncRecognize` method.
|
127
|
+
class AsyncRecognizeRequest
|
128
|
+
include Google::Apis::Core::Hashable
|
129
|
+
|
130
|
+
# Provides information to the recognizer that specifies how to process the
|
131
|
+
# request.
|
132
|
+
# Corresponds to the JSON property `config`
|
133
|
+
# @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
|
134
|
+
attr_accessor :config
|
135
|
+
|
136
|
+
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
137
|
+
# Either `content` or `uri` must be supplied. Supplying both or neither
|
138
|
+
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
139
|
+
# [audio limits](https://cloud.google.com/speech/limits#content).
|
140
|
+
# Corresponds to the JSON property `audio`
|
141
|
+
# @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
|
142
|
+
attr_accessor :audio
|
143
|
+
|
144
|
+
def initialize(**args)
|
145
|
+
update!(**args)
|
146
|
+
end
|
147
|
+
|
148
|
+
# Update properties of this object
|
149
|
+
def update!(**args)
|
150
|
+
@config = args[:config] if args.key?(:config)
|
151
|
+
@audio = args[:audio] if args.key?(:audio)
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
156
|
+
# Either `content` or `uri` must be supplied. Supplying both or neither
|
157
|
+
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
158
|
+
# [audio limits](https://cloud.google.com/speech/limits#content).
|
159
|
+
class RecognitionAudio
|
160
|
+
include Google::Apis::Core::Hashable
|
161
|
+
|
162
|
+
# The audio data bytes encoded as specified in
|
163
|
+
# `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
|
164
|
+
# pure binary representation, whereas JSON representations use base64.
|
165
|
+
# Corresponds to the JSON property `content`
|
166
|
+
# @return [String]
|
167
|
+
attr_accessor :content
|
168
|
+
|
169
|
+
# URI that points to a file that contains audio data bytes as specified in
|
170
|
+
# `RecognitionConfig`. Currently, only Google Cloud Storage URIs are
|
171
|
+
# supported, which must be specified in the following format:
|
172
|
+
# `gs://bucket_name/object_name` (other URI formats return
|
173
|
+
# google.rpc.Code.INVALID_ARGUMENT). For more information, see
|
174
|
+
# [Request URIs](https://cloud.google.com/storage/docs/reference-uris).
|
175
|
+
# Corresponds to the JSON property `uri`
|
176
|
+
# @return [String]
|
177
|
+
attr_accessor :uri
|
178
|
+
|
179
|
+
def initialize(**args)
|
180
|
+
update!(**args)
|
181
|
+
end
|
182
|
+
|
183
|
+
# Update properties of this object
|
184
|
+
def update!(**args)
|
185
|
+
@content = args[:content] if args.key?(:content)
|
186
|
+
@uri = args[:uri] if args.key?(:uri)
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
# This resource represents a long-running operation that is the result of a
|
191
|
+
# network API call.
|
192
|
+
class Operation
|
193
|
+
include Google::Apis::Core::Hashable
|
194
|
+
|
195
|
+
# If the value is `false`, it means the operation is still in progress.
|
196
|
+
# If true, the operation is completed, and either `error` or `response` is
|
197
|
+
# available.
|
198
|
+
# Corresponds to the JSON property `done`
|
199
|
+
# @return [Boolean]
|
200
|
+
attr_accessor :done
|
201
|
+
alias_method :done?, :done
|
202
|
+
|
203
|
+
# The normal response of the operation in case of success. If the original
|
204
|
+
# method returns no data on success, such as `Delete`, the response is
|
205
|
+
# `google.protobuf.Empty`. If the original method is standard
|
206
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
207
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
208
|
+
# is the original method name. For example, if the original method name
|
209
|
+
# is `TakeSnapshot()`, the inferred response type is
|
210
|
+
# `TakeSnapshotResponse`.
|
211
|
+
# Corresponds to the JSON property `response`
|
212
|
+
# @return [Hash<String,Object>]
|
213
|
+
attr_accessor :response
|
214
|
+
|
215
|
+
# The server-assigned name, which is only unique within the same service that
|
216
|
+
# originally returns it. If you use the default HTTP mapping, the
|
217
|
+
# `name` should have the format of `operations/some/unique/name`.
|
218
|
+
# Corresponds to the JSON property `name`
|
219
|
+
# @return [String]
|
220
|
+
attr_accessor :name
|
221
|
+
|
222
|
+
# The `Status` type defines a logical error model that is suitable for different
|
223
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
224
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
225
|
+
# - Simple to use and understand for most users
|
226
|
+
# - Flexible enough to meet unexpected needs
|
227
|
+
# # Overview
|
228
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
229
|
+
# and error details. The error code should be an enum value of
|
230
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
231
|
+
# error message should be a developer-facing English message that helps
|
232
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
233
|
+
# error message is needed, put the localized message in the error details or
|
234
|
+
# localize it in the client. The optional error details may contain arbitrary
|
235
|
+
# information about the error. There is a predefined set of error detail types
|
236
|
+
# in the package `google.rpc` which can be used for common error conditions.
|
237
|
+
# # Language mapping
|
238
|
+
# The `Status` message is the logical representation of the error model, but it
|
239
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
240
|
+
# exposed in different client libraries and different wire protocols, it can be
|
241
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
242
|
+
# in Java, but more likely mapped to some error codes in C.
|
243
|
+
# # Other uses
|
244
|
+
# The error model and the `Status` message can be used in a variety of
|
245
|
+
# environments, either with or without APIs, to provide a
|
246
|
+
# consistent developer experience across different environments.
|
247
|
+
# Example uses of this error model include:
|
248
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
249
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
250
|
+
# errors.
|
251
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
252
|
+
# have a `Status` message for error reporting purpose.
|
253
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
254
|
+
# `Status` message should be used directly inside batch response, one for
|
255
|
+
# each error sub-response.
|
256
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
257
|
+
# results in its response, the status of those operations should be
|
258
|
+
# represented directly using the `Status` message.
|
259
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
260
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
261
|
+
# Corresponds to the JSON property `error`
|
262
|
+
# @return [Google::Apis::SpeechV1beta1::Status]
|
263
|
+
attr_accessor :error
|
264
|
+
|
265
|
+
# Service-specific metadata associated with the operation. It typically
|
266
|
+
# contains progress information and common metadata such as create time.
|
267
|
+
# Some services might not provide such metadata. Any method that returns a
|
268
|
+
# long-running operation should document the metadata type, if any.
|
269
|
+
# Corresponds to the JSON property `metadata`
|
270
|
+
# @return [Hash<String,Object>]
|
271
|
+
attr_accessor :metadata
|
272
|
+
|
273
|
+
def initialize(**args)
|
274
|
+
update!(**args)
|
275
|
+
end
|
276
|
+
|
277
|
+
# Update properties of this object
|
278
|
+
def update!(**args)
|
279
|
+
@done = args[:done] if args.key?(:done)
|
280
|
+
@response = args[:response] if args.key?(:response)
|
281
|
+
@name = args[:name] if args.key?(:name)
|
282
|
+
@error = args[:error] if args.key?(:error)
|
283
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
# Provides information to the recognizer that specifies how to process the
|
288
|
+
# request.
|
289
|
+
class RecognitionConfig
|
290
|
+
include Google::Apis::Core::Hashable
|
291
|
+
|
292
|
+
# *Optional* Maximum number of recognition hypotheses to be returned.
|
293
|
+
# Specifically, the maximum number of `SpeechRecognitionAlternative` messages
|
294
|
+
# within each `SpeechRecognitionResult`.
|
295
|
+
# The server may return fewer than `max_alternatives`.
|
296
|
+
# Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
|
297
|
+
# one. If omitted, will return a maximum of one.
|
298
|
+
# Corresponds to the JSON property `maxAlternatives`
|
299
|
+
# @return [Fixnum]
|
300
|
+
attr_accessor :max_alternatives
|
301
|
+
|
302
|
+
# *Required* Sample rate in Hertz of the audio data sent in all
|
303
|
+
# `RecognitionAudio` messages. Valid values are: 8000-48000.
|
304
|
+
# 16000 is optimal. For best results, set the sampling rate of the audio
|
305
|
+
# source to 16000 Hz. If that's not possible, use the native sample rate of
|
306
|
+
# the audio source (instead of re-sampling).
|
307
|
+
# Corresponds to the JSON property `sampleRate`
|
308
|
+
# @return [Fixnum]
|
309
|
+
attr_accessor :sample_rate
|
310
|
+
|
311
|
+
# *Optional* The language of the supplied audio as a BCP-47 language tag.
|
312
|
+
# Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt
|
313
|
+
# If omitted, defaults to "en-US". See
|
314
|
+
# [Language Support](https://cloud.google.com/speech/docs/languages)
|
315
|
+
# for a list of the currently supported language codes.
|
316
|
+
# Corresponds to the JSON property `languageCode`
|
317
|
+
# @return [String]
|
318
|
+
attr_accessor :language_code
|
319
|
+
|
320
|
+
# Provides "hints" to the speech recognizer to favor specific words and phrases
|
321
|
+
# in the results.
|
322
|
+
# Corresponds to the JSON property `speechContext`
|
323
|
+
# @return [Google::Apis::SpeechV1beta1::SpeechContext]
|
324
|
+
attr_accessor :speech_context
|
325
|
+
|
326
|
+
# *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
|
327
|
+
# Corresponds to the JSON property `encoding`
|
328
|
+
# @return [String]
|
329
|
+
attr_accessor :encoding
|
330
|
+
|
331
|
+
# *Optional* If set to `true`, the server will attempt to filter out
|
332
|
+
# profanities, replacing all but the initial character in each filtered word
|
333
|
+
# with asterisks, e.g. "f***". If set to `false` or omitted, profanities
|
334
|
+
# won't be filtered out.
|
335
|
+
# Corresponds to the JSON property `profanityFilter`
|
336
|
+
# @return [Boolean]
|
337
|
+
attr_accessor :profanity_filter
|
338
|
+
alias_method :profanity_filter?, :profanity_filter
|
339
|
+
|
340
|
+
def initialize(**args)
|
341
|
+
update!(**args)
|
342
|
+
end
|
343
|
+
|
344
|
+
# Update properties of this object
|
345
|
+
def update!(**args)
|
346
|
+
@max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
|
347
|
+
@sample_rate = args[:sample_rate] if args.key?(:sample_rate)
|
348
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
349
|
+
@speech_context = args[:speech_context] if args.key?(:speech_context)
|
350
|
+
@encoding = args[:encoding] if args.key?(:encoding)
|
351
|
+
@profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
|
352
|
+
end
|
353
|
+
end
|
354
|
+
|
355
|
+
# The top-level message sent by the client for the `SyncRecognize` method.
|
356
|
+
class SyncRecognizeRequest
|
357
|
+
include Google::Apis::Core::Hashable
|
358
|
+
|
359
|
+
# Provides information to the recognizer that specifies how to process the
|
360
|
+
# request.
|
361
|
+
# Corresponds to the JSON property `config`
|
362
|
+
# @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
|
363
|
+
attr_accessor :config
|
364
|
+
|
365
|
+
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
366
|
+
# Either `content` or `uri` must be supplied. Supplying both or neither
|
367
|
+
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
368
|
+
# [audio limits](https://cloud.google.com/speech/limits#content).
|
369
|
+
# Corresponds to the JSON property `audio`
|
370
|
+
# @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
|
371
|
+
attr_accessor :audio
|
372
|
+
|
373
|
+
def initialize(**args)
|
374
|
+
update!(**args)
|
375
|
+
end
|
376
|
+
|
377
|
+
# Update properties of this object
|
378
|
+
def update!(**args)
|
379
|
+
@config = args[:config] if args.key?(:config)
|
380
|
+
@audio = args[:audio] if args.key?(:audio)
|
381
|
+
end
|
382
|
+
end
|
383
|
+
|
384
|
+
# The `Status` type defines a logical error model that is suitable for different
|
385
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
386
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
387
|
+
# - Simple to use and understand for most users
|
388
|
+
# - Flexible enough to meet unexpected needs
|
389
|
+
# # Overview
|
390
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
391
|
+
# and error details. The error code should be an enum value of
|
392
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
393
|
+
# error message should be a developer-facing English message that helps
|
394
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
395
|
+
# error message is needed, put the localized message in the error details or
|
396
|
+
# localize it in the client. The optional error details may contain arbitrary
|
397
|
+
# information about the error. There is a predefined set of error detail types
|
398
|
+
# in the package `google.rpc` which can be used for common error conditions.
|
399
|
+
# # Language mapping
|
400
|
+
# The `Status` message is the logical representation of the error model, but it
|
401
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
402
|
+
# exposed in different client libraries and different wire protocols, it can be
|
403
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
404
|
+
# in Java, but more likely mapped to some error codes in C.
|
405
|
+
# # Other uses
|
406
|
+
# The error model and the `Status` message can be used in a variety of
|
407
|
+
# environments, either with or without APIs, to provide a
|
408
|
+
# consistent developer experience across different environments.
|
409
|
+
# Example uses of this error model include:
|
410
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
411
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
412
|
+
# errors.
|
413
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
414
|
+
# have a `Status` message for error reporting purpose.
|
415
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
416
|
+
# `Status` message should be used directly inside batch response, one for
|
417
|
+
# each error sub-response.
|
418
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
419
|
+
# results in its response, the status of those operations should be
|
420
|
+
# represented directly using the `Status` message.
|
421
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
422
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
423
|
+
class Status
|
424
|
+
include Google::Apis::Core::Hashable
|
425
|
+
|
426
|
+
# A list of messages that carry the error details. There will be a
|
427
|
+
# common set of message types for APIs to use.
|
428
|
+
# Corresponds to the JSON property `details`
|
429
|
+
# @return [Array<Hash<String,Object>>]
|
430
|
+
attr_accessor :details
|
431
|
+
|
432
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
433
|
+
# Corresponds to the JSON property `code`
|
434
|
+
# @return [Fixnum]
|
435
|
+
attr_accessor :code
|
436
|
+
|
437
|
+
# A developer-facing error message, which should be in English. Any
|
438
|
+
# user-facing error message should be localized and sent in the
|
439
|
+
# google.rpc.Status.details field, or localized by the client.
|
440
|
+
# Corresponds to the JSON property `message`
|
441
|
+
# @return [String]
|
442
|
+
attr_accessor :message
|
443
|
+
|
444
|
+
def initialize(**args)
|
445
|
+
update!(**args)
|
446
|
+
end
|
447
|
+
|
448
|
+
# Update properties of this object
|
449
|
+
def update!(**args)
|
450
|
+
@details = args[:details] if args.key?(:details)
|
451
|
+
@code = args[:code] if args.key?(:code)
|
452
|
+
@message = args[:message] if args.key?(:message)
|
453
|
+
end
|
454
|
+
end
|
455
|
+
|
456
|
+
# The only message returned to the client by `SyncRecognize`. method. It
|
457
|
+
# contains the result as zero or more sequential `SpeechRecognitionResult`
|
458
|
+
# messages.
|
459
|
+
class SyncRecognizeResponse
|
460
|
+
include Google::Apis::Core::Hashable
|
461
|
+
|
462
|
+
# *Output-only* Sequential list of transcription results corresponding to
|
463
|
+
# sequential portions of audio.
|
464
|
+
# Corresponds to the JSON property `results`
|
465
|
+
# @return [Array<Google::Apis::SpeechV1beta1::SpeechRecognitionResult>]
|
466
|
+
attr_accessor :results
|
467
|
+
|
468
|
+
def initialize(**args)
|
469
|
+
update!(**args)
|
470
|
+
end
|
471
|
+
|
472
|
+
# Update properties of this object
|
473
|
+
def update!(**args)
|
474
|
+
@results = args[:results] if args.key?(:results)
|
475
|
+
end
|
476
|
+
end
|
477
|
+
|
478
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
479
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
480
|
+
# or the response type of an API method. For instance:
|
481
|
+
# service Foo `
|
482
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
483
|
+
# `
|
484
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
485
|
+
class Empty
|
486
|
+
include Google::Apis::Core::Hashable
|
487
|
+
|
488
|
+
def initialize(**args)
|
489
|
+
update!(**args)
|
490
|
+
end
|
491
|
+
|
492
|
+
# Update properties of this object
|
493
|
+
def update!(**args)
|
494
|
+
end
|
495
|
+
end
|
496
|
+
end
|
497
|
+
end
|
498
|
+
end
|