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
@@ -27,6 +27,24 @@ module Google
|
|
27
27
|
VERSION = 'V1'
|
28
28
|
REVISION = '20170328'
|
29
29
|
|
30
|
+
# View and manage the provisioning of groups on your domain
|
31
|
+
AUTH_ADMIN_DIRECTORY_GROUP = 'https://www.googleapis.com/auth/admin.directory.group'
|
32
|
+
|
33
|
+
# View and manage the provisioning of users on your domain
|
34
|
+
AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user'
|
35
|
+
|
36
|
+
# Read, send, delete, and manage your email
|
37
|
+
AUTH_SCOPE = 'https://mail.google.com/'
|
38
|
+
|
39
|
+
# View and manage your spreadsheets in Google Drive
|
40
|
+
AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
|
41
|
+
|
42
|
+
# View and manage your forms in Google Drive
|
43
|
+
AUTH_FORMS = 'https://www.googleapis.com/auth/forms'
|
44
|
+
|
45
|
+
# Manage your contacts
|
46
|
+
M8_FEEDS = 'https://www.google.com/m8/feeds'
|
47
|
+
|
30
48
|
# View your email address
|
31
49
|
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
32
50
|
|
@@ -41,24 +59,6 @@ module Google
|
|
41
59
|
|
42
60
|
# View and manage the files in your Google Drive
|
43
61
|
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
44
|
-
|
45
|
-
# Read, send, delete, and manage your email
|
46
|
-
AUTH_SCOPE = 'https://mail.google.com/'
|
47
|
-
|
48
|
-
# View and manage your spreadsheets in Google Drive
|
49
|
-
AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
|
50
|
-
|
51
|
-
# View and manage the provisioning of groups on your domain
|
52
|
-
AUTH_ADMIN_DIRECTORY_GROUP = 'https://www.googleapis.com/auth/admin.directory.group'
|
53
|
-
|
54
|
-
# View and manage the provisioning of users on your domain
|
55
|
-
AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user'
|
56
|
-
|
57
|
-
# View and manage your forms in Google Drive
|
58
|
-
AUTH_FORMS = 'https://www.googleapis.com/auth/forms'
|
59
|
-
|
60
|
-
# Manage your contacts
|
61
|
-
M8_FEEDS = 'https://www.google.com/m8/feeds'
|
62
62
|
end
|
63
63
|
end
|
64
64
|
end
|
@@ -22,6 +22,67 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module ScriptV1
|
24
24
|
|
25
|
+
# The response will not arrive until the function finishes executing. The
|
26
|
+
# maximum runtime is listed in the guide to [limitations in Apps Script](https://
|
27
|
+
# developers.google.com/apps-script/guides/services/quotas#current_limitations).
|
28
|
+
# <p>If the script function returns successfully, the `response` field will
|
29
|
+
# contain an `ExecutionResponse` object with the function's return value in the
|
30
|
+
# object's `result` field.</p>
|
31
|
+
# <p>If the script function (or Apps Script itself) throws an exception, the `
|
32
|
+
# error` field will contain a `Status` object. The `Status` object's `details`
|
33
|
+
# field will contain an array with a single `ExecutionError` object that
|
34
|
+
# provides information about the nature of the error.</p>
|
35
|
+
# <p>If the `run` call itself fails (for example, because of a malformed request
|
36
|
+
# or an authorization error), the method will return an HTTP response code in
|
37
|
+
# the 4XX range with a different format for the response body. Client libraries
|
38
|
+
# will automatically convert a 4XX response into an exception class.</p>
|
39
|
+
class Operation
|
40
|
+
include Google::Apis::Core::Hashable
|
41
|
+
|
42
|
+
# If the script function returns successfully, this field will contain an `
|
43
|
+
# ExecutionResponse` object with the function's return value as the object's `
|
44
|
+
# result` field.
|
45
|
+
# Corresponds to the JSON property `response`
|
46
|
+
# @return [Hash<String,Object>]
|
47
|
+
attr_accessor :response
|
48
|
+
|
49
|
+
# This field is not used.
|
50
|
+
# Corresponds to the JSON property `name`
|
51
|
+
# @return [String]
|
52
|
+
attr_accessor :name
|
53
|
+
|
54
|
+
# If a `run` call succeeds but the script function (or Apps Script itself)
|
55
|
+
# throws an exception, the response body's `error` field will contain this `
|
56
|
+
# Status` object.
|
57
|
+
# Corresponds to the JSON property `error`
|
58
|
+
# @return [Google::Apis::ScriptV1::Status]
|
59
|
+
attr_accessor :error
|
60
|
+
|
61
|
+
# This field is not used.
|
62
|
+
# Corresponds to the JSON property `metadata`
|
63
|
+
# @return [Hash<String,Object>]
|
64
|
+
attr_accessor :metadata
|
65
|
+
|
66
|
+
# This field is not used.
|
67
|
+
# Corresponds to the JSON property `done`
|
68
|
+
# @return [Boolean]
|
69
|
+
attr_accessor :done
|
70
|
+
alias_method :done?, :done
|
71
|
+
|
72
|
+
def initialize(**args)
|
73
|
+
update!(**args)
|
74
|
+
end
|
75
|
+
|
76
|
+
# Update properties of this object
|
77
|
+
def update!(**args)
|
78
|
+
@response = args[:response] if args.key?(:response)
|
79
|
+
@name = args[:name] if args.key?(:name)
|
80
|
+
@error = args[:error] if args.key?(:error)
|
81
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
82
|
+
@done = args[:done] if args.key?(:done)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
25
86
|
# A stack trace through the script that shows where the execution failed.
|
26
87
|
class ScriptStackTraceElement
|
27
88
|
include Google::Apis::Core::Hashable
|
@@ -57,6 +118,12 @@ module Google
|
|
57
118
|
class ExecutionError
|
58
119
|
include Google::Apis::Core::Hashable
|
59
120
|
|
121
|
+
# An array of objects that provide a stack trace through the script to show
|
122
|
+
# where the execution failed, with the deepest call first.
|
123
|
+
# Corresponds to the JSON property `scriptStackTraceElements`
|
124
|
+
# @return [Array<Google::Apis::ScriptV1::ScriptStackTraceElement>]
|
125
|
+
attr_accessor :script_stack_trace_elements
|
126
|
+
|
60
127
|
# The error type, for example `TypeError` or `ReferenceError`. If the error
|
61
128
|
# type is unavailable, this field is not included.
|
62
129
|
# Corresponds to the JSON property `errorType`
|
@@ -69,21 +136,15 @@ module Google
|
|
69
136
|
# @return [String]
|
70
137
|
attr_accessor :error_message
|
71
138
|
|
72
|
-
# An array of objects that provide a stack trace through the script to show
|
73
|
-
# where the execution failed, with the deepest call first.
|
74
|
-
# Corresponds to the JSON property `scriptStackTraceElements`
|
75
|
-
# @return [Array<Google::Apis::ScriptV1::ScriptStackTraceElement>]
|
76
|
-
attr_accessor :script_stack_trace_elements
|
77
|
-
|
78
139
|
def initialize(**args)
|
79
140
|
update!(**args)
|
80
141
|
end
|
81
142
|
|
82
143
|
# Update properties of this object
|
83
144
|
def update!(**args)
|
145
|
+
@script_stack_trace_elements = args[:script_stack_trace_elements] if args.key?(:script_stack_trace_elements)
|
84
146
|
@error_type = args[:error_type] if args.key?(:error_type)
|
85
147
|
@error_message = args[:error_message] if args.key?(:error_message)
|
86
|
-
@script_stack_trace_elements = args[:script_stack_trace_elements] if args.key?(:script_stack_trace_elements)
|
87
148
|
end
|
88
149
|
end
|
89
150
|
|
@@ -130,20 +191,6 @@ module Google
|
|
130
191
|
class ExecutionRequest
|
131
192
|
include Google::Apis::Core::Hashable
|
132
193
|
|
133
|
-
# The name of the function to execute in the given script. The name does not
|
134
|
-
# include parentheses or parameters.
|
135
|
-
# Corresponds to the JSON property `function`
|
136
|
-
# @return [String]
|
137
|
-
attr_accessor :function
|
138
|
-
|
139
|
-
# If `true` and the user is an owner of the script, the script runs at the
|
140
|
-
# most recently saved version rather than the version deployed for use with
|
141
|
-
# the Execution API. Optional; default is `false`.
|
142
|
-
# Corresponds to the JSON property `devMode`
|
143
|
-
# @return [Boolean]
|
144
|
-
attr_accessor :dev_mode
|
145
|
-
alias_method :dev_mode?, :dev_mode
|
146
|
-
|
147
194
|
# The parameters to be passed to the function being executed. The object type
|
148
195
|
# for each parameter should match the expected type in Apps Script.
|
149
196
|
# Parameters cannot be Apps Script-specific object types (such as a
|
@@ -167,16 +214,30 @@ module Google
|
|
167
214
|
# @return [String]
|
168
215
|
attr_accessor :session_state
|
169
216
|
|
217
|
+
# The name of the function to execute in the given script. The name does not
|
218
|
+
# include parentheses or parameters.
|
219
|
+
# Corresponds to the JSON property `function`
|
220
|
+
# @return [String]
|
221
|
+
attr_accessor :function
|
222
|
+
|
223
|
+
# If `true` and the user is an owner of the script, the script runs at the
|
224
|
+
# most recently saved version rather than the version deployed for use with
|
225
|
+
# the Execution API. Optional; default is `false`.
|
226
|
+
# Corresponds to the JSON property `devMode`
|
227
|
+
# @return [Boolean]
|
228
|
+
attr_accessor :dev_mode
|
229
|
+
alias_method :dev_mode?, :dev_mode
|
230
|
+
|
170
231
|
def initialize(**args)
|
171
232
|
update!(**args)
|
172
233
|
end
|
173
234
|
|
174
235
|
# Update properties of this object
|
175
236
|
def update!(**args)
|
176
|
-
@function = args[:function] if args.key?(:function)
|
177
|
-
@dev_mode = args[:dev_mode] if args.key?(:dev_mode)
|
178
237
|
@parameters = args[:parameters] if args.key?(:parameters)
|
179
238
|
@session_state = args[:session_state] if args.key?(:session_state)
|
239
|
+
@function = args[:function] if args.key?(:function)
|
240
|
+
@dev_mode = args[:dev_mode] if args.key?(:dev_mode)
|
180
241
|
end
|
181
242
|
end
|
182
243
|
|
@@ -207,67 +268,6 @@ module Google
|
|
207
268
|
@result = args[:result] if args.key?(:result)
|
208
269
|
end
|
209
270
|
end
|
210
|
-
|
211
|
-
# The response will not arrive until the function finishes executing. The
|
212
|
-
# maximum runtime is listed in the guide to [limitations in Apps Script](https://
|
213
|
-
# developers.google.com/apps-script/guides/services/quotas#current_limitations).
|
214
|
-
# <p>If the script function returns successfully, the `response` field will
|
215
|
-
# contain an `ExecutionResponse` object with the function's return value in the
|
216
|
-
# object's `result` field.</p>
|
217
|
-
# <p>If the script function (or Apps Script itself) throws an exception, the `
|
218
|
-
# error` field will contain a `Status` object. The `Status` object's `details`
|
219
|
-
# field will contain an array with a single `ExecutionError` object that
|
220
|
-
# provides information about the nature of the error.</p>
|
221
|
-
# <p>If the `run` call itself fails (for example, because of a malformed request
|
222
|
-
# or an authorization error), the method will return an HTTP response code in
|
223
|
-
# the 4XX range with a different format for the response body. Client libraries
|
224
|
-
# will automatically convert a 4XX response into an exception class.</p>
|
225
|
-
class Operation
|
226
|
-
include Google::Apis::Core::Hashable
|
227
|
-
|
228
|
-
# This field is not used.
|
229
|
-
# Corresponds to the JSON property `done`
|
230
|
-
# @return [Boolean]
|
231
|
-
attr_accessor :done
|
232
|
-
alias_method :done?, :done
|
233
|
-
|
234
|
-
# If the script function returns successfully, this field will contain an `
|
235
|
-
# ExecutionResponse` object with the function's return value as the object's `
|
236
|
-
# result` field.
|
237
|
-
# Corresponds to the JSON property `response`
|
238
|
-
# @return [Hash<String,Object>]
|
239
|
-
attr_accessor :response
|
240
|
-
|
241
|
-
# This field is not used.
|
242
|
-
# Corresponds to the JSON property `name`
|
243
|
-
# @return [String]
|
244
|
-
attr_accessor :name
|
245
|
-
|
246
|
-
# If a `run` call succeeds but the script function (or Apps Script itself)
|
247
|
-
# throws an exception, the response body's `error` field will contain this `
|
248
|
-
# Status` object.
|
249
|
-
# Corresponds to the JSON property `error`
|
250
|
-
# @return [Google::Apis::ScriptV1::Status]
|
251
|
-
attr_accessor :error
|
252
|
-
|
253
|
-
# This field is not used.
|
254
|
-
# Corresponds to the JSON property `metadata`
|
255
|
-
# @return [Hash<String,Object>]
|
256
|
-
attr_accessor :metadata
|
257
|
-
|
258
|
-
def initialize(**args)
|
259
|
-
update!(**args)
|
260
|
-
end
|
261
|
-
|
262
|
-
# Update properties of this object
|
263
|
-
def update!(**args)
|
264
|
-
@done = args[:done] if args.key?(:done)
|
265
|
-
@response = args[:response] if args.key?(:response)
|
266
|
-
@name = args[:name] if args.key?(:name)
|
267
|
-
@error = args[:error] if args.key?(:error)
|
268
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
269
|
-
end
|
270
|
-
end
|
271
271
|
end
|
272
272
|
end
|
273
273
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module ScriptV1
|
24
24
|
|
25
|
+
class Operation
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class ScriptStackTraceElement
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -53,9 +59,15 @@ module Google
|
|
53
59
|
end
|
54
60
|
|
55
61
|
class Operation
|
56
|
-
|
62
|
+
# @private
|
63
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
64
|
+
hash :response, as: 'response'
|
65
|
+
property :name, as: 'name'
|
66
|
+
property :error, as: 'error', class: Google::Apis::ScriptV1::Status, decorator: Google::Apis::ScriptV1::Status::Representation
|
57
67
|
|
58
|
-
|
68
|
+
hash :metadata, as: 'metadata'
|
69
|
+
property :done, as: 'done'
|
70
|
+
end
|
59
71
|
end
|
60
72
|
|
61
73
|
class ScriptStackTraceElement
|
@@ -69,10 +81,10 @@ module Google
|
|
69
81
|
class ExecutionError
|
70
82
|
# @private
|
71
83
|
class Representation < Google::Apis::Core::JsonRepresentation
|
72
|
-
property :error_type, as: 'errorType'
|
73
|
-
property :error_message, as: 'errorMessage'
|
74
84
|
collection :script_stack_trace_elements, as: 'scriptStackTraceElements', class: Google::Apis::ScriptV1::ScriptStackTraceElement, decorator: Google::Apis::ScriptV1::ScriptStackTraceElement::Representation
|
75
85
|
|
86
|
+
property :error_type, as: 'errorType'
|
87
|
+
property :error_message, as: 'errorMessage'
|
76
88
|
end
|
77
89
|
end
|
78
90
|
|
@@ -88,10 +100,10 @@ module Google
|
|
88
100
|
class ExecutionRequest
|
89
101
|
# @private
|
90
102
|
class Representation < Google::Apis::Core::JsonRepresentation
|
91
|
-
property :function, as: 'function'
|
92
|
-
property :dev_mode, as: 'devMode'
|
93
103
|
collection :parameters, as: 'parameters'
|
94
104
|
property :session_state, as: 'sessionState'
|
105
|
+
property :function, as: 'function'
|
106
|
+
property :dev_mode, as: 'devMode'
|
95
107
|
end
|
96
108
|
end
|
97
109
|
|
@@ -101,18 +113,6 @@ module Google
|
|
101
113
|
property :result, as: 'result'
|
102
114
|
end
|
103
115
|
end
|
104
|
-
|
105
|
-
class Operation
|
106
|
-
# @private
|
107
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
108
|
-
property :done, as: 'done'
|
109
|
-
hash :response, as: 'response'
|
110
|
-
property :name, as: 'name'
|
111
|
-
property :error, as: 'error', class: Google::Apis::ScriptV1::Status, decorator: Google::Apis::ScriptV1::Status::Representation
|
112
|
-
|
113
|
-
hash :metadata, as: 'metadata'
|
114
|
-
end
|
115
|
-
end
|
116
116
|
end
|
117
117
|
end
|
118
118
|
end
|
@@ -32,18 +32,19 @@ module Google
|
|
32
32
|
#
|
33
33
|
# @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run
|
34
34
|
class ScriptService < 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
35
|
# @return [String]
|
41
36
|
# Available to use for quota purposes for server-side applications. Can be any
|
42
37
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
38
|
attr_accessor :quota_user
|
44
39
|
|
40
|
+
# @return [String]
|
41
|
+
# API key. Your API key identifies your project and provides you with API access,
|
42
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
43
|
+
attr_accessor :key
|
44
|
+
|
45
45
|
def initialize
|
46
46
|
super('https://script.googleapis.com/', '')
|
47
|
+
@batch_path = 'batch'
|
47
48
|
end
|
48
49
|
|
49
50
|
# Runs a function in an Apps Script project. The project must be deployed
|
@@ -58,11 +59,11 @@ module Google
|
|
58
59
|
# The project key of the script to be executed. To find the project key, open
|
59
60
|
# the project in the script editor and select **File > Project properties**.
|
60
61
|
# @param [Google::Apis::ScriptV1::ExecutionRequest] execution_request_object
|
61
|
-
# @param [String] fields
|
62
|
-
# Selector specifying which fields to include in a partial response.
|
63
62
|
# @param [String] quota_user
|
64
63
|
# Available to use for quota purposes for server-side applications. Can be any
|
65
64
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
65
|
+
# @param [String] fields
|
66
|
+
# Selector specifying which fields to include in a partial response.
|
66
67
|
# @param [Google::Apis::RequestOptions] options
|
67
68
|
# Request-specific options
|
68
69
|
#
|
@@ -75,23 +76,23 @@ module Google
|
|
75
76
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
77
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
78
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
-
def run_script(script_id, execution_request_object = nil,
|
79
|
+
def run_script(script_id, execution_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
79
80
|
command = make_simple_command(:post, 'v1/scripts/{scriptId}:run', options)
|
80
81
|
command.request_representation = Google::Apis::ScriptV1::ExecutionRequest::Representation
|
81
82
|
command.request_object = execution_request_object
|
82
83
|
command.response_representation = Google::Apis::ScriptV1::Operation::Representation
|
83
84
|
command.response_class = Google::Apis::ScriptV1::Operation
|
84
85
|
command.params['scriptId'] = script_id unless script_id.nil?
|
85
|
-
command.query['fields'] = fields unless fields.nil?
|
86
86
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
87
|
+
command.query['fields'] = fields unless fields.nil?
|
87
88
|
execute_or_queue_command(command, &block)
|
88
89
|
end
|
89
90
|
|
90
91
|
protected
|
91
92
|
|
92
93
|
def apply_command_defaults(command)
|
93
|
-
command.query['key'] = key unless key.nil?
|
94
94
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
95
|
+
command.query['key'] = key unless key.nil?
|
95
96
|
end
|
96
97
|
end
|
97
98
|
end
|
@@ -22,69 +22,6 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module SearchconsoleV1
|
24
24
|
|
25
|
-
# Mobile-friendly issue.
|
26
|
-
class MobileFriendlyIssue
|
27
|
-
include Google::Apis::Core::Hashable
|
28
|
-
|
29
|
-
# Rule violated.
|
30
|
-
# Corresponds to the JSON property `rule`
|
31
|
-
# @return [String]
|
32
|
-
attr_accessor :rule
|
33
|
-
|
34
|
-
def initialize(**args)
|
35
|
-
update!(**args)
|
36
|
-
end
|
37
|
-
|
38
|
-
# Update properties of this object
|
39
|
-
def update!(**args)
|
40
|
-
@rule = args[:rule] if args.key?(:rule)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
# Mobile-friendly test response, including mobile-friendly issues and resource
|
45
|
-
# issues.
|
46
|
-
class RunMobileFriendlyTestResponse
|
47
|
-
include Google::Apis::Core::Hashable
|
48
|
-
|
49
|
-
# Test verdict, whether the page is mobile friendly or not.
|
50
|
-
# Corresponds to the JSON property `mobileFriendliness`
|
51
|
-
# @return [String]
|
52
|
-
attr_accessor :mobile_friendliness
|
53
|
-
|
54
|
-
# List of mobile-usability issues.
|
55
|
-
# Corresponds to the JSON property `mobileFriendlyIssues`
|
56
|
-
# @return [Array<Google::Apis::SearchconsoleV1::MobileFriendlyIssue>]
|
57
|
-
attr_accessor :mobile_friendly_issues
|
58
|
-
|
59
|
-
# Describe image data.
|
60
|
-
# Corresponds to the JSON property `screenshot`
|
61
|
-
# @return [Google::Apis::SearchconsoleV1::Image]
|
62
|
-
attr_accessor :screenshot
|
63
|
-
|
64
|
-
# Final state of the test, including error details if necessary.
|
65
|
-
# Corresponds to the JSON property `testStatus`
|
66
|
-
# @return [Google::Apis::SearchconsoleV1::TestStatus]
|
67
|
-
attr_accessor :test_status
|
68
|
-
|
69
|
-
# Information about embedded resources issues.
|
70
|
-
# Corresponds to the JSON property `resourceIssues`
|
71
|
-
# @return [Array<Google::Apis::SearchconsoleV1::ResourceIssue>]
|
72
|
-
attr_accessor :resource_issues
|
73
|
-
|
74
|
-
def initialize(**args)
|
75
|
-
update!(**args)
|
76
|
-
end
|
77
|
-
|
78
|
-
# Update properties of this object
|
79
|
-
def update!(**args)
|
80
|
-
@mobile_friendliness = args[:mobile_friendliness] if args.key?(:mobile_friendliness)
|
81
|
-
@mobile_friendly_issues = args[:mobile_friendly_issues] if args.key?(:mobile_friendly_issues)
|
82
|
-
@screenshot = args[:screenshot] if args.key?(:screenshot)
|
83
|
-
@test_status = args[:test_status] if args.key?(:test_status)
|
84
|
-
@resource_issues = args[:resource_issues] if args.key?(:resource_issues)
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
25
|
# Information about a resource with issue.
|
89
26
|
class ResourceIssue
|
90
27
|
include Google::Apis::Core::Hashable
|
@@ -148,6 +85,32 @@ module Google
|
|
148
85
|
end
|
149
86
|
end
|
150
87
|
|
88
|
+
# Mobile-friendly test request.
|
89
|
+
class RunMobileFriendlyTestRequest
|
90
|
+
include Google::Apis::Core::Hashable
|
91
|
+
|
92
|
+
# URL for inspection.
|
93
|
+
# Corresponds to the JSON property `url`
|
94
|
+
# @return [String]
|
95
|
+
attr_accessor :url
|
96
|
+
|
97
|
+
# Whether or not screenshot is requested. Default is false.
|
98
|
+
# Corresponds to the JSON property `requestScreenshot`
|
99
|
+
# @return [Boolean]
|
100
|
+
attr_accessor :request_screenshot
|
101
|
+
alias_method :request_screenshot?, :request_screenshot
|
102
|
+
|
103
|
+
def initialize(**args)
|
104
|
+
update!(**args)
|
105
|
+
end
|
106
|
+
|
107
|
+
# Update properties of this object
|
108
|
+
def update!(**args)
|
109
|
+
@url = args[:url] if args.key?(:url)
|
110
|
+
@request_screenshot = args[:request_screenshot] if args.key?(:request_screenshot)
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
151
114
|
# Describe image data.
|
152
115
|
class Image
|
153
116
|
include Google::Apis::Core::Hashable
|
@@ -175,20 +138,54 @@ module Google
|
|
175
138
|
end
|
176
139
|
end
|
177
140
|
|
178
|
-
# Mobile-friendly
|
179
|
-
class
|
141
|
+
# Mobile-friendly issue.
|
142
|
+
class MobileFriendlyIssue
|
180
143
|
include Google::Apis::Core::Hashable
|
181
144
|
|
182
|
-
#
|
183
|
-
# Corresponds to the JSON property `
|
145
|
+
# Rule violated.
|
146
|
+
# Corresponds to the JSON property `rule`
|
184
147
|
# @return [String]
|
185
|
-
attr_accessor :
|
148
|
+
attr_accessor :rule
|
186
149
|
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
150
|
+
def initialize(**args)
|
151
|
+
update!(**args)
|
152
|
+
end
|
153
|
+
|
154
|
+
# Update properties of this object
|
155
|
+
def update!(**args)
|
156
|
+
@rule = args[:rule] if args.key?(:rule)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
# Mobile-friendly test response, including mobile-friendly issues and resource
|
161
|
+
# issues.
|
162
|
+
class RunMobileFriendlyTestResponse
|
163
|
+
include Google::Apis::Core::Hashable
|
164
|
+
|
165
|
+
# List of mobile-usability issues.
|
166
|
+
# Corresponds to the JSON property `mobileFriendlyIssues`
|
167
|
+
# @return [Array<Google::Apis::SearchconsoleV1::MobileFriendlyIssue>]
|
168
|
+
attr_accessor :mobile_friendly_issues
|
169
|
+
|
170
|
+
# Describe image data.
|
171
|
+
# Corresponds to the JSON property `screenshot`
|
172
|
+
# @return [Google::Apis::SearchconsoleV1::Image]
|
173
|
+
attr_accessor :screenshot
|
174
|
+
|
175
|
+
# Final state of the test, including error details if necessary.
|
176
|
+
# Corresponds to the JSON property `testStatus`
|
177
|
+
# @return [Google::Apis::SearchconsoleV1::TestStatus]
|
178
|
+
attr_accessor :test_status
|
179
|
+
|
180
|
+
# Information about embedded resources issues.
|
181
|
+
# Corresponds to the JSON property `resourceIssues`
|
182
|
+
# @return [Array<Google::Apis::SearchconsoleV1::ResourceIssue>]
|
183
|
+
attr_accessor :resource_issues
|
184
|
+
|
185
|
+
# Test verdict, whether the page is mobile friendly or not.
|
186
|
+
# Corresponds to the JSON property `mobileFriendliness`
|
187
|
+
# @return [String]
|
188
|
+
attr_accessor :mobile_friendliness
|
192
189
|
|
193
190
|
def initialize(**args)
|
194
191
|
update!(**args)
|
@@ -196,8 +193,11 @@ module Google
|
|
196
193
|
|
197
194
|
# Update properties of this object
|
198
195
|
def update!(**args)
|
199
|
-
@
|
200
|
-
@
|
196
|
+
@mobile_friendly_issues = args[:mobile_friendly_issues] if args.key?(:mobile_friendly_issues)
|
197
|
+
@screenshot = args[:screenshot] if args.key?(:screenshot)
|
198
|
+
@test_status = args[:test_status] if args.key?(:test_status)
|
199
|
+
@resource_issues = args[:resource_issues] if args.key?(:resource_issues)
|
200
|
+
@mobile_friendliness = args[:mobile_friendliness] if args.key?(:mobile_friendliness)
|
201
201
|
end
|
202
202
|
end
|
203
203
|
end
|