google-api-client 0.32.1 → 0.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.kokoro/continuous/linux.cfg +2 -2
- data/.kokoro/continuous/post.cfg +30 -0
- data/.kokoro/presubmit/linux.cfg +1 -1
- data/.kokoro/release.cfg +94 -0
- data/.repo-metadata.json +5 -0
- data/.rubocop.yml +5 -0
- data/.yardopts +16 -2
- data/CHANGELOG.md +1354 -0
- data/Gemfile +1 -0
- data/OVERVIEW.md +36 -0
- data/README.md +50 -2
- data/Rakefile +71 -2
- data/api_list_config.yaml +1 -0
- data/api_names.yaml +2 -0
- data/bin/generate-api +10 -2
- data/docs/api-keys.md +20 -0
- data/docs/auth.md +53 -0
- data/docs/client-secrets.md +69 -0
- data/docs/getting-started.md +340 -0
- data/docs/installation.md +0 -0
- data/docs/logging.md +34 -0
- data/docs/media-upload.md +25 -0
- data/docs/oauth-installed.md +191 -0
- data/docs/oauth-server.md +135 -0
- data/docs/oauth-web.md +280 -0
- data/docs/oauth.md +268 -0
- data/docs/pagination.md +29 -0
- data/docs/performance.md +25 -0
- data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -4
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
- data/generated/google/apis/accessapproval_v1/classes.rb +417 -0
- data/generated/google/apis/accessapproval_v1/representations.rb +203 -0
- data/generated/google/apis/accessapproval_v1/service.rb +869 -0
- data/generated/google/apis/{servicebroker_v1.rb → accessapproval_v1.rb} +8 -10
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +35 -2
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +13 -0
- data/generated/google/apis/accessapproval_v1beta1/service.rb +108 -6
- data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +357 -56
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +137 -6
- data/generated/google/apis/accesscontextmanager_v1/service.rb +143 -5
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +133 -125
- data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +21 -27
- data/generated/google/apis/accesscontextmanager_v1beta/service.rb +6 -5
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +35 -5
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +4 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +24 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -3
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1.rb +1 -4
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +5 -5
- data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +4 -150
- data/generated/google/apis/admin_directory_v1/representations.rb +0 -54
- data/generated/google/apis/admin_directory_v1/service.rb +0 -60
- data/generated/google/apis/admin_directory_v1.rb +4 -1
- data/generated/google/apis/admin_reports_v1/classes.rb +87 -44
- data/generated/google/apis/admin_reports_v1/service.rb +310 -64
- data/generated/google/apis/admin_reports_v1.rb +2 -2
- data/generated/google/apis/admob_v1/classes.rb +951 -0
- data/generated/google/apis/admob_v1/representations.rb +378 -0
- data/generated/google/apis/admob_v1/service.rb +196 -0
- data/generated/google/apis/{analytics_v2_4/classes.rb → admob_v1.rb} +11 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +5 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +259 -7
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +126 -0
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +2 -2
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +39 -60
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +0 -403
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +203 -6
- data/generated/google/apis/androidmanagement_v1/representations.rb +68 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +6 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1/classes.rb +0 -41
- data/generated/google/apis/androidpublisher_v1/representations.rb +0 -16
- data/generated/google/apis/androidpublisher_v1/service.rb +1 -81
- data/generated/google/apis/androidpublisher_v1.rb +1 -4
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +0 -41
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +0 -16
- data/generated/google/apis/androidpublisher_v1_1/service.rb +0 -80
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +37 -1755
- data/generated/google/apis/androidpublisher_v2/representations.rb +15 -804
- data/generated/google/apis/androidpublisher_v2/service.rb +0 -2359
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +404 -65
- data/generated/google/apis/androidpublisher_v3/representations.rb +180 -27
- data/generated/google/apis/androidpublisher_v3/service.rb +162 -3
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +4928 -0
- data/generated/google/apis/apigee_v1/representations.rb +1822 -0
- data/generated/google/apis/apigee_v1/service.rb +5578 -0
- data/generated/google/apis/apigee_v1.rb +40 -0
- data/generated/google/apis/appengine_v1/classes.rb +7 -0
- data/generated/google/apis/appengine_v1/representations.rb +1 -0
- data/generated/google/apis/appengine_v1/service.rb +10 -6
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +7 -38
- data/generated/google/apis/appengine_v1beta/representations.rb +1 -17
- data/generated/google/apis/appengine_v1beta/service.rb +10 -6
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/{cloudprivatecatalogproducer_v1beta1 → artifactregistry_v1beta1}/classes.rb +591 -765
- data/generated/google/apis/{servicebroker_v1alpha1 → artifactregistry_v1beta1}/representations.rb +128 -115
- data/generated/google/apis/artifactregistry_v1beta1/service.rb +957 -0
- data/generated/google/apis/artifactregistry_v1beta1.rb +38 -0
- data/generated/google/apis/bigquery_v2/classes.rb +993 -43
- data/generated/google/apis/bigquery_v2/representations.rb +273 -2
- data/generated/google/apis/bigquery_v2/service.rb +137 -4
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +149 -59
- data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +2 -0
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +11 -10
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +49 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +19 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +90 -34
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +392 -16
- data/generated/google/apis/bigqueryreservation_v1/representations.rb +174 -6
- data/generated/google/apis/bigqueryreservation_v1/service.rb +758 -0
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +109 -10
- data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +26 -3
- data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +71 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +166 -160
- data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +49 -38
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +257 -146
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +21 -18
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +189 -82
- data/generated/google/apis/bigtableadmin_v2/service.rb +170 -58
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +413 -0
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +197 -0
- data/generated/google/apis/billingbudgets_v1beta1/service.rb +244 -0
- data/generated/google/apis/{servicebroker_v1beta1.rb → billingbudgets_v1beta1.rb} +9 -10
- data/generated/google/apis/binaryauthorization_v1/classes.rb +143 -58
- data/generated/google/apis/binaryauthorization_v1/service.rb +10 -2
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +139 -57
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +10 -2
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/blogger_v2/classes.rb +297 -45
- data/generated/google/apis/blogger_v2/representations.rb +105 -26
- data/generated/google/apis/blogger_v2/service.rb +79 -134
- data/generated/google/apis/blogger_v2.rb +5 -4
- data/generated/google/apis/blogger_v3/classes.rb +60 -53
- data/generated/google/apis/blogger_v3/representations.rb +10 -18
- data/generated/google/apis/blogger_v3/service.rb +183 -463
- data/generated/google/apis/blogger_v3.rb +4 -3
- data/generated/google/apis/books_v1/classes.rb +494 -242
- data/generated/google/apis/books_v1/representations.rb +145 -72
- data/generated/google/apis/books_v1/service.rb +354 -484
- data/generated/google/apis/books_v1.rb +3 -3
- data/generated/google/apis/calendar_v3/classes.rb +8 -21
- data/generated/google/apis/calendar_v3/service.rb +18 -30
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +29 -3
- data/generated/google/apis/chat_v1/representations.rb +3 -0
- data/generated/google/apis/chat_v1/service.rb +5 -2
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chromeuxreport_v1/classes.rb +297 -0
- data/generated/google/apis/chromeuxreport_v1/representations.rb +147 -0
- data/generated/google/apis/chromeuxreport_v1/service.rb +92 -0
- data/generated/google/apis/{pagespeedonline_v1.rb → chromeuxreport_v1.rb} +9 -9
- data/generated/google/apis/civicinfo_v2/classes.rb +0 -156
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -60
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +14 -14
- data/generated/google/apis/classroom_v1/service.rb +11 -11
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +917 -195
- data/generated/google/apis/cloudasset_v1/representations.rb +234 -6
- data/generated/google/apis/cloudasset_v1/service.rb +363 -12
- data/generated/google/apis/cloudasset_v1.rb +2 -2
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +139 -57
- data/generated/google/apis/cloudasset_v1beta1/service.rb +13 -4
- data/generated/google/apis/cloudasset_v1beta1.rb +2 -2
- data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +701 -0
- data/generated/google/apis/cloudasset_v1p1beta1/representations.rb +201 -0
- data/generated/google/apis/cloudasset_v1p1beta1/service.rb +189 -0
- data/generated/google/apis/cloudasset_v1p1beta1.rb +34 -0
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +924 -0
- data/generated/google/apis/cloudasset_v1p4beta1/representations.rb +377 -0
- data/generated/google/apis/cloudasset_v1p4beta1/service.rb +217 -0
- data/generated/google/apis/cloudasset_v1p4beta1.rb +34 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +179 -68
- data/generated/google/apis/cloudbilling_v1/representations.rb +0 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +16 -9
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +55 -10
- data/generated/google/apis/cloudbuild_v1/representations.rb +5 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +139 -18
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +170 -5
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +63 -0
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +121 -5
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +1283 -0
- data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +491 -0
- data/generated/google/apis/cloudbuild_v1alpha2/service.rb +353 -0
- data/generated/google/apis/cloudbuild_v1alpha2.rb +34 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +34 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +4 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +24 -17
- data/generated/google/apis/clouddebugger_v2.rb +2 -2
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +13 -13
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +2 -2
- data/generated/google/apis/cloudfunctions_v1/classes.rb +161 -59
- data/generated/google/apis/cloudfunctions_v1/representations.rb +3 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +13 -4
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +10 -4
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +11 -8
- data/generated/google/apis/cloudidentity_v1/service.rb +22 -14
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1009 -69
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +390 -0
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +189 -78
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +142 -57
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +461 -61
- data/generated/google/apis/cloudkms_v1/representations.rb +33 -0
- data/generated/google/apis/cloudkms_v1/service.rb +15 -3
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudprofiler_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +155 -71
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +6 -3
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +143 -59
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +147 -67
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +11 -13
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +147 -67
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +11 -13
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +3 -2
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +3 -2
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +86 -195
- data/generated/google/apis/cloudsearch_v1/representations.rb +1 -75
- data/generated/google/apis/cloudsearch_v1/service.rb +62 -10
- data/generated/google/apis/cloudsearch_v1.rb +8 -8
- data/generated/google/apis/cloudshell_v1/classes.rb +24 -1
- data/generated/google/apis/cloudshell_v1/representations.rb +3 -0
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +30 -1
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +5 -0
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +388 -70
- data/generated/google/apis/cloudtasks_v2/representations.rb +65 -0
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +148 -66
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +6 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +156 -74
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/service.rb +10 -4
- data/generated/google/apis/cloudtrace_v1.rb +5 -5
- data/generated/google/apis/cloudtrace_v2/classes.rb +8 -7
- data/generated/google/apis/cloudtrace_v2/service.rb +8 -4
- data/generated/google/apis/cloudtrace_v2.rb +5 -5
- data/generated/google/apis/cloudtrace_v2beta1/classes.rb +143 -0
- data/generated/google/apis/{oauth2_v1 → cloudtrace_v2beta1}/representations.rb +36 -27
- data/generated/google/apis/cloudtrace_v2beta1/service.rb +258 -0
- data/generated/google/apis/cloudtrace_v2beta1.rb +44 -0
- data/generated/google/apis/composer_v1/classes.rb +180 -0
- data/generated/google/apis/composer_v1/representations.rb +54 -0
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +152 -5
- data/generated/google/apis/composer_v1beta1/representations.rb +64 -0
- data/generated/google/apis/composer_v1beta1/service.rb +5 -0
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +3252 -973
- data/generated/google/apis/compute_alpha/representations.rb +634 -69
- data/generated/google/apis/compute_alpha/service.rb +9085 -6210
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +4787 -1066
- data/generated/google/apis/compute_beta/representations.rb +1394 -31
- data/generated/google/apis/compute_beta/service.rb +8858 -5018
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2976 -599
- data/generated/google/apis/compute_v1/representations.rb +850 -0
- data/generated/google/apis/compute_v1/service.rb +4634 -2481
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +925 -164
- data/generated/google/apis/container_v1/representations.rb +278 -0
- data/generated/google/apis/container_v1/service.rb +175 -158
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +803 -340
- data/generated/google/apis/container_v1beta1/representations.rb +185 -39
- data/generated/google/apis/container_v1beta1/service.rb +294 -277
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +142 -57
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +478 -59
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +159 -0
- data/generated/google/apis/containeranalysis_v1beta1/service.rb +26 -20
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +1566 -634
- data/generated/google/apis/content_v2/representations.rb +78 -115
- data/generated/google/apis/content_v2/service.rb +81 -206
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +2706 -683
- data/generated/google/apis/content_v2_1/representations.rb +551 -0
- data/generated/google/apis/content_v2_1/service.rb +520 -46
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/customsearch_v1/classes.rb +1194 -353
- data/generated/google/apis/customsearch_v1/representations.rb +166 -95
- data/generated/google/apis/customsearch_v1/service.rb +373 -104
- data/generated/google/apis/customsearch_v1.rb +3 -3
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +1907 -0
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +739 -0
- data/generated/google/apis/datacatalog_v1beta1/service.rb +2247 -0
- data/generated/google/apis/{cloudprivatecatalog_v1beta1.rb → datacatalog_v1beta1.rb} +9 -9
- data/generated/google/apis/dataflow_v1b3/classes.rb +786 -11
- data/generated/google/apis/dataflow_v1b3/representations.rb +377 -1
- data/generated/google/apis/dataflow_v1b3/service.rb +626 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/classes.rb +245 -362
- data/generated/google/apis/datafusion_v1beta1/representations.rb +29 -112
- data/generated/google/apis/datafusion_v1beta1/service.rb +15 -2
- data/generated/google/apis/datafusion_v1beta1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +533 -177
- data/generated/google/apis/dataproc_v1/representations.rb +85 -0
- data/generated/google/apis/dataproc_v1/service.rb +102 -36
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +477 -182
- data/generated/google/apis/dataproc_v1beta2/representations.rb +81 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +199 -43
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +17 -23
- data/generated/google/apis/datastore_v1/service.rb +93 -9
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +6 -5
- data/generated/google/apis/datastore_v1beta3/service.rb +7 -7
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +362 -176
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +22 -4
- data/generated/google/apis/deploymentmanager_alpha/service.rb +198 -311
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +295 -146
- data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -1
- data/generated/google/apis/deploymentmanager_v2/service.rb +101 -99
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +350 -170
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +18 -1
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +154 -152
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/classes.rb +39 -13
- data/generated/google/apis/dfareporting_v3_3/service.rb +9 -8
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/classes.rb +1361 -813
- data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/representations.rb +639 -396
- data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/service.rb +969 -1076
- data/generated/google/apis/{dfareporting_v3_2.rb → dfareporting_v3_4.rb} +6 -6
- data/generated/google/apis/dialogflow_v2/classes.rb +1778 -219
- data/generated/google/apis/dialogflow_v2/representations.rb +603 -0
- data/generated/google/apis/dialogflow_v2/service.rb +849 -158
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +1776 -242
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +592 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +436 -172
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3alpha1/classes.rb +5579 -0
- data/generated/google/apis/dialogflow_v3alpha1/representations.rb +2295 -0
- data/generated/google/apis/dialogflow_v3alpha1/service.rb +296 -0
- data/generated/google/apis/dialogflow_v3alpha1.rb +38 -0
- data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +7527 -0
- data/generated/google/apis/displayvideo_v1/representations.rb +3034 -0
- data/generated/google/apis/displayvideo_v1/service.rb +3126 -0
- data/generated/google/apis/displayvideo_v1.rb +38 -0
- data/generated/google/apis/dlp_v2/classes.rb +798 -130
- data/generated/google/apis/dlp_v2/representations.rb +277 -3
- data/generated/google/apis/dlp_v2/service.rb +2074 -231
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +220 -251
- data/generated/google/apis/dns_v1/representations.rb +49 -0
- data/generated/google/apis/dns_v1/service.rb +21 -141
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +224 -261
- data/generated/google/apis/dns_v1beta2/representations.rb +49 -0
- data/generated/google/apis/dns_v1beta2/service.rb +21 -141
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +220 -251
- data/generated/google/apis/dns_v2beta1/representations.rb +49 -0
- data/generated/google/apis/dns_v2beta1/service.rb +21 -141
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +608 -2
- data/generated/google/apis/docs_v1/representations.rb +211 -0
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/domainsrdap_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +860 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +388 -0
- data/generated/google/apis/{surveys_v2 → doubleclickbidmanager_v1_1}/service.rb +140 -110
- data/generated/google/apis/{proximitybeacon_v1beta1.rb → doubleclickbidmanager_v1_1.rb} +11 -11
- data/generated/google/apis/doubleclicksearch_v2/service.rb +0 -55
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +58 -5
- data/generated/google/apis/drive_v2/representations.rb +18 -0
- data/generated/google/apis/drive_v2/service.rb +92 -118
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +66 -5
- data/generated/google/apis/drive_v3/representations.rb +18 -0
- data/generated/google/apis/drive_v3/service.rb +46 -14
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/driveactivity_v2/classes.rb +15 -5
- data/generated/google/apis/driveactivity_v2/representations.rb +2 -0
- data/generated/google/apis/driveactivity_v2.rb +1 -1
- data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
- data/generated/google/apis/fcm_v1/classes.rb +15 -0
- data/generated/google/apis/fcm_v1/representations.rb +2 -0
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +1235 -158
- data/generated/google/apis/file_v1/representations.rb +401 -22
- data/generated/google/apis/file_v1/service.rb +14 -10
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +1236 -159
- data/generated/google/apis/file_v1beta1/representations.rb +401 -22
- data/generated/google/apis/file_v1beta1/service.rb +18 -11
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +20 -16
- data/generated/google/apis/firebase_v1beta1/representations.rb +2 -0
- data/generated/google/apis/firebase_v1beta1/service.rb +22 -16
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +174 -1
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +65 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +805 -2
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebaseml_v1/classes.rb +213 -0
- data/generated/google/apis/{servicebroker_v1 → firebaseml_v1}/representations.rb +26 -28
- data/generated/google/apis/firebaseml_v1/service.rb +181 -0
- data/generated/google/apis/firebaseml_v1.rb +34 -0
- data/generated/google/apis/firebaseml_v1beta2/classes.rb +344 -0
- data/generated/google/apis/{cloudprivatecatalog_v1beta1 → firebaseml_v1beta2}/representations.rb +62 -31
- data/generated/google/apis/firebaseml_v1beta2/service.rb +267 -0
- data/generated/google/apis/firebaseml_v1beta2.rb +34 -0
- data/generated/google/apis/firebaserules_v1/classes.rb +113 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +52 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +16 -5
- data/generated/google/apis/firestore_v1/representations.rb +2 -0
- data/generated/google/apis/firestore_v1/service.rb +26 -24
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +16 -5
- data/generated/google/apis/firestore_v1beta1/representations.rb +2 -0
- data/generated/google/apis/firestore_v1beta1/service.rb +18 -16
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +189 -153
- data/generated/google/apis/fitness_v1/service.rb +192 -198
- data/generated/google/apis/fitness_v1.rb +14 -14
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +38 -53
- data/generated/google/apis/games_configuration_v1configuration/service.rb +58 -169
- data/generated/google/apis/games_configuration_v1configuration.rb +4 -3
- data/generated/google/apis/games_management_v1management/classes.rb +50 -109
- data/generated/google/apis/games_management_v1management/representations.rb +0 -30
- data/generated/google/apis/games_management_v1management/service.rb +116 -452
- data/generated/google/apis/games_management_v1management.rb +6 -4
- data/generated/google/apis/games_v1/classes.rb +14 -293
- data/generated/google/apis/games_v1/representations.rb +2 -98
- data/generated/google/apis/games_v1/service.rb +3 -135
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/gameservices_v1beta/classes.rb +2354 -0
- data/generated/google/apis/gameservices_v1beta/representations.rb +971 -0
- data/generated/google/apis/gameservices_v1beta/service.rb +1472 -0
- data/generated/google/apis/gameservices_v1beta.rb +34 -0
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +32 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +16 -0
- data/generated/google/apis/genomics_v2alpha1/service.rb +34 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +6 -2
- data/generated/google/apis/gmail_v1/service.rb +1 -1
- data/generated/google/apis/gmail_v1.rb +13 -1
- data/generated/google/apis/healthcare_v1/classes.rb +2659 -0
- data/generated/google/apis/healthcare_v1/representations.rb +1114 -0
- data/generated/google/apis/healthcare_v1/service.rb +3439 -0
- data/generated/google/apis/healthcare_v1.rb +34 -0
- data/generated/google/apis/healthcare_v1beta1/classes.rb +1013 -128
- data/generated/google/apis/healthcare_v1beta1/representations.rb +341 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +762 -275
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/homegraph_v1/classes.rb +79 -56
- data/generated/google/apis/homegraph_v1/representations.rb +2 -1
- data/generated/google/apis/homegraph_v1/service.rb +43 -47
- data/generated/google/apis/homegraph_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +201 -169
- data/generated/google/apis/iam_v1/representations.rb +1 -6
- data/generated/google/apis/iam_v1/service.rb +18 -21
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/classes.rb +40 -8
- data/generated/google/apis/iamcredentials_v1/service.rb +4 -4
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +691 -59
- data/generated/google/apis/iap_v1/representations.rb +254 -0
- data/generated/google/apis/iap_v1/service.rb +362 -0
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +144 -59
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/indexing_v3.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +167 -0
- data/generated/google/apis/jobs_v2/representations.rb +40 -0
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +180 -0
- data/generated/google/apis/jobs_v3/representations.rb +41 -0
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +187 -2
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +41 -0
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/kgsearch_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +6 -6
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +5 -5
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +23 -7
- data/generated/google/apis/language_v1beta2/representations.rb +2 -0
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/libraryagent_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/classes.rb +15 -7
- data/generated/google/apis/licensing_v1/service.rb +81 -37
- data/generated/google/apis/licensing_v1.rb +4 -4
- data/generated/google/apis/lifesciences_v2beta/classes.rb +1329 -0
- data/generated/google/apis/lifesciences_v2beta/representations.rb +533 -0
- data/generated/google/apis/lifesciences_v2beta/service.rb +303 -0
- data/generated/google/apis/lifesciences_v2beta.rb +35 -0
- data/generated/google/apis/logging_v2/classes.rb +292 -91
- data/generated/google/apis/logging_v2/representations.rb +51 -0
- data/generated/google/apis/logging_v2/service.rb +888 -15
- data/generated/google/apis/logging_v2.rb +6 -6
- data/generated/google/apis/managedidentities_v1/classes.rb +1571 -0
- data/generated/google/apis/managedidentities_v1/representations.rb +560 -0
- data/generated/google/apis/managedidentities_v1/service.rb +779 -0
- data/generated/google/apis/managedidentities_v1.rb +35 -0
- data/generated/google/apis/managedidentities_v1alpha1/classes.rb +1570 -0
- data/generated/google/apis/managedidentities_v1alpha1/representations.rb +560 -0
- data/generated/google/apis/managedidentities_v1alpha1/service.rb +782 -0
- data/generated/google/apis/{servicebroker_v1alpha1.rb → managedidentities_v1alpha1.rb} +9 -10
- data/generated/google/apis/managedidentities_v1beta1/classes.rb +1568 -0
- data/generated/google/apis/managedidentities_v1beta1/representations.rb +560 -0
- data/generated/google/apis/managedidentities_v1beta1/service.rb +778 -0
- data/generated/google/apis/managedidentities_v1beta1.rb +35 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +7 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +1 -0
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +1587 -0
- data/generated/google/apis/memcache_v1beta2/representations.rb +557 -0
- data/generated/google/apis/memcache_v1beta2/service.rb +677 -0
- data/generated/google/apis/memcache_v1beta2.rb +35 -0
- data/generated/google/apis/ml_v1/classes.rb +1518 -233
- data/generated/google/apis/ml_v1/representations.rb +559 -0
- data/generated/google/apis/ml_v1/service.rb +560 -25
- data/generated/google/apis/ml_v1.rb +5 -2
- data/generated/google/apis/monitoring_v1/classes.rb +1231 -0
- data/generated/google/apis/monitoring_v1/representations.rb +513 -0
- data/generated/google/apis/monitoring_v1/service.rb +246 -0
- data/generated/google/apis/monitoring_v1.rb +47 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1330 -172
- data/generated/google/apis/monitoring_v3/representations.rb +482 -1
- data/generated/google/apis/monitoring_v3/service.rb +614 -162
- data/generated/google/apis/monitoring_v3.rb +7 -8
- data/generated/google/apis/networkmanagement_v1/classes.rb +1868 -0
- data/generated/google/apis/networkmanagement_v1/representations.rb +661 -0
- data/generated/google/apis/networkmanagement_v1/service.rb +667 -0
- data/generated/google/apis/networkmanagement_v1.rb +35 -0
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +1868 -0
- data/generated/google/apis/networkmanagement_v1beta1/representations.rb +661 -0
- data/generated/google/apis/networkmanagement_v1beta1/service.rb +667 -0
- data/generated/google/apis/{cloudprivatecatalogproducer_v1beta1.rb → networkmanagement_v1beta1.rb} +9 -9
- data/generated/google/apis/oauth2_v2/classes.rb +1 -81
- data/generated/google/apis/oauth2_v2/representations.rb +2 -36
- data/generated/google/apis/oauth2_v2/service.rb +10 -42
- data/generated/google/apis/oauth2_v2.rb +5 -5
- data/generated/google/apis/osconfig_v1/classes.rb +1225 -0
- data/generated/google/apis/osconfig_v1/representations.rb +506 -0
- data/generated/google/apis/osconfig_v1/service.rb +386 -0
- data/generated/google/apis/osconfig_v1.rb +35 -0
- data/generated/google/apis/osconfig_v1beta/classes.rb +2362 -0
- data/generated/google/apis/osconfig_v1beta/representations.rb +966 -0
- data/generated/google/apis/osconfig_v1beta/service.rb +605 -0
- data/generated/google/apis/osconfig_v1beta.rb +35 -0
- data/generated/google/apis/oslogin_v1/classes.rb +1 -1
- data/generated/google/apis/oslogin_v1/service.rb +10 -7
- data/generated/google/apis/oslogin_v1.rb +1 -2
- data/generated/google/apis/oslogin_v1alpha/service.rb +0 -1
- data/generated/google/apis/oslogin_v1alpha.rb +1 -2
- data/generated/google/apis/oslogin_v1beta/classes.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/service.rb +9 -6
- data/generated/google/apis/oslogin_v1beta.rb +1 -2
- data/generated/google/apis/pagespeedonline_v5/classes.rb +534 -495
- data/generated/google/apis/pagespeedonline_v5/representations.rb +226 -221
- data/generated/google/apis/pagespeedonline_v5/service.rb +22 -24
- data/generated/google/apis/pagespeedonline_v5.rb +9 -4
- data/generated/google/apis/people_v1/classes.rb +104 -81
- data/generated/google/apis/people_v1/representations.rb +1 -0
- data/generated/google/apis/people_v1/service.rb +72 -79
- data/generated/google/apis/people_v1.rb +10 -1
- data/generated/google/apis/policytroubleshooter_v1/classes.rb +765 -0
- data/generated/google/apis/policytroubleshooter_v1/representations.rb +203 -0
- data/generated/google/apis/policytroubleshooter_v1/service.rb +90 -0
- data/generated/google/apis/policytroubleshooter_v1.rb +34 -0
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +254 -111
- data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -3
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/poly_v1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +1137 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +532 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +1676 -0
- data/generated/google/apis/{pagespeedonline_v4.rb → prod_tt_sasportal_v1alpha1.rb} +12 -10
- data/generated/google/apis/pubsub_v1/classes.rb +248 -76
- data/generated/google/apis/pubsub_v1/representations.rb +18 -0
- data/generated/google/apis/pubsub_v1/service.rb +43 -31
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +144 -59
- data/generated/google/apis/pubsub_v1beta2/service.rb +10 -2
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +221 -7
- data/generated/google/apis/recommender_v1beta1/representations.rb +96 -0
- data/generated/google/apis/recommender_v1beta1/service.rb +146 -19
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +48 -18
- data/generated/google/apis/redis_v1/representations.rb +14 -0
- data/generated/google/apis/redis_v1/service.rb +41 -5
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +48 -18
- data/generated/google/apis/redis_v1beta1/representations.rb +14 -0
- data/generated/google/apis/redis_v1beta1/service.rb +41 -5
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +352 -37
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +99 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +352 -37
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +99 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +362 -45
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +100 -0
- data/generated/google/apis/remotebuildexecution_v2/service.rb +5 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/reseller_v1/service.rb +1 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +308 -325
- data/generated/google/apis/run_v1/representations.rb +63 -103
- data/generated/google/apis/run_v1/service.rb +336 -933
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +1045 -392
- data/generated/google/apis/run_v1alpha1/representations.rb +343 -144
- data/generated/google/apis/run_v1alpha1/service.rb +1735 -492
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1beta1/classes.rb +1 -1
- data/generated/google/apis/run_v1beta1.rb +4 -1
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +139 -57
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +8 -5
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/safebrowsing_v4/classes.rb +2 -2
- data/generated/google/apis/safebrowsing_v4.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/classes.rb +1137 -0
- data/generated/google/apis/sasportal_v1alpha1/representations.rb +532 -0
- data/generated/google/apis/sasportal_v1alpha1/service.rb +1676 -0
- data/generated/google/apis/{pagespeedonline_v2.rb → sasportal_v1alpha1.rb} +12 -10
- data/generated/google/apis/script_v1/classes.rb +4 -22
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1/classes.rb +982 -0
- data/generated/google/apis/{cloudprivatecatalogproducer_v1beta1 → secretmanager_v1}/representations.rb +105 -116
- data/generated/google/apis/secretmanager_v1/service.rb +681 -0
- data/generated/google/apis/secretmanager_v1.rb +35 -0
- data/generated/google/apis/secretmanager_v1beta1/classes.rb +982 -0
- data/generated/google/apis/{servicebroker_v1beta1 → secretmanager_v1beta1}/representations.rb +114 -142
- data/generated/google/apis/secretmanager_v1beta1/service.rb +681 -0
- data/generated/google/apis/secretmanager_v1beta1.rb +35 -0
- data/generated/google/apis/securitycenter_v1/classes.rb +862 -138
- data/generated/google/apis/securitycenter_v1/representations.rb +221 -0
- data/generated/google/apis/securitycenter_v1/service.rb +225 -21
- data/generated/google/apis/securitycenter_v1.rb +4 -4
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +782 -125
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +192 -2
- data/generated/google/apis/securitycenter_v1beta1/service.rb +53 -51
- data/generated/google/apis/securitycenter_v1beta1.rb +4 -4
- data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +568 -0
- data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +190 -0
- data/generated/google/apis/securitycenter_v1p1alpha1/service.rb +3 -3
- data/generated/google/apis/securitycenter_v1p1alpha1.rb +4 -4
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +2205 -0
- data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +751 -0
- data/generated/google/apis/securitycenter_v1p1beta1/service.rb +1329 -0
- data/generated/google/apis/securitycenter_v1p1beta1.rb +35 -0
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +419 -64
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +98 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +4159 -0
- data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +1307 -0
- data/generated/google/apis/serviceconsumermanagement_v1beta1/service.rb +428 -0
- data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +34 -0
- data/generated/google/apis/servicecontrol_v1/classes.rb +255 -20
- data/generated/google/apis/servicecontrol_v1/representations.rb +87 -1
- data/generated/google/apis/servicecontrol_v1/service.rb +2 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicedirectory_v1beta1/classes.rb +816 -0
- data/generated/google/apis/{surveys_v2 → servicedirectory_v1beta1}/representations.rb +103 -104
- data/generated/google/apis/servicedirectory_v1beta1/service.rb +992 -0
- data/generated/google/apis/servicedirectory_v1beta1.rb +35 -0
- data/generated/google/apis/servicemanagement_v1/classes.rb +459 -125
- data/generated/google/apis/servicemanagement_v1/representations.rb +61 -0
- data/generated/google/apis/servicemanagement_v1/service.rb +40 -29
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +986 -68
- data/generated/google/apis/servicenetworking_v1/representations.rb +403 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +351 -23
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +575 -57
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +223 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +417 -64
- data/generated/google/apis/serviceusage_v1/representations.rb +110 -0
- data/generated/google/apis/serviceusage_v1/service.rb +42 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +644 -64
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +198 -0
- data/generated/google/apis/serviceusage_v1beta1/service.rb +472 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +1741 -253
- data/generated/google/apis/sheets_v4/representations.rb +283 -0
- data/generated/google/apis/sheets_v4/service.rb +9 -11
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +1 -1
- data/generated/google/apis/slides_v1/service.rb +1 -1
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +173 -67
- data/generated/google/apis/sourcerepo_v1/service.rb +9 -1
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +706 -71
- data/generated/google/apis/spanner_v1/representations.rb +194 -0
- data/generated/google/apis/spanner_v1/service.rb +770 -7
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +15 -11
- data/generated/google/apis/speech_v1/representations.rb +2 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +197 -11
- data/generated/google/apis/speech_v1p1beta1/representations.rb +79 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/classes.rb +16 -8
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/representations.rb +7 -6
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/service.rb +13 -13
- data/generated/google/apis/{speech_v2beta.rb → speech_v2beta1.rb} +6 -6
- data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/classes.rb +701 -383
- data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/representations.rb +209 -104
- data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/service.rb +579 -597
- data/generated/google/apis/{sqladmin_v1beta4.rb → sql_v1beta4.rb} +7 -8
- data/generated/google/apis/storage_v1/classes.rb +73 -7
- data/generated/google/apis/storage_v1/representations.rb +10 -0
- data/generated/google/apis/storage_v1/service.rb +29 -4
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1beta2/service.rb +1 -1
- data/generated/google/apis/storage_v1beta2.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +280 -79
- data/generated/google/apis/storagetransfer_v1/representations.rb +52 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +19 -41
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/service.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +2 -0
- data/generated/google/apis/tagmanager_v1/service.rb +1 -1
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v2/classes.rb +170 -0
- data/generated/google/apis/tagmanager_v2/representations.rb +49 -0
- data/generated/google/apis/tagmanager_v2/service.rb +1 -1
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/tasks_v1/classes.rb +26 -25
- data/generated/google/apis/tasks_v1/representations.rb +4 -8
- data/generated/google/apis/tasks_v1/service.rb +78 -124
- data/generated/google/apis/tasks_v1.rb +3 -3
- data/generated/google/apis/testing_v1/classes.rb +187 -1
- data/generated/google/apis/testing_v1/representations.rb +93 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +2061 -1133
- data/generated/google/apis/toolresults_v1beta3/representations.rb +723 -13
- data/generated/google/apis/toolresults_v1beta3/service.rb +663 -591
- data/generated/google/apis/toolresults_v1beta3.rb +2 -2
- data/generated/google/apis/tpu_v1/classes.rb +3 -4
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -4
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/translate_v3/classes.rb +946 -0
- data/generated/google/apis/translate_v3/representations.rb +439 -0
- data/generated/google/apis/translate_v3/service.rb +781 -0
- data/generated/google/apis/translate_v3.rb +37 -0
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +10 -7
- data/generated/google/apis/vault_v1/service.rb +7 -7
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/verifiedaccess_v1/service.rb +2 -2
- data/generated/google/apis/verifiedaccess_v1.rb +3 -3
- data/generated/google/apis/videointelligence_v1/classes.rb +1205 -118
- data/generated/google/apis/videointelligence_v1/representations.rb +492 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +1205 -118
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +492 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1216 -129
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +492 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1205 -118
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +492 -0
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1290 -116
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +526 -0
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +67 -1
- data/generated/google/apis/vision_v1/representations.rb +32 -0
- data/generated/google/apis/vision_v1/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +67 -1
- data/generated/google/apis/vision_v1p1beta1/representations.rb +32 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +67 -1
- data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1/classes.rb +75 -4
- data/generated/google/apis/websecurityscanner_v1/representations.rb +32 -0
- data/generated/google/apis/websecurityscanner_v1/service.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1.rb +2 -2
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +5 -4
- data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
- data/generated/google/apis/websecurityscanner_v1beta/classes.rb +77 -6
- data/generated/google/apis/websecurityscanner_v1beta/representations.rb +32 -0
- data/generated/google/apis/websecurityscanner_v1beta/service.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1beta.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v2.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +2 -2
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +1376 -1262
- data/generated/google/apis/youtube_v3/representations.rb +99 -191
- data/generated/google/apis/youtube_v3/service.rb +1829 -2150
- data/generated/google/apis/youtube_v3.rb +8 -5
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/google-api-client.gemspec +6 -3
- data/lib/google/apis/core/api_command.rb +7 -0
- data/lib/google/apis/core/base_service.rb +1 -1
- data/lib/google/apis/core/http_command.rb +11 -10
- data/lib/google/apis/core/upload.rb +4 -0
- data/lib/google/apis/generator/annotator.rb +1 -1
- data/lib/google/apis/version.rb +9 -4
- data/rakelib/devsite/devsite_builder.rb +126 -0
- data/rakelib/devsite/link_checker.rb +64 -0
- data/rakelib/devsite/repo_metadata.rb +56 -0
- metadata +193 -110
- data/generated/google/apis/analytics_v2_4/representations.rb +0 -26
- data/generated/google/apis/analytics_v2_4/service.rb +0 -331
- data/generated/google/apis/analytics_v2_4.rb +0 -37
- data/generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb +0 -358
- data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +0 -486
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +0 -1081
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +0 -485
- data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +0 -210
- data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +0 -124
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +0 -39
- data/generated/google/apis/fusiontables_v1/classes.rb +0 -977
- data/generated/google/apis/fusiontables_v1/representations.rb +0 -449
- data/generated/google/apis/fusiontables_v1/service.rb +0 -1307
- data/generated/google/apis/fusiontables_v1.rb +0 -37
- data/generated/google/apis/fusiontables_v2/classes.rb +0 -1049
- data/generated/google/apis/fusiontables_v2/representations.rb +0 -457
- data/generated/google/apis/fusiontables_v2/service.rb +0 -1431
- data/generated/google/apis/fusiontables_v2.rb +0 -37
- data/generated/google/apis/mirror_v1/classes.rb +0 -1072
- data/generated/google/apis/mirror_v1/representations.rb +0 -390
- data/generated/google/apis/mirror_v1/service.rb +0 -928
- data/generated/google/apis/mirror_v1.rb +0 -37
- data/generated/google/apis/oauth2_v1/classes.rb +0 -197
- data/generated/google/apis/oauth2_v1/service.rb +0 -160
- data/generated/google/apis/oauth2_v1.rb +0 -40
- data/generated/google/apis/pagespeedonline_v1/classes.rb +0 -542
- data/generated/google/apis/pagespeedonline_v1/representations.rb +0 -258
- data/generated/google/apis/pagespeedonline_v1/service.rb +0 -116
- data/generated/google/apis/pagespeedonline_v2/classes.rb +0 -621
- data/generated/google/apis/pagespeedonline_v2/representations.rb +0 -273
- data/generated/google/apis/pagespeedonline_v2/service.rb +0 -116
- data/generated/google/apis/pagespeedonline_v4/classes.rb +0 -795
- data/generated/google/apis/pagespeedonline_v4/representations.rb +0 -335
- data/generated/google/apis/pagespeedonline_v4/service.rb +0 -125
- data/generated/google/apis/plus_domains_v1/classes.rb +0 -2609
- data/generated/google/apis/plus_domains_v1/representations.rb +0 -1111
- data/generated/google/apis/plus_domains_v1/service.rb +0 -489
- data/generated/google/apis/plus_domains_v1.rb +0 -55
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +0 -845
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +0 -350
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +0 -933
- data/generated/google/apis/replicapool_v1beta1/classes.rb +0 -918
- data/generated/google/apis/replicapool_v1beta1/representations.rb +0 -409
- data/generated/google/apis/replicapool_v1beta1/service.rb +0 -489
- data/generated/google/apis/replicapool_v1beta1.rb +0 -50
- data/generated/google/apis/servicebroker_v1/classes.rb +0 -333
- data/generated/google/apis/servicebroker_v1/service.rb +0 -177
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +0 -1037
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +0 -737
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +0 -1173
- data/generated/google/apis/servicebroker_v1beta1/service.rb +0 -926
- data/generated/google/apis/storage_v1beta1/classes.rb +0 -616
- data/generated/google/apis/storage_v1beta1/representations.rb +0 -249
- data/generated/google/apis/storage_v1beta1/service.rb +0 -1032
- data/generated/google/apis/storage_v1beta1.rb +0 -40
- data/generated/google/apis/surveys_v2/classes.rb +0 -691
- data/generated/google/apis/surveys_v2.rb +0 -40
- data/generated/google/apis/urlshortener_v1/classes.rb +0 -246
- data/generated/google/apis/urlshortener_v1/representations.rb +0 -121
- data/generated/google/apis/urlshortener_v1/service.rb +0 -169
- data/generated/google/apis/urlshortener_v1.rb +0 -34
@@ -221,6 +221,10 @@ module Google
|
|
221
221
|
# @param [String] name
|
222
222
|
# Required. The name of the requested instance. Values are of the form
|
223
223
|
# `projects/<project>/instances/<instance>`.
|
224
|
+
# @param [String] field_mask
|
225
|
+
# If field_mask is present, specifies the subset of Instance fields that
|
226
|
+
# should be returned.
|
227
|
+
# If absent, all Instance fields are returned.
|
224
228
|
# @param [String] fields
|
225
229
|
# Selector specifying which fields to include in a partial response.
|
226
230
|
# @param [String] quota_user
|
@@ -238,11 +242,12 @@ module Google
|
|
238
242
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
239
243
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
240
244
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
241
|
-
def get_project_instance(name, fields: nil, quota_user: nil, options: nil, &block)
|
245
|
+
def get_project_instance(name, field_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
242
246
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
243
247
|
command.response_representation = Google::Apis::SpannerV1::Instance::Representation
|
244
248
|
command.response_class = Google::Apis::SpannerV1::Instance
|
245
249
|
command.params['name'] = name unless name.nil?
|
250
|
+
command.query['fieldMask'] = field_mask unless field_mask.nil?
|
246
251
|
command.query['fields'] = fields unless fields.nil?
|
247
252
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
248
253
|
execute_or_queue_command(command, &block)
|
@@ -491,6 +496,700 @@ module Google
|
|
491
496
|
execute_or_queue_command(command, &block)
|
492
497
|
end
|
493
498
|
|
499
|
+
# Lists the backup long-running operations in
|
500
|
+
# the given instance. A backup operation has a name of the form
|
501
|
+
# `projects/<project>/instances/<instance>/backups/<backup>/operations/<
|
502
|
+
# operation>`.
|
503
|
+
# The long-running operation
|
504
|
+
# metadata field type
|
505
|
+
# `metadata.type_url` describes the type of the metadata. Operations returned
|
506
|
+
# include those that have completed/failed/canceled within the last 7 days,
|
507
|
+
# and pending operations. Operations returned are ordered by
|
508
|
+
# `operation.metadata.value.progress.start_time` in descending order starting
|
509
|
+
# from the most recently started operation.
|
510
|
+
# @param [String] parent
|
511
|
+
# Required. The instance of the backup operations. Values are of
|
512
|
+
# the form `projects/<project>/instances/<instance>`.
|
513
|
+
# @param [String] filter
|
514
|
+
# An expression that filters the list of returned backup operations.
|
515
|
+
# A filter expression consists of a field name, a
|
516
|
+
# comparison operator, and a value for filtering.
|
517
|
+
# The value must be a string, a number, or a boolean. The comparison operator
|
518
|
+
# must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
519
|
+
# Colon `:` is the contains operator. Filter rules are not case sensitive.
|
520
|
+
# The following fields in the operation
|
521
|
+
# are eligible for filtering:
|
522
|
+
# * `name` - The name of the long-running operation
|
523
|
+
# * `done` - False if the operation is in progress, else true.
|
524
|
+
# * `metadata.@type` - the type of metadata. For example, the type string
|
525
|
+
# for CreateBackupMetadata is
|
526
|
+
# `type.googleapis.com/google.spanner.admin.database.v1.
|
527
|
+
# CreateBackupMetadata`.
|
528
|
+
# * `metadata.<field_name>` - any field in metadata.value.
|
529
|
+
# * `error` - Error associated with the long-running operation.
|
530
|
+
# * `response.@type` - the type of response.
|
531
|
+
# * `response.<field_name>` - any field in response.value.
|
532
|
+
# You can combine multiple expressions by enclosing each expression in
|
533
|
+
# parentheses. By default, expressions are combined with AND logic, but
|
534
|
+
# you can specify AND, OR, and NOT logic explicitly.
|
535
|
+
# Here are a few examples:
|
536
|
+
# * `done:true` - The operation is complete.
|
537
|
+
# * `metadata.database:prod` - The database the backup was taken from has
|
538
|
+
# a name containing the string "prod".
|
539
|
+
# * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.
|
540
|
+
# CreateBackupMetadata) AND` <br/>
|
541
|
+
# `(metadata.name:howl) AND` <br/>
|
542
|
+
# `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` <br/>
|
543
|
+
# `(error:*)` - Returns operations where:
|
544
|
+
# * The operation's metadata type is CreateBackupMetadata.
|
545
|
+
# * The backup name contains the string "howl".
|
546
|
+
# * The operation started before 2018-03-28T14:50:00Z.
|
547
|
+
# * The operation resulted in an error.
|
548
|
+
# @param [Fixnum] page_size
|
549
|
+
# Number of operations to be returned in the response. If 0 or
|
550
|
+
# less, defaults to the server's maximum allowed page size.
|
551
|
+
# @param [String] page_token
|
552
|
+
# If non-empty, `page_token` should contain a
|
553
|
+
# next_page_token
|
554
|
+
# from a previous ListBackupOperationsResponse to the
|
555
|
+
# same `parent` and with the same `filter`.
|
556
|
+
# @param [String] fields
|
557
|
+
# Selector specifying which fields to include in a partial response.
|
558
|
+
# @param [String] quota_user
|
559
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
560
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
561
|
+
# @param [Google::Apis::RequestOptions] options
|
562
|
+
# Request-specific options
|
563
|
+
#
|
564
|
+
# @yield [result, err] Result & error if block supplied
|
565
|
+
# @yieldparam result [Google::Apis::SpannerV1::ListBackupOperationsResponse] parsed result object
|
566
|
+
# @yieldparam err [StandardError] error object if request failed
|
567
|
+
#
|
568
|
+
# @return [Google::Apis::SpannerV1::ListBackupOperationsResponse]
|
569
|
+
#
|
570
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
571
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
572
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
573
|
+
def list_project_instance_backupoperations(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
574
|
+
command = make_simple_command(:get, 'v1/{+parent}/backupOperations', options)
|
575
|
+
command.response_representation = Google::Apis::SpannerV1::ListBackupOperationsResponse::Representation
|
576
|
+
command.response_class = Google::Apis::SpannerV1::ListBackupOperationsResponse
|
577
|
+
command.params['parent'] = parent unless parent.nil?
|
578
|
+
command.query['filter'] = filter unless filter.nil?
|
579
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
580
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
581
|
+
command.query['fields'] = fields unless fields.nil?
|
582
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
583
|
+
execute_or_queue_command(command, &block)
|
584
|
+
end
|
585
|
+
|
586
|
+
# Starts creating a new Cloud Spanner Backup.
|
587
|
+
# The returned backup long-running operation
|
588
|
+
# will have a name of the format
|
589
|
+
# `projects/<project>/instances/<instance>/backups/<backup>/operations/<
|
590
|
+
# operation_id>`
|
591
|
+
# and can be used to track creation of the backup. The
|
592
|
+
# metadata field type is
|
593
|
+
# CreateBackupMetadata. The
|
594
|
+
# response field type is
|
595
|
+
# Backup, if successful. Cancelling the returned operation will stop the
|
596
|
+
# creation and delete the backup.
|
597
|
+
# There can be only one pending backup creation per database. Backup creation
|
598
|
+
# of different databases can run concurrently.
|
599
|
+
# @param [String] parent
|
600
|
+
# Required. The name of the instance in which the backup will be
|
601
|
+
# created. This must be the same instance that contains the database the
|
602
|
+
# backup will be created from. The backup will be stored in the
|
603
|
+
# location(s) specified in the instance configuration of this
|
604
|
+
# instance. Values are of the form
|
605
|
+
# `projects/<project>/instances/<instance>`.
|
606
|
+
# @param [Google::Apis::SpannerV1::Backup] backup_object
|
607
|
+
# @param [String] backup_id
|
608
|
+
# Required. The id of the backup to be created. The `backup_id` appended to
|
609
|
+
# `parent` forms the full backup name of the form
|
610
|
+
# `projects/<project>/instances/<instance>/backups/<backup_id>`.
|
611
|
+
# @param [String] fields
|
612
|
+
# Selector specifying which fields to include in a partial response.
|
613
|
+
# @param [String] quota_user
|
614
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
615
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
616
|
+
# @param [Google::Apis::RequestOptions] options
|
617
|
+
# Request-specific options
|
618
|
+
#
|
619
|
+
# @yield [result, err] Result & error if block supplied
|
620
|
+
# @yieldparam result [Google::Apis::SpannerV1::Operation] parsed result object
|
621
|
+
# @yieldparam err [StandardError] error object if request failed
|
622
|
+
#
|
623
|
+
# @return [Google::Apis::SpannerV1::Operation]
|
624
|
+
#
|
625
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
626
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
627
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
628
|
+
def create_project_instance_backup(parent, backup_object = nil, backup_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
629
|
+
command = make_simple_command(:post, 'v1/{+parent}/backups', options)
|
630
|
+
command.request_representation = Google::Apis::SpannerV1::Backup::Representation
|
631
|
+
command.request_object = backup_object
|
632
|
+
command.response_representation = Google::Apis::SpannerV1::Operation::Representation
|
633
|
+
command.response_class = Google::Apis::SpannerV1::Operation
|
634
|
+
command.params['parent'] = parent unless parent.nil?
|
635
|
+
command.query['backupId'] = backup_id unless backup_id.nil?
|
636
|
+
command.query['fields'] = fields unless fields.nil?
|
637
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
638
|
+
execute_or_queue_command(command, &block)
|
639
|
+
end
|
640
|
+
|
641
|
+
# Deletes a pending or completed Backup.
|
642
|
+
# @param [String] name
|
643
|
+
# Required. Name of the backup to delete.
|
644
|
+
# Values are of the form
|
645
|
+
# `projects/<project>/instances/<instance>/backups/<backup>`.
|
646
|
+
# @param [String] fields
|
647
|
+
# Selector specifying which fields to include in a partial response.
|
648
|
+
# @param [String] quota_user
|
649
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
650
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
651
|
+
# @param [Google::Apis::RequestOptions] options
|
652
|
+
# Request-specific options
|
653
|
+
#
|
654
|
+
# @yield [result, err] Result & error if block supplied
|
655
|
+
# @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
|
656
|
+
# @yieldparam err [StandardError] error object if request failed
|
657
|
+
#
|
658
|
+
# @return [Google::Apis::SpannerV1::Empty]
|
659
|
+
#
|
660
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
661
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
662
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
663
|
+
def delete_project_instance_backup(name, fields: nil, quota_user: nil, options: nil, &block)
|
664
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
665
|
+
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
666
|
+
command.response_class = Google::Apis::SpannerV1::Empty
|
667
|
+
command.params['name'] = name unless name.nil?
|
668
|
+
command.query['fields'] = fields unless fields.nil?
|
669
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
670
|
+
execute_or_queue_command(command, &block)
|
671
|
+
end
|
672
|
+
|
673
|
+
# Gets metadata on a pending or completed Backup.
|
674
|
+
# @param [String] name
|
675
|
+
# Required. Name of the backup.
|
676
|
+
# Values are of the form
|
677
|
+
# `projects/<project>/instances/<instance>/backups/<backup>`.
|
678
|
+
# @param [String] fields
|
679
|
+
# Selector specifying which fields to include in a partial response.
|
680
|
+
# @param [String] quota_user
|
681
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
682
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
683
|
+
# @param [Google::Apis::RequestOptions] options
|
684
|
+
# Request-specific options
|
685
|
+
#
|
686
|
+
# @yield [result, err] Result & error if block supplied
|
687
|
+
# @yieldparam result [Google::Apis::SpannerV1::Backup] parsed result object
|
688
|
+
# @yieldparam err [StandardError] error object if request failed
|
689
|
+
#
|
690
|
+
# @return [Google::Apis::SpannerV1::Backup]
|
691
|
+
#
|
692
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
693
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
694
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
695
|
+
def get_project_instance_backup(name, fields: nil, quota_user: nil, options: nil, &block)
|
696
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
697
|
+
command.response_representation = Google::Apis::SpannerV1::Backup::Representation
|
698
|
+
command.response_class = Google::Apis::SpannerV1::Backup
|
699
|
+
command.params['name'] = name unless name.nil?
|
700
|
+
command.query['fields'] = fields unless fields.nil?
|
701
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
702
|
+
execute_or_queue_command(command, &block)
|
703
|
+
end
|
704
|
+
|
705
|
+
# Gets the access control policy for a database or backup resource.
|
706
|
+
# Returns an empty policy if a database or backup exists but does not have a
|
707
|
+
# policy set.
|
708
|
+
# Authorization requires `spanner.databases.getIamPolicy` permission on
|
709
|
+
# resource.
|
710
|
+
# For backups, authorization requires `spanner.backups.getIamPolicy`
|
711
|
+
# permission on resource.
|
712
|
+
# @param [String] resource
|
713
|
+
# REQUIRED: The Cloud Spanner resource for which the policy is being retrieved.
|
714
|
+
# The format is `projects/<project ID>/instances/<instance ID>` for instance
|
715
|
+
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
716
|
+
# database ID>` for database resources.
|
717
|
+
# @param [Google::Apis::SpannerV1::GetIamPolicyRequest] get_iam_policy_request_object
|
718
|
+
# @param [String] fields
|
719
|
+
# Selector specifying which fields to include in a partial response.
|
720
|
+
# @param [String] quota_user
|
721
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
722
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
723
|
+
# @param [Google::Apis::RequestOptions] options
|
724
|
+
# Request-specific options
|
725
|
+
#
|
726
|
+
# @yield [result, err] Result & error if block supplied
|
727
|
+
# @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
|
728
|
+
# @yieldparam err [StandardError] error object if request failed
|
729
|
+
#
|
730
|
+
# @return [Google::Apis::SpannerV1::Policy]
|
731
|
+
#
|
732
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
733
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
734
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
735
|
+
def get_backup_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
736
|
+
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
|
737
|
+
command.request_representation = Google::Apis::SpannerV1::GetIamPolicyRequest::Representation
|
738
|
+
command.request_object = get_iam_policy_request_object
|
739
|
+
command.response_representation = Google::Apis::SpannerV1::Policy::Representation
|
740
|
+
command.response_class = Google::Apis::SpannerV1::Policy
|
741
|
+
command.params['resource'] = resource unless resource.nil?
|
742
|
+
command.query['fields'] = fields unless fields.nil?
|
743
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
744
|
+
execute_or_queue_command(command, &block)
|
745
|
+
end
|
746
|
+
|
747
|
+
# Lists completed and pending backups.
|
748
|
+
# Backups returned are ordered by `create_time` in descending order,
|
749
|
+
# starting from the most recent `create_time`.
|
750
|
+
# @param [String] parent
|
751
|
+
# Required. The instance to list backups from. Values are of the
|
752
|
+
# form `projects/<project>/instances/<instance>`.
|
753
|
+
# @param [String] filter
|
754
|
+
# An expression that filters the list of returned backups.
|
755
|
+
# A filter expression consists of a field name, a comparison operator, and a
|
756
|
+
# value for filtering.
|
757
|
+
# The value must be a string, a number, or a boolean. The comparison operator
|
758
|
+
# must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
759
|
+
# Colon `:` is the contains operator. Filter rules are not case sensitive.
|
760
|
+
# The following fields in the Backup are eligible for filtering:
|
761
|
+
# * `name`
|
762
|
+
# * `database`
|
763
|
+
# * `state`
|
764
|
+
# * `create_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
|
765
|
+
# * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
|
766
|
+
# * `size_bytes`
|
767
|
+
# You can combine multiple expressions by enclosing each expression in
|
768
|
+
# parentheses. By default, expressions are combined with AND logic, but
|
769
|
+
# you can specify AND, OR, and NOT logic explicitly.
|
770
|
+
# Here are a few examples:
|
771
|
+
# * `name:Howl` - The backup's name contains the string "howl".
|
772
|
+
# * `database:prod`
|
773
|
+
# - The database's name contains the string "prod".
|
774
|
+
# * `state:CREATING` - The backup is pending creation.
|
775
|
+
# * `state:READY` - The backup is fully created and ready for use.
|
776
|
+
# * `(name:howl) AND (create_time < \"2018-03-28T14:50:00Z\")`
|
777
|
+
# - The backup name contains the string "howl" and `create_time`
|
778
|
+
# of the backup is before 2018-03-28T14:50:00Z.
|
779
|
+
# * `expire_time < \"2018-03-28T14:50:00Z\"`
|
780
|
+
# - The backup `expire_time` is before 2018-03-28T14:50:00Z.
|
781
|
+
# * `size_bytes > 10000000000` - The backup's size is greater than 10GB
|
782
|
+
# @param [Fixnum] page_size
|
783
|
+
# Number of backups to be returned in the response. If 0 or
|
784
|
+
# less, defaults to the server's maximum allowed page size.
|
785
|
+
# @param [String] page_token
|
786
|
+
# If non-empty, `page_token` should contain a
|
787
|
+
# next_page_token from a
|
788
|
+
# previous ListBackupsResponse to the same `parent` and with the same
|
789
|
+
# `filter`.
|
790
|
+
# @param [String] fields
|
791
|
+
# Selector specifying which fields to include in a partial response.
|
792
|
+
# @param [String] quota_user
|
793
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
794
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
795
|
+
# @param [Google::Apis::RequestOptions] options
|
796
|
+
# Request-specific options
|
797
|
+
#
|
798
|
+
# @yield [result, err] Result & error if block supplied
|
799
|
+
# @yieldparam result [Google::Apis::SpannerV1::ListBackupsResponse] parsed result object
|
800
|
+
# @yieldparam err [StandardError] error object if request failed
|
801
|
+
#
|
802
|
+
# @return [Google::Apis::SpannerV1::ListBackupsResponse]
|
803
|
+
#
|
804
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
805
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
806
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
807
|
+
def list_project_instance_backups(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
808
|
+
command = make_simple_command(:get, 'v1/{+parent}/backups', options)
|
809
|
+
command.response_representation = Google::Apis::SpannerV1::ListBackupsResponse::Representation
|
810
|
+
command.response_class = Google::Apis::SpannerV1::ListBackupsResponse
|
811
|
+
command.params['parent'] = parent unless parent.nil?
|
812
|
+
command.query['filter'] = filter unless filter.nil?
|
813
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
814
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
815
|
+
command.query['fields'] = fields unless fields.nil?
|
816
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
817
|
+
execute_or_queue_command(command, &block)
|
818
|
+
end
|
819
|
+
|
820
|
+
# Updates a pending or completed Backup.
|
821
|
+
# @param [String] name
|
822
|
+
# Output only for the CreateBackup operation.
|
823
|
+
# Required for the UpdateBackup operation.
|
824
|
+
# A globally unique identifier for the backup which cannot be
|
825
|
+
# changed. Values are of the form
|
826
|
+
# `projects/<project>/instances/<instance>/backups/a-z*[a-z0-9]`
|
827
|
+
# The final segment of the name must be between 2 and 60 characters
|
828
|
+
# in length.
|
829
|
+
# The backup is stored in the location(s) specified in the instance
|
830
|
+
# configuration of the instance containing the backup, identified
|
831
|
+
# by the prefix of the backup name of the form
|
832
|
+
# `projects/<project>/instances/<instance>`.
|
833
|
+
# @param [Google::Apis::SpannerV1::Backup] backup_object
|
834
|
+
# @param [String] update_mask
|
835
|
+
# Required. A mask specifying which fields (e.g. `expire_time`) in the
|
836
|
+
# Backup resource should be updated. This mask is relative to the Backup
|
837
|
+
# resource, not to the request message. The field mask must always be
|
838
|
+
# specified; this prevents any future fields from being erased accidentally
|
839
|
+
# by clients that do not know about them.
|
840
|
+
# @param [String] fields
|
841
|
+
# Selector specifying which fields to include in a partial response.
|
842
|
+
# @param [String] quota_user
|
843
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
844
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
845
|
+
# @param [Google::Apis::RequestOptions] options
|
846
|
+
# Request-specific options
|
847
|
+
#
|
848
|
+
# @yield [result, err] Result & error if block supplied
|
849
|
+
# @yieldparam result [Google::Apis::SpannerV1::Backup] parsed result object
|
850
|
+
# @yieldparam err [StandardError] error object if request failed
|
851
|
+
#
|
852
|
+
# @return [Google::Apis::SpannerV1::Backup]
|
853
|
+
#
|
854
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
855
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
856
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
857
|
+
def patch_project_instance_backup(name, backup_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
858
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
859
|
+
command.request_representation = Google::Apis::SpannerV1::Backup::Representation
|
860
|
+
command.request_object = backup_object
|
861
|
+
command.response_representation = Google::Apis::SpannerV1::Backup::Representation
|
862
|
+
command.response_class = Google::Apis::SpannerV1::Backup
|
863
|
+
command.params['name'] = name unless name.nil?
|
864
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
865
|
+
command.query['fields'] = fields unless fields.nil?
|
866
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
867
|
+
execute_or_queue_command(command, &block)
|
868
|
+
end
|
869
|
+
|
870
|
+
# Sets the access control policy on a database or backup resource.
|
871
|
+
# Replaces any existing policy.
|
872
|
+
# Authorization requires `spanner.databases.setIamPolicy`
|
873
|
+
# permission on resource.
|
874
|
+
# For backups, authorization requires `spanner.backups.setIamPolicy`
|
875
|
+
# permission on resource.
|
876
|
+
# @param [String] resource
|
877
|
+
# REQUIRED: The Cloud Spanner resource for which the policy is being set. The
|
878
|
+
# format is `projects/<project ID>/instances/<instance ID>` for instance
|
879
|
+
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
880
|
+
# database ID>` for databases resources.
|
881
|
+
# @param [Google::Apis::SpannerV1::SetIamPolicyRequest] set_iam_policy_request_object
|
882
|
+
# @param [String] fields
|
883
|
+
# Selector specifying which fields to include in a partial response.
|
884
|
+
# @param [String] quota_user
|
885
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
886
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
887
|
+
# @param [Google::Apis::RequestOptions] options
|
888
|
+
# Request-specific options
|
889
|
+
#
|
890
|
+
# @yield [result, err] Result & error if block supplied
|
891
|
+
# @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
|
892
|
+
# @yieldparam err [StandardError] error object if request failed
|
893
|
+
#
|
894
|
+
# @return [Google::Apis::SpannerV1::Policy]
|
895
|
+
#
|
896
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
897
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
898
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
899
|
+
def set_backup_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
900
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
901
|
+
command.request_representation = Google::Apis::SpannerV1::SetIamPolicyRequest::Representation
|
902
|
+
command.request_object = set_iam_policy_request_object
|
903
|
+
command.response_representation = Google::Apis::SpannerV1::Policy::Representation
|
904
|
+
command.response_class = Google::Apis::SpannerV1::Policy
|
905
|
+
command.params['resource'] = resource unless resource.nil?
|
906
|
+
command.query['fields'] = fields unless fields.nil?
|
907
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
908
|
+
execute_or_queue_command(command, &block)
|
909
|
+
end
|
910
|
+
|
911
|
+
# Returns permissions that the caller has on the specified database or backup
|
912
|
+
# resource.
|
913
|
+
# Attempting this RPC on a non-existent Cloud Spanner database will
|
914
|
+
# result in a NOT_FOUND error if the user has
|
915
|
+
# `spanner.databases.list` permission on the containing Cloud
|
916
|
+
# Spanner instance. Otherwise returns an empty set of permissions.
|
917
|
+
# Calling this method on a backup that does not exist will
|
918
|
+
# result in a NOT_FOUND error if the user has
|
919
|
+
# `spanner.backups.list` permission on the containing instance.
|
920
|
+
# @param [String] resource
|
921
|
+
# REQUIRED: The Cloud Spanner resource for which permissions are being tested.
|
922
|
+
# The format is `projects/<project ID>/instances/<instance ID>` for instance
|
923
|
+
# resources and `projects/<project ID>/instances/<instance ID>/databases/<
|
924
|
+
# database ID>` for database resources.
|
925
|
+
# @param [Google::Apis::SpannerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
926
|
+
# @param [String] fields
|
927
|
+
# Selector specifying which fields to include in a partial response.
|
928
|
+
# @param [String] quota_user
|
929
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
930
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
931
|
+
# @param [Google::Apis::RequestOptions] options
|
932
|
+
# Request-specific options
|
933
|
+
#
|
934
|
+
# @yield [result, err] Result & error if block supplied
|
935
|
+
# @yieldparam result [Google::Apis::SpannerV1::TestIamPermissionsResponse] parsed result object
|
936
|
+
# @yieldparam err [StandardError] error object if request failed
|
937
|
+
#
|
938
|
+
# @return [Google::Apis::SpannerV1::TestIamPermissionsResponse]
|
939
|
+
#
|
940
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
941
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
942
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
943
|
+
def test_backup_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
944
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
945
|
+
command.request_representation = Google::Apis::SpannerV1::TestIamPermissionsRequest::Representation
|
946
|
+
command.request_object = test_iam_permissions_request_object
|
947
|
+
command.response_representation = Google::Apis::SpannerV1::TestIamPermissionsResponse::Representation
|
948
|
+
command.response_class = Google::Apis::SpannerV1::TestIamPermissionsResponse
|
949
|
+
command.params['resource'] = resource unless resource.nil?
|
950
|
+
command.query['fields'] = fields unless fields.nil?
|
951
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
952
|
+
execute_or_queue_command(command, &block)
|
953
|
+
end
|
954
|
+
|
955
|
+
# Starts asynchronous cancellation on a long-running operation. The server
|
956
|
+
# makes a best effort to cancel the operation, but success is not
|
957
|
+
# guaranteed. If the server doesn't support this method, it returns
|
958
|
+
# `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
959
|
+
# Operations.GetOperation or
|
960
|
+
# other methods to check whether the cancellation succeeded or whether the
|
961
|
+
# operation completed despite cancellation. On successful cancellation,
|
962
|
+
# the operation is not deleted; instead, it becomes an operation with
|
963
|
+
# an Operation.error value with a google.rpc.Status.code of 1,
|
964
|
+
# corresponding to `Code.CANCELLED`.
|
965
|
+
# @param [String] name
|
966
|
+
# The name of the operation resource to be cancelled.
|
967
|
+
# @param [String] fields
|
968
|
+
# Selector specifying which fields to include in a partial response.
|
969
|
+
# @param [String] quota_user
|
970
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
971
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
972
|
+
# @param [Google::Apis::RequestOptions] options
|
973
|
+
# Request-specific options
|
974
|
+
#
|
975
|
+
# @yield [result, err] Result & error if block supplied
|
976
|
+
# @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
|
977
|
+
# @yieldparam err [StandardError] error object if request failed
|
978
|
+
#
|
979
|
+
# @return [Google::Apis::SpannerV1::Empty]
|
980
|
+
#
|
981
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
982
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
983
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
984
|
+
def cancel_project_instance_backup_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
985
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
986
|
+
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
987
|
+
command.response_class = Google::Apis::SpannerV1::Empty
|
988
|
+
command.params['name'] = name unless name.nil?
|
989
|
+
command.query['fields'] = fields unless fields.nil?
|
990
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
991
|
+
execute_or_queue_command(command, &block)
|
992
|
+
end
|
993
|
+
|
994
|
+
# Deletes a long-running operation. This method indicates that the client is
|
995
|
+
# no longer interested in the operation result. It does not cancel the
|
996
|
+
# operation. If the server doesn't support this method, it returns
|
997
|
+
# `google.rpc.Code.UNIMPLEMENTED`.
|
998
|
+
# @param [String] name
|
999
|
+
# The name of the operation resource to be deleted.
|
1000
|
+
# @param [String] fields
|
1001
|
+
# Selector specifying which fields to include in a partial response.
|
1002
|
+
# @param [String] quota_user
|
1003
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1004
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1005
|
+
# @param [Google::Apis::RequestOptions] options
|
1006
|
+
# Request-specific options
|
1007
|
+
#
|
1008
|
+
# @yield [result, err] Result & error if block supplied
|
1009
|
+
# @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
|
1010
|
+
# @yieldparam err [StandardError] error object if request failed
|
1011
|
+
#
|
1012
|
+
# @return [Google::Apis::SpannerV1::Empty]
|
1013
|
+
#
|
1014
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1015
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1016
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1017
|
+
def delete_project_instance_backup_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1018
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1019
|
+
command.response_representation = Google::Apis::SpannerV1::Empty::Representation
|
1020
|
+
command.response_class = Google::Apis::SpannerV1::Empty
|
1021
|
+
command.params['name'] = name unless name.nil?
|
1022
|
+
command.query['fields'] = fields unless fields.nil?
|
1023
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1024
|
+
execute_or_queue_command(command, &block)
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
# Gets the latest state of a long-running operation. Clients can use this
|
1028
|
+
# method to poll the operation result at intervals as recommended by the API
|
1029
|
+
# service.
|
1030
|
+
# @param [String] name
|
1031
|
+
# The name of the operation resource.
|
1032
|
+
# @param [String] fields
|
1033
|
+
# Selector specifying which fields to include in a partial response.
|
1034
|
+
# @param [String] quota_user
|
1035
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1036
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1037
|
+
# @param [Google::Apis::RequestOptions] options
|
1038
|
+
# Request-specific options
|
1039
|
+
#
|
1040
|
+
# @yield [result, err] Result & error if block supplied
|
1041
|
+
# @yieldparam result [Google::Apis::SpannerV1::Operation] parsed result object
|
1042
|
+
# @yieldparam err [StandardError] error object if request failed
|
1043
|
+
#
|
1044
|
+
# @return [Google::Apis::SpannerV1::Operation]
|
1045
|
+
#
|
1046
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1047
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1048
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1049
|
+
def get_project_instance_backup_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1050
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1051
|
+
command.response_representation = Google::Apis::SpannerV1::Operation::Representation
|
1052
|
+
command.response_class = Google::Apis::SpannerV1::Operation
|
1053
|
+
command.params['name'] = name unless name.nil?
|
1054
|
+
command.query['fields'] = fields unless fields.nil?
|
1055
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1056
|
+
execute_or_queue_command(command, &block)
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
# Lists operations that match the specified filter in the request. If the
|
1060
|
+
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
1061
|
+
# NOTE: the `name` binding allows API services to override the binding
|
1062
|
+
# to use different resource name schemes, such as `users/*/operations`. To
|
1063
|
+
# override the binding, API services can add a binding such as
|
1064
|
+
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
1065
|
+
# For backwards compatibility, the default name includes the operations
|
1066
|
+
# collection id, however overriding users must ensure the name binding
|
1067
|
+
# is the parent resource, without the operations collection id.
|
1068
|
+
# @param [String] name
|
1069
|
+
# The name of the operation's parent resource.
|
1070
|
+
# @param [String] filter
|
1071
|
+
# The standard list filter.
|
1072
|
+
# @param [Fixnum] page_size
|
1073
|
+
# The standard list page size.
|
1074
|
+
# @param [String] page_token
|
1075
|
+
# The standard list page token.
|
1076
|
+
# @param [String] fields
|
1077
|
+
# Selector specifying which fields to include in a partial response.
|
1078
|
+
# @param [String] quota_user
|
1079
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1080
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1081
|
+
# @param [Google::Apis::RequestOptions] options
|
1082
|
+
# Request-specific options
|
1083
|
+
#
|
1084
|
+
# @yield [result, err] Result & error if block supplied
|
1085
|
+
# @yieldparam result [Google::Apis::SpannerV1::ListOperationsResponse] parsed result object
|
1086
|
+
# @yieldparam err [StandardError] error object if request failed
|
1087
|
+
#
|
1088
|
+
# @return [Google::Apis::SpannerV1::ListOperationsResponse]
|
1089
|
+
#
|
1090
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1091
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1092
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1093
|
+
def list_project_instance_backup_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1094
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1095
|
+
command.response_representation = Google::Apis::SpannerV1::ListOperationsResponse::Representation
|
1096
|
+
command.response_class = Google::Apis::SpannerV1::ListOperationsResponse
|
1097
|
+
command.params['name'] = name unless name.nil?
|
1098
|
+
command.query['filter'] = filter unless filter.nil?
|
1099
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1100
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1101
|
+
command.query['fields'] = fields unless fields.nil?
|
1102
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1103
|
+
execute_or_queue_command(command, &block)
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
# Lists database longrunning-operations.
|
1107
|
+
# A database operation has a name of the form
|
1108
|
+
# `projects/<project>/instances/<instance>/databases/<database>/operations/<
|
1109
|
+
# operation>`.
|
1110
|
+
# The long-running operation
|
1111
|
+
# metadata field type
|
1112
|
+
# `metadata.type_url` describes the type of the metadata. Operations returned
|
1113
|
+
# include those that have completed/failed/canceled within the last 7 days,
|
1114
|
+
# and pending operations.
|
1115
|
+
# @param [String] parent
|
1116
|
+
# Required. The instance of the database operations.
|
1117
|
+
# Values are of the form `projects/<project>/instances/<instance>`.
|
1118
|
+
# @param [String] filter
|
1119
|
+
# An expression that filters the list of returned operations.
|
1120
|
+
# A filter expression consists of a field name, a
|
1121
|
+
# comparison operator, and a value for filtering.
|
1122
|
+
# The value must be a string, a number, or a boolean. The comparison operator
|
1123
|
+
# must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
1124
|
+
# Colon `:` is the contains operator. Filter rules are not case sensitive.
|
1125
|
+
# The following fields in the Operation
|
1126
|
+
# are eligible for filtering:
|
1127
|
+
# * `name` - The name of the long-running operation
|
1128
|
+
# * `done` - False if the operation is in progress, else true.
|
1129
|
+
# * `metadata.@type` - the type of metadata. For example, the type string
|
1130
|
+
# for RestoreDatabaseMetadata is
|
1131
|
+
# `type.googleapis.com/google.spanner.admin.database.v1.
|
1132
|
+
# RestoreDatabaseMetadata`.
|
1133
|
+
# * `metadata.<field_name>` - any field in metadata.value.
|
1134
|
+
# * `error` - Error associated with the long-running operation.
|
1135
|
+
# * `response.@type` - the type of response.
|
1136
|
+
# * `response.<field_name>` - any field in response.value.
|
1137
|
+
# You can combine multiple expressions by enclosing each expression in
|
1138
|
+
# parentheses. By default, expressions are combined with AND logic. However,
|
1139
|
+
# you can specify AND, OR, and NOT logic explicitly.
|
1140
|
+
# Here are a few examples:
|
1141
|
+
# * `done:true` - The operation is complete.
|
1142
|
+
# * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.
|
1143
|
+
# RestoreDatabaseMetadata) AND` <br/>
|
1144
|
+
# `(metadata.source_type:BACKUP) AND` <br/>
|
1145
|
+
# `(metadata.backup_info.backup:backup_howl) AND` <br/>
|
1146
|
+
# `(metadata.name:restored_howl) AND` <br/>
|
1147
|
+
# `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` <br/>
|
1148
|
+
# `(error:*)` - Return operations where:
|
1149
|
+
# * The operation's metadata type is RestoreDatabaseMetadata.
|
1150
|
+
# * The database is restored from a backup.
|
1151
|
+
# * The backup name contains "backup_howl".
|
1152
|
+
# * The restored database's name contains "restored_howl".
|
1153
|
+
# * The operation started before 2018-03-28T14:50:00Z.
|
1154
|
+
# * The operation resulted in an error.
|
1155
|
+
# @param [Fixnum] page_size
|
1156
|
+
# Number of operations to be returned in the response. If 0 or
|
1157
|
+
# less, defaults to the server's maximum allowed page size.
|
1158
|
+
# @param [String] page_token
|
1159
|
+
# If non-empty, `page_token` should contain a
|
1160
|
+
# next_page_token
|
1161
|
+
# from a previous ListDatabaseOperationsResponse to the
|
1162
|
+
# same `parent` and with the same `filter`.
|
1163
|
+
# @param [String] fields
|
1164
|
+
# Selector specifying which fields to include in a partial response.
|
1165
|
+
# @param [String] quota_user
|
1166
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1167
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1168
|
+
# @param [Google::Apis::RequestOptions] options
|
1169
|
+
# Request-specific options
|
1170
|
+
#
|
1171
|
+
# @yield [result, err] Result & error if block supplied
|
1172
|
+
# @yieldparam result [Google::Apis::SpannerV1::ListDatabaseOperationsResponse] parsed result object
|
1173
|
+
# @yieldparam err [StandardError] error object if request failed
|
1174
|
+
#
|
1175
|
+
# @return [Google::Apis::SpannerV1::ListDatabaseOperationsResponse]
|
1176
|
+
#
|
1177
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1178
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1179
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1180
|
+
def list_project_instance_databaseoperations(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1181
|
+
command = make_simple_command(:get, 'v1/{+parent}/databaseOperations', options)
|
1182
|
+
command.response_representation = Google::Apis::SpannerV1::ListDatabaseOperationsResponse::Representation
|
1183
|
+
command.response_class = Google::Apis::SpannerV1::ListDatabaseOperationsResponse
|
1184
|
+
command.params['parent'] = parent unless parent.nil?
|
1185
|
+
command.query['filter'] = filter unless filter.nil?
|
1186
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1187
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1188
|
+
command.query['fields'] = fields unless fields.nil?
|
1189
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1190
|
+
execute_or_queue_command(command, &block)
|
1191
|
+
end
|
1192
|
+
|
494
1193
|
# Creates a new Cloud Spanner database and starts to prepare it for serving.
|
495
1194
|
# The returned long-running operation will
|
496
1195
|
# have a name of the format `<database_name>/operations/<operation_id>` and
|
@@ -533,6 +1232,8 @@ module Google
|
|
533
1232
|
end
|
534
1233
|
|
535
1234
|
# Drops (aka deletes) a Cloud Spanner database.
|
1235
|
+
# Completed backups for the database will be retained according to their
|
1236
|
+
# `expire_time`.
|
536
1237
|
# @param [String] database
|
537
1238
|
# Required. The database to be dropped.
|
538
1239
|
# @param [String] fields
|
@@ -625,11 +1326,13 @@ module Google
|
|
625
1326
|
execute_or_queue_command(command, &block)
|
626
1327
|
end
|
627
1328
|
|
628
|
-
# Gets the access control policy for a database resource.
|
629
|
-
# Returns an empty policy if a database exists but does
|
630
|
-
#
|
1329
|
+
# Gets the access control policy for a database or backup resource.
|
1330
|
+
# Returns an empty policy if a database or backup exists but does not have a
|
1331
|
+
# policy set.
|
631
1332
|
# Authorization requires `spanner.databases.getIamPolicy` permission on
|
632
1333
|
# resource.
|
1334
|
+
# For backups, authorization requires `spanner.backups.getIamPolicy`
|
1335
|
+
# permission on resource.
|
633
1336
|
# @param [String] resource
|
634
1337
|
# REQUIRED: The Cloud Spanner resource for which the policy is being retrieved.
|
635
1338
|
# The format is `projects/<project ID>/instances/<instance ID>` for instance
|
@@ -705,10 +1408,66 @@ module Google
|
|
705
1408
|
execute_or_queue_command(command, &block)
|
706
1409
|
end
|
707
1410
|
|
708
|
-
#
|
1411
|
+
# Create a new database by restoring from a completed backup. The new
|
1412
|
+
# database must be in the same project and in an instance with the same
|
1413
|
+
# instance configuration as the instance containing
|
1414
|
+
# the backup. The returned database long-running
|
1415
|
+
# operation has a name of the format
|
1416
|
+
# `projects/<project>/instances/<instance>/databases/<database>/operations/<
|
1417
|
+
# operation_id>`,
|
1418
|
+
# and can be used to track the progress of the operation, and to cancel it.
|
1419
|
+
# The metadata field type is
|
1420
|
+
# RestoreDatabaseMetadata.
|
1421
|
+
# The response type
|
1422
|
+
# is Database, if
|
1423
|
+
# successful. Cancelling the returned operation will stop the restore and
|
1424
|
+
# delete the database.
|
1425
|
+
# There can be only one database being restored into an instance at a time.
|
1426
|
+
# Once the restore operation completes, a new restore operation can be
|
1427
|
+
# initiated, without waiting for the optimize operation associated with the
|
1428
|
+
# first restore to complete.
|
1429
|
+
# @param [String] parent
|
1430
|
+
# Required. The name of the instance in which to create the
|
1431
|
+
# restored database. This instance must be in the same project and
|
1432
|
+
# have the same instance configuration as the instance containing
|
1433
|
+
# the source backup. Values are of the form
|
1434
|
+
# `projects/<project>/instances/<instance>`.
|
1435
|
+
# @param [Google::Apis::SpannerV1::RestoreDatabaseRequest] restore_database_request_object
|
1436
|
+
# @param [String] fields
|
1437
|
+
# Selector specifying which fields to include in a partial response.
|
1438
|
+
# @param [String] quota_user
|
1439
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1440
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1441
|
+
# @param [Google::Apis::RequestOptions] options
|
1442
|
+
# Request-specific options
|
1443
|
+
#
|
1444
|
+
# @yield [result, err] Result & error if block supplied
|
1445
|
+
# @yieldparam result [Google::Apis::SpannerV1::Operation] parsed result object
|
1446
|
+
# @yieldparam err [StandardError] error object if request failed
|
1447
|
+
#
|
1448
|
+
# @return [Google::Apis::SpannerV1::Operation]
|
1449
|
+
#
|
1450
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1451
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1452
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1453
|
+
def restore_database(parent, restore_database_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1454
|
+
command = make_simple_command(:post, 'v1/{+parent}/databases:restore', options)
|
1455
|
+
command.request_representation = Google::Apis::SpannerV1::RestoreDatabaseRequest::Representation
|
1456
|
+
command.request_object = restore_database_request_object
|
1457
|
+
command.response_representation = Google::Apis::SpannerV1::Operation::Representation
|
1458
|
+
command.response_class = Google::Apis::SpannerV1::Operation
|
1459
|
+
command.params['parent'] = parent unless parent.nil?
|
1460
|
+
command.query['fields'] = fields unless fields.nil?
|
1461
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1462
|
+
execute_or_queue_command(command, &block)
|
1463
|
+
end
|
1464
|
+
|
1465
|
+
# Sets the access control policy on a database or backup resource.
|
709
1466
|
# Replaces any existing policy.
|
710
1467
|
# Authorization requires `spanner.databases.setIamPolicy`
|
711
1468
|
# permission on resource.
|
1469
|
+
# For backups, authorization requires `spanner.backups.setIamPolicy`
|
1470
|
+
# permission on resource.
|
712
1471
|
# @param [String] resource
|
713
1472
|
# REQUIRED: The Cloud Spanner resource for which the policy is being set. The
|
714
1473
|
# format is `projects/<project ID>/instances/<instance ID>` for instance
|
@@ -744,11 +1503,15 @@ module Google
|
|
744
1503
|
execute_or_queue_command(command, &block)
|
745
1504
|
end
|
746
1505
|
|
747
|
-
# Returns permissions that the caller has on the specified database
|
1506
|
+
# Returns permissions that the caller has on the specified database or backup
|
1507
|
+
# resource.
|
748
1508
|
# Attempting this RPC on a non-existent Cloud Spanner database will
|
749
1509
|
# result in a NOT_FOUND error if the user has
|
750
1510
|
# `spanner.databases.list` permission on the containing Cloud
|
751
1511
|
# Spanner instance. Otherwise returns an empty set of permissions.
|
1512
|
+
# Calling this method on a backup that does not exist will
|
1513
|
+
# result in a NOT_FOUND error if the user has
|
1514
|
+
# `spanner.backups.list` permission on the containing instance.
|
752
1515
|
# @param [String] resource
|
753
1516
|
# REQUIRED: The Cloud Spanner resource for which permissions are being tested.
|
754
1517
|
# The format is `projects/<project ID>/instances/<instance ID>` for instance
|
@@ -1095,7 +1858,7 @@ module Google
|
|
1095
1858
|
# limit.
|
1096
1859
|
# Active sessions use additional server resources, so it is a good idea to
|
1097
1860
|
# delete idle and unneeded sessions.
|
1098
|
-
# Aside from explicit deletes, Cloud Spanner
|
1861
|
+
# Aside from explicit deletes, Cloud Spanner may delete sessions for which no
|
1099
1862
|
# operations are sent for more than an hour. If a session is deleted,
|
1100
1863
|
# requests to it return `NOT_FOUND`.
|
1101
1864
|
# Idle sessions can be kept alive by sending a trivial SQL query
|