google-api-client 0.37.3 → 0.38.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +146 -0
- data/api_list_config.yaml +2 -0
- data/api_names.yaml +2 -0
- data/bin/generate-api +9 -1
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +0 -36
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +0 -6
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +0 -36
- data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +0 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +10 -3
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +0 -147
- 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/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +5 -1
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +2 -2
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +2 -2
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/service.rb +2 -2
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +2 -2
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +224 -5
- data/generated/google/apis/bigquery_v2/representations.rb +65 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +413 -0
- data/generated/google/apis/bigqueryreservation_v1/representations.rb +194 -0
- data/generated/google/apis/bigqueryreservation_v1/service.rb +745 -0
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +69 -20
- data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +29 -13
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +4 -39
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +20 -17
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +26 -21
- data/generated/google/apis/bigtableadmin_v2/service.rb +93 -53
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/service.rb +3 -3
- data/generated/google/apis/blogger_v2.rb +5 -4
- 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_v3.rb +4 -3
- 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/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +1 -14
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +1 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +81 -90
- data/generated/google/apis/cloudasset_v1/representations.rb +1 -6
- data/generated/google/apis/cloudasset_v1/service.rb +2 -2
- data/generated/google/apis/cloudasset_v1p1beta1.rb +34 -0
- data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +669 -0
- data/generated/google/apis/cloudasset_v1p1beta1/representations.rb +199 -0
- data/generated/google/apis/cloudasset_v1p1beta1/service.rb +187 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +12 -1
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +9 -0
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +9 -0
- data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +8 -0
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +0 -561
- data/generated/google/apis/cloudidentity_v1/representations.rb +0 -226
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +652 -2
- data/generated/google/apis/cloudidentity_v1beta1/representations.rb +272 -0
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +3 -0
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +52 -50
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +6 -1
- data/generated/google/apis/cloudtrace_v1.rb +3 -3
- data/generated/google/apis/cloudtrace_v1/service.rb +2 -2
- data/generated/google/apis/cloudtrace_v2.rb +3 -3
- data/generated/google/apis/cloudtrace_v2/service.rb +2 -2
- data/generated/google/apis/cloudtrace_v2beta1.rb +3 -3
- data/generated/google/apis/cloudtrace_v2beta1/classes.rb +1 -2
- data/generated/google/apis/cloudtrace_v2beta1/service.rb +2 -2
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +178 -0
- data/generated/google/apis/composer_v1/representations.rb +54 -0
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +36 -5
- data/generated/google/apis/composer_v1beta1/representations.rb +4 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +1320 -307
- data/generated/google/apis/compute_alpha/representations.rb +284 -18
- data/generated/google/apis/compute_alpha/service.rb +4914 -3211
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +819 -236
- data/generated/google/apis/compute_beta/representations.rb +245 -16
- data/generated/google/apis/compute_beta/service.rb +3369 -2227
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +837 -133
- data/generated/google/apis/compute_v1/representations.rb +307 -0
- data/generated/google/apis/compute_v1/service.rb +3155 -2026
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +42 -22
- data/generated/google/apis/container_v1/service.rb +2 -2
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +116 -136
- data/generated/google/apis/container_v1beta1/representations.rb +23 -51
- data/generated/google/apis/container_v1beta1/service.rb +2 -2
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +1030 -113
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +987 -138
- data/generated/google/apis/content_v2_1/representations.rb +87 -0
- data/generated/google/apis/content_v2_1/service.rb +73 -0
- data/generated/google/apis/customsearch_v1.rb +3 -3
- 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/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +2 -2
- data/generated/google/apis/datacatalog_v1beta1/service.rb +16 -24
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +220 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +99 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +327 -0
- data/generated/google/apis/datafusion_v1beta1.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/classes.rb +27 -1
- data/generated/google/apis/datafusion_v1beta1/representations.rb +15 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +76 -7
- data/generated/google/apis/dataproc_v1/representations.rb +21 -0
- data/generated/google/apis/dataproc_v1/service.rb +72 -15
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +191 -7
- data/generated/google/apis/dataproc_v1beta2/representations.rb +79 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +148 -15
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/classes.rb +19 -13
- data/generated/google/apis/dfareporting_v3_3/service.rb +5 -4
- data/generated/google/apis/dfareporting_v3_4.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4/classes.rb +152 -15
- data/generated/google/apis/dfareporting_v3_4/representations.rb +46 -0
- data/generated/google/apis/dfareporting_v3_4/service.rb +5 -4
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +130 -127
- data/generated/google/apis/dialogflow_v2/service.rb +49 -49
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +129 -126
- data/generated/google/apis/dialogflow_v2beta1/service.rb +96 -96
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +80 -14
- data/generated/google/apis/dlp_v2/representations.rb +32 -0
- data/generated/google/apis/dlp_v2/service.rb +3 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +9 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/service.rb +0 -55
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +54 -2
- data/generated/google/apis/drive_v2/representations.rb +18 -0
- data/generated/google/apis/drive_v2/service.rb +81 -9
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +54 -2
- data/generated/google/apis/drive_v3/representations.rb +18 -0
- data/generated/google/apis/drive_v3/service.rb +37 -4
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +2 -2
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/service.rb +8 -5
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +6 -6
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +762 -3
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +11 -2
- data/generated/google/apis/firestore_v1/representations.rb +2 -0
- data/generated/google/apis/firestore_v1/service.rb +2 -2
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +11 -2
- data/generated/google/apis/firestore_v1beta1/representations.rb +2 -0
- data/generated/google/apis/firestore_v1beta1/service.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +39 -53
- data/generated/google/apis/games_configuration_v1configuration/service.rb +58 -169
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +7 -0
- data/generated/google/apis/games_management_v1management/representations.rb +1 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +13 -0
- data/generated/google/apis/games_v1/representations.rb +2 -0
- data/generated/google/apis/{proximitybeacon_v1beta1.rb → gameservices_v1beta.rb} +11 -11
- data/generated/google/apis/gameservices_v1beta/classes.rb +2342 -0
- data/generated/google/apis/gameservices_v1beta/representations.rb +971 -0
- data/generated/google/apis/gameservices_v1beta/service.rb +1469 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/service.rb +34 -0
- data/generated/google/apis/gmail_v1.rb +3 -2
- data/generated/google/apis/gmail_v1/classes.rb +258 -199
- data/generated/google/apis/gmail_v1/service.rb +552 -744
- data/generated/google/apis/{mirror_v1.rb → healthcare_v1.rb} +10 -13
- data/generated/google/apis/healthcare_v1/classes.rb +2639 -0
- data/generated/google/apis/healthcare_v1/representations.rb +1114 -0
- data/generated/google/apis/healthcare_v1/service.rb +3470 -0
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +569 -23
- data/generated/google/apis/healthcare_v1beta1/representations.rb +236 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +147 -18
- data/generated/google/apis/homegraph_v1.rb +1 -1
- data/generated/google/apis/homegraph_v1/classes.rb +67 -63
- data/generated/google/apis/homegraph_v1/service.rb +43 -47
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +190 -0
- data/generated/google/apis/iap_v1/representations.rb +66 -0
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +6 -6
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +5 -5
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/language_v1beta2/classes.rb +8 -7
- data/generated/google/apis/logging_v2.rb +3 -3
- data/generated/google/apis/logging_v2/classes.rb +3 -4
- data/generated/google/apis/logging_v2/service.rb +2 -2
- data/generated/google/apis/managedidentities_v1.rb +1 -1
- data/generated/google/apis/managedidentities_v1/classes.rb +54 -145
- data/generated/google/apis/managedidentities_v1/representations.rb +17 -33
- data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
- data/generated/google/apis/managedidentities_v1alpha1/classes.rb +54 -145
- data/generated/google/apis/managedidentities_v1alpha1/representations.rb +17 -33
- data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
- data/generated/google/apis/managedidentities_v1beta1/classes.rb +54 -145
- data/generated/google/apis/managedidentities_v1beta1/representations.rb +17 -33
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +3 -3
- data/generated/google/apis/manufacturers_v1/representations.rb +1 -1
- data/generated/google/apis/memcache_v1beta2.rb +35 -0
- data/generated/google/apis/{cloudprivatecatalogproducer_v1beta1 → memcache_v1beta2}/classes.rb +1083 -761
- data/generated/google/apis/memcache_v1beta2/representations.rb +557 -0
- data/generated/google/apis/memcache_v1beta2/service.rb +674 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +47 -7
- data/generated/google/apis/ml_v1/representations.rb +4 -0
- data/generated/google/apis/monitoring_v1.rb +7 -8
- data/generated/google/apis/monitoring_v1/classes.rb +54 -15
- data/generated/google/apis/monitoring_v1/representations.rb +3 -0
- data/generated/google/apis/monitoring_v1/service.rb +7 -8
- data/generated/google/apis/monitoring_v3.rb +7 -8
- data/generated/google/apis/monitoring_v3/classes.rb +300 -27
- data/generated/google/apis/monitoring_v3/representations.rb +128 -0
- data/generated/google/apis/monitoring_v3/service.rb +52 -17
- data/generated/google/apis/oauth2_v2.rb +4 -4
- data/generated/google/apis/oauth2_v2/classes.rb +1 -13
- data/generated/google/apis/oauth2_v2/representations.rb +2 -4
- data/generated/google/apis/oauth2_v2/service.rb +10 -12
- data/generated/google/apis/osconfig_v1.rb +35 -0
- data/generated/google/apis/osconfig_v1/classes.rb +1223 -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_v1beta.rb +1 -1
- data/generated/google/apis/osconfig_v1beta/classes.rb +10 -2
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +30 -12
- data/generated/google/apis/people_v1/representations.rb +1 -0
- data/generated/google/apis/people_v1/service.rb +12 -24
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +4 -3
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +282 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +9 -5
- data/generated/google/apis/pubsub_v1/service.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +5 -2
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +1 -4
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +30 -7
- data/generated/google/apis/redis_v1/representations.rb +13 -0
- data/generated/google/apis/redis_v1/service.rb +36 -0
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +11 -7
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +171 -37
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +28 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +171 -37
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +28 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +181 -45
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +29 -0
- data/generated/google/apis/remotebuildexecution_v2/service.rb +5 -1
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +6 -13
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/classes.rb +4 -3
- data/generated/google/apis/sasportal_v1alpha1/service.rb +282 -0
- data/generated/google/apis/secretmanager_v1.rb +2 -2
- data/generated/google/apis/secretmanager_v1/service.rb +4 -1
- data/generated/google/apis/secretmanager_v1beta1.rb +2 -2
- data/generated/google/apis/secretmanager_v1beta1/service.rb +4 -1
- data/generated/google/apis/securitycenter_v1.rb +4 -4
- data/generated/google/apis/securitycenter_v1/classes.rb +142 -114
- data/generated/google/apis/securitycenter_v1/service.rb +11 -3
- data/generated/google/apis/securitycenter_v1beta1.rb +4 -4
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +137 -123
- data/generated/google/apis/securitycenter_v1beta1/service.rb +3 -3
- data/generated/google/apis/securitycenter_v1p1alpha1.rb +4 -4
- data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +87 -75
- data/generated/google/apis/securitycenter_v1p1alpha1/service.rb +3 -3
- data/generated/google/apis/securitycenter_v1p1beta1.rb +4 -4
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +117 -95
- data/generated/google/apis/securitycenter_v1p1beta1/service.rb +11 -3
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +41 -6
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
- data/generated/google/apis/{cloudprivatecatalogproducer_v1beta1.rb → serviceconsumermanagement_v1beta1.rb} +8 -9
- data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +4170 -0
- data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +1308 -0
- data/generated/google/apis/serviceconsumermanagement_v1beta1/service.rb +428 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +2 -2
- data/generated/google/apis/{cloudprivatecatalog_v1beta1.rb → servicedirectory_v1beta1.rb} +9 -9
- data/generated/google/apis/servicedirectory_v1beta1/classes.rb +800 -0
- data/generated/google/apis/servicedirectory_v1beta1/representations.rb +304 -0
- data/generated/google/apis/servicedirectory_v1beta1/service.rb +992 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +41 -6
- data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +179 -6
- data/generated/google/apis/servicenetworking_v1/representations.rb +72 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +53 -21
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +149 -6
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +57 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +116 -6
- data/generated/google/apis/serviceusage_v1/representations.rb +45 -0
- data/generated/google/apis/serviceusage_v1/service.rb +42 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +97 -32
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +31 -15
- data/generated/google/apis/serviceusage_v1beta1/service.rb +0 -43
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +2 -2
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +463 -1
- data/generated/google/apis/spanner_v1/representations.rb +178 -0
- data/generated/google/apis/spanner_v1/service.rb +498 -10
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +7 -3
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +7 -3
- data/generated/google/apis/speech_v1p1beta1/representations.rb +1 -0
- data/generated/google/apis/speech_v2beta1.rb +1 -1
- data/generated/google/apis/speech_v2beta1/classes.rb +7 -0
- data/generated/google/apis/speech_v2beta1/representations.rb +1 -0
- data/generated/google/apis/sql_v1beta4.rb +1 -1
- data/generated/google/apis/sql_v1beta4/classes.rb +3 -3
- data/generated/google/apis/sql_v1beta4/service.rb +54 -384
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +18 -0
- data/generated/google/apis/storage_v1/representations.rb +2 -0
- data/generated/google/apis/storage_v1/service.rb +28 -3
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +194 -11
- data/generated/google/apis/storagetransfer_v1/representations.rb +52 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +217 -0
- data/generated/google/apis/toolresults_v1beta3/representations.rb +84 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +76 -29
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +744 -4
- data/generated/google/apis/videointelligence_v1/representations.rb +356 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +744 -4
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +356 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +744 -4
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +356 -0
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +744 -4
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +356 -0
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +744 -4
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +356 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +4 -1
- data/generated/google/apis/youtube_v3/classes.rb +7 -0
- data/generated/google/apis/youtube_v3/representations.rb +1 -0
- data/lib/google/apis/generator/annotator.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +32 -23
- data/generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb +0 -358
- data/generated/google/apis/cloudprivatecatalog_v1beta1/representations.rb +0 -123
- data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +0 -486
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb +0 -399
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +0 -1081
- 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/oauth2_v1.rb +0 -40
- data/generated/google/apis/oauth2_v1/classes.rb +0 -197
- data/generated/google/apis/oauth2_v1/representations.rb +0 -73
- data/generated/google/apis/oauth2_v1/service.rb +0 -160
- 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
@@ -22,6 +22,18 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module SpannerV1
|
24
24
|
|
25
|
+
class Backup
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class BackupInfo
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
25
37
|
class BatchCreateSessionsRequest
|
26
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
39
|
|
@@ -64,6 +76,12 @@ module Google
|
|
64
76
|
include Google::Apis::Core::JsonObjectSupport
|
65
77
|
end
|
66
78
|
|
79
|
+
class CreateBackupMetadata
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
67
85
|
class CreateDatabaseMetadata
|
68
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
87
|
|
@@ -184,6 +202,24 @@ module Google
|
|
184
202
|
include Google::Apis::Core::JsonObjectSupport
|
185
203
|
end
|
186
204
|
|
205
|
+
class ListBackupOperationsResponse
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
211
|
+
class ListBackupsResponse
|
212
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
|
+
|
214
|
+
include Google::Apis::Core::JsonObjectSupport
|
215
|
+
end
|
216
|
+
|
217
|
+
class ListDatabaseOperationsResponse
|
218
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
+
|
220
|
+
include Google::Apis::Core::JsonObjectSupport
|
221
|
+
end
|
222
|
+
|
187
223
|
class ListDatabasesResponse
|
188
224
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
225
|
|
@@ -226,6 +262,18 @@ module Google
|
|
226
262
|
include Google::Apis::Core::JsonObjectSupport
|
227
263
|
end
|
228
264
|
|
265
|
+
class OperationProgress
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
271
|
+
class OptimizeRestoredDatabaseMetadata
|
272
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
|
+
|
274
|
+
include Google::Apis::Core::JsonObjectSupport
|
275
|
+
end
|
276
|
+
|
229
277
|
class PartialResultSet
|
230
278
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
279
|
|
@@ -316,6 +364,24 @@ module Google
|
|
316
364
|
include Google::Apis::Core::JsonObjectSupport
|
317
365
|
end
|
318
366
|
|
367
|
+
class RestoreDatabaseMetadata
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
373
|
+
class RestoreDatabaseRequest
|
374
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
375
|
+
|
376
|
+
include Google::Apis::Core::JsonObjectSupport
|
377
|
+
end
|
378
|
+
|
379
|
+
class RestoreInfo
|
380
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
381
|
+
|
382
|
+
include Google::Apis::Core::JsonObjectSupport
|
383
|
+
end
|
384
|
+
|
319
385
|
class ResultSet
|
320
386
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
387
|
|
@@ -442,6 +508,28 @@ module Google
|
|
442
508
|
include Google::Apis::Core::JsonObjectSupport
|
443
509
|
end
|
444
510
|
|
511
|
+
class Backup
|
512
|
+
# @private
|
513
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
514
|
+
property :create_time, as: 'createTime'
|
515
|
+
property :database, as: 'database'
|
516
|
+
property :expire_time, as: 'expireTime'
|
517
|
+
property :name, as: 'name'
|
518
|
+
collection :referencing_databases, as: 'referencingDatabases'
|
519
|
+
property :size_bytes, :numeric_string => true, as: 'sizeBytes'
|
520
|
+
property :state, as: 'state'
|
521
|
+
end
|
522
|
+
end
|
523
|
+
|
524
|
+
class BackupInfo
|
525
|
+
# @private
|
526
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
527
|
+
property :backup, as: 'backup'
|
528
|
+
property :create_time, as: 'createTime'
|
529
|
+
property :source_database, as: 'sourceDatabase'
|
530
|
+
end
|
531
|
+
end
|
532
|
+
|
445
533
|
class BatchCreateSessionsRequest
|
446
534
|
# @private
|
447
535
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -504,6 +592,17 @@ module Google
|
|
504
592
|
end
|
505
593
|
end
|
506
594
|
|
595
|
+
class CreateBackupMetadata
|
596
|
+
# @private
|
597
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
598
|
+
property :cancel_time, as: 'cancelTime'
|
599
|
+
property :database, as: 'database'
|
600
|
+
property :name, as: 'name'
|
601
|
+
property :progress, as: 'progress', class: Google::Apis::SpannerV1::OperationProgress, decorator: Google::Apis::SpannerV1::OperationProgress::Representation
|
602
|
+
|
603
|
+
end
|
604
|
+
end
|
605
|
+
|
507
606
|
class CreateDatabaseMetadata
|
508
607
|
# @private
|
509
608
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -550,7 +649,10 @@ module Google
|
|
550
649
|
class Database
|
551
650
|
# @private
|
552
651
|
class Representation < Google::Apis::Core::JsonRepresentation
|
652
|
+
property :create_time, as: 'createTime'
|
553
653
|
property :name, as: 'name'
|
654
|
+
property :restore_info, as: 'restoreInfo', class: Google::Apis::SpannerV1::RestoreInfo, decorator: Google::Apis::SpannerV1::RestoreInfo::Representation
|
655
|
+
|
554
656
|
property :state, as: 'state'
|
555
657
|
end
|
556
658
|
end
|
@@ -697,6 +799,33 @@ module Google
|
|
697
799
|
end
|
698
800
|
end
|
699
801
|
|
802
|
+
class ListBackupOperationsResponse
|
803
|
+
# @private
|
804
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
805
|
+
property :next_page_token, as: 'nextPageToken'
|
806
|
+
collection :operations, as: 'operations', class: Google::Apis::SpannerV1::Operation, decorator: Google::Apis::SpannerV1::Operation::Representation
|
807
|
+
|
808
|
+
end
|
809
|
+
end
|
810
|
+
|
811
|
+
class ListBackupsResponse
|
812
|
+
# @private
|
813
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
814
|
+
collection :backups, as: 'backups', class: Google::Apis::SpannerV1::Backup, decorator: Google::Apis::SpannerV1::Backup::Representation
|
815
|
+
|
816
|
+
property :next_page_token, as: 'nextPageToken'
|
817
|
+
end
|
818
|
+
end
|
819
|
+
|
820
|
+
class ListDatabaseOperationsResponse
|
821
|
+
# @private
|
822
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
823
|
+
property :next_page_token, as: 'nextPageToken'
|
824
|
+
collection :operations, as: 'operations', class: Google::Apis::SpannerV1::Operation, decorator: Google::Apis::SpannerV1::Operation::Representation
|
825
|
+
|
826
|
+
end
|
827
|
+
end
|
828
|
+
|
700
829
|
class ListDatabasesResponse
|
701
830
|
# @private
|
702
831
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -770,6 +899,24 @@ module Google
|
|
770
899
|
end
|
771
900
|
end
|
772
901
|
|
902
|
+
class OperationProgress
|
903
|
+
# @private
|
904
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
905
|
+
property :end_time, as: 'endTime'
|
906
|
+
property :progress_percent, as: 'progressPercent'
|
907
|
+
property :start_time, as: 'startTime'
|
908
|
+
end
|
909
|
+
end
|
910
|
+
|
911
|
+
class OptimizeRestoredDatabaseMetadata
|
912
|
+
# @private
|
913
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
914
|
+
property :name, as: 'name'
|
915
|
+
property :progress, as: 'progress', class: Google::Apis::SpannerV1::OperationProgress, decorator: Google::Apis::SpannerV1::OperationProgress::Representation
|
916
|
+
|
917
|
+
end
|
918
|
+
end
|
919
|
+
|
773
920
|
class PartialResultSet
|
774
921
|
# @private
|
775
922
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -926,6 +1073,37 @@ module Google
|
|
926
1073
|
end
|
927
1074
|
end
|
928
1075
|
|
1076
|
+
class RestoreDatabaseMetadata
|
1077
|
+
# @private
|
1078
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1079
|
+
property :backup_info, as: 'backupInfo', class: Google::Apis::SpannerV1::BackupInfo, decorator: Google::Apis::SpannerV1::BackupInfo::Representation
|
1080
|
+
|
1081
|
+
property :cancel_time, as: 'cancelTime'
|
1082
|
+
property :name, as: 'name'
|
1083
|
+
property :optimize_database_operation_name, as: 'optimizeDatabaseOperationName'
|
1084
|
+
property :progress, as: 'progress', class: Google::Apis::SpannerV1::OperationProgress, decorator: Google::Apis::SpannerV1::OperationProgress::Representation
|
1085
|
+
|
1086
|
+
property :source_type, as: 'sourceType'
|
1087
|
+
end
|
1088
|
+
end
|
1089
|
+
|
1090
|
+
class RestoreDatabaseRequest
|
1091
|
+
# @private
|
1092
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1093
|
+
property :backup, as: 'backup'
|
1094
|
+
property :database_id, as: 'databaseId'
|
1095
|
+
end
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
class RestoreInfo
|
1099
|
+
# @private
|
1100
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1101
|
+
property :backup_info, as: 'backupInfo', class: Google::Apis::SpannerV1::BackupInfo, decorator: Google::Apis::SpannerV1::BackupInfo::Representation
|
1102
|
+
|
1103
|
+
property :source_type, as: 'sourceType'
|
1104
|
+
end
|
1105
|
+
end
|
1106
|
+
|
929
1107
|
class ResultSet
|
930
1108
|
# @private
|
931
1109
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -496,11 +496,219 @@ module Google
|
|
496
496
|
execute_or_queue_command(command, &block)
|
497
497
|
end
|
498
498
|
|
499
|
-
#
|
500
|
-
#
|
501
|
-
#
|
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.
|
502
708
|
# Authorization requires `spanner.databases.getIamPolicy` permission on
|
503
709
|
# resource.
|
710
|
+
# For backups, authorization requires `spanner.backups.getIamPolicy`
|
711
|
+
# permission on resource.
|
504
712
|
# @param [String] resource
|
505
713
|
# REQUIRED: The Cloud Spanner resource for which the policy is being retrieved.
|
506
714
|
# The format is `projects/<project ID>/instances/<instance ID>` for instance
|
@@ -536,10 +744,135 @@ module Google
|
|
536
744
|
execute_or_queue_command(command, &block)
|
537
745
|
end
|
538
746
|
|
539
|
-
#
|
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.
|
540
871
|
# Replaces any existing policy.
|
541
872
|
# Authorization requires `spanner.databases.setIamPolicy`
|
542
873
|
# permission on resource.
|
874
|
+
# For backups, authorization requires `spanner.backups.setIamPolicy`
|
875
|
+
# permission on resource.
|
543
876
|
# @param [String] resource
|
544
877
|
# REQUIRED: The Cloud Spanner resource for which the policy is being set. The
|
545
878
|
# format is `projects/<project ID>/instances/<instance ID>` for instance
|
@@ -575,11 +908,15 @@ module Google
|
|
575
908
|
execute_or_queue_command(command, &block)
|
576
909
|
end
|
577
910
|
|
578
|
-
# Returns permissions that the caller has on the specified database
|
911
|
+
# Returns permissions that the caller has on the specified database or backup
|
912
|
+
# resource.
|
579
913
|
# Attempting this RPC on a non-existent Cloud Spanner database will
|
580
914
|
# result in a NOT_FOUND error if the user has
|
581
915
|
# `spanner.databases.list` permission on the containing Cloud
|
582
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.
|
583
920
|
# @param [String] resource
|
584
921
|
# REQUIRED: The Cloud Spanner resource for which permissions are being tested.
|
585
922
|
# The format is `projects/<project ID>/instances/<instance ID>` for instance
|
@@ -766,6 +1103,93 @@ module Google
|
|
766
1103
|
execute_or_queue_command(command, &block)
|
767
1104
|
end
|
768
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
|
+
|
769
1193
|
# Creates a new Cloud Spanner database and starts to prepare it for serving.
|
770
1194
|
# The returned long-running operation will
|
771
1195
|
# have a name of the format `<database_name>/operations/<operation_id>` and
|
@@ -808,6 +1232,8 @@ module Google
|
|
808
1232
|
end
|
809
1233
|
|
810
1234
|
# Drops (aka deletes) a Cloud Spanner database.
|
1235
|
+
# Completed backups for the database will be retained according to their
|
1236
|
+
# `expire_time`.
|
811
1237
|
# @param [String] database
|
812
1238
|
# Required. The database to be dropped.
|
813
1239
|
# @param [String] fields
|
@@ -900,11 +1326,13 @@ module Google
|
|
900
1326
|
execute_or_queue_command(command, &block)
|
901
1327
|
end
|
902
1328
|
|
903
|
-
# Gets the access control policy for a database resource.
|
904
|
-
# Returns an empty policy if a database exists but does
|
905
|
-
#
|
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.
|
906
1332
|
# Authorization requires `spanner.databases.getIamPolicy` permission on
|
907
1333
|
# resource.
|
1334
|
+
# For backups, authorization requires `spanner.backups.getIamPolicy`
|
1335
|
+
# permission on resource.
|
908
1336
|
# @param [String] resource
|
909
1337
|
# REQUIRED: The Cloud Spanner resource for which the policy is being retrieved.
|
910
1338
|
# The format is `projects/<project ID>/instances/<instance ID>` for instance
|
@@ -980,10 +1408,66 @@ module Google
|
|
980
1408
|
execute_or_queue_command(command, &block)
|
981
1409
|
end
|
982
1410
|
|
983
|
-
#
|
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.
|
984
1466
|
# Replaces any existing policy.
|
985
1467
|
# Authorization requires `spanner.databases.setIamPolicy`
|
986
1468
|
# permission on resource.
|
1469
|
+
# For backups, authorization requires `spanner.backups.setIamPolicy`
|
1470
|
+
# permission on resource.
|
987
1471
|
# @param [String] resource
|
988
1472
|
# REQUIRED: The Cloud Spanner resource for which the policy is being set. The
|
989
1473
|
# format is `projects/<project ID>/instances/<instance ID>` for instance
|
@@ -1019,11 +1503,15 @@ module Google
|
|
1019
1503
|
execute_or_queue_command(command, &block)
|
1020
1504
|
end
|
1021
1505
|
|
1022
|
-
# 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.
|
1023
1508
|
# Attempting this RPC on a non-existent Cloud Spanner database will
|
1024
1509
|
# result in a NOT_FOUND error if the user has
|
1025
1510
|
# `spanner.databases.list` permission on the containing Cloud
|
1026
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.
|
1027
1515
|
# @param [String] resource
|
1028
1516
|
# REQUIRED: The Cloud Spanner resource for which permissions are being tested.
|
1029
1517
|
# The format is `projects/<project ID>/instances/<instance ID>` for instance
|