google-api-client 0.10.3 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +12 -18
- data/CHANGELOG.md +22 -2
- data/Gemfile +5 -7
- data/MIGRATING.md +33 -0
- data/README.md +10 -2
- data/Rakefile +1 -0
- data/bin/generate-api +7 -1
- data/dl.rb +0 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
- data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
- data/generated/google/apis/admin_directory_v1/service.rb +1 -0
- data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
- data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
- data/generated/google/apis/admin_reports_v1/service.rb +1 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
- data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
- data/generated/google/apis/adsense_v1_4/service.rb +1 -0
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
- data/generated/google/apis/analytics_v3/classes.rb +10 -10
- data/generated/google/apis/analytics_v3/representations.rb +10 -10
- data/generated/google/apis/analytics_v3/service.rb +1 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
- data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
- data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
- data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
- data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
- data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
- data/generated/google/apis/appengine_v1/classes.rb +2 -2
- data/generated/google/apis/appengine_v1/representations.rb +2 -2
- data/generated/google/apis/appengine_v1/service.rb +1 -0
- data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -0
- data/generated/google/apis/appsmarket_v2.rb +35 -0
- data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
- data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
- data/generated/google/apis/appsmarket_v2/service.rb +187 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +1 -0
- data/generated/google/apis/bigquery_v2/classes.rb +39 -39
- data/generated/google/apis/bigquery_v2/representations.rb +38 -38
- data/generated/google/apis/bigquery_v2/service.rb +3 -2
- data/generated/google/apis/blogger_v3/classes.rb +2 -2
- data/generated/google/apis/blogger_v3/representations.rb +2 -2
- data/generated/google/apis/blogger_v3/service.rb +1 -0
- data/generated/google/apis/books_v1/classes.rb +5 -5
- data/generated/google/apis/books_v1/representations.rb +4 -4
- data/generated/google/apis/books_v1/service.rb +1 -0
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/calendar_v3/representations.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +1 -0
- data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
- data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
- data/generated/google/apis/civicinfo_v2/service.rb +2 -1
- data/generated/google/apis/classroom_v1/service.rb +1 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
- data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
- data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
- data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
- data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
- data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
- data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
- data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
- data/generated/google/apis/cloudkms_v1/service.rb +168 -167
- data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
- data/generated/google/apis/cloudtrace_v1.rb +3 -3
- data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
- data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
- data/generated/google/apis/compute_beta/classes.rb +52 -52
- data/generated/google/apis/compute_beta/representations.rb +52 -52
- data/generated/google/apis/compute_beta/service.rb +2 -1
- data/generated/google/apis/compute_v1/classes.rb +48 -48
- data/generated/google/apis/compute_v1/representations.rb +48 -48
- data/generated/google/apis/compute_v1/service.rb +2 -1
- data/generated/google/apis/container_v1/service.rb +1 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +38 -660
- data/generated/google/apis/content_v2/representations.rb +37 -303
- data/generated/google/apis/content_v2/service.rb +63 -279
- data/generated/google/apis/customsearch_v1/classes.rb +2 -2
- data/generated/google/apis/customsearch_v1/representations.rb +2 -2
- data/generated/google/apis/customsearch_v1/service.rb +1 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
- data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
- data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
- data/generated/google/apis/dataproc_v1/classes.rb +395 -395
- data/generated/google/apis/dataproc_v1/representations.rb +91 -91
- data/generated/google/apis/dataproc_v1/service.rb +356 -355
- data/generated/google/apis/datastore_v1/classes.rb +506 -506
- data/generated/google/apis/datastore_v1/representations.rb +147 -147
- data/generated/google/apis/datastore_v1/service.rb +46 -45
- data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
- data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
- data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
- data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
- data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
- data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
- data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
- data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
- data/generated/google/apis/discovery_v1/service.rb +1 -0
- data/generated/google/apis/dns_v1/classes.rb +2 -2
- data/generated/google/apis/dns_v1/representations.rb +2 -2
- data/generated/google/apis/dns_v1/service.rb +1 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
- data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
- data/generated/google/apis/dns_v2beta1/service.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
- data/generated/google/apis/drive_v2/classes.rb +17 -17
- data/generated/google/apis/drive_v2/representations.rb +17 -17
- data/generated/google/apis/drive_v2/service.rb +5 -4
- data/generated/google/apis/drive_v3/classes.rb +13 -13
- data/generated/google/apis/drive_v3/representations.rb +12 -12
- data/generated/google/apis/drive_v3/service.rb +1 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
- data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
- data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
- data/generated/google/apis/firebaserules_v1/service.rb +1 -0
- data/generated/google/apis/fitness_v1/classes.rb +18 -18
- data/generated/google/apis/fitness_v1/representations.rb +18 -18
- data/generated/google/apis/fitness_v1/service.rb +6 -5
- data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
- data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
- data/generated/google/apis/fusiontables_v2/service.rb +1 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +6 -6
- data/generated/google/apis/games_management_v1management/representations.rb +6 -6
- data/generated/google/apis/games_management_v1management/service.rb +1 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +47 -47
- data/generated/google/apis/games_v1/representations.rb +47 -47
- data/generated/google/apis/games_v1/service.rb +58 -57
- data/generated/google/apis/genomics_v1.rb +6 -6
- data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
- data/generated/google/apis/genomics_v1/representations.rb +487 -487
- data/generated/google/apis/genomics_v1/service.rb +1188 -1187
- data/generated/google/apis/gmail_v1/classes.rb +11 -11
- data/generated/google/apis/gmail_v1/representations.rb +11 -11
- data/generated/google/apis/gmail_v1/service.rb +2 -1
- data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
- data/generated/google/apis/groupssettings_v1/service.rb +1 -0
- data/generated/google/apis/iam_v1/classes.rb +437 -437
- data/generated/google/apis/iam_v1/representations.rb +95 -95
- data/generated/google/apis/iam_v1/service.rb +87 -86
- data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
- data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
- data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
- data/generated/google/apis/kgsearch_v1/service.rb +9 -8
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +245 -245
- data/generated/google/apis/language_v1/representations.rb +65 -65
- data/generated/google/apis/language_v1/service.rb +1 -0
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +277 -277
- data/generated/google/apis/language_v1beta1/representations.rb +83 -83
- data/generated/google/apis/language_v1beta1/service.rb +31 -30
- data/generated/google/apis/licensing_v1/service.rb +1 -0
- data/generated/google/apis/logging_v2/classes.rb +408 -408
- data/generated/google/apis/logging_v2/representations.rb +93 -93
- data/generated/google/apis/logging_v2/service.rb +408 -407
- data/generated/google/apis/logging_v2beta1.rb +3 -3
- data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
- data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
- data/generated/google/apis/logging_v2beta1/service.rb +89 -88
- data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
- data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
- data/generated/google/apis/manufacturers_v1/service.rb +1 -0
- data/generated/google/apis/mirror_v1/service.rb +1 -0
- data/generated/google/apis/ml_v1/classes.rb +1185 -1185
- data/generated/google/apis/ml_v1/representations.rb +171 -171
- data/generated/google/apis/ml_v1/service.rb +282 -281
- data/generated/google/apis/monitoring_v3.rb +3 -3
- data/generated/google/apis/monitoring_v3/classes.rb +334 -334
- data/generated/google/apis/monitoring_v3/representations.rb +86 -86
- data/generated/google/apis/monitoring_v3/service.rb +344 -343
- data/generated/google/apis/mybusiness_v3/service.rb +1 -0
- data/generated/google/apis/oauth2_v2/service.rb +1 -0
- data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
- data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
- data/generated/google/apis/partners_v2/classes.rb +1466 -1466
- data/generated/google/apis/partners_v2/representations.rb +371 -371
- data/generated/google/apis/partners_v2/service.rb +530 -529
- data/generated/google/apis/people_v1.rb +4 -4
- data/generated/google/apis/people_v1/classes.rb +1009 -1009
- data/generated/google/apis/people_v1/representations.rb +249 -249
- data/generated/google/apis/people_v1/service.rb +13 -12
- data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
- data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
- data/generated/google/apis/plus_domains_v1/service.rb +1 -0
- data/generated/google/apis/plus_v1/service.rb +1 -0
- data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
- data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
- data/generated/google/apis/prediction_v1_6/service.rb +1 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
- data/generated/google/apis/pubsub_v1/classes.rb +99 -99
- data/generated/google/apis/pubsub_v1/representations.rb +25 -25
- data/generated/google/apis/pubsub_v1/service.rb +236 -235
- data/generated/google/apis/qpx_express_v1/service.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
- data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
- data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
- data/generated/google/apis/reseller_v1/classes.rb +5 -5
- data/generated/google/apis/reseller_v1/representations.rb +5 -5
- data/generated/google/apis/reseller_v1/service.rb +1 -0
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
- data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
- data/generated/google/apis/runtimeconfig_v1.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
- data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
- data/generated/google/apis/script_v1.rb +18 -18
- data/generated/google/apis/script_v1/classes.rb +84 -84
- data/generated/google/apis/script_v1/representations.rb +18 -18
- data/generated/google/apis/script_v1/service.rb +11 -10
- data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/searchconsole_v1/service.rb +11 -10
- data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
- data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
- data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
- data/generated/google/apis/servicemanagement_v1.rb +3 -3
- data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
- data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
- data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
- data/generated/google/apis/serviceuser_v1.rb +3 -3
- data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
- data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
- data/generated/google/apis/serviceuser_v1/service.rb +47 -46
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
- data/generated/google/apis/sheets_v4/representations.rb +859 -859
- data/generated/google/apis/sheets_v4/service.rb +180 -179
- data/generated/google/apis/site_verification_v1/service.rb +1 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2856 -2856
- data/generated/google/apis/slides_v1/representations.rb +683 -683
- data/generated/google/apis/slides_v1/service.rb +27 -26
- data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
- data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
- data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
- data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
- data/generated/google/apis/spanner_v1/representations.rb +325 -325
- data/generated/google/apis/spanner_v1/service.rb +374 -373
- data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
- data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
- data/generated/google/apis/speech_v1beta1/service.rb +27 -26
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
- data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +11 -11
- data/generated/google/apis/storage_v1/representations.rb +11 -11
- data/generated/google/apis/storage_v1/service.rb +65 -64
- data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
- data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
- data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
- data/generated/google/apis/surveys_v2/classes.rb +4 -4
- data/generated/google/apis/surveys_v2/representations.rb +4 -4
- data/generated/google/apis/surveys_v2/service.rb +1 -0
- data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
- data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
- data/generated/google/apis/tagmanager_v1/service.rb +1 -0
- data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
- data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
- data/generated/google/apis/tagmanager_v2/service.rb +1 -0
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
- data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
- data/generated/google/apis/tasks_v1/service.rb +3 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
- data/generated/google/apis/tracing_v1/classes.rb +421 -421
- data/generated/google/apis/tracing_v1/representations.rb +86 -86
- data/generated/google/apis/tracing_v1/service.rb +60 -59
- data/generated/google/apis/translate_v2/service.rb +1 -0
- data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
- data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
- data/generated/google/apis/urlshortener_v1/service.rb +1 -0
- data/generated/google/apis/vision_v1/classes.rb +1290 -1290
- data/generated/google/apis/vision_v1/representations.rb +184 -184
- data/generated/google/apis/vision_v1/service.rb +11 -10
- data/generated/google/apis/webfonts_v1/service.rb +1 -0
- data/generated/google/apis/webmasters_v3/classes.rb +5 -5
- data/generated/google/apis/webmasters_v3/representations.rb +5 -5
- data/generated/google/apis/webmasters_v3/service.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
- data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
- data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
- data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
- data/generated/google/apis/youtube_v3/classes.rb +31 -31
- data/generated/google/apis/youtube_v3/representations.rb +31 -31
- data/generated/google/apis/youtube_v3/service.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
- data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
- data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
- data/google-api-client.gemspec +4 -6
- data/lib/google/apis/core/api_command.rb +8 -3
- data/lib/google/apis/core/base_service.rb +47 -18
- data/lib/google/apis/core/batch.rb +13 -18
- data/lib/google/apis/core/composite_io.rb +97 -0
- data/lib/google/apis/core/download.rb +24 -20
- data/lib/google/apis/core/http_command.rb +49 -38
- data/lib/google/apis/core/json_representation.rb +5 -1
- data/lib/google/apis/core/multipart.rb +43 -95
- data/lib/google/apis/core/upload.rb +59 -84
- data/lib/google/apis/generator/model.rb +2 -0
- data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
- data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
- data/lib/google/apis/options.rb +24 -12
- data/lib/google/apis/version.rb +1 -1
- data/samples/web/Gemfile +0 -1
- metadata +39 -37
- data/lib/google/apis/core/http_client_adapter.rb +0 -82
- data/third_party/hurley_patches.rb +0 -103
@@ -22,6 +22,171 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module SpeechV1beta1
|
24
24
|
|
25
|
+
# This resource represents a long-running operation that is the result of a
|
26
|
+
# network API call.
|
27
|
+
class Operation
|
28
|
+
include Google::Apis::Core::Hashable
|
29
|
+
|
30
|
+
# The normal response of the operation in case of success. If the original
|
31
|
+
# method returns no data on success, such as `Delete`, the response is
|
32
|
+
# `google.protobuf.Empty`. If the original method is standard
|
33
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
34
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
35
|
+
# is the original method name. For example, if the original method name
|
36
|
+
# is `TakeSnapshot()`, the inferred response type is
|
37
|
+
# `TakeSnapshotResponse`.
|
38
|
+
# Corresponds to the JSON property `response`
|
39
|
+
# @return [Hash<String,Object>]
|
40
|
+
attr_accessor :response
|
41
|
+
|
42
|
+
# The server-assigned name, which is only unique within the same service that
|
43
|
+
# originally returns it. If you use the default HTTP mapping, the
|
44
|
+
# `name` should have the format of `operations/some/unique/name`.
|
45
|
+
# Corresponds to the JSON property `name`
|
46
|
+
# @return [String]
|
47
|
+
attr_accessor :name
|
48
|
+
|
49
|
+
# The `Status` type defines a logical error model that is suitable for different
|
50
|
+
# programming environments, including REST APIs and RPC APIs. It is used by
|
51
|
+
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
52
|
+
# - Simple to use and understand for most users
|
53
|
+
# - Flexible enough to meet unexpected needs
|
54
|
+
# # Overview
|
55
|
+
# The `Status` message contains three pieces of data: error code, error message,
|
56
|
+
# and error details. The error code should be an enum value of
|
57
|
+
# google.rpc.Code, but it may accept additional error codes if needed. The
|
58
|
+
# error message should be a developer-facing English message that helps
|
59
|
+
# developers *understand* and *resolve* the error. If a localized user-facing
|
60
|
+
# error message is needed, put the localized message in the error details or
|
61
|
+
# localize it in the client. The optional error details may contain arbitrary
|
62
|
+
# information about the error. There is a predefined set of error detail types
|
63
|
+
# in the package `google.rpc` which can be used for common error conditions.
|
64
|
+
# # Language mapping
|
65
|
+
# The `Status` message is the logical representation of the error model, but it
|
66
|
+
# is not necessarily the actual wire format. When the `Status` message is
|
67
|
+
# exposed in different client libraries and different wire protocols, it can be
|
68
|
+
# mapped differently. For example, it will likely be mapped to some exceptions
|
69
|
+
# in Java, but more likely mapped to some error codes in C.
|
70
|
+
# # Other uses
|
71
|
+
# The error model and the `Status` message can be used in a variety of
|
72
|
+
# environments, either with or without APIs, to provide a
|
73
|
+
# consistent developer experience across different environments.
|
74
|
+
# Example uses of this error model include:
|
75
|
+
# - Partial errors. If a service needs to return partial errors to the client,
|
76
|
+
# it may embed the `Status` in the normal response to indicate the partial
|
77
|
+
# errors.
|
78
|
+
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
79
|
+
# have a `Status` message for error reporting purpose.
|
80
|
+
# - Batch operations. If a client uses batch request and batch response, the
|
81
|
+
# `Status` message should be used directly inside batch response, one for
|
82
|
+
# each error sub-response.
|
83
|
+
# - Asynchronous operations. If an API call embeds asynchronous operation
|
84
|
+
# results in its response, the status of those operations should be
|
85
|
+
# represented directly using the `Status` message.
|
86
|
+
# - Logging. If some API errors are stored in logs, the message `Status` could
|
87
|
+
# be used directly after any stripping needed for security/privacy reasons.
|
88
|
+
# Corresponds to the JSON property `error`
|
89
|
+
# @return [Google::Apis::SpeechV1beta1::Status]
|
90
|
+
attr_accessor :error
|
91
|
+
|
92
|
+
# Service-specific metadata associated with the operation. It typically
|
93
|
+
# contains progress information and common metadata such as create time.
|
94
|
+
# Some services might not provide such metadata. Any method that returns a
|
95
|
+
# long-running operation should document the metadata type, if any.
|
96
|
+
# Corresponds to the JSON property `metadata`
|
97
|
+
# @return [Hash<String,Object>]
|
98
|
+
attr_accessor :metadata
|
99
|
+
|
100
|
+
# If the value is `false`, it means the operation is still in progress.
|
101
|
+
# If true, the operation is completed, and either `error` or `response` is
|
102
|
+
# available.
|
103
|
+
# Corresponds to the JSON property `done`
|
104
|
+
# @return [Boolean]
|
105
|
+
attr_accessor :done
|
106
|
+
alias_method :done?, :done
|
107
|
+
|
108
|
+
def initialize(**args)
|
109
|
+
update!(**args)
|
110
|
+
end
|
111
|
+
|
112
|
+
# Update properties of this object
|
113
|
+
def update!(**args)
|
114
|
+
@response = args[:response] if args.key?(:response)
|
115
|
+
@name = args[:name] if args.key?(:name)
|
116
|
+
@error = args[:error] if args.key?(:error)
|
117
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
118
|
+
@done = args[:done] if args.key?(:done)
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# Provides information to the recognizer that specifies how to process the
|
123
|
+
# request.
|
124
|
+
class RecognitionConfig
|
125
|
+
include Google::Apis::Core::Hashable
|
126
|
+
|
127
|
+
# *Optional* Maximum number of recognition hypotheses to be returned.
|
128
|
+
# Specifically, the maximum number of `SpeechRecognitionAlternative` messages
|
129
|
+
# within each `SpeechRecognitionResult`.
|
130
|
+
# The server may return fewer than `max_alternatives`.
|
131
|
+
# Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of
|
132
|
+
# one. If omitted, will return a maximum of one.
|
133
|
+
# Corresponds to the JSON property `maxAlternatives`
|
134
|
+
# @return [Fixnum]
|
135
|
+
attr_accessor :max_alternatives
|
136
|
+
|
137
|
+
# *Required* Sample rate in Hertz of the audio data sent in all
|
138
|
+
# `RecognitionAudio` messages. Valid values are: 8000-48000.
|
139
|
+
# 16000 is optimal. For best results, set the sampling rate of the audio
|
140
|
+
# source to 16000 Hz. If that's not possible, use the native sample rate of
|
141
|
+
# the audio source (instead of re-sampling).
|
142
|
+
# Corresponds to the JSON property `sampleRate`
|
143
|
+
# @return [Fixnum]
|
144
|
+
attr_accessor :sample_rate
|
145
|
+
|
146
|
+
# *Optional* The language of the supplied audio as a BCP-47 language tag.
|
147
|
+
# Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt
|
148
|
+
# If omitted, defaults to "en-US". See
|
149
|
+
# [Language Support](https://cloud.google.com/speech/docs/languages)
|
150
|
+
# for a list of the currently supported language codes.
|
151
|
+
# Corresponds to the JSON property `languageCode`
|
152
|
+
# @return [String]
|
153
|
+
attr_accessor :language_code
|
154
|
+
|
155
|
+
# Provides "hints" to the speech recognizer to favor specific words and phrases
|
156
|
+
# in the results.
|
157
|
+
# Corresponds to the JSON property `speechContext`
|
158
|
+
# @return [Google::Apis::SpeechV1beta1::SpeechContext]
|
159
|
+
attr_accessor :speech_context
|
160
|
+
|
161
|
+
# *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
|
162
|
+
# Corresponds to the JSON property `encoding`
|
163
|
+
# @return [String]
|
164
|
+
attr_accessor :encoding
|
165
|
+
|
166
|
+
# *Optional* If set to `true`, the server will attempt to filter out
|
167
|
+
# profanities, replacing all but the initial character in each filtered word
|
168
|
+
# with asterisks, e.g. "f***". If set to `false` or omitted, profanities
|
169
|
+
# won't be filtered out.
|
170
|
+
# Corresponds to the JSON property `profanityFilter`
|
171
|
+
# @return [Boolean]
|
172
|
+
attr_accessor :profanity_filter
|
173
|
+
alias_method :profanity_filter?, :profanity_filter
|
174
|
+
|
175
|
+
def initialize(**args)
|
176
|
+
update!(**args)
|
177
|
+
end
|
178
|
+
|
179
|
+
# Update properties of this object
|
180
|
+
def update!(**args)
|
181
|
+
@max_alternatives = args[:max_alternatives] if args.key?(:max_alternatives)
|
182
|
+
@sample_rate = args[:sample_rate] if args.key?(:sample_rate)
|
183
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
184
|
+
@speech_context = args[:speech_context] if args.key?(:speech_context)
|
185
|
+
@encoding = args[:encoding] if args.key?(:encoding)
|
186
|
+
@profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
25
190
|
# The top-level message sent by the client for the `SyncRecognize` method.
|
26
191
|
class SyncRecognizeRequest
|
27
192
|
include Google::Apis::Core::Hashable
|
@@ -115,6 +280,13 @@ module Google
|
|
115
280
|
class Status
|
116
281
|
include Google::Apis::Core::Hashable
|
117
282
|
|
283
|
+
# A developer-facing error message, which should be in English. Any
|
284
|
+
# user-facing error message should be localized and sent in the
|
285
|
+
# google.rpc.Status.details field, or localized by the client.
|
286
|
+
# Corresponds to the JSON property `message`
|
287
|
+
# @return [String]
|
288
|
+
attr_accessor :message
|
289
|
+
|
118
290
|
# A list of messages that carry the error details. There will be a
|
119
291
|
# common set of message types for APIs to use.
|
120
292
|
# Corresponds to the JSON property `details`
|
@@ -126,22 +298,15 @@ module Google
|
|
126
298
|
# @return [Fixnum]
|
127
299
|
attr_accessor :code
|
128
300
|
|
129
|
-
# A developer-facing error message, which should be in English. Any
|
130
|
-
# user-facing error message should be localized and sent in the
|
131
|
-
# google.rpc.Status.details field, or localized by the client.
|
132
|
-
# Corresponds to the JSON property `message`
|
133
|
-
# @return [String]
|
134
|
-
attr_accessor :message
|
135
|
-
|
136
301
|
def initialize(**args)
|
137
302
|
update!(**args)
|
138
303
|
end
|
139
304
|
|
140
305
|
# Update properties of this object
|
141
306
|
def update!(**args)
|
307
|
+
@message = args[:message] if args.key?(:message)
|
142
308
|
@details = args[:details] if args.key?(:details)
|
143
309
|
@code = args[:code] if args.key?(:code)
|
144
|
-
@message = args[:message] if args.key?(:message)
|
145
310
|
end
|
146
311
|
end
|
147
312
|
|
@@ -265,35 +430,6 @@ module Google
|
|
265
430
|
end
|
266
431
|
end
|
267
432
|
|
268
|
-
# The top-level message sent by the client for the `AsyncRecognize` method.
|
269
|
-
class AsyncRecognizeRequest
|
270
|
-
include Google::Apis::Core::Hashable
|
271
|
-
|
272
|
-
# Provides information to the recognizer that specifies how to process the
|
273
|
-
# request.
|
274
|
-
# Corresponds to the JSON property `config`
|
275
|
-
# @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
|
276
|
-
attr_accessor :config
|
277
|
-
|
278
|
-
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
279
|
-
# Either `content` or `uri` must be supplied. Supplying both or neither
|
280
|
-
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
281
|
-
# [audio limits](https://cloud.google.com/speech/limits#content).
|
282
|
-
# Corresponds to the JSON property `audio`
|
283
|
-
# @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
|
284
|
-
attr_accessor :audio
|
285
|
-
|
286
|
-
def initialize(**args)
|
287
|
-
update!(**args)
|
288
|
-
end
|
289
|
-
|
290
|
-
# Update properties of this object
|
291
|
-
def update!(**args)
|
292
|
-
@config = args[:config] if args.key?(:config)
|
293
|
-
@audio = args[:audio] if args.key?(:audio)
|
294
|
-
end
|
295
|
-
end
|
296
|
-
|
297
433
|
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
298
434
|
# Either `content` or `uri` must be supplied. Supplying both or neither
|
299
435
|
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
@@ -301,14 +437,6 @@ module Google
|
|
301
437
|
class RecognitionAudio
|
302
438
|
include Google::Apis::Core::Hashable
|
303
439
|
|
304
|
-
# The audio data bytes encoded as specified in
|
305
|
-
# `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
|
306
|
-
# pure binary representation, whereas JSON representations use base64.
|
307
|
-
# Corresponds to the JSON property `content`
|
308
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
309
|
-
# @return [String]
|
310
|
-
attr_accessor :content
|
311
|
-
|
312
440
|
# URI that points to a file that contains audio data bytes as specified in
|
313
441
|
# `RecognitionConfig`. Currently, only Google Cloud Storage URIs are
|
314
442
|
# supported, which must be specified in the following format:
|
@@ -319,99 +447,13 @@ module Google
|
|
319
447
|
# @return [String]
|
320
448
|
attr_accessor :uri
|
321
449
|
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
#
|
327
|
-
def update!(**args)
|
328
|
-
@content = args[:content] if args.key?(:content)
|
329
|
-
@uri = args[:uri] if args.key?(:uri)
|
330
|
-
end
|
331
|
-
end
|
332
|
-
|
333
|
-
# This resource represents a long-running operation that is the result of a
|
334
|
-
# network API call.
|
335
|
-
class Operation
|
336
|
-
include Google::Apis::Core::Hashable
|
337
|
-
|
338
|
-
# Service-specific metadata associated with the operation. It typically
|
339
|
-
# contains progress information and common metadata such as create time.
|
340
|
-
# Some services might not provide such metadata. Any method that returns a
|
341
|
-
# long-running operation should document the metadata type, if any.
|
342
|
-
# Corresponds to the JSON property `metadata`
|
343
|
-
# @return [Hash<String,Object>]
|
344
|
-
attr_accessor :metadata
|
345
|
-
|
346
|
-
# If the value is `false`, it means the operation is still in progress.
|
347
|
-
# If true, the operation is completed, and either `error` or `response` is
|
348
|
-
# available.
|
349
|
-
# Corresponds to the JSON property `done`
|
350
|
-
# @return [Boolean]
|
351
|
-
attr_accessor :done
|
352
|
-
alias_method :done?, :done
|
353
|
-
|
354
|
-
# The normal response of the operation in case of success. If the original
|
355
|
-
# method returns no data on success, such as `Delete`, the response is
|
356
|
-
# `google.protobuf.Empty`. If the original method is standard
|
357
|
-
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
358
|
-
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
359
|
-
# is the original method name. For example, if the original method name
|
360
|
-
# is `TakeSnapshot()`, the inferred response type is
|
361
|
-
# `TakeSnapshotResponse`.
|
362
|
-
# Corresponds to the JSON property `response`
|
363
|
-
# @return [Hash<String,Object>]
|
364
|
-
attr_accessor :response
|
365
|
-
|
366
|
-
# The server-assigned name, which is only unique within the same service that
|
367
|
-
# originally returns it. If you use the default HTTP mapping, the
|
368
|
-
# `name` should have the format of `operations/some/unique/name`.
|
369
|
-
# Corresponds to the JSON property `name`
|
450
|
+
# The audio data bytes encoded as specified in
|
451
|
+
# `RecognitionConfig`. Note: as with all bytes fields, protobuffers use a
|
452
|
+
# pure binary representation, whereas JSON representations use base64.
|
453
|
+
# Corresponds to the JSON property `content`
|
454
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
370
455
|
# @return [String]
|
371
|
-
attr_accessor :
|
372
|
-
|
373
|
-
# The `Status` type defines a logical error model that is suitable for different
|
374
|
-
# programming environments, including REST APIs and RPC APIs. It is used by
|
375
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
376
|
-
# - Simple to use and understand for most users
|
377
|
-
# - Flexible enough to meet unexpected needs
|
378
|
-
# # Overview
|
379
|
-
# The `Status` message contains three pieces of data: error code, error message,
|
380
|
-
# and error details. The error code should be an enum value of
|
381
|
-
# google.rpc.Code, but it may accept additional error codes if needed. The
|
382
|
-
# error message should be a developer-facing English message that helps
|
383
|
-
# developers *understand* and *resolve* the error. If a localized user-facing
|
384
|
-
# error message is needed, put the localized message in the error details or
|
385
|
-
# localize it in the client. The optional error details may contain arbitrary
|
386
|
-
# information about the error. There is a predefined set of error detail types
|
387
|
-
# in the package `google.rpc` which can be used for common error conditions.
|
388
|
-
# # Language mapping
|
389
|
-
# The `Status` message is the logical representation of the error model, but it
|
390
|
-
# is not necessarily the actual wire format. When the `Status` message is
|
391
|
-
# exposed in different client libraries and different wire protocols, it can be
|
392
|
-
# mapped differently. For example, it will likely be mapped to some exceptions
|
393
|
-
# in Java, but more likely mapped to some error codes in C.
|
394
|
-
# # Other uses
|
395
|
-
# The error model and the `Status` message can be used in a variety of
|
396
|
-
# environments, either with or without APIs, to provide a
|
397
|
-
# consistent developer experience across different environments.
|
398
|
-
# Example uses of this error model include:
|
399
|
-
# - Partial errors. If a service needs to return partial errors to the client,
|
400
|
-
# it may embed the `Status` in the normal response to indicate the partial
|
401
|
-
# errors.
|
402
|
-
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
403
|
-
# have a `Status` message for error reporting purpose.
|
404
|
-
# - Batch operations. If a client uses batch request and batch response, the
|
405
|
-
# `Status` message should be used directly inside batch response, one for
|
406
|
-
# each error sub-response.
|
407
|
-
# - Asynchronous operations. If an API call embeds asynchronous operation
|
408
|
-
# results in its response, the status of those operations should be
|
409
|
-
# represented directly using the `Status` message.
|
410
|
-
# - Logging. If some API errors are stored in logs, the message `Status` could
|
411
|
-
# be used directly after any stripping needed for security/privacy reasons.
|
412
|
-
# Corresponds to the JSON property `error`
|
413
|
-
# @return [Google::Apis::SpeechV1beta1::Status]
|
414
|
-
attr_accessor :error
|
456
|
+
attr_accessor :content
|
415
457
|
|
416
458
|
def initialize(**args)
|
417
459
|
update!(**args)
|
@@ -419,66 +461,28 @@ module Google
|
|
419
461
|
|
420
462
|
# Update properties of this object
|
421
463
|
def update!(**args)
|
422
|
-
@
|
423
|
-
@
|
424
|
-
@response = args[:response] if args.key?(:response)
|
425
|
-
@name = args[:name] if args.key?(:name)
|
426
|
-
@error = args[:error] if args.key?(:error)
|
464
|
+
@uri = args[:uri] if args.key?(:uri)
|
465
|
+
@content = args[:content] if args.key?(:content)
|
427
466
|
end
|
428
467
|
end
|
429
468
|
|
430
|
-
#
|
431
|
-
|
432
|
-
class RecognitionConfig
|
469
|
+
# The top-level message sent by the client for the `AsyncRecognize` method.
|
470
|
+
class AsyncRecognizeRequest
|
433
471
|
include Google::Apis::Core::Hashable
|
434
472
|
|
435
|
-
#
|
436
|
-
#
|
437
|
-
#
|
438
|
-
#
|
439
|
-
|
440
|
-
# one. If omitted, will return a maximum of one.
|
441
|
-
# Corresponds to the JSON property `maxAlternatives`
|
442
|
-
# @return [Fixnum]
|
443
|
-
attr_accessor :max_alternatives
|
444
|
-
|
445
|
-
# *Optional* The language of the supplied audio as a BCP-47 language tag.
|
446
|
-
# Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt
|
447
|
-
# If omitted, defaults to "en-US". See
|
448
|
-
# [Language Support](https://cloud.google.com/speech/docs/languages)
|
449
|
-
# for a list of the currently supported language codes.
|
450
|
-
# Corresponds to the JSON property `languageCode`
|
451
|
-
# @return [String]
|
452
|
-
attr_accessor :language_code
|
453
|
-
|
454
|
-
# *Required* Sample rate in Hertz of the audio data sent in all
|
455
|
-
# `RecognitionAudio` messages. Valid values are: 8000-48000.
|
456
|
-
# 16000 is optimal. For best results, set the sampling rate of the audio
|
457
|
-
# source to 16000 Hz. If that's not possible, use the native sample rate of
|
458
|
-
# the audio source (instead of re-sampling).
|
459
|
-
# Corresponds to the JSON property `sampleRate`
|
460
|
-
# @return [Fixnum]
|
461
|
-
attr_accessor :sample_rate
|
462
|
-
|
463
|
-
# *Required* Encoding of audio data sent in all `RecognitionAudio` messages.
|
464
|
-
# Corresponds to the JSON property `encoding`
|
465
|
-
# @return [String]
|
466
|
-
attr_accessor :encoding
|
467
|
-
|
468
|
-
# *Optional* If set to `true`, the server will attempt to filter out
|
469
|
-
# profanities, replacing all but the initial character in each filtered word
|
470
|
-
# with asterisks, e.g. "f***". If set to `false` or omitted, profanities
|
471
|
-
# won't be filtered out.
|
472
|
-
# Corresponds to the JSON property `profanityFilter`
|
473
|
-
# @return [Boolean]
|
474
|
-
attr_accessor :profanity_filter
|
475
|
-
alias_method :profanity_filter?, :profanity_filter
|
473
|
+
# Provides information to the recognizer that specifies how to process the
|
474
|
+
# request.
|
475
|
+
# Corresponds to the JSON property `config`
|
476
|
+
# @return [Google::Apis::SpeechV1beta1::RecognitionConfig]
|
477
|
+
attr_accessor :config
|
476
478
|
|
477
|
-
#
|
478
|
-
#
|
479
|
-
#
|
480
|
-
#
|
481
|
-
|
479
|
+
# Contains audio data in the encoding specified in the `RecognitionConfig`.
|
480
|
+
# Either `content` or `uri` must be supplied. Supplying both or neither
|
481
|
+
# returns google.rpc.Code.INVALID_ARGUMENT. See
|
482
|
+
# [audio limits](https://cloud.google.com/speech/limits#content).
|
483
|
+
# Corresponds to the JSON property `audio`
|
484
|
+
# @return [Google::Apis::SpeechV1beta1::RecognitionAudio]
|
485
|
+
attr_accessor :audio
|
482
486
|
|
483
487
|
def initialize(**args)
|
484
488
|
update!(**args)
|
@@ -486,12 +490,8 @@ module Google
|
|
486
490
|
|
487
491
|
# Update properties of this object
|
488
492
|
def update!(**args)
|
489
|
-
@
|
490
|
-
@
|
491
|
-
@sample_rate = args[:sample_rate] if args.key?(:sample_rate)
|
492
|
-
@encoding = args[:encoding] if args.key?(:encoding)
|
493
|
-
@profanity_filter = args[:profanity_filter] if args.key?(:profanity_filter)
|
494
|
-
@speech_context = args[:speech_context] if args.key?(:speech_context)
|
493
|
+
@config = args[:config] if args.key?(:config)
|
494
|
+
@audio = args[:audio] if args.key?(:audio)
|
495
495
|
end
|
496
496
|
end
|
497
497
|
end
|