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
@@ -45,6 +45,184 @@ module Google
|
|
45
45
|
|
46
46
|
def initialize
|
47
47
|
super('https://spanner.googleapis.com/', '')
|
48
|
+
@batch_path = 'batch'
|
49
|
+
end
|
50
|
+
|
51
|
+
# Gets the access control policy for an instance resource. Returns an empty
|
52
|
+
# policy if an instance exists but does not have a policy set.
|
53
|
+
# Authorization requires `spanner.instances.getIamPolicy` on
|
54
|
+
# resource.
|
55
|
+
# @param [String] resource
|
56
|
+
# REQUIRED: The Cloud Spanner resource for which the policy is being retrieved.
|
57
|
+
# The format is `projects/<project ID>/instances/<instance ID>` for instance
|
58
|
+
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
59
|
+
# database ID>` for database resources.
|
60
|
+
# @param [Google::Apis::SpannerV1::GetIamPolicyRequest] get_iam_policy_request_object
|
61
|
+
# @param [String] fields
|
62
|
+
# Selector specifying which fields to include in a partial response.
|
63
|
+
# @param [String] quota_user
|
64
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
65
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
66
|
+
# @param [Google::Apis::RequestOptions] options
|
67
|
+
# Request-specific options
|
68
|
+
#
|
69
|
+
# @yield [result, err] Result & error if block supplied
|
70
|
+
# @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
|
71
|
+
# @yieldparam err [StandardError] error object if request failed
|
72
|
+
#
|
73
|
+
# @return [Google::Apis::SpannerV1::Policy]
|
74
|
+
#
|
75
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
+
def get_instance_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
79
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
80
|
+
command.request_representation = Google::Apis::SpannerV1::GetIamPolicyRequest::Representation
|
81
|
+
command.request_object = get_iam_policy_request_object
|
82
|
+
command.response_representation = Google::Apis::SpannerV1::Policy::Representation
|
83
|
+
command.response_class = Google::Apis::SpannerV1::Policy
|
84
|
+
command.params['resource'] = resource unless resource.nil?
|
85
|
+
command.query['fields'] = fields unless fields.nil?
|
86
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
87
|
+
execute_or_queue_command(command, &block)
|
88
|
+
end
|
89
|
+
|
90
|
+
# Gets information about a particular instance.
|
91
|
+
# @param [String] name
|
92
|
+
# Required. The name of the requested instance. Values are of the form
|
93
|
+
# `projects/<project>/instances/<instance>`.
|
94
|
+
# @param [String] fields
|
95
|
+
# Selector specifying which fields to include in a partial response.
|
96
|
+
# @param [String] quota_user
|
97
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
98
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
99
|
+
# @param [Google::Apis::RequestOptions] options
|
100
|
+
# Request-specific options
|
101
|
+
#
|
102
|
+
# @yield [result, err] Result & error if block supplied
|
103
|
+
# @yieldparam result [Google::Apis::SpannerV1::Instance] parsed result object
|
104
|
+
# @yieldparam err [StandardError] error object if request failed
|
105
|
+
#
|
106
|
+
# @return [Google::Apis::SpannerV1::Instance]
|
107
|
+
#
|
108
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
109
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
110
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
111
|
+
def get_project_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
112
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
113
|
+
command.response_representation = Google::Apis::SpannerV1::Instance::Representation
|
114
|
+
command.response_class = Google::Apis::SpannerV1::Instance
|
115
|
+
command.params['name'] = name unless name.nil?
|
116
|
+
command.query['fields'] = fields unless fields.nil?
|
117
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
118
|
+
execute_or_queue_command(command, &block)
|
119
|
+
end
|
120
|
+
|
121
|
+
# Updates an instance, and begins allocating or releasing resources
|
122
|
+
# as requested. The returned long-running
|
123
|
+
# operation can be used to track the
|
124
|
+
# progress of updating the instance. If the named instance does not
|
125
|
+
# exist, returns `NOT_FOUND`.
|
126
|
+
# Immediately upon completion of this request:
|
127
|
+
# * For resource types for which a decrease in the instance's allocation
|
128
|
+
# has been requested, billing is based on the newly-requested level.
|
129
|
+
# Until completion of the returned operation:
|
130
|
+
# * Cancelling the operation sets its metadata's
|
131
|
+
# cancel_time, and begins
|
132
|
+
# restoring resources to their pre-request values. The operation
|
133
|
+
# is guaranteed to succeed at undoing all resource changes,
|
134
|
+
# after which point it terminates with a `CANCELLED` status.
|
135
|
+
# * All other attempts to modify the instance are rejected.
|
136
|
+
# * Reading the instance via the API continues to give the pre-request
|
137
|
+
# resource levels.
|
138
|
+
# Upon completion of the returned operation:
|
139
|
+
# * Billing begins for all successfully-allocated resources (some types
|
140
|
+
# may have lower than the requested levels).
|
141
|
+
# * All newly-reserved resources are available for serving the instance's
|
142
|
+
# tables.
|
143
|
+
# * The instance's new resource levels are readable via the API.
|
144
|
+
# The returned long-running operation will
|
145
|
+
# have a name of the format `<instance_name>/operations/<operation_id>` and
|
146
|
+
# can be used to track the instance modification. The
|
147
|
+
# metadata field type is
|
148
|
+
# UpdateInstanceMetadata.
|
149
|
+
# The response field type is
|
150
|
+
# Instance, if successful.
|
151
|
+
# Authorization requires `spanner.instances.update` permission on
|
152
|
+
# resource name.
|
153
|
+
# @param [String] name
|
154
|
+
# Required. A unique identifier for the instance, which cannot be changed
|
155
|
+
# after the instance is created. Values are of the form
|
156
|
+
# `projects/<project>/instances/a-z*[a-z0-9]`. The final
|
157
|
+
# segment of the name must be between 6 and 30 characters in length.
|
158
|
+
# @param [Google::Apis::SpannerV1::UpdateInstanceRequest] update_instance_request_object
|
159
|
+
# @param [String] fields
|
160
|
+
# Selector specifying which fields to include in a partial response.
|
161
|
+
# @param [String] quota_user
|
162
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
163
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
164
|
+
# @param [Google::Apis::RequestOptions] options
|
165
|
+
# Request-specific options
|
166
|
+
#
|
167
|
+
# @yield [result, err] Result & error if block supplied
|
168
|
+
# @yieldparam result [Google::Apis::SpannerV1::Operation] parsed result object
|
169
|
+
# @yieldparam err [StandardError] error object if request failed
|
170
|
+
#
|
171
|
+
# @return [Google::Apis::SpannerV1::Operation]
|
172
|
+
#
|
173
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
174
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
175
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
176
|
+
def patch_project_instance(name, update_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
177
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
178
|
+
command.request_representation = Google::Apis::SpannerV1::UpdateInstanceRequest::Representation
|
179
|
+
command.request_object = update_instance_request_object
|
180
|
+
command.response_representation = Google::Apis::SpannerV1::Operation::Representation
|
181
|
+
command.response_class = Google::Apis::SpannerV1::Operation
|
182
|
+
command.params['name'] = name unless name.nil?
|
183
|
+
command.query['fields'] = fields unless fields.nil?
|
184
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
185
|
+
execute_or_queue_command(command, &block)
|
186
|
+
end
|
187
|
+
|
188
|
+
# Returns permissions that the caller has on the specified instance resource.
|
189
|
+
# Attempting this RPC on a non-existent Cloud Spanner instance resource will
|
190
|
+
# result in a NOT_FOUND error if the user has `spanner.instances.list`
|
191
|
+
# permission on the containing Google Cloud Project. Otherwise returns an
|
192
|
+
# empty set of permissions.
|
193
|
+
# @param [String] resource
|
194
|
+
# REQUIRED: The Cloud Spanner resource for which permissions are being tested.
|
195
|
+
# The format is `projects/<project ID>/instances/<instance ID>` for instance
|
196
|
+
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
197
|
+
# database ID>` for database resources.
|
198
|
+
# @param [Google::Apis::SpannerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
199
|
+
# @param [String] fields
|
200
|
+
# Selector specifying which fields to include in a partial response.
|
201
|
+
# @param [String] quota_user
|
202
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
203
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
204
|
+
# @param [Google::Apis::RequestOptions] options
|
205
|
+
# Request-specific options
|
206
|
+
#
|
207
|
+
# @yield [result, err] Result & error if block supplied
|
208
|
+
# @yieldparam result [Google::Apis::SpannerV1::TestIamPermissionsResponse] parsed result object
|
209
|
+
# @yieldparam err [StandardError] error object if request failed
|
210
|
+
#
|
211
|
+
# @return [Google::Apis::SpannerV1::TestIamPermissionsResponse]
|
212
|
+
#
|
213
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
214
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
215
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
216
|
+
def test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
217
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
218
|
+
command.request_representation = Google::Apis::SpannerV1::TestIamPermissionsRequest::Representation
|
219
|
+
command.request_object = test_iam_permissions_request_object
|
220
|
+
command.response_representation = Google::Apis::SpannerV1::TestIamPermissionsResponse::Representation
|
221
|
+
command.response_class = Google::Apis::SpannerV1::TestIamPermissionsResponse
|
222
|
+
command.params['resource'] = resource unless resource.nil?
|
223
|
+
command.query['fields'] = fields unless fields.nil?
|
224
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
225
|
+
execute_or_queue_command(command, &block)
|
48
226
|
end
|
49
227
|
|
50
228
|
# Deletes an instance.
|
@@ -241,9 +419,9 @@ module Google
|
|
241
419
|
execute_or_queue_command(command, &block)
|
242
420
|
end
|
243
421
|
|
244
|
-
# Gets the access control policy for
|
245
|
-
# policy if
|
246
|
-
# Authorization requires `spanner.
|
422
|
+
# Gets the access control policy for a database resource. Returns an empty
|
423
|
+
# policy if a database exists but does not have a policy set.
|
424
|
+
# Authorization requires `spanner.databases.getIamPolicy` permission on
|
247
425
|
# resource.
|
248
426
|
# @param [String] resource
|
249
427
|
# REQUIRED: The Cloud Spanner resource for which the policy is being retrieved.
|
@@ -268,7 +446,7 @@ module Google
|
|
268
446
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
269
447
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
270
448
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
271
|
-
def
|
449
|
+
def get_database_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
272
450
|
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
273
451
|
command.request_representation = Google::Apis::SpannerV1::GetIamPolicyRequest::Representation
|
274
452
|
command.request_object = get_iam_policy_request_object
|
@@ -280,10 +458,10 @@ module Google
|
|
280
458
|
execute_or_queue_command(command, &block)
|
281
459
|
end
|
282
460
|
|
283
|
-
# Gets
|
461
|
+
# Gets the state of a Cloud Spanner database.
|
284
462
|
# @param [String] name
|
285
|
-
# Required. The name of the requested
|
286
|
-
# `projects/<project>/instances/<instance>`.
|
463
|
+
# Required. The name of the requested database. Values are of the form
|
464
|
+
# `projects/<project>/instances/<instance>/databases/<database>`.
|
287
465
|
# @param [String] fields
|
288
466
|
# Selector specifying which fields to include in a partial response.
|
289
467
|
# @param [String] quota_user
|
@@ -293,62 +471,64 @@ module Google
|
|
293
471
|
# Request-specific options
|
294
472
|
#
|
295
473
|
# @yield [result, err] Result & error if block supplied
|
296
|
-
# @yieldparam result [Google::Apis::SpannerV1::
|
474
|
+
# @yieldparam result [Google::Apis::SpannerV1::Database] parsed result object
|
297
475
|
# @yieldparam err [StandardError] error object if request failed
|
298
476
|
#
|
299
|
-
# @return [Google::Apis::SpannerV1::
|
477
|
+
# @return [Google::Apis::SpannerV1::Database]
|
300
478
|
#
|
301
479
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
302
480
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
303
481
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
304
|
-
def
|
482
|
+
def get_project_instance_database(name, fields: nil, quota_user: nil, options: nil, &block)
|
305
483
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
306
|
-
command.response_representation = Google::Apis::SpannerV1::
|
307
|
-
command.response_class = Google::Apis::SpannerV1::
|
484
|
+
command.response_representation = Google::Apis::SpannerV1::Database::Representation
|
485
|
+
command.response_class = Google::Apis::SpannerV1::Database
|
308
486
|
command.params['name'] = name unless name.nil?
|
309
487
|
command.query['fields'] = fields unless fields.nil?
|
310
488
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
311
489
|
execute_or_queue_command(command, &block)
|
312
490
|
end
|
313
491
|
|
314
|
-
#
|
315
|
-
#
|
316
|
-
#
|
317
|
-
#
|
318
|
-
#
|
319
|
-
#
|
320
|
-
#
|
321
|
-
#
|
322
|
-
#
|
323
|
-
#
|
324
|
-
#
|
325
|
-
#
|
326
|
-
#
|
327
|
-
#
|
328
|
-
#
|
329
|
-
#
|
330
|
-
#
|
331
|
-
#
|
332
|
-
#
|
333
|
-
#
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
492
|
+
# Drops (aka deletes) a Cloud Spanner database.
|
493
|
+
# @param [String] database
|
494
|
+
# Required. The database to be dropped.
|
495
|
+
# @param [String] fields
|
496
|
+
# Selector specifying which fields to include in a partial response.
|
497
|
+
# @param [String] quota_user
|
498
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
499
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
500
|
+
# @param [Google::Apis::RequestOptions] options
|
501
|
+
# Request-specific options
|
502
|
+
#
|
503
|
+
# @yield [result, err] Result & error if block supplied
|
504
|
+
# @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
|
505
|
+
# @yieldparam err [StandardError] error object if request failed
|
506
|
+
#
|
507
|
+
# @return [Google::Apis::SpannerV1::Empty]
|
508
|
+
#
|
509
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
510
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
511
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
512
|
+
def drop_project_instance_database_database(database, fields: nil, quota_user: nil, options: nil, &block)
|
513
|
+
command = make_simple_command(:delete, 'v1/{+database}', options)
|
514
|
+
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
515
|
+
command.response_class = Google::Apis::SpannerV1::Empty
|
516
|
+
command.params['database'] = database unless database.nil?
|
517
|
+
command.query['fields'] = fields unless fields.nil?
|
518
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
519
|
+
execute_or_queue_command(command, &block)
|
520
|
+
end
|
521
|
+
|
522
|
+
# Updates the schema of a Cloud Spanner database by
|
523
|
+
# creating/altering/dropping tables, columns, indexes, etc. The returned
|
524
|
+
# long-running operation will have a name of
|
525
|
+
# the format `<database_name>/operations/<operation_id>` and can be used to
|
526
|
+
# track execution of the schema change(s). The
|
340
527
|
# metadata field type is
|
341
|
-
#
|
342
|
-
#
|
343
|
-
#
|
344
|
-
#
|
345
|
-
# resource name.
|
346
|
-
# @param [String] name
|
347
|
-
# Required. A unique identifier for the instance, which cannot be changed
|
348
|
-
# after the instance is created. Values are of the form
|
349
|
-
# `projects/<project>/instances/a-z*[a-z0-9]`. The final
|
350
|
-
# segment of the name must be between 6 and 30 characters in length.
|
351
|
-
# @param [Google::Apis::SpannerV1::UpdateInstanceRequest] update_instance_request_object
|
528
|
+
# UpdateDatabaseDdlMetadata. The operation has no response.
|
529
|
+
# @param [String] database
|
530
|
+
# Required. The database to update.
|
531
|
+
# @param [Google::Apis::SpannerV1::UpdateDatabaseDdlRequest] update_database_ddl_request_object
|
352
532
|
# @param [String] fields
|
353
533
|
# Selector specifying which fields to include in a partial response.
|
354
534
|
# @param [String] quota_user
|
@@ -366,23 +546,23 @@ module Google
|
|
366
546
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
367
547
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
368
548
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
369
|
-
def
|
370
|
-
command = make_simple_command(:patch, 'v1/{+
|
371
|
-
command.request_representation = Google::Apis::SpannerV1::
|
372
|
-
command.request_object =
|
549
|
+
def update_project_instance_database_ddl(database, update_database_ddl_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
550
|
+
command = make_simple_command(:patch, 'v1/{+database}/ddl', options)
|
551
|
+
command.request_representation = Google::Apis::SpannerV1::UpdateDatabaseDdlRequest::Representation
|
552
|
+
command.request_object = update_database_ddl_request_object
|
373
553
|
command.response_representation = Google::Apis::SpannerV1::Operation::Representation
|
374
554
|
command.response_class = Google::Apis::SpannerV1::Operation
|
375
|
-
command.params['
|
555
|
+
command.params['database'] = database unless database.nil?
|
376
556
|
command.query['fields'] = fields unless fields.nil?
|
377
557
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
378
558
|
execute_or_queue_command(command, &block)
|
379
559
|
end
|
380
560
|
|
381
|
-
# Returns permissions that the caller has on the specified
|
382
|
-
# Attempting this RPC on a non-existent Cloud Spanner
|
383
|
-
#
|
384
|
-
#
|
385
|
-
#
|
561
|
+
# Returns permissions that the caller has on the specified database resource.
|
562
|
+
# Attempting this RPC on a non-existent Cloud Spanner database will result in
|
563
|
+
# a NOT_FOUND error if the user has `spanner.databases.list` permission on
|
564
|
+
# the containing Cloud Spanner instance. Otherwise returns an empty set of
|
565
|
+
# permissions.
|
386
566
|
# @param [String] resource
|
387
567
|
# REQUIRED: The Cloud Spanner resource for which permissions are being tested.
|
388
568
|
# The format is `projects/<project ID>/instances/<instance ID>` for instance
|
@@ -406,7 +586,7 @@ module Google
|
|
406
586
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
407
587
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
408
588
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
409
|
-
def
|
589
|
+
def test_database_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
410
590
|
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
411
591
|
command.request_representation = Google::Apis::SpannerV1::TestIamPermissionsRequest::Representation
|
412
592
|
command.request_object = test_iam_permissions_request_object
|
@@ -476,210 +656,30 @@ module Google
|
|
476
656
|
# @return [Google::Apis::SpannerV1::ListDatabasesResponse]
|
477
657
|
#
|
478
658
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
479
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
480
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
481
|
-
def list_project_instance_databases(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
482
|
-
command = make_simple_command(:get, 'v1/{+parent}/databases', options)
|
483
|
-
command.response_representation = Google::Apis::SpannerV1::ListDatabasesResponse::Representation
|
484
|
-
command.response_class = Google::Apis::SpannerV1::ListDatabasesResponse
|
485
|
-
command.params['parent'] = parent unless parent.nil?
|
486
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
487
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
488
|
-
command.query['fields'] = fields unless fields.nil?
|
489
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
490
|
-
execute_or_queue_command(command, &block)
|
491
|
-
end
|
492
|
-
|
493
|
-
# Sets the access control policy on a database resource. Replaces any
|
494
|
-
# existing policy.
|
495
|
-
# Authorization requires `spanner.databases.setIamPolicy` permission on
|
496
|
-
# resource.
|
497
|
-
# @param [String] resource
|
498
|
-
# REQUIRED: The Cloud Spanner resource for which the policy is being set. The
|
499
|
-
# format is `projects/<project ID>/instances/<instance ID>` for instance
|
500
|
-
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
501
|
-
# database ID>` for databases resources.
|
502
|
-
# @param [Google::Apis::SpannerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
503
|
-
# @param [String] fields
|
504
|
-
# Selector specifying which fields to include in a partial response.
|
505
|
-
# @param [String] quota_user
|
506
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
507
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
508
|
-
# @param [Google::Apis::RequestOptions] options
|
509
|
-
# Request-specific options
|
510
|
-
#
|
511
|
-
# @yield [result, err] Result & error if block supplied
|
512
|
-
# @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
|
513
|
-
# @yieldparam err [StandardError] error object if request failed
|
514
|
-
#
|
515
|
-
# @return [Google::Apis::SpannerV1::Policy]
|
516
|
-
#
|
517
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
518
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
519
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
520
|
-
def set_database_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
521
|
-
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
522
|
-
command.request_representation = Google::Apis::SpannerV1::SetIamPolicyRequest::Representation
|
523
|
-
command.request_object = set_iam_policy_request_object
|
524
|
-
command.response_representation = Google::Apis::SpannerV1::Policy::Representation
|
525
|
-
command.response_class = Google::Apis::SpannerV1::Policy
|
526
|
-
command.params['resource'] = resource unless resource.nil?
|
527
|
-
command.query['fields'] = fields unless fields.nil?
|
528
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
529
|
-
execute_or_queue_command(command, &block)
|
530
|
-
end
|
531
|
-
|
532
|
-
# Creates a new Cloud Spanner database and starts to prepare it for serving.
|
533
|
-
# The returned long-running operation will
|
534
|
-
# have a name of the format `<database_name>/operations/<operation_id>` and
|
535
|
-
# can be used to track preparation of the database. The
|
536
|
-
# metadata field type is
|
537
|
-
# CreateDatabaseMetadata. The
|
538
|
-
# response field type is
|
539
|
-
# Database, if successful.
|
540
|
-
# @param [String] parent
|
541
|
-
# Required. The name of the instance that will serve the new database.
|
542
|
-
# Values are of the form `projects/<project>/instances/<instance>`.
|
543
|
-
# @param [Google::Apis::SpannerV1::CreateDatabaseRequest] create_database_request_object
|
544
|
-
# @param [String] fields
|
545
|
-
# Selector specifying which fields to include in a partial response.
|
546
|
-
# @param [String] quota_user
|
547
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
548
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
549
|
-
# @param [Google::Apis::RequestOptions] options
|
550
|
-
# Request-specific options
|
551
|
-
#
|
552
|
-
# @yield [result, err] Result & error if block supplied
|
553
|
-
# @yieldparam result [Google::Apis::SpannerV1::Operation] parsed result object
|
554
|
-
# @yieldparam err [StandardError] error object if request failed
|
555
|
-
#
|
556
|
-
# @return [Google::Apis::SpannerV1::Operation]
|
557
|
-
#
|
558
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
559
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
560
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
561
|
-
def create_database(parent, create_database_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
562
|
-
command = make_simple_command(:post, 'v1/{+parent}/databases', options)
|
563
|
-
command.request_representation = Google::Apis::SpannerV1::CreateDatabaseRequest::Representation
|
564
|
-
command.request_object = create_database_request_object
|
565
|
-
command.response_representation = Google::Apis::SpannerV1::Operation::Representation
|
566
|
-
command.response_class = Google::Apis::SpannerV1::Operation
|
567
|
-
command.params['parent'] = parent unless parent.nil?
|
568
|
-
command.query['fields'] = fields unless fields.nil?
|
569
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
570
|
-
execute_or_queue_command(command, &block)
|
571
|
-
end
|
572
|
-
|
573
|
-
# Gets the access control policy for a database resource. Returns an empty
|
574
|
-
# policy if a database exists but does not have a policy set.
|
575
|
-
# Authorization requires `spanner.databases.getIamPolicy` permission on
|
576
|
-
# resource.
|
577
|
-
# @param [String] resource
|
578
|
-
# REQUIRED: The Cloud Spanner resource for which the policy is being retrieved.
|
579
|
-
# The format is `projects/<project ID>/instances/<instance ID>` for instance
|
580
|
-
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
581
|
-
# database ID>` for database resources.
|
582
|
-
# @param [Google::Apis::SpannerV1::GetIamPolicyRequest] get_iam_policy_request_object
|
583
|
-
# @param [String] fields
|
584
|
-
# Selector specifying which fields to include in a partial response.
|
585
|
-
# @param [String] quota_user
|
586
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
587
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
588
|
-
# @param [Google::Apis::RequestOptions] options
|
589
|
-
# Request-specific options
|
590
|
-
#
|
591
|
-
# @yield [result, err] Result & error if block supplied
|
592
|
-
# @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
|
593
|
-
# @yieldparam err [StandardError] error object if request failed
|
594
|
-
#
|
595
|
-
# @return [Google::Apis::SpannerV1::Policy]
|
596
|
-
#
|
597
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
598
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
599
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
600
|
-
def get_database_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
601
|
-
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
602
|
-
command.request_representation = Google::Apis::SpannerV1::GetIamPolicyRequest::Representation
|
603
|
-
command.request_object = get_iam_policy_request_object
|
604
|
-
command.response_representation = Google::Apis::SpannerV1::Policy::Representation
|
605
|
-
command.response_class = Google::Apis::SpannerV1::Policy
|
606
|
-
command.params['resource'] = resource unless resource.nil?
|
607
|
-
command.query['fields'] = fields unless fields.nil?
|
608
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
609
|
-
execute_or_queue_command(command, &block)
|
610
|
-
end
|
611
|
-
|
612
|
-
# Gets the state of a Cloud Spanner database.
|
613
|
-
# @param [String] name
|
614
|
-
# Required. The name of the requested database. Values are of the form
|
615
|
-
# `projects/<project>/instances/<instance>/databases/<database>`.
|
616
|
-
# @param [String] fields
|
617
|
-
# Selector specifying which fields to include in a partial response.
|
618
|
-
# @param [String] quota_user
|
619
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
620
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
621
|
-
# @param [Google::Apis::RequestOptions] options
|
622
|
-
# Request-specific options
|
623
|
-
#
|
624
|
-
# @yield [result, err] Result & error if block supplied
|
625
|
-
# @yieldparam result [Google::Apis::SpannerV1::Database] parsed result object
|
626
|
-
# @yieldparam err [StandardError] error object if request failed
|
627
|
-
#
|
628
|
-
# @return [Google::Apis::SpannerV1::Database]
|
629
|
-
#
|
630
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
631
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
632
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
633
|
-
def get_project_instance_database(name, fields: nil, quota_user: nil, options: nil, &block)
|
634
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
635
|
-
command.response_representation = Google::Apis::SpannerV1::Database::Representation
|
636
|
-
command.response_class = Google::Apis::SpannerV1::Database
|
637
|
-
command.params['name'] = name unless name.nil?
|
638
|
-
command.query['fields'] = fields unless fields.nil?
|
639
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
640
|
-
execute_or_queue_command(command, &block)
|
641
|
-
end
|
642
|
-
|
643
|
-
# Drops (aka deletes) a Cloud Spanner database.
|
644
|
-
# @param [String] database
|
645
|
-
# Required. The database to be dropped.
|
646
|
-
# @param [String] fields
|
647
|
-
# Selector specifying which fields to include in a partial response.
|
648
|
-
# @param [String] quota_user
|
649
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
650
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
651
|
-
# @param [Google::Apis::RequestOptions] options
|
652
|
-
# Request-specific options
|
653
|
-
#
|
654
|
-
# @yield [result, err] Result & error if block supplied
|
655
|
-
# @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
|
656
|
-
# @yieldparam err [StandardError] error object if request failed
|
657
|
-
#
|
658
|
-
# @return [Google::Apis::SpannerV1::Empty]
|
659
|
-
#
|
660
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
661
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
662
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
663
|
-
def drop_project_instance_database_database(database, fields: nil, quota_user: nil, options: nil, &block)
|
664
|
-
command = make_simple_command(:delete, 'v1/{+database}', options)
|
665
|
-
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
666
|
-
command.response_class = Google::Apis::SpannerV1::Empty
|
667
|
-
command.params['database'] = database unless database.nil?
|
659
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
660
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
661
|
+
def list_project_instance_databases(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
662
|
+
command = make_simple_command(:get, 'v1/{+parent}/databases', options)
|
663
|
+
command.response_representation = Google::Apis::SpannerV1::ListDatabasesResponse::Representation
|
664
|
+
command.response_class = Google::Apis::SpannerV1::ListDatabasesResponse
|
665
|
+
command.params['parent'] = parent unless parent.nil?
|
666
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
667
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
668
668
|
command.query['fields'] = fields unless fields.nil?
|
669
669
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
670
670
|
execute_or_queue_command(command, &block)
|
671
671
|
end
|
672
672
|
|
673
|
-
#
|
674
|
-
#
|
675
|
-
#
|
676
|
-
#
|
677
|
-
#
|
678
|
-
#
|
679
|
-
#
|
680
|
-
#
|
681
|
-
#
|
682
|
-
# @param [Google::Apis::SpannerV1::
|
673
|
+
# Sets the access control policy on a database resource. Replaces any
|
674
|
+
# existing policy.
|
675
|
+
# Authorization requires `spanner.databases.setIamPolicy` permission on
|
676
|
+
# resource.
|
677
|
+
# @param [String] resource
|
678
|
+
# REQUIRED: The Cloud Spanner resource for which the policy is being set. The
|
679
|
+
# format is `projects/<project ID>/instances/<instance ID>` for instance
|
680
|
+
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
681
|
+
# database ID>` for databases resources.
|
682
|
+
# @param [Google::Apis::SpannerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
683
683
|
# @param [String] fields
|
684
684
|
# Selector specifying which fields to include in a partial response.
|
685
685
|
# @param [String] quota_user
|
@@ -689,37 +689,38 @@ module Google
|
|
689
689
|
# Request-specific options
|
690
690
|
#
|
691
691
|
# @yield [result, err] Result & error if block supplied
|
692
|
-
# @yieldparam result [Google::Apis::SpannerV1::
|
692
|
+
# @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
|
693
693
|
# @yieldparam err [StandardError] error object if request failed
|
694
694
|
#
|
695
|
-
# @return [Google::Apis::SpannerV1::
|
695
|
+
# @return [Google::Apis::SpannerV1::Policy]
|
696
696
|
#
|
697
697
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
698
698
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
699
699
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
700
|
-
def
|
701
|
-
command = make_simple_command(:
|
702
|
-
command.request_representation = Google::Apis::SpannerV1::
|
703
|
-
command.request_object =
|
704
|
-
command.response_representation = Google::Apis::SpannerV1::
|
705
|
-
command.response_class = Google::Apis::SpannerV1::
|
706
|
-
command.params['
|
700
|
+
def set_database_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
701
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
702
|
+
command.request_representation = Google::Apis::SpannerV1::SetIamPolicyRequest::Representation
|
703
|
+
command.request_object = set_iam_policy_request_object
|
704
|
+
command.response_representation = Google::Apis::SpannerV1::Policy::Representation
|
705
|
+
command.response_class = Google::Apis::SpannerV1::Policy
|
706
|
+
command.params['resource'] = resource unless resource.nil?
|
707
707
|
command.query['fields'] = fields unless fields.nil?
|
708
708
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
709
709
|
execute_or_queue_command(command, &block)
|
710
710
|
end
|
711
711
|
|
712
|
-
#
|
713
|
-
#
|
714
|
-
# a
|
715
|
-
#
|
716
|
-
#
|
717
|
-
#
|
718
|
-
#
|
719
|
-
#
|
720
|
-
#
|
721
|
-
#
|
722
|
-
#
|
712
|
+
# Creates a new Cloud Spanner database and starts to prepare it for serving.
|
713
|
+
# The returned long-running operation will
|
714
|
+
# have a name of the format `<database_name>/operations/<operation_id>` and
|
715
|
+
# can be used to track preparation of the database. The
|
716
|
+
# metadata field type is
|
717
|
+
# CreateDatabaseMetadata. The
|
718
|
+
# response field type is
|
719
|
+
# Database, if successful.
|
720
|
+
# @param [String] parent
|
721
|
+
# Required. The name of the instance that will serve the new database.
|
722
|
+
# Values are of the form `projects/<project>/instances/<instance>`.
|
723
|
+
# @param [Google::Apis::SpannerV1::CreateDatabaseRequest] create_database_request_object
|
723
724
|
# @param [String] fields
|
724
725
|
# Selector specifying which fields to include in a partial response.
|
725
726
|
# @param [String] quota_user
|
@@ -729,21 +730,21 @@ module Google
|
|
729
730
|
# Request-specific options
|
730
731
|
#
|
731
732
|
# @yield [result, err] Result & error if block supplied
|
732
|
-
# @yieldparam result [Google::Apis::SpannerV1::
|
733
|
+
# @yieldparam result [Google::Apis::SpannerV1::Operation] parsed result object
|
733
734
|
# @yieldparam err [StandardError] error object if request failed
|
734
735
|
#
|
735
|
-
# @return [Google::Apis::SpannerV1::
|
736
|
+
# @return [Google::Apis::SpannerV1::Operation]
|
736
737
|
#
|
737
738
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
738
739
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
739
740
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
740
|
-
def
|
741
|
-
command = make_simple_command(:post, 'v1/{+
|
742
|
-
command.request_representation = Google::Apis::SpannerV1::
|
743
|
-
command.request_object =
|
744
|
-
command.response_representation = Google::Apis::SpannerV1::
|
745
|
-
command.response_class = Google::Apis::SpannerV1::
|
746
|
-
command.params['
|
741
|
+
def create_database(parent, create_database_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
742
|
+
command = make_simple_command(:post, 'v1/{+parent}/databases', options)
|
743
|
+
command.request_representation = Google::Apis::SpannerV1::CreateDatabaseRequest::Representation
|
744
|
+
command.request_object = create_database_request_object
|
745
|
+
command.response_representation = Google::Apis::SpannerV1::Operation::Representation
|
746
|
+
command.response_class = Google::Apis::SpannerV1::Operation
|
747
|
+
command.params['parent'] = parent unless parent.nil?
|
747
748
|
command.query['fields'] = fields unless fields.nil?
|
748
749
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
749
750
|
execute_or_queue_command(command, &block)
|
@@ -895,14 +896,16 @@ module Google
|
|
895
896
|
execute_or_queue_command(command, &block)
|
896
897
|
end
|
897
898
|
|
898
|
-
#
|
899
|
-
#
|
900
|
-
#
|
901
|
-
#
|
902
|
-
#
|
899
|
+
# Rolls back a transaction, releasing any locks it holds. It is a good
|
900
|
+
# idea to call this for any transaction that includes one or more
|
901
|
+
# Read or ExecuteSql requests and
|
902
|
+
# ultimately decides not to commit.
|
903
|
+
# `Rollback` returns `OK` if it successfully aborts the transaction, the
|
904
|
+
# transaction was already aborted, or the transaction is not
|
905
|
+
# found. `Rollback` never returns `ABORTED`.
|
903
906
|
# @param [String] session
|
904
|
-
# Required. The session in which the
|
905
|
-
# @param [Google::Apis::SpannerV1::
|
907
|
+
# Required. The session in which the transaction to roll back is running.
|
908
|
+
# @param [Google::Apis::SpannerV1::RollbackRequest] rollback_request_object
|
906
909
|
# @param [String] fields
|
907
910
|
# Selector specifying which fields to include in a partial response.
|
908
911
|
# @param [String] quota_user
|
@@ -912,36 +915,34 @@ module Google
|
|
912
915
|
# Request-specific options
|
913
916
|
#
|
914
917
|
# @yield [result, err] Result & error if block supplied
|
915
|
-
# @yieldparam result [Google::Apis::SpannerV1::
|
918
|
+
# @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
|
916
919
|
# @yieldparam err [StandardError] error object if request failed
|
917
920
|
#
|
918
|
-
# @return [Google::Apis::SpannerV1::
|
921
|
+
# @return [Google::Apis::SpannerV1::Empty]
|
919
922
|
#
|
920
923
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
921
924
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
922
925
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
923
|
-
def
|
924
|
-
command = make_simple_command(:post, 'v1/{+session}:
|
925
|
-
command.request_representation = Google::Apis::SpannerV1::
|
926
|
-
command.request_object =
|
927
|
-
command.response_representation = Google::Apis::SpannerV1::
|
928
|
-
command.response_class = Google::Apis::SpannerV1::
|
926
|
+
def rollback_session(session, rollback_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
927
|
+
command = make_simple_command(:post, 'v1/{+session}:rollback', options)
|
928
|
+
command.request_representation = Google::Apis::SpannerV1::RollbackRequest::Representation
|
929
|
+
command.request_object = rollback_request_object
|
930
|
+
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
931
|
+
command.response_class = Google::Apis::SpannerV1::Empty
|
929
932
|
command.params['session'] = session unless session.nil?
|
930
933
|
command.query['fields'] = fields unless fields.nil?
|
931
934
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
932
935
|
execute_or_queue_command(command, &block)
|
933
936
|
end
|
934
937
|
|
935
|
-
#
|
936
|
-
#
|
937
|
-
#
|
938
|
-
#
|
939
|
-
#
|
940
|
-
# transaction was already aborted, or the transaction is not
|
941
|
-
# found. `Rollback` never returns `ABORTED`.
|
938
|
+
# Like Read, except returns the result set as a
|
939
|
+
# stream. Unlike Read, there is no limit on the
|
940
|
+
# size of the returned result set. However, no individual row in
|
941
|
+
# the result set can exceed 100 MiB, and no column value can exceed
|
942
|
+
# 10 MiB.
|
942
943
|
# @param [String] session
|
943
|
-
# Required. The session in which the
|
944
|
-
# @param [Google::Apis::SpannerV1::
|
944
|
+
# Required. The session in which the read should be performed.
|
945
|
+
# @param [Google::Apis::SpannerV1::ReadRequest] read_request_object
|
945
946
|
# @param [String] fields
|
946
947
|
# Selector specifying which fields to include in a partial response.
|
947
948
|
# @param [String] quota_user
|
@@ -951,20 +952,20 @@ module Google
|
|
951
952
|
# Request-specific options
|
952
953
|
#
|
953
954
|
# @yield [result, err] Result & error if block supplied
|
954
|
-
# @yieldparam result [Google::Apis::SpannerV1::
|
955
|
+
# @yieldparam result [Google::Apis::SpannerV1::PartialResultSet] parsed result object
|
955
956
|
# @yieldparam err [StandardError] error object if request failed
|
956
957
|
#
|
957
|
-
# @return [Google::Apis::SpannerV1::
|
958
|
+
# @return [Google::Apis::SpannerV1::PartialResultSet]
|
958
959
|
#
|
959
960
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
960
961
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
961
962
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
962
|
-
def
|
963
|
-
command = make_simple_command(:post, 'v1/{+session}:
|
964
|
-
command.request_representation = Google::Apis::SpannerV1::
|
965
|
-
command.request_object =
|
966
|
-
command.response_representation = Google::Apis::SpannerV1::
|
967
|
-
command.response_class = Google::Apis::SpannerV1::
|
963
|
+
def streaming_project_instance_database_session_read(session, read_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
964
|
+
command = make_simple_command(:post, 'v1/{+session}:streamingRead', options)
|
965
|
+
command.request_representation = Google::Apis::SpannerV1::ReadRequest::Representation
|
966
|
+
command.request_object = read_request_object
|
967
|
+
command.response_representation = Google::Apis::SpannerV1::PartialResultSet::Representation
|
968
|
+
command.response_class = Google::Apis::SpannerV1::PartialResultSet
|
968
969
|
command.params['session'] = session unless session.nil?
|
969
970
|
command.query['fields'] = fields unless fields.nil?
|
970
971
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1091,36 +1092,6 @@ module Google
|
|
1091
1092
|
execute_or_queue_command(command, &block)
|
1092
1093
|
end
|
1093
1094
|
|
1094
|
-
# Ends a session, releasing server resources associated with it.
|
1095
|
-
# @param [String] name
|
1096
|
-
# Required. The name of the session to delete.
|
1097
|
-
# @param [String] fields
|
1098
|
-
# Selector specifying which fields to include in a partial response.
|
1099
|
-
# @param [String] quota_user
|
1100
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1101
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1102
|
-
# @param [Google::Apis::RequestOptions] options
|
1103
|
-
# Request-specific options
|
1104
|
-
#
|
1105
|
-
# @yield [result, err] Result & error if block supplied
|
1106
|
-
# @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
|
1107
|
-
# @yieldparam err [StandardError] error object if request failed
|
1108
|
-
#
|
1109
|
-
# @return [Google::Apis::SpannerV1::Empty]
|
1110
|
-
#
|
1111
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1112
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1113
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1114
|
-
def delete_project_instance_database_session(name, fields: nil, quota_user: nil, options: nil, &block)
|
1115
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1116
|
-
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
1117
|
-
command.response_class = Google::Apis::SpannerV1::Empty
|
1118
|
-
command.params['name'] = name unless name.nil?
|
1119
|
-
command.query['fields'] = fields unless fields.nil?
|
1120
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1121
|
-
execute_or_queue_command(command, &block)
|
1122
|
-
end
|
1123
|
-
|
1124
1095
|
# Like ExecuteSql, except returns the result
|
1125
1096
|
# set as a stream. Unlike ExecuteSql, there
|
1126
1097
|
# is no limit on the size of the returned result set. However, no
|
@@ -1158,16 +1129,9 @@ module Google
|
|
1158
1129
|
execute_or_queue_command(command, &block)
|
1159
1130
|
end
|
1160
1131
|
|
1161
|
-
#
|
1162
|
-
#
|
1163
|
-
#
|
1164
|
-
# commonly, the cause is conflicts with concurrent
|
1165
|
-
# transactions. However, it can also happen for a variety of other
|
1166
|
-
# reasons. If `Commit` returns `ABORTED`, the caller should re-attempt
|
1167
|
-
# the transaction from the beginning, re-using the same session.
|
1168
|
-
# @param [String] session
|
1169
|
-
# Required. The session in which the transaction to be committed is running.
|
1170
|
-
# @param [Google::Apis::SpannerV1::CommitRequest] commit_request_object
|
1132
|
+
# Ends a session, releasing server resources associated with it.
|
1133
|
+
# @param [String] name
|
1134
|
+
# Required. The name of the session to delete.
|
1171
1135
|
# @param [String] fields
|
1172
1136
|
# Selector specifying which fields to include in a partial response.
|
1173
1137
|
# @param [String] quota_user
|
@@ -1177,21 +1141,19 @@ module Google
|
|
1177
1141
|
# Request-specific options
|
1178
1142
|
#
|
1179
1143
|
# @yield [result, err] Result & error if block supplied
|
1180
|
-
# @yieldparam result [Google::Apis::SpannerV1::
|
1144
|
+
# @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
|
1181
1145
|
# @yieldparam err [StandardError] error object if request failed
|
1182
1146
|
#
|
1183
|
-
# @return [Google::Apis::SpannerV1::
|
1147
|
+
# @return [Google::Apis::SpannerV1::Empty]
|
1184
1148
|
#
|
1185
1149
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1186
1150
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1187
1151
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1188
|
-
def
|
1189
|
-
command = make_simple_command(:
|
1190
|
-
command.
|
1191
|
-
command.
|
1192
|
-
command.
|
1193
|
-
command.response_class = Google::Apis::SpannerV1::CommitResponse
|
1194
|
-
command.params['session'] = session unless session.nil?
|
1152
|
+
def delete_project_instance_database_session(name, fields: nil, quota_user: nil, options: nil, &block)
|
1153
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1154
|
+
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
1155
|
+
command.response_class = Google::Apis::SpannerV1::Empty
|
1156
|
+
command.params['name'] = name unless name.nil?
|
1195
1157
|
command.query['fields'] = fields unless fields.nil?
|
1196
1158
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1197
1159
|
execute_or_queue_command(command, &block)
|
@@ -1233,6 +1195,45 @@ module Google
|
|
1233
1195
|
execute_or_queue_command(command, &block)
|
1234
1196
|
end
|
1235
1197
|
|
1198
|
+
# Commits a transaction. The request includes the mutations to be
|
1199
|
+
# applied to rows in the database.
|
1200
|
+
# `Commit` might return an `ABORTED` error. This can occur at any time;
|
1201
|
+
# commonly, the cause is conflicts with concurrent
|
1202
|
+
# transactions. However, it can also happen for a variety of other
|
1203
|
+
# reasons. If `Commit` returns `ABORTED`, the caller should re-attempt
|
1204
|
+
# the transaction from the beginning, re-using the same session.
|
1205
|
+
# @param [String] session
|
1206
|
+
# Required. The session in which the transaction to be committed is running.
|
1207
|
+
# @param [Google::Apis::SpannerV1::CommitRequest] commit_request_object
|
1208
|
+
# @param [String] fields
|
1209
|
+
# Selector specifying which fields to include in a partial response.
|
1210
|
+
# @param [String] quota_user
|
1211
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1212
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1213
|
+
# @param [Google::Apis::RequestOptions] options
|
1214
|
+
# Request-specific options
|
1215
|
+
#
|
1216
|
+
# @yield [result, err] Result & error if block supplied
|
1217
|
+
# @yieldparam result [Google::Apis::SpannerV1::CommitResponse] parsed result object
|
1218
|
+
# @yieldparam err [StandardError] error object if request failed
|
1219
|
+
#
|
1220
|
+
# @return [Google::Apis::SpannerV1::CommitResponse]
|
1221
|
+
#
|
1222
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1223
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1224
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1225
|
+
def commit_session(session, commit_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1226
|
+
command = make_simple_command(:post, 'v1/{+session}:commit', options)
|
1227
|
+
command.request_representation = Google::Apis::SpannerV1::CommitRequest::Representation
|
1228
|
+
command.request_object = commit_request_object
|
1229
|
+
command.response_representation = Google::Apis::SpannerV1::CommitResponse::Representation
|
1230
|
+
command.response_class = Google::Apis::SpannerV1::CommitResponse
|
1231
|
+
command.params['session'] = session unless session.nil?
|
1232
|
+
command.query['fields'] = fields unless fields.nil?
|
1233
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1234
|
+
execute_or_queue_command(command, &block)
|
1235
|
+
end
|
1236
|
+
|
1236
1237
|
# Executes an SQL query, returning all rows in a single reply. This
|
1237
1238
|
# method cannot be used to return a result set larger than 10 MiB;
|
1238
1239
|
# if the query yields more data than that, the query fails with
|
@@ -1352,12 +1353,12 @@ module Google
|
|
1352
1353
|
# to use different resource name schemes, such as `users/*/operations`.
|
1353
1354
|
# @param [String] name
|
1354
1355
|
# The name of the operation collection.
|
1356
|
+
# @param [String] filter
|
1357
|
+
# The standard list filter.
|
1355
1358
|
# @param [String] page_token
|
1356
1359
|
# The standard list page token.
|
1357
1360
|
# @param [Fixnum] page_size
|
1358
1361
|
# The standard list page size.
|
1359
|
-
# @param [String] filter
|
1360
|
-
# The standard list filter.
|
1361
1362
|
# @param [String] fields
|
1362
1363
|
# Selector specifying which fields to include in a partial response.
|
1363
1364
|
# @param [String] quota_user
|
@@ -1375,14 +1376,14 @@ module Google
|
|
1375
1376
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1376
1377
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1377
1378
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1378
|
-
def list_project_instance_operations(name,
|
1379
|
+
def list_project_instance_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1379
1380
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
1380
1381
|
command.response_representation = Google::Apis::SpannerV1::ListOperationsResponse::Representation
|
1381
1382
|
command.response_class = Google::Apis::SpannerV1::ListOperationsResponse
|
1382
1383
|
command.params['name'] = name unless name.nil?
|
1384
|
+
command.query['filter'] = filter unless filter.nil?
|
1383
1385
|
command.query['pageToken'] = page_token unless page_token.nil?
|
1384
1386
|
command.query['pageSize'] = page_size unless page_size.nil?
|
1385
|
-
command.query['filter'] = filter unless filter.nil?
|
1386
1387
|
command.query['fields'] = fields unless fields.nil?
|
1387
1388
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1388
1389
|
execute_or_queue_command(command, &block)
|