google-api-client 0.32.1 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +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 -3
- data/CHANGELOG.md +327 -0
- data/Gemfile +1 -0
- data/OVERVIEW.md +36 -0
- data/README.md +50 -2
- data/Rakefile +71 -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/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 +1 -1
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +1 -73
- data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +0 -32
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- 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/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 -3
- 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/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +105 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +51 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/appengine_v1/service.rb +10 -6
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta/service.rb +10 -6
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +104 -23
- data/generated/google/apis/bigquery_v2/representations.rb +37 -0
- data/generated/google/apis/bigquery_v2/service.rb +1 -5
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -5
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +3 -2
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +30 -4
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +0 -21
- data/generated/google/apis/bigqueryreservation_v1/representations.rb +0 -13
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +116 -1
- data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +35 -0
- 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 +61 -77
- data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +16 -17
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +116 -78
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +63 -30
- data/generated/google/apis/bigtableadmin_v2/service.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +392 -0
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +191 -0
- data/generated/google/apis/billingbudgets_v1beta1/service.rb +233 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +35 -0
- data/generated/google/apis/binaryauthorization_v1/classes.rb +6 -5
- data/generated/google/apis/binaryauthorization_v1/service.rb +2 -0
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +6 -5
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +2 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +20 -0
- data/generated/google/apis/books_v1/representations.rb +3 -0
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +18 -30
- data/generated/google/apis/calendar_v3.rb +1 -1
- 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/cloudasset_v1/classes.rb +89 -55
- data/generated/google/apis/cloudasset_v1/service.rb +1 -2
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +75 -40
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +82 -36
- data/generated/google/apis/cloudbilling_v1/representations.rb +0 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +5 -3
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +8 -2
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +18 -18
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/service.rb +14 -14
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +13 -5
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
- data/generated/google/apis/cloudfunctions_v1/service.rb +10 -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 +2 -1
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +13 -10
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +2 -1
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +6 -5
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +6 -5
- data/generated/google/apis/cloudkms_v1/service.rb +3 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +75 -40
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +18 -17
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +10 -13
- 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 +10 -13
- 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 +2 -1
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -1
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +10 -132
- data/generated/google/apis/cloudsearch_v1/representations.rb +0 -75
- data/generated/google/apis/cloudsearch_v1/service.rb +47 -9
- 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 +24 -1
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +3 -0
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +212 -5
- data/generated/google/apis/cloudtasks_v2/representations.rb +50 -0
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +6 -5
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +6 -5
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +14 -19
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +594 -164
- data/generated/google/apis/compute_alpha/representations.rb +110 -2
- data/generated/google/apis/compute_alpha/service.rb +1035 -640
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1070 -276
- data/generated/google/apis/compute_beta/representations.rb +284 -0
- data/generated/google/apis/compute_beta/service.rb +1242 -532
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +335 -133
- data/generated/google/apis/compute_v1/representations.rb +24 -0
- data/generated/google/apis/compute_v1/service.rb +759 -473
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +410 -83
- data/generated/google/apis/container_v1/representations.rb +134 -0
- data/generated/google/apis/container_v1/service.rb +119 -119
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +157 -3
- data/generated/google/apis/container_v1beta1/representations.rb +38 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +6 -5
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +6 -5
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +35 -223
- data/generated/google/apis/content_v2/representations.rb +0 -115
- data/generated/google/apis/content_v2/service.rb +0 -160
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +69 -21
- data/generated/google/apis/content_v2_1/representations.rb +3 -0
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +1646 -0
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +700 -0
- data/generated/google/apis/datacatalog_v1beta1/service.rb +1982 -0
- data/generated/google/apis/{cloudbuild_v1alpha1.rb → datacatalog_v1beta1.rb} +10 -9
- data/generated/google/apis/dataflow_v1b3/classes.rb +6 -9
- data/generated/google/apis/dataflow_v1b3/representations.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/classes.rb +156 -46
- data/generated/google/apis/datafusion_v1beta1/representations.rb +33 -0
- data/generated/google/apis/datafusion_v1beta1/service.rb +10 -1
- data/generated/google/apis/datafusion_v1beta1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +119 -11
- data/generated/google/apis/dataproc_v1/representations.rb +39 -0
- data/generated/google/apis/dataproc_v1/service.rb +14 -7
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +9 -11
- data/generated/google/apis/dataproc_v1beta2/service.rb +26 -19
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1/service.rb +85 -1
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/classes.rb +21 -1
- data/generated/google/apis/dfareporting_v3_3/service.rb +6 -6
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/classes.rb +1215 -797
- data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/representations.rb +593 -395
- data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/service.rb +966 -1074
- data/generated/google/apis/{dfareporting_v3_2.rb → dfareporting_v3_4.rb} +6 -6
- data/generated/google/apis/dialogflow_v2/classes.rb +509 -8
- data/generated/google/apis/dialogflow_v2/representations.rb +222 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +530 -8
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +224 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +109 -33
- data/generated/google/apis/dlp_v2/representations.rb +23 -3
- data/generated/google/apis/dlp_v2/service.rb +1996 -209
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +47 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +17 -0
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +175 -0
- data/generated/google/apis/docs_v1/representations.rb +77 -0
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +826 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +372 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +371 -0
- data/generated/google/apis/{urlshortener_v1.rb → doubleclickbidmanager_v1_1.rb} +11 -11
- data/generated/google/apis/drive_v2/classes.rb +2 -1
- data/generated/google/apis/drive_v2/service.rb +3 -3
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +12 -3
- data/generated/google/apis/drive_v3.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/firebase_v1beta1/classes.rb +18 -4
- data/generated/google/apis/firebase_v1beta1/representations.rb +2 -0
- data/generated/google/apis/firebase_v1beta1/service.rb +6 -6
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +62 -0
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +31 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +47 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +26 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +15 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +1 -1
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +6 -26
- data/generated/google/apis/games_management_v1management/representations.rb +1 -14
- data/generated/google/apis/games_management_v1management/service.rb +0 -158
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +6 -292
- data/generated/google/apis/games_v1/representations.rb +1 -98
- data/generated/google/apis/games_v1/service.rb +0 -123
- data/generated/google/apis/games_v1.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.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +213 -16
- data/generated/google/apis/healthcare_v1beta1/representations.rb +101 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +207 -116
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/homegraph_v1/classes.rb +15 -1
- data/generated/google/apis/homegraph_v1/representations.rb +2 -1
- data/generated/google/apis/homegraph_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +15 -7
- data/generated/google/apis/iam_v1/representations.rb +1 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +187 -2
- data/generated/google/apis/iap_v1/representations.rb +102 -0
- data/generated/google/apis/iap_v1/service.rb +72 -0
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +2 -2
- data/generated/google/apis/iap_v1beta1.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 +179 -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 +179 -0
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +41 -0
- data/generated/google/apis/jobs_v3p1beta1.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 +30 -2
- data/generated/google/apis/logging_v2/representations.rb +4 -0
- data/generated/google/apis/logging_v2/service.rb +10 -5
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +308 -155
- data/generated/google/apis/ml_v1/representations.rb +59 -0
- data/generated/google/apis/ml_v1/service.rb +44 -3
- data/generated/google/apis/ml_v1.rb +2 -2
- data/generated/google/apis/monitoring_v1/classes.rb +1153 -0
- data/generated/google/apis/monitoring_v1/representations.rb +528 -0
- data/generated/google/apis/{cloudbuild_v1alpha1 → monitoring_v1}/service.rb +86 -63
- data/generated/google/apis/monitoring_v1.rb +48 -0
- data/generated/google/apis/monitoring_v3/classes.rb +836 -60
- data/generated/google/apis/monitoring_v3/representations.rb +348 -0
- data/generated/google/apis/monitoring_v3/service.rb +384 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/oslogin_v1/classes.rb +1 -1
- data/generated/google/apis/oslogin_v1/service.rb +10 -6
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/service.rb +9 -5
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5/classes.rb +8 -0
- data/generated/google/apis/pagespeedonline_v5/representations.rb +1 -0
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +67 -63
- data/generated/google/apis/people_v1/service.rb +53 -44
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +168 -90
- data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -3
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +8 -6
- data/generated/google/apis/pubsub_v1/service.rb +9 -7
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +6 -5
- data/generated/google/apis/pubsub_v1beta2/service.rb +2 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/service.rb +10 -8
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +11 -11
- data/generated/google/apis/redis_v1/service.rb +5 -5
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +11 -11
- data/generated/google/apis/redis_v1beta1/service.rb +5 -5
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +113 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +50 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +113 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +50 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +113 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +50 -0
- 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 +8 -176
- data/generated/google/apis/run_v1/representations.rb +0 -71
- data/generated/google/apis/run_v1/service.rb +209 -1125
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +328 -9
- data/generated/google/apis/run_v1alpha1/representations.rb +126 -0
- data/generated/google/apis/run_v1alpha1/service.rb +408 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +75 -40
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +159 -66
- data/generated/google/apis/securitycenter_v1/representations.rb +19 -0
- data/generated/google/apis/securitycenter_v1/service.rb +14 -12
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +95 -57
- data/generated/google/apis/securitycenter_v1beta1/service.rb +14 -12
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +75 -40
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +75 -40
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +75 -40
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +95 -43
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +8 -12
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +142 -91
- data/generated/google/apis/servicemanagement_v1/representations.rb +24 -0
- data/generated/google/apis/servicemanagement_v1/service.rb +32 -26
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +181 -54
- data/generated/google/apis/servicenetworking_v1/representations.rb +71 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +77 -3
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +32 -43
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +87 -43
- data/generated/google/apis/serviceusage_v1/representations.rb +29 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +87 -43
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +29 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +1371 -232
- data/generated/google/apis/sheets_v4/representations.rb +180 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +70 -30
- data/generated/google/apis/spanner_v1/service.rb +270 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +6 -0
- data/generated/google/apis/speech_v1/representations.rb +1 -0
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +6 -0
- data/generated/google/apis/speech_v1p1beta1/representations.rb +1 -0
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/classes.rb +9 -8
- data/generated/google/apis/{speech_v2beta → speech_v2beta1}/representations.rb +6 -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 +499 -380
- data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/representations.rb +125 -104
- data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/service.rb +637 -590
- data/generated/google/apis/{sqladmin_v1beta4.rb → sql_v1beta4.rb} +7 -8
- data/generated/google/apis/storage_v1.rb +1 -1
- 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.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +142 -1
- data/generated/google/apis/testing_v1/representations.rb +76 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +147 -36
- data/generated/google/apis/videointelligence_v1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +147 -36
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +147 -36
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +147 -36
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +147 -36
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +66 -0
- data/generated/google/apis/vision_v1/representations.rb +32 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +66 -0
- 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 +66 -0
- data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
- data/generated/google/apis/vision_v1p2beta1.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/google-api-client.gemspec +6 -3
- data/lib/google/apis/core/api_command.rb +3 -0
- data/lib/google/apis/core/http_command.rb +10 -8
- data/lib/google/apis/core/upload.rb +4 -0
- data/lib/google/apis/version.rb +1 -1
- 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 +64 -42
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +0 -1168
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +0 -434
- 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/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
|
@@ -19,19 +19,18 @@ require 'google/apis/errors'
|
|
|
19
19
|
|
|
20
20
|
module Google
|
|
21
21
|
module Apis
|
|
22
|
-
module
|
|
22
|
+
module SqlV1beta4
|
|
23
23
|
# Cloud SQL Admin API
|
|
24
24
|
#
|
|
25
|
-
#
|
|
26
|
-
# PostgreSQL databases.
|
|
25
|
+
# API for Cloud SQL database instance management
|
|
27
26
|
#
|
|
28
27
|
# @example
|
|
29
|
-
# require 'google/apis/
|
|
28
|
+
# require 'google/apis/sql_v1beta4'
|
|
30
29
|
#
|
|
31
|
-
#
|
|
32
|
-
# service =
|
|
30
|
+
# Sql = Google::Apis::SqlV1beta4 # Alias the module
|
|
31
|
+
# service = Sql::SQLAdminService.new
|
|
33
32
|
#
|
|
34
|
-
# @see https://
|
|
33
|
+
# @see https://developers.google.com/cloud-sql/
|
|
35
34
|
class SQLAdminService < Google::Apis::Core::BaseService
|
|
36
35
|
# @return [String]
|
|
37
36
|
# API key. Your API key identifies your project and provides you with API access,
|
|
@@ -39,17 +38,13 @@ module Google
|
|
|
39
38
|
attr_accessor :key
|
|
40
39
|
|
|
41
40
|
# @return [String]
|
|
42
|
-
#
|
|
43
|
-
# characters.
|
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
44
43
|
attr_accessor :quota_user
|
|
45
44
|
|
|
46
|
-
# @return [String]
|
|
47
|
-
# Deprecated. Please use quotaUser instead.
|
|
48
|
-
attr_accessor :user_ip
|
|
49
|
-
|
|
50
45
|
def initialize
|
|
51
|
-
super('https://
|
|
52
|
-
@batch_path = 'batch
|
|
46
|
+
super('https://sqladmin.googleapis.com/', '')
|
|
47
|
+
@batch_path = 'batch'
|
|
53
48
|
end
|
|
54
49
|
|
|
55
50
|
# Deletes the backup taken by a backup run.
|
|
@@ -58,37 +53,41 @@ module Google
|
|
|
58
53
|
# @param [String] instance
|
|
59
54
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
60
55
|
# @param [Fixnum] id
|
|
61
|
-
# The ID of the Backup Run to delete. To find a Backup Run ID, use the
|
|
56
|
+
# The ID of the Backup Run to delete. To find a Backup Run ID, use the <a
|
|
57
|
+
# href="/sql/docs/db_path/admin-api/rest/v1beta4/backupRuns/list">list</a>
|
|
62
58
|
# method.
|
|
59
|
+
# @param [String] resource_name
|
|
60
|
+
# The name of the backupRun to delete.
|
|
61
|
+
# Format:
|
|
62
|
+
# projects/`project`/locations/`location`/instances/`instance`/backupRuns/`
|
|
63
|
+
# backupRun`
|
|
63
64
|
# @param [String] fields
|
|
64
65
|
# Selector specifying which fields to include in a partial response.
|
|
65
66
|
# @param [String] quota_user
|
|
66
|
-
#
|
|
67
|
-
# characters.
|
|
68
|
-
# @param [String] user_ip
|
|
69
|
-
# Deprecated. Please use quotaUser instead.
|
|
67
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
68
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
70
69
|
# @param [Google::Apis::RequestOptions] options
|
|
71
70
|
# Request-specific options
|
|
72
71
|
#
|
|
73
72
|
# @yield [result, err] Result & error if block supplied
|
|
74
|
-
# @yieldparam result [Google::Apis::
|
|
73
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
75
74
|
# @yieldparam err [StandardError] error object if request failed
|
|
76
75
|
#
|
|
77
|
-
# @return [Google::Apis::
|
|
76
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
78
77
|
#
|
|
79
78
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
80
79
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
81
80
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
82
|
-
def delete_backup_run(project, instance, id,
|
|
83
|
-
command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/backupRuns/{id}', options)
|
|
84
|
-
command.response_representation = Google::Apis::
|
|
85
|
-
command.response_class = Google::Apis::
|
|
81
|
+
def delete_backup_run(project, instance, id, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
82
|
+
command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}', options)
|
|
83
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
84
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
86
85
|
command.params['project'] = project unless project.nil?
|
|
87
86
|
command.params['instance'] = instance unless instance.nil?
|
|
88
87
|
command.params['id'] = id unless id.nil?
|
|
88
|
+
command.query['resourceName'] = resource_name unless resource_name.nil?
|
|
89
89
|
command.query['fields'] = fields unless fields.nil?
|
|
90
90
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
91
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
92
91
|
execute_or_queue_command(command, &block)
|
|
93
92
|
end
|
|
94
93
|
|
|
@@ -99,75 +98,79 @@ module Google
|
|
|
99
98
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
100
99
|
# @param [Fixnum] id
|
|
101
100
|
# The ID of this Backup Run.
|
|
101
|
+
# @param [String] resource_name
|
|
102
|
+
# Name of the resource backupRun.
|
|
103
|
+
# Format:
|
|
104
|
+
# projects/`project`/locations/`location`/instances/`instance`/backupRuns/`
|
|
105
|
+
# backupRun`
|
|
102
106
|
# @param [String] fields
|
|
103
107
|
# Selector specifying which fields to include in a partial response.
|
|
104
108
|
# @param [String] quota_user
|
|
105
|
-
#
|
|
106
|
-
# characters.
|
|
107
|
-
# @param [String] user_ip
|
|
108
|
-
# Deprecated. Please use quotaUser instead.
|
|
109
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
110
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
109
111
|
# @param [Google::Apis::RequestOptions] options
|
|
110
112
|
# Request-specific options
|
|
111
113
|
#
|
|
112
114
|
# @yield [result, err] Result & error if block supplied
|
|
113
|
-
# @yieldparam result [Google::Apis::
|
|
115
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::BackupRun] parsed result object
|
|
114
116
|
# @yieldparam err [StandardError] error object if request failed
|
|
115
117
|
#
|
|
116
|
-
# @return [Google::Apis::
|
|
118
|
+
# @return [Google::Apis::SqlV1beta4::BackupRun]
|
|
117
119
|
#
|
|
118
120
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
119
121
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
120
122
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
121
|
-
def get_backup_run(project, instance, id,
|
|
122
|
-
command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns/{id}', options)
|
|
123
|
-
command.response_representation = Google::Apis::
|
|
124
|
-
command.response_class = Google::Apis::
|
|
123
|
+
def get_backup_run(project, instance, id, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
124
|
+
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}', options)
|
|
125
|
+
command.response_representation = Google::Apis::SqlV1beta4::BackupRun::Representation
|
|
126
|
+
command.response_class = Google::Apis::SqlV1beta4::BackupRun
|
|
125
127
|
command.params['project'] = project unless project.nil?
|
|
126
128
|
command.params['instance'] = instance unless instance.nil?
|
|
127
129
|
command.params['id'] = id unless id.nil?
|
|
130
|
+
command.query['resourceName'] = resource_name unless resource_name.nil?
|
|
128
131
|
command.query['fields'] = fields unless fields.nil?
|
|
129
132
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
130
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
131
133
|
execute_or_queue_command(command, &block)
|
|
132
134
|
end
|
|
133
135
|
|
|
134
|
-
# Creates a new backup run on demand. This method is applicable only to
|
|
135
|
-
# Generation instances.
|
|
136
|
+
# Creates a new backup run on demand. This method is applicable only to
|
|
137
|
+
# Second Generation instances.
|
|
136
138
|
# @param [String] project
|
|
137
139
|
# Project ID of the project that contains the instance.
|
|
138
140
|
# @param [String] instance
|
|
139
141
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
140
|
-
# @param [Google::Apis::
|
|
142
|
+
# @param [Google::Apis::SqlV1beta4::BackupRun] backup_run_object
|
|
143
|
+
# @param [String] parent
|
|
144
|
+
# The parent resource where Cloud SQL should create this backupRun.
|
|
145
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
141
146
|
# @param [String] fields
|
|
142
147
|
# Selector specifying which fields to include in a partial response.
|
|
143
148
|
# @param [String] quota_user
|
|
144
|
-
#
|
|
145
|
-
# characters.
|
|
146
|
-
# @param [String] user_ip
|
|
147
|
-
# Deprecated. Please use quotaUser instead.
|
|
149
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
150
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
148
151
|
# @param [Google::Apis::RequestOptions] options
|
|
149
152
|
# Request-specific options
|
|
150
153
|
#
|
|
151
154
|
# @yield [result, err] Result & error if block supplied
|
|
152
|
-
# @yieldparam result [Google::Apis::
|
|
155
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
153
156
|
# @yieldparam err [StandardError] error object if request failed
|
|
154
157
|
#
|
|
155
|
-
# @return [Google::Apis::
|
|
158
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
156
159
|
#
|
|
157
160
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
158
161
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
159
162
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
160
|
-
def insert_backup_run(project, instance, backup_run_object = nil,
|
|
161
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/backupRuns', options)
|
|
162
|
-
command.request_representation = Google::Apis::
|
|
163
|
+
def insert_backup_run(project, instance, backup_run_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
164
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns', options)
|
|
165
|
+
command.request_representation = Google::Apis::SqlV1beta4::BackupRun::Representation
|
|
163
166
|
command.request_object = backup_run_object
|
|
164
|
-
command.response_representation = Google::Apis::
|
|
165
|
-
command.response_class = Google::Apis::
|
|
167
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
168
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
166
169
|
command.params['project'] = project unless project.nil?
|
|
167
170
|
command.params['instance'] = instance unless instance.nil?
|
|
171
|
+
command.query['parent'] = parent unless parent.nil?
|
|
168
172
|
command.query['fields'] = fields unless fields.nil?
|
|
169
173
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
170
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
171
174
|
execute_or_queue_command(command, &block)
|
|
172
175
|
end
|
|
173
176
|
|
|
@@ -182,36 +185,37 @@ module Google
|
|
|
182
185
|
# @param [String] page_token
|
|
183
186
|
# A previously-returned page token representing part of the larger set of
|
|
184
187
|
# results to view.
|
|
188
|
+
# @param [String] parent
|
|
189
|
+
# The parent, which owns this collection of backupRuns.
|
|
190
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
185
191
|
# @param [String] fields
|
|
186
192
|
# Selector specifying which fields to include in a partial response.
|
|
187
193
|
# @param [String] quota_user
|
|
188
|
-
#
|
|
189
|
-
# characters.
|
|
190
|
-
# @param [String] user_ip
|
|
191
|
-
# Deprecated. Please use quotaUser instead.
|
|
194
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
195
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
192
196
|
# @param [Google::Apis::RequestOptions] options
|
|
193
197
|
# Request-specific options
|
|
194
198
|
#
|
|
195
199
|
# @yield [result, err] Result & error if block supplied
|
|
196
|
-
# @yieldparam result [Google::Apis::
|
|
200
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::BackupRunsListResponse] parsed result object
|
|
197
201
|
# @yieldparam err [StandardError] error object if request failed
|
|
198
202
|
#
|
|
199
|
-
# @return [Google::Apis::
|
|
203
|
+
# @return [Google::Apis::SqlV1beta4::BackupRunsListResponse]
|
|
200
204
|
#
|
|
201
205
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
202
206
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
203
207
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
204
|
-
def list_backup_runs(project, instance, max_results: nil, page_token: nil,
|
|
205
|
-
command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns', options)
|
|
206
|
-
command.response_representation = Google::Apis::
|
|
207
|
-
command.response_class = Google::Apis::
|
|
208
|
+
def list_backup_runs(project, instance, max_results: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
209
|
+
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns', options)
|
|
210
|
+
command.response_representation = Google::Apis::SqlV1beta4::BackupRunsListResponse::Representation
|
|
211
|
+
command.response_class = Google::Apis::SqlV1beta4::BackupRunsListResponse
|
|
208
212
|
command.params['project'] = project unless project.nil?
|
|
209
213
|
command.params['instance'] = instance unless instance.nil?
|
|
210
214
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
211
215
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
216
|
+
command.query['parent'] = parent unless parent.nil?
|
|
212
217
|
command.query['fields'] = fields unless fields.nil?
|
|
213
218
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
214
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
215
219
|
execute_or_queue_command(command, &block)
|
|
216
220
|
end
|
|
217
221
|
|
|
@@ -222,35 +226,38 @@ module Google
|
|
|
222
226
|
# Database instance ID. This does not include the project ID.
|
|
223
227
|
# @param [String] database
|
|
224
228
|
# Name of the database to be deleted in the instance.
|
|
229
|
+
# @param [String] resource_name
|
|
230
|
+
# The name of the database to delete.
|
|
231
|
+
# Format:
|
|
232
|
+
# projects/`project`/locations/`location`/instances/`instance`/databases/`
|
|
233
|
+
# database`
|
|
225
234
|
# @param [String] fields
|
|
226
235
|
# Selector specifying which fields to include in a partial response.
|
|
227
236
|
# @param [String] quota_user
|
|
228
|
-
#
|
|
229
|
-
# characters.
|
|
230
|
-
# @param [String] user_ip
|
|
231
|
-
# Deprecated. Please use quotaUser instead.
|
|
237
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
238
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
232
239
|
# @param [Google::Apis::RequestOptions] options
|
|
233
240
|
# Request-specific options
|
|
234
241
|
#
|
|
235
242
|
# @yield [result, err] Result & error if block supplied
|
|
236
|
-
# @yieldparam result [Google::Apis::
|
|
243
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
237
244
|
# @yieldparam err [StandardError] error object if request failed
|
|
238
245
|
#
|
|
239
|
-
# @return [Google::Apis::
|
|
246
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
240
247
|
#
|
|
241
248
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
242
249
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
243
250
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
244
|
-
def delete_database(project, instance, database,
|
|
245
|
-
command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/databases/{database}', options)
|
|
246
|
-
command.response_representation = Google::Apis::
|
|
247
|
-
command.response_class = Google::Apis::
|
|
251
|
+
def delete_database(project, instance, database, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
252
|
+
command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options)
|
|
253
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
254
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
248
255
|
command.params['project'] = project unless project.nil?
|
|
249
256
|
command.params['instance'] = instance unless instance.nil?
|
|
250
257
|
command.params['database'] = database unless database.nil?
|
|
258
|
+
command.query['resourceName'] = resource_name unless resource_name.nil?
|
|
251
259
|
command.query['fields'] = fields unless fields.nil?
|
|
252
260
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
253
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
254
261
|
execute_or_queue_command(command, &block)
|
|
255
262
|
end
|
|
256
263
|
|
|
@@ -262,75 +269,79 @@ module Google
|
|
|
262
269
|
# Database instance ID. This does not include the project ID.
|
|
263
270
|
# @param [String] database
|
|
264
271
|
# Name of the database in the instance.
|
|
272
|
+
# @param [String] resource_name
|
|
273
|
+
# Name of the resource database.
|
|
274
|
+
# Format:
|
|
275
|
+
# projects/`project`/locations/`location`/instances/`instance`/databases/`
|
|
276
|
+
# database`
|
|
265
277
|
# @param [String] fields
|
|
266
278
|
# Selector specifying which fields to include in a partial response.
|
|
267
279
|
# @param [String] quota_user
|
|
268
|
-
#
|
|
269
|
-
# characters.
|
|
270
|
-
# @param [String] user_ip
|
|
271
|
-
# Deprecated. Please use quotaUser instead.
|
|
280
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
281
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
272
282
|
# @param [Google::Apis::RequestOptions] options
|
|
273
283
|
# Request-specific options
|
|
274
284
|
#
|
|
275
285
|
# @yield [result, err] Result & error if block supplied
|
|
276
|
-
# @yieldparam result [Google::Apis::
|
|
286
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Database] parsed result object
|
|
277
287
|
# @yieldparam err [StandardError] error object if request failed
|
|
278
288
|
#
|
|
279
|
-
# @return [Google::Apis::
|
|
289
|
+
# @return [Google::Apis::SqlV1beta4::Database]
|
|
280
290
|
#
|
|
281
291
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
282
292
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
283
293
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
284
|
-
def get_database(project, instance, database,
|
|
285
|
-
command = make_simple_command(:get, 'projects/{project}/instances/{instance}/databases/{database}', options)
|
|
286
|
-
command.response_representation = Google::Apis::
|
|
287
|
-
command.response_class = Google::Apis::
|
|
294
|
+
def get_database(project, instance, database, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
295
|
+
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options)
|
|
296
|
+
command.response_representation = Google::Apis::SqlV1beta4::Database::Representation
|
|
297
|
+
command.response_class = Google::Apis::SqlV1beta4::Database
|
|
288
298
|
command.params['project'] = project unless project.nil?
|
|
289
299
|
command.params['instance'] = instance unless instance.nil?
|
|
290
300
|
command.params['database'] = database unless database.nil?
|
|
301
|
+
command.query['resourceName'] = resource_name unless resource_name.nil?
|
|
291
302
|
command.query['fields'] = fields unless fields.nil?
|
|
292
303
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
293
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
294
304
|
execute_or_queue_command(command, &block)
|
|
295
305
|
end
|
|
296
306
|
|
|
297
|
-
# Inserts a resource containing information about a database inside a Cloud
|
|
298
|
-
# instance.
|
|
307
|
+
# Inserts a resource containing information about a database inside a Cloud
|
|
308
|
+
# SQL instance.
|
|
299
309
|
# @param [String] project
|
|
300
310
|
# Project ID of the project that contains the instance.
|
|
301
311
|
# @param [String] instance
|
|
302
312
|
# Database instance ID. This does not include the project ID.
|
|
303
|
-
# @param [Google::Apis::
|
|
313
|
+
# @param [Google::Apis::SqlV1beta4::Database] database_object
|
|
314
|
+
# @param [String] parent
|
|
315
|
+
# The parent resource where Cloud SQL should add this database.
|
|
316
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
304
317
|
# @param [String] fields
|
|
305
318
|
# Selector specifying which fields to include in a partial response.
|
|
306
319
|
# @param [String] quota_user
|
|
307
|
-
#
|
|
308
|
-
# characters.
|
|
309
|
-
# @param [String] user_ip
|
|
310
|
-
# Deprecated. Please use quotaUser instead.
|
|
320
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
321
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
311
322
|
# @param [Google::Apis::RequestOptions] options
|
|
312
323
|
# Request-specific options
|
|
313
324
|
#
|
|
314
325
|
# @yield [result, err] Result & error if block supplied
|
|
315
|
-
# @yieldparam result [Google::Apis::
|
|
326
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
316
327
|
# @yieldparam err [StandardError] error object if request failed
|
|
317
328
|
#
|
|
318
|
-
# @return [Google::Apis::
|
|
329
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
319
330
|
#
|
|
320
331
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
321
332
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
322
333
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
323
|
-
def insert_database(project, instance, database_object = nil,
|
|
324
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/databases', options)
|
|
325
|
-
command.request_representation = Google::Apis::
|
|
334
|
+
def insert_database(project, instance, database_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
335
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/databases', options)
|
|
336
|
+
command.request_representation = Google::Apis::SqlV1beta4::Database::Representation
|
|
326
337
|
command.request_object = database_object
|
|
327
|
-
command.response_representation = Google::Apis::
|
|
328
|
-
command.response_class = Google::Apis::
|
|
338
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
339
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
329
340
|
command.params['project'] = project unless project.nil?
|
|
330
341
|
command.params['instance'] = instance unless instance.nil?
|
|
342
|
+
command.query['parent'] = parent unless parent.nil?
|
|
331
343
|
command.query['fields'] = fields unless fields.nil?
|
|
332
344
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
333
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
334
345
|
execute_or_queue_command(command, &block)
|
|
335
346
|
end
|
|
336
347
|
|
|
@@ -339,120 +350,127 @@ module Google
|
|
|
339
350
|
# Project ID of the project that contains the instance.
|
|
340
351
|
# @param [String] instance
|
|
341
352
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
353
|
+
# @param [String] parent
|
|
354
|
+
# The parent, which owns this collection of databases.
|
|
355
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
342
356
|
# @param [String] fields
|
|
343
357
|
# Selector specifying which fields to include in a partial response.
|
|
344
358
|
# @param [String] quota_user
|
|
345
|
-
#
|
|
346
|
-
# characters.
|
|
347
|
-
# @param [String] user_ip
|
|
348
|
-
# Deprecated. Please use quotaUser instead.
|
|
359
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
360
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
349
361
|
# @param [Google::Apis::RequestOptions] options
|
|
350
362
|
# Request-specific options
|
|
351
363
|
#
|
|
352
364
|
# @yield [result, err] Result & error if block supplied
|
|
353
|
-
# @yieldparam result [Google::Apis::
|
|
365
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::DatabasesListResponse] parsed result object
|
|
354
366
|
# @yieldparam err [StandardError] error object if request failed
|
|
355
367
|
#
|
|
356
|
-
# @return [Google::Apis::
|
|
368
|
+
# @return [Google::Apis::SqlV1beta4::DatabasesListResponse]
|
|
357
369
|
#
|
|
358
370
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
359
371
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
360
372
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
361
|
-
def list_databases(project, instance,
|
|
362
|
-
command = make_simple_command(:get, 'projects/{project}/instances/{instance}/databases', options)
|
|
363
|
-
command.response_representation = Google::Apis::
|
|
364
|
-
command.response_class = Google::Apis::
|
|
373
|
+
def list_databases(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
374
|
+
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/databases', options)
|
|
375
|
+
command.response_representation = Google::Apis::SqlV1beta4::DatabasesListResponse::Representation
|
|
376
|
+
command.response_class = Google::Apis::SqlV1beta4::DatabasesListResponse
|
|
365
377
|
command.params['project'] = project unless project.nil?
|
|
366
378
|
command.params['instance'] = instance unless instance.nil?
|
|
379
|
+
command.query['parent'] = parent unless parent.nil?
|
|
367
380
|
command.query['fields'] = fields unless fields.nil?
|
|
368
381
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
369
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
370
382
|
execute_or_queue_command(command, &block)
|
|
371
383
|
end
|
|
372
384
|
|
|
373
|
-
#
|
|
374
|
-
# instance. This method supports patch semantics.
|
|
385
|
+
# Partially updates a resource containing information about a database inside
|
|
386
|
+
# a Cloud SQL instance. This method supports patch semantics.
|
|
375
387
|
# @param [String] project
|
|
376
388
|
# Project ID of the project that contains the instance.
|
|
377
389
|
# @param [String] instance
|
|
378
390
|
# Database instance ID. This does not include the project ID.
|
|
379
391
|
# @param [String] database
|
|
380
392
|
# Name of the database to be updated in the instance.
|
|
381
|
-
# @param [Google::Apis::
|
|
393
|
+
# @param [Google::Apis::SqlV1beta4::Database] database_object
|
|
394
|
+
# @param [String] resource_name
|
|
395
|
+
# The name of the database for Cloud SQL to update.
|
|
396
|
+
# Format:
|
|
397
|
+
# projects/`project`/locations/`location`/instances/`instance`/databases/`
|
|
398
|
+
# database`
|
|
382
399
|
# @param [String] fields
|
|
383
400
|
# Selector specifying which fields to include in a partial response.
|
|
384
401
|
# @param [String] quota_user
|
|
385
|
-
#
|
|
386
|
-
# characters.
|
|
387
|
-
# @param [String] user_ip
|
|
388
|
-
# Deprecated. Please use quotaUser instead.
|
|
402
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
403
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
389
404
|
# @param [Google::Apis::RequestOptions] options
|
|
390
405
|
# Request-specific options
|
|
391
406
|
#
|
|
392
407
|
# @yield [result, err] Result & error if block supplied
|
|
393
|
-
# @yieldparam result [Google::Apis::
|
|
408
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
394
409
|
# @yieldparam err [StandardError] error object if request failed
|
|
395
410
|
#
|
|
396
|
-
# @return [Google::Apis::
|
|
411
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
397
412
|
#
|
|
398
413
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
399
414
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
400
415
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
401
|
-
def patch_database(project, instance, database, database_object = nil,
|
|
402
|
-
command = make_simple_command(:patch, 'projects/{project}/instances/{instance}/databases/{database}', options)
|
|
403
|
-
command.request_representation = Google::Apis::
|
|
416
|
+
def patch_database(project, instance, database, database_object = nil, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
417
|
+
command = make_simple_command(:patch, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options)
|
|
418
|
+
command.request_representation = Google::Apis::SqlV1beta4::Database::Representation
|
|
404
419
|
command.request_object = database_object
|
|
405
|
-
command.response_representation = Google::Apis::
|
|
406
|
-
command.response_class = Google::Apis::
|
|
420
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
421
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
407
422
|
command.params['project'] = project unless project.nil?
|
|
408
423
|
command.params['instance'] = instance unless instance.nil?
|
|
409
424
|
command.params['database'] = database unless database.nil?
|
|
425
|
+
command.query['resourceName'] = resource_name unless resource_name.nil?
|
|
410
426
|
command.query['fields'] = fields unless fields.nil?
|
|
411
427
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
412
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
413
428
|
execute_or_queue_command(command, &block)
|
|
414
429
|
end
|
|
415
430
|
|
|
416
|
-
# Updates a resource containing information about a database inside a Cloud
|
|
417
|
-
# instance.
|
|
431
|
+
# Updates a resource containing information about a database inside a Cloud
|
|
432
|
+
# SQL instance.
|
|
418
433
|
# @param [String] project
|
|
419
434
|
# Project ID of the project that contains the instance.
|
|
420
435
|
# @param [String] instance
|
|
421
436
|
# Database instance ID. This does not include the project ID.
|
|
422
437
|
# @param [String] database
|
|
423
438
|
# Name of the database to be updated in the instance.
|
|
424
|
-
# @param [Google::Apis::
|
|
439
|
+
# @param [Google::Apis::SqlV1beta4::Database] database_object
|
|
440
|
+
# @param [String] resource_name
|
|
441
|
+
# The name of the database for Cloud SQL to update.
|
|
442
|
+
# Format:
|
|
443
|
+
# projects/`project`/locations/`location`/instances/`instance`/databases/`
|
|
444
|
+
# database`
|
|
425
445
|
# @param [String] fields
|
|
426
446
|
# Selector specifying which fields to include in a partial response.
|
|
427
447
|
# @param [String] quota_user
|
|
428
|
-
#
|
|
429
|
-
# characters.
|
|
430
|
-
# @param [String] user_ip
|
|
431
|
-
# Deprecated. Please use quotaUser instead.
|
|
448
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
449
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
432
450
|
# @param [Google::Apis::RequestOptions] options
|
|
433
451
|
# Request-specific options
|
|
434
452
|
#
|
|
435
453
|
# @yield [result, err] Result & error if block supplied
|
|
436
|
-
# @yieldparam result [Google::Apis::
|
|
454
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
437
455
|
# @yieldparam err [StandardError] error object if request failed
|
|
438
456
|
#
|
|
439
|
-
# @return [Google::Apis::
|
|
457
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
440
458
|
#
|
|
441
459
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
442
460
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
443
461
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
444
|
-
def update_database(project, instance, database, database_object = nil,
|
|
445
|
-
command = make_simple_command(:put, 'projects/{project}/instances/{instance}/databases/{database}', options)
|
|
446
|
-
command.request_representation = Google::Apis::
|
|
462
|
+
def update_database(project, instance, database, database_object = nil, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
463
|
+
command = make_simple_command(:put, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options)
|
|
464
|
+
command.request_representation = Google::Apis::SqlV1beta4::Database::Representation
|
|
447
465
|
command.request_object = database_object
|
|
448
|
-
command.response_representation = Google::Apis::
|
|
449
|
-
command.response_class = Google::Apis::
|
|
466
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
467
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
450
468
|
command.params['project'] = project unless project.nil?
|
|
451
469
|
command.params['instance'] = instance unless instance.nil?
|
|
452
470
|
command.params['database'] = database unless database.nil?
|
|
471
|
+
command.query['resourceName'] = resource_name unless resource_name.nil?
|
|
453
472
|
command.query['fields'] = fields unless fields.nil?
|
|
454
473
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
455
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
456
474
|
execute_or_queue_command(command, &block)
|
|
457
475
|
end
|
|
458
476
|
|
|
@@ -463,70 +481,68 @@ module Google
|
|
|
463
481
|
# @param [String] fields
|
|
464
482
|
# Selector specifying which fields to include in a partial response.
|
|
465
483
|
# @param [String] quota_user
|
|
466
|
-
#
|
|
467
|
-
# characters.
|
|
468
|
-
# @param [String] user_ip
|
|
469
|
-
# Deprecated. Please use quotaUser instead.
|
|
484
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
485
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
470
486
|
# @param [Google::Apis::RequestOptions] options
|
|
471
487
|
# Request-specific options
|
|
472
488
|
#
|
|
473
489
|
# @yield [result, err] Result & error if block supplied
|
|
474
|
-
# @yieldparam result [Google::Apis::
|
|
490
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::FlagsListResponse] parsed result object
|
|
475
491
|
# @yieldparam err [StandardError] error object if request failed
|
|
476
492
|
#
|
|
477
|
-
# @return [Google::Apis::
|
|
493
|
+
# @return [Google::Apis::SqlV1beta4::FlagsListResponse]
|
|
478
494
|
#
|
|
479
495
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
480
496
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
481
497
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
482
|
-
def list_flags(database_version: nil, fields: nil, quota_user: nil,
|
|
483
|
-
command = make_simple_command(:get, 'flags', options)
|
|
484
|
-
command.response_representation = Google::Apis::
|
|
485
|
-
command.response_class = Google::Apis::
|
|
498
|
+
def list_flags(database_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
499
|
+
command = make_simple_command(:get, 'sql/v1beta4/flags', options)
|
|
500
|
+
command.response_representation = Google::Apis::SqlV1beta4::FlagsListResponse::Representation
|
|
501
|
+
command.response_class = Google::Apis::SqlV1beta4::FlagsListResponse
|
|
486
502
|
command.query['databaseVersion'] = database_version unless database_version.nil?
|
|
487
503
|
command.query['fields'] = fields unless fields.nil?
|
|
488
504
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
489
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
490
505
|
execute_or_queue_command(command, &block)
|
|
491
506
|
end
|
|
492
507
|
|
|
493
508
|
# Add a new trusted Certificate Authority (CA) version for the specified
|
|
494
|
-
# instance. Required to prepare for a certificate rotation. If a CA version
|
|
495
|
-
# previously added but never used in a certificate rotation, this
|
|
496
|
-
# replaces that version. There cannot be more than one CA version
|
|
497
|
-
# rotated in.
|
|
509
|
+
# instance. Required to prepare for a certificate rotation. If a CA version
|
|
510
|
+
# was previously added but never used in a certificate rotation, this
|
|
511
|
+
# operation replaces that version. There cannot be more than one CA version
|
|
512
|
+
# waiting to be rotated in.
|
|
498
513
|
# @param [String] project
|
|
499
514
|
# Project ID of the project that contains the instance.
|
|
500
515
|
# @param [String] instance
|
|
501
516
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
517
|
+
# @param [String] parent
|
|
518
|
+
# The parent resource where Cloud SQL should add this server CA.
|
|
519
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
502
520
|
# @param [String] fields
|
|
503
521
|
# Selector specifying which fields to include in a partial response.
|
|
504
522
|
# @param [String] quota_user
|
|
505
|
-
#
|
|
506
|
-
# characters.
|
|
507
|
-
# @param [String] user_ip
|
|
508
|
-
# Deprecated. Please use quotaUser instead.
|
|
523
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
524
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
509
525
|
# @param [Google::Apis::RequestOptions] options
|
|
510
526
|
# Request-specific options
|
|
511
527
|
#
|
|
512
528
|
# @yield [result, err] Result & error if block supplied
|
|
513
|
-
# @yieldparam result [Google::Apis::
|
|
529
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
514
530
|
# @yieldparam err [StandardError] error object if request failed
|
|
515
531
|
#
|
|
516
|
-
# @return [Google::Apis::
|
|
532
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
517
533
|
#
|
|
518
534
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
519
535
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
520
536
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
521
|
-
def add_instance_server_ca(project, instance,
|
|
522
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/addServerCa', options)
|
|
523
|
-
command.response_representation = Google::Apis::
|
|
524
|
-
command.response_class = Google::Apis::
|
|
537
|
+
def add_instance_server_ca(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
538
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/addServerCa', options)
|
|
539
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
540
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
525
541
|
command.params['project'] = project unless project.nil?
|
|
526
542
|
command.params['instance'] = instance unless instance.nil?
|
|
543
|
+
command.query['parent'] = parent unless parent.nil?
|
|
527
544
|
command.query['fields'] = fields unless fields.nil?
|
|
528
545
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
529
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
530
546
|
execute_or_queue_command(command, &block)
|
|
531
547
|
end
|
|
532
548
|
|
|
@@ -534,39 +550,40 @@ module Google
|
|
|
534
550
|
# @param [String] project
|
|
535
551
|
# Project ID of the source as well as the clone Cloud SQL instance.
|
|
536
552
|
# @param [String] instance
|
|
537
|
-
# The ID of the Cloud SQL instance to be cloned (source). This does not
|
|
538
|
-
# the project ID.
|
|
539
|
-
# @param [Google::Apis::
|
|
553
|
+
# The ID of the Cloud SQL instance to be cloned (source). This does not
|
|
554
|
+
# include the project ID.
|
|
555
|
+
# @param [Google::Apis::SqlV1beta4::InstancesCloneRequest] instances_clone_request_object
|
|
556
|
+
# @param [String] parent
|
|
557
|
+
# The parent resource where Cloud SQL should clone this instance.
|
|
558
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
540
559
|
# @param [String] fields
|
|
541
560
|
# Selector specifying which fields to include in a partial response.
|
|
542
561
|
# @param [String] quota_user
|
|
543
|
-
#
|
|
544
|
-
# characters.
|
|
545
|
-
# @param [String] user_ip
|
|
546
|
-
# Deprecated. Please use quotaUser instead.
|
|
562
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
563
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
547
564
|
# @param [Google::Apis::RequestOptions] options
|
|
548
565
|
# Request-specific options
|
|
549
566
|
#
|
|
550
567
|
# @yield [result, err] Result & error if block supplied
|
|
551
|
-
# @yieldparam result [Google::Apis::
|
|
568
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
552
569
|
# @yieldparam err [StandardError] error object if request failed
|
|
553
570
|
#
|
|
554
|
-
# @return [Google::Apis::
|
|
571
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
555
572
|
#
|
|
556
573
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
557
574
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
558
575
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
559
|
-
def clone_instance(project, instance,
|
|
560
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/clone', options)
|
|
561
|
-
command.request_representation = Google::Apis::
|
|
562
|
-
command.request_object =
|
|
563
|
-
command.response_representation = Google::Apis::
|
|
564
|
-
command.response_class = Google::Apis::
|
|
576
|
+
def clone_instance(project, instance, instances_clone_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
577
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/clone', options)
|
|
578
|
+
command.request_representation = Google::Apis::SqlV1beta4::InstancesCloneRequest::Representation
|
|
579
|
+
command.request_object = instances_clone_request_object
|
|
580
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
581
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
565
582
|
command.params['project'] = project unless project.nil?
|
|
566
583
|
command.params['instance'] = instance unless instance.nil?
|
|
584
|
+
command.query['parent'] = parent unless parent.nil?
|
|
567
585
|
command.query['fields'] = fields unless fields.nil?
|
|
568
586
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
569
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
570
587
|
execute_or_queue_command(command, &block)
|
|
571
588
|
end
|
|
572
589
|
|
|
@@ -575,34 +592,35 @@ module Google
|
|
|
575
592
|
# Project ID of the project that contains the instance to be deleted.
|
|
576
593
|
# @param [String] instance
|
|
577
594
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
595
|
+
# @param [String] resource_name
|
|
596
|
+
# The name of database instance to delete.
|
|
597
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
578
598
|
# @param [String] fields
|
|
579
599
|
# Selector specifying which fields to include in a partial response.
|
|
580
600
|
# @param [String] quota_user
|
|
581
|
-
#
|
|
582
|
-
# characters.
|
|
583
|
-
# @param [String] user_ip
|
|
584
|
-
# Deprecated. Please use quotaUser instead.
|
|
601
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
602
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
585
603
|
# @param [Google::Apis::RequestOptions] options
|
|
586
604
|
# Request-specific options
|
|
587
605
|
#
|
|
588
606
|
# @yield [result, err] Result & error if block supplied
|
|
589
|
-
# @yieldparam result [Google::Apis::
|
|
607
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
590
608
|
# @yieldparam err [StandardError] error object if request failed
|
|
591
609
|
#
|
|
592
|
-
# @return [Google::Apis::
|
|
610
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
593
611
|
#
|
|
594
612
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
595
613
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
596
614
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
597
|
-
def delete_instance(project, instance,
|
|
598
|
-
command = make_simple_command(:delete, 'projects/{project}/instances/{instance}', options)
|
|
599
|
-
command.response_representation = Google::Apis::
|
|
600
|
-
command.response_class = Google::Apis::
|
|
615
|
+
def delete_instance(project, instance, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
616
|
+
command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}', options)
|
|
617
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
618
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
601
619
|
command.params['project'] = project unless project.nil?
|
|
602
620
|
command.params['instance'] = instance unless instance.nil?
|
|
621
|
+
command.query['resourceName'] = resource_name unless resource_name.nil?
|
|
603
622
|
command.query['fields'] = fields unless fields.nil?
|
|
604
623
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
605
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
606
624
|
execute_or_queue_command(command, &block)
|
|
607
625
|
end
|
|
608
626
|
|
|
@@ -612,77 +630,79 @@ module Google
|
|
|
612
630
|
# ID of the project that contains the instance.
|
|
613
631
|
# @param [String] instance
|
|
614
632
|
# Cloud SQL instance name.
|
|
615
|
-
# @param [Google::Apis::
|
|
633
|
+
# @param [Google::Apis::SqlV1beta4::InstancesDemoteMasterRequest] instances_demote_master_request_object
|
|
634
|
+
# @param [String] parent
|
|
635
|
+
# The parent resource where Cloud SQL demotes this master database instance.
|
|
636
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
616
637
|
# @param [String] fields
|
|
617
638
|
# Selector specifying which fields to include in a partial response.
|
|
618
639
|
# @param [String] quota_user
|
|
619
|
-
#
|
|
620
|
-
# characters.
|
|
621
|
-
# @param [String] user_ip
|
|
622
|
-
# Deprecated. Please use quotaUser instead.
|
|
640
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
641
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
623
642
|
# @param [Google::Apis::RequestOptions] options
|
|
624
643
|
# Request-specific options
|
|
625
644
|
#
|
|
626
645
|
# @yield [result, err] Result & error if block supplied
|
|
627
|
-
# @yieldparam result [Google::Apis::
|
|
646
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
628
647
|
# @yieldparam err [StandardError] error object if request failed
|
|
629
648
|
#
|
|
630
|
-
# @return [Google::Apis::
|
|
649
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
631
650
|
#
|
|
632
651
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
633
652
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
634
653
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
635
|
-
def demote_instance_master(project, instance, instances_demote_master_request_object = nil,
|
|
636
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/demoteMaster', options)
|
|
637
|
-
command.request_representation = Google::Apis::
|
|
654
|
+
def demote_instance_master(project, instance, instances_demote_master_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
655
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster', options)
|
|
656
|
+
command.request_representation = Google::Apis::SqlV1beta4::InstancesDemoteMasterRequest::Representation
|
|
638
657
|
command.request_object = instances_demote_master_request_object
|
|
639
|
-
command.response_representation = Google::Apis::
|
|
640
|
-
command.response_class = Google::Apis::
|
|
658
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
659
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
641
660
|
command.params['project'] = project unless project.nil?
|
|
642
661
|
command.params['instance'] = instance unless instance.nil?
|
|
662
|
+
command.query['parent'] = parent unless parent.nil?
|
|
643
663
|
command.query['fields'] = fields unless fields.nil?
|
|
644
664
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
645
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
646
665
|
execute_or_queue_command(command, &block)
|
|
647
666
|
end
|
|
648
667
|
|
|
649
|
-
# Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL
|
|
650
|
-
# or CSV file.
|
|
668
|
+
# Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL
|
|
669
|
+
# dump or CSV file.
|
|
651
670
|
# @param [String] project
|
|
652
671
|
# Project ID of the project that contains the instance to be exported.
|
|
653
672
|
# @param [String] instance
|
|
654
673
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
655
|
-
# @param [Google::Apis::
|
|
674
|
+
# @param [Google::Apis::SqlV1beta4::InstancesExportRequest] instances_export_request_object
|
|
675
|
+
# @param [String] parent
|
|
676
|
+
# The parent resource where Cloud SQL exports this database instance.
|
|
677
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
656
678
|
# @param [String] fields
|
|
657
679
|
# Selector specifying which fields to include in a partial response.
|
|
658
680
|
# @param [String] quota_user
|
|
659
|
-
#
|
|
660
|
-
# characters.
|
|
661
|
-
# @param [String] user_ip
|
|
662
|
-
# Deprecated. Please use quotaUser instead.
|
|
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.
|
|
663
683
|
# @param [Google::Apis::RequestOptions] options
|
|
664
684
|
# Request-specific options
|
|
665
685
|
#
|
|
666
686
|
# @yield [result, err] Result & error if block supplied
|
|
667
|
-
# @yieldparam result [Google::Apis::
|
|
687
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
668
688
|
# @yieldparam err [StandardError] error object if request failed
|
|
669
689
|
#
|
|
670
|
-
# @return [Google::Apis::
|
|
690
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
671
691
|
#
|
|
672
692
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
673
693
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
674
694
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
675
|
-
def export_instance(project, instance,
|
|
676
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/export', options)
|
|
677
|
-
command.request_representation = Google::Apis::
|
|
678
|
-
command.request_object =
|
|
679
|
-
command.response_representation = Google::Apis::
|
|
680
|
-
command.response_class = Google::Apis::
|
|
695
|
+
def export_instance(project, instance, instances_export_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
696
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/export', options)
|
|
697
|
+
command.request_representation = Google::Apis::SqlV1beta4::InstancesExportRequest::Representation
|
|
698
|
+
command.request_object = instances_export_request_object
|
|
699
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
700
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
681
701
|
command.params['project'] = project unless project.nil?
|
|
682
702
|
command.params['instance'] = instance unless instance.nil?
|
|
703
|
+
command.query['parent'] = parent unless parent.nil?
|
|
683
704
|
command.query['fields'] = fields unless fields.nil?
|
|
684
705
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
685
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
686
706
|
execute_or_queue_command(command, &block)
|
|
687
707
|
end
|
|
688
708
|
|
|
@@ -691,37 +711,39 @@ module Google
|
|
|
691
711
|
# ID of the project that contains the read replica.
|
|
692
712
|
# @param [String] instance
|
|
693
713
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
694
|
-
# @param [Google::Apis::
|
|
714
|
+
# @param [Google::Apis::SqlV1beta4::InstancesFailoverRequest] instances_failover_request_object
|
|
715
|
+
# @param [String] parent
|
|
716
|
+
# The parent resource where Cloud SQL sends this database instance during a
|
|
717
|
+
# failover. Format:
|
|
718
|
+
# projects/`project`/locations/`location`/instances/`instance`
|
|
695
719
|
# @param [String] fields
|
|
696
720
|
# Selector specifying which fields to include in a partial response.
|
|
697
721
|
# @param [String] quota_user
|
|
698
|
-
#
|
|
699
|
-
# characters.
|
|
700
|
-
# @param [String] user_ip
|
|
701
|
-
# Deprecated. Please use quotaUser instead.
|
|
722
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
723
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
702
724
|
# @param [Google::Apis::RequestOptions] options
|
|
703
725
|
# Request-specific options
|
|
704
726
|
#
|
|
705
727
|
# @yield [result, err] Result & error if block supplied
|
|
706
|
-
# @yieldparam result [Google::Apis::
|
|
728
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
707
729
|
# @yieldparam err [StandardError] error object if request failed
|
|
708
730
|
#
|
|
709
|
-
# @return [Google::Apis::
|
|
731
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
710
732
|
#
|
|
711
733
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
712
734
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
713
735
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
714
|
-
def failover_instance(project, instance, instances_failover_request_object = nil,
|
|
715
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/failover', options)
|
|
716
|
-
command.request_representation = Google::Apis::
|
|
736
|
+
def failover_instance(project, instance, instances_failover_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
737
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/failover', options)
|
|
738
|
+
command.request_representation = Google::Apis::SqlV1beta4::InstancesFailoverRequest::Representation
|
|
717
739
|
command.request_object = instances_failover_request_object
|
|
718
|
-
command.response_representation = Google::Apis::
|
|
719
|
-
command.response_class = Google::Apis::
|
|
740
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
741
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
720
742
|
command.params['project'] = project unless project.nil?
|
|
721
743
|
command.params['instance'] = instance unless instance.nil?
|
|
744
|
+
command.query['parent'] = parent unless parent.nil?
|
|
722
745
|
command.query['fields'] = fields unless fields.nil?
|
|
723
746
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
724
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
725
747
|
execute_or_queue_command(command, &block)
|
|
726
748
|
end
|
|
727
749
|
|
|
@@ -730,74 +752,76 @@ module Google
|
|
|
730
752
|
# Project ID of the project that contains the instance.
|
|
731
753
|
# @param [String] instance
|
|
732
754
|
# Database instance ID. This does not include the project ID.
|
|
755
|
+
# @param [String] resource_name
|
|
756
|
+
# Name of the resource database instance.
|
|
757
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
733
758
|
# @param [String] fields
|
|
734
759
|
# Selector specifying which fields to include in a partial response.
|
|
735
760
|
# @param [String] quota_user
|
|
736
|
-
#
|
|
737
|
-
# characters.
|
|
738
|
-
# @param [String] user_ip
|
|
739
|
-
# Deprecated. Please use quotaUser instead.
|
|
761
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
762
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
740
763
|
# @param [Google::Apis::RequestOptions] options
|
|
741
764
|
# Request-specific options
|
|
742
765
|
#
|
|
743
766
|
# @yield [result, err] Result & error if block supplied
|
|
744
|
-
# @yieldparam result [Google::Apis::
|
|
767
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::DatabaseInstance] parsed result object
|
|
745
768
|
# @yieldparam err [StandardError] error object if request failed
|
|
746
769
|
#
|
|
747
|
-
# @return [Google::Apis::
|
|
770
|
+
# @return [Google::Apis::SqlV1beta4::DatabaseInstance]
|
|
748
771
|
#
|
|
749
772
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
750
773
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
751
774
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
752
|
-
def get_instance(project, instance,
|
|
753
|
-
command = make_simple_command(:get, 'projects/{project}/instances/{instance}', options)
|
|
754
|
-
command.response_representation = Google::Apis::
|
|
755
|
-
command.response_class = Google::Apis::
|
|
775
|
+
def get_instance(project, instance, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
776
|
+
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}', options)
|
|
777
|
+
command.response_representation = Google::Apis::SqlV1beta4::DatabaseInstance::Representation
|
|
778
|
+
command.response_class = Google::Apis::SqlV1beta4::DatabaseInstance
|
|
756
779
|
command.params['project'] = project unless project.nil?
|
|
757
780
|
command.params['instance'] = instance unless instance.nil?
|
|
781
|
+
command.query['resourceName'] = resource_name unless resource_name.nil?
|
|
758
782
|
command.query['fields'] = fields unless fields.nil?
|
|
759
783
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
760
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
761
784
|
execute_or_queue_command(command, &block)
|
|
762
785
|
end
|
|
763
786
|
|
|
764
|
-
# Imports data into a Cloud SQL instance from a SQL dump
|
|
765
|
-
# Storage.
|
|
787
|
+
# Imports data into a Cloud SQL instance from a SQL dump or CSV file in
|
|
788
|
+
# Cloud Storage.
|
|
766
789
|
# @param [String] project
|
|
767
790
|
# Project ID of the project that contains the instance.
|
|
768
791
|
# @param [String] instance
|
|
769
792
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
770
|
-
# @param [Google::Apis::
|
|
793
|
+
# @param [Google::Apis::SqlV1beta4::InstancesImportRequest] instances_import_request_object
|
|
794
|
+
# @param [String] parent
|
|
795
|
+
# The parent resource where Cloud SQL imports this database instance.
|
|
796
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
771
797
|
# @param [String] fields
|
|
772
798
|
# Selector specifying which fields to include in a partial response.
|
|
773
799
|
# @param [String] quota_user
|
|
774
|
-
#
|
|
775
|
-
# characters.
|
|
776
|
-
# @param [String] user_ip
|
|
777
|
-
# Deprecated. Please use quotaUser instead.
|
|
800
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
801
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
778
802
|
# @param [Google::Apis::RequestOptions] options
|
|
779
803
|
# Request-specific options
|
|
780
804
|
#
|
|
781
805
|
# @yield [result, err] Result & error if block supplied
|
|
782
|
-
# @yieldparam result [Google::Apis::
|
|
806
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
783
807
|
# @yieldparam err [StandardError] error object if request failed
|
|
784
808
|
#
|
|
785
|
-
# @return [Google::Apis::
|
|
809
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
786
810
|
#
|
|
787
811
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
788
812
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
789
813
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
790
|
-
def import_instance(project, instance,
|
|
791
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/import', options)
|
|
792
|
-
command.request_representation = Google::Apis::
|
|
793
|
-
command.request_object =
|
|
794
|
-
command.response_representation = Google::Apis::
|
|
795
|
-
command.response_class = Google::Apis::
|
|
814
|
+
def import_instance(project, instance, instances_import_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
815
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/import', options)
|
|
816
|
+
command.request_representation = Google::Apis::SqlV1beta4::InstancesImportRequest::Representation
|
|
817
|
+
command.request_object = instances_import_request_object
|
|
818
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
819
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
796
820
|
command.params['project'] = project unless project.nil?
|
|
797
821
|
command.params['instance'] = instance unless instance.nil?
|
|
822
|
+
command.query['parent'] = parent unless parent.nil?
|
|
798
823
|
command.query['fields'] = fields unless fields.nil?
|
|
799
824
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
800
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
801
825
|
execute_or_queue_command(command, &block)
|
|
802
826
|
end
|
|
803
827
|
|
|
@@ -805,36 +829,37 @@ module Google
|
|
|
805
829
|
# @param [String] project
|
|
806
830
|
# Project ID of the project to which the newly created Cloud SQL instances
|
|
807
831
|
# should belong.
|
|
808
|
-
# @param [Google::Apis::
|
|
832
|
+
# @param [Google::Apis::SqlV1beta4::DatabaseInstance] database_instance_object
|
|
833
|
+
# @param [String] parent
|
|
834
|
+
# The parent resource where Cloud SQL creates this database instance.
|
|
835
|
+
# Format: projects/`project`/locations/`location`
|
|
809
836
|
# @param [String] fields
|
|
810
837
|
# Selector specifying which fields to include in a partial response.
|
|
811
838
|
# @param [String] quota_user
|
|
812
|
-
#
|
|
813
|
-
# characters.
|
|
814
|
-
# @param [String] user_ip
|
|
815
|
-
# Deprecated. Please use quotaUser instead.
|
|
839
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
840
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
816
841
|
# @param [Google::Apis::RequestOptions] options
|
|
817
842
|
# Request-specific options
|
|
818
843
|
#
|
|
819
844
|
# @yield [result, err] Result & error if block supplied
|
|
820
|
-
# @yieldparam result [Google::Apis::
|
|
845
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
821
846
|
# @yieldparam err [StandardError] error object if request failed
|
|
822
847
|
#
|
|
823
|
-
# @return [Google::Apis::
|
|
848
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
824
849
|
#
|
|
825
850
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
826
851
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
827
852
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
828
|
-
def insert_instance(project, database_instance_object = nil,
|
|
829
|
-
command = make_simple_command(:post, 'projects/{project}/instances', options)
|
|
830
|
-
command.request_representation = Google::Apis::
|
|
853
|
+
def insert_instance(project, database_instance_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
854
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances', options)
|
|
855
|
+
command.request_representation = Google::Apis::SqlV1beta4::DatabaseInstance::Representation
|
|
831
856
|
command.request_object = database_instance_object
|
|
832
|
-
command.response_representation = Google::Apis::
|
|
833
|
-
command.response_class = Google::Apis::
|
|
857
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
858
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
834
859
|
command.params['project'] = project unless project.nil?
|
|
860
|
+
command.query['parent'] = parent unless parent.nil?
|
|
835
861
|
command.query['fields'] = fields unless fields.nil?
|
|
836
862
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
837
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
838
863
|
execute_or_queue_command(command, &block)
|
|
839
864
|
end
|
|
840
865
|
|
|
@@ -853,114 +878,112 @@ module Google
|
|
|
853
878
|
# @param [String] fields
|
|
854
879
|
# Selector specifying which fields to include in a partial response.
|
|
855
880
|
# @param [String] quota_user
|
|
856
|
-
#
|
|
857
|
-
# characters.
|
|
858
|
-
# @param [String] user_ip
|
|
859
|
-
# Deprecated. Please use quotaUser instead.
|
|
881
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
882
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
860
883
|
# @param [Google::Apis::RequestOptions] options
|
|
861
884
|
# Request-specific options
|
|
862
885
|
#
|
|
863
886
|
# @yield [result, err] Result & error if block supplied
|
|
864
|
-
# @yieldparam result [Google::Apis::
|
|
887
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::InstancesListResponse] parsed result object
|
|
865
888
|
# @yieldparam err [StandardError] error object if request failed
|
|
866
889
|
#
|
|
867
|
-
# @return [Google::Apis::
|
|
890
|
+
# @return [Google::Apis::SqlV1beta4::InstancesListResponse]
|
|
868
891
|
#
|
|
869
892
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
870
893
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
871
894
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
872
|
-
def list_instances(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil,
|
|
873
|
-
command = make_simple_command(:get, 'projects/{project}/instances', options)
|
|
874
|
-
command.response_representation = Google::Apis::
|
|
875
|
-
command.response_class = Google::Apis::
|
|
895
|
+
def list_instances(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
896
|
+
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances', options)
|
|
897
|
+
command.response_representation = Google::Apis::SqlV1beta4::InstancesListResponse::Representation
|
|
898
|
+
command.response_class = Google::Apis::SqlV1beta4::InstancesListResponse
|
|
876
899
|
command.params['project'] = project unless project.nil?
|
|
877
900
|
command.query['filter'] = filter unless filter.nil?
|
|
878
901
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
879
902
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
880
903
|
command.query['fields'] = fields unless fields.nil?
|
|
881
904
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
882
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
883
905
|
execute_or_queue_command(command, &block)
|
|
884
906
|
end
|
|
885
907
|
|
|
886
908
|
# Lists all of the trusted Certificate Authorities (CAs) for the specified
|
|
887
909
|
# instance. There can be up to three CAs listed: the CA that was used to sign
|
|
888
|
-
# the certificate that is currently in use, a CA that has been added but not
|
|
889
|
-
# used to sign a certificate, and a CA used to sign a certificate that
|
|
890
|
-
# previously rotated out.
|
|
910
|
+
# the certificate that is currently in use, a CA that has been added but not
|
|
911
|
+
# yet used to sign a certificate, and a CA used to sign a certificate that
|
|
912
|
+
# has previously rotated out.
|
|
891
913
|
# @param [String] project
|
|
892
914
|
# Project ID of the project that contains the instance.
|
|
893
915
|
# @param [String] instance
|
|
894
916
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
917
|
+
# @param [String] parent
|
|
918
|
+
# The parent, which owns this collection of server CAs.
|
|
919
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
895
920
|
# @param [String] fields
|
|
896
921
|
# Selector specifying which fields to include in a partial response.
|
|
897
922
|
# @param [String] quota_user
|
|
898
|
-
#
|
|
899
|
-
# characters.
|
|
900
|
-
# @param [String] user_ip
|
|
901
|
-
# Deprecated. Please use quotaUser instead.
|
|
923
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
924
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
902
925
|
# @param [Google::Apis::RequestOptions] options
|
|
903
926
|
# Request-specific options
|
|
904
927
|
#
|
|
905
928
|
# @yield [result, err] Result & error if block supplied
|
|
906
|
-
# @yieldparam result [Google::Apis::
|
|
929
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::InstancesListServerCasResponse] parsed result object
|
|
907
930
|
# @yieldparam err [StandardError] error object if request failed
|
|
908
931
|
#
|
|
909
|
-
# @return [Google::Apis::
|
|
932
|
+
# @return [Google::Apis::SqlV1beta4::InstancesListServerCasResponse]
|
|
910
933
|
#
|
|
911
934
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
912
935
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
913
936
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
914
|
-
def list_instance_server_cas(project, instance,
|
|
915
|
-
command = make_simple_command(:get, 'projects/{project}/instances/{instance}/listServerCas', options)
|
|
916
|
-
command.response_representation = Google::Apis::
|
|
917
|
-
command.response_class = Google::Apis::
|
|
937
|
+
def list_instance_server_cas(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
938
|
+
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/listServerCas', options)
|
|
939
|
+
command.response_representation = Google::Apis::SqlV1beta4::InstancesListServerCasResponse::Representation
|
|
940
|
+
command.response_class = Google::Apis::SqlV1beta4::InstancesListServerCasResponse
|
|
918
941
|
command.params['project'] = project unless project.nil?
|
|
919
942
|
command.params['instance'] = instance unless instance.nil?
|
|
943
|
+
command.query['parent'] = parent unless parent.nil?
|
|
920
944
|
command.query['fields'] = fields unless fields.nil?
|
|
921
945
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
922
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
923
946
|
execute_or_queue_command(command, &block)
|
|
924
947
|
end
|
|
925
948
|
|
|
926
|
-
# Updates settings of a Cloud SQL instance.
|
|
927
|
-
#
|
|
928
|
-
# retain. For partial updates, use patch.. This method supports patch semantics.
|
|
949
|
+
# Updates settings of a Cloud SQL instance.
|
|
950
|
+
# This method supports patch semantics.
|
|
929
951
|
# @param [String] project
|
|
930
952
|
# Project ID of the project that contains the instance.
|
|
931
953
|
# @param [String] instance
|
|
932
954
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
933
|
-
# @param [Google::Apis::
|
|
955
|
+
# @param [Google::Apis::SqlV1beta4::DatabaseInstance] database_instance_object
|
|
956
|
+
# @param [String] resource_name
|
|
957
|
+
# The name of the database instance for Cloud SQL to update.
|
|
958
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
934
959
|
# @param [String] fields
|
|
935
960
|
# Selector specifying which fields to include in a partial response.
|
|
936
961
|
# @param [String] quota_user
|
|
937
|
-
#
|
|
938
|
-
# characters.
|
|
939
|
-
# @param [String] user_ip
|
|
940
|
-
# Deprecated. Please use quotaUser instead.
|
|
962
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
963
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
941
964
|
# @param [Google::Apis::RequestOptions] options
|
|
942
965
|
# Request-specific options
|
|
943
966
|
#
|
|
944
967
|
# @yield [result, err] Result & error if block supplied
|
|
945
|
-
# @yieldparam result [Google::Apis::
|
|
968
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
946
969
|
# @yieldparam err [StandardError] error object if request failed
|
|
947
970
|
#
|
|
948
|
-
# @return [Google::Apis::
|
|
971
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
949
972
|
#
|
|
950
973
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
951
974
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
952
975
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
953
|
-
def patch_instance(project, instance, database_instance_object = nil,
|
|
954
|
-
command = make_simple_command(:patch, 'projects/{project}/instances/{instance}', options)
|
|
955
|
-
command.request_representation = Google::Apis::
|
|
976
|
+
def patch_instance(project, instance, database_instance_object = nil, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
977
|
+
command = make_simple_command(:patch, 'sql/v1beta4/projects/{project}/instances/{instance}', options)
|
|
978
|
+
command.request_representation = Google::Apis::SqlV1beta4::DatabaseInstance::Representation
|
|
956
979
|
command.request_object = database_instance_object
|
|
957
|
-
command.response_representation = Google::Apis::
|
|
958
|
-
command.response_class = Google::Apis::
|
|
980
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
981
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
959
982
|
command.params['project'] = project unless project.nil?
|
|
960
983
|
command.params['instance'] = instance unless instance.nil?
|
|
984
|
+
command.query['resourceName'] = resource_name unless resource_name.nil?
|
|
961
985
|
command.query['fields'] = fields unless fields.nil?
|
|
962
986
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
963
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
964
987
|
execute_or_queue_command(command, &block)
|
|
965
988
|
end
|
|
966
989
|
|
|
@@ -969,71 +992,73 @@ module Google
|
|
|
969
992
|
# ID of the project that contains the read replica.
|
|
970
993
|
# @param [String] instance
|
|
971
994
|
# Cloud SQL read replica instance name.
|
|
995
|
+
# @param [String] parent
|
|
996
|
+
# The parent resource where Cloud SQL promotes this replica database
|
|
997
|
+
# instance. Format: projects/`project`/locations/`location`
|
|
972
998
|
# @param [String] fields
|
|
973
999
|
# Selector specifying which fields to include in a partial response.
|
|
974
1000
|
# @param [String] quota_user
|
|
975
|
-
#
|
|
976
|
-
# characters.
|
|
977
|
-
# @param [String] user_ip
|
|
978
|
-
# Deprecated. Please use quotaUser instead.
|
|
1001
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1002
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
979
1003
|
# @param [Google::Apis::RequestOptions] options
|
|
980
1004
|
# Request-specific options
|
|
981
1005
|
#
|
|
982
1006
|
# @yield [result, err] Result & error if block supplied
|
|
983
|
-
# @yieldparam result [Google::Apis::
|
|
1007
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
984
1008
|
# @yieldparam err [StandardError] error object if request failed
|
|
985
1009
|
#
|
|
986
|
-
# @return [Google::Apis::
|
|
1010
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
987
1011
|
#
|
|
988
1012
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
989
1013
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
990
1014
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
991
|
-
def promote_instance_replica(project, instance,
|
|
992
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/promoteReplica', options)
|
|
993
|
-
command.response_representation = Google::Apis::
|
|
994
|
-
command.response_class = Google::Apis::
|
|
1015
|
+
def promote_instance_replica(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1016
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica', options)
|
|
1017
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
1018
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
995
1019
|
command.params['project'] = project unless project.nil?
|
|
996
1020
|
command.params['instance'] = instance unless instance.nil?
|
|
1021
|
+
command.query['parent'] = parent unless parent.nil?
|
|
997
1022
|
command.query['fields'] = fields unless fields.nil?
|
|
998
1023
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
999
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1000
1024
|
execute_or_queue_command(command, &block)
|
|
1001
1025
|
end
|
|
1002
1026
|
|
|
1003
|
-
# Deletes all client certificates and generates a new server SSL certificate
|
|
1004
|
-
# the instance.
|
|
1027
|
+
# Deletes all client certificates and generates a new server SSL certificate
|
|
1028
|
+
# for the instance.
|
|
1005
1029
|
# @param [String] project
|
|
1006
1030
|
# Project ID of the project that contains the instance.
|
|
1007
1031
|
# @param [String] instance
|
|
1008
1032
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
1033
|
+
# @param [String] parent
|
|
1034
|
+
# The parent resource where Cloud SQL resets this SSL config.
|
|
1035
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
1009
1036
|
# @param [String] fields
|
|
1010
1037
|
# Selector specifying which fields to include in a partial response.
|
|
1011
1038
|
# @param [String] quota_user
|
|
1012
|
-
#
|
|
1013
|
-
# characters.
|
|
1014
|
-
# @param [String] user_ip
|
|
1015
|
-
# Deprecated. Please use quotaUser instead.
|
|
1039
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1040
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1016
1041
|
# @param [Google::Apis::RequestOptions] options
|
|
1017
1042
|
# Request-specific options
|
|
1018
1043
|
#
|
|
1019
1044
|
# @yield [result, err] Result & error if block supplied
|
|
1020
|
-
# @yieldparam result [Google::Apis::
|
|
1045
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
1021
1046
|
# @yieldparam err [StandardError] error object if request failed
|
|
1022
1047
|
#
|
|
1023
|
-
# @return [Google::Apis::
|
|
1048
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
1024
1049
|
#
|
|
1025
1050
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1026
1051
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1027
1052
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1028
|
-
def reset_instance_ssl_config(project, instance,
|
|
1029
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/resetSslConfig', options)
|
|
1030
|
-
command.response_representation = Google::Apis::
|
|
1031
|
-
command.response_class = Google::Apis::
|
|
1053
|
+
def reset_instance_ssl_config(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1054
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig', options)
|
|
1055
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
1056
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
1032
1057
|
command.params['project'] = project unless project.nil?
|
|
1033
1058
|
command.params['instance'] = instance unless instance.nil?
|
|
1059
|
+
command.query['parent'] = parent unless parent.nil?
|
|
1034
1060
|
command.query['fields'] = fields unless fields.nil?
|
|
1035
1061
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1036
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1037
1062
|
execute_or_queue_command(command, &block)
|
|
1038
1063
|
end
|
|
1039
1064
|
|
|
@@ -1042,34 +1067,35 @@ module Google
|
|
|
1042
1067
|
# Project ID of the project that contains the instance to be restarted.
|
|
1043
1068
|
# @param [String] instance
|
|
1044
1069
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
1070
|
+
# @param [String] parent
|
|
1071
|
+
# The parent resource where Cloud SQL restarts this database instance.
|
|
1072
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
1045
1073
|
# @param [String] fields
|
|
1046
1074
|
# Selector specifying which fields to include in a partial response.
|
|
1047
1075
|
# @param [String] quota_user
|
|
1048
|
-
#
|
|
1049
|
-
# characters.
|
|
1050
|
-
# @param [String] user_ip
|
|
1051
|
-
# Deprecated. Please use quotaUser instead.
|
|
1076
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1077
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1052
1078
|
# @param [Google::Apis::RequestOptions] options
|
|
1053
1079
|
# Request-specific options
|
|
1054
1080
|
#
|
|
1055
1081
|
# @yield [result, err] Result & error if block supplied
|
|
1056
|
-
# @yieldparam result [Google::Apis::
|
|
1082
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
1057
1083
|
# @yieldparam err [StandardError] error object if request failed
|
|
1058
1084
|
#
|
|
1059
|
-
# @return [Google::Apis::
|
|
1085
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
1060
1086
|
#
|
|
1061
1087
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1062
1088
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1063
1089
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1064
|
-
def restart_instance(project, instance,
|
|
1065
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restart', options)
|
|
1066
|
-
command.response_representation = Google::Apis::
|
|
1067
|
-
command.response_class = Google::Apis::
|
|
1090
|
+
def restart_instance(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1091
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/restart', options)
|
|
1092
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
1093
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
1068
1094
|
command.params['project'] = project unless project.nil?
|
|
1069
1095
|
command.params['instance'] = instance unless instance.nil?
|
|
1096
|
+
command.query['parent'] = parent unless parent.nil?
|
|
1070
1097
|
command.query['fields'] = fields unless fields.nil?
|
|
1071
1098
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1072
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1073
1099
|
execute_or_queue_command(command, &block)
|
|
1074
1100
|
end
|
|
1075
1101
|
|
|
@@ -1078,77 +1104,80 @@ module Google
|
|
|
1078
1104
|
# Project ID of the project that contains the instance.
|
|
1079
1105
|
# @param [String] instance
|
|
1080
1106
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
1081
|
-
# @param [Google::Apis::
|
|
1107
|
+
# @param [Google::Apis::SqlV1beta4::InstancesRestoreBackupRequest] instances_restore_backup_request_object
|
|
1108
|
+
# @param [String] parent
|
|
1109
|
+
# The parent resource where Cloud SQL restores this database instance from
|
|
1110
|
+
# backup. Format:
|
|
1111
|
+
# projects/`project`/locations/`location`/instances/`instance`
|
|
1082
1112
|
# @param [String] fields
|
|
1083
1113
|
# Selector specifying which fields to include in a partial response.
|
|
1084
1114
|
# @param [String] quota_user
|
|
1085
|
-
#
|
|
1086
|
-
# characters.
|
|
1087
|
-
# @param [String] user_ip
|
|
1088
|
-
# Deprecated. Please use quotaUser instead.
|
|
1115
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1116
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1089
1117
|
# @param [Google::Apis::RequestOptions] options
|
|
1090
1118
|
# Request-specific options
|
|
1091
1119
|
#
|
|
1092
1120
|
# @yield [result, err] Result & error if block supplied
|
|
1093
|
-
# @yieldparam result [Google::Apis::
|
|
1121
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
1094
1122
|
# @yieldparam err [StandardError] error object if request failed
|
|
1095
1123
|
#
|
|
1096
|
-
# @return [Google::Apis::
|
|
1124
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
1097
1125
|
#
|
|
1098
1126
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1099
1127
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1100
1128
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1101
|
-
def restore_instance_backup(project, instance,
|
|
1102
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restoreBackup', options)
|
|
1103
|
-
command.request_representation = Google::Apis::
|
|
1104
|
-
command.request_object =
|
|
1105
|
-
command.response_representation = Google::Apis::
|
|
1106
|
-
command.response_class = Google::Apis::
|
|
1129
|
+
def restore_instance_backup(project, instance, instances_restore_backup_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1130
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup', options)
|
|
1131
|
+
command.request_representation = Google::Apis::SqlV1beta4::InstancesRestoreBackupRequest::Representation
|
|
1132
|
+
command.request_object = instances_restore_backup_request_object
|
|
1133
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
1134
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
1107
1135
|
command.params['project'] = project unless project.nil?
|
|
1108
1136
|
command.params['instance'] = instance unless instance.nil?
|
|
1137
|
+
command.query['parent'] = parent unless parent.nil?
|
|
1109
1138
|
command.query['fields'] = fields unless fields.nil?
|
|
1110
1139
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1111
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1112
1140
|
execute_or_queue_command(command, &block)
|
|
1113
1141
|
end
|
|
1114
1142
|
|
|
1115
|
-
# Rotates the server certificate to one signed by the Certificate Authority
|
|
1116
|
-
# version previously added with the addServerCA method.
|
|
1143
|
+
# Rotates the server certificate to one signed by the Certificate Authority
|
|
1144
|
+
# (CA) version previously added with the addServerCA method.
|
|
1117
1145
|
# @param [String] project
|
|
1118
1146
|
# Project ID of the project that contains the instance.
|
|
1119
1147
|
# @param [String] instance
|
|
1120
1148
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
1121
|
-
# @param [Google::Apis::
|
|
1149
|
+
# @param [Google::Apis::SqlV1beta4::InstancesRotateServerCaRequest] instances_rotate_server_ca_request_object
|
|
1150
|
+
# @param [String] parent
|
|
1151
|
+
# The parent resource where Cloud SQL rotates these server CAs.
|
|
1152
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
1122
1153
|
# @param [String] fields
|
|
1123
1154
|
# Selector specifying which fields to include in a partial response.
|
|
1124
1155
|
# @param [String] quota_user
|
|
1125
|
-
#
|
|
1126
|
-
# characters.
|
|
1127
|
-
# @param [String] user_ip
|
|
1128
|
-
# Deprecated. Please use quotaUser instead.
|
|
1156
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1157
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1129
1158
|
# @param [Google::Apis::RequestOptions] options
|
|
1130
1159
|
# Request-specific options
|
|
1131
1160
|
#
|
|
1132
1161
|
# @yield [result, err] Result & error if block supplied
|
|
1133
|
-
# @yieldparam result [Google::Apis::
|
|
1162
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
1134
1163
|
# @yieldparam err [StandardError] error object if request failed
|
|
1135
1164
|
#
|
|
1136
|
-
# @return [Google::Apis::
|
|
1165
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
1137
1166
|
#
|
|
1138
1167
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1139
1168
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1140
1169
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1141
|
-
def rotate_instance_server_ca(project, instance, instances_rotate_server_ca_request_object = nil,
|
|
1142
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/rotateServerCa', options)
|
|
1143
|
-
command.request_representation = Google::Apis::
|
|
1170
|
+
def rotate_instance_server_ca(project, instance, instances_rotate_server_ca_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1171
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa', options)
|
|
1172
|
+
command.request_representation = Google::Apis::SqlV1beta4::InstancesRotateServerCaRequest::Representation
|
|
1144
1173
|
command.request_object = instances_rotate_server_ca_request_object
|
|
1145
|
-
command.response_representation = Google::Apis::
|
|
1146
|
-
command.response_class = Google::Apis::
|
|
1174
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
1175
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
1147
1176
|
command.params['project'] = project unless project.nil?
|
|
1148
1177
|
command.params['instance'] = instance unless instance.nil?
|
|
1178
|
+
command.query['parent'] = parent unless parent.nil?
|
|
1149
1179
|
command.query['fields'] = fields unless fields.nil?
|
|
1150
1180
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1151
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1152
1181
|
execute_or_queue_command(command, &block)
|
|
1153
1182
|
end
|
|
1154
1183
|
|
|
@@ -1157,34 +1186,36 @@ module Google
|
|
|
1157
1186
|
# ID of the project that contains the read replica.
|
|
1158
1187
|
# @param [String] instance
|
|
1159
1188
|
# Cloud SQL read replica instance name.
|
|
1189
|
+
# @param [String] parent
|
|
1190
|
+
# The parent resource where Cloud SQL starts this database instance
|
|
1191
|
+
# replication. Format:
|
|
1192
|
+
# projects/`project`/locations/`location`/instances/`instance`
|
|
1160
1193
|
# @param [String] fields
|
|
1161
1194
|
# Selector specifying which fields to include in a partial response.
|
|
1162
1195
|
# @param [String] quota_user
|
|
1163
|
-
#
|
|
1164
|
-
# characters.
|
|
1165
|
-
# @param [String] user_ip
|
|
1166
|
-
# Deprecated. Please use quotaUser instead.
|
|
1196
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1197
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1167
1198
|
# @param [Google::Apis::RequestOptions] options
|
|
1168
1199
|
# Request-specific options
|
|
1169
1200
|
#
|
|
1170
1201
|
# @yield [result, err] Result & error if block supplied
|
|
1171
|
-
# @yieldparam result [Google::Apis::
|
|
1202
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
1172
1203
|
# @yieldparam err [StandardError] error object if request failed
|
|
1173
1204
|
#
|
|
1174
|
-
# @return [Google::Apis::
|
|
1205
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
1175
1206
|
#
|
|
1176
1207
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1177
1208
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1178
1209
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1179
|
-
def start_instance_replica(project, instance,
|
|
1180
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/startReplica', options)
|
|
1181
|
-
command.response_representation = Google::Apis::
|
|
1182
|
-
command.response_class = Google::Apis::
|
|
1210
|
+
def start_instance_replica(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1211
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/startReplica', options)
|
|
1212
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
1213
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
1183
1214
|
command.params['project'] = project unless project.nil?
|
|
1184
1215
|
command.params['instance'] = instance unless instance.nil?
|
|
1216
|
+
command.query['parent'] = parent unless parent.nil?
|
|
1185
1217
|
command.query['fields'] = fields unless fields.nil?
|
|
1186
1218
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1187
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1188
1219
|
execute_or_queue_command(command, &block)
|
|
1189
1220
|
end
|
|
1190
1221
|
|
|
@@ -1193,34 +1224,36 @@ module Google
|
|
|
1193
1224
|
# ID of the project that contains the read replica.
|
|
1194
1225
|
# @param [String] instance
|
|
1195
1226
|
# Cloud SQL read replica instance name.
|
|
1227
|
+
# @param [String] parent
|
|
1228
|
+
# The parent resource where Cloud SQL stops this database instance
|
|
1229
|
+
# replication. Format:
|
|
1230
|
+
# projects/`project`/locations/`location`/instances/`instance`
|
|
1196
1231
|
# @param [String] fields
|
|
1197
1232
|
# Selector specifying which fields to include in a partial response.
|
|
1198
1233
|
# @param [String] quota_user
|
|
1199
|
-
#
|
|
1200
|
-
# characters.
|
|
1201
|
-
# @param [String] user_ip
|
|
1202
|
-
# Deprecated. Please use quotaUser instead.
|
|
1234
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1235
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1203
1236
|
# @param [Google::Apis::RequestOptions] options
|
|
1204
1237
|
# Request-specific options
|
|
1205
1238
|
#
|
|
1206
1239
|
# @yield [result, err] Result & error if block supplied
|
|
1207
|
-
# @yieldparam result [Google::Apis::
|
|
1240
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
1208
1241
|
# @yieldparam err [StandardError] error object if request failed
|
|
1209
1242
|
#
|
|
1210
|
-
# @return [Google::Apis::
|
|
1243
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
1211
1244
|
#
|
|
1212
1245
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1213
1246
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1214
1247
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1215
|
-
def stop_instance_replica(project, instance,
|
|
1216
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/stopReplica', options)
|
|
1217
|
-
command.response_representation = Google::Apis::
|
|
1218
|
-
command.response_class = Google::Apis::
|
|
1248
|
+
def stop_instance_replica(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1249
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/stopReplica', options)
|
|
1250
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
1251
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
1219
1252
|
command.params['project'] = project unless project.nil?
|
|
1220
1253
|
command.params['instance'] = instance unless instance.nil?
|
|
1254
|
+
command.query['parent'] = parent unless parent.nil?
|
|
1221
1255
|
command.query['fields'] = fields unless fields.nil?
|
|
1222
1256
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1223
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1224
1257
|
execute_or_queue_command(command, &block)
|
|
1225
1258
|
end
|
|
1226
1259
|
|
|
@@ -1229,78 +1262,83 @@ module Google
|
|
|
1229
1262
|
# Project ID of the Cloud SQL project.
|
|
1230
1263
|
# @param [String] instance
|
|
1231
1264
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
1232
|
-
# @param [Google::Apis::
|
|
1265
|
+
# @param [Google::Apis::SqlV1beta4::InstancesTruncateLogRequest] instances_truncate_log_request_object
|
|
1266
|
+
# @param [String] parent
|
|
1267
|
+
# The parent resource where Cloud SQL truncates this log.
|
|
1268
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
1233
1269
|
# @param [String] fields
|
|
1234
1270
|
# Selector specifying which fields to include in a partial response.
|
|
1235
1271
|
# @param [String] quota_user
|
|
1236
|
-
#
|
|
1237
|
-
# characters.
|
|
1238
|
-
# @param [String] user_ip
|
|
1239
|
-
# Deprecated. Please use quotaUser instead.
|
|
1272
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1273
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1240
1274
|
# @param [Google::Apis::RequestOptions] options
|
|
1241
1275
|
# Request-specific options
|
|
1242
1276
|
#
|
|
1243
1277
|
# @yield [result, err] Result & error if block supplied
|
|
1244
|
-
# @yieldparam result [Google::Apis::
|
|
1278
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
1245
1279
|
# @yieldparam err [StandardError] error object if request failed
|
|
1246
1280
|
#
|
|
1247
|
-
# @return [Google::Apis::
|
|
1281
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
1248
1282
|
#
|
|
1249
1283
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1250
1284
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1251
1285
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1252
|
-
def truncate_instance_log(project, instance, instances_truncate_log_request_object = nil,
|
|
1253
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/truncateLog', options)
|
|
1254
|
-
command.request_representation = Google::Apis::
|
|
1286
|
+
def truncate_instance_log(project, instance, instances_truncate_log_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1287
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/truncateLog', options)
|
|
1288
|
+
command.request_representation = Google::Apis::SqlV1beta4::InstancesTruncateLogRequest::Representation
|
|
1255
1289
|
command.request_object = instances_truncate_log_request_object
|
|
1256
|
-
command.response_representation = Google::Apis::
|
|
1257
|
-
command.response_class = Google::Apis::
|
|
1290
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
1291
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
1258
1292
|
command.params['project'] = project unless project.nil?
|
|
1259
1293
|
command.params['instance'] = instance unless instance.nil?
|
|
1294
|
+
command.query['parent'] = parent unless parent.nil?
|
|
1260
1295
|
command.query['fields'] = fields unless fields.nil?
|
|
1261
1296
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1262
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1263
1297
|
execute_or_queue_command(command, &block)
|
|
1264
1298
|
end
|
|
1265
1299
|
|
|
1266
|
-
# Updates settings of a Cloud SQL instance.
|
|
1267
|
-
#
|
|
1268
|
-
#
|
|
1300
|
+
# Updates settings of a Cloud SQL instance. <aside
|
|
1301
|
+
# class="caution"><strong>Caution:</strong> This is not a partial update, so
|
|
1302
|
+
# you must include values for all the settings that you want to retain. For
|
|
1303
|
+
# partial updates, use <a
|
|
1304
|
+
# href="/sql/docs/db_path/admin-api/rest/v1beta4/instances/patch">patch</a>.</
|
|
1305
|
+
# aside>
|
|
1269
1306
|
# @param [String] project
|
|
1270
1307
|
# Project ID of the project that contains the instance.
|
|
1271
1308
|
# @param [String] instance
|
|
1272
1309
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
1273
|
-
# @param [Google::Apis::
|
|
1310
|
+
# @param [Google::Apis::SqlV1beta4::DatabaseInstance] database_instance_object
|
|
1311
|
+
# @param [String] resource_name
|
|
1312
|
+
# The name of the database instance for Cloud SQL to update.
|
|
1313
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
1274
1314
|
# @param [String] fields
|
|
1275
1315
|
# Selector specifying which fields to include in a partial response.
|
|
1276
1316
|
# @param [String] quota_user
|
|
1277
|
-
#
|
|
1278
|
-
# characters.
|
|
1279
|
-
# @param [String] user_ip
|
|
1280
|
-
# Deprecated. Please use quotaUser instead.
|
|
1317
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1318
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1281
1319
|
# @param [Google::Apis::RequestOptions] options
|
|
1282
1320
|
# Request-specific options
|
|
1283
1321
|
#
|
|
1284
1322
|
# @yield [result, err] Result & error if block supplied
|
|
1285
|
-
# @yieldparam result [Google::Apis::
|
|
1323
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
1286
1324
|
# @yieldparam err [StandardError] error object if request failed
|
|
1287
1325
|
#
|
|
1288
|
-
# @return [Google::Apis::
|
|
1326
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
1289
1327
|
#
|
|
1290
1328
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1291
1329
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1292
1330
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1293
|
-
def update_instance(project, instance, database_instance_object = nil,
|
|
1294
|
-
command = make_simple_command(:put, 'projects/{project}/instances/{instance}', options)
|
|
1295
|
-
command.request_representation = Google::Apis::
|
|
1331
|
+
def update_instance(project, instance, database_instance_object = nil, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1332
|
+
command = make_simple_command(:put, 'sql/v1beta4/projects/{project}/instances/{instance}', options)
|
|
1333
|
+
command.request_representation = Google::Apis::SqlV1beta4::DatabaseInstance::Representation
|
|
1296
1334
|
command.request_object = database_instance_object
|
|
1297
|
-
command.response_representation = Google::Apis::
|
|
1298
|
-
command.response_class = Google::Apis::
|
|
1335
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
1336
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
1299
1337
|
command.params['project'] = project unless project.nil?
|
|
1300
1338
|
command.params['instance'] = instance unless instance.nil?
|
|
1339
|
+
command.query['resourceName'] = resource_name unless resource_name.nil?
|
|
1301
1340
|
command.query['fields'] = fields unless fields.nil?
|
|
1302
1341
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1303
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1304
1342
|
execute_or_queue_command(command, &block)
|
|
1305
1343
|
end
|
|
1306
1344
|
|
|
@@ -1312,36 +1350,33 @@ module Google
|
|
|
1312
1350
|
# @param [String] fields
|
|
1313
1351
|
# Selector specifying which fields to include in a partial response.
|
|
1314
1352
|
# @param [String] quota_user
|
|
1315
|
-
#
|
|
1316
|
-
# characters.
|
|
1317
|
-
# @param [String] user_ip
|
|
1318
|
-
# Deprecated. Please use quotaUser instead.
|
|
1353
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1354
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1319
1355
|
# @param [Google::Apis::RequestOptions] options
|
|
1320
1356
|
# Request-specific options
|
|
1321
1357
|
#
|
|
1322
1358
|
# @yield [result, err] Result & error if block supplied
|
|
1323
|
-
# @yieldparam result [Google::Apis::
|
|
1359
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
1324
1360
|
# @yieldparam err [StandardError] error object if request failed
|
|
1325
1361
|
#
|
|
1326
|
-
# @return [Google::Apis::
|
|
1362
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
1327
1363
|
#
|
|
1328
1364
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1329
1365
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1330
1366
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1331
|
-
def get_operation(project, operation, fields: nil, quota_user: nil,
|
|
1332
|
-
command = make_simple_command(:get, 'projects/{project}/operations/{operation}', options)
|
|
1333
|
-
command.response_representation = Google::Apis::
|
|
1334
|
-
command.response_class = Google::Apis::
|
|
1367
|
+
def get_operation(project, operation, fields: nil, quota_user: nil, options: nil, &block)
|
|
1368
|
+
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/operations/{operation}', options)
|
|
1369
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
1370
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
1335
1371
|
command.params['project'] = project unless project.nil?
|
|
1336
1372
|
command.params['operation'] = operation unless operation.nil?
|
|
1337
1373
|
command.query['fields'] = fields unless fields.nil?
|
|
1338
1374
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1339
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1340
1375
|
execute_or_queue_command(command, &block)
|
|
1341
1376
|
end
|
|
1342
1377
|
|
|
1343
|
-
# Lists all instance operations that have been performed on the given Cloud
|
|
1344
|
-
# instance in the reverse chronological order of the start time.
|
|
1378
|
+
# Lists all instance operations that have been performed on the given Cloud
|
|
1379
|
+
# SQL instance in the reverse chronological order of the start time.
|
|
1345
1380
|
# @param [String] project
|
|
1346
1381
|
# Project ID of the project that contains the instance.
|
|
1347
1382
|
# @param [String] instance
|
|
@@ -1351,122 +1386,129 @@ module Google
|
|
|
1351
1386
|
# @param [String] page_token
|
|
1352
1387
|
# A previously-returned page token representing part of the larger set of
|
|
1353
1388
|
# results to view.
|
|
1389
|
+
# @param [String] parent
|
|
1390
|
+
# Indirect parent. The direct parent should combine with the instance name,
|
|
1391
|
+
# which owns this collection of operations.
|
|
1392
|
+
# Format:
|
|
1393
|
+
# projects/`project`/locations/`location`
|
|
1354
1394
|
# @param [String] fields
|
|
1355
1395
|
# Selector specifying which fields to include in a partial response.
|
|
1356
1396
|
# @param [String] quota_user
|
|
1357
|
-
#
|
|
1358
|
-
# characters.
|
|
1359
|
-
# @param [String] user_ip
|
|
1360
|
-
# Deprecated. Please use quotaUser instead.
|
|
1397
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1398
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1361
1399
|
# @param [Google::Apis::RequestOptions] options
|
|
1362
1400
|
# Request-specific options
|
|
1363
1401
|
#
|
|
1364
1402
|
# @yield [result, err] Result & error if block supplied
|
|
1365
|
-
# @yieldparam result [Google::Apis::
|
|
1403
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::OperationsListResponse] parsed result object
|
|
1366
1404
|
# @yieldparam err [StandardError] error object if request failed
|
|
1367
1405
|
#
|
|
1368
|
-
# @return [Google::Apis::
|
|
1406
|
+
# @return [Google::Apis::SqlV1beta4::OperationsListResponse]
|
|
1369
1407
|
#
|
|
1370
1408
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1371
1409
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1372
1410
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1373
|
-
def list_operations(project, instance, max_results: nil, page_token: nil,
|
|
1374
|
-
command = make_simple_command(:get, 'projects/{project}/operations', options)
|
|
1375
|
-
command.response_representation = Google::Apis::
|
|
1376
|
-
command.response_class = Google::Apis::
|
|
1411
|
+
def list_operations(project, instance: nil, max_results: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1412
|
+
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/operations', options)
|
|
1413
|
+
command.response_representation = Google::Apis::SqlV1beta4::OperationsListResponse::Representation
|
|
1414
|
+
command.response_class = Google::Apis::SqlV1beta4::OperationsListResponse
|
|
1377
1415
|
command.params['project'] = project unless project.nil?
|
|
1378
1416
|
command.query['instance'] = instance unless instance.nil?
|
|
1379
1417
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1380
1418
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1419
|
+
command.query['parent'] = parent unless parent.nil?
|
|
1381
1420
|
command.query['fields'] = fields unless fields.nil?
|
|
1382
1421
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1383
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1384
1422
|
execute_or_queue_command(command, &block)
|
|
1385
1423
|
end
|
|
1386
1424
|
|
|
1387
1425
|
# Generates a short-lived X509 certificate containing the provided public key
|
|
1388
|
-
# and signed by a private key specific to the target instance. Users may use
|
|
1389
|
-
# certificate to authenticate as themselves when connecting to the
|
|
1426
|
+
# and signed by a private key specific to the target instance. Users may use
|
|
1427
|
+
# the certificate to authenticate as themselves when connecting to the
|
|
1428
|
+
# database.
|
|
1390
1429
|
# @param [String] project
|
|
1391
1430
|
# Project ID of the Cloud SQL project.
|
|
1392
1431
|
# @param [String] instance
|
|
1393
1432
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
1394
|
-
# @param [Google::Apis::
|
|
1433
|
+
# @param [Google::Apis::SqlV1beta4::SslCertsCreateEphemeralRequest] ssl_certs_create_ephemeral_request_object
|
|
1434
|
+
# @param [String] parent
|
|
1435
|
+
# The parent resource where Cloud SQL creates this ephemeral certificate.
|
|
1436
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
1395
1437
|
# @param [String] fields
|
|
1396
1438
|
# Selector specifying which fields to include in a partial response.
|
|
1397
1439
|
# @param [String] quota_user
|
|
1398
|
-
#
|
|
1399
|
-
# characters.
|
|
1400
|
-
# @param [String] user_ip
|
|
1401
|
-
# Deprecated. Please use quotaUser instead.
|
|
1440
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1441
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1402
1442
|
# @param [Google::Apis::RequestOptions] options
|
|
1403
1443
|
# Request-specific options
|
|
1404
1444
|
#
|
|
1405
1445
|
# @yield [result, err] Result & error if block supplied
|
|
1406
|
-
# @yieldparam result [Google::Apis::
|
|
1446
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::SslCert] parsed result object
|
|
1407
1447
|
# @yieldparam err [StandardError] error object if request failed
|
|
1408
1448
|
#
|
|
1409
|
-
# @return [Google::Apis::
|
|
1449
|
+
# @return [Google::Apis::SqlV1beta4::SslCert]
|
|
1410
1450
|
#
|
|
1411
1451
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1412
1452
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1413
1453
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1414
|
-
def create_ssl_cert_ephemeral(project, instance, ssl_certs_create_ephemeral_request_object = nil,
|
|
1415
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/createEphemeral', options)
|
|
1416
|
-
command.request_representation = Google::Apis::
|
|
1454
|
+
def create_ssl_cert_ephemeral(project, instance, ssl_certs_create_ephemeral_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1455
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral', options)
|
|
1456
|
+
command.request_representation = Google::Apis::SqlV1beta4::SslCertsCreateEphemeralRequest::Representation
|
|
1417
1457
|
command.request_object = ssl_certs_create_ephemeral_request_object
|
|
1418
|
-
command.response_representation = Google::Apis::
|
|
1419
|
-
command.response_class = Google::Apis::
|
|
1458
|
+
command.response_representation = Google::Apis::SqlV1beta4::SslCert::Representation
|
|
1459
|
+
command.response_class = Google::Apis::SqlV1beta4::SslCert
|
|
1420
1460
|
command.params['project'] = project unless project.nil?
|
|
1421
1461
|
command.params['instance'] = instance unless instance.nil?
|
|
1462
|
+
command.query['parent'] = parent unless parent.nil?
|
|
1422
1463
|
command.query['fields'] = fields unless fields.nil?
|
|
1423
1464
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1424
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1425
1465
|
execute_or_queue_command(command, &block)
|
|
1426
1466
|
end
|
|
1427
1467
|
|
|
1428
|
-
# Deletes the SSL certificate. For First Generation instances, the
|
|
1429
|
-
# remains valid until the instance is restarted.
|
|
1468
|
+
# Deletes the SSL certificate. For First Generation instances, the
|
|
1469
|
+
# certificate remains valid until the instance is restarted.
|
|
1430
1470
|
# @param [String] project
|
|
1431
1471
|
# Project ID of the project that contains the instance.
|
|
1432
1472
|
# @param [String] instance
|
|
1433
1473
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
1434
1474
|
# @param [String] sha1_fingerprint
|
|
1435
1475
|
# Sha1 FingerPrint.
|
|
1476
|
+
# @param [String] resource_name
|
|
1477
|
+
# The name of SSL certificate to delete.
|
|
1478
|
+
# Format:
|
|
1479
|
+
# projects/`project`/locations/`location`/instances/`instance`/sslCerts/`sslCert`
|
|
1436
1480
|
# @param [String] fields
|
|
1437
1481
|
# Selector specifying which fields to include in a partial response.
|
|
1438
1482
|
# @param [String] quota_user
|
|
1439
|
-
#
|
|
1440
|
-
# characters.
|
|
1441
|
-
# @param [String] user_ip
|
|
1442
|
-
# Deprecated. Please use quotaUser instead.
|
|
1483
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1484
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1443
1485
|
# @param [Google::Apis::RequestOptions] options
|
|
1444
1486
|
# Request-specific options
|
|
1445
1487
|
#
|
|
1446
1488
|
# @yield [result, err] Result & error if block supplied
|
|
1447
|
-
# @yieldparam result [Google::Apis::
|
|
1489
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
1448
1490
|
# @yieldparam err [StandardError] error object if request failed
|
|
1449
1491
|
#
|
|
1450
|
-
# @return [Google::Apis::
|
|
1492
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
1451
1493
|
#
|
|
1452
1494
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1453
1495
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1454
1496
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1455
|
-
def delete_ssl_cert(project, instance, sha1_fingerprint,
|
|
1456
|
-
command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
|
|
1457
|
-
command.response_representation = Google::Apis::
|
|
1458
|
-
command.response_class = Google::Apis::
|
|
1497
|
+
def delete_ssl_cert(project, instance, sha1_fingerprint, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1498
|
+
command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
|
|
1499
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
1500
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
1459
1501
|
command.params['project'] = project unless project.nil?
|
|
1460
1502
|
command.params['instance'] = instance unless instance.nil?
|
|
1461
1503
|
command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil?
|
|
1504
|
+
command.query['resourceName'] = resource_name unless resource_name.nil?
|
|
1462
1505
|
command.query['fields'] = fields unless fields.nil?
|
|
1463
1506
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1464
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1465
1507
|
execute_or_queue_command(command, &block)
|
|
1466
1508
|
end
|
|
1467
1509
|
|
|
1468
|
-
# Retrieves a particular SSL certificate.
|
|
1469
|
-
# required for usage).
|
|
1510
|
+
# Retrieves a particular SSL certificate. Does not include the private key
|
|
1511
|
+
# (required for usage). The private key must be saved from the response to
|
|
1470
1512
|
# initial creation.
|
|
1471
1513
|
# @param [String] project
|
|
1472
1514
|
# Project ID of the project that contains the instance.
|
|
@@ -1474,76 +1516,79 @@ module Google
|
|
|
1474
1516
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
1475
1517
|
# @param [String] sha1_fingerprint
|
|
1476
1518
|
# Sha1 FingerPrint.
|
|
1519
|
+
# @param [String] resource_name
|
|
1520
|
+
# Name of the resource ssl certificate.
|
|
1521
|
+
# Format:
|
|
1522
|
+
# projects/`project`/locations/`location`/instances/`instance`/sslCerts/`sslCert`
|
|
1477
1523
|
# @param [String] fields
|
|
1478
1524
|
# Selector specifying which fields to include in a partial response.
|
|
1479
1525
|
# @param [String] quota_user
|
|
1480
|
-
#
|
|
1481
|
-
# characters.
|
|
1482
|
-
# @param [String] user_ip
|
|
1483
|
-
# Deprecated. Please use quotaUser instead.
|
|
1526
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1527
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1484
1528
|
# @param [Google::Apis::RequestOptions] options
|
|
1485
1529
|
# Request-specific options
|
|
1486
1530
|
#
|
|
1487
1531
|
# @yield [result, err] Result & error if block supplied
|
|
1488
|
-
# @yieldparam result [Google::Apis::
|
|
1532
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::SslCert] parsed result object
|
|
1489
1533
|
# @yieldparam err [StandardError] error object if request failed
|
|
1490
1534
|
#
|
|
1491
|
-
# @return [Google::Apis::
|
|
1535
|
+
# @return [Google::Apis::SqlV1beta4::SslCert]
|
|
1492
1536
|
#
|
|
1493
1537
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1494
1538
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1495
1539
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1496
|
-
def get_ssl_cert(project, instance, sha1_fingerprint,
|
|
1497
|
-
command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
|
|
1498
|
-
command.response_representation = Google::Apis::
|
|
1499
|
-
command.response_class = Google::Apis::
|
|
1540
|
+
def get_ssl_cert(project, instance, sha1_fingerprint, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1541
|
+
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
|
|
1542
|
+
command.response_representation = Google::Apis::SqlV1beta4::SslCert::Representation
|
|
1543
|
+
command.response_class = Google::Apis::SqlV1beta4::SslCert
|
|
1500
1544
|
command.params['project'] = project unless project.nil?
|
|
1501
1545
|
command.params['instance'] = instance unless instance.nil?
|
|
1502
1546
|
command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil?
|
|
1547
|
+
command.query['resourceName'] = resource_name unless resource_name.nil?
|
|
1503
1548
|
command.query['fields'] = fields unless fields.nil?
|
|
1504
1549
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1505
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1506
1550
|
execute_or_queue_command(command, &block)
|
|
1507
1551
|
end
|
|
1508
1552
|
|
|
1509
1553
|
# Creates an SSL certificate and returns it along with the private key and
|
|
1510
|
-
# server certificate authority.
|
|
1511
|
-
# instance is restarted.
|
|
1554
|
+
# server certificate authority. The new certificate will not be usable until
|
|
1555
|
+
# the instance is restarted.
|
|
1512
1556
|
# @param [String] project
|
|
1513
1557
|
# Project ID of the project that contains the instance.
|
|
1514
1558
|
# @param [String] instance
|
|
1515
1559
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
1516
|
-
# @param [Google::Apis::
|
|
1560
|
+
# @param [Google::Apis::SqlV1beta4::SslCertsInsertRequest] ssl_certs_insert_request_object
|
|
1561
|
+
# @param [String] parent
|
|
1562
|
+
# The parent resource where Cloud SQL creates this SSL certificate.
|
|
1563
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
1517
1564
|
# @param [String] fields
|
|
1518
1565
|
# Selector specifying which fields to include in a partial response.
|
|
1519
1566
|
# @param [String] quota_user
|
|
1520
|
-
#
|
|
1521
|
-
# characters.
|
|
1522
|
-
# @param [String] user_ip
|
|
1523
|
-
# Deprecated. Please use quotaUser instead.
|
|
1567
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1568
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1524
1569
|
# @param [Google::Apis::RequestOptions] options
|
|
1525
1570
|
# Request-specific options
|
|
1526
1571
|
#
|
|
1527
1572
|
# @yield [result, err] Result & error if block supplied
|
|
1528
|
-
# @yieldparam result [Google::Apis::
|
|
1573
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::SslCertsInsertResponse] parsed result object
|
|
1529
1574
|
# @yieldparam err [StandardError] error object if request failed
|
|
1530
1575
|
#
|
|
1531
|
-
# @return [Google::Apis::
|
|
1576
|
+
# @return [Google::Apis::SqlV1beta4::SslCertsInsertResponse]
|
|
1532
1577
|
#
|
|
1533
1578
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1534
1579
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1535
1580
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1536
|
-
def insert_ssl_cert(project, instance,
|
|
1537
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/sslCerts', options)
|
|
1538
|
-
command.request_representation = Google::Apis::
|
|
1539
|
-
command.request_object =
|
|
1540
|
-
command.response_representation = Google::Apis::
|
|
1541
|
-
command.response_class = Google::Apis::
|
|
1581
|
+
def insert_ssl_cert(project, instance, ssl_certs_insert_request_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1582
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts', options)
|
|
1583
|
+
command.request_representation = Google::Apis::SqlV1beta4::SslCertsInsertRequest::Representation
|
|
1584
|
+
command.request_object = ssl_certs_insert_request_object
|
|
1585
|
+
command.response_representation = Google::Apis::SqlV1beta4::SslCertsInsertResponse::Representation
|
|
1586
|
+
command.response_class = Google::Apis::SqlV1beta4::SslCertsInsertResponse
|
|
1542
1587
|
command.params['project'] = project unless project.nil?
|
|
1543
1588
|
command.params['instance'] = instance unless instance.nil?
|
|
1589
|
+
command.query['parent'] = parent unless parent.nil?
|
|
1544
1590
|
command.query['fields'] = fields unless fields.nil?
|
|
1545
1591
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1546
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1547
1592
|
execute_or_queue_command(command, &block)
|
|
1548
1593
|
end
|
|
1549
1594
|
|
|
@@ -1552,68 +1597,67 @@ module Google
|
|
|
1552
1597
|
# Project ID of the project that contains the instance.
|
|
1553
1598
|
# @param [String] instance
|
|
1554
1599
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
1600
|
+
# @param [String] parent
|
|
1601
|
+
# The parent, which owns this collection of SSL certificates.
|
|
1602
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
1555
1603
|
# @param [String] fields
|
|
1556
1604
|
# Selector specifying which fields to include in a partial response.
|
|
1557
1605
|
# @param [String] quota_user
|
|
1558
|
-
#
|
|
1559
|
-
# characters.
|
|
1560
|
-
# @param [String] user_ip
|
|
1561
|
-
# Deprecated. Please use quotaUser instead.
|
|
1606
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1607
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1562
1608
|
# @param [Google::Apis::RequestOptions] options
|
|
1563
1609
|
# Request-specific options
|
|
1564
1610
|
#
|
|
1565
1611
|
# @yield [result, err] Result & error if block supplied
|
|
1566
|
-
# @yieldparam result [Google::Apis::
|
|
1612
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::SslCertsListResponse] parsed result object
|
|
1567
1613
|
# @yieldparam err [StandardError] error object if request failed
|
|
1568
1614
|
#
|
|
1569
|
-
# @return [Google::Apis::
|
|
1615
|
+
# @return [Google::Apis::SqlV1beta4::SslCertsListResponse]
|
|
1570
1616
|
#
|
|
1571
1617
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1572
1618
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1573
1619
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1574
|
-
def list_ssl_certs(project, instance,
|
|
1575
|
-
command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts', options)
|
|
1576
|
-
command.response_representation = Google::Apis::
|
|
1577
|
-
command.response_class = Google::Apis::
|
|
1620
|
+
def list_ssl_certs(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1621
|
+
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts', options)
|
|
1622
|
+
command.response_representation = Google::Apis::SqlV1beta4::SslCertsListResponse::Representation
|
|
1623
|
+
command.response_class = Google::Apis::SqlV1beta4::SslCertsListResponse
|
|
1578
1624
|
command.params['project'] = project unless project.nil?
|
|
1579
1625
|
command.params['instance'] = instance unless instance.nil?
|
|
1626
|
+
command.query['parent'] = parent unless parent.nil?
|
|
1580
1627
|
command.query['fields'] = fields unless fields.nil?
|
|
1581
1628
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1582
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1583
1629
|
execute_or_queue_command(command, &block)
|
|
1584
1630
|
end
|
|
1585
1631
|
|
|
1586
|
-
# Lists all available machine types (tiers) for Cloud SQL, for example,
|
|
1587
|
-
# standard-1. For related information, see
|
|
1632
|
+
# Lists all available machine types (tiers) for Cloud SQL, for example,
|
|
1633
|
+
# db-n1-standard-1. For related information, see <a
|
|
1634
|
+
# href="/sql/pricing">Pricing</a>.
|
|
1588
1635
|
# @param [String] project
|
|
1589
1636
|
# Project ID of the project for which to list tiers.
|
|
1590
1637
|
# @param [String] fields
|
|
1591
1638
|
# Selector specifying which fields to include in a partial response.
|
|
1592
1639
|
# @param [String] quota_user
|
|
1593
|
-
#
|
|
1594
|
-
# characters.
|
|
1595
|
-
# @param [String] user_ip
|
|
1596
|
-
# Deprecated. Please use quotaUser instead.
|
|
1640
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1641
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1597
1642
|
# @param [Google::Apis::RequestOptions] options
|
|
1598
1643
|
# Request-specific options
|
|
1599
1644
|
#
|
|
1600
1645
|
# @yield [result, err] Result & error if block supplied
|
|
1601
|
-
# @yieldparam result [Google::Apis::
|
|
1646
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::TiersListResponse] parsed result object
|
|
1602
1647
|
# @yieldparam err [StandardError] error object if request failed
|
|
1603
1648
|
#
|
|
1604
|
-
# @return [Google::Apis::
|
|
1649
|
+
# @return [Google::Apis::SqlV1beta4::TiersListResponse]
|
|
1605
1650
|
#
|
|
1606
1651
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1607
1652
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1608
1653
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1609
|
-
def list_tiers(project, fields: nil, quota_user: nil,
|
|
1610
|
-
command = make_simple_command(:get, 'projects/{project}/tiers', options)
|
|
1611
|
-
command.response_representation = Google::Apis::
|
|
1612
|
-
command.response_class = Google::Apis::
|
|
1654
|
+
def list_tiers(project, fields: nil, quota_user: nil, options: nil, &block)
|
|
1655
|
+
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/tiers', options)
|
|
1656
|
+
command.response_representation = Google::Apis::SqlV1beta4::TiersListResponse::Representation
|
|
1657
|
+
command.response_class = Google::Apis::SqlV1beta4::TiersListResponse
|
|
1613
1658
|
command.params['project'] = project unless project.nil?
|
|
1614
1659
|
command.query['fields'] = fields unless fields.nil?
|
|
1615
1660
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1616
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1617
1661
|
execute_or_queue_command(command, &block)
|
|
1618
1662
|
end
|
|
1619
1663
|
|
|
@@ -1626,36 +1670,37 @@ module Google
|
|
|
1626
1670
|
# Host of the user in the instance.
|
|
1627
1671
|
# @param [String] name
|
|
1628
1672
|
# Name of the user in the instance.
|
|
1673
|
+
# @param [String] resource_name
|
|
1674
|
+
# The name of the user to delete.
|
|
1675
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`/users
|
|
1629
1676
|
# @param [String] fields
|
|
1630
1677
|
# Selector specifying which fields to include in a partial response.
|
|
1631
1678
|
# @param [String] quota_user
|
|
1632
|
-
#
|
|
1633
|
-
# characters.
|
|
1634
|
-
# @param [String] user_ip
|
|
1635
|
-
# Deprecated. Please use quotaUser instead.
|
|
1679
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1680
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1636
1681
|
# @param [Google::Apis::RequestOptions] options
|
|
1637
1682
|
# Request-specific options
|
|
1638
1683
|
#
|
|
1639
1684
|
# @yield [result, err] Result & error if block supplied
|
|
1640
|
-
# @yieldparam result [Google::Apis::
|
|
1685
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
1641
1686
|
# @yieldparam err [StandardError] error object if request failed
|
|
1642
1687
|
#
|
|
1643
|
-
# @return [Google::Apis::
|
|
1688
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
1644
1689
|
#
|
|
1645
1690
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1646
1691
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1647
1692
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1648
|
-
def delete_user(project, instance, host, name,
|
|
1649
|
-
command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/users', options)
|
|
1650
|
-
command.response_representation = Google::Apis::
|
|
1651
|
-
command.response_class = Google::Apis::
|
|
1693
|
+
def delete_user(project, instance, host: nil, name: nil, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1694
|
+
command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
|
|
1695
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
1696
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
1652
1697
|
command.params['project'] = project unless project.nil?
|
|
1653
1698
|
command.params['instance'] = instance unless instance.nil?
|
|
1654
1699
|
command.query['host'] = host unless host.nil?
|
|
1655
1700
|
command.query['name'] = name unless name.nil?
|
|
1701
|
+
command.query['resourceName'] = resource_name unless resource_name.nil?
|
|
1656
1702
|
command.query['fields'] = fields unless fields.nil?
|
|
1657
1703
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1658
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1659
1704
|
execute_or_queue_command(command, &block)
|
|
1660
1705
|
end
|
|
1661
1706
|
|
|
@@ -1664,37 +1709,38 @@ module Google
|
|
|
1664
1709
|
# Project ID of the project that contains the instance.
|
|
1665
1710
|
# @param [String] instance
|
|
1666
1711
|
# Database instance ID. This does not include the project ID.
|
|
1667
|
-
# @param [Google::Apis::
|
|
1712
|
+
# @param [Google::Apis::SqlV1beta4::User] user_object
|
|
1713
|
+
# @param [String] parent
|
|
1714
|
+
# The parent resource where Cloud SQL creates this user.
|
|
1715
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
1668
1716
|
# @param [String] fields
|
|
1669
1717
|
# Selector specifying which fields to include in a partial response.
|
|
1670
1718
|
# @param [String] quota_user
|
|
1671
|
-
#
|
|
1672
|
-
# characters.
|
|
1673
|
-
# @param [String] user_ip
|
|
1674
|
-
# Deprecated. Please use quotaUser instead.
|
|
1719
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1720
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1675
1721
|
# @param [Google::Apis::RequestOptions] options
|
|
1676
1722
|
# Request-specific options
|
|
1677
1723
|
#
|
|
1678
1724
|
# @yield [result, err] Result & error if block supplied
|
|
1679
|
-
# @yieldparam result [Google::Apis::
|
|
1725
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
1680
1726
|
# @yieldparam err [StandardError] error object if request failed
|
|
1681
1727
|
#
|
|
1682
|
-
# @return [Google::Apis::
|
|
1728
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
1683
1729
|
#
|
|
1684
1730
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1685
1731
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1686
1732
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1687
|
-
def insert_user(project, instance, user_object = nil,
|
|
1688
|
-
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/users', options)
|
|
1689
|
-
command.request_representation = Google::Apis::
|
|
1733
|
+
def insert_user(project, instance, user_object = nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1734
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
|
|
1735
|
+
command.request_representation = Google::Apis::SqlV1beta4::User::Representation
|
|
1690
1736
|
command.request_object = user_object
|
|
1691
|
-
command.response_representation = Google::Apis::
|
|
1692
|
-
command.response_class = Google::Apis::
|
|
1737
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
1738
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
1693
1739
|
command.params['project'] = project unless project.nil?
|
|
1694
1740
|
command.params['instance'] = instance unless instance.nil?
|
|
1741
|
+
command.query['parent'] = parent unless parent.nil?
|
|
1695
1742
|
command.query['fields'] = fields unless fields.nil?
|
|
1696
1743
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1697
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1698
1744
|
execute_or_queue_command(command, &block)
|
|
1699
1745
|
end
|
|
1700
1746
|
|
|
@@ -1703,34 +1749,35 @@ module Google
|
|
|
1703
1749
|
# Project ID of the project that contains the instance.
|
|
1704
1750
|
# @param [String] instance
|
|
1705
1751
|
# Database instance ID. This does not include the project ID.
|
|
1752
|
+
# @param [String] parent
|
|
1753
|
+
# The parent, which owns this collection of users.
|
|
1754
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`
|
|
1706
1755
|
# @param [String] fields
|
|
1707
1756
|
# Selector specifying which fields to include in a partial response.
|
|
1708
1757
|
# @param [String] quota_user
|
|
1709
|
-
#
|
|
1710
|
-
# characters.
|
|
1711
|
-
# @param [String] user_ip
|
|
1712
|
-
# Deprecated. Please use quotaUser instead.
|
|
1758
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1759
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1713
1760
|
# @param [Google::Apis::RequestOptions] options
|
|
1714
1761
|
# Request-specific options
|
|
1715
1762
|
#
|
|
1716
1763
|
# @yield [result, err] Result & error if block supplied
|
|
1717
|
-
# @yieldparam result [Google::Apis::
|
|
1764
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::UsersListResponse] parsed result object
|
|
1718
1765
|
# @yieldparam err [StandardError] error object if request failed
|
|
1719
1766
|
#
|
|
1720
|
-
# @return [Google::Apis::
|
|
1767
|
+
# @return [Google::Apis::SqlV1beta4::UsersListResponse]
|
|
1721
1768
|
#
|
|
1722
1769
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1723
1770
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1724
1771
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1725
|
-
def list_users(project, instance,
|
|
1726
|
-
command = make_simple_command(:get, 'projects/{project}/instances/{instance}/users', options)
|
|
1727
|
-
command.response_representation = Google::Apis::
|
|
1728
|
-
command.response_class = Google::Apis::
|
|
1772
|
+
def list_users(project, instance, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1773
|
+
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
|
|
1774
|
+
command.response_representation = Google::Apis::SqlV1beta4::UsersListResponse::Representation
|
|
1775
|
+
command.response_class = Google::Apis::SqlV1beta4::UsersListResponse
|
|
1729
1776
|
command.params['project'] = project unless project.nil?
|
|
1730
1777
|
command.params['instance'] = instance unless instance.nil?
|
|
1778
|
+
command.query['parent'] = parent unless parent.nil?
|
|
1731
1779
|
command.query['fields'] = fields unless fields.nil?
|
|
1732
1780
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1733
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1734
1781
|
execute_or_queue_command(command, &block)
|
|
1735
1782
|
end
|
|
1736
1783
|
|
|
@@ -1739,44 +1786,45 @@ module Google
|
|
|
1739
1786
|
# Project ID of the project that contains the instance.
|
|
1740
1787
|
# @param [String] instance
|
|
1741
1788
|
# Database instance ID. This does not include the project ID.
|
|
1789
|
+
# @param [Google::Apis::SqlV1beta4::User] user_object
|
|
1790
|
+
# @param [String] host
|
|
1791
|
+
# Host of the user in the instance. For a MySQL instance, it's required; For
|
|
1792
|
+
# a PostgreSQL instance, it's optional.
|
|
1742
1793
|
# @param [String] name
|
|
1743
1794
|
# Name of the user in the instance.
|
|
1744
|
-
# @param [
|
|
1745
|
-
#
|
|
1746
|
-
#
|
|
1747
|
-
# PostgreSQL instance, it's optional.
|
|
1795
|
+
# @param [String] resource_name
|
|
1796
|
+
# The name of the user for Cloud SQL to update.
|
|
1797
|
+
# Format: projects/`project`/locations/`location`/instances/`instance`/users
|
|
1748
1798
|
# @param [String] fields
|
|
1749
1799
|
# Selector specifying which fields to include in a partial response.
|
|
1750
1800
|
# @param [String] quota_user
|
|
1751
|
-
#
|
|
1752
|
-
# characters.
|
|
1753
|
-
# @param [String] user_ip
|
|
1754
|
-
# Deprecated. Please use quotaUser instead.
|
|
1801
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1802
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1755
1803
|
# @param [Google::Apis::RequestOptions] options
|
|
1756
1804
|
# Request-specific options
|
|
1757
1805
|
#
|
|
1758
1806
|
# @yield [result, err] Result & error if block supplied
|
|
1759
|
-
# @yieldparam result [Google::Apis::
|
|
1807
|
+
# @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
|
|
1760
1808
|
# @yieldparam err [StandardError] error object if request failed
|
|
1761
1809
|
#
|
|
1762
|
-
# @return [Google::Apis::
|
|
1810
|
+
# @return [Google::Apis::SqlV1beta4::Operation]
|
|
1763
1811
|
#
|
|
1764
1812
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1765
1813
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1766
1814
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1767
|
-
def update_user(project, instance,
|
|
1768
|
-
command = make_simple_command(:put, 'projects/{project}/instances/{instance}/users', options)
|
|
1769
|
-
command.request_representation = Google::Apis::
|
|
1815
|
+
def update_user(project, instance, user_object = nil, host: nil, name: nil, resource_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
1816
|
+
command = make_simple_command(:put, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
|
|
1817
|
+
command.request_representation = Google::Apis::SqlV1beta4::User::Representation
|
|
1770
1818
|
command.request_object = user_object
|
|
1771
|
-
command.response_representation = Google::Apis::
|
|
1772
|
-
command.response_class = Google::Apis::
|
|
1819
|
+
command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
|
|
1820
|
+
command.response_class = Google::Apis::SqlV1beta4::Operation
|
|
1773
1821
|
command.params['project'] = project unless project.nil?
|
|
1774
1822
|
command.params['instance'] = instance unless instance.nil?
|
|
1775
1823
|
command.query['host'] = host unless host.nil?
|
|
1776
1824
|
command.query['name'] = name unless name.nil?
|
|
1825
|
+
command.query['resourceName'] = resource_name unless resource_name.nil?
|
|
1777
1826
|
command.query['fields'] = fields unless fields.nil?
|
|
1778
1827
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1779
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1780
1828
|
execute_or_queue_command(command, &block)
|
|
1781
1829
|
end
|
|
1782
1830
|
|
|
@@ -1785,7 +1833,6 @@ module Google
|
|
|
1785
1833
|
def apply_command_defaults(command)
|
|
1786
1834
|
command.query['key'] = key unless key.nil?
|
|
1787
1835
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1788
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1789
1836
|
end
|
|
1790
1837
|
end
|
|
1791
1838
|
end
|