google-api-client 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/api_names.yaml +945 -41609
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
- data/generated/google/apis/admin_directory_v1/service.rb +26 -26
- 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 +3 -3
- data/generated/google/apis/adsense_v1_4/service.rb +44 -44
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
- data/generated/google/apis/analytics_v3/classes.rb +3 -3
- data/generated/google/apis/analytics_v3/representations.rb +3 -3
- data/generated/google/apis/analytics_v3/service.rb +82 -82
- data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
- data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
- data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
- data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
- data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
- data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
- data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
- data/generated/google/apis/appengine_v1/representations.rb +362 -343
- data/generated/google/apis/appengine_v1/service.rb +220 -220
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +5 -5
- data/generated/google/apis/bigquery_v2/representations.rb +8 -8
- data/generated/google/apis/bigquery_v2/service.rb +13 -13
- data/generated/google/apis/blogger_v3/service.rb +3 -3
- data/generated/google/apis/books_v1/classes.rb +55 -55
- data/generated/google/apis/books_v1/representations.rb +67 -67
- data/generated/google/apis/books_v1/service.rb +82 -82
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +6 -6
- data/generated/google/apis/calendar_v3/representations.rb +3 -3
- data/generated/google/apis/calendar_v3/service.rb +2 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
- data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
- data/generated/google/apis/civicinfo_v2/service.rb +12 -12
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +1013 -991
- data/generated/google/apis/classroom_v1/representations.rb +207 -204
- data/generated/google/apis/classroom_v1/service.rb +709 -709
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
- data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
- data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
- data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
- data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
- data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
- data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
- data/generated/google/apis/cloudkms_v1/service.rb +267 -267
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
- data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +163 -15
- data/generated/google/apis/compute_beta/representations.rb +54 -14
- data/generated/google/apis/compute_beta/service.rb +2258 -482
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +465 -13
- data/generated/google/apis/compute_v1/representations.rb +202 -16
- data/generated/google/apis/compute_v1/service.rb +573 -309
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +635 -589
- data/generated/google/apis/container_v1/representations.rb +139 -111
- data/generated/google/apis/container_v1/service.rb +272 -227
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +86 -74
- data/generated/google/apis/content_v2/representations.rb +107 -105
- data/generated/google/apis/content_v2/service.rb +131 -130
- data/generated/google/apis/customsearch_v1.rb +2 -2
- data/generated/google/apis/customsearch_v1/classes.rb +0 -6
- data/generated/google/apis/customsearch_v1/representations.rb +0 -1
- data/generated/google/apis/customsearch_v1/service.rb +2 -5
- data/generated/google/apis/dataflow_v1b3.rb +7 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
- data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
- data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +543 -691
- data/generated/google/apis/dataproc_v1/representations.rb +129 -185
- data/generated/google/apis/dataproc_v1/service.rb +347 -347
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +833 -833
- data/generated/google/apis/datastore_v1/representations.rb +182 -182
- data/generated/google/apis/datastore_v1/service.rb +45 -45
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
- data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
- data/generated/google/apis/discovery_v1/classes.rb +4 -4
- data/generated/google/apis/discovery_v1/representations.rb +2 -2
- data/generated/google/apis/discovery_v1/service.rb +1 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +3 -3
- data/generated/google/apis/dns_v1/representations.rb +6 -6
- data/generated/google/apis/dns_v1/service.rb +12 -12
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +160 -110
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
- data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
- data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
- data/generated/google/apis/firebaserules_v1/service.rb +103 -103
- data/generated/google/apis/fusiontables_v2/service.rb +2 -2
- 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 +4 -4
- data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +23 -23
- data/generated/google/apis/games_v1/representations.rb +43 -43
- data/generated/google/apis/games_v1/service.rb +72 -72
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
- data/generated/google/apis/genomics_v1/representations.rb +291 -291
- data/generated/google/apis/genomics_v1/service.rb +821 -821
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/groupsmigration_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
- data/generated/google/apis/groupssettings_v1/service.rb +3 -0
- data/generated/google/apis/iam_v1/classes.rb +338 -338
- data/generated/google/apis/iam_v1/representations.rb +98 -98
- data/generated/google/apis/iam_v1/service.rb +35 -35
- data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
- data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
- data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
- data/generated/google/apis/kgsearch_v1/service.rb +13 -13
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +374 -374
- data/generated/google/apis/language_v1/representations.rb +97 -97
- data/generated/google/apis/language_v1/service.rb +16 -16
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +441 -441
- data/generated/google/apis/language_v1beta1/representations.rb +108 -108
- data/generated/google/apis/language_v1beta1/service.rb +30 -30
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +712 -712
- data/generated/google/apis/logging_v2/representations.rb +109 -109
- data/generated/google/apis/logging_v2/service.rb +543 -539
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
- data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
- data/generated/google/apis/logging_v2beta1/service.rb +257 -256
- data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
- data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
- data/generated/google/apis/mirror_v1/classes.rb +5 -5
- data/generated/google/apis/mirror_v1/representations.rb +10 -10
- data/generated/google/apis/mirror_v1/service.rb +20 -20
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1830 -1210
- data/generated/google/apis/ml_v1/representations.rb +342 -120
- data/generated/google/apis/ml_v1/service.rb +365 -258
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +889 -889
- data/generated/google/apis/monitoring_v3/representations.rb +174 -174
- data/generated/google/apis/monitoring_v3/service.rb +119 -119
- data/generated/google/apis/mybusiness_v3/service.rb +5 -5
- data/generated/google/apis/oauth2_v2/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
- data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +550 -536
- data/generated/google/apis/partners_v2/representations.rb +118 -116
- data/generated/google/apis/partners_v2/service.rb +439 -439
- data/generated/google/apis/people_v1.rb +4 -4
- data/generated/google/apis/people_v1/classes.rb +414 -413
- data/generated/google/apis/people_v1/representations.rb +85 -85
- data/generated/google/apis/people_v1/service.rb +111 -18
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +4 -4
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -8
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
- data/generated/google/apis/pubsub_v1/classes.rb +249 -249
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +415 -415
- data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
- data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
- data/generated/google/apis/qpx_express_v1/service.rb +8 -8
- data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
- data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
- data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
- data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
- data/generated/google/apis/script_v1.rb +17 -17
- data/generated/google/apis/script_v1/classes.rb +27 -27
- data/generated/google/apis/script_v1/representations.rb +5 -5
- data/generated/google/apis/script_v1/service.rb +4 -4
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +53 -53
- data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
- data/generated/google/apis/searchconsole_v1/service.rb +4 -4
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
- data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
- data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
- data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
- data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
- data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
- data/generated/google/apis/serviceuser_v1/service.rb +37 -37
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
- data/generated/google/apis/sheets_v4/representations.rb +994 -824
- data/generated/google/apis/sheets_v4/service.rb +80 -80
- data/generated/google/apis/site_verification_v1/classes.rb +6 -6
- data/generated/google/apis/site_verification_v1/representations.rb +8 -8
- data/generated/google/apis/site_verification_v1/service.rb +12 -12
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2885 -2885
- data/generated/google/apis/slides_v1/representations.rb +310 -310
- data/generated/google/apis/slides_v1/service.rb +54 -54
- data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
- data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
- data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
- data/generated/google/apis/spanner_v1/representations.rb +174 -174
- data/generated/google/apis/spanner_v1/service.rb +497 -497
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
- data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
- data/generated/google/apis/speech_v1beta1/service.rb +33 -33
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
- data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +40 -6
- data/generated/google/apis/storage_v1/representations.rb +20 -4
- data/generated/google/apis/storage_v1/service.rb +61 -46
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
- data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
- data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
- data/generated/google/apis/tagmanager_v1/service.rb +33 -33
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/translate_v2/classes.rb +12 -12
- data/generated/google/apis/translate_v2/representations.rb +10 -10
- data/generated/google/apis/translate_v2/service.rb +62 -62
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1267 -1267
- data/generated/google/apis/vision_v1/representations.rb +200 -200
- data/generated/google/apis/vision_v1/service.rb +10 -10
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/representations.rb +8 -8
- data/generated/google/apis/webmasters_v3/service.rb +21 -21
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
- data/generated/google/apis/youtube_v3/classes.rb +20 -20
- data/generated/google/apis/youtube_v3/representations.rb +40 -40
- data/generated/google/apis/youtube_v3/service.rb +80 -80
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
- data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
- data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/generator/model.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
|
@@ -48,6 +48,216 @@ module Google
|
|
|
48
48
|
@batch_path = 'batch'
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
+
# Lists the supported instance configurations for a given project.
|
|
52
|
+
# @param [String] parent
|
|
53
|
+
# Required. The name of the project for which a list of supported instance
|
|
54
|
+
# configurations is requested. Values are of the form
|
|
55
|
+
# `projects/<project>`.
|
|
56
|
+
# @param [String] page_token
|
|
57
|
+
# If non-empty, `page_token` should contain a
|
|
58
|
+
# next_page_token
|
|
59
|
+
# from a previous ListInstanceConfigsResponse.
|
|
60
|
+
# @param [Fixnum] page_size
|
|
61
|
+
# Number of instance configurations to be returned in the response. If 0 or
|
|
62
|
+
# less, defaults to the server's maximum allowed page size.
|
|
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 [String] fields
|
|
67
|
+
# Selector specifying which fields to include in a partial response.
|
|
68
|
+
# @param [Google::Apis::RequestOptions] options
|
|
69
|
+
# Request-specific options
|
|
70
|
+
#
|
|
71
|
+
# @yield [result, err] Result & error if block supplied
|
|
72
|
+
# @yieldparam result [Google::Apis::SpannerV1::ListInstanceConfigsResponse] parsed result object
|
|
73
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
74
|
+
#
|
|
75
|
+
# @return [Google::Apis::SpannerV1::ListInstanceConfigsResponse]
|
|
76
|
+
#
|
|
77
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
78
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
79
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
80
|
+
def list_project_instance_configs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
81
|
+
command = make_simple_command(:get, 'v1/{+parent}/instanceConfigs', options)
|
|
82
|
+
command.response_representation = Google::Apis::SpannerV1::ListInstanceConfigsResponse::Representation
|
|
83
|
+
command.response_class = Google::Apis::SpannerV1::ListInstanceConfigsResponse
|
|
84
|
+
command.params['parent'] = parent unless parent.nil?
|
|
85
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
86
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
87
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
88
|
+
command.query['fields'] = fields unless fields.nil?
|
|
89
|
+
execute_or_queue_command(command, &block)
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Gets information about a particular instance configuration.
|
|
93
|
+
# @param [String] name
|
|
94
|
+
# Required. The name of the requested instance configuration. Values are of
|
|
95
|
+
# the form `projects/<project>/instanceConfigs/<config>`.
|
|
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 [String] fields
|
|
100
|
+
# Selector specifying which fields to include in a partial response.
|
|
101
|
+
# @param [Google::Apis::RequestOptions] options
|
|
102
|
+
# Request-specific options
|
|
103
|
+
#
|
|
104
|
+
# @yield [result, err] Result & error if block supplied
|
|
105
|
+
# @yieldparam result [Google::Apis::SpannerV1::InstanceConfig] parsed result object
|
|
106
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
107
|
+
#
|
|
108
|
+
# @return [Google::Apis::SpannerV1::InstanceConfig]
|
|
109
|
+
#
|
|
110
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
111
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
112
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
113
|
+
def get_project_instance_config(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
114
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
115
|
+
command.response_representation = Google::Apis::SpannerV1::InstanceConfig::Representation
|
|
116
|
+
command.response_class = Google::Apis::SpannerV1::InstanceConfig
|
|
117
|
+
command.params['name'] = name unless name.nil?
|
|
118
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
119
|
+
command.query['fields'] = fields unless fields.nil?
|
|
120
|
+
execute_or_queue_command(command, &block)
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Gets information about a particular instance.
|
|
124
|
+
# @param [String] name
|
|
125
|
+
# Required. The name of the requested instance. Values are of the form
|
|
126
|
+
# `projects/<project>/instances/<instance>`.
|
|
127
|
+
# @param [String] quota_user
|
|
128
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
129
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
130
|
+
# @param [String] fields
|
|
131
|
+
# Selector specifying which fields to include in a partial response.
|
|
132
|
+
# @param [Google::Apis::RequestOptions] options
|
|
133
|
+
# Request-specific options
|
|
134
|
+
#
|
|
135
|
+
# @yield [result, err] Result & error if block supplied
|
|
136
|
+
# @yieldparam result [Google::Apis::SpannerV1::Instance] parsed result object
|
|
137
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
138
|
+
#
|
|
139
|
+
# @return [Google::Apis::SpannerV1::Instance]
|
|
140
|
+
#
|
|
141
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
142
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
143
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
144
|
+
def get_project_instance(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
145
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
146
|
+
command.response_representation = Google::Apis::SpannerV1::Instance::Representation
|
|
147
|
+
command.response_class = Google::Apis::SpannerV1::Instance
|
|
148
|
+
command.params['name'] = name unless name.nil?
|
|
149
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
150
|
+
command.query['fields'] = fields unless fields.nil?
|
|
151
|
+
execute_or_queue_command(command, &block)
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Updates an instance, and begins allocating or releasing resources
|
|
155
|
+
# as requested. The returned long-running
|
|
156
|
+
# operation can be used to track the
|
|
157
|
+
# progress of updating the instance. If the named instance does not
|
|
158
|
+
# exist, returns `NOT_FOUND`.
|
|
159
|
+
# Immediately upon completion of this request:
|
|
160
|
+
# * For resource types for which a decrease in the instance's allocation
|
|
161
|
+
# has been requested, billing is based on the newly-requested level.
|
|
162
|
+
# Until completion of the returned operation:
|
|
163
|
+
# * Cancelling the operation sets its metadata's
|
|
164
|
+
# cancel_time, and begins
|
|
165
|
+
# restoring resources to their pre-request values. The operation
|
|
166
|
+
# is guaranteed to succeed at undoing all resource changes,
|
|
167
|
+
# after which point it terminates with a `CANCELLED` status.
|
|
168
|
+
# * All other attempts to modify the instance are rejected.
|
|
169
|
+
# * Reading the instance via the API continues to give the pre-request
|
|
170
|
+
# resource levels.
|
|
171
|
+
# Upon completion of the returned operation:
|
|
172
|
+
# * Billing begins for all successfully-allocated resources (some types
|
|
173
|
+
# may have lower than the requested levels).
|
|
174
|
+
# * All newly-reserved resources are available for serving the instance's
|
|
175
|
+
# tables.
|
|
176
|
+
# * The instance's new resource levels are readable via the API.
|
|
177
|
+
# The returned long-running operation will
|
|
178
|
+
# have a name of the format `<instance_name>/operations/<operation_id>` and
|
|
179
|
+
# can be used to track the instance modification. The
|
|
180
|
+
# metadata field type is
|
|
181
|
+
# UpdateInstanceMetadata.
|
|
182
|
+
# The response field type is
|
|
183
|
+
# Instance, if successful.
|
|
184
|
+
# Authorization requires `spanner.instances.update` permission on
|
|
185
|
+
# resource name.
|
|
186
|
+
# @param [String] name
|
|
187
|
+
# Required. A unique identifier for the instance, which cannot be changed
|
|
188
|
+
# after the instance is created. Values are of the form
|
|
189
|
+
# `projects/<project>/instances/a-z*[a-z0-9]`. The final
|
|
190
|
+
# segment of the name must be between 6 and 30 characters in length.
|
|
191
|
+
# @param [Google::Apis::SpannerV1::UpdateInstanceRequest] update_instance_request_object
|
|
192
|
+
# @param [String] quota_user
|
|
193
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
194
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
195
|
+
# @param [String] fields
|
|
196
|
+
# Selector specifying which fields to include in a partial response.
|
|
197
|
+
# @param [Google::Apis::RequestOptions] options
|
|
198
|
+
# Request-specific options
|
|
199
|
+
#
|
|
200
|
+
# @yield [result, err] Result & error if block supplied
|
|
201
|
+
# @yieldparam result [Google::Apis::SpannerV1::Operation] parsed result object
|
|
202
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
203
|
+
#
|
|
204
|
+
# @return [Google::Apis::SpannerV1::Operation]
|
|
205
|
+
#
|
|
206
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
207
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
208
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
209
|
+
def patch_project_instance(name, update_instance_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
210
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
211
|
+
command.request_representation = Google::Apis::SpannerV1::UpdateInstanceRequest::Representation
|
|
212
|
+
command.request_object = update_instance_request_object
|
|
213
|
+
command.response_representation = Google::Apis::SpannerV1::Operation::Representation
|
|
214
|
+
command.response_class = Google::Apis::SpannerV1::Operation
|
|
215
|
+
command.params['name'] = name unless name.nil?
|
|
216
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
217
|
+
command.query['fields'] = fields unless fields.nil?
|
|
218
|
+
execute_or_queue_command(command, &block)
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Returns permissions that the caller has on the specified instance resource.
|
|
222
|
+
# Attempting this RPC on a non-existent Cloud Spanner instance resource will
|
|
223
|
+
# result in a NOT_FOUND error if the user has `spanner.instances.list`
|
|
224
|
+
# permission on the containing Google Cloud Project. Otherwise returns an
|
|
225
|
+
# empty set of permissions.
|
|
226
|
+
# @param [String] resource
|
|
227
|
+
# REQUIRED: The Cloud Spanner resource for which permissions are being tested.
|
|
228
|
+
# The format is `projects/<project ID>/instances/<instance ID>` for instance
|
|
229
|
+
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
|
230
|
+
# database ID>` for database resources.
|
|
231
|
+
# @param [Google::Apis::SpannerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
232
|
+
# @param [String] quota_user
|
|
233
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
234
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
235
|
+
# @param [String] fields
|
|
236
|
+
# Selector specifying which fields to include in a partial response.
|
|
237
|
+
# @param [Google::Apis::RequestOptions] options
|
|
238
|
+
# Request-specific options
|
|
239
|
+
#
|
|
240
|
+
# @yield [result, err] Result & error if block supplied
|
|
241
|
+
# @yieldparam result [Google::Apis::SpannerV1::TestIamPermissionsResponse] parsed result object
|
|
242
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
243
|
+
#
|
|
244
|
+
# @return [Google::Apis::SpannerV1::TestIamPermissionsResponse]
|
|
245
|
+
#
|
|
246
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
247
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
248
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
249
|
+
def test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
250
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
251
|
+
command.request_representation = Google::Apis::SpannerV1::TestIamPermissionsRequest::Representation
|
|
252
|
+
command.request_object = test_iam_permissions_request_object
|
|
253
|
+
command.response_representation = Google::Apis::SpannerV1::TestIamPermissionsResponse::Representation
|
|
254
|
+
command.response_class = Google::Apis::SpannerV1::TestIamPermissionsResponse
|
|
255
|
+
command.params['resource'] = resource unless resource.nil?
|
|
256
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
257
|
+
command.query['fields'] = fields unless fields.nil?
|
|
258
|
+
execute_or_queue_command(command, &block)
|
|
259
|
+
end
|
|
260
|
+
|
|
51
261
|
# Deletes an instance.
|
|
52
262
|
# Immediately upon completion of the request:
|
|
53
263
|
# * Billing ceases for all of the instance's reserved resources.
|
|
@@ -58,11 +268,11 @@ module Google
|
|
|
58
268
|
# @param [String] name
|
|
59
269
|
# Required. The name of the instance to be deleted. Values are of the form
|
|
60
270
|
# `projects/<project>/instances/<instance>`
|
|
61
|
-
# @param [String] fields
|
|
62
|
-
# Selector specifying which fields to include in a partial response.
|
|
63
271
|
# @param [String] quota_user
|
|
64
272
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
65
273
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
274
|
+
# @param [String] fields
|
|
275
|
+
# Selector specifying which fields to include in a partial response.
|
|
66
276
|
# @param [Google::Apis::RequestOptions] options
|
|
67
277
|
# Request-specific options
|
|
68
278
|
#
|
|
@@ -75,13 +285,13 @@ module Google
|
|
|
75
285
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
76
286
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
77
287
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
78
|
-
def delete_project_instance(name,
|
|
288
|
+
def delete_project_instance(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
79
289
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
80
290
|
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
|
81
291
|
command.response_class = Google::Apis::SpannerV1::Empty
|
|
82
292
|
command.params['name'] = name unless name.nil?
|
|
83
|
-
command.query['fields'] = fields unless fields.nil?
|
|
84
293
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
294
|
+
command.query['fields'] = fields unless fields.nil?
|
|
85
295
|
execute_or_queue_command(command, &block)
|
|
86
296
|
end
|
|
87
297
|
|
|
@@ -113,11 +323,11 @@ module Google
|
|
|
113
323
|
# * name:howl labels.env:dev --> The instance's name contains "howl" and
|
|
114
324
|
# it has the label "env" with its value
|
|
115
325
|
# containing "dev".
|
|
116
|
-
# @param [String] fields
|
|
117
|
-
# Selector specifying which fields to include in a partial response.
|
|
118
326
|
# @param [String] quota_user
|
|
119
327
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
120
328
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
329
|
+
# @param [String] fields
|
|
330
|
+
# Selector specifying which fields to include in a partial response.
|
|
121
331
|
# @param [Google::Apis::RequestOptions] options
|
|
122
332
|
# Request-specific options
|
|
123
333
|
#
|
|
@@ -130,7 +340,7 @@ module Google
|
|
|
130
340
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
131
341
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
132
342
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
133
|
-
def list_project_instances(parent, page_token: nil, page_size: nil, filter: nil,
|
|
343
|
+
def list_project_instances(parent, page_token: nil, page_size: nil, filter: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
134
344
|
command = make_simple_command(:get, 'v1/{+parent}/instances', options)
|
|
135
345
|
command.response_representation = Google::Apis::SpannerV1::ListInstancesResponse::Representation
|
|
136
346
|
command.response_class = Google::Apis::SpannerV1::ListInstancesResponse
|
|
@@ -138,8 +348,8 @@ module Google
|
|
|
138
348
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
139
349
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
140
350
|
command.query['filter'] = filter unless filter.nil?
|
|
141
|
-
command.query['fields'] = fields unless fields.nil?
|
|
142
351
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
352
|
+
command.query['fields'] = fields unless fields.nil?
|
|
143
353
|
execute_or_queue_command(command, &block)
|
|
144
354
|
end
|
|
145
355
|
|
|
@@ -174,11 +384,11 @@ module Google
|
|
|
174
384
|
# Required. The name of the project in which to create the instance. Values
|
|
175
385
|
# are of the form `projects/<project>`.
|
|
176
386
|
# @param [Google::Apis::SpannerV1::CreateInstanceRequest] create_instance_request_object
|
|
177
|
-
# @param [String] fields
|
|
178
|
-
# Selector specifying which fields to include in a partial response.
|
|
179
387
|
# @param [String] quota_user
|
|
180
388
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
181
389
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
390
|
+
# @param [String] fields
|
|
391
|
+
# Selector specifying which fields to include in a partial response.
|
|
182
392
|
# @param [Google::Apis::RequestOptions] options
|
|
183
393
|
# Request-specific options
|
|
184
394
|
#
|
|
@@ -191,15 +401,15 @@ module Google
|
|
|
191
401
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
192
402
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
193
403
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
194
|
-
def create_instance(parent, create_instance_request_object = nil,
|
|
404
|
+
def create_instance(parent, create_instance_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
195
405
|
command = make_simple_command(:post, 'v1/{+parent}/instances', options)
|
|
196
406
|
command.request_representation = Google::Apis::SpannerV1::CreateInstanceRequest::Representation
|
|
197
407
|
command.request_object = create_instance_request_object
|
|
198
408
|
command.response_representation = Google::Apis::SpannerV1::Operation::Representation
|
|
199
409
|
command.response_class = Google::Apis::SpannerV1::Operation
|
|
200
410
|
command.params['parent'] = parent unless parent.nil?
|
|
201
|
-
command.query['fields'] = fields unless fields.nil?
|
|
202
411
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
412
|
+
command.query['fields'] = fields unless fields.nil?
|
|
203
413
|
execute_or_queue_command(command, &block)
|
|
204
414
|
end
|
|
205
415
|
|
|
@@ -213,11 +423,11 @@ module Google
|
|
|
213
423
|
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
|
214
424
|
# database ID>` for databases resources.
|
|
215
425
|
# @param [Google::Apis::SpannerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
216
|
-
# @param [String] fields
|
|
217
|
-
# Selector specifying which fields to include in a partial response.
|
|
218
426
|
# @param [String] quota_user
|
|
219
427
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
220
428
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
429
|
+
# @param [String] fields
|
|
430
|
+
# Selector specifying which fields to include in a partial response.
|
|
221
431
|
# @param [Google::Apis::RequestOptions] options
|
|
222
432
|
# Request-specific options
|
|
223
433
|
#
|
|
@@ -230,15 +440,15 @@ module Google
|
|
|
230
440
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
231
441
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
232
442
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
233
|
-
def set_instance_iam_policy(resource, set_iam_policy_request_object = nil,
|
|
443
|
+
def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
234
444
|
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
235
445
|
command.request_representation = Google::Apis::SpannerV1::SetIamPolicyRequest::Representation
|
|
236
446
|
command.request_object = set_iam_policy_request_object
|
|
237
447
|
command.response_representation = Google::Apis::SpannerV1::Policy::Representation
|
|
238
448
|
command.response_class = Google::Apis::SpannerV1::Policy
|
|
239
449
|
command.params['resource'] = resource unless resource.nil?
|
|
240
|
-
command.query['fields'] = fields unless fields.nil?
|
|
241
450
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
451
|
+
command.query['fields'] = fields unless fields.nil?
|
|
242
452
|
execute_or_queue_command(command, &block)
|
|
243
453
|
end
|
|
244
454
|
|
|
@@ -252,11 +462,11 @@ module Google
|
|
|
252
462
|
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
|
253
463
|
# database ID>` for database resources.
|
|
254
464
|
# @param [Google::Apis::SpannerV1::GetIamPolicyRequest] get_iam_policy_request_object
|
|
255
|
-
# @param [String] fields
|
|
256
|
-
# Selector specifying which fields to include in a partial response.
|
|
257
465
|
# @param [String] quota_user
|
|
258
466
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
259
467
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
468
|
+
# @param [String] fields
|
|
469
|
+
# Selector specifying which fields to include in a partial response.
|
|
260
470
|
# @param [Google::Apis::RequestOptions] options
|
|
261
471
|
# Request-specific options
|
|
262
472
|
#
|
|
@@ -269,153 +479,15 @@ module Google
|
|
|
269
479
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
270
480
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
271
481
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
272
|
-
def get_instance_iam_policy(resource, get_iam_policy_request_object = nil,
|
|
482
|
+
def get_instance_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
273
483
|
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
|
274
484
|
command.request_representation = Google::Apis::SpannerV1::GetIamPolicyRequest::Representation
|
|
275
485
|
command.request_object = get_iam_policy_request_object
|
|
276
486
|
command.response_representation = Google::Apis::SpannerV1::Policy::Representation
|
|
277
487
|
command.response_class = Google::Apis::SpannerV1::Policy
|
|
278
488
|
command.params['resource'] = resource unless resource.nil?
|
|
279
|
-
command.query['fields'] = fields unless fields.nil?
|
|
280
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
281
|
-
execute_or_queue_command(command, &block)
|
|
282
|
-
end
|
|
283
|
-
|
|
284
|
-
# Updates an instance, and begins allocating or releasing resources
|
|
285
|
-
# as requested. The returned long-running
|
|
286
|
-
# operation can be used to track the
|
|
287
|
-
# progress of updating the instance. If the named instance does not
|
|
288
|
-
# exist, returns `NOT_FOUND`.
|
|
289
|
-
# Immediately upon completion of this request:
|
|
290
|
-
# * For resource types for which a decrease in the instance's allocation
|
|
291
|
-
# has been requested, billing is based on the newly-requested level.
|
|
292
|
-
# Until completion of the returned operation:
|
|
293
|
-
# * Cancelling the operation sets its metadata's
|
|
294
|
-
# cancel_time, and begins
|
|
295
|
-
# restoring resources to their pre-request values. The operation
|
|
296
|
-
# is guaranteed to succeed at undoing all resource changes,
|
|
297
|
-
# after which point it terminates with a `CANCELLED` status.
|
|
298
|
-
# * All other attempts to modify the instance are rejected.
|
|
299
|
-
# * Reading the instance via the API continues to give the pre-request
|
|
300
|
-
# resource levels.
|
|
301
|
-
# Upon completion of the returned operation:
|
|
302
|
-
# * Billing begins for all successfully-allocated resources (some types
|
|
303
|
-
# may have lower than the requested levels).
|
|
304
|
-
# * All newly-reserved resources are available for serving the instance's
|
|
305
|
-
# tables.
|
|
306
|
-
# * The instance's new resource levels are readable via the API.
|
|
307
|
-
# The returned long-running operation will
|
|
308
|
-
# have a name of the format `<instance_name>/operations/<operation_id>` and
|
|
309
|
-
# can be used to track the instance modification. The
|
|
310
|
-
# metadata field type is
|
|
311
|
-
# UpdateInstanceMetadata.
|
|
312
|
-
# The response field type is
|
|
313
|
-
# Instance, if successful.
|
|
314
|
-
# Authorization requires `spanner.instances.update` permission on
|
|
315
|
-
# resource name.
|
|
316
|
-
# @param [String] name
|
|
317
|
-
# Required. A unique identifier for the instance, which cannot be changed
|
|
318
|
-
# after the instance is created. Values are of the form
|
|
319
|
-
# `projects/<project>/instances/a-z*[a-z0-9]`. The final
|
|
320
|
-
# segment of the name must be between 6 and 30 characters in length.
|
|
321
|
-
# @param [Google::Apis::SpannerV1::UpdateInstanceRequest] update_instance_request_object
|
|
322
|
-
# @param [String] fields
|
|
323
|
-
# Selector specifying which fields to include in a partial response.
|
|
324
|
-
# @param [String] quota_user
|
|
325
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
326
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
327
|
-
# @param [Google::Apis::RequestOptions] options
|
|
328
|
-
# Request-specific options
|
|
329
|
-
#
|
|
330
|
-
# @yield [result, err] Result & error if block supplied
|
|
331
|
-
# @yieldparam result [Google::Apis::SpannerV1::Operation] parsed result object
|
|
332
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
333
|
-
#
|
|
334
|
-
# @return [Google::Apis::SpannerV1::Operation]
|
|
335
|
-
#
|
|
336
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
337
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
338
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
339
|
-
def patch_project_instance(name, update_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
340
|
-
command = make_simple_command(:patch, 'v1/{+name}', options)
|
|
341
|
-
command.request_representation = Google::Apis::SpannerV1::UpdateInstanceRequest::Representation
|
|
342
|
-
command.request_object = update_instance_request_object
|
|
343
|
-
command.response_representation = Google::Apis::SpannerV1::Operation::Representation
|
|
344
|
-
command.response_class = Google::Apis::SpannerV1::Operation
|
|
345
|
-
command.params['name'] = name unless name.nil?
|
|
346
|
-
command.query['fields'] = fields unless fields.nil?
|
|
347
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
348
|
-
execute_or_queue_command(command, &block)
|
|
349
|
-
end
|
|
350
|
-
|
|
351
|
-
# Gets information about a particular instance.
|
|
352
|
-
# @param [String] name
|
|
353
|
-
# Required. The name of the requested instance. Values are of the form
|
|
354
|
-
# `projects/<project>/instances/<instance>`.
|
|
355
|
-
# @param [String] fields
|
|
356
|
-
# Selector specifying which fields to include in a partial response.
|
|
357
|
-
# @param [String] quota_user
|
|
358
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
359
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
360
|
-
# @param [Google::Apis::RequestOptions] options
|
|
361
|
-
# Request-specific options
|
|
362
|
-
#
|
|
363
|
-
# @yield [result, err] Result & error if block supplied
|
|
364
|
-
# @yieldparam result [Google::Apis::SpannerV1::Instance] parsed result object
|
|
365
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
366
|
-
#
|
|
367
|
-
# @return [Google::Apis::SpannerV1::Instance]
|
|
368
|
-
#
|
|
369
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
370
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
371
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
372
|
-
def get_project_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
373
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
374
|
-
command.response_representation = Google::Apis::SpannerV1::Instance::Representation
|
|
375
|
-
command.response_class = Google::Apis::SpannerV1::Instance
|
|
376
|
-
command.params['name'] = name unless name.nil?
|
|
377
|
-
command.query['fields'] = fields unless fields.nil?
|
|
378
489
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
379
|
-
execute_or_queue_command(command, &block)
|
|
380
|
-
end
|
|
381
|
-
|
|
382
|
-
# Returns permissions that the caller has on the specified instance resource.
|
|
383
|
-
# Attempting this RPC on a non-existent Cloud Spanner instance resource will
|
|
384
|
-
# result in a NOT_FOUND error if the user has `spanner.instances.list`
|
|
385
|
-
# permission on the containing Google Cloud Project. Otherwise returns an
|
|
386
|
-
# empty set of permissions.
|
|
387
|
-
# @param [String] resource
|
|
388
|
-
# REQUIRED: The Cloud Spanner resource for which permissions are being tested.
|
|
389
|
-
# The format is `projects/<project ID>/instances/<instance ID>` for instance
|
|
390
|
-
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
|
391
|
-
# database ID>` for database resources.
|
|
392
|
-
# @param [Google::Apis::SpannerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
393
|
-
# @param [String] fields
|
|
394
|
-
# Selector specifying which fields to include in a partial response.
|
|
395
|
-
# @param [String] quota_user
|
|
396
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
397
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
398
|
-
# @param [Google::Apis::RequestOptions] options
|
|
399
|
-
# Request-specific options
|
|
400
|
-
#
|
|
401
|
-
# @yield [result, err] Result & error if block supplied
|
|
402
|
-
# @yieldparam result [Google::Apis::SpannerV1::TestIamPermissionsResponse] parsed result object
|
|
403
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
404
|
-
#
|
|
405
|
-
# @return [Google::Apis::SpannerV1::TestIamPermissionsResponse]
|
|
406
|
-
#
|
|
407
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
408
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
409
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
410
|
-
def test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
411
|
-
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
412
|
-
command.request_representation = Google::Apis::SpannerV1::TestIamPermissionsRequest::Representation
|
|
413
|
-
command.request_object = test_iam_permissions_request_object
|
|
414
|
-
command.response_representation = Google::Apis::SpannerV1::TestIamPermissionsResponse::Representation
|
|
415
|
-
command.response_class = Google::Apis::SpannerV1::TestIamPermissionsResponse
|
|
416
|
-
command.params['resource'] = resource unless resource.nil?
|
|
417
490
|
command.query['fields'] = fields unless fields.nil?
|
|
418
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
419
491
|
execute_or_queue_command(command, &block)
|
|
420
492
|
end
|
|
421
493
|
|
|
@@ -429,11 +501,11 @@ module Google
|
|
|
429
501
|
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
|
430
502
|
# database ID>` for database resources.
|
|
431
503
|
# @param [Google::Apis::SpannerV1::GetIamPolicyRequest] get_iam_policy_request_object
|
|
432
|
-
# @param [String] fields
|
|
433
|
-
# Selector specifying which fields to include in a partial response.
|
|
434
504
|
# @param [String] quota_user
|
|
435
505
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
436
506
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
507
|
+
# @param [String] fields
|
|
508
|
+
# Selector specifying which fields to include in a partial response.
|
|
437
509
|
# @param [Google::Apis::RequestOptions] options
|
|
438
510
|
# Request-specific options
|
|
439
511
|
#
|
|
@@ -446,15 +518,15 @@ module Google
|
|
|
446
518
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
447
519
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
448
520
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
449
|
-
def get_database_iam_policy(resource, get_iam_policy_request_object = nil,
|
|
521
|
+
def get_database_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
450
522
|
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
|
451
523
|
command.request_representation = Google::Apis::SpannerV1::GetIamPolicyRequest::Representation
|
|
452
524
|
command.request_object = get_iam_policy_request_object
|
|
453
525
|
command.response_representation = Google::Apis::SpannerV1::Policy::Representation
|
|
454
526
|
command.response_class = Google::Apis::SpannerV1::Policy
|
|
455
527
|
command.params['resource'] = resource unless resource.nil?
|
|
456
|
-
command.query['fields'] = fields unless fields.nil?
|
|
457
528
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
529
|
+
command.query['fields'] = fields unless fields.nil?
|
|
458
530
|
execute_or_queue_command(command, &block)
|
|
459
531
|
end
|
|
460
532
|
|
|
@@ -462,11 +534,11 @@ module Google
|
|
|
462
534
|
# @param [String] name
|
|
463
535
|
# Required. The name of the requested database. Values are of the form
|
|
464
536
|
# `projects/<project>/instances/<instance>/databases/<database>`.
|
|
465
|
-
# @param [String] fields
|
|
466
|
-
# Selector specifying which fields to include in a partial response.
|
|
467
537
|
# @param [String] quota_user
|
|
468
538
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
469
539
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
540
|
+
# @param [String] fields
|
|
541
|
+
# Selector specifying which fields to include in a partial response.
|
|
470
542
|
# @param [Google::Apis::RequestOptions] options
|
|
471
543
|
# Request-specific options
|
|
472
544
|
#
|
|
@@ -479,24 +551,24 @@ module Google
|
|
|
479
551
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
480
552
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
481
553
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
482
|
-
def get_project_instance_database(name,
|
|
554
|
+
def get_project_instance_database(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
483
555
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
484
556
|
command.response_representation = Google::Apis::SpannerV1::Database::Representation
|
|
485
557
|
command.response_class = Google::Apis::SpannerV1::Database
|
|
486
558
|
command.params['name'] = name unless name.nil?
|
|
487
|
-
command.query['fields'] = fields unless fields.nil?
|
|
488
559
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
560
|
+
command.query['fields'] = fields unless fields.nil?
|
|
489
561
|
execute_or_queue_command(command, &block)
|
|
490
562
|
end
|
|
491
563
|
|
|
492
564
|
# Drops (aka deletes) a Cloud Spanner database.
|
|
493
565
|
# @param [String] database
|
|
494
566
|
# Required. The database to be dropped.
|
|
495
|
-
# @param [String] fields
|
|
496
|
-
# Selector specifying which fields to include in a partial response.
|
|
497
567
|
# @param [String] quota_user
|
|
498
568
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
499
569
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
570
|
+
# @param [String] fields
|
|
571
|
+
# Selector specifying which fields to include in a partial response.
|
|
500
572
|
# @param [Google::Apis::RequestOptions] options
|
|
501
573
|
# Request-specific options
|
|
502
574
|
#
|
|
@@ -509,13 +581,13 @@ module Google
|
|
|
509
581
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
510
582
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
511
583
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
512
|
-
def drop_project_instance_database_database(database,
|
|
584
|
+
def drop_project_instance_database_database(database, quota_user: nil, fields: nil, options: nil, &block)
|
|
513
585
|
command = make_simple_command(:delete, 'v1/{+database}', options)
|
|
514
586
|
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
|
515
587
|
command.response_class = Google::Apis::SpannerV1::Empty
|
|
516
588
|
command.params['database'] = database unless database.nil?
|
|
517
|
-
command.query['fields'] = fields unless fields.nil?
|
|
518
589
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
590
|
+
command.query['fields'] = fields unless fields.nil?
|
|
519
591
|
execute_or_queue_command(command, &block)
|
|
520
592
|
end
|
|
521
593
|
|
|
@@ -529,11 +601,11 @@ module Google
|
|
|
529
601
|
# @param [String] database
|
|
530
602
|
# Required. The database to update.
|
|
531
603
|
# @param [Google::Apis::SpannerV1::UpdateDatabaseDdlRequest] update_database_ddl_request_object
|
|
532
|
-
# @param [String] fields
|
|
533
|
-
# Selector specifying which fields to include in a partial response.
|
|
534
604
|
# @param [String] quota_user
|
|
535
605
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
536
606
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
607
|
+
# @param [String] fields
|
|
608
|
+
# Selector specifying which fields to include in a partial response.
|
|
537
609
|
# @param [Google::Apis::RequestOptions] options
|
|
538
610
|
# Request-specific options
|
|
539
611
|
#
|
|
@@ -546,15 +618,15 @@ module Google
|
|
|
546
618
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
547
619
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
548
620
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
549
|
-
def update_project_instance_database_ddl(database, update_database_ddl_request_object = nil,
|
|
621
|
+
def update_project_instance_database_ddl(database, update_database_ddl_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
550
622
|
command = make_simple_command(:patch, 'v1/{+database}/ddl', options)
|
|
551
623
|
command.request_representation = Google::Apis::SpannerV1::UpdateDatabaseDdlRequest::Representation
|
|
552
624
|
command.request_object = update_database_ddl_request_object
|
|
553
625
|
command.response_representation = Google::Apis::SpannerV1::Operation::Representation
|
|
554
626
|
command.response_class = Google::Apis::SpannerV1::Operation
|
|
555
627
|
command.params['database'] = database unless database.nil?
|
|
556
|
-
command.query['fields'] = fields unless fields.nil?
|
|
557
628
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
629
|
+
command.query['fields'] = fields unless fields.nil?
|
|
558
630
|
execute_or_queue_command(command, &block)
|
|
559
631
|
end
|
|
560
632
|
|
|
@@ -569,11 +641,11 @@ module Google
|
|
|
569
641
|
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
|
570
642
|
# database ID>` for database resources.
|
|
571
643
|
# @param [Google::Apis::SpannerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
572
|
-
# @param [String] fields
|
|
573
|
-
# Selector specifying which fields to include in a partial response.
|
|
574
644
|
# @param [String] quota_user
|
|
575
645
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
576
646
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
647
|
+
# @param [String] fields
|
|
648
|
+
# Selector specifying which fields to include in a partial response.
|
|
577
649
|
# @param [Google::Apis::RequestOptions] options
|
|
578
650
|
# Request-specific options
|
|
579
651
|
#
|
|
@@ -586,15 +658,15 @@ module Google
|
|
|
586
658
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
587
659
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
588
660
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
589
|
-
def test_database_iam_permissions(resource, test_iam_permissions_request_object = nil,
|
|
661
|
+
def test_database_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
590
662
|
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
591
663
|
command.request_representation = Google::Apis::SpannerV1::TestIamPermissionsRequest::Representation
|
|
592
664
|
command.request_object = test_iam_permissions_request_object
|
|
593
665
|
command.response_representation = Google::Apis::SpannerV1::TestIamPermissionsResponse::Representation
|
|
594
666
|
command.response_class = Google::Apis::SpannerV1::TestIamPermissionsResponse
|
|
595
667
|
command.params['resource'] = resource unless resource.nil?
|
|
596
|
-
command.query['fields'] = fields unless fields.nil?
|
|
597
668
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
669
|
+
command.query['fields'] = fields unless fields.nil?
|
|
598
670
|
execute_or_queue_command(command, &block)
|
|
599
671
|
end
|
|
600
672
|
|
|
@@ -603,11 +675,11 @@ module Google
|
|
|
603
675
|
# be queried using the Operations API.
|
|
604
676
|
# @param [String] database
|
|
605
677
|
# Required. The database whose schema we wish to get.
|
|
606
|
-
# @param [String] fields
|
|
607
|
-
# Selector specifying which fields to include in a partial response.
|
|
608
678
|
# @param [String] quota_user
|
|
609
679
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
610
680
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
681
|
+
# @param [String] fields
|
|
682
|
+
# Selector specifying which fields to include in a partial response.
|
|
611
683
|
# @param [Google::Apis::RequestOptions] options
|
|
612
684
|
# Request-specific options
|
|
613
685
|
#
|
|
@@ -620,13 +692,13 @@ module Google
|
|
|
620
692
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
621
693
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
622
694
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
623
|
-
def get_project_instance_database_ddl(database,
|
|
695
|
+
def get_project_instance_database_ddl(database, quota_user: nil, fields: nil, options: nil, &block)
|
|
624
696
|
command = make_simple_command(:get, 'v1/{+database}/ddl', options)
|
|
625
697
|
command.response_representation = Google::Apis::SpannerV1::GetDatabaseDdlResponse::Representation
|
|
626
698
|
command.response_class = Google::Apis::SpannerV1::GetDatabaseDdlResponse
|
|
627
699
|
command.params['database'] = database unless database.nil?
|
|
628
|
-
command.query['fields'] = fields unless fields.nil?
|
|
629
700
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
701
|
+
command.query['fields'] = fields unless fields.nil?
|
|
630
702
|
execute_or_queue_command(command, &block)
|
|
631
703
|
end
|
|
632
704
|
|
|
@@ -641,11 +713,11 @@ module Google
|
|
|
641
713
|
# @param [Fixnum] page_size
|
|
642
714
|
# Number of databases to be returned in the response. If 0 or less,
|
|
643
715
|
# defaults to the server's maximum allowed page size.
|
|
644
|
-
# @param [String] fields
|
|
645
|
-
# Selector specifying which fields to include in a partial response.
|
|
646
716
|
# @param [String] quota_user
|
|
647
717
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
648
718
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
719
|
+
# @param [String] fields
|
|
720
|
+
# Selector specifying which fields to include in a partial response.
|
|
649
721
|
# @param [Google::Apis::RequestOptions] options
|
|
650
722
|
# Request-specific options
|
|
651
723
|
#
|
|
@@ -658,54 +730,15 @@ module Google
|
|
|
658
730
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
659
731
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
660
732
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
661
|
-
def list_project_instance_databases(parent, page_token: nil, page_size: nil,
|
|
733
|
+
def list_project_instance_databases(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
662
734
|
command = make_simple_command(:get, 'v1/{+parent}/databases', options)
|
|
663
735
|
command.response_representation = Google::Apis::SpannerV1::ListDatabasesResponse::Representation
|
|
664
736
|
command.response_class = Google::Apis::SpannerV1::ListDatabasesResponse
|
|
665
737
|
command.params['parent'] = parent unless parent.nil?
|
|
666
738
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
667
739
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
668
|
-
command.query['fields'] = fields unless fields.nil?
|
|
669
740
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
670
|
-
execute_or_queue_command(command, &block)
|
|
671
|
-
end
|
|
672
|
-
|
|
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
|
-
# @param [String] fields
|
|
684
|
-
# Selector specifying which fields to include in a partial response.
|
|
685
|
-
# @param [String] quota_user
|
|
686
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
687
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
688
|
-
# @param [Google::Apis::RequestOptions] options
|
|
689
|
-
# Request-specific options
|
|
690
|
-
#
|
|
691
|
-
# @yield [result, err] Result & error if block supplied
|
|
692
|
-
# @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
|
|
693
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
694
|
-
#
|
|
695
|
-
# @return [Google::Apis::SpannerV1::Policy]
|
|
696
|
-
#
|
|
697
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
698
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
699
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
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
741
|
command.query['fields'] = fields unless fields.nil?
|
|
708
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
709
742
|
execute_or_queue_command(command, &block)
|
|
710
743
|
end
|
|
711
744
|
|
|
@@ -721,11 +754,11 @@ module Google
|
|
|
721
754
|
# Required. The name of the instance that will serve the new database.
|
|
722
755
|
# Values are of the form `projects/<project>/instances/<instance>`.
|
|
723
756
|
# @param [Google::Apis::SpannerV1::CreateDatabaseRequest] create_database_request_object
|
|
724
|
-
# @param [String] fields
|
|
725
|
-
# Selector specifying which fields to include in a partial response.
|
|
726
757
|
# @param [String] quota_user
|
|
727
758
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
728
759
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
760
|
+
# @param [String] fields
|
|
761
|
+
# Selector specifying which fields to include in a partial response.
|
|
729
762
|
# @param [Google::Apis::RequestOptions] options
|
|
730
763
|
# Request-specific options
|
|
731
764
|
#
|
|
@@ -738,15 +771,54 @@ module Google
|
|
|
738
771
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
739
772
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
740
773
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
741
|
-
def create_database(parent, create_database_request_object = nil,
|
|
774
|
+
def create_database(parent, create_database_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
742
775
|
command = make_simple_command(:post, 'v1/{+parent}/databases', options)
|
|
743
776
|
command.request_representation = Google::Apis::SpannerV1::CreateDatabaseRequest::Representation
|
|
744
777
|
command.request_object = create_database_request_object
|
|
745
778
|
command.response_representation = Google::Apis::SpannerV1::Operation::Representation
|
|
746
779
|
command.response_class = Google::Apis::SpannerV1::Operation
|
|
747
780
|
command.params['parent'] = parent unless parent.nil?
|
|
781
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
748
782
|
command.query['fields'] = fields unless fields.nil?
|
|
783
|
+
execute_or_queue_command(command, &block)
|
|
784
|
+
end
|
|
785
|
+
|
|
786
|
+
# Sets the access control policy on a database resource. Replaces any
|
|
787
|
+
# existing policy.
|
|
788
|
+
# Authorization requires `spanner.databases.setIamPolicy` permission on
|
|
789
|
+
# resource.
|
|
790
|
+
# @param [String] resource
|
|
791
|
+
# REQUIRED: The Cloud Spanner resource for which the policy is being set. The
|
|
792
|
+
# format is `projects/<project ID>/instances/<instance ID>` for instance
|
|
793
|
+
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
|
794
|
+
# database ID>` for databases resources.
|
|
795
|
+
# @param [Google::Apis::SpannerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
796
|
+
# @param [String] quota_user
|
|
797
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
798
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
799
|
+
# @param [String] fields
|
|
800
|
+
# Selector specifying which fields to include in a partial response.
|
|
801
|
+
# @param [Google::Apis::RequestOptions] options
|
|
802
|
+
# Request-specific options
|
|
803
|
+
#
|
|
804
|
+
# @yield [result, err] Result & error if block supplied
|
|
805
|
+
# @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
|
|
806
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
807
|
+
#
|
|
808
|
+
# @return [Google::Apis::SpannerV1::Policy]
|
|
809
|
+
#
|
|
810
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
811
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
812
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
813
|
+
def set_database_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
814
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
815
|
+
command.request_representation = Google::Apis::SpannerV1::SetIamPolicyRequest::Representation
|
|
816
|
+
command.request_object = set_iam_policy_request_object
|
|
817
|
+
command.response_representation = Google::Apis::SpannerV1::Policy::Representation
|
|
818
|
+
command.response_class = Google::Apis::SpannerV1::Policy
|
|
819
|
+
command.params['resource'] = resource unless resource.nil?
|
|
749
820
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
821
|
+
command.query['fields'] = fields unless fields.nil?
|
|
750
822
|
execute_or_queue_command(command, &block)
|
|
751
823
|
end
|
|
752
824
|
|
|
@@ -762,11 +834,11 @@ module Google
|
|
|
762
834
|
# corresponding to `Code.CANCELLED`.
|
|
763
835
|
# @param [String] name
|
|
764
836
|
# The name of the operation resource to be cancelled.
|
|
765
|
-
# @param [String] fields
|
|
766
|
-
# Selector specifying which fields to include in a partial response.
|
|
767
837
|
# @param [String] quota_user
|
|
768
838
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
769
839
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
840
|
+
# @param [String] fields
|
|
841
|
+
# Selector specifying which fields to include in a partial response.
|
|
770
842
|
# @param [Google::Apis::RequestOptions] options
|
|
771
843
|
# Request-specific options
|
|
772
844
|
#
|
|
@@ -779,13 +851,13 @@ module Google
|
|
|
779
851
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
780
852
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
781
853
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
782
|
-
def cancel_project_instance_database_operation(name,
|
|
854
|
+
def cancel_project_instance_database_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
783
855
|
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
784
856
|
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
|
785
857
|
command.response_class = Google::Apis::SpannerV1::Empty
|
|
786
858
|
command.params['name'] = name unless name.nil?
|
|
787
|
-
command.query['fields'] = fields unless fields.nil?
|
|
788
859
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
860
|
+
command.query['fields'] = fields unless fields.nil?
|
|
789
861
|
execute_or_queue_command(command, &block)
|
|
790
862
|
end
|
|
791
863
|
|
|
@@ -795,11 +867,11 @@ module Google
|
|
|
795
867
|
# `google.rpc.Code.UNIMPLEMENTED`.
|
|
796
868
|
# @param [String] name
|
|
797
869
|
# The name of the operation resource to be deleted.
|
|
798
|
-
# @param [String] fields
|
|
799
|
-
# Selector specifying which fields to include in a partial response.
|
|
800
870
|
# @param [String] quota_user
|
|
801
871
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
802
872
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
873
|
+
# @param [String] fields
|
|
874
|
+
# Selector specifying which fields to include in a partial response.
|
|
803
875
|
# @param [Google::Apis::RequestOptions] options
|
|
804
876
|
# Request-specific options
|
|
805
877
|
#
|
|
@@ -812,13 +884,13 @@ module Google
|
|
|
812
884
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
813
885
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
814
886
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
815
|
-
def delete_project_instance_database_operation(name,
|
|
887
|
+
def delete_project_instance_database_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
816
888
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
817
889
|
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
|
818
890
|
command.response_class = Google::Apis::SpannerV1::Empty
|
|
819
891
|
command.params['name'] = name unless name.nil?
|
|
820
|
-
command.query['fields'] = fields unless fields.nil?
|
|
821
892
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
893
|
+
command.query['fields'] = fields unless fields.nil?
|
|
822
894
|
execute_or_queue_command(command, &block)
|
|
823
895
|
end
|
|
824
896
|
|
|
@@ -828,17 +900,17 @@ module Google
|
|
|
828
900
|
# to use different resource name schemes, such as `users/*/operations`.
|
|
829
901
|
# @param [String] name
|
|
830
902
|
# The name of the operation collection.
|
|
903
|
+
# @param [String] filter
|
|
904
|
+
# The standard list filter.
|
|
831
905
|
# @param [String] page_token
|
|
832
906
|
# The standard list page token.
|
|
833
907
|
# @param [Fixnum] page_size
|
|
834
908
|
# The standard list page size.
|
|
835
|
-
# @param [String] filter
|
|
836
|
-
# The standard list filter.
|
|
837
|
-
# @param [String] fields
|
|
838
|
-
# Selector specifying which fields to include in a partial response.
|
|
839
909
|
# @param [String] quota_user
|
|
840
910
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
841
911
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
912
|
+
# @param [String] fields
|
|
913
|
+
# Selector specifying which fields to include in a partial response.
|
|
842
914
|
# @param [Google::Apis::RequestOptions] options
|
|
843
915
|
# Request-specific options
|
|
844
916
|
#
|
|
@@ -851,16 +923,16 @@ module Google
|
|
|
851
923
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
852
924
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
853
925
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
854
|
-
def list_project_instance_database_operations(name,
|
|
926
|
+
def list_project_instance_database_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
855
927
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
856
928
|
command.response_representation = Google::Apis::SpannerV1::ListOperationsResponse::Representation
|
|
857
929
|
command.response_class = Google::Apis::SpannerV1::ListOperationsResponse
|
|
858
930
|
command.params['name'] = name unless name.nil?
|
|
931
|
+
command.query['filter'] = filter unless filter.nil?
|
|
859
932
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
860
933
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
861
|
-
command.query['filter'] = filter unless filter.nil?
|
|
862
|
-
command.query['fields'] = fields unless fields.nil?
|
|
863
934
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
935
|
+
command.query['fields'] = fields unless fields.nil?
|
|
864
936
|
execute_or_queue_command(command, &block)
|
|
865
937
|
end
|
|
866
938
|
|
|
@@ -869,11 +941,11 @@ module Google
|
|
|
869
941
|
# service.
|
|
870
942
|
# @param [String] name
|
|
871
943
|
# The name of the operation resource.
|
|
872
|
-
# @param [String] fields
|
|
873
|
-
# Selector specifying which fields to include in a partial response.
|
|
874
944
|
# @param [String] quota_user
|
|
875
945
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
876
946
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
947
|
+
# @param [String] fields
|
|
948
|
+
# Selector specifying which fields to include in a partial response.
|
|
877
949
|
# @param [Google::Apis::RequestOptions] options
|
|
878
950
|
# Request-specific options
|
|
879
951
|
#
|
|
@@ -886,61 +958,56 @@ module Google
|
|
|
886
958
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
887
959
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
888
960
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
889
|
-
def get_project_instance_database_operation(name,
|
|
961
|
+
def get_project_instance_database_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
890
962
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
891
963
|
command.response_representation = Google::Apis::SpannerV1::Operation::Representation
|
|
892
964
|
command.response_class = Google::Apis::SpannerV1::Operation
|
|
893
965
|
command.params['name'] = name unless name.nil?
|
|
894
|
-
command.query['fields'] = fields unless fields.nil?
|
|
895
966
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
967
|
+
command.query['fields'] = fields unless fields.nil?
|
|
896
968
|
execute_or_queue_command(command, &block)
|
|
897
969
|
end
|
|
898
970
|
|
|
899
|
-
#
|
|
900
|
-
#
|
|
901
|
-
#
|
|
902
|
-
#
|
|
903
|
-
#
|
|
904
|
-
# @param [String] session
|
|
905
|
-
# Required. The session in which the SQL query should be performed.
|
|
906
|
-
# @param [Google::Apis::SpannerV1::ExecuteSqlRequest] execute_sql_request_object
|
|
907
|
-
# @param [String] fields
|
|
908
|
-
# Selector specifying which fields to include in a partial response.
|
|
971
|
+
# Gets a session. Returns `NOT_FOUND` if the session does not exist.
|
|
972
|
+
# This is mainly useful for determining whether a session is still
|
|
973
|
+
# alive.
|
|
974
|
+
# @param [String] name
|
|
975
|
+
# Required. The name of the session to retrieve.
|
|
909
976
|
# @param [String] quota_user
|
|
910
977
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
911
978
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
979
|
+
# @param [String] fields
|
|
980
|
+
# Selector specifying which fields to include in a partial response.
|
|
912
981
|
# @param [Google::Apis::RequestOptions] options
|
|
913
982
|
# Request-specific options
|
|
914
983
|
#
|
|
915
984
|
# @yield [result, err] Result & error if block supplied
|
|
916
|
-
# @yieldparam result [Google::Apis::SpannerV1::
|
|
985
|
+
# @yieldparam result [Google::Apis::SpannerV1::Session] parsed result object
|
|
917
986
|
# @yieldparam err [StandardError] error object if request failed
|
|
918
987
|
#
|
|
919
|
-
# @return [Google::Apis::SpannerV1::
|
|
988
|
+
# @return [Google::Apis::SpannerV1::Session]
|
|
920
989
|
#
|
|
921
990
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
922
991
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
923
992
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
924
|
-
def
|
|
925
|
-
command = make_simple_command(:
|
|
926
|
-
command.
|
|
927
|
-
command.
|
|
928
|
-
command.
|
|
929
|
-
command.response_class = Google::Apis::SpannerV1::PartialResultSet
|
|
930
|
-
command.params['session'] = session unless session.nil?
|
|
931
|
-
command.query['fields'] = fields unless fields.nil?
|
|
993
|
+
def get_project_instance_database_session(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
994
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
995
|
+
command.response_representation = Google::Apis::SpannerV1::Session::Representation
|
|
996
|
+
command.response_class = Google::Apis::SpannerV1::Session
|
|
997
|
+
command.params['name'] = name unless name.nil?
|
|
932
998
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
999
|
+
command.query['fields'] = fields unless fields.nil?
|
|
933
1000
|
execute_or_queue_command(command, &block)
|
|
934
1001
|
end
|
|
935
1002
|
|
|
936
1003
|
# Ends a session, releasing server resources associated with it.
|
|
937
1004
|
# @param [String] name
|
|
938
1005
|
# Required. The name of the session to delete.
|
|
939
|
-
# @param [String] fields
|
|
940
|
-
# Selector specifying which fields to include in a partial response.
|
|
941
1006
|
# @param [String] quota_user
|
|
942
1007
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
943
1008
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1009
|
+
# @param [String] fields
|
|
1010
|
+
# Selector specifying which fields to include in a partial response.
|
|
944
1011
|
# @param [Google::Apis::RequestOptions] options
|
|
945
1012
|
# Request-specific options
|
|
946
1013
|
#
|
|
@@ -953,49 +1020,50 @@ module Google
|
|
|
953
1020
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
954
1021
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
955
1022
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
956
|
-
def delete_project_instance_database_session(name,
|
|
1023
|
+
def delete_project_instance_database_session(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
957
1024
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
958
1025
|
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
|
959
1026
|
command.response_class = Google::Apis::SpannerV1::Empty
|
|
960
1027
|
command.params['name'] = name unless name.nil?
|
|
961
|
-
command.query['fields'] = fields unless fields.nil?
|
|
962
1028
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1029
|
+
command.query['fields'] = fields unless fields.nil?
|
|
963
1030
|
execute_or_queue_command(command, &block)
|
|
964
1031
|
end
|
|
965
1032
|
|
|
966
|
-
#
|
|
967
|
-
#
|
|
968
|
-
#
|
|
969
|
-
#
|
|
1033
|
+
# Like ExecuteSql, except returns the result
|
|
1034
|
+
# set as a stream. Unlike ExecuteSql, there
|
|
1035
|
+
# is no limit on the size of the returned result set. However, no
|
|
1036
|
+
# individual row in the result set can exceed 100 MiB, and no
|
|
1037
|
+
# column value can exceed 10 MiB.
|
|
970
1038
|
# @param [String] session
|
|
971
|
-
# Required. The session in which the
|
|
972
|
-
# @param [Google::Apis::SpannerV1::
|
|
973
|
-
# @param [String] fields
|
|
974
|
-
# Selector specifying which fields to include in a partial response.
|
|
1039
|
+
# Required. The session in which the SQL query should be performed.
|
|
1040
|
+
# @param [Google::Apis::SpannerV1::ExecuteSqlRequest] execute_sql_request_object
|
|
975
1041
|
# @param [String] quota_user
|
|
976
1042
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
977
1043
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1044
|
+
# @param [String] fields
|
|
1045
|
+
# Selector specifying which fields to include in a partial response.
|
|
978
1046
|
# @param [Google::Apis::RequestOptions] options
|
|
979
1047
|
# Request-specific options
|
|
980
1048
|
#
|
|
981
1049
|
# @yield [result, err] Result & error if block supplied
|
|
982
|
-
# @yieldparam result [Google::Apis::SpannerV1::
|
|
1050
|
+
# @yieldparam result [Google::Apis::SpannerV1::PartialResultSet] parsed result object
|
|
983
1051
|
# @yieldparam err [StandardError] error object if request failed
|
|
984
1052
|
#
|
|
985
|
-
# @return [Google::Apis::SpannerV1::
|
|
1053
|
+
# @return [Google::Apis::SpannerV1::PartialResultSet]
|
|
986
1054
|
#
|
|
987
1055
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
988
1056
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
989
1057
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
990
|
-
def
|
|
991
|
-
command = make_simple_command(:post, 'v1/{+session}:
|
|
992
|
-
command.request_representation = Google::Apis::SpannerV1::
|
|
993
|
-
command.request_object =
|
|
994
|
-
command.response_representation = Google::Apis::SpannerV1::
|
|
995
|
-
command.response_class = Google::Apis::SpannerV1::
|
|
1058
|
+
def execute_project_instance_database_session_streaming_sql(session, execute_sql_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
1059
|
+
command = make_simple_command(:post, 'v1/{+session}:executeStreamingSql', options)
|
|
1060
|
+
command.request_representation = Google::Apis::SpannerV1::ExecuteSqlRequest::Representation
|
|
1061
|
+
command.request_object = execute_sql_request_object
|
|
1062
|
+
command.response_representation = Google::Apis::SpannerV1::PartialResultSet::Representation
|
|
1063
|
+
command.response_class = Google::Apis::SpannerV1::PartialResultSet
|
|
996
1064
|
command.params['session'] = session unless session.nil?
|
|
997
|
-
command.query['fields'] = fields unless fields.nil?
|
|
998
1065
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1066
|
+
command.query['fields'] = fields unless fields.nil?
|
|
999
1067
|
execute_or_queue_command(command, &block)
|
|
1000
1068
|
end
|
|
1001
1069
|
|
|
@@ -1009,11 +1077,11 @@ module Google
|
|
|
1009
1077
|
# @param [String] session
|
|
1010
1078
|
# Required. The session in which the transaction to be committed is running.
|
|
1011
1079
|
# @param [Google::Apis::SpannerV1::CommitRequest] commit_request_object
|
|
1012
|
-
# @param [String] fields
|
|
1013
|
-
# Selector specifying which fields to include in a partial response.
|
|
1014
1080
|
# @param [String] quota_user
|
|
1015
1081
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
1016
1082
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1083
|
+
# @param [String] fields
|
|
1084
|
+
# Selector specifying which fields to include in a partial response.
|
|
1017
1085
|
# @param [Google::Apis::RequestOptions] options
|
|
1018
1086
|
# Request-specific options
|
|
1019
1087
|
#
|
|
@@ -1026,15 +1094,51 @@ module Google
|
|
|
1026
1094
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1027
1095
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1028
1096
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1029
|
-
def commit_session(session, commit_request_object = nil,
|
|
1097
|
+
def commit_session(session, commit_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
1030
1098
|
command = make_simple_command(:post, 'v1/{+session}:commit', options)
|
|
1031
1099
|
command.request_representation = Google::Apis::SpannerV1::CommitRequest::Representation
|
|
1032
1100
|
command.request_object = commit_request_object
|
|
1033
1101
|
command.response_representation = Google::Apis::SpannerV1::CommitResponse::Representation
|
|
1034
1102
|
command.response_class = Google::Apis::SpannerV1::CommitResponse
|
|
1035
1103
|
command.params['session'] = session unless session.nil?
|
|
1104
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1036
1105
|
command.query['fields'] = fields unless fields.nil?
|
|
1106
|
+
execute_or_queue_command(command, &block)
|
|
1107
|
+
end
|
|
1108
|
+
|
|
1109
|
+
# Begins a new transaction. This step can often be skipped:
|
|
1110
|
+
# Read, ExecuteSql and
|
|
1111
|
+
# Commit can begin a new transaction as a
|
|
1112
|
+
# side-effect.
|
|
1113
|
+
# @param [String] session
|
|
1114
|
+
# Required. The session in which the transaction runs.
|
|
1115
|
+
# @param [Google::Apis::SpannerV1::BeginTransactionRequest] begin_transaction_request_object
|
|
1116
|
+
# @param [String] quota_user
|
|
1117
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1118
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1119
|
+
# @param [String] fields
|
|
1120
|
+
# Selector specifying which fields to include in a partial response.
|
|
1121
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1122
|
+
# Request-specific options
|
|
1123
|
+
#
|
|
1124
|
+
# @yield [result, err] Result & error if block supplied
|
|
1125
|
+
# @yieldparam result [Google::Apis::SpannerV1::Transaction] parsed result object
|
|
1126
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1127
|
+
#
|
|
1128
|
+
# @return [Google::Apis::SpannerV1::Transaction]
|
|
1129
|
+
#
|
|
1130
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1131
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1132
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1133
|
+
def begin_session_transaction(session, begin_transaction_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
1134
|
+
command = make_simple_command(:post, 'v1/{+session}:beginTransaction', options)
|
|
1135
|
+
command.request_representation = Google::Apis::SpannerV1::BeginTransactionRequest::Representation
|
|
1136
|
+
command.request_object = begin_transaction_request_object
|
|
1137
|
+
command.response_representation = Google::Apis::SpannerV1::Transaction::Representation
|
|
1138
|
+
command.response_class = Google::Apis::SpannerV1::Transaction
|
|
1139
|
+
command.params['session'] = session unless session.nil?
|
|
1037
1140
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1141
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1038
1142
|
execute_or_queue_command(command, &block)
|
|
1039
1143
|
end
|
|
1040
1144
|
|
|
@@ -1048,34 +1152,71 @@ module Google
|
|
|
1048
1152
|
# Larger result sets can be fetched in streaming fashion by calling
|
|
1049
1153
|
# ExecuteStreamingSql instead.
|
|
1050
1154
|
# @param [String] session
|
|
1051
|
-
# Required. The session in which the SQL query should be performed.
|
|
1052
|
-
# @param [Google::Apis::SpannerV1::ExecuteSqlRequest] execute_sql_request_object
|
|
1053
|
-
# @param [String]
|
|
1054
|
-
#
|
|
1155
|
+
# Required. The session in which the SQL query should be performed.
|
|
1156
|
+
# @param [Google::Apis::SpannerV1::ExecuteSqlRequest] execute_sql_request_object
|
|
1157
|
+
# @param [String] quota_user
|
|
1158
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1159
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1160
|
+
# @param [String] fields
|
|
1161
|
+
# Selector specifying which fields to include in a partial response.
|
|
1162
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1163
|
+
# Request-specific options
|
|
1164
|
+
#
|
|
1165
|
+
# @yield [result, err] Result & error if block supplied
|
|
1166
|
+
# @yieldparam result [Google::Apis::SpannerV1::ResultSet] parsed result object
|
|
1167
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1168
|
+
#
|
|
1169
|
+
# @return [Google::Apis::SpannerV1::ResultSet]
|
|
1170
|
+
#
|
|
1171
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1172
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1173
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1174
|
+
def execute_session_sql(session, execute_sql_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
1175
|
+
command = make_simple_command(:post, 'v1/{+session}:executeSql', options)
|
|
1176
|
+
command.request_representation = Google::Apis::SpannerV1::ExecuteSqlRequest::Representation
|
|
1177
|
+
command.request_object = execute_sql_request_object
|
|
1178
|
+
command.response_representation = Google::Apis::SpannerV1::ResultSet::Representation
|
|
1179
|
+
command.response_class = Google::Apis::SpannerV1::ResultSet
|
|
1180
|
+
command.params['session'] = session unless session.nil?
|
|
1181
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1182
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1183
|
+
execute_or_queue_command(command, &block)
|
|
1184
|
+
end
|
|
1185
|
+
|
|
1186
|
+
# Like Read, except returns the result set as a
|
|
1187
|
+
# stream. Unlike Read, there is no limit on the
|
|
1188
|
+
# size of the returned result set. However, no individual row in
|
|
1189
|
+
# the result set can exceed 100 MiB, and no column value can exceed
|
|
1190
|
+
# 10 MiB.
|
|
1191
|
+
# @param [String] session
|
|
1192
|
+
# Required. The session in which the read should be performed.
|
|
1193
|
+
# @param [Google::Apis::SpannerV1::ReadRequest] read_request_object
|
|
1055
1194
|
# @param [String] quota_user
|
|
1056
1195
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
1057
1196
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1197
|
+
# @param [String] fields
|
|
1198
|
+
# Selector specifying which fields to include in a partial response.
|
|
1058
1199
|
# @param [Google::Apis::RequestOptions] options
|
|
1059
1200
|
# Request-specific options
|
|
1060
1201
|
#
|
|
1061
1202
|
# @yield [result, err] Result & error if block supplied
|
|
1062
|
-
# @yieldparam result [Google::Apis::SpannerV1::
|
|
1203
|
+
# @yieldparam result [Google::Apis::SpannerV1::PartialResultSet] parsed result object
|
|
1063
1204
|
# @yieldparam err [StandardError] error object if request failed
|
|
1064
1205
|
#
|
|
1065
|
-
# @return [Google::Apis::SpannerV1::
|
|
1206
|
+
# @return [Google::Apis::SpannerV1::PartialResultSet]
|
|
1066
1207
|
#
|
|
1067
1208
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1068
1209
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1069
1210
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1070
|
-
def
|
|
1071
|
-
command = make_simple_command(:post, 'v1/{+session}:
|
|
1072
|
-
command.request_representation = Google::Apis::SpannerV1::
|
|
1073
|
-
command.request_object =
|
|
1074
|
-
command.response_representation = Google::Apis::SpannerV1::
|
|
1075
|
-
command.response_class = Google::Apis::SpannerV1::
|
|
1211
|
+
def streaming_project_instance_database_session_read(session, read_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
1212
|
+
command = make_simple_command(:post, 'v1/{+session}:streamingRead', options)
|
|
1213
|
+
command.request_representation = Google::Apis::SpannerV1::ReadRequest::Representation
|
|
1214
|
+
command.request_object = read_request_object
|
|
1215
|
+
command.response_representation = Google::Apis::SpannerV1::PartialResultSet::Representation
|
|
1216
|
+
command.response_class = Google::Apis::SpannerV1::PartialResultSet
|
|
1076
1217
|
command.params['session'] = session unless session.nil?
|
|
1077
|
-
command.query['fields'] = fields unless fields.nil?
|
|
1078
1218
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1219
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1079
1220
|
execute_or_queue_command(command, &block)
|
|
1080
1221
|
end
|
|
1081
1222
|
|
|
@@ -1089,11 +1230,11 @@ module Google
|
|
|
1089
1230
|
# @param [String] session
|
|
1090
1231
|
# Required. The session in which the transaction to roll back is running.
|
|
1091
1232
|
# @param [Google::Apis::SpannerV1::RollbackRequest] rollback_request_object
|
|
1092
|
-
# @param [String] fields
|
|
1093
|
-
# Selector specifying which fields to include in a partial response.
|
|
1094
1233
|
# @param [String] quota_user
|
|
1095
1234
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
1096
1235
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1236
|
+
# @param [String] fields
|
|
1237
|
+
# Selector specifying which fields to include in a partial response.
|
|
1097
1238
|
# @param [Google::Apis::RequestOptions] options
|
|
1098
1239
|
# Request-specific options
|
|
1099
1240
|
#
|
|
@@ -1106,52 +1247,15 @@ module Google
|
|
|
1106
1247
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1107
1248
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1108
1249
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1109
|
-
def rollback_session(session, rollback_request_object = nil,
|
|
1250
|
+
def rollback_session(session, rollback_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
1110
1251
|
command = make_simple_command(:post, 'v1/{+session}:rollback', options)
|
|
1111
1252
|
command.request_representation = Google::Apis::SpannerV1::RollbackRequest::Representation
|
|
1112
1253
|
command.request_object = rollback_request_object
|
|
1113
1254
|
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
|
1114
1255
|
command.response_class = Google::Apis::SpannerV1::Empty
|
|
1115
1256
|
command.params['session'] = session unless session.nil?
|
|
1116
|
-
command.query['fields'] = fields unless fields.nil?
|
|
1117
1257
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1118
|
-
execute_or_queue_command(command, &block)
|
|
1119
|
-
end
|
|
1120
|
-
|
|
1121
|
-
# Like Read, except returns the result set as a
|
|
1122
|
-
# stream. Unlike Read, there is no limit on the
|
|
1123
|
-
# size of the returned result set. However, no individual row in
|
|
1124
|
-
# the result set can exceed 100 MiB, and no column value can exceed
|
|
1125
|
-
# 10 MiB.
|
|
1126
|
-
# @param [String] session
|
|
1127
|
-
# Required. The session in which the read should be performed.
|
|
1128
|
-
# @param [Google::Apis::SpannerV1::ReadRequest] read_request_object
|
|
1129
|
-
# @param [String] fields
|
|
1130
|
-
# Selector specifying which fields to include in a partial response.
|
|
1131
|
-
# @param [String] quota_user
|
|
1132
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
1133
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1134
|
-
# @param [Google::Apis::RequestOptions] options
|
|
1135
|
-
# Request-specific options
|
|
1136
|
-
#
|
|
1137
|
-
# @yield [result, err] Result & error if block supplied
|
|
1138
|
-
# @yieldparam result [Google::Apis::SpannerV1::PartialResultSet] parsed result object
|
|
1139
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
1140
|
-
#
|
|
1141
|
-
# @return [Google::Apis::SpannerV1::PartialResultSet]
|
|
1142
|
-
#
|
|
1143
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1144
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1145
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1146
|
-
def streaming_project_instance_database_session_read(session, read_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1147
|
-
command = make_simple_command(:post, 'v1/{+session}:streamingRead', options)
|
|
1148
|
-
command.request_representation = Google::Apis::SpannerV1::ReadRequest::Representation
|
|
1149
|
-
command.request_object = read_request_object
|
|
1150
|
-
command.response_representation = Google::Apis::SpannerV1::PartialResultSet::Representation
|
|
1151
|
-
command.response_class = Google::Apis::SpannerV1::PartialResultSet
|
|
1152
|
-
command.params['session'] = session unless session.nil?
|
|
1153
1258
|
command.query['fields'] = fields unless fields.nil?
|
|
1154
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1155
1259
|
execute_or_queue_command(command, &block)
|
|
1156
1260
|
end
|
|
1157
1261
|
|
|
@@ -1173,11 +1277,11 @@ module Google
|
|
|
1173
1277
|
# periodically, e.g., `"SELECT 1"`.
|
|
1174
1278
|
# @param [String] database
|
|
1175
1279
|
# Required. The database in which the new session is created.
|
|
1176
|
-
# @param [String] fields
|
|
1177
|
-
# Selector specifying which fields to include in a partial response.
|
|
1178
1280
|
# @param [String] quota_user
|
|
1179
1281
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
1180
1282
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1283
|
+
# @param [String] fields
|
|
1284
|
+
# Selector specifying which fields to include in a partial response.
|
|
1181
1285
|
# @param [Google::Apis::RequestOptions] options
|
|
1182
1286
|
# Request-specific options
|
|
1183
1287
|
#
|
|
@@ -1190,13 +1294,13 @@ module Google
|
|
|
1190
1294
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1191
1295
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1192
1296
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1193
|
-
def create_project_instance_database_session(database,
|
|
1297
|
+
def create_project_instance_database_session(database, quota_user: nil, fields: nil, options: nil, &block)
|
|
1194
1298
|
command = make_simple_command(:post, 'v1/{+database}/sessions', options)
|
|
1195
1299
|
command.response_representation = Google::Apis::SpannerV1::Session::Representation
|
|
1196
1300
|
command.response_class = Google::Apis::SpannerV1::Session
|
|
1197
1301
|
command.params['database'] = database unless database.nil?
|
|
1198
|
-
command.query['fields'] = fields unless fields.nil?
|
|
1199
1302
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1303
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1200
1304
|
execute_or_queue_command(command, &block)
|
|
1201
1305
|
end
|
|
1202
1306
|
|
|
@@ -1214,11 +1318,11 @@ module Google
|
|
|
1214
1318
|
# @param [String] session
|
|
1215
1319
|
# Required. The session in which the read should be performed.
|
|
1216
1320
|
# @param [Google::Apis::SpannerV1::ReadRequest] read_request_object
|
|
1217
|
-
# @param [String] fields
|
|
1218
|
-
# Selector specifying which fields to include in a partial response.
|
|
1219
1321
|
# @param [String] quota_user
|
|
1220
1322
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
1221
1323
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1324
|
+
# @param [String] fields
|
|
1325
|
+
# Selector specifying which fields to include in a partial response.
|
|
1222
1326
|
# @param [Google::Apis::RequestOptions] options
|
|
1223
1327
|
# Request-specific options
|
|
1224
1328
|
#
|
|
@@ -1231,119 +1335,15 @@ module Google
|
|
|
1231
1335
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1232
1336
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1233
1337
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1234
|
-
def read_session(session, read_request_object = nil,
|
|
1338
|
+
def read_session(session, read_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
1235
1339
|
command = make_simple_command(:post, 'v1/{+session}:read', options)
|
|
1236
1340
|
command.request_representation = Google::Apis::SpannerV1::ReadRequest::Representation
|
|
1237
1341
|
command.request_object = read_request_object
|
|
1238
1342
|
command.response_representation = Google::Apis::SpannerV1::ResultSet::Representation
|
|
1239
1343
|
command.response_class = Google::Apis::SpannerV1::ResultSet
|
|
1240
1344
|
command.params['session'] = session unless session.nil?
|
|
1241
|
-
command.query['fields'] = fields unless fields.nil?
|
|
1242
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1243
|
-
execute_or_queue_command(command, &block)
|
|
1244
|
-
end
|
|
1245
|
-
|
|
1246
|
-
# Gets a session. Returns `NOT_FOUND` if the session does not exist.
|
|
1247
|
-
# This is mainly useful for determining whether a session is still
|
|
1248
|
-
# alive.
|
|
1249
|
-
# @param [String] name
|
|
1250
|
-
# Required. The name of the session to retrieve.
|
|
1251
|
-
# @param [String] fields
|
|
1252
|
-
# Selector specifying which fields to include in a partial response.
|
|
1253
|
-
# @param [String] quota_user
|
|
1254
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
1255
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1256
|
-
# @param [Google::Apis::RequestOptions] options
|
|
1257
|
-
# Request-specific options
|
|
1258
|
-
#
|
|
1259
|
-
# @yield [result, err] Result & error if block supplied
|
|
1260
|
-
# @yieldparam result [Google::Apis::SpannerV1::Session] parsed result object
|
|
1261
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
1262
|
-
#
|
|
1263
|
-
# @return [Google::Apis::SpannerV1::Session]
|
|
1264
|
-
#
|
|
1265
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1266
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1267
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1268
|
-
def get_project_instance_database_session(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1269
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
1270
|
-
command.response_representation = Google::Apis::SpannerV1::Session::Representation
|
|
1271
|
-
command.response_class = Google::Apis::SpannerV1::Session
|
|
1272
|
-
command.params['name'] = name unless name.nil?
|
|
1273
|
-
command.query['fields'] = fields unless fields.nil?
|
|
1274
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1275
|
-
execute_or_queue_command(command, &block)
|
|
1276
|
-
end
|
|
1277
|
-
|
|
1278
|
-
# Starts asynchronous cancellation on a long-running operation. The server
|
|
1279
|
-
# makes a best effort to cancel the operation, but success is not
|
|
1280
|
-
# guaranteed. If the server doesn't support this method, it returns
|
|
1281
|
-
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
|
1282
|
-
# Operations.GetOperation or
|
|
1283
|
-
# other methods to check whether the cancellation succeeded or whether the
|
|
1284
|
-
# operation completed despite cancellation. On successful cancellation,
|
|
1285
|
-
# the operation is not deleted; instead, it becomes an operation with
|
|
1286
|
-
# an Operation.error value with a google.rpc.Status.code of 1,
|
|
1287
|
-
# corresponding to `Code.CANCELLED`.
|
|
1288
|
-
# @param [String] name
|
|
1289
|
-
# The name of the operation resource to be cancelled.
|
|
1290
|
-
# @param [String] fields
|
|
1291
|
-
# Selector specifying which fields to include in a partial response.
|
|
1292
|
-
# @param [String] quota_user
|
|
1293
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
1294
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1295
|
-
# @param [Google::Apis::RequestOptions] options
|
|
1296
|
-
# Request-specific options
|
|
1297
|
-
#
|
|
1298
|
-
# @yield [result, err] Result & error if block supplied
|
|
1299
|
-
# @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
|
|
1300
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
1301
|
-
#
|
|
1302
|
-
# @return [Google::Apis::SpannerV1::Empty]
|
|
1303
|
-
#
|
|
1304
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1305
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1306
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1307
|
-
def cancel_project_instance_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1308
|
-
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
1309
|
-
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
|
1310
|
-
command.response_class = Google::Apis::SpannerV1::Empty
|
|
1311
|
-
command.params['name'] = name unless name.nil?
|
|
1312
|
-
command.query['fields'] = fields unless fields.nil?
|
|
1313
1345
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1314
|
-
execute_or_queue_command(command, &block)
|
|
1315
|
-
end
|
|
1316
|
-
|
|
1317
|
-
# Deletes a long-running operation. This method indicates that the client is
|
|
1318
|
-
# no longer interested in the operation result. It does not cancel the
|
|
1319
|
-
# operation. If the server doesn't support this method, it returns
|
|
1320
|
-
# `google.rpc.Code.UNIMPLEMENTED`.
|
|
1321
|
-
# @param [String] name
|
|
1322
|
-
# The name of the operation resource to be deleted.
|
|
1323
|
-
# @param [String] fields
|
|
1324
|
-
# Selector specifying which fields to include in a partial response.
|
|
1325
|
-
# @param [String] quota_user
|
|
1326
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
1327
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1328
|
-
# @param [Google::Apis::RequestOptions] options
|
|
1329
|
-
# Request-specific options
|
|
1330
|
-
#
|
|
1331
|
-
# @yield [result, err] Result & error if block supplied
|
|
1332
|
-
# @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
|
|
1333
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
1334
|
-
#
|
|
1335
|
-
# @return [Google::Apis::SpannerV1::Empty]
|
|
1336
|
-
#
|
|
1337
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1338
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1339
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1340
|
-
def delete_project_instance_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
1341
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
1342
|
-
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
|
1343
|
-
command.response_class = Google::Apis::SpannerV1::Empty
|
|
1344
|
-
command.params['name'] = name unless name.nil?
|
|
1345
1346
|
command.query['fields'] = fields unless fields.nil?
|
|
1346
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1347
1347
|
execute_or_queue_command(command, &block)
|
|
1348
1348
|
end
|
|
1349
1349
|
|
|
@@ -1359,11 +1359,11 @@ module Google
|
|
|
1359
1359
|
# The standard list page token.
|
|
1360
1360
|
# @param [Fixnum] page_size
|
|
1361
1361
|
# The standard list page size.
|
|
1362
|
-
# @param [String] fields
|
|
1363
|
-
# Selector specifying which fields to include in a partial response.
|
|
1364
1362
|
# @param [String] quota_user
|
|
1365
1363
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
1366
1364
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1365
|
+
# @param [String] fields
|
|
1366
|
+
# Selector specifying which fields to include in a partial response.
|
|
1367
1367
|
# @param [Google::Apis::RequestOptions] options
|
|
1368
1368
|
# Request-specific options
|
|
1369
1369
|
#
|
|
@@ -1376,7 +1376,7 @@ module Google
|
|
|
1376
1376
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1377
1377
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1378
1378
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1379
|
-
def list_project_instance_operations(name, filter: nil, page_token: nil, page_size: nil,
|
|
1379
|
+
def list_project_instance_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
|
1380
1380
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
1381
1381
|
command.response_representation = Google::Apis::SpannerV1::ListOperationsResponse::Representation
|
|
1382
1382
|
command.response_class = Google::Apis::SpannerV1::ListOperationsResponse
|
|
@@ -1384,8 +1384,8 @@ module Google
|
|
|
1384
1384
|
command.query['filter'] = filter unless filter.nil?
|
|
1385
1385
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1386
1386
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1387
|
-
command.query['fields'] = fields unless fields.nil?
|
|
1388
1387
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1388
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1389
1389
|
execute_or_queue_command(command, &block)
|
|
1390
1390
|
end
|
|
1391
1391
|
|
|
@@ -1394,11 +1394,11 @@ module Google
|
|
|
1394
1394
|
# service.
|
|
1395
1395
|
# @param [String] name
|
|
1396
1396
|
# The name of the operation resource.
|
|
1397
|
-
# @param [String] fields
|
|
1398
|
-
# Selector specifying which fields to include in a partial response.
|
|
1399
1397
|
# @param [String] quota_user
|
|
1400
1398
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
1401
1399
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1400
|
+
# @param [String] fields
|
|
1401
|
+
# Selector specifying which fields to include in a partial response.
|
|
1402
1402
|
# @param [Google::Apis::RequestOptions] options
|
|
1403
1403
|
# Request-specific options
|
|
1404
1404
|
#
|
|
@@ -1411,85 +1411,85 @@ module Google
|
|
|
1411
1411
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1412
1412
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1413
1413
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1414
|
-
def get_project_instance_operation(name,
|
|
1414
|
+
def get_project_instance_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
1415
1415
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
1416
1416
|
command.response_representation = Google::Apis::SpannerV1::Operation::Representation
|
|
1417
1417
|
command.response_class = Google::Apis::SpannerV1::Operation
|
|
1418
1418
|
command.params['name'] = name unless name.nil?
|
|
1419
|
-
command.query['fields'] = fields unless fields.nil?
|
|
1420
1419
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1420
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1421
1421
|
execute_or_queue_command(command, &block)
|
|
1422
1422
|
end
|
|
1423
1423
|
|
|
1424
|
-
#
|
|
1425
|
-
#
|
|
1426
|
-
#
|
|
1427
|
-
#
|
|
1428
|
-
#
|
|
1429
|
-
#
|
|
1430
|
-
#
|
|
1431
|
-
#
|
|
1432
|
-
#
|
|
1433
|
-
#
|
|
1434
|
-
#
|
|
1435
|
-
#
|
|
1436
|
-
# @param [String] fields
|
|
1437
|
-
# Selector specifying which fields to include in a partial response.
|
|
1424
|
+
# Starts asynchronous cancellation on a long-running operation. The server
|
|
1425
|
+
# makes a best effort to cancel the operation, but success is not
|
|
1426
|
+
# guaranteed. If the server doesn't support this method, it returns
|
|
1427
|
+
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
|
1428
|
+
# Operations.GetOperation or
|
|
1429
|
+
# other methods to check whether the cancellation succeeded or whether the
|
|
1430
|
+
# operation completed despite cancellation. On successful cancellation,
|
|
1431
|
+
# the operation is not deleted; instead, it becomes an operation with
|
|
1432
|
+
# an Operation.error value with a google.rpc.Status.code of 1,
|
|
1433
|
+
# corresponding to `Code.CANCELLED`.
|
|
1434
|
+
# @param [String] name
|
|
1435
|
+
# The name of the operation resource to be cancelled.
|
|
1438
1436
|
# @param [String] quota_user
|
|
1439
1437
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
1440
1438
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1439
|
+
# @param [String] fields
|
|
1440
|
+
# Selector specifying which fields to include in a partial response.
|
|
1441
1441
|
# @param [Google::Apis::RequestOptions] options
|
|
1442
1442
|
# Request-specific options
|
|
1443
1443
|
#
|
|
1444
1444
|
# @yield [result, err] Result & error if block supplied
|
|
1445
|
-
# @yieldparam result [Google::Apis::SpannerV1::
|
|
1445
|
+
# @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
|
|
1446
1446
|
# @yieldparam err [StandardError] error object if request failed
|
|
1447
1447
|
#
|
|
1448
|
-
# @return [Google::Apis::SpannerV1::
|
|
1448
|
+
# @return [Google::Apis::SpannerV1::Empty]
|
|
1449
1449
|
#
|
|
1450
1450
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1451
1451
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1452
1452
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1453
|
-
def
|
|
1454
|
-
command = make_simple_command(:
|
|
1455
|
-
command.response_representation = Google::Apis::SpannerV1::
|
|
1456
|
-
command.response_class = Google::Apis::SpannerV1::
|
|
1457
|
-
command.params['
|
|
1458
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1459
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
1460
|
-
command.query['fields'] = fields unless fields.nil?
|
|
1453
|
+
def cancel_project_instance_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
1454
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
1455
|
+
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
|
1456
|
+
command.response_class = Google::Apis::SpannerV1::Empty
|
|
1457
|
+
command.params['name'] = name unless name.nil?
|
|
1461
1458
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1459
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1462
1460
|
execute_or_queue_command(command, &block)
|
|
1463
1461
|
end
|
|
1464
1462
|
|
|
1465
|
-
#
|
|
1463
|
+
# Deletes a long-running operation. This method indicates that the client is
|
|
1464
|
+
# no longer interested in the operation result. It does not cancel the
|
|
1465
|
+
# operation. If the server doesn't support this method, it returns
|
|
1466
|
+
# `google.rpc.Code.UNIMPLEMENTED`.
|
|
1466
1467
|
# @param [String] name
|
|
1467
|
-
#
|
|
1468
|
-
# the form `projects/<project>/instanceConfigs/<config>`.
|
|
1469
|
-
# @param [String] fields
|
|
1470
|
-
# Selector specifying which fields to include in a partial response.
|
|
1468
|
+
# The name of the operation resource to be deleted.
|
|
1471
1469
|
# @param [String] quota_user
|
|
1472
1470
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
1473
1471
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1472
|
+
# @param [String] fields
|
|
1473
|
+
# Selector specifying which fields to include in a partial response.
|
|
1474
1474
|
# @param [Google::Apis::RequestOptions] options
|
|
1475
1475
|
# Request-specific options
|
|
1476
1476
|
#
|
|
1477
1477
|
# @yield [result, err] Result & error if block supplied
|
|
1478
|
-
# @yieldparam result [Google::Apis::SpannerV1::
|
|
1478
|
+
# @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
|
|
1479
1479
|
# @yieldparam err [StandardError] error object if request failed
|
|
1480
1480
|
#
|
|
1481
|
-
# @return [Google::Apis::SpannerV1::
|
|
1481
|
+
# @return [Google::Apis::SpannerV1::Empty]
|
|
1482
1482
|
#
|
|
1483
1483
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1484
1484
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1485
1485
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1486
|
-
def
|
|
1487
|
-
command = make_simple_command(:
|
|
1488
|
-
command.response_representation = Google::Apis::SpannerV1::
|
|
1489
|
-
command.response_class = Google::Apis::SpannerV1::
|
|
1486
|
+
def delete_project_instance_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
|
1487
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
1488
|
+
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
|
1489
|
+
command.response_class = Google::Apis::SpannerV1::Empty
|
|
1490
1490
|
command.params['name'] = name unless name.nil?
|
|
1491
|
-
command.query['fields'] = fields unless fields.nil?
|
|
1492
1491
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1492
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1493
1493
|
execute_or_queue_command(command, &block)
|
|
1494
1494
|
end
|
|
1495
1495
|
|