google-api-client 0.23.4 → 0.23.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +171 -0
- data/Gemfile +1 -0
- data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +7 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +7 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +13 -1
- data/generated/google/apis/adsense_v1_4/representations.rb +2 -0
- data/generated/google/apis/adsense_v1_4/service.rb +36 -0
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v2_4.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +68 -0
- data/generated/google/apis/analytics_v3/representations.rb +31 -0
- data/generated/google/apis/analytics_v3/service.rb +33 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +108 -28
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +32 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +73 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +0 -70
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +2 -5
- data/generated/google/apis/androidpublisher_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +3 -4
- data/generated/google/apis/appsactivity_v1.rb +2 -2
- data/generated/google/apis/appsactivity_v1/service.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +103 -61
- data/generated/google/apis/bigquery_v2/representations.rb +17 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1.rb +35 -0
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +597 -0
- data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +238 -0
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +523 -0
- data/generated/google/apis/blogger_v2.rb +1 -1
- data/generated/google/apis/blogger_v3.rb +1 -1
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +7 -0
- data/generated/google/apis/books_v1/representations.rb +1 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +44 -12
- data/generated/google/apis/calendar_v3/service.rb +7 -7
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +641 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +215 -0
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +25 -0
- data/generated/google/apis/classroom_v1/representations.rb +15 -0
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +85 -10
- data/generated/google/apis/cloudbilling_v1/representations.rb +18 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +3 -13
- data/generated/google/apis/cloudbuild_v1.rb +4 -4
- data/generated/google/apis/cloudbuild_v1/classes.rb +37 -3
- data/generated/google/apis/cloudbuild_v1/representations.rb +3 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +3 -3
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +8 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +1 -0
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +4 -5
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +56 -0
- data/generated/google/apis/cloudiot_v1/representations.rb +18 -0
- data/generated/google/apis/cloudiot_v1/service.rb +355 -0
- data/generated/google/apis/cloudkms_v1.rb +6 -3
- data/generated/google/apis/cloudkms_v1/classes.rb +340 -14
- data/generated/google/apis/cloudkms_v1/representations.rb +147 -0
- data/generated/google/apis/cloudkms_v1/service.rb +126 -6
- data/generated/google/apis/cloudprofiler_v2.rb +3 -3
- data/generated/google/apis/cloudprofiler_v2/classes.rb +0 -6
- data/generated/google/apis/cloudprofiler_v2/representations.rb +0 -2
- data/generated/google/apis/cloudprofiler_v2/service.rb +2 -2
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +57 -1
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +18 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +56 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +18 -0
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +57 -1
- data/generated/google/apis/cloudresourcemanager_v2/representations.rb +18 -0
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +57 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +18 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +28 -0
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +14 -0
- data/generated/google/apis/cloudshell_v1alpha1/service.rb +37 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +2 -2
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +167 -103
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +18 -0
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +28 -21
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/{spectrum_v1explorer.rb → composer_v1.rb} +12 -9
- data/generated/google/apis/composer_v1/classes.rb +640 -0
- data/generated/google/apis/composer_v1/representations.rb +195 -0
- data/generated/google/apis/composer_v1/service.rb +462 -0
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +13 -10
- data/generated/google/apis/composer_v1beta1/service.rb +6 -6
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +5135 -4250
- data/generated/google/apis/compute_alpha/representations.rb +644 -216
- data/generated/google/apis/compute_alpha/service.rb +2308 -1655
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1070 -62
- data/generated/google/apis/compute_beta/representations.rb +435 -0
- data/generated/google/apis/compute_beta/service.rb +1758 -321
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1984 -210
- data/generated/google/apis/compute_v1/representations.rb +754 -9
- data/generated/google/apis/compute_v1/service.rb +1299 -12
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +43 -0
- data/generated/google/apis/container_v1/representations.rb +17 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +193 -231
- data/generated/google/apis/container_v1beta1/representations.rb +72 -82
- data/generated/google/apis/container_v1beta1/service.rb +0 -112
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +199 -29
- data/generated/google/apis/content_v2/representations.rb +59 -0
- data/generated/google/apis/content_v2/service.rb +8 -3
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +32 -19
- data/generated/google/apis/content_v2sandbox/representations.rb +1 -0
- data/generated/google/apis/content_v2sandbox/service.rb +8 -3
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +7 -7
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +112 -43
- data/generated/google/apis/dataproc_v1beta2/representations.rb +19 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +140 -0
- data/generated/google/apis/datastore_v1/representations.rb +65 -0
- data/generated/google/apis/datastore_v1/service.rb +74 -0
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1/classes.rb +31 -0
- data/generated/google/apis/datastore_v1beta1/representations.rb +17 -0
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +31 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +17 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
- data/generated/google/apis/dfareporting_v2_8.rb +1 -1
- data/generated/google/apis/dfareporting_v3_0.rb +1 -1
- data/generated/google/apis/dfareporting_v3_1.rb +1 -1
- data/generated/google/apis/dfareporting_v3_2.rb +40 -0
- data/generated/google/apis/dfareporting_v3_2/classes.rb +12297 -0
- data/generated/google/apis/dfareporting_v3_2/representations.rb +4397 -0
- data/generated/google/apis/dfareporting_v3_2/service.rb +8790 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +304 -12
- data/generated/google/apis/dialogflow_v2/representations.rb +113 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +656 -26
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +248 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +556 -0
- data/generated/google/apis/discovery_v1.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +357 -6
- data/generated/google/apis/dlp_v2/representations.rb +161 -0
- data/generated/google/apis/dlp_v2/service.rb +366 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +0 -7
- data/generated/google/apis/dns_v1/representations.rb +0 -1
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +0 -7
- data/generated/google/apis/dns_v1beta2/representations.rb +0 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +0 -7
- data/generated/google/apis/dns_v2beta1/representations.rb +0 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +3 -2
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/firestore_v1.rb +37 -0
- data/generated/google/apis/firestore_v1/classes.rb +324 -0
- data/generated/google/apis/firestore_v1/representations.rb +130 -0
- data/generated/google/apis/firestore_v1/service.rb +282 -0
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +290 -0
- data/generated/google/apis/firestore_v1beta1/representations.rb +128 -0
- data/generated/google/apis/firestore_v1beta1/service.rb +79 -0
- data/generated/google/apis/firestore_v1beta2.rb +37 -0
- data/generated/google/apis/firestore_v1beta2/classes.rb +531 -0
- data/generated/google/apis/firestore_v1beta2/representations.rb +189 -0
- data/generated/google/apis/firestore_v1beta2/service.rb +213 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fusiontables_v1.rb +1 -1
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +113 -36
- data/generated/google/apis/genomics_v1/representations.rb +31 -0
- data/generated/google/apis/genomics_v1/service.rb +2 -0
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2/classes.rb +57 -36
- data/generated/google/apis/genomics_v1alpha2/representations.rb +13 -0
- data/generated/google/apis/genomics_v1alpha2/service.rb +2 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +252 -137
- data/generated/google/apis/genomics_v2alpha1/representations.rb +50 -0
- data/generated/google/apis/genomics_v2alpha1/service.rb +7 -5
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/groupsmigration_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +258 -3
- data/generated/google/apis/iam_v1/representations.rb +73 -0
- data/generated/google/apis/iam_v1/service.rb +50 -2
- data/generated/google/apis/iamcredentials_v1.rb +2 -2
- data/generated/google/apis/iamcredentials_v1/classes.rb +2 -2
- data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +34 -0
- data/generated/google/apis/iap_v1beta1/classes.rb +440 -0
- data/generated/google/apis/iap_v1beta1/representations.rb +158 -0
- data/generated/google/apis/iap_v1beta1/service.rb +398 -0
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/jobs_v2.rb +3 -3
- data/generated/google/apis/jobs_v2/classes.rb +61 -5
- data/generated/google/apis/jobs_v2/representations.rb +18 -0
- data/generated/google/apis/jobs_v2/service.rb +3 -3
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/logging_v2.rb +2 -2
- data/generated/google/apis/logging_v2/classes.rb +64 -58
- data/generated/google/apis/logging_v2/representations.rb +1 -0
- data/generated/google/apis/logging_v2/service.rb +39 -40
- data/generated/google/apis/logging_v2beta1.rb +2 -2
- data/generated/google/apis/logging_v2beta1/classes.rb +59 -53
- data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
- data/generated/google/apis/logging_v2beta1/service.rb +15 -16
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +87 -0
- data/generated/google/apis/ml_v1/representations.rb +34 -0
- data/generated/google/apis/ml_v1/service.rb +53 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +68 -15
- data/generated/google/apis/monitoring_v3/representations.rb +26 -0
- data/generated/google/apis/mybusiness_v3/classes.rb +1 -1
- data/generated/google/apis/oauth2_v1.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v1.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v4.rb +1 -1
- data/generated/google/apis/playcustomapp_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/poly_v1.rb +4 -3
- data/generated/google/apis/poly_v1/classes.rb +28 -0
- data/generated/google/apis/poly_v1/representations.rb +15 -0
- data/generated/google/apis/poly_v1/service.rb +3 -2
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +63 -8
- data/generated/google/apis/pubsub_v1/representations.rb +18 -0
- data/generated/google/apis/pubsub_v1/service.rb +7 -8
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +56 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +18 -0
- data/generated/google/apis/redis_v1beta1.rb +2 -2
- data/generated/google/apis/redis_v1beta1/classes.rb +38 -119
- data/generated/google/apis/redis_v1beta1/representations.rb +10 -43
- data/generated/google/apis/redis_v1beta1/service.rb +73 -1
- data/generated/google/apis/replicapool_v1beta1.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +1 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +57 -1
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +18 -0
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +1 -57
- data/generated/google/apis/script_v1/representations.rb +0 -32
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +56 -1
- data/generated/google/apis/servicebroker_v1/representations.rb +18 -0
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +56 -1
- data/generated/google/apis/servicebroker_v1alpha1/representations.rb +18 -0
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +56 -1
- data/generated/google/apis/servicebroker_v1beta1/representations.rb +18 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +13 -4
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +259 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +68 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +68 -4
- data/generated/google/apis/servicemanagement_v1/representations.rb +19 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +13 -4
- data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +13 -4
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +12 -3
- data/generated/google/apis/serviceuser_v1/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +22 -22
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +56 -1
- data/generated/google/apis/sourcerepo_v1/representations.rb +18 -0
- data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +1632 -0
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +733 -0
- data/generated/google/apis/sqladmin_v1beta3/service.rb +995 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +4 -4
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +30 -14
- data/generated/google/apis/sqladmin_v1beta4/service.rb +7 -7
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1beta1.rb +1 -1
- data/generated/google/apis/storage_v1beta2.rb +1 -1
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/tasks_v1.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +2 -2
- data/generated/google/apis/texttospeech_v1.rb +34 -0
- data/generated/google/apis/texttospeech_v1/classes.rb +278 -0
- data/generated/google/apis/texttospeech_v1/representations.rb +133 -0
- data/generated/google/apis/texttospeech_v1/service.rb +127 -0
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +0 -12
- data/generated/google/apis/toolresults_v1beta3/representations.rb +0 -2
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +0 -13
- data/generated/google/apis/tpu_v1/representations.rb +0 -12
- data/generated/google/apis/tpu_v1/service.rb +0 -33
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +0 -13
- data/generated/google/apis/tpu_v1alpha1/representations.rb +0 -12
- data/generated/google/apis/tpu_v1alpha1/service.rb +0 -33
- data/generated/google/apis/urlshortener_v1.rb +1 -1
- data/generated/google/apis/vault_v1.rb +1 -1
- data/generated/google/apis/vault_v1/classes.rb +803 -0
- data/generated/google/apis/vault_v1/representations.rb +384 -0
- data/generated/google/apis/vault_v1/service.rb +211 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +3342 -227
- data/generated/google/apis/vision_v1/representations.rb +1696 -365
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1826 -94
- data/generated/google/apis/vision_v1p1beta1/representations.rb +754 -1
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +3712 -597
- data/generated/google/apis/vision_v1p2beta1/representations.rb +1606 -275
- data/generated/google/apis/webfonts_v1.rb +1 -1
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +58 -2
- data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +32 -0
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/lib/google/apis/core/http_command.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +34 -6
- data/generated/google/apis/spectrum_v1explorer/classes.rb +0 -1612
- data/generated/google/apis/spectrum_v1explorer/representations.rb +0 -611
- data/generated/google/apis/spectrum_v1explorer/service.rb +0 -271
@@ -0,0 +1,995 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module SqladminV1beta3
|
23
|
+
# Cloud SQL Admin API
|
24
|
+
#
|
25
|
+
# Cloud SQL provides the Cloud SQL Admin API, a REST API for administering your
|
26
|
+
# instances programmatically.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/sqladmin_v1beta3'
|
30
|
+
#
|
31
|
+
# Sqladmin = Google::Apis::SqladminV1beta3 # Alias the module
|
32
|
+
# service = Sqladmin::SQLAdminService.new
|
33
|
+
#
|
34
|
+
# @see https://cloud.google.com/sql/docs/reference/latest
|
35
|
+
class SQLAdminService < Google::Apis::Core::BaseService
|
36
|
+
# @return [String]
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
+
attr_accessor :key
|
40
|
+
|
41
|
+
# @return [String]
|
42
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
43
|
+
# characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
# @return [String]
|
47
|
+
# Deprecated. Please use quotaUser instead.
|
48
|
+
attr_accessor :user_ip
|
49
|
+
|
50
|
+
def initialize
|
51
|
+
super('https://www.googleapis.com/', 'sql/v1beta3/')
|
52
|
+
@batch_path = 'batch/sqladmin/v1beta3'
|
53
|
+
end
|
54
|
+
|
55
|
+
# Retrieves information about a specified backup run for a Cloud SQL instance.
|
56
|
+
# @param [String] project
|
57
|
+
# Project ID of the project that contains the instance.
|
58
|
+
# @param [String] instance
|
59
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
60
|
+
# @param [String] backup_configuration
|
61
|
+
# Identifier for the backup configuration. This gets generated automatically
|
62
|
+
# when a backup configuration is created.
|
63
|
+
# @param [String] due_time
|
64
|
+
# The start time of the four-hour backup window. The backup can occur any time
|
65
|
+
# in the window. The time is in RFC 3339 format, for example 2012-11-15T16:19:00.
|
66
|
+
# 094Z.
|
67
|
+
# @param [String] fields
|
68
|
+
# Selector specifying which fields to include in a partial response.
|
69
|
+
# @param [String] quota_user
|
70
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
71
|
+
# characters.
|
72
|
+
# @param [String] user_ip
|
73
|
+
# Deprecated. Please use quotaUser instead.
|
74
|
+
# @param [Google::Apis::RequestOptions] options
|
75
|
+
# Request-specific options
|
76
|
+
#
|
77
|
+
# @yield [result, err] Result & error if block supplied
|
78
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::BackupRun] parsed result object
|
79
|
+
# @yieldparam err [StandardError] error object if request failed
|
80
|
+
#
|
81
|
+
# @return [Google::Apis::SqladminV1beta3::BackupRun]
|
82
|
+
#
|
83
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
84
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
85
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
86
|
+
def get_backup_run(project, instance, backup_configuration, due_time, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
87
|
+
command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns/{backupConfiguration}', options)
|
88
|
+
command.response_representation = Google::Apis::SqladminV1beta3::BackupRun::Representation
|
89
|
+
command.response_class = Google::Apis::SqladminV1beta3::BackupRun
|
90
|
+
command.params['project'] = project unless project.nil?
|
91
|
+
command.params['instance'] = instance unless instance.nil?
|
92
|
+
command.params['backupConfiguration'] = backup_configuration unless backup_configuration.nil?
|
93
|
+
command.query['dueTime'] = due_time unless due_time.nil?
|
94
|
+
command.query['fields'] = fields unless fields.nil?
|
95
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
96
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
97
|
+
execute_or_queue_command(command, &block)
|
98
|
+
end
|
99
|
+
|
100
|
+
# Lists all backup runs associated with a Cloud SQL instance.
|
101
|
+
# @param [String] project
|
102
|
+
# Project ID of the project that contains the instance.
|
103
|
+
# @param [String] instance
|
104
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
105
|
+
# @param [String] backup_configuration
|
106
|
+
# Identifier for the backup configuration. This gets generated automatically
|
107
|
+
# when a backup configuration is created.
|
108
|
+
# @param [Fixnum] max_results
|
109
|
+
# Maximum number of backup runs per response.
|
110
|
+
# @param [String] page_token
|
111
|
+
# A previously-returned page token representing part of the larger set of
|
112
|
+
# results to view.
|
113
|
+
# @param [String] fields
|
114
|
+
# Selector specifying which fields to include in a partial response.
|
115
|
+
# @param [String] quota_user
|
116
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
117
|
+
# characters.
|
118
|
+
# @param [String] user_ip
|
119
|
+
# Deprecated. Please use quotaUser instead.
|
120
|
+
# @param [Google::Apis::RequestOptions] options
|
121
|
+
# Request-specific options
|
122
|
+
#
|
123
|
+
# @yield [result, err] Result & error if block supplied
|
124
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::BackupRunsListResponse] parsed result object
|
125
|
+
# @yieldparam err [StandardError] error object if request failed
|
126
|
+
#
|
127
|
+
# @return [Google::Apis::SqladminV1beta3::BackupRunsListResponse]
|
128
|
+
#
|
129
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
130
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
131
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
132
|
+
def list_backup_runs(project, instance, backup_configuration, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
133
|
+
command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns', options)
|
134
|
+
command.response_representation = Google::Apis::SqladminV1beta3::BackupRunsListResponse::Representation
|
135
|
+
command.response_class = Google::Apis::SqladminV1beta3::BackupRunsListResponse
|
136
|
+
command.params['project'] = project unless project.nil?
|
137
|
+
command.params['instance'] = instance unless instance.nil?
|
138
|
+
command.query['backupConfiguration'] = backup_configuration unless backup_configuration.nil?
|
139
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
140
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
141
|
+
command.query['fields'] = fields unless fields.nil?
|
142
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
143
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
144
|
+
execute_or_queue_command(command, &block)
|
145
|
+
end
|
146
|
+
|
147
|
+
# Lists all database flags that can be set for Google Cloud SQL instances.
|
148
|
+
# @param [String] fields
|
149
|
+
# Selector specifying which fields to include in a partial response.
|
150
|
+
# @param [String] quota_user
|
151
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
152
|
+
# characters.
|
153
|
+
# @param [String] user_ip
|
154
|
+
# Deprecated. Please use quotaUser instead.
|
155
|
+
# @param [Google::Apis::RequestOptions] options
|
156
|
+
# Request-specific options
|
157
|
+
#
|
158
|
+
# @yield [result, err] Result & error if block supplied
|
159
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::FlagsListResponse] parsed result object
|
160
|
+
# @yieldparam err [StandardError] error object if request failed
|
161
|
+
#
|
162
|
+
# @return [Google::Apis::SqladminV1beta3::FlagsListResponse]
|
163
|
+
#
|
164
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
165
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
166
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
167
|
+
def list_flags(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
168
|
+
command = make_simple_command(:get, 'flags', options)
|
169
|
+
command.response_representation = Google::Apis::SqladminV1beta3::FlagsListResponse::Representation
|
170
|
+
command.response_class = Google::Apis::SqladminV1beta3::FlagsListResponse
|
171
|
+
command.query['fields'] = fields unless fields.nil?
|
172
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
173
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
174
|
+
execute_or_queue_command(command, &block)
|
175
|
+
end
|
176
|
+
|
177
|
+
# Creates a Cloud SQL instance as a clone of a source instance.
|
178
|
+
# @param [String] project
|
179
|
+
# Project ID of the source as well as the clone Cloud SQL instance.
|
180
|
+
# @param [Google::Apis::SqladminV1beta3::InstancesCloneRequest] instances_clone_request_object
|
181
|
+
# @param [String] fields
|
182
|
+
# Selector specifying which fields to include in a partial response.
|
183
|
+
# @param [String] quota_user
|
184
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
185
|
+
# characters.
|
186
|
+
# @param [String] user_ip
|
187
|
+
# Deprecated. Please use quotaUser instead.
|
188
|
+
# @param [Google::Apis::RequestOptions] options
|
189
|
+
# Request-specific options
|
190
|
+
#
|
191
|
+
# @yield [result, err] Result & error if block supplied
|
192
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::InstancesCloneResponse] parsed result object
|
193
|
+
# @yieldparam err [StandardError] error object if request failed
|
194
|
+
#
|
195
|
+
# @return [Google::Apis::SqladminV1beta3::InstancesCloneResponse]
|
196
|
+
#
|
197
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
198
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
199
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
200
|
+
def clone_instance(project, instances_clone_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
201
|
+
command = make_simple_command(:post, 'projects/{project}/instances/clone', options)
|
202
|
+
command.request_representation = Google::Apis::SqladminV1beta3::InstancesCloneRequest::Representation
|
203
|
+
command.request_object = instances_clone_request_object
|
204
|
+
command.response_representation = Google::Apis::SqladminV1beta3::InstancesCloneResponse::Representation
|
205
|
+
command.response_class = Google::Apis::SqladminV1beta3::InstancesCloneResponse
|
206
|
+
command.params['project'] = project unless project.nil?
|
207
|
+
command.query['fields'] = fields unless fields.nil?
|
208
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
209
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
210
|
+
execute_or_queue_command(command, &block)
|
211
|
+
end
|
212
|
+
|
213
|
+
# Deletes a Cloud SQL instance.
|
214
|
+
# @param [String] project
|
215
|
+
# Project ID of the project that contains the instance to be deleted.
|
216
|
+
# @param [String] instance
|
217
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
218
|
+
# @param [String] fields
|
219
|
+
# Selector specifying which fields to include in a partial response.
|
220
|
+
# @param [String] quota_user
|
221
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
222
|
+
# characters.
|
223
|
+
# @param [String] user_ip
|
224
|
+
# Deprecated. Please use quotaUser instead.
|
225
|
+
# @param [Google::Apis::RequestOptions] options
|
226
|
+
# Request-specific options
|
227
|
+
#
|
228
|
+
# @yield [result, err] Result & error if block supplied
|
229
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::InstancesDeleteResponse] parsed result object
|
230
|
+
# @yieldparam err [StandardError] error object if request failed
|
231
|
+
#
|
232
|
+
# @return [Google::Apis::SqladminV1beta3::InstancesDeleteResponse]
|
233
|
+
#
|
234
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
235
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
236
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
237
|
+
def delete_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
238
|
+
command = make_simple_command(:delete, 'projects/{project}/instances/{instance}', options)
|
239
|
+
command.response_representation = Google::Apis::SqladminV1beta3::InstancesDeleteResponse::Representation
|
240
|
+
command.response_class = Google::Apis::SqladminV1beta3::InstancesDeleteResponse
|
241
|
+
command.params['project'] = project unless project.nil?
|
242
|
+
command.params['instance'] = instance unless instance.nil?
|
243
|
+
command.query['fields'] = fields unless fields.nil?
|
244
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
245
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
246
|
+
execute_or_queue_command(command, &block)
|
247
|
+
end
|
248
|
+
|
249
|
+
# Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a
|
250
|
+
# MySQL dump file.
|
251
|
+
# @param [String] project
|
252
|
+
# Project ID of the project that contains the instance to be exported.
|
253
|
+
# @param [String] instance
|
254
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
255
|
+
# @param [Google::Apis::SqladminV1beta3::InstancesExportRequest] instances_export_request_object
|
256
|
+
# @param [String] fields
|
257
|
+
# Selector specifying which fields to include in a partial response.
|
258
|
+
# @param [String] quota_user
|
259
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
260
|
+
# characters.
|
261
|
+
# @param [String] user_ip
|
262
|
+
# Deprecated. Please use quotaUser instead.
|
263
|
+
# @param [Google::Apis::RequestOptions] options
|
264
|
+
# Request-specific options
|
265
|
+
#
|
266
|
+
# @yield [result, err] Result & error if block supplied
|
267
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::InstancesExportResponse] parsed result object
|
268
|
+
# @yieldparam err [StandardError] error object if request failed
|
269
|
+
#
|
270
|
+
# @return [Google::Apis::SqladminV1beta3::InstancesExportResponse]
|
271
|
+
#
|
272
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
273
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
274
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
275
|
+
def export_instance(project, instance, instances_export_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
276
|
+
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/export', options)
|
277
|
+
command.request_representation = Google::Apis::SqladminV1beta3::InstancesExportRequest::Representation
|
278
|
+
command.request_object = instances_export_request_object
|
279
|
+
command.response_representation = Google::Apis::SqladminV1beta3::InstancesExportResponse::Representation
|
280
|
+
command.response_class = Google::Apis::SqladminV1beta3::InstancesExportResponse
|
281
|
+
command.params['project'] = project unless project.nil?
|
282
|
+
command.params['instance'] = instance unless instance.nil?
|
283
|
+
command.query['fields'] = fields unless fields.nil?
|
284
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
285
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
286
|
+
execute_or_queue_command(command, &block)
|
287
|
+
end
|
288
|
+
|
289
|
+
# Retrieves information about a Cloud SQL instance.
|
290
|
+
# @param [String] project
|
291
|
+
# Project ID of the project that contains the instance.
|
292
|
+
# @param [String] instance
|
293
|
+
# Database instance ID. This does not include the project ID.
|
294
|
+
# @param [String] fields
|
295
|
+
# Selector specifying which fields to include in a partial response.
|
296
|
+
# @param [String] quota_user
|
297
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
298
|
+
# characters.
|
299
|
+
# @param [String] user_ip
|
300
|
+
# Deprecated. Please use quotaUser instead.
|
301
|
+
# @param [Google::Apis::RequestOptions] options
|
302
|
+
# Request-specific options
|
303
|
+
#
|
304
|
+
# @yield [result, err] Result & error if block supplied
|
305
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::DatabaseInstance] parsed result object
|
306
|
+
# @yieldparam err [StandardError] error object if request failed
|
307
|
+
#
|
308
|
+
# @return [Google::Apis::SqladminV1beta3::DatabaseInstance]
|
309
|
+
#
|
310
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
311
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
312
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
313
|
+
def get_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
314
|
+
command = make_simple_command(:get, 'projects/{project}/instances/{instance}', options)
|
315
|
+
command.response_representation = Google::Apis::SqladminV1beta3::DatabaseInstance::Representation
|
316
|
+
command.response_class = Google::Apis::SqladminV1beta3::DatabaseInstance
|
317
|
+
command.params['project'] = project unless project.nil?
|
318
|
+
command.params['instance'] = instance unless instance.nil?
|
319
|
+
command.query['fields'] = fields unless fields.nil?
|
320
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
321
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
322
|
+
execute_or_queue_command(command, &block)
|
323
|
+
end
|
324
|
+
|
325
|
+
# Imports data into a Cloud SQL instance from a MySQL dump file stored in a
|
326
|
+
# Google Cloud Storage bucket.
|
327
|
+
# @param [String] project
|
328
|
+
# Project ID of the project that contains the instance.
|
329
|
+
# @param [String] instance
|
330
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
331
|
+
# @param [Google::Apis::SqladminV1beta3::InstancesImportRequest] instances_import_request_object
|
332
|
+
# @param [String] fields
|
333
|
+
# Selector specifying which fields to include in a partial response.
|
334
|
+
# @param [String] quota_user
|
335
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
336
|
+
# characters.
|
337
|
+
# @param [String] user_ip
|
338
|
+
# Deprecated. Please use quotaUser instead.
|
339
|
+
# @param [Google::Apis::RequestOptions] options
|
340
|
+
# Request-specific options
|
341
|
+
#
|
342
|
+
# @yield [result, err] Result & error if block supplied
|
343
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::InstancesImportResponse] parsed result object
|
344
|
+
# @yieldparam err [StandardError] error object if request failed
|
345
|
+
#
|
346
|
+
# @return [Google::Apis::SqladminV1beta3::InstancesImportResponse]
|
347
|
+
#
|
348
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
349
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
350
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
351
|
+
def import_instance(project, instance, instances_import_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
352
|
+
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/import', options)
|
353
|
+
command.request_representation = Google::Apis::SqladminV1beta3::InstancesImportRequest::Representation
|
354
|
+
command.request_object = instances_import_request_object
|
355
|
+
command.response_representation = Google::Apis::SqladminV1beta3::InstancesImportResponse::Representation
|
356
|
+
command.response_class = Google::Apis::SqladminV1beta3::InstancesImportResponse
|
357
|
+
command.params['project'] = project unless project.nil?
|
358
|
+
command.params['instance'] = instance unless instance.nil?
|
359
|
+
command.query['fields'] = fields unless fields.nil?
|
360
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
361
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
362
|
+
execute_or_queue_command(command, &block)
|
363
|
+
end
|
364
|
+
|
365
|
+
# Creates a new Cloud SQL instance.
|
366
|
+
# @param [String] project
|
367
|
+
# Project ID of the project to which the newly created Cloud SQL instances
|
368
|
+
# should belong.
|
369
|
+
# @param [Google::Apis::SqladminV1beta3::DatabaseInstance] database_instance_object
|
370
|
+
# @param [String] fields
|
371
|
+
# Selector specifying which fields to include in a partial response.
|
372
|
+
# @param [String] quota_user
|
373
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
374
|
+
# characters.
|
375
|
+
# @param [String] user_ip
|
376
|
+
# Deprecated. Please use quotaUser instead.
|
377
|
+
# @param [Google::Apis::RequestOptions] options
|
378
|
+
# Request-specific options
|
379
|
+
#
|
380
|
+
# @yield [result, err] Result & error if block supplied
|
381
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::InstancesInsertResponse] parsed result object
|
382
|
+
# @yieldparam err [StandardError] error object if request failed
|
383
|
+
#
|
384
|
+
# @return [Google::Apis::SqladminV1beta3::InstancesInsertResponse]
|
385
|
+
#
|
386
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
387
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
388
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
389
|
+
def insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
390
|
+
command = make_simple_command(:post, 'projects/{project}/instances', options)
|
391
|
+
command.request_representation = Google::Apis::SqladminV1beta3::DatabaseInstance::Representation
|
392
|
+
command.request_object = database_instance_object
|
393
|
+
command.response_representation = Google::Apis::SqladminV1beta3::InstancesInsertResponse::Representation
|
394
|
+
command.response_class = Google::Apis::SqladminV1beta3::InstancesInsertResponse
|
395
|
+
command.params['project'] = project unless project.nil?
|
396
|
+
command.query['fields'] = fields unless fields.nil?
|
397
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
398
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
399
|
+
execute_or_queue_command(command, &block)
|
400
|
+
end
|
401
|
+
|
402
|
+
# Lists instances for a given project, in alphabetical order by instance name.
|
403
|
+
# @param [String] project
|
404
|
+
# Project ID of the project for which to list Cloud SQL instances.
|
405
|
+
# @param [Fixnum] max_results
|
406
|
+
# The maximum number of results to return per response.
|
407
|
+
# @param [String] page_token
|
408
|
+
# A previously-returned page token representing part of the larger set of
|
409
|
+
# results to view.
|
410
|
+
# @param [String] fields
|
411
|
+
# Selector specifying which fields to include in a partial response.
|
412
|
+
# @param [String] quota_user
|
413
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
414
|
+
# characters.
|
415
|
+
# @param [String] user_ip
|
416
|
+
# Deprecated. Please use quotaUser instead.
|
417
|
+
# @param [Google::Apis::RequestOptions] options
|
418
|
+
# Request-specific options
|
419
|
+
#
|
420
|
+
# @yield [result, err] Result & error if block supplied
|
421
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::InstancesListResponse] parsed result object
|
422
|
+
# @yieldparam err [StandardError] error object if request failed
|
423
|
+
#
|
424
|
+
# @return [Google::Apis::SqladminV1beta3::InstancesListResponse]
|
425
|
+
#
|
426
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
427
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
428
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
429
|
+
def list_instances(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
430
|
+
command = make_simple_command(:get, 'projects/{project}/instances', options)
|
431
|
+
command.response_representation = Google::Apis::SqladminV1beta3::InstancesListResponse::Representation
|
432
|
+
command.response_class = Google::Apis::SqladminV1beta3::InstancesListResponse
|
433
|
+
command.params['project'] = project unless project.nil?
|
434
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
435
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
436
|
+
command.query['fields'] = fields unless fields.nil?
|
437
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
438
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
439
|
+
execute_or_queue_command(command, &block)
|
440
|
+
end
|
441
|
+
|
442
|
+
# Updates the settings of a Cloud SQL instance. This method supports patch
|
443
|
+
# semantics.
|
444
|
+
# @param [String] project
|
445
|
+
# Project ID of the project that contains the instance.
|
446
|
+
# @param [String] instance
|
447
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
448
|
+
# @param [Google::Apis::SqladminV1beta3::DatabaseInstance] database_instance_object
|
449
|
+
# @param [String] fields
|
450
|
+
# Selector specifying which fields to include in a partial response.
|
451
|
+
# @param [String] quota_user
|
452
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
453
|
+
# characters.
|
454
|
+
# @param [String] user_ip
|
455
|
+
# Deprecated. Please use quotaUser instead.
|
456
|
+
# @param [Google::Apis::RequestOptions] options
|
457
|
+
# Request-specific options
|
458
|
+
#
|
459
|
+
# @yield [result, err] Result & error if block supplied
|
460
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::InstancesUpdateResponse] parsed result object
|
461
|
+
# @yieldparam err [StandardError] error object if request failed
|
462
|
+
#
|
463
|
+
# @return [Google::Apis::SqladminV1beta3::InstancesUpdateResponse]
|
464
|
+
#
|
465
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
466
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
467
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
468
|
+
def patch_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
469
|
+
command = make_simple_command(:patch, 'projects/{project}/instances/{instance}', options)
|
470
|
+
command.request_representation = Google::Apis::SqladminV1beta3::DatabaseInstance::Representation
|
471
|
+
command.request_object = database_instance_object
|
472
|
+
command.response_representation = Google::Apis::SqladminV1beta3::InstancesUpdateResponse::Representation
|
473
|
+
command.response_class = Google::Apis::SqladminV1beta3::InstancesUpdateResponse
|
474
|
+
command.params['project'] = project unless project.nil?
|
475
|
+
command.params['instance'] = instance unless instance.nil?
|
476
|
+
command.query['fields'] = fields unless fields.nil?
|
477
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
478
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
479
|
+
execute_or_queue_command(command, &block)
|
480
|
+
end
|
481
|
+
|
482
|
+
# Promotes the read replica instance to be a stand-alone Cloud SQL instance.
|
483
|
+
# @param [String] project
|
484
|
+
# ID of the project that contains the read replica.
|
485
|
+
# @param [String] instance
|
486
|
+
# Cloud SQL read replica instance name.
|
487
|
+
# @param [String] fields
|
488
|
+
# Selector specifying which fields to include in a partial response.
|
489
|
+
# @param [String] quota_user
|
490
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
491
|
+
# characters.
|
492
|
+
# @param [String] user_ip
|
493
|
+
# Deprecated. Please use quotaUser instead.
|
494
|
+
# @param [Google::Apis::RequestOptions] options
|
495
|
+
# Request-specific options
|
496
|
+
#
|
497
|
+
# @yield [result, err] Result & error if block supplied
|
498
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::InstancesPromoteReplicaResponse] parsed result object
|
499
|
+
# @yieldparam err [StandardError] error object if request failed
|
500
|
+
#
|
501
|
+
# @return [Google::Apis::SqladminV1beta3::InstancesPromoteReplicaResponse]
|
502
|
+
#
|
503
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
504
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
505
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
506
|
+
def promote_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
507
|
+
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/promoteReplica', options)
|
508
|
+
command.response_representation = Google::Apis::SqladminV1beta3::InstancesPromoteReplicaResponse::Representation
|
509
|
+
command.response_class = Google::Apis::SqladminV1beta3::InstancesPromoteReplicaResponse
|
510
|
+
command.params['project'] = project unless project.nil?
|
511
|
+
command.params['instance'] = instance unless instance.nil?
|
512
|
+
command.query['fields'] = fields unless fields.nil?
|
513
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
514
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
515
|
+
execute_or_queue_command(command, &block)
|
516
|
+
end
|
517
|
+
|
518
|
+
# Deletes all client certificates and generates a new server SSL certificate for
|
519
|
+
# a Cloud SQL instance.
|
520
|
+
# @param [String] project
|
521
|
+
# Project ID of the project that contains the instance.
|
522
|
+
# @param [String] instance
|
523
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
524
|
+
# @param [String] fields
|
525
|
+
# Selector specifying which fields to include in a partial response.
|
526
|
+
# @param [String] quota_user
|
527
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
528
|
+
# characters.
|
529
|
+
# @param [String] user_ip
|
530
|
+
# Deprecated. Please use quotaUser instead.
|
531
|
+
# @param [Google::Apis::RequestOptions] options
|
532
|
+
# Request-specific options
|
533
|
+
#
|
534
|
+
# @yield [result, err] Result & error if block supplied
|
535
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::InstancesResetSslConfigResponse] parsed result object
|
536
|
+
# @yieldparam err [StandardError] error object if request failed
|
537
|
+
#
|
538
|
+
# @return [Google::Apis::SqladminV1beta3::InstancesResetSslConfigResponse]
|
539
|
+
#
|
540
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
541
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
542
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
543
|
+
def reset_instance_ssl_config(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
544
|
+
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/resetSslConfig', options)
|
545
|
+
command.response_representation = Google::Apis::SqladminV1beta3::InstancesResetSslConfigResponse::Representation
|
546
|
+
command.response_class = Google::Apis::SqladminV1beta3::InstancesResetSslConfigResponse
|
547
|
+
command.params['project'] = project unless project.nil?
|
548
|
+
command.params['instance'] = instance unless instance.nil?
|
549
|
+
command.query['fields'] = fields unless fields.nil?
|
550
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
551
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
552
|
+
execute_or_queue_command(command, &block)
|
553
|
+
end
|
554
|
+
|
555
|
+
# Restarts a Cloud SQL instance.
|
556
|
+
# @param [String] project
|
557
|
+
# Project ID of the project that contains the instance to be restarted.
|
558
|
+
# @param [String] instance
|
559
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
560
|
+
# @param [String] fields
|
561
|
+
# Selector specifying which fields to include in a partial response.
|
562
|
+
# @param [String] quota_user
|
563
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
564
|
+
# characters.
|
565
|
+
# @param [String] user_ip
|
566
|
+
# Deprecated. Please use quotaUser instead.
|
567
|
+
# @param [Google::Apis::RequestOptions] options
|
568
|
+
# Request-specific options
|
569
|
+
#
|
570
|
+
# @yield [result, err] Result & error if block supplied
|
571
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::InstancesRestartResponse] parsed result object
|
572
|
+
# @yieldparam err [StandardError] error object if request failed
|
573
|
+
#
|
574
|
+
# @return [Google::Apis::SqladminV1beta3::InstancesRestartResponse]
|
575
|
+
#
|
576
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
577
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
578
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
579
|
+
def restart_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
580
|
+
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restart', options)
|
581
|
+
command.response_representation = Google::Apis::SqladminV1beta3::InstancesRestartResponse::Representation
|
582
|
+
command.response_class = Google::Apis::SqladminV1beta3::InstancesRestartResponse
|
583
|
+
command.params['project'] = project unless project.nil?
|
584
|
+
command.params['instance'] = instance unless instance.nil?
|
585
|
+
command.query['fields'] = fields unless fields.nil?
|
586
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
587
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
588
|
+
execute_or_queue_command(command, &block)
|
589
|
+
end
|
590
|
+
|
591
|
+
# Restores a backup of a Cloud SQL instance.
|
592
|
+
# @param [String] project
|
593
|
+
# Project ID of the project that contains the instance.
|
594
|
+
# @param [String] instance
|
595
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
596
|
+
# @param [String] backup_configuration
|
597
|
+
# The identifier of the backup configuration. This gets generated automatically
|
598
|
+
# when a backup configuration is created.
|
599
|
+
# @param [String] due_time
|
600
|
+
# The start time of the four-hour backup window. The backup can occur any time
|
601
|
+
# in the window. The time is in RFC 3339 format, for example 2012-11-15T16:19:00.
|
602
|
+
# 094Z.
|
603
|
+
# @param [String] fields
|
604
|
+
# Selector specifying which fields to include in a partial response.
|
605
|
+
# @param [String] quota_user
|
606
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
607
|
+
# characters.
|
608
|
+
# @param [String] user_ip
|
609
|
+
# Deprecated. Please use quotaUser instead.
|
610
|
+
# @param [Google::Apis::RequestOptions] options
|
611
|
+
# Request-specific options
|
612
|
+
#
|
613
|
+
# @yield [result, err] Result & error if block supplied
|
614
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::InstancesRestoreBackupResponse] parsed result object
|
615
|
+
# @yieldparam err [StandardError] error object if request failed
|
616
|
+
#
|
617
|
+
# @return [Google::Apis::SqladminV1beta3::InstancesRestoreBackupResponse]
|
618
|
+
#
|
619
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
620
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
621
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
622
|
+
def restore_instance_backup(project, instance, backup_configuration, due_time, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
623
|
+
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restoreBackup', options)
|
624
|
+
command.response_representation = Google::Apis::SqladminV1beta3::InstancesRestoreBackupResponse::Representation
|
625
|
+
command.response_class = Google::Apis::SqladminV1beta3::InstancesRestoreBackupResponse
|
626
|
+
command.params['project'] = project unless project.nil?
|
627
|
+
command.params['instance'] = instance unless instance.nil?
|
628
|
+
command.query['backupConfiguration'] = backup_configuration unless backup_configuration.nil?
|
629
|
+
command.query['dueTime'] = due_time unless due_time.nil?
|
630
|
+
command.query['fields'] = fields unless fields.nil?
|
631
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
632
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
633
|
+
execute_or_queue_command(command, &block)
|
634
|
+
end
|
635
|
+
|
636
|
+
# Sets the password for the root user of the specified Cloud SQL instance.
|
637
|
+
# @param [String] project
|
638
|
+
# Project ID of the project that contains the instance.
|
639
|
+
# @param [String] instance
|
640
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
641
|
+
# @param [Google::Apis::SqladminV1beta3::InstanceSetRootPasswordRequest] instance_set_root_password_request_object
|
642
|
+
# @param [String] fields
|
643
|
+
# Selector specifying which fields to include in a partial response.
|
644
|
+
# @param [String] quota_user
|
645
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
646
|
+
# characters.
|
647
|
+
# @param [String] user_ip
|
648
|
+
# Deprecated. Please use quotaUser instead.
|
649
|
+
# @param [Google::Apis::RequestOptions] options
|
650
|
+
# Request-specific options
|
651
|
+
#
|
652
|
+
# @yield [result, err] Result & error if block supplied
|
653
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::InstancesSetRootPasswordResponse] parsed result object
|
654
|
+
# @yieldparam err [StandardError] error object if request failed
|
655
|
+
#
|
656
|
+
# @return [Google::Apis::SqladminV1beta3::InstancesSetRootPasswordResponse]
|
657
|
+
#
|
658
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
659
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
660
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
661
|
+
def set_instance_root_password(project, instance, instance_set_root_password_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
662
|
+
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/setRootPassword', options)
|
663
|
+
command.request_representation = Google::Apis::SqladminV1beta3::InstanceSetRootPasswordRequest::Representation
|
664
|
+
command.request_object = instance_set_root_password_request_object
|
665
|
+
command.response_representation = Google::Apis::SqladminV1beta3::InstancesSetRootPasswordResponse::Representation
|
666
|
+
command.response_class = Google::Apis::SqladminV1beta3::InstancesSetRootPasswordResponse
|
667
|
+
command.params['project'] = project unless project.nil?
|
668
|
+
command.params['instance'] = instance unless instance.nil?
|
669
|
+
command.query['fields'] = fields unless fields.nil?
|
670
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
671
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
672
|
+
execute_or_queue_command(command, &block)
|
673
|
+
end
|
674
|
+
|
675
|
+
# Updates the settings of a Cloud SQL instance.
|
676
|
+
# @param [String] project
|
677
|
+
# Project ID of the project that contains the instance.
|
678
|
+
# @param [String] instance
|
679
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
680
|
+
# @param [Google::Apis::SqladminV1beta3::DatabaseInstance] database_instance_object
|
681
|
+
# @param [String] fields
|
682
|
+
# Selector specifying which fields to include in a partial response.
|
683
|
+
# @param [String] quota_user
|
684
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
685
|
+
# characters.
|
686
|
+
# @param [String] user_ip
|
687
|
+
# Deprecated. Please use quotaUser instead.
|
688
|
+
# @param [Google::Apis::RequestOptions] options
|
689
|
+
# Request-specific options
|
690
|
+
#
|
691
|
+
# @yield [result, err] Result & error if block supplied
|
692
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::InstancesUpdateResponse] parsed result object
|
693
|
+
# @yieldparam err [StandardError] error object if request failed
|
694
|
+
#
|
695
|
+
# @return [Google::Apis::SqladminV1beta3::InstancesUpdateResponse]
|
696
|
+
#
|
697
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
698
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
699
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
700
|
+
def update_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
701
|
+
command = make_simple_command(:put, 'projects/{project}/instances/{instance}', options)
|
702
|
+
command.request_representation = Google::Apis::SqladminV1beta3::DatabaseInstance::Representation
|
703
|
+
command.request_object = database_instance_object
|
704
|
+
command.response_representation = Google::Apis::SqladminV1beta3::InstancesUpdateResponse::Representation
|
705
|
+
command.response_class = Google::Apis::SqladminV1beta3::InstancesUpdateResponse
|
706
|
+
command.params['project'] = project unless project.nil?
|
707
|
+
command.params['instance'] = instance unless instance.nil?
|
708
|
+
command.query['fields'] = fields unless fields.nil?
|
709
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
710
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
711
|
+
execute_or_queue_command(command, &block)
|
712
|
+
end
|
713
|
+
|
714
|
+
# Retrieves information about a specific operation that was performed on a Cloud
|
715
|
+
# SQL instance.
|
716
|
+
# @param [String] project
|
717
|
+
# Project ID of the project that contains the instance.
|
718
|
+
# @param [String] instance
|
719
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
720
|
+
# @param [String] operation
|
721
|
+
# Instance operation ID.
|
722
|
+
# @param [String] fields
|
723
|
+
# Selector specifying which fields to include in a partial response.
|
724
|
+
# @param [String] quota_user
|
725
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
726
|
+
# characters.
|
727
|
+
# @param [String] user_ip
|
728
|
+
# Deprecated. Please use quotaUser instead.
|
729
|
+
# @param [Google::Apis::RequestOptions] options
|
730
|
+
# Request-specific options
|
731
|
+
#
|
732
|
+
# @yield [result, err] Result & error if block supplied
|
733
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::InstanceOperation] parsed result object
|
734
|
+
# @yieldparam err [StandardError] error object if request failed
|
735
|
+
#
|
736
|
+
# @return [Google::Apis::SqladminV1beta3::InstanceOperation]
|
737
|
+
#
|
738
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
739
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
740
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
741
|
+
def get_operation(project, instance, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
742
|
+
command = make_simple_command(:get, 'projects/{project}/instances/{instance}/operations/{operation}', options)
|
743
|
+
command.response_representation = Google::Apis::SqladminV1beta3::InstanceOperation::Representation
|
744
|
+
command.response_class = Google::Apis::SqladminV1beta3::InstanceOperation
|
745
|
+
command.params['project'] = project unless project.nil?
|
746
|
+
command.params['instance'] = instance unless instance.nil?
|
747
|
+
command.params['operation'] = operation unless operation.nil?
|
748
|
+
command.query['fields'] = fields unless fields.nil?
|
749
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
750
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
751
|
+
execute_or_queue_command(command, &block)
|
752
|
+
end
|
753
|
+
|
754
|
+
# Lists all operations that have been performed on a Cloud SQL instance.
|
755
|
+
# @param [String] project
|
756
|
+
# Project ID of the project that contains the instance.
|
757
|
+
# @param [String] instance
|
758
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
759
|
+
# @param [Fixnum] max_results
|
760
|
+
# Maximum number of operations per response.
|
761
|
+
# @param [String] page_token
|
762
|
+
# A previously-returned page token representing part of the larger set of
|
763
|
+
# results to view.
|
764
|
+
# @param [String] fields
|
765
|
+
# Selector specifying which fields to include in a partial response.
|
766
|
+
# @param [String] quota_user
|
767
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
768
|
+
# characters.
|
769
|
+
# @param [String] user_ip
|
770
|
+
# Deprecated. Please use quotaUser instead.
|
771
|
+
# @param [Google::Apis::RequestOptions] options
|
772
|
+
# Request-specific options
|
773
|
+
#
|
774
|
+
# @yield [result, err] Result & error if block supplied
|
775
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::OperationsListResponse] parsed result object
|
776
|
+
# @yieldparam err [StandardError] error object if request failed
|
777
|
+
#
|
778
|
+
# @return [Google::Apis::SqladminV1beta3::OperationsListResponse]
|
779
|
+
#
|
780
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
781
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
782
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
783
|
+
def list_operations(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
784
|
+
command = make_simple_command(:get, 'projects/{project}/instances/{instance}/operations', options)
|
785
|
+
command.response_representation = Google::Apis::SqladminV1beta3::OperationsListResponse::Representation
|
786
|
+
command.response_class = Google::Apis::SqladminV1beta3::OperationsListResponse
|
787
|
+
command.params['project'] = project unless project.nil?
|
788
|
+
command.params['instance'] = instance unless instance.nil?
|
789
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
790
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
791
|
+
command.query['fields'] = fields unless fields.nil?
|
792
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
793
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
794
|
+
execute_or_queue_command(command, &block)
|
795
|
+
end
|
796
|
+
|
797
|
+
# Deletes an SSL certificate from a Cloud SQL instance.
|
798
|
+
# @param [String] project
|
799
|
+
# Project ID of the project that contains the instance to be deleted.
|
800
|
+
# @param [String] instance
|
801
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
802
|
+
# @param [String] sha1_fingerprint
|
803
|
+
# Sha1 FingerPrint.
|
804
|
+
# @param [String] fields
|
805
|
+
# Selector specifying which fields to include in a partial response.
|
806
|
+
# @param [String] quota_user
|
807
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
808
|
+
# characters.
|
809
|
+
# @param [String] user_ip
|
810
|
+
# Deprecated. Please use quotaUser instead.
|
811
|
+
# @param [Google::Apis::RequestOptions] options
|
812
|
+
# Request-specific options
|
813
|
+
#
|
814
|
+
# @yield [result, err] Result & error if block supplied
|
815
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::SslCertsDeleteResponse] parsed result object
|
816
|
+
# @yieldparam err [StandardError] error object if request failed
|
817
|
+
#
|
818
|
+
# @return [Google::Apis::SqladminV1beta3::SslCertsDeleteResponse]
|
819
|
+
#
|
820
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
821
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
822
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
823
|
+
def delete_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
824
|
+
command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
|
825
|
+
command.response_representation = Google::Apis::SqladminV1beta3::SslCertsDeleteResponse::Representation
|
826
|
+
command.response_class = Google::Apis::SqladminV1beta3::SslCertsDeleteResponse
|
827
|
+
command.params['project'] = project unless project.nil?
|
828
|
+
command.params['instance'] = instance unless instance.nil?
|
829
|
+
command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil?
|
830
|
+
command.query['fields'] = fields unless fields.nil?
|
831
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
832
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
833
|
+
execute_or_queue_command(command, &block)
|
834
|
+
end
|
835
|
+
|
836
|
+
# Retrieves an SSL certificate as specified by its SHA-1 fingerprint.
|
837
|
+
# @param [String] project
|
838
|
+
# Project ID of the project that contains the instance.
|
839
|
+
# @param [String] instance
|
840
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
841
|
+
# @param [String] sha1_fingerprint
|
842
|
+
# Sha1 FingerPrint.
|
843
|
+
# @param [String] fields
|
844
|
+
# Selector specifying which fields to include in a partial response.
|
845
|
+
# @param [String] quota_user
|
846
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
847
|
+
# characters.
|
848
|
+
# @param [String] user_ip
|
849
|
+
# Deprecated. Please use quotaUser instead.
|
850
|
+
# @param [Google::Apis::RequestOptions] options
|
851
|
+
# Request-specific options
|
852
|
+
#
|
853
|
+
# @yield [result, err] Result & error if block supplied
|
854
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::SslCert] parsed result object
|
855
|
+
# @yieldparam err [StandardError] error object if request failed
|
856
|
+
#
|
857
|
+
# @return [Google::Apis::SqladminV1beta3::SslCert]
|
858
|
+
#
|
859
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
860
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
861
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
862
|
+
def get_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
863
|
+
command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
|
864
|
+
command.response_representation = Google::Apis::SqladminV1beta3::SslCert::Representation
|
865
|
+
command.response_class = Google::Apis::SqladminV1beta3::SslCert
|
866
|
+
command.params['project'] = project unless project.nil?
|
867
|
+
command.params['instance'] = instance unless instance.nil?
|
868
|
+
command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil?
|
869
|
+
command.query['fields'] = fields unless fields.nil?
|
870
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
871
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
872
|
+
execute_or_queue_command(command, &block)
|
873
|
+
end
|
874
|
+
|
875
|
+
# Creates an SSL certificate and returns the certificate, the associated private
|
876
|
+
# key, and the server certificate authority.
|
877
|
+
# @param [String] project
|
878
|
+
# Project ID of the project to which the newly created Cloud SQL instances
|
879
|
+
# should belong.
|
880
|
+
# @param [String] instance
|
881
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
882
|
+
# @param [Google::Apis::SqladminV1beta3::SslCertsInsertRequest] ssl_certs_insert_request_object
|
883
|
+
# @param [String] fields
|
884
|
+
# Selector specifying which fields to include in a partial response.
|
885
|
+
# @param [String] quota_user
|
886
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
887
|
+
# characters.
|
888
|
+
# @param [String] user_ip
|
889
|
+
# Deprecated. Please use quotaUser instead.
|
890
|
+
# @param [Google::Apis::RequestOptions] options
|
891
|
+
# Request-specific options
|
892
|
+
#
|
893
|
+
# @yield [result, err] Result & error if block supplied
|
894
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::SslCertsInsertResponse] parsed result object
|
895
|
+
# @yieldparam err [StandardError] error object if request failed
|
896
|
+
#
|
897
|
+
# @return [Google::Apis::SqladminV1beta3::SslCertsInsertResponse]
|
898
|
+
#
|
899
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
900
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
901
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
902
|
+
def insert_ssl_cert(project, instance, ssl_certs_insert_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
903
|
+
command = make_simple_command(:post, 'projects/{project}/instances/{instance}/sslCerts', options)
|
904
|
+
command.request_representation = Google::Apis::SqladminV1beta3::SslCertsInsertRequest::Representation
|
905
|
+
command.request_object = ssl_certs_insert_request_object
|
906
|
+
command.response_representation = Google::Apis::SqladminV1beta3::SslCertsInsertResponse::Representation
|
907
|
+
command.response_class = Google::Apis::SqladminV1beta3::SslCertsInsertResponse
|
908
|
+
command.params['project'] = project unless project.nil?
|
909
|
+
command.params['instance'] = instance unless instance.nil?
|
910
|
+
command.query['fields'] = fields unless fields.nil?
|
911
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
912
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
913
|
+
execute_or_queue_command(command, &block)
|
914
|
+
end
|
915
|
+
|
916
|
+
# Lists all of the current SSL certificates defined for a Cloud SQL instance.
|
917
|
+
# @param [String] project
|
918
|
+
# Project ID of the project for which to list Cloud SQL instances.
|
919
|
+
# @param [String] instance
|
920
|
+
# Cloud SQL instance ID. This does not include the project ID.
|
921
|
+
# @param [String] fields
|
922
|
+
# Selector specifying which fields to include in a partial response.
|
923
|
+
# @param [String] quota_user
|
924
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
925
|
+
# characters.
|
926
|
+
# @param [String] user_ip
|
927
|
+
# Deprecated. Please use quotaUser instead.
|
928
|
+
# @param [Google::Apis::RequestOptions] options
|
929
|
+
# Request-specific options
|
930
|
+
#
|
931
|
+
# @yield [result, err] Result & error if block supplied
|
932
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::SslCertsListResponse] parsed result object
|
933
|
+
# @yieldparam err [StandardError] error object if request failed
|
934
|
+
#
|
935
|
+
# @return [Google::Apis::SqladminV1beta3::SslCertsListResponse]
|
936
|
+
#
|
937
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
938
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
939
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
940
|
+
def list_ssl_certs(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
941
|
+
command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts', options)
|
942
|
+
command.response_representation = Google::Apis::SqladminV1beta3::SslCertsListResponse::Representation
|
943
|
+
command.response_class = Google::Apis::SqladminV1beta3::SslCertsListResponse
|
944
|
+
command.params['project'] = project unless project.nil?
|
945
|
+
command.params['instance'] = instance unless instance.nil?
|
946
|
+
command.query['fields'] = fields unless fields.nil?
|
947
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
948
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
949
|
+
execute_or_queue_command(command, &block)
|
950
|
+
end
|
951
|
+
|
952
|
+
# Lists service tiers that can be used to create Google Cloud SQL instances.
|
953
|
+
# @param [String] project
|
954
|
+
# Project ID of the project for which to list tiers.
|
955
|
+
# @param [String] fields
|
956
|
+
# Selector specifying which fields to include in a partial response.
|
957
|
+
# @param [String] quota_user
|
958
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
959
|
+
# characters.
|
960
|
+
# @param [String] user_ip
|
961
|
+
# Deprecated. Please use quotaUser instead.
|
962
|
+
# @param [Google::Apis::RequestOptions] options
|
963
|
+
# Request-specific options
|
964
|
+
#
|
965
|
+
# @yield [result, err] Result & error if block supplied
|
966
|
+
# @yieldparam result [Google::Apis::SqladminV1beta3::TiersListResponse] parsed result object
|
967
|
+
# @yieldparam err [StandardError] error object if request failed
|
968
|
+
#
|
969
|
+
# @return [Google::Apis::SqladminV1beta3::TiersListResponse]
|
970
|
+
#
|
971
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
972
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
973
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
974
|
+
def list_tiers(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
975
|
+
command = make_simple_command(:get, 'projects/{project}/tiers', options)
|
976
|
+
command.response_representation = Google::Apis::SqladminV1beta3::TiersListResponse::Representation
|
977
|
+
command.response_class = Google::Apis::SqladminV1beta3::TiersListResponse
|
978
|
+
command.params['project'] = project unless project.nil?
|
979
|
+
command.query['fields'] = fields unless fields.nil?
|
980
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
981
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
982
|
+
execute_or_queue_command(command, &block)
|
983
|
+
end
|
984
|
+
|
985
|
+
protected
|
986
|
+
|
987
|
+
def apply_command_defaults(command)
|
988
|
+
command.query['key'] = key unless key.nil?
|
989
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
990
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
991
|
+
end
|
992
|
+
end
|
993
|
+
end
|
994
|
+
end
|
995
|
+
end
|