google-api-client 0.34.1 → 0.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +16 -3
- data/CHANGELOG.md +114 -0
- data/OVERVIEW.md +36 -0
- data/README.md +49 -1
- data/Rakefile +1 -1
- 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/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +9 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +1 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +9 -0
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +93 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +49 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +46 -4
- data/generated/google/apis/bigquery_v2/representations.rb +17 -0
- data/generated/google/apis/bigquery_v2/service.rb +1 -5
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -5
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +30 -4
- data/generated/google/apis/bigqueryreservation_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_v1alpha2.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_v1beta1.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 +112 -78
- data/generated/google/apis/bigtableadmin_v1.rb +1 -1
- data/generated/google/apis/bigtableadmin_v1/classes.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/service.rb +1 -1
- data/generated/google/apis/{sqladmin_v1beta4.rb → billingbudgets_v1beta1.rb} +10 -13
- 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/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1/classes.rb +6 -5
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +6 -5
- data/generated/google/apis/books_v1.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/calendar_v3.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/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +0 -156
- data/generated/google/apis/civicinfo_v2/representations.rb +0 -58
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +6 -5
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +6 -5
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +17 -0
- data/generated/google/apis/cloudbuild_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_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +8 -2
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +4 -1
- data/generated/google/apis/cloudfunctions_v1.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 +3 -1
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +6 -5
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +6 -5
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +6 -5
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +6 -5
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -1
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -1
- data/generated/google/apis/cloudsearch_v1.rb +8 -8
- data/generated/google/apis/cloudsearch_v1/classes.rb +5 -130
- data/generated/google/apis/cloudsearch_v1/representations.rb +0 -75
- data/generated/google/apis/cloudsearch_v1/service.rb +42 -7
- data/generated/google/apis/cloudtasks_v2.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_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +6 -5
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +6 -5
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +14 -19
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +75 -12
- data/generated/google/apis/compute_alpha/representations.rb +2 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +54 -10
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +54 -10
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +6 -5
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +6 -5
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +13 -4
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +13 -4
- data/generated/google/apis/datacatalog_v1beta1.rb +35 -0
- 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/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +75 -4
- data/generated/google/apis/dataproc_v1/representations.rb +22 -0
- data/generated/google/apis/dataproc_v1/service.rb +14 -7
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +2 -4
- data/generated/google/apis/dataproc_v1beta2/service.rb +14 -7
- data/generated/google/apis/dfareporting_v3_3.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_4.rb +40 -0
- data/generated/google/apis/dfareporting_v3_4/classes.rb +12717 -0
- data/generated/google/apis/dfareporting_v3_4/representations.rb +4595 -0
- data/generated/google/apis/dfareporting_v3_4/service.rb +8685 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +484 -1
- data/generated/google/apis/dialogflow_v2/representations.rb +220 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +497 -1
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +221 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +68 -25
- data/generated/google/apis/dlp_v2/representations.rb +9 -4
- data/generated/google/apis/dlp_v2/service.rb +1925 -193
- data/generated/google/apis/dns_v1beta2.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/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +4 -8
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +34 -0
- 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/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +12 -3
- data/generated/google/apis/fcm_v1.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/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +3 -4
- data/generated/google/apis/firebase_v1beta1/service.rb +6 -6
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +25 -0
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +15 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +47 -0
- data/generated/google/apis/firebaserules_v1.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/genomics_v2alpha1.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/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +8 -7
- data/generated/google/apis/homegraph_v1.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/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +6 -5
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +18 -2
- data/generated/google/apis/logging_v2/representations.rb +2 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +173 -97
- data/generated/google/apis/ml_v1/representations.rb +58 -0
- data/generated/google/apis/ml_v1/service.rb +37 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +780 -6
- data/generated/google/apis/monitoring_v3/representations.rb +347 -0
- data/generated/google/apis/monitoring_v3/service.rb +382 -0
- data/generated/google/apis/pagespeedonline_v5.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/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +6 -5
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +8 -6
- data/generated/google/apis/pubsub_v1/service.rb +6 -7
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +6 -5
- data/generated/google/apis/recommender_v1beta1.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/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +33 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +15 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +33 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +15 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +33 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +15 -0
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +8 -169
- data/generated/google/apis/run_v1/representations.rb +0 -71
- data/generated/google/apis/run_v1/service.rb +229 -1207
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +9 -9
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +6 -5
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +66 -11
- data/generated/google/apis/securitycenter_v1/representations.rb +19 -0
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +16 -13
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +6 -5
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +6 -5
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +6 -5
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +3 -2
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +8 -1
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +12 -9
- data/generated/google/apis/servicemanagement_v1/service.rb +1 -9
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +130 -13
- data/generated/google/apis/servicenetworking_v1/representations.rb +58 -0
- data/generated/google/apis/servicenetworking_v1/service.rb +42 -3
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +3 -2
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +3 -2
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +3 -2
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/spanner_v1.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/speech_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_v1p1beta1.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/sql_v1beta4.rb +1 -1
- data/generated/google/apis/sql_v1beta4/service.rb +59 -10
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +112 -0
- data/generated/google/apis/videointelligence_v1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +112 -0
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +112 -0
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +112 -0
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +62 -0
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +112 -0
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +62 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/core/api_command.rb +3 -0
- data/lib/google/apis/core/http_command.rb +10 -8
- data/lib/google/apis/version.rb +1 -1
- data/rakelib/devsite/devsite_builder.rb +1 -1
- metadata +33 -11
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +0 -2633
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +0 -1110
- data/generated/google/apis/sqladmin_v1beta4/service.rb +0 -1793
- data/generated/google/apis/storage_v1beta1.rb +0 -40
- 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
|
@@ -568,6 +568,24 @@ module Google
|
|
|
568
568
|
include Google::Apis::Core::JsonObjectSupport
|
|
569
569
|
end
|
|
570
570
|
|
|
571
|
+
class GoogleCloudVideointelligenceV1p3beta1Celebrity
|
|
572
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
573
|
+
|
|
574
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation
|
|
578
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
579
|
+
|
|
580
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack
|
|
584
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
585
|
+
|
|
586
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
587
|
+
end
|
|
588
|
+
|
|
571
589
|
class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute
|
|
572
590
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
573
591
|
|
|
@@ -664,6 +682,12 @@ module Google
|
|
|
664
682
|
include Google::Apis::Core::JsonObjectSupport
|
|
665
683
|
end
|
|
666
684
|
|
|
685
|
+
class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity
|
|
686
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
687
|
+
|
|
688
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
689
|
+
end
|
|
690
|
+
|
|
667
691
|
class GoogleCloudVideointelligenceV1p3beta1ShotChangeDetectionConfig
|
|
668
692
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
669
693
|
|
|
@@ -1741,6 +1765,33 @@ module Google
|
|
|
1741
1765
|
end
|
|
1742
1766
|
end
|
|
1743
1767
|
|
|
1768
|
+
class GoogleCloudVideointelligenceV1p3beta1Celebrity
|
|
1769
|
+
# @private
|
|
1770
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1771
|
+
property :description, as: 'description'
|
|
1772
|
+
property :display_name, as: 'displayName'
|
|
1773
|
+
property :name, as: 'name'
|
|
1774
|
+
end
|
|
1775
|
+
end
|
|
1776
|
+
|
|
1777
|
+
class GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation
|
|
1778
|
+
# @private
|
|
1779
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1780
|
+
collection :celebrity_tracks, as: 'celebrityTracks', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityTrack::Representation
|
|
1781
|
+
|
|
1782
|
+
end
|
|
1783
|
+
end
|
|
1784
|
+
|
|
1785
|
+
class GoogleCloudVideointelligenceV1p3beta1CelebrityTrack
|
|
1786
|
+
# @private
|
|
1787
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1788
|
+
collection :celebrities, as: 'celebrities', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity::Representation
|
|
1789
|
+
|
|
1790
|
+
property :face_track, as: 'faceTrack', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Track, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Track::Representation
|
|
1791
|
+
|
|
1792
|
+
end
|
|
1793
|
+
end
|
|
1794
|
+
|
|
1744
1795
|
class GoogleCloudVideointelligenceV1p3beta1DetectedAttribute
|
|
1745
1796
|
# @private
|
|
1746
1797
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1892,6 +1943,15 @@ module Google
|
|
|
1892
1943
|
end
|
|
1893
1944
|
end
|
|
1894
1945
|
|
|
1946
|
+
class GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity
|
|
1947
|
+
# @private
|
|
1948
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1949
|
+
property :celebrity, as: 'celebrity', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Celebrity, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Celebrity::Representation
|
|
1950
|
+
|
|
1951
|
+
property :confidence, as: 'confidence'
|
|
1952
|
+
end
|
|
1953
|
+
end
|
|
1954
|
+
|
|
1895
1955
|
class GoogleCloudVideointelligenceV1p3beta1ShotChangeDetectionConfig
|
|
1896
1956
|
# @private
|
|
1897
1957
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -2043,6 +2103,8 @@ module Google
|
|
|
2043
2103
|
class GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults
|
|
2044
2104
|
# @private
|
|
2045
2105
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
2106
|
+
property :celebrity_recognition_annotations, as: 'celebrityRecognitionAnnotations', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation::Representation
|
|
2107
|
+
|
|
2046
2108
|
property :error, as: 'error', class: Google::Apis::VideointelligenceV1p3beta1::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleRpcStatus::Representation
|
|
2047
2109
|
|
|
2048
2110
|
property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation::Representation
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://developers.google.com/youtube/partner/
|
|
26
26
|
module YoutubePartnerV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20191116'
|
|
29
29
|
|
|
30
30
|
# View and manage your assets and associated content on YouTube
|
|
31
31
|
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'
|
|
@@ -131,6 +131,9 @@ module Google
|
|
|
131
131
|
.find_all { |k, v| k.downcase == 'x-goog-api-client' }
|
|
132
132
|
.map { |(a, b)| b }
|
|
133
133
|
.join(' ')
|
|
134
|
+
.split
|
|
135
|
+
.find_all { |s| s !~ %r{^gl-ruby/|^gdcl/} }
|
|
136
|
+
.join(' ')
|
|
134
137
|
xgac = "gl-ruby/#{RUBY_VERSION} gdcl/#{Google::Apis::VERSION}"
|
|
135
138
|
xgac = old_xgac.empty? ? xgac : "#{old_xgac} #{xgac}"
|
|
136
139
|
header.delete_if { |k, v| k.downcase == 'x-goog-api-client' }
|
|
@@ -385,14 +385,16 @@ module Google
|
|
|
385
385
|
return unless @opencensus_span
|
|
386
386
|
return unless OpenCensus::Trace.span_context
|
|
387
387
|
|
|
388
|
-
if @http_res
|
|
389
|
-
@
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
388
|
+
if @http_res
|
|
389
|
+
if @http_res.body.respond_to? :bytesize
|
|
390
|
+
@opencensus_span.put_message_event \
|
|
391
|
+
OpenCensus::Trace::SpanBuilder::RECEIVED, 1, @http_res.body.bytesize
|
|
392
|
+
end
|
|
393
|
+
status = @http_res.status.to_i
|
|
394
|
+
if status > 0
|
|
395
|
+
@opencensus_span.set_status map_http_status status
|
|
396
|
+
@opencensus_span.put_attribute "http.status_code", status
|
|
397
|
+
end
|
|
396
398
|
end
|
|
397
399
|
|
|
398
400
|
OpenCensus::Trace.end_span @opencensus_span
|
data/lib/google/apis/version.rb
CHANGED
|
@@ -70,7 +70,7 @@ class DevsiteBuilder
|
|
|
70
70
|
@metadata ||= RepoMetadata.from_source "name" => "google-api-client",
|
|
71
71
|
"distribution-name" => "google-api-client",
|
|
72
72
|
"language" => "ruby"
|
|
73
|
-
@metadata["version"] = version @build_tag
|
|
73
|
+
@metadata["version"] = "v#{version @build_tag}"
|
|
74
74
|
@metadata
|
|
75
75
|
end
|
|
76
76
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-api-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.35.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Bazyl
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2019-
|
|
14
|
+
date: 2019-12-03 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: representable
|
|
@@ -201,10 +201,24 @@ files:
|
|
|
201
201
|
- Gemfile
|
|
202
202
|
- LICENSE
|
|
203
203
|
- MIGRATING.md
|
|
204
|
+
- OVERVIEW.md
|
|
204
205
|
- README.md
|
|
205
206
|
- Rakefile
|
|
206
207
|
- api_names.yaml
|
|
207
208
|
- bin/generate-api
|
|
209
|
+
- docs/api-keys.md
|
|
210
|
+
- docs/auth.md
|
|
211
|
+
- docs/client-secrets.md
|
|
212
|
+
- docs/getting-started.md
|
|
213
|
+
- docs/installation.md
|
|
214
|
+
- docs/logging.md
|
|
215
|
+
- docs/media-upload.md
|
|
216
|
+
- docs/oauth-installed.md
|
|
217
|
+
- docs/oauth-server.md
|
|
218
|
+
- docs/oauth-web.md
|
|
219
|
+
- docs/oauth.md
|
|
220
|
+
- docs/pagination.md
|
|
221
|
+
- docs/performance.md
|
|
208
222
|
- generated/google/apis/abusiveexperiencereport_v1.rb
|
|
209
223
|
- generated/google/apis/abusiveexperiencereport_v1/classes.rb
|
|
210
224
|
- generated/google/apis/abusiveexperiencereport_v1/representations.rb
|
|
@@ -369,6 +383,10 @@ files:
|
|
|
369
383
|
- generated/google/apis/bigtableadmin_v2/classes.rb
|
|
370
384
|
- generated/google/apis/bigtableadmin_v2/representations.rb
|
|
371
385
|
- generated/google/apis/bigtableadmin_v2/service.rb
|
|
386
|
+
- generated/google/apis/billingbudgets_v1beta1.rb
|
|
387
|
+
- generated/google/apis/billingbudgets_v1beta1/classes.rb
|
|
388
|
+
- generated/google/apis/billingbudgets_v1beta1/representations.rb
|
|
389
|
+
- generated/google/apis/billingbudgets_v1beta1/service.rb
|
|
372
390
|
- generated/google/apis/binaryauthorization_v1.rb
|
|
373
391
|
- generated/google/apis/binaryauthorization_v1/classes.rb
|
|
374
392
|
- generated/google/apis/binaryauthorization_v1/representations.rb
|
|
@@ -577,6 +595,10 @@ files:
|
|
|
577
595
|
- generated/google/apis/customsearch_v1/classes.rb
|
|
578
596
|
- generated/google/apis/customsearch_v1/representations.rb
|
|
579
597
|
- generated/google/apis/customsearch_v1/service.rb
|
|
598
|
+
- generated/google/apis/datacatalog_v1beta1.rb
|
|
599
|
+
- generated/google/apis/datacatalog_v1beta1/classes.rb
|
|
600
|
+
- generated/google/apis/datacatalog_v1beta1/representations.rb
|
|
601
|
+
- generated/google/apis/datacatalog_v1beta1/service.rb
|
|
580
602
|
- generated/google/apis/dataflow_v1b3.rb
|
|
581
603
|
- generated/google/apis/dataflow_v1b3/classes.rb
|
|
582
604
|
- generated/google/apis/dataflow_v1b3/representations.rb
|
|
@@ -621,6 +643,10 @@ files:
|
|
|
621
643
|
- generated/google/apis/dfareporting_v3_3/classes.rb
|
|
622
644
|
- generated/google/apis/dfareporting_v3_3/representations.rb
|
|
623
645
|
- generated/google/apis/dfareporting_v3_3/service.rb
|
|
646
|
+
- generated/google/apis/dfareporting_v3_4.rb
|
|
647
|
+
- generated/google/apis/dfareporting_v3_4/classes.rb
|
|
648
|
+
- generated/google/apis/dfareporting_v3_4/representations.rb
|
|
649
|
+
- generated/google/apis/dfareporting_v3_4/service.rb
|
|
624
650
|
- generated/google/apis/dialogflow_v2.rb
|
|
625
651
|
- generated/google/apis/dialogflow_v2/classes.rb
|
|
626
652
|
- generated/google/apis/dialogflow_v2/representations.rb
|
|
@@ -665,6 +691,10 @@ files:
|
|
|
665
691
|
- generated/google/apis/doubleclickbidmanager_v1/classes.rb
|
|
666
692
|
- generated/google/apis/doubleclickbidmanager_v1/representations.rb
|
|
667
693
|
- generated/google/apis/doubleclickbidmanager_v1/service.rb
|
|
694
|
+
- generated/google/apis/doubleclickbidmanager_v1_1.rb
|
|
695
|
+
- generated/google/apis/doubleclickbidmanager_v1_1/classes.rb
|
|
696
|
+
- generated/google/apis/doubleclickbidmanager_v1_1/representations.rb
|
|
697
|
+
- generated/google/apis/doubleclickbidmanager_v1_1/service.rb
|
|
668
698
|
- generated/google/apis/doubleclicksearch_v2.rb
|
|
669
699
|
- generated/google/apis/doubleclicksearch_v2/classes.rb
|
|
670
700
|
- generated/google/apis/doubleclicksearch_v2/representations.rb
|
|
@@ -1097,18 +1127,10 @@ files:
|
|
|
1097
1127
|
- generated/google/apis/sql_v1beta4/classes.rb
|
|
1098
1128
|
- generated/google/apis/sql_v1beta4/representations.rb
|
|
1099
1129
|
- generated/google/apis/sql_v1beta4/service.rb
|
|
1100
|
-
- generated/google/apis/sqladmin_v1beta4.rb
|
|
1101
|
-
- generated/google/apis/sqladmin_v1beta4/classes.rb
|
|
1102
|
-
- generated/google/apis/sqladmin_v1beta4/representations.rb
|
|
1103
|
-
- generated/google/apis/sqladmin_v1beta4/service.rb
|
|
1104
1130
|
- generated/google/apis/storage_v1.rb
|
|
1105
1131
|
- generated/google/apis/storage_v1/classes.rb
|
|
1106
1132
|
- generated/google/apis/storage_v1/representations.rb
|
|
1107
1133
|
- generated/google/apis/storage_v1/service.rb
|
|
1108
|
-
- generated/google/apis/storage_v1beta1.rb
|
|
1109
|
-
- generated/google/apis/storage_v1beta1/classes.rb
|
|
1110
|
-
- generated/google/apis/storage_v1beta1/representations.rb
|
|
1111
|
-
- generated/google/apis/storage_v1beta1/service.rb
|
|
1112
1134
|
- generated/google/apis/storage_v1beta2.rb
|
|
1113
1135
|
- generated/google/apis/storage_v1beta2/classes.rb
|
|
1114
1136
|
- generated/google/apis/storage_v1beta2/representations.rb
|
|
@@ -1321,7 +1343,7 @@ homepage: https://github.com/google/google-api-ruby-client
|
|
|
1321
1343
|
licenses:
|
|
1322
1344
|
- Apache-2.0
|
|
1323
1345
|
metadata:
|
|
1324
|
-
documentation_uri: https://googleapis.dev/ruby/google-api-client/v0.
|
|
1346
|
+
documentation_uri: https://googleapis.dev/ruby/google-api-client/v0.35.0
|
|
1325
1347
|
post_install_message:
|
|
1326
1348
|
rdoc_options: []
|
|
1327
1349
|
require_paths:
|
|
@@ -1,2633 +0,0 @@
|
|
|
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 'date'
|
|
16
|
-
require 'google/apis/core/base_service'
|
|
17
|
-
require 'google/apis/core/json_representation'
|
|
18
|
-
require 'google/apis/core/hashable'
|
|
19
|
-
require 'google/apis/errors'
|
|
20
|
-
|
|
21
|
-
module Google
|
|
22
|
-
module Apis
|
|
23
|
-
module SqladminV1beta4
|
|
24
|
-
|
|
25
|
-
# An entry for an Access Control list.
|
|
26
|
-
class AclEntry
|
|
27
|
-
include Google::Apis::Core::Hashable
|
|
28
|
-
|
|
29
|
-
# The time when this access control entry expires in RFC 3339 format, for
|
|
30
|
-
# example 2012-11-15T16:19:00.094Z.
|
|
31
|
-
# Corresponds to the JSON property `expirationTime`
|
|
32
|
-
# @return [DateTime]
|
|
33
|
-
attr_accessor :expiration_time
|
|
34
|
-
|
|
35
|
-
# This is always sql#aclEntry.
|
|
36
|
-
# Corresponds to the JSON property `kind`
|
|
37
|
-
# @return [String]
|
|
38
|
-
attr_accessor :kind
|
|
39
|
-
|
|
40
|
-
# An optional label to identify this entry.
|
|
41
|
-
# Corresponds to the JSON property `name`
|
|
42
|
-
# @return [String]
|
|
43
|
-
attr_accessor :name
|
|
44
|
-
|
|
45
|
-
# The whitelisted value for the access control list.
|
|
46
|
-
# Corresponds to the JSON property `value`
|
|
47
|
-
# @return [String]
|
|
48
|
-
attr_accessor :value
|
|
49
|
-
|
|
50
|
-
def initialize(**args)
|
|
51
|
-
update!(**args)
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
# Update properties of this object
|
|
55
|
-
def update!(**args)
|
|
56
|
-
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
|
57
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
58
|
-
@name = args[:name] if args.key?(:name)
|
|
59
|
-
@value = args[:value] if args.key?(:value)
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
# An Admin API warning message.
|
|
64
|
-
class ApiWarning
|
|
65
|
-
include Google::Apis::Core::Hashable
|
|
66
|
-
|
|
67
|
-
# Code to uniquely identify the warning type.
|
|
68
|
-
# Corresponds to the JSON property `code`
|
|
69
|
-
# @return [String]
|
|
70
|
-
attr_accessor :code
|
|
71
|
-
|
|
72
|
-
# The warning message.
|
|
73
|
-
# Corresponds to the JSON property `message`
|
|
74
|
-
# @return [String]
|
|
75
|
-
attr_accessor :message
|
|
76
|
-
|
|
77
|
-
def initialize(**args)
|
|
78
|
-
update!(**args)
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
# Update properties of this object
|
|
82
|
-
def update!(**args)
|
|
83
|
-
@code = args[:code] if args.key?(:code)
|
|
84
|
-
@message = args[:message] if args.key?(:message)
|
|
85
|
-
end
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
# Database instance backup configuration.
|
|
89
|
-
class BackupConfiguration
|
|
90
|
-
include Google::Apis::Core::Hashable
|
|
91
|
-
|
|
92
|
-
# Whether binary log is enabled. If backup configuration is disabled, binary log
|
|
93
|
-
# must be disabled as well.
|
|
94
|
-
# Corresponds to the JSON property `binaryLogEnabled`
|
|
95
|
-
# @return [Boolean]
|
|
96
|
-
attr_accessor :binary_log_enabled
|
|
97
|
-
alias_method :binary_log_enabled?, :binary_log_enabled
|
|
98
|
-
|
|
99
|
-
# Whether this configuration is enabled.
|
|
100
|
-
# Corresponds to the JSON property `enabled`
|
|
101
|
-
# @return [Boolean]
|
|
102
|
-
attr_accessor :enabled
|
|
103
|
-
alias_method :enabled?, :enabled
|
|
104
|
-
|
|
105
|
-
# This is always sql#backupConfiguration.
|
|
106
|
-
# Corresponds to the JSON property `kind`
|
|
107
|
-
# @return [String]
|
|
108
|
-
attr_accessor :kind
|
|
109
|
-
|
|
110
|
-
# The location of the backup.
|
|
111
|
-
# Corresponds to the JSON property `location`
|
|
112
|
-
# @return [String]
|
|
113
|
-
attr_accessor :location
|
|
114
|
-
|
|
115
|
-
# Reserved for future use.
|
|
116
|
-
# Corresponds to the JSON property `replicationLogArchivingEnabled`
|
|
117
|
-
# @return [Boolean]
|
|
118
|
-
attr_accessor :replication_log_archiving_enabled
|
|
119
|
-
alias_method :replication_log_archiving_enabled?, :replication_log_archiving_enabled
|
|
120
|
-
|
|
121
|
-
# Start time for the daily backup configuration in UTC timezone in the 24 hour
|
|
122
|
-
# format - HH:MM.
|
|
123
|
-
# Corresponds to the JSON property `startTime`
|
|
124
|
-
# @return [String]
|
|
125
|
-
attr_accessor :start_time
|
|
126
|
-
|
|
127
|
-
def initialize(**args)
|
|
128
|
-
update!(**args)
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
# Update properties of this object
|
|
132
|
-
def update!(**args)
|
|
133
|
-
@binary_log_enabled = args[:binary_log_enabled] if args.key?(:binary_log_enabled)
|
|
134
|
-
@enabled = args[:enabled] if args.key?(:enabled)
|
|
135
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
136
|
-
@location = args[:location] if args.key?(:location)
|
|
137
|
-
@replication_log_archiving_enabled = args[:replication_log_archiving_enabled] if args.key?(:replication_log_archiving_enabled)
|
|
138
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
|
139
|
-
end
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
# A BackupRun resource.
|
|
143
|
-
class BackupRun
|
|
144
|
-
include Google::Apis::Core::Hashable
|
|
145
|
-
|
|
146
|
-
# The description of this run, only applicable to on-demand backups.
|
|
147
|
-
# Corresponds to the JSON property `description`
|
|
148
|
-
# @return [String]
|
|
149
|
-
attr_accessor :description
|
|
150
|
-
|
|
151
|
-
# Disk encryption configuration.
|
|
152
|
-
# Corresponds to the JSON property `diskEncryptionConfiguration`
|
|
153
|
-
# @return [Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration]
|
|
154
|
-
attr_accessor :disk_encryption_configuration
|
|
155
|
-
|
|
156
|
-
# Disk encryption status.
|
|
157
|
-
# Corresponds to the JSON property `diskEncryptionStatus`
|
|
158
|
-
# @return [Google::Apis::SqladminV1beta4::DiskEncryptionStatus]
|
|
159
|
-
attr_accessor :disk_encryption_status
|
|
160
|
-
|
|
161
|
-
# The time the backup operation completed in UTC timezone in RFC 3339 format,
|
|
162
|
-
# for example 2012-11-15T16:19:00.094Z.
|
|
163
|
-
# Corresponds to the JSON property `endTime`
|
|
164
|
-
# @return [DateTime]
|
|
165
|
-
attr_accessor :end_time
|
|
166
|
-
|
|
167
|
-
# The time the run was enqueued in UTC timezone in RFC 3339 format, for example
|
|
168
|
-
# 2012-11-15T16:19:00.094Z.
|
|
169
|
-
# Corresponds to the JSON property `enqueuedTime`
|
|
170
|
-
# @return [DateTime]
|
|
171
|
-
attr_accessor :enqueued_time
|
|
172
|
-
|
|
173
|
-
# Database instance operation error.
|
|
174
|
-
# Corresponds to the JSON property `error`
|
|
175
|
-
# @return [Google::Apis::SqladminV1beta4::OperationError]
|
|
176
|
-
attr_accessor :error
|
|
177
|
-
|
|
178
|
-
# The identifier for this backup run. Unique only for a specific Cloud SQL
|
|
179
|
-
# instance.
|
|
180
|
-
# Corresponds to the JSON property `id`
|
|
181
|
-
# @return [Fixnum]
|
|
182
|
-
attr_accessor :id
|
|
183
|
-
|
|
184
|
-
# Name of the database instance.
|
|
185
|
-
# Corresponds to the JSON property `instance`
|
|
186
|
-
# @return [String]
|
|
187
|
-
attr_accessor :instance
|
|
188
|
-
|
|
189
|
-
# This is always sql#backupRun.
|
|
190
|
-
# Corresponds to the JSON property `kind`
|
|
191
|
-
# @return [String]
|
|
192
|
-
attr_accessor :kind
|
|
193
|
-
|
|
194
|
-
# The location of the backup.
|
|
195
|
-
# Corresponds to the JSON property `location`
|
|
196
|
-
# @return [String]
|
|
197
|
-
attr_accessor :location
|
|
198
|
-
|
|
199
|
-
# The URI of this resource.
|
|
200
|
-
# Corresponds to the JSON property `selfLink`
|
|
201
|
-
# @return [String]
|
|
202
|
-
attr_accessor :self_link
|
|
203
|
-
|
|
204
|
-
# The time the backup operation actually started in UTC timezone in RFC 3339
|
|
205
|
-
# format, for example 2012-11-15T16:19:00.094Z.
|
|
206
|
-
# Corresponds to the JSON property `startTime`
|
|
207
|
-
# @return [DateTime]
|
|
208
|
-
attr_accessor :start_time
|
|
209
|
-
|
|
210
|
-
# The status of this run.
|
|
211
|
-
# Corresponds to the JSON property `status`
|
|
212
|
-
# @return [String]
|
|
213
|
-
attr_accessor :status
|
|
214
|
-
|
|
215
|
-
# The type of this run; can be either "AUTOMATED" or "ON_DEMAND".
|
|
216
|
-
# Corresponds to the JSON property `type`
|
|
217
|
-
# @return [String]
|
|
218
|
-
attr_accessor :type
|
|
219
|
-
|
|
220
|
-
# The start time of the backup window during which this the backup was attempted
|
|
221
|
-
# in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
|
|
222
|
-
# Corresponds to the JSON property `windowStartTime`
|
|
223
|
-
# @return [DateTime]
|
|
224
|
-
attr_accessor :window_start_time
|
|
225
|
-
|
|
226
|
-
def initialize(**args)
|
|
227
|
-
update!(**args)
|
|
228
|
-
end
|
|
229
|
-
|
|
230
|
-
# Update properties of this object
|
|
231
|
-
def update!(**args)
|
|
232
|
-
@description = args[:description] if args.key?(:description)
|
|
233
|
-
@disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration)
|
|
234
|
-
@disk_encryption_status = args[:disk_encryption_status] if args.key?(:disk_encryption_status)
|
|
235
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
|
236
|
-
@enqueued_time = args[:enqueued_time] if args.key?(:enqueued_time)
|
|
237
|
-
@error = args[:error] if args.key?(:error)
|
|
238
|
-
@id = args[:id] if args.key?(:id)
|
|
239
|
-
@instance = args[:instance] if args.key?(:instance)
|
|
240
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
241
|
-
@location = args[:location] if args.key?(:location)
|
|
242
|
-
@self_link = args[:self_link] if args.key?(:self_link)
|
|
243
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
|
244
|
-
@status = args[:status] if args.key?(:status)
|
|
245
|
-
@type = args[:type] if args.key?(:type)
|
|
246
|
-
@window_start_time = args[:window_start_time] if args.key?(:window_start_time)
|
|
247
|
-
end
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
# Backup run list results.
|
|
251
|
-
class ListBackupRunsResponse
|
|
252
|
-
include Google::Apis::Core::Hashable
|
|
253
|
-
|
|
254
|
-
# A list of backup runs in reverse chronological order of the enqueued time.
|
|
255
|
-
# Corresponds to the JSON property `items`
|
|
256
|
-
# @return [Array<Google::Apis::SqladminV1beta4::BackupRun>]
|
|
257
|
-
attr_accessor :items
|
|
258
|
-
|
|
259
|
-
# This is always sql#backupRunsList.
|
|
260
|
-
# Corresponds to the JSON property `kind`
|
|
261
|
-
# @return [String]
|
|
262
|
-
attr_accessor :kind
|
|
263
|
-
|
|
264
|
-
# The continuation token, used to page through large result sets. Provide this
|
|
265
|
-
# value in a subsequent request to return the next page of results.
|
|
266
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
267
|
-
# @return [String]
|
|
268
|
-
attr_accessor :next_page_token
|
|
269
|
-
|
|
270
|
-
def initialize(**args)
|
|
271
|
-
update!(**args)
|
|
272
|
-
end
|
|
273
|
-
|
|
274
|
-
# Update properties of this object
|
|
275
|
-
def update!(**args)
|
|
276
|
-
@items = args[:items] if args.key?(:items)
|
|
277
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
278
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
279
|
-
end
|
|
280
|
-
end
|
|
281
|
-
|
|
282
|
-
# Binary log coordinates.
|
|
283
|
-
class BinLogCoordinates
|
|
284
|
-
include Google::Apis::Core::Hashable
|
|
285
|
-
|
|
286
|
-
# Name of the binary log file for a Cloud SQL instance.
|
|
287
|
-
# Corresponds to the JSON property `binLogFileName`
|
|
288
|
-
# @return [String]
|
|
289
|
-
attr_accessor :bin_log_file_name
|
|
290
|
-
|
|
291
|
-
# Position (offset) within the binary log file.
|
|
292
|
-
# Corresponds to the JSON property `binLogPosition`
|
|
293
|
-
# @return [Fixnum]
|
|
294
|
-
attr_accessor :bin_log_position
|
|
295
|
-
|
|
296
|
-
# This is always sql#binLogCoordinates.
|
|
297
|
-
# Corresponds to the JSON property `kind`
|
|
298
|
-
# @return [String]
|
|
299
|
-
attr_accessor :kind
|
|
300
|
-
|
|
301
|
-
def initialize(**args)
|
|
302
|
-
update!(**args)
|
|
303
|
-
end
|
|
304
|
-
|
|
305
|
-
# Update properties of this object
|
|
306
|
-
def update!(**args)
|
|
307
|
-
@bin_log_file_name = args[:bin_log_file_name] if args.key?(:bin_log_file_name)
|
|
308
|
-
@bin_log_position = args[:bin_log_position] if args.key?(:bin_log_position)
|
|
309
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
310
|
-
end
|
|
311
|
-
end
|
|
312
|
-
|
|
313
|
-
# Database instance clone context.
|
|
314
|
-
class CloneContext
|
|
315
|
-
include Google::Apis::Core::Hashable
|
|
316
|
-
|
|
317
|
-
# Binary log coordinates.
|
|
318
|
-
# Corresponds to the JSON property `binLogCoordinates`
|
|
319
|
-
# @return [Google::Apis::SqladminV1beta4::BinLogCoordinates]
|
|
320
|
-
attr_accessor :bin_log_coordinates
|
|
321
|
-
|
|
322
|
-
# Name of the Cloud SQL instance to be created as a clone.
|
|
323
|
-
# Corresponds to the JSON property `destinationInstanceName`
|
|
324
|
-
# @return [String]
|
|
325
|
-
attr_accessor :destination_instance_name
|
|
326
|
-
|
|
327
|
-
# This is always sql#cloneContext.
|
|
328
|
-
# Corresponds to the JSON property `kind`
|
|
329
|
-
# @return [String]
|
|
330
|
-
attr_accessor :kind
|
|
331
|
-
|
|
332
|
-
# Reserved for future use.
|
|
333
|
-
# Corresponds to the JSON property `pitrTimestampMs`
|
|
334
|
-
# @return [Fixnum]
|
|
335
|
-
attr_accessor :pitr_timestamp_ms
|
|
336
|
-
|
|
337
|
-
def initialize(**args)
|
|
338
|
-
update!(**args)
|
|
339
|
-
end
|
|
340
|
-
|
|
341
|
-
# Update properties of this object
|
|
342
|
-
def update!(**args)
|
|
343
|
-
@bin_log_coordinates = args[:bin_log_coordinates] if args.key?(:bin_log_coordinates)
|
|
344
|
-
@destination_instance_name = args[:destination_instance_name] if args.key?(:destination_instance_name)
|
|
345
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
346
|
-
@pitr_timestamp_ms = args[:pitr_timestamp_ms] if args.key?(:pitr_timestamp_ms)
|
|
347
|
-
end
|
|
348
|
-
end
|
|
349
|
-
|
|
350
|
-
# Represents a SQL database on the Cloud SQL instance.
|
|
351
|
-
class Database
|
|
352
|
-
include Google::Apis::Core::Hashable
|
|
353
|
-
|
|
354
|
-
# The MySQL charset value.
|
|
355
|
-
# Corresponds to the JSON property `charset`
|
|
356
|
-
# @return [String]
|
|
357
|
-
attr_accessor :charset
|
|
358
|
-
|
|
359
|
-
# The MySQL collation value.
|
|
360
|
-
# Corresponds to the JSON property `collation`
|
|
361
|
-
# @return [String]
|
|
362
|
-
attr_accessor :collation
|
|
363
|
-
|
|
364
|
-
# This field is deprecated and will be removed from a future version of the API.
|
|
365
|
-
# Corresponds to the JSON property `etag`
|
|
366
|
-
# @return [String]
|
|
367
|
-
attr_accessor :etag
|
|
368
|
-
|
|
369
|
-
# The name of the Cloud SQL instance. This does not include the project ID.
|
|
370
|
-
# Corresponds to the JSON property `instance`
|
|
371
|
-
# @return [String]
|
|
372
|
-
attr_accessor :instance
|
|
373
|
-
|
|
374
|
-
# This is always sql#database.
|
|
375
|
-
# Corresponds to the JSON property `kind`
|
|
376
|
-
# @return [String]
|
|
377
|
-
attr_accessor :kind
|
|
378
|
-
|
|
379
|
-
# The name of the database in the Cloud SQL instance. This does not include the
|
|
380
|
-
# project ID or instance name.
|
|
381
|
-
# Corresponds to the JSON property `name`
|
|
382
|
-
# @return [String]
|
|
383
|
-
attr_accessor :name
|
|
384
|
-
|
|
385
|
-
# The project ID of the project containing the Cloud SQL database. The Google
|
|
386
|
-
# apps domain is prefixed if applicable.
|
|
387
|
-
# Corresponds to the JSON property `project`
|
|
388
|
-
# @return [String]
|
|
389
|
-
attr_accessor :project
|
|
390
|
-
|
|
391
|
-
# The URI of this resource.
|
|
392
|
-
# Corresponds to the JSON property `selfLink`
|
|
393
|
-
# @return [String]
|
|
394
|
-
attr_accessor :self_link
|
|
395
|
-
|
|
396
|
-
def initialize(**args)
|
|
397
|
-
update!(**args)
|
|
398
|
-
end
|
|
399
|
-
|
|
400
|
-
# Update properties of this object
|
|
401
|
-
def update!(**args)
|
|
402
|
-
@charset = args[:charset] if args.key?(:charset)
|
|
403
|
-
@collation = args[:collation] if args.key?(:collation)
|
|
404
|
-
@etag = args[:etag] if args.key?(:etag)
|
|
405
|
-
@instance = args[:instance] if args.key?(:instance)
|
|
406
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
407
|
-
@name = args[:name] if args.key?(:name)
|
|
408
|
-
@project = args[:project] if args.key?(:project)
|
|
409
|
-
@self_link = args[:self_link] if args.key?(:self_link)
|
|
410
|
-
end
|
|
411
|
-
end
|
|
412
|
-
|
|
413
|
-
# Database flags for Cloud SQL instances.
|
|
414
|
-
class DatabaseFlags
|
|
415
|
-
include Google::Apis::Core::Hashable
|
|
416
|
-
|
|
417
|
-
# The name of the flag. These flags are passed at instance startup, so include
|
|
418
|
-
# both server options and system variables for MySQL. Flags should be specified
|
|
419
|
-
# with underscores, not hyphens. For more information, see Configuring Database
|
|
420
|
-
# Flags in the Cloud SQL documentation.
|
|
421
|
-
# Corresponds to the JSON property `name`
|
|
422
|
-
# @return [String]
|
|
423
|
-
attr_accessor :name
|
|
424
|
-
|
|
425
|
-
# The value of the flag. Booleans should be set to on for true and off for false.
|
|
426
|
-
# This field must be omitted if the flag doesn't take a value.
|
|
427
|
-
# Corresponds to the JSON property `value`
|
|
428
|
-
# @return [String]
|
|
429
|
-
attr_accessor :value
|
|
430
|
-
|
|
431
|
-
def initialize(**args)
|
|
432
|
-
update!(**args)
|
|
433
|
-
end
|
|
434
|
-
|
|
435
|
-
# Update properties of this object
|
|
436
|
-
def update!(**args)
|
|
437
|
-
@name = args[:name] if args.key?(:name)
|
|
438
|
-
@value = args[:value] if args.key?(:value)
|
|
439
|
-
end
|
|
440
|
-
end
|
|
441
|
-
|
|
442
|
-
# A Cloud SQL instance resource.
|
|
443
|
-
class DatabaseInstance
|
|
444
|
-
include Google::Apis::Core::Hashable
|
|
445
|
-
|
|
446
|
-
# FIRST_GEN: First Generation instance. MySQL only.
|
|
447
|
-
# SECOND_GEN: Second Generation instance or PostgreSQL instance.
|
|
448
|
-
# EXTERNAL: A database server that is not managed by Google.
|
|
449
|
-
# This property is read-only; use the tier property in the settings object to
|
|
450
|
-
# determine the database type and Second or First Generation.
|
|
451
|
-
# Corresponds to the JSON property `backendType`
|
|
452
|
-
# @return [String]
|
|
453
|
-
attr_accessor :backend_type
|
|
454
|
-
|
|
455
|
-
# Connection name of the Cloud SQL instance used in connection strings.
|
|
456
|
-
# Corresponds to the JSON property `connectionName`
|
|
457
|
-
# @return [String]
|
|
458
|
-
attr_accessor :connection_name
|
|
459
|
-
|
|
460
|
-
# The current disk usage of the instance in bytes. This property has been
|
|
461
|
-
# deprecated. Users should use the "cloudsql.googleapis.com/database/disk/
|
|
462
|
-
# bytes_used" metric in Cloud Monitoring API instead. Please see this
|
|
463
|
-
# announcement for details.
|
|
464
|
-
# Corresponds to the JSON property `currentDiskSize`
|
|
465
|
-
# @return [Fixnum]
|
|
466
|
-
attr_accessor :current_disk_size
|
|
467
|
-
|
|
468
|
-
# The database engine type and version. The databaseVersion field can not be
|
|
469
|
-
# changed after instance creation. MySQL Second Generation instances: MYSQL_5_7 (
|
|
470
|
-
# default) or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6 (default) or
|
|
471
|
-
# POSTGRES_11 Beta. MySQL First Generation instances: MYSQL_5_6 (default) or
|
|
472
|
-
# MYSQL_5_5
|
|
473
|
-
# Corresponds to the JSON property `databaseVersion`
|
|
474
|
-
# @return [String]
|
|
475
|
-
attr_accessor :database_version
|
|
476
|
-
|
|
477
|
-
# Disk encryption configuration.
|
|
478
|
-
# Corresponds to the JSON property `diskEncryptionConfiguration`
|
|
479
|
-
# @return [Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration]
|
|
480
|
-
attr_accessor :disk_encryption_configuration
|
|
481
|
-
|
|
482
|
-
# Disk encryption status.
|
|
483
|
-
# Corresponds to the JSON property `diskEncryptionStatus`
|
|
484
|
-
# @return [Google::Apis::SqladminV1beta4::DiskEncryptionStatus]
|
|
485
|
-
attr_accessor :disk_encryption_status
|
|
486
|
-
|
|
487
|
-
# This field is deprecated and will be removed from a future version of the API.
|
|
488
|
-
# Use the settings.settingsVersion field instead.
|
|
489
|
-
# Corresponds to the JSON property `etag`
|
|
490
|
-
# @return [String]
|
|
491
|
-
attr_accessor :etag
|
|
492
|
-
|
|
493
|
-
# The name and status of the failover replica. This property is applicable only
|
|
494
|
-
# to Second Generation instances.
|
|
495
|
-
# Corresponds to the JSON property `failoverReplica`
|
|
496
|
-
# @return [Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica]
|
|
497
|
-
attr_accessor :failover_replica
|
|
498
|
-
|
|
499
|
-
# The Compute Engine zone that the instance is currently serving from. This
|
|
500
|
-
# value could be different from the zone that was specified when the instance
|
|
501
|
-
# was created if the instance has failed over to its secondary zone.
|
|
502
|
-
# Corresponds to the JSON property `gceZone`
|
|
503
|
-
# @return [String]
|
|
504
|
-
attr_accessor :gce_zone
|
|
505
|
-
|
|
506
|
-
# The instance type. This can be one of the following.
|
|
507
|
-
# CLOUD_SQL_INSTANCE: A Cloud SQL instance that is not replicating from a master.
|
|
508
|
-
# ON_PREMISES_INSTANCE: An instance running on the customer's premises.
|
|
509
|
-
# READ_REPLICA_INSTANCE: A Cloud SQL instance configured as a read-replica.
|
|
510
|
-
# Corresponds to the JSON property `instanceType`
|
|
511
|
-
# @return [String]
|
|
512
|
-
attr_accessor :instance_type
|
|
513
|
-
|
|
514
|
-
# The assigned IP addresses for the instance.
|
|
515
|
-
# Corresponds to the JSON property `ipAddresses`
|
|
516
|
-
# @return [Array<Google::Apis::SqladminV1beta4::IpMapping>]
|
|
517
|
-
attr_accessor :ip_addresses
|
|
518
|
-
|
|
519
|
-
# The IPv6 address assigned to the instance. This property is applicable only to
|
|
520
|
-
# First Generation instances.
|
|
521
|
-
# Corresponds to the JSON property `ipv6Address`
|
|
522
|
-
# @return [String]
|
|
523
|
-
attr_accessor :ipv6_address
|
|
524
|
-
|
|
525
|
-
# This is always sql#instance.
|
|
526
|
-
# Corresponds to the JSON property `kind`
|
|
527
|
-
# @return [String]
|
|
528
|
-
attr_accessor :kind
|
|
529
|
-
|
|
530
|
-
# The name of the instance which will act as master in the replication setup.
|
|
531
|
-
# Corresponds to the JSON property `masterInstanceName`
|
|
532
|
-
# @return [String]
|
|
533
|
-
attr_accessor :master_instance_name
|
|
534
|
-
|
|
535
|
-
# The maximum disk size of the instance in bytes.
|
|
536
|
-
# Corresponds to the JSON property `maxDiskSize`
|
|
537
|
-
# @return [Fixnum]
|
|
538
|
-
attr_accessor :max_disk_size
|
|
539
|
-
|
|
540
|
-
# Name of the Cloud SQL instance. This does not include the project ID.
|
|
541
|
-
# Corresponds to the JSON property `name`
|
|
542
|
-
# @return [String]
|
|
543
|
-
attr_accessor :name
|
|
544
|
-
|
|
545
|
-
# On-premises instance configuration.
|
|
546
|
-
# Corresponds to the JSON property `onPremisesConfiguration`
|
|
547
|
-
# @return [Google::Apis::SqladminV1beta4::OnPremisesConfiguration]
|
|
548
|
-
attr_accessor :on_premises_configuration
|
|
549
|
-
|
|
550
|
-
# The project ID of the project containing the Cloud SQL instance. The Google
|
|
551
|
-
# apps domain is prefixed if applicable.
|
|
552
|
-
# Corresponds to the JSON property `project`
|
|
553
|
-
# @return [String]
|
|
554
|
-
attr_accessor :project
|
|
555
|
-
|
|
556
|
-
# The geographical region. Can be us-central (FIRST_GEN instances only), us-
|
|
557
|
-
# central1 (SECOND_GEN instances only), asia-east1 or europe-west1. Defaults to
|
|
558
|
-
# us-central or us-central1 depending on the instance type (First Generation or
|
|
559
|
-
# Second Generation). The region can not be changed after instance creation.
|
|
560
|
-
# Corresponds to the JSON property `region`
|
|
561
|
-
# @return [String]
|
|
562
|
-
attr_accessor :region
|
|
563
|
-
|
|
564
|
-
# Read-replica configuration for connecting to the master.
|
|
565
|
-
# Corresponds to the JSON property `replicaConfiguration`
|
|
566
|
-
# @return [Google::Apis::SqladminV1beta4::ReplicaConfiguration]
|
|
567
|
-
attr_accessor :replica_configuration
|
|
568
|
-
|
|
569
|
-
# The replicas of the instance.
|
|
570
|
-
# Corresponds to the JSON property `replicaNames`
|
|
571
|
-
# @return [Array<String>]
|
|
572
|
-
attr_accessor :replica_names
|
|
573
|
-
|
|
574
|
-
# Initial root password. Use only on creation.
|
|
575
|
-
# Corresponds to the JSON property `rootPassword`
|
|
576
|
-
# @return [String]
|
|
577
|
-
attr_accessor :root_password
|
|
578
|
-
|
|
579
|
-
# The URI of this resource.
|
|
580
|
-
# Corresponds to the JSON property `selfLink`
|
|
581
|
-
# @return [String]
|
|
582
|
-
attr_accessor :self_link
|
|
583
|
-
|
|
584
|
-
# SslCerts Resource
|
|
585
|
-
# Corresponds to the JSON property `serverCaCert`
|
|
586
|
-
# @return [Google::Apis::SqladminV1beta4::SslCert]
|
|
587
|
-
attr_accessor :server_ca_cert
|
|
588
|
-
|
|
589
|
-
# The service account email address assigned to the instance. This property is
|
|
590
|
-
# applicable only to Second Generation instances.
|
|
591
|
-
# Corresponds to the JSON property `serviceAccountEmailAddress`
|
|
592
|
-
# @return [String]
|
|
593
|
-
attr_accessor :service_account_email_address
|
|
594
|
-
|
|
595
|
-
# Database instance settings.
|
|
596
|
-
# Corresponds to the JSON property `settings`
|
|
597
|
-
# @return [Google::Apis::SqladminV1beta4::Settings]
|
|
598
|
-
attr_accessor :settings
|
|
599
|
-
|
|
600
|
-
# The current serving state of the Cloud SQL instance. This can be one of the
|
|
601
|
-
# following.
|
|
602
|
-
# RUNNABLE: The instance is running, or is ready to run when accessed.
|
|
603
|
-
# SUSPENDED: The instance is not available, for example due to problems with
|
|
604
|
-
# billing.
|
|
605
|
-
# PENDING_CREATE: The instance is being created.
|
|
606
|
-
# MAINTENANCE: The instance is down for maintenance.
|
|
607
|
-
# FAILED: The instance creation failed.
|
|
608
|
-
# UNKNOWN_STATE: The state of the instance is unknown.
|
|
609
|
-
# Corresponds to the JSON property `state`
|
|
610
|
-
# @return [String]
|
|
611
|
-
attr_accessor :state
|
|
612
|
-
|
|
613
|
-
# If the instance state is SUSPENDED, the reason for the suspension.
|
|
614
|
-
# Corresponds to the JSON property `suspensionReason`
|
|
615
|
-
# @return [Array<String>]
|
|
616
|
-
attr_accessor :suspension_reason
|
|
617
|
-
|
|
618
|
-
def initialize(**args)
|
|
619
|
-
update!(**args)
|
|
620
|
-
end
|
|
621
|
-
|
|
622
|
-
# Update properties of this object
|
|
623
|
-
def update!(**args)
|
|
624
|
-
@backend_type = args[:backend_type] if args.key?(:backend_type)
|
|
625
|
-
@connection_name = args[:connection_name] if args.key?(:connection_name)
|
|
626
|
-
@current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size)
|
|
627
|
-
@database_version = args[:database_version] if args.key?(:database_version)
|
|
628
|
-
@disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration)
|
|
629
|
-
@disk_encryption_status = args[:disk_encryption_status] if args.key?(:disk_encryption_status)
|
|
630
|
-
@etag = args[:etag] if args.key?(:etag)
|
|
631
|
-
@failover_replica = args[:failover_replica] if args.key?(:failover_replica)
|
|
632
|
-
@gce_zone = args[:gce_zone] if args.key?(:gce_zone)
|
|
633
|
-
@instance_type = args[:instance_type] if args.key?(:instance_type)
|
|
634
|
-
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
|
|
635
|
-
@ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address)
|
|
636
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
637
|
-
@master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name)
|
|
638
|
-
@max_disk_size = args[:max_disk_size] if args.key?(:max_disk_size)
|
|
639
|
-
@name = args[:name] if args.key?(:name)
|
|
640
|
-
@on_premises_configuration = args[:on_premises_configuration] if args.key?(:on_premises_configuration)
|
|
641
|
-
@project = args[:project] if args.key?(:project)
|
|
642
|
-
@region = args[:region] if args.key?(:region)
|
|
643
|
-
@replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration)
|
|
644
|
-
@replica_names = args[:replica_names] if args.key?(:replica_names)
|
|
645
|
-
@root_password = args[:root_password] if args.key?(:root_password)
|
|
646
|
-
@self_link = args[:self_link] if args.key?(:self_link)
|
|
647
|
-
@server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert)
|
|
648
|
-
@service_account_email_address = args[:service_account_email_address] if args.key?(:service_account_email_address)
|
|
649
|
-
@settings = args[:settings] if args.key?(:settings)
|
|
650
|
-
@state = args[:state] if args.key?(:state)
|
|
651
|
-
@suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
|
|
652
|
-
end
|
|
653
|
-
|
|
654
|
-
# The name and status of the failover replica. This property is applicable only
|
|
655
|
-
# to Second Generation instances.
|
|
656
|
-
class FailoverReplica
|
|
657
|
-
include Google::Apis::Core::Hashable
|
|
658
|
-
|
|
659
|
-
# The availability status of the failover replica. A false status indicates that
|
|
660
|
-
# the failover replica is out of sync. The master can only failover to the
|
|
661
|
-
# falover replica when the status is true.
|
|
662
|
-
# Corresponds to the JSON property `available`
|
|
663
|
-
# @return [Boolean]
|
|
664
|
-
attr_accessor :available
|
|
665
|
-
alias_method :available?, :available
|
|
666
|
-
|
|
667
|
-
# The name of the failover replica. If specified at instance creation, a
|
|
668
|
-
# failover replica is created for the instance. The name doesn't include the
|
|
669
|
-
# project ID. This property is applicable only to Second Generation instances.
|
|
670
|
-
# Corresponds to the JSON property `name`
|
|
671
|
-
# @return [String]
|
|
672
|
-
attr_accessor :name
|
|
673
|
-
|
|
674
|
-
def initialize(**args)
|
|
675
|
-
update!(**args)
|
|
676
|
-
end
|
|
677
|
-
|
|
678
|
-
# Update properties of this object
|
|
679
|
-
def update!(**args)
|
|
680
|
-
@available = args[:available] if args.key?(:available)
|
|
681
|
-
@name = args[:name] if args.key?(:name)
|
|
682
|
-
end
|
|
683
|
-
end
|
|
684
|
-
end
|
|
685
|
-
|
|
686
|
-
# Database list response.
|
|
687
|
-
class ListDatabasesResponse
|
|
688
|
-
include Google::Apis::Core::Hashable
|
|
689
|
-
|
|
690
|
-
# List of database resources in the instance.
|
|
691
|
-
# Corresponds to the JSON property `items`
|
|
692
|
-
# @return [Array<Google::Apis::SqladminV1beta4::Database>]
|
|
693
|
-
attr_accessor :items
|
|
694
|
-
|
|
695
|
-
# This is always sql#databasesList.
|
|
696
|
-
# Corresponds to the JSON property `kind`
|
|
697
|
-
# @return [String]
|
|
698
|
-
attr_accessor :kind
|
|
699
|
-
|
|
700
|
-
def initialize(**args)
|
|
701
|
-
update!(**args)
|
|
702
|
-
end
|
|
703
|
-
|
|
704
|
-
# Update properties of this object
|
|
705
|
-
def update!(**args)
|
|
706
|
-
@items = args[:items] if args.key?(:items)
|
|
707
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
708
|
-
end
|
|
709
|
-
end
|
|
710
|
-
|
|
711
|
-
# Read-replica configuration for connecting to the on-premises master.
|
|
712
|
-
class DemoteMasterConfiguration
|
|
713
|
-
include Google::Apis::Core::Hashable
|
|
714
|
-
|
|
715
|
-
# This is always sql#demoteMasterConfiguration.
|
|
716
|
-
# Corresponds to the JSON property `kind`
|
|
717
|
-
# @return [String]
|
|
718
|
-
attr_accessor :kind
|
|
719
|
-
|
|
720
|
-
# Read-replica configuration specific to MySQL databases.
|
|
721
|
-
# Corresponds to the JSON property `mysqlReplicaConfiguration`
|
|
722
|
-
# @return [Google::Apis::SqladminV1beta4::DemoteMasterMySqlReplicaConfiguration]
|
|
723
|
-
attr_accessor :mysql_replica_configuration
|
|
724
|
-
|
|
725
|
-
def initialize(**args)
|
|
726
|
-
update!(**args)
|
|
727
|
-
end
|
|
728
|
-
|
|
729
|
-
# Update properties of this object
|
|
730
|
-
def update!(**args)
|
|
731
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
732
|
-
@mysql_replica_configuration = args[:mysql_replica_configuration] if args.key?(:mysql_replica_configuration)
|
|
733
|
-
end
|
|
734
|
-
end
|
|
735
|
-
|
|
736
|
-
# Database instance demote master context.
|
|
737
|
-
class DemoteMasterContext
|
|
738
|
-
include Google::Apis::Core::Hashable
|
|
739
|
-
|
|
740
|
-
# This is always sql#demoteMasterContext.
|
|
741
|
-
# Corresponds to the JSON property `kind`
|
|
742
|
-
# @return [String]
|
|
743
|
-
attr_accessor :kind
|
|
744
|
-
|
|
745
|
-
# The name of the instance which will act as on-premises master in the
|
|
746
|
-
# replication setup.
|
|
747
|
-
# Corresponds to the JSON property `masterInstanceName`
|
|
748
|
-
# @return [String]
|
|
749
|
-
attr_accessor :master_instance_name
|
|
750
|
-
|
|
751
|
-
# Read-replica configuration for connecting to the on-premises master.
|
|
752
|
-
# Corresponds to the JSON property `replicaConfiguration`
|
|
753
|
-
# @return [Google::Apis::SqladminV1beta4::DemoteMasterConfiguration]
|
|
754
|
-
attr_accessor :replica_configuration
|
|
755
|
-
|
|
756
|
-
# Verify GTID consistency for demote operation. Default value: True. Second
|
|
757
|
-
# Generation instances only. Setting this flag to false enables you to bypass
|
|
758
|
-
# GTID consistency check between on-premises master and Cloud SQL instance
|
|
759
|
-
# during the demotion operation but also exposes you to the risk of future
|
|
760
|
-
# replication failures. Change the value only if you know the reason for the
|
|
761
|
-
# GTID divergence and are confident that doing so will not cause any replication
|
|
762
|
-
# issues.
|
|
763
|
-
# Corresponds to the JSON property `verifyGtidConsistency`
|
|
764
|
-
# @return [Boolean]
|
|
765
|
-
attr_accessor :verify_gtid_consistency
|
|
766
|
-
alias_method :verify_gtid_consistency?, :verify_gtid_consistency
|
|
767
|
-
|
|
768
|
-
def initialize(**args)
|
|
769
|
-
update!(**args)
|
|
770
|
-
end
|
|
771
|
-
|
|
772
|
-
# Update properties of this object
|
|
773
|
-
def update!(**args)
|
|
774
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
775
|
-
@master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name)
|
|
776
|
-
@replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration)
|
|
777
|
-
@verify_gtid_consistency = args[:verify_gtid_consistency] if args.key?(:verify_gtid_consistency)
|
|
778
|
-
end
|
|
779
|
-
end
|
|
780
|
-
|
|
781
|
-
# Read-replica configuration specific to MySQL databases.
|
|
782
|
-
class DemoteMasterMySqlReplicaConfiguration
|
|
783
|
-
include Google::Apis::Core::Hashable
|
|
784
|
-
|
|
785
|
-
# PEM representation of the trusted CA's x509 certificate.
|
|
786
|
-
# Corresponds to the JSON property `caCertificate`
|
|
787
|
-
# @return [String]
|
|
788
|
-
attr_accessor :ca_certificate
|
|
789
|
-
|
|
790
|
-
# PEM representation of the slave's x509 certificate.
|
|
791
|
-
# Corresponds to the JSON property `clientCertificate`
|
|
792
|
-
# @return [String]
|
|
793
|
-
attr_accessor :client_certificate
|
|
794
|
-
|
|
795
|
-
# PEM representation of the slave's private key. The corresponsing public key is
|
|
796
|
-
# encoded in the client's certificate. The format of the slave's private key can
|
|
797
|
-
# be either PKCS #1 or PKCS #8.
|
|
798
|
-
# Corresponds to the JSON property `clientKey`
|
|
799
|
-
# @return [String]
|
|
800
|
-
attr_accessor :client_key
|
|
801
|
-
|
|
802
|
-
# This is always sql#demoteMasterMysqlReplicaConfiguration.
|
|
803
|
-
# Corresponds to the JSON property `kind`
|
|
804
|
-
# @return [String]
|
|
805
|
-
attr_accessor :kind
|
|
806
|
-
|
|
807
|
-
# The password for the replication connection.
|
|
808
|
-
# Corresponds to the JSON property `password`
|
|
809
|
-
# @return [String]
|
|
810
|
-
attr_accessor :password
|
|
811
|
-
|
|
812
|
-
# The username for the replication connection.
|
|
813
|
-
# Corresponds to the JSON property `username`
|
|
814
|
-
# @return [String]
|
|
815
|
-
attr_accessor :username
|
|
816
|
-
|
|
817
|
-
def initialize(**args)
|
|
818
|
-
update!(**args)
|
|
819
|
-
end
|
|
820
|
-
|
|
821
|
-
# Update properties of this object
|
|
822
|
-
def update!(**args)
|
|
823
|
-
@ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate)
|
|
824
|
-
@client_certificate = args[:client_certificate] if args.key?(:client_certificate)
|
|
825
|
-
@client_key = args[:client_key] if args.key?(:client_key)
|
|
826
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
827
|
-
@password = args[:password] if args.key?(:password)
|
|
828
|
-
@username = args[:username] if args.key?(:username)
|
|
829
|
-
end
|
|
830
|
-
end
|
|
831
|
-
|
|
832
|
-
# Disk encryption configuration.
|
|
833
|
-
class DiskEncryptionConfiguration
|
|
834
|
-
include Google::Apis::Core::Hashable
|
|
835
|
-
|
|
836
|
-
# This is always sql#diskEncryptionConfiguration.
|
|
837
|
-
# Corresponds to the JSON property `kind`
|
|
838
|
-
# @return [String]
|
|
839
|
-
attr_accessor :kind
|
|
840
|
-
|
|
841
|
-
# KMS key resource name
|
|
842
|
-
# Corresponds to the JSON property `kmsKeyName`
|
|
843
|
-
# @return [String]
|
|
844
|
-
attr_accessor :kms_key_name
|
|
845
|
-
|
|
846
|
-
def initialize(**args)
|
|
847
|
-
update!(**args)
|
|
848
|
-
end
|
|
849
|
-
|
|
850
|
-
# Update properties of this object
|
|
851
|
-
def update!(**args)
|
|
852
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
853
|
-
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
|
854
|
-
end
|
|
855
|
-
end
|
|
856
|
-
|
|
857
|
-
# Disk encryption status.
|
|
858
|
-
class DiskEncryptionStatus
|
|
859
|
-
include Google::Apis::Core::Hashable
|
|
860
|
-
|
|
861
|
-
# This is always sql#diskEncryptionStatus.
|
|
862
|
-
# Corresponds to the JSON property `kind`
|
|
863
|
-
# @return [String]
|
|
864
|
-
attr_accessor :kind
|
|
865
|
-
|
|
866
|
-
# KMS key version used to encrypt the Cloud SQL instance disk
|
|
867
|
-
# Corresponds to the JSON property `kmsKeyVersionName`
|
|
868
|
-
# @return [String]
|
|
869
|
-
attr_accessor :kms_key_version_name
|
|
870
|
-
|
|
871
|
-
def initialize(**args)
|
|
872
|
-
update!(**args)
|
|
873
|
-
end
|
|
874
|
-
|
|
875
|
-
# Update properties of this object
|
|
876
|
-
def update!(**args)
|
|
877
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
878
|
-
@kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
|
|
879
|
-
end
|
|
880
|
-
end
|
|
881
|
-
|
|
882
|
-
# Database instance export context.
|
|
883
|
-
class ExportContext
|
|
884
|
-
include Google::Apis::Core::Hashable
|
|
885
|
-
|
|
886
|
-
# Options for exporting data as CSV.
|
|
887
|
-
# Corresponds to the JSON property `csvExportOptions`
|
|
888
|
-
# @return [Google::Apis::SqladminV1beta4::ExportContext::CsvExportOptions]
|
|
889
|
-
attr_accessor :csv_export_options
|
|
890
|
-
|
|
891
|
-
# Databases to be exported.
|
|
892
|
-
# MySQL instances: If fileType is SQL and no database is specified, all
|
|
893
|
-
# databases are exported, except for the mysql system database. If fileType is
|
|
894
|
-
# CSV, you can specify one database, either by using this property or by using
|
|
895
|
-
# the csvExportOptions.selectQuery property, which takes precedence over this
|
|
896
|
-
# property.
|
|
897
|
-
# PostgreSQL instances: Specify exactly one database to be exported. If fileType
|
|
898
|
-
# is CSV, this database must match the database used in the csvExportOptions.
|
|
899
|
-
# selectQuery property.
|
|
900
|
-
# Corresponds to the JSON property `databases`
|
|
901
|
-
# @return [Array<String>]
|
|
902
|
-
attr_accessor :databases
|
|
903
|
-
|
|
904
|
-
# The file type for the specified uri.
|
|
905
|
-
# SQL: The file contains SQL statements.
|
|
906
|
-
# CSV: The file contains CSV data.
|
|
907
|
-
# Corresponds to the JSON property `fileType`
|
|
908
|
-
# @return [String]
|
|
909
|
-
attr_accessor :file_type
|
|
910
|
-
|
|
911
|
-
# This is always sql#exportContext.
|
|
912
|
-
# Corresponds to the JSON property `kind`
|
|
913
|
-
# @return [String]
|
|
914
|
-
attr_accessor :kind
|
|
915
|
-
|
|
916
|
-
# Options for exporting data as SQL statements.
|
|
917
|
-
# Corresponds to the JSON property `sqlExportOptions`
|
|
918
|
-
# @return [Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions]
|
|
919
|
-
attr_accessor :sql_export_options
|
|
920
|
-
|
|
921
|
-
# The path to the file in Google Cloud Storage where the export will be stored.
|
|
922
|
-
# The URI is in the form gs://bucketName/fileName. If the file already exists,
|
|
923
|
-
# the requests succeeds, but the operation fails. If fileType is SQL and the
|
|
924
|
-
# filename ends with .gz, the contents are compressed.
|
|
925
|
-
# Corresponds to the JSON property `uri`
|
|
926
|
-
# @return [String]
|
|
927
|
-
attr_accessor :uri
|
|
928
|
-
|
|
929
|
-
def initialize(**args)
|
|
930
|
-
update!(**args)
|
|
931
|
-
end
|
|
932
|
-
|
|
933
|
-
# Update properties of this object
|
|
934
|
-
def update!(**args)
|
|
935
|
-
@csv_export_options = args[:csv_export_options] if args.key?(:csv_export_options)
|
|
936
|
-
@databases = args[:databases] if args.key?(:databases)
|
|
937
|
-
@file_type = args[:file_type] if args.key?(:file_type)
|
|
938
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
939
|
-
@sql_export_options = args[:sql_export_options] if args.key?(:sql_export_options)
|
|
940
|
-
@uri = args[:uri] if args.key?(:uri)
|
|
941
|
-
end
|
|
942
|
-
|
|
943
|
-
# Options for exporting data as CSV.
|
|
944
|
-
class CsvExportOptions
|
|
945
|
-
include Google::Apis::Core::Hashable
|
|
946
|
-
|
|
947
|
-
# The select query used to extract the data.
|
|
948
|
-
# Corresponds to the JSON property `selectQuery`
|
|
949
|
-
# @return [String]
|
|
950
|
-
attr_accessor :select_query
|
|
951
|
-
|
|
952
|
-
def initialize(**args)
|
|
953
|
-
update!(**args)
|
|
954
|
-
end
|
|
955
|
-
|
|
956
|
-
# Update properties of this object
|
|
957
|
-
def update!(**args)
|
|
958
|
-
@select_query = args[:select_query] if args.key?(:select_query)
|
|
959
|
-
end
|
|
960
|
-
end
|
|
961
|
-
|
|
962
|
-
# Options for exporting data as SQL statements.
|
|
963
|
-
class SqlExportOptions
|
|
964
|
-
include Google::Apis::Core::Hashable
|
|
965
|
-
|
|
966
|
-
# Options for exporting from MySQL.
|
|
967
|
-
# Corresponds to the JSON property `mysqlExportOptions`
|
|
968
|
-
# @return [Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions::MysqlExportOptions]
|
|
969
|
-
attr_accessor :mysql_export_options
|
|
970
|
-
|
|
971
|
-
# Export only schemas.
|
|
972
|
-
# Corresponds to the JSON property `schemaOnly`
|
|
973
|
-
# @return [Boolean]
|
|
974
|
-
attr_accessor :schema_only
|
|
975
|
-
alias_method :schema_only?, :schema_only
|
|
976
|
-
|
|
977
|
-
# Tables to export, or that were exported, from the specified database. If you
|
|
978
|
-
# specify tables, specify one and only one database. For PostgreSQL instances,
|
|
979
|
-
# you can specify only one table.
|
|
980
|
-
# Corresponds to the JSON property `tables`
|
|
981
|
-
# @return [Array<String>]
|
|
982
|
-
attr_accessor :tables
|
|
983
|
-
|
|
984
|
-
def initialize(**args)
|
|
985
|
-
update!(**args)
|
|
986
|
-
end
|
|
987
|
-
|
|
988
|
-
# Update properties of this object
|
|
989
|
-
def update!(**args)
|
|
990
|
-
@mysql_export_options = args[:mysql_export_options] if args.key?(:mysql_export_options)
|
|
991
|
-
@schema_only = args[:schema_only] if args.key?(:schema_only)
|
|
992
|
-
@tables = args[:tables] if args.key?(:tables)
|
|
993
|
-
end
|
|
994
|
-
|
|
995
|
-
# Options for exporting from MySQL.
|
|
996
|
-
class MysqlExportOptions
|
|
997
|
-
include Google::Apis::Core::Hashable
|
|
998
|
-
|
|
999
|
-
# Option to include SQL statement required to set up replication. If set to 1,
|
|
1000
|
-
# the dump file includes a CHANGE MASTER TO statement with the binary log
|
|
1001
|
-
# coordinates. If set to 2, the CHANGE MASTER TO statement is written as a SQL
|
|
1002
|
-
# comment, and has no effect. All other values are ignored.
|
|
1003
|
-
# Corresponds to the JSON property `masterData`
|
|
1004
|
-
# @return [Fixnum]
|
|
1005
|
-
attr_accessor :master_data
|
|
1006
|
-
|
|
1007
|
-
def initialize(**args)
|
|
1008
|
-
update!(**args)
|
|
1009
|
-
end
|
|
1010
|
-
|
|
1011
|
-
# Update properties of this object
|
|
1012
|
-
def update!(**args)
|
|
1013
|
-
@master_data = args[:master_data] if args.key?(:master_data)
|
|
1014
|
-
end
|
|
1015
|
-
end
|
|
1016
|
-
end
|
|
1017
|
-
end
|
|
1018
|
-
|
|
1019
|
-
# Database instance failover context.
|
|
1020
|
-
class FailoverContext
|
|
1021
|
-
include Google::Apis::Core::Hashable
|
|
1022
|
-
|
|
1023
|
-
# This is always sql#failoverContext.
|
|
1024
|
-
# Corresponds to the JSON property `kind`
|
|
1025
|
-
# @return [String]
|
|
1026
|
-
attr_accessor :kind
|
|
1027
|
-
|
|
1028
|
-
# The current settings version of this instance. Request will be rejected if
|
|
1029
|
-
# this version doesn't match the current settings version.
|
|
1030
|
-
# Corresponds to the JSON property `settingsVersion`
|
|
1031
|
-
# @return [Fixnum]
|
|
1032
|
-
attr_accessor :settings_version
|
|
1033
|
-
|
|
1034
|
-
def initialize(**args)
|
|
1035
|
-
update!(**args)
|
|
1036
|
-
end
|
|
1037
|
-
|
|
1038
|
-
# Update properties of this object
|
|
1039
|
-
def update!(**args)
|
|
1040
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
1041
|
-
@settings_version = args[:settings_version] if args.key?(:settings_version)
|
|
1042
|
-
end
|
|
1043
|
-
end
|
|
1044
|
-
|
|
1045
|
-
# A flag resource.
|
|
1046
|
-
class Flag
|
|
1047
|
-
include Google::Apis::Core::Hashable
|
|
1048
|
-
|
|
1049
|
-
# For STRING flags, a list of strings that the value can be set to.
|
|
1050
|
-
# Corresponds to the JSON property `allowedStringValues`
|
|
1051
|
-
# @return [Array<String>]
|
|
1052
|
-
attr_accessor :allowed_string_values
|
|
1053
|
-
|
|
1054
|
-
# The database version this flag applies to. Can be MYSQL_5_5, MYSQL_5_6, or
|
|
1055
|
-
# MYSQL_5_7. MYSQL_5_7 is applicable only to Second Generation instances.
|
|
1056
|
-
# Corresponds to the JSON property `appliesTo`
|
|
1057
|
-
# @return [Array<String>]
|
|
1058
|
-
attr_accessor :applies_to
|
|
1059
|
-
|
|
1060
|
-
# True if the flag is only released in Beta.
|
|
1061
|
-
# Corresponds to the JSON property `inBeta`
|
|
1062
|
-
# @return [Boolean]
|
|
1063
|
-
attr_accessor :in_beta
|
|
1064
|
-
alias_method :in_beta?, :in_beta
|
|
1065
|
-
|
|
1066
|
-
# This is always sql#flag.
|
|
1067
|
-
# Corresponds to the JSON property `kind`
|
|
1068
|
-
# @return [String]
|
|
1069
|
-
attr_accessor :kind
|
|
1070
|
-
|
|
1071
|
-
# For INTEGER flags, the maximum allowed value.
|
|
1072
|
-
# Corresponds to the JSON property `maxValue`
|
|
1073
|
-
# @return [Fixnum]
|
|
1074
|
-
attr_accessor :max_value
|
|
1075
|
-
|
|
1076
|
-
# For INTEGER flags, the minimum allowed value.
|
|
1077
|
-
# Corresponds to the JSON property `minValue`
|
|
1078
|
-
# @return [Fixnum]
|
|
1079
|
-
attr_accessor :min_value
|
|
1080
|
-
|
|
1081
|
-
# This is the name of the flag. Flag names always use underscores, not hyphens,
|
|
1082
|
-
# e.g. max_allowed_packet
|
|
1083
|
-
# Corresponds to the JSON property `name`
|
|
1084
|
-
# @return [String]
|
|
1085
|
-
attr_accessor :name
|
|
1086
|
-
|
|
1087
|
-
# Indicates whether changing this flag will trigger a database restart. Only
|
|
1088
|
-
# applicable to Second Generation instances.
|
|
1089
|
-
# Corresponds to the JSON property `requiresRestart`
|
|
1090
|
-
# @return [Boolean]
|
|
1091
|
-
attr_accessor :requires_restart
|
|
1092
|
-
alias_method :requires_restart?, :requires_restart
|
|
1093
|
-
|
|
1094
|
-
# The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or
|
|
1095
|
-
# NONE. NONE is used for flags which do not take a value, such as
|
|
1096
|
-
# skip_grant_tables.
|
|
1097
|
-
# Corresponds to the JSON property `type`
|
|
1098
|
-
# @return [String]
|
|
1099
|
-
attr_accessor :type
|
|
1100
|
-
|
|
1101
|
-
def initialize(**args)
|
|
1102
|
-
update!(**args)
|
|
1103
|
-
end
|
|
1104
|
-
|
|
1105
|
-
# Update properties of this object
|
|
1106
|
-
def update!(**args)
|
|
1107
|
-
@allowed_string_values = args[:allowed_string_values] if args.key?(:allowed_string_values)
|
|
1108
|
-
@applies_to = args[:applies_to] if args.key?(:applies_to)
|
|
1109
|
-
@in_beta = args[:in_beta] if args.key?(:in_beta)
|
|
1110
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
1111
|
-
@max_value = args[:max_value] if args.key?(:max_value)
|
|
1112
|
-
@min_value = args[:min_value] if args.key?(:min_value)
|
|
1113
|
-
@name = args[:name] if args.key?(:name)
|
|
1114
|
-
@requires_restart = args[:requires_restart] if args.key?(:requires_restart)
|
|
1115
|
-
@type = args[:type] if args.key?(:type)
|
|
1116
|
-
end
|
|
1117
|
-
end
|
|
1118
|
-
|
|
1119
|
-
# Flags list response.
|
|
1120
|
-
class ListFlagsResponse
|
|
1121
|
-
include Google::Apis::Core::Hashable
|
|
1122
|
-
|
|
1123
|
-
# List of flags.
|
|
1124
|
-
# Corresponds to the JSON property `items`
|
|
1125
|
-
# @return [Array<Google::Apis::SqladminV1beta4::Flag>]
|
|
1126
|
-
attr_accessor :items
|
|
1127
|
-
|
|
1128
|
-
# This is always sql#flagsList.
|
|
1129
|
-
# Corresponds to the JSON property `kind`
|
|
1130
|
-
# @return [String]
|
|
1131
|
-
attr_accessor :kind
|
|
1132
|
-
|
|
1133
|
-
def initialize(**args)
|
|
1134
|
-
update!(**args)
|
|
1135
|
-
end
|
|
1136
|
-
|
|
1137
|
-
# Update properties of this object
|
|
1138
|
-
def update!(**args)
|
|
1139
|
-
@items = args[:items] if args.key?(:items)
|
|
1140
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
1141
|
-
end
|
|
1142
|
-
end
|
|
1143
|
-
|
|
1144
|
-
# Database instance import context.
|
|
1145
|
-
class ImportContext
|
|
1146
|
-
include Google::Apis::Core::Hashable
|
|
1147
|
-
|
|
1148
|
-
# Import parameters specific to SQL Server .BAK files
|
|
1149
|
-
# Corresponds to the JSON property `bakImportOptions`
|
|
1150
|
-
# @return [Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions]
|
|
1151
|
-
attr_accessor :bak_import_options
|
|
1152
|
-
|
|
1153
|
-
# Options for importing data as CSV.
|
|
1154
|
-
# Corresponds to the JSON property `csvImportOptions`
|
|
1155
|
-
# @return [Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions]
|
|
1156
|
-
attr_accessor :csv_import_options
|
|
1157
|
-
|
|
1158
|
-
# The target database for the import. If fileType is SQL, this field is required
|
|
1159
|
-
# only if the import file does not specify a database, and is overridden by any
|
|
1160
|
-
# database specification in the import file. If fileType is CSV, one database
|
|
1161
|
-
# must be specified.
|
|
1162
|
-
# Corresponds to the JSON property `database`
|
|
1163
|
-
# @return [String]
|
|
1164
|
-
attr_accessor :database
|
|
1165
|
-
|
|
1166
|
-
# The file type for the specified uri.
|
|
1167
|
-
# SQL: The file contains SQL statements.
|
|
1168
|
-
# CSV: The file contains CSV data.
|
|
1169
|
-
# Corresponds to the JSON property `fileType`
|
|
1170
|
-
# @return [String]
|
|
1171
|
-
attr_accessor :file_type
|
|
1172
|
-
|
|
1173
|
-
# The PostgreSQL user for this import operation. PostgreSQL instances only.
|
|
1174
|
-
# Corresponds to the JSON property `importUser`
|
|
1175
|
-
# @return [String]
|
|
1176
|
-
attr_accessor :import_user
|
|
1177
|
-
|
|
1178
|
-
# This is always sql#importContext.
|
|
1179
|
-
# Corresponds to the JSON property `kind`
|
|
1180
|
-
# @return [String]
|
|
1181
|
-
attr_accessor :kind
|
|
1182
|
-
|
|
1183
|
-
# Path to the import file in Cloud Storage, in the form gs://bucketName/fileName.
|
|
1184
|
-
# Compressed gzip files (.gz) are supported when fileType is SQL. The instance
|
|
1185
|
-
# must have write permissions to the bucket and read access to the file.
|
|
1186
|
-
# Corresponds to the JSON property `uri`
|
|
1187
|
-
# @return [String]
|
|
1188
|
-
attr_accessor :uri
|
|
1189
|
-
|
|
1190
|
-
def initialize(**args)
|
|
1191
|
-
update!(**args)
|
|
1192
|
-
end
|
|
1193
|
-
|
|
1194
|
-
# Update properties of this object
|
|
1195
|
-
def update!(**args)
|
|
1196
|
-
@bak_import_options = args[:bak_import_options] if args.key?(:bak_import_options)
|
|
1197
|
-
@csv_import_options = args[:csv_import_options] if args.key?(:csv_import_options)
|
|
1198
|
-
@database = args[:database] if args.key?(:database)
|
|
1199
|
-
@file_type = args[:file_type] if args.key?(:file_type)
|
|
1200
|
-
@import_user = args[:import_user] if args.key?(:import_user)
|
|
1201
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
1202
|
-
@uri = args[:uri] if args.key?(:uri)
|
|
1203
|
-
end
|
|
1204
|
-
|
|
1205
|
-
# Import parameters specific to SQL Server .BAK files
|
|
1206
|
-
class BakImportOptions
|
|
1207
|
-
include Google::Apis::Core::Hashable
|
|
1208
|
-
|
|
1209
|
-
#
|
|
1210
|
-
# Corresponds to the JSON property `encryptionOptions`
|
|
1211
|
-
# @return [Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions]
|
|
1212
|
-
attr_accessor :encryption_options
|
|
1213
|
-
|
|
1214
|
-
def initialize(**args)
|
|
1215
|
-
update!(**args)
|
|
1216
|
-
end
|
|
1217
|
-
|
|
1218
|
-
# Update properties of this object
|
|
1219
|
-
def update!(**args)
|
|
1220
|
-
@encryption_options = args[:encryption_options] if args.key?(:encryption_options)
|
|
1221
|
-
end
|
|
1222
|
-
|
|
1223
|
-
#
|
|
1224
|
-
class EncryptionOptions
|
|
1225
|
-
include Google::Apis::Core::Hashable
|
|
1226
|
-
|
|
1227
|
-
# Path to the Certificate (.cer) in Cloud Storage, in the form gs://bucketName/
|
|
1228
|
-
# fileName. The instance must have write permissions to the bucket and read
|
|
1229
|
-
# access to the file.
|
|
1230
|
-
# Corresponds to the JSON property `certPath`
|
|
1231
|
-
# @return [String]
|
|
1232
|
-
attr_accessor :cert_path
|
|
1233
|
-
|
|
1234
|
-
# Password that encrypts the private key
|
|
1235
|
-
# Corresponds to the JSON property `pvkPassword`
|
|
1236
|
-
# @return [String]
|
|
1237
|
-
attr_accessor :pvk_password
|
|
1238
|
-
|
|
1239
|
-
# Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form gs://
|
|
1240
|
-
# bucketName/fileName. The instance must have write permissions to the bucket
|
|
1241
|
-
# and read access to the file.
|
|
1242
|
-
# Corresponds to the JSON property `pvkPath`
|
|
1243
|
-
# @return [String]
|
|
1244
|
-
attr_accessor :pvk_path
|
|
1245
|
-
|
|
1246
|
-
def initialize(**args)
|
|
1247
|
-
update!(**args)
|
|
1248
|
-
end
|
|
1249
|
-
|
|
1250
|
-
# Update properties of this object
|
|
1251
|
-
def update!(**args)
|
|
1252
|
-
@cert_path = args[:cert_path] if args.key?(:cert_path)
|
|
1253
|
-
@pvk_password = args[:pvk_password] if args.key?(:pvk_password)
|
|
1254
|
-
@pvk_path = args[:pvk_path] if args.key?(:pvk_path)
|
|
1255
|
-
end
|
|
1256
|
-
end
|
|
1257
|
-
end
|
|
1258
|
-
|
|
1259
|
-
# Options for importing data as CSV.
|
|
1260
|
-
class CsvImportOptions
|
|
1261
|
-
include Google::Apis::Core::Hashable
|
|
1262
|
-
|
|
1263
|
-
# The columns to which CSV data is imported. If not specified, all columns of
|
|
1264
|
-
# the database table are loaded with CSV data.
|
|
1265
|
-
# Corresponds to the JSON property `columns`
|
|
1266
|
-
# @return [Array<String>]
|
|
1267
|
-
attr_accessor :columns
|
|
1268
|
-
|
|
1269
|
-
# The table to which CSV data is imported.
|
|
1270
|
-
# Corresponds to the JSON property `table`
|
|
1271
|
-
# @return [String]
|
|
1272
|
-
attr_accessor :table
|
|
1273
|
-
|
|
1274
|
-
def initialize(**args)
|
|
1275
|
-
update!(**args)
|
|
1276
|
-
end
|
|
1277
|
-
|
|
1278
|
-
# Update properties of this object
|
|
1279
|
-
def update!(**args)
|
|
1280
|
-
@columns = args[:columns] if args.key?(:columns)
|
|
1281
|
-
@table = args[:table] if args.key?(:table)
|
|
1282
|
-
end
|
|
1283
|
-
end
|
|
1284
|
-
end
|
|
1285
|
-
|
|
1286
|
-
# Database instance clone request.
|
|
1287
|
-
class CloneInstancesRequest
|
|
1288
|
-
include Google::Apis::Core::Hashable
|
|
1289
|
-
|
|
1290
|
-
# Database instance clone context.
|
|
1291
|
-
# Corresponds to the JSON property `cloneContext`
|
|
1292
|
-
# @return [Google::Apis::SqladminV1beta4::CloneContext]
|
|
1293
|
-
attr_accessor :clone_context
|
|
1294
|
-
|
|
1295
|
-
def initialize(**args)
|
|
1296
|
-
update!(**args)
|
|
1297
|
-
end
|
|
1298
|
-
|
|
1299
|
-
# Update properties of this object
|
|
1300
|
-
def update!(**args)
|
|
1301
|
-
@clone_context = args[:clone_context] if args.key?(:clone_context)
|
|
1302
|
-
end
|
|
1303
|
-
end
|
|
1304
|
-
|
|
1305
|
-
# Database demote master request.
|
|
1306
|
-
class InstancesDemoteMasterRequest
|
|
1307
|
-
include Google::Apis::Core::Hashable
|
|
1308
|
-
|
|
1309
|
-
# Database instance demote master context.
|
|
1310
|
-
# Corresponds to the JSON property `demoteMasterContext`
|
|
1311
|
-
# @return [Google::Apis::SqladminV1beta4::DemoteMasterContext]
|
|
1312
|
-
attr_accessor :demote_master_context
|
|
1313
|
-
|
|
1314
|
-
def initialize(**args)
|
|
1315
|
-
update!(**args)
|
|
1316
|
-
end
|
|
1317
|
-
|
|
1318
|
-
# Update properties of this object
|
|
1319
|
-
def update!(**args)
|
|
1320
|
-
@demote_master_context = args[:demote_master_context] if args.key?(:demote_master_context)
|
|
1321
|
-
end
|
|
1322
|
-
end
|
|
1323
|
-
|
|
1324
|
-
# Database instance export request.
|
|
1325
|
-
class ExportInstancesRequest
|
|
1326
|
-
include Google::Apis::Core::Hashable
|
|
1327
|
-
|
|
1328
|
-
# Database instance export context.
|
|
1329
|
-
# Corresponds to the JSON property `exportContext`
|
|
1330
|
-
# @return [Google::Apis::SqladminV1beta4::ExportContext]
|
|
1331
|
-
attr_accessor :export_context
|
|
1332
|
-
|
|
1333
|
-
def initialize(**args)
|
|
1334
|
-
update!(**args)
|
|
1335
|
-
end
|
|
1336
|
-
|
|
1337
|
-
# Update properties of this object
|
|
1338
|
-
def update!(**args)
|
|
1339
|
-
@export_context = args[:export_context] if args.key?(:export_context)
|
|
1340
|
-
end
|
|
1341
|
-
end
|
|
1342
|
-
|
|
1343
|
-
# Instance failover request.
|
|
1344
|
-
class InstancesFailoverRequest
|
|
1345
|
-
include Google::Apis::Core::Hashable
|
|
1346
|
-
|
|
1347
|
-
# Database instance failover context.
|
|
1348
|
-
# Corresponds to the JSON property `failoverContext`
|
|
1349
|
-
# @return [Google::Apis::SqladminV1beta4::FailoverContext]
|
|
1350
|
-
attr_accessor :failover_context
|
|
1351
|
-
|
|
1352
|
-
def initialize(**args)
|
|
1353
|
-
update!(**args)
|
|
1354
|
-
end
|
|
1355
|
-
|
|
1356
|
-
# Update properties of this object
|
|
1357
|
-
def update!(**args)
|
|
1358
|
-
@failover_context = args[:failover_context] if args.key?(:failover_context)
|
|
1359
|
-
end
|
|
1360
|
-
end
|
|
1361
|
-
|
|
1362
|
-
# Database instance import request.
|
|
1363
|
-
class ImportInstancesRequest
|
|
1364
|
-
include Google::Apis::Core::Hashable
|
|
1365
|
-
|
|
1366
|
-
# Database instance import context.
|
|
1367
|
-
# Corresponds to the JSON property `importContext`
|
|
1368
|
-
# @return [Google::Apis::SqladminV1beta4::ImportContext]
|
|
1369
|
-
attr_accessor :import_context
|
|
1370
|
-
|
|
1371
|
-
def initialize(**args)
|
|
1372
|
-
update!(**args)
|
|
1373
|
-
end
|
|
1374
|
-
|
|
1375
|
-
# Update properties of this object
|
|
1376
|
-
def update!(**args)
|
|
1377
|
-
@import_context = args[:import_context] if args.key?(:import_context)
|
|
1378
|
-
end
|
|
1379
|
-
end
|
|
1380
|
-
|
|
1381
|
-
# Database instances list response.
|
|
1382
|
-
class ListInstancesResponse
|
|
1383
|
-
include Google::Apis::Core::Hashable
|
|
1384
|
-
|
|
1385
|
-
# List of database instance resources.
|
|
1386
|
-
# Corresponds to the JSON property `items`
|
|
1387
|
-
# @return [Array<Google::Apis::SqladminV1beta4::DatabaseInstance>]
|
|
1388
|
-
attr_accessor :items
|
|
1389
|
-
|
|
1390
|
-
# This is always sql#instancesList.
|
|
1391
|
-
# Corresponds to the JSON property `kind`
|
|
1392
|
-
# @return [String]
|
|
1393
|
-
attr_accessor :kind
|
|
1394
|
-
|
|
1395
|
-
# The continuation token, used to page through large result sets. Provide this
|
|
1396
|
-
# value in a subsequent request to return the next page of results.
|
|
1397
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
1398
|
-
# @return [String]
|
|
1399
|
-
attr_accessor :next_page_token
|
|
1400
|
-
|
|
1401
|
-
# List of warnings that ocurred while handling the request.
|
|
1402
|
-
# Corresponds to the JSON property `warnings`
|
|
1403
|
-
# @return [Array<Google::Apis::SqladminV1beta4::ApiWarning>]
|
|
1404
|
-
attr_accessor :warnings
|
|
1405
|
-
|
|
1406
|
-
def initialize(**args)
|
|
1407
|
-
update!(**args)
|
|
1408
|
-
end
|
|
1409
|
-
|
|
1410
|
-
# Update properties of this object
|
|
1411
|
-
def update!(**args)
|
|
1412
|
-
@items = args[:items] if args.key?(:items)
|
|
1413
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
1414
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1415
|
-
@warnings = args[:warnings] if args.key?(:warnings)
|
|
1416
|
-
end
|
|
1417
|
-
end
|
|
1418
|
-
|
|
1419
|
-
# Instances ListServerCas response.
|
|
1420
|
-
class InstancesListServerCasResponse
|
|
1421
|
-
include Google::Apis::Core::Hashable
|
|
1422
|
-
|
|
1423
|
-
#
|
|
1424
|
-
# Corresponds to the JSON property `activeVersion`
|
|
1425
|
-
# @return [String]
|
|
1426
|
-
attr_accessor :active_version
|
|
1427
|
-
|
|
1428
|
-
# List of server CA certificates for the instance.
|
|
1429
|
-
# Corresponds to the JSON property `certs`
|
|
1430
|
-
# @return [Array<Google::Apis::SqladminV1beta4::SslCert>]
|
|
1431
|
-
attr_accessor :certs
|
|
1432
|
-
|
|
1433
|
-
# This is always sql#instancesListServerCas.
|
|
1434
|
-
# Corresponds to the JSON property `kind`
|
|
1435
|
-
# @return [String]
|
|
1436
|
-
attr_accessor :kind
|
|
1437
|
-
|
|
1438
|
-
def initialize(**args)
|
|
1439
|
-
update!(**args)
|
|
1440
|
-
end
|
|
1441
|
-
|
|
1442
|
-
# Update properties of this object
|
|
1443
|
-
def update!(**args)
|
|
1444
|
-
@active_version = args[:active_version] if args.key?(:active_version)
|
|
1445
|
-
@certs = args[:certs] if args.key?(:certs)
|
|
1446
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
1447
|
-
end
|
|
1448
|
-
end
|
|
1449
|
-
|
|
1450
|
-
# Database instance restore backup request.
|
|
1451
|
-
class RestoreInstancesBackupRequest
|
|
1452
|
-
include Google::Apis::Core::Hashable
|
|
1453
|
-
|
|
1454
|
-
# Database instance restore from backup context.
|
|
1455
|
-
# Corresponds to the JSON property `restoreBackupContext`
|
|
1456
|
-
# @return [Google::Apis::SqladminV1beta4::RestoreBackupContext]
|
|
1457
|
-
attr_accessor :restore_backup_context
|
|
1458
|
-
|
|
1459
|
-
def initialize(**args)
|
|
1460
|
-
update!(**args)
|
|
1461
|
-
end
|
|
1462
|
-
|
|
1463
|
-
# Update properties of this object
|
|
1464
|
-
def update!(**args)
|
|
1465
|
-
@restore_backup_context = args[:restore_backup_context] if args.key?(:restore_backup_context)
|
|
1466
|
-
end
|
|
1467
|
-
end
|
|
1468
|
-
|
|
1469
|
-
# Rotate Server CA request.
|
|
1470
|
-
class InstancesRotateServerCaRequest
|
|
1471
|
-
include Google::Apis::Core::Hashable
|
|
1472
|
-
|
|
1473
|
-
# Instance rotate server CA context.
|
|
1474
|
-
# Corresponds to the JSON property `rotateServerCaContext`
|
|
1475
|
-
# @return [Google::Apis::SqladminV1beta4::RotateServerCaContext]
|
|
1476
|
-
attr_accessor :rotate_server_ca_context
|
|
1477
|
-
|
|
1478
|
-
def initialize(**args)
|
|
1479
|
-
update!(**args)
|
|
1480
|
-
end
|
|
1481
|
-
|
|
1482
|
-
# Update properties of this object
|
|
1483
|
-
def update!(**args)
|
|
1484
|
-
@rotate_server_ca_context = args[:rotate_server_ca_context] if args.key?(:rotate_server_ca_context)
|
|
1485
|
-
end
|
|
1486
|
-
end
|
|
1487
|
-
|
|
1488
|
-
# Instance truncate log request.
|
|
1489
|
-
class InstancesTruncateLogRequest
|
|
1490
|
-
include Google::Apis::Core::Hashable
|
|
1491
|
-
|
|
1492
|
-
# Database Instance truncate log context.
|
|
1493
|
-
# Corresponds to the JSON property `truncateLogContext`
|
|
1494
|
-
# @return [Google::Apis::SqladminV1beta4::TruncateLogContext]
|
|
1495
|
-
attr_accessor :truncate_log_context
|
|
1496
|
-
|
|
1497
|
-
def initialize(**args)
|
|
1498
|
-
update!(**args)
|
|
1499
|
-
end
|
|
1500
|
-
|
|
1501
|
-
# Update properties of this object
|
|
1502
|
-
def update!(**args)
|
|
1503
|
-
@truncate_log_context = args[:truncate_log_context] if args.key?(:truncate_log_context)
|
|
1504
|
-
end
|
|
1505
|
-
end
|
|
1506
|
-
|
|
1507
|
-
# IP Management configuration.
|
|
1508
|
-
class IpConfiguration
|
|
1509
|
-
include Google::Apis::Core::Hashable
|
|
1510
|
-
|
|
1511
|
-
# The list of external networks that are allowed to connect to the instance
|
|
1512
|
-
# using the IP. In CIDR notation, also known as 'slash' notation (e.g. 192.168.
|
|
1513
|
-
# 100.0/24).
|
|
1514
|
-
# Corresponds to the JSON property `authorizedNetworks`
|
|
1515
|
-
# @return [Array<Google::Apis::SqladminV1beta4::AclEntry>]
|
|
1516
|
-
attr_accessor :authorized_networks
|
|
1517
|
-
|
|
1518
|
-
# Whether the instance should be assigned an IP address or not.
|
|
1519
|
-
# Corresponds to the JSON property `ipv4Enabled`
|
|
1520
|
-
# @return [Boolean]
|
|
1521
|
-
attr_accessor :ipv4_enabled
|
|
1522
|
-
alias_method :ipv4_enabled?, :ipv4_enabled
|
|
1523
|
-
|
|
1524
|
-
# The resource link for the VPC network from which the Cloud SQL instance is
|
|
1525
|
-
# accessible for private IP. For example, /projects/myProject/global/networks/
|
|
1526
|
-
# default. This setting can be updated, but it cannot be removed after it is set.
|
|
1527
|
-
# Corresponds to the JSON property `privateNetwork`
|
|
1528
|
-
# @return [String]
|
|
1529
|
-
attr_accessor :private_network
|
|
1530
|
-
|
|
1531
|
-
# Whether SSL connections over IP should be enforced or not.
|
|
1532
|
-
# Corresponds to the JSON property `requireSsl`
|
|
1533
|
-
# @return [Boolean]
|
|
1534
|
-
attr_accessor :require_ssl
|
|
1535
|
-
alias_method :require_ssl?, :require_ssl
|
|
1536
|
-
|
|
1537
|
-
def initialize(**args)
|
|
1538
|
-
update!(**args)
|
|
1539
|
-
end
|
|
1540
|
-
|
|
1541
|
-
# Update properties of this object
|
|
1542
|
-
def update!(**args)
|
|
1543
|
-
@authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks)
|
|
1544
|
-
@ipv4_enabled = args[:ipv4_enabled] if args.key?(:ipv4_enabled)
|
|
1545
|
-
@private_network = args[:private_network] if args.key?(:private_network)
|
|
1546
|
-
@require_ssl = args[:require_ssl] if args.key?(:require_ssl)
|
|
1547
|
-
end
|
|
1548
|
-
end
|
|
1549
|
-
|
|
1550
|
-
# Database instance IP Mapping.
|
|
1551
|
-
class IpMapping
|
|
1552
|
-
include Google::Apis::Core::Hashable
|
|
1553
|
-
|
|
1554
|
-
# The IP address assigned.
|
|
1555
|
-
# Corresponds to the JSON property `ipAddress`
|
|
1556
|
-
# @return [String]
|
|
1557
|
-
attr_accessor :ip_address
|
|
1558
|
-
|
|
1559
|
-
# The due time for this IP to be retired in RFC 3339 format, for example 2012-11-
|
|
1560
|
-
# 15T16:19:00.094Z. This field is only available when the IP is scheduled to be
|
|
1561
|
-
# retired.
|
|
1562
|
-
# Corresponds to the JSON property `timeToRetire`
|
|
1563
|
-
# @return [DateTime]
|
|
1564
|
-
attr_accessor :time_to_retire
|
|
1565
|
-
|
|
1566
|
-
# The type of this IP address. A PRIMARY address is a public address that can
|
|
1567
|
-
# accept incoming connections. A PRIVATE address is a private address that can
|
|
1568
|
-
# accept incoming connections. An OUTGOING address is the source address of
|
|
1569
|
-
# connections originating from the instance, if supported.
|
|
1570
|
-
# Corresponds to the JSON property `type`
|
|
1571
|
-
# @return [String]
|
|
1572
|
-
attr_accessor :type
|
|
1573
|
-
|
|
1574
|
-
def initialize(**args)
|
|
1575
|
-
update!(**args)
|
|
1576
|
-
end
|
|
1577
|
-
|
|
1578
|
-
# Update properties of this object
|
|
1579
|
-
def update!(**args)
|
|
1580
|
-
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
|
1581
|
-
@time_to_retire = args[:time_to_retire] if args.key?(:time_to_retire)
|
|
1582
|
-
@type = args[:type] if args.key?(:type)
|
|
1583
|
-
end
|
|
1584
|
-
end
|
|
1585
|
-
|
|
1586
|
-
# Preferred location. This specifies where a Cloud SQL instance should
|
|
1587
|
-
# preferably be located, either in a specific Compute Engine zone, or co-located
|
|
1588
|
-
# with an App Engine application. Note that if the preferred location is not
|
|
1589
|
-
# available, the instance will be located as close as possible within the region.
|
|
1590
|
-
# Only one location may be specified.
|
|
1591
|
-
class LocationPreference
|
|
1592
|
-
include Google::Apis::Core::Hashable
|
|
1593
|
-
|
|
1594
|
-
# The AppEngine application to follow, it must be in the same region as the
|
|
1595
|
-
# Cloud SQL instance.
|
|
1596
|
-
# Corresponds to the JSON property `followGaeApplication`
|
|
1597
|
-
# @return [String]
|
|
1598
|
-
attr_accessor :follow_gae_application
|
|
1599
|
-
|
|
1600
|
-
# This is always sql#locationPreference.
|
|
1601
|
-
# Corresponds to the JSON property `kind`
|
|
1602
|
-
# @return [String]
|
|
1603
|
-
attr_accessor :kind
|
|
1604
|
-
|
|
1605
|
-
# The preferred Compute Engine zone (e.g. us-central1-a, us-central1-b, etc.).
|
|
1606
|
-
# Corresponds to the JSON property `zone`
|
|
1607
|
-
# @return [String]
|
|
1608
|
-
attr_accessor :zone
|
|
1609
|
-
|
|
1610
|
-
def initialize(**args)
|
|
1611
|
-
update!(**args)
|
|
1612
|
-
end
|
|
1613
|
-
|
|
1614
|
-
# Update properties of this object
|
|
1615
|
-
def update!(**args)
|
|
1616
|
-
@follow_gae_application = args[:follow_gae_application] if args.key?(:follow_gae_application)
|
|
1617
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
1618
|
-
@zone = args[:zone] if args.key?(:zone)
|
|
1619
|
-
end
|
|
1620
|
-
end
|
|
1621
|
-
|
|
1622
|
-
# Maintenance window. This specifies when a v2 Cloud SQL instance should
|
|
1623
|
-
# preferably be restarted for system maintenance purposes.
|
|
1624
|
-
class MaintenanceWindow
|
|
1625
|
-
include Google::Apis::Core::Hashable
|
|
1626
|
-
|
|
1627
|
-
# day of week (1-7), starting on Monday.
|
|
1628
|
-
# Corresponds to the JSON property `day`
|
|
1629
|
-
# @return [Fixnum]
|
|
1630
|
-
attr_accessor :day
|
|
1631
|
-
|
|
1632
|
-
# hour of day - 0 to 23.
|
|
1633
|
-
# Corresponds to the JSON property `hour`
|
|
1634
|
-
# @return [Fixnum]
|
|
1635
|
-
attr_accessor :hour
|
|
1636
|
-
|
|
1637
|
-
# This is always sql#maintenanceWindow.
|
|
1638
|
-
# Corresponds to the JSON property `kind`
|
|
1639
|
-
# @return [String]
|
|
1640
|
-
attr_accessor :kind
|
|
1641
|
-
|
|
1642
|
-
# Maintenance timing setting: canary (Earlier) or stable (Later).
|
|
1643
|
-
# Learn more.
|
|
1644
|
-
# Corresponds to the JSON property `updateTrack`
|
|
1645
|
-
# @return [String]
|
|
1646
|
-
attr_accessor :update_track
|
|
1647
|
-
|
|
1648
|
-
def initialize(**args)
|
|
1649
|
-
update!(**args)
|
|
1650
|
-
end
|
|
1651
|
-
|
|
1652
|
-
# Update properties of this object
|
|
1653
|
-
def update!(**args)
|
|
1654
|
-
@day = args[:day] if args.key?(:day)
|
|
1655
|
-
@hour = args[:hour] if args.key?(:hour)
|
|
1656
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
1657
|
-
@update_track = args[:update_track] if args.key?(:update_track)
|
|
1658
|
-
end
|
|
1659
|
-
end
|
|
1660
|
-
|
|
1661
|
-
# Read-replica configuration specific to MySQL databases.
|
|
1662
|
-
class MySqlReplicaConfiguration
|
|
1663
|
-
include Google::Apis::Core::Hashable
|
|
1664
|
-
|
|
1665
|
-
# PEM representation of the trusted CA's x509 certificate.
|
|
1666
|
-
# Corresponds to the JSON property `caCertificate`
|
|
1667
|
-
# @return [String]
|
|
1668
|
-
attr_accessor :ca_certificate
|
|
1669
|
-
|
|
1670
|
-
# PEM representation of the slave's x509 certificate.
|
|
1671
|
-
# Corresponds to the JSON property `clientCertificate`
|
|
1672
|
-
# @return [String]
|
|
1673
|
-
attr_accessor :client_certificate
|
|
1674
|
-
|
|
1675
|
-
# PEM representation of the slave's private key. The corresponsing public key is
|
|
1676
|
-
# encoded in the client's certificate.
|
|
1677
|
-
# Corresponds to the JSON property `clientKey`
|
|
1678
|
-
# @return [String]
|
|
1679
|
-
attr_accessor :client_key
|
|
1680
|
-
|
|
1681
|
-
# Seconds to wait between connect retries. MySQL's default is 60 seconds.
|
|
1682
|
-
# Corresponds to the JSON property `connectRetryInterval`
|
|
1683
|
-
# @return [Fixnum]
|
|
1684
|
-
attr_accessor :connect_retry_interval
|
|
1685
|
-
|
|
1686
|
-
# Path to a SQL dump file in Google Cloud Storage from which the slave instance
|
|
1687
|
-
# is to be created. The URI is in the form gs://bucketName/fileName. Compressed
|
|
1688
|
-
# gzip files (.gz) are also supported. Dumps should have the binlog co-ordinates
|
|
1689
|
-
# from which replication should begin. This can be accomplished by setting --
|
|
1690
|
-
# master-data to 1 when using mysqldump.
|
|
1691
|
-
# Corresponds to the JSON property `dumpFilePath`
|
|
1692
|
-
# @return [String]
|
|
1693
|
-
attr_accessor :dump_file_path
|
|
1694
|
-
|
|
1695
|
-
# This is always sql#mysqlReplicaConfiguration.
|
|
1696
|
-
# Corresponds to the JSON property `kind`
|
|
1697
|
-
# @return [String]
|
|
1698
|
-
attr_accessor :kind
|
|
1699
|
-
|
|
1700
|
-
# Interval in milliseconds between replication heartbeats.
|
|
1701
|
-
# Corresponds to the JSON property `masterHeartbeatPeriod`
|
|
1702
|
-
# @return [Fixnum]
|
|
1703
|
-
attr_accessor :master_heartbeat_period
|
|
1704
|
-
|
|
1705
|
-
# The password for the replication connection.
|
|
1706
|
-
# Corresponds to the JSON property `password`
|
|
1707
|
-
# @return [String]
|
|
1708
|
-
attr_accessor :password
|
|
1709
|
-
|
|
1710
|
-
# A list of permissible ciphers to use for SSL encryption.
|
|
1711
|
-
# Corresponds to the JSON property `sslCipher`
|
|
1712
|
-
# @return [String]
|
|
1713
|
-
attr_accessor :ssl_cipher
|
|
1714
|
-
|
|
1715
|
-
# The username for the replication connection.
|
|
1716
|
-
# Corresponds to the JSON property `username`
|
|
1717
|
-
# @return [String]
|
|
1718
|
-
attr_accessor :username
|
|
1719
|
-
|
|
1720
|
-
# Whether or not to check the master's Common Name value in the certificate that
|
|
1721
|
-
# it sends during the SSL handshake.
|
|
1722
|
-
# Corresponds to the JSON property `verifyServerCertificate`
|
|
1723
|
-
# @return [Boolean]
|
|
1724
|
-
attr_accessor :verify_server_certificate
|
|
1725
|
-
alias_method :verify_server_certificate?, :verify_server_certificate
|
|
1726
|
-
|
|
1727
|
-
def initialize(**args)
|
|
1728
|
-
update!(**args)
|
|
1729
|
-
end
|
|
1730
|
-
|
|
1731
|
-
# Update properties of this object
|
|
1732
|
-
def update!(**args)
|
|
1733
|
-
@ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate)
|
|
1734
|
-
@client_certificate = args[:client_certificate] if args.key?(:client_certificate)
|
|
1735
|
-
@client_key = args[:client_key] if args.key?(:client_key)
|
|
1736
|
-
@connect_retry_interval = args[:connect_retry_interval] if args.key?(:connect_retry_interval)
|
|
1737
|
-
@dump_file_path = args[:dump_file_path] if args.key?(:dump_file_path)
|
|
1738
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
1739
|
-
@master_heartbeat_period = args[:master_heartbeat_period] if args.key?(:master_heartbeat_period)
|
|
1740
|
-
@password = args[:password] if args.key?(:password)
|
|
1741
|
-
@ssl_cipher = args[:ssl_cipher] if args.key?(:ssl_cipher)
|
|
1742
|
-
@username = args[:username] if args.key?(:username)
|
|
1743
|
-
@verify_server_certificate = args[:verify_server_certificate] if args.key?(:verify_server_certificate)
|
|
1744
|
-
end
|
|
1745
|
-
end
|
|
1746
|
-
|
|
1747
|
-
# On-premises instance configuration.
|
|
1748
|
-
class OnPremisesConfiguration
|
|
1749
|
-
include Google::Apis::Core::Hashable
|
|
1750
|
-
|
|
1751
|
-
# The host and port of the on-premises instance in host:port format
|
|
1752
|
-
# Corresponds to the JSON property `hostPort`
|
|
1753
|
-
# @return [String]
|
|
1754
|
-
attr_accessor :host_port
|
|
1755
|
-
|
|
1756
|
-
# This is always sql#onPremisesConfiguration.
|
|
1757
|
-
# Corresponds to the JSON property `kind`
|
|
1758
|
-
# @return [String]
|
|
1759
|
-
attr_accessor :kind
|
|
1760
|
-
|
|
1761
|
-
def initialize(**args)
|
|
1762
|
-
update!(**args)
|
|
1763
|
-
end
|
|
1764
|
-
|
|
1765
|
-
# Update properties of this object
|
|
1766
|
-
def update!(**args)
|
|
1767
|
-
@host_port = args[:host_port] if args.key?(:host_port)
|
|
1768
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
1769
|
-
end
|
|
1770
|
-
end
|
|
1771
|
-
|
|
1772
|
-
# An Operation resource. For successful operations that return an Operation
|
|
1773
|
-
# resource, only the fields relevant to the operation are populated in the
|
|
1774
|
-
# resource.
|
|
1775
|
-
class Operation
|
|
1776
|
-
include Google::Apis::Core::Hashable
|
|
1777
|
-
|
|
1778
|
-
# The time this operation finished in UTC timezone in RFC 3339 format, for
|
|
1779
|
-
# example 2012-11-15T16:19:00.094Z.
|
|
1780
|
-
# Corresponds to the JSON property `endTime`
|
|
1781
|
-
# @return [DateTime]
|
|
1782
|
-
attr_accessor :end_time
|
|
1783
|
-
|
|
1784
|
-
# Database instance operation errors list wrapper.
|
|
1785
|
-
# Corresponds to the JSON property `error`
|
|
1786
|
-
# @return [Google::Apis::SqladminV1beta4::OperationErrors]
|
|
1787
|
-
attr_accessor :error
|
|
1788
|
-
|
|
1789
|
-
# Database instance export context.
|
|
1790
|
-
# Corresponds to the JSON property `exportContext`
|
|
1791
|
-
# @return [Google::Apis::SqladminV1beta4::ExportContext]
|
|
1792
|
-
attr_accessor :export_context
|
|
1793
|
-
|
|
1794
|
-
# Database instance import context.
|
|
1795
|
-
# Corresponds to the JSON property `importContext`
|
|
1796
|
-
# @return [Google::Apis::SqladminV1beta4::ImportContext]
|
|
1797
|
-
attr_accessor :import_context
|
|
1798
|
-
|
|
1799
|
-
# The time this operation was enqueued in UTC timezone in RFC 3339 format, for
|
|
1800
|
-
# example 2012-11-15T16:19:00.094Z.
|
|
1801
|
-
# Corresponds to the JSON property `insertTime`
|
|
1802
|
-
# @return [DateTime]
|
|
1803
|
-
attr_accessor :insert_time
|
|
1804
|
-
|
|
1805
|
-
# This is always sql#operation.
|
|
1806
|
-
# Corresponds to the JSON property `kind`
|
|
1807
|
-
# @return [String]
|
|
1808
|
-
attr_accessor :kind
|
|
1809
|
-
|
|
1810
|
-
# An identifier that uniquely identifies the operation. You can use this
|
|
1811
|
-
# identifier to retrieve the Operations resource that has information about the
|
|
1812
|
-
# operation.
|
|
1813
|
-
# Corresponds to the JSON property `name`
|
|
1814
|
-
# @return [String]
|
|
1815
|
-
attr_accessor :name
|
|
1816
|
-
|
|
1817
|
-
# The type of the operation. Valid values are CREATE, DELETE, UPDATE, RESTART,
|
|
1818
|
-
# IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME, CREATE_USER, DELETE_USER,
|
|
1819
|
-
# CREATE_DATABASE, DELETE_DATABASE .
|
|
1820
|
-
# Corresponds to the JSON property `operationType`
|
|
1821
|
-
# @return [String]
|
|
1822
|
-
attr_accessor :operation_type
|
|
1823
|
-
|
|
1824
|
-
# The URI of this resource.
|
|
1825
|
-
# Corresponds to the JSON property `selfLink`
|
|
1826
|
-
# @return [String]
|
|
1827
|
-
attr_accessor :self_link
|
|
1828
|
-
|
|
1829
|
-
# The time this operation actually started in UTC timezone in RFC 3339 format,
|
|
1830
|
-
# for example 2012-11-15T16:19:00.094Z.
|
|
1831
|
-
# Corresponds to the JSON property `startTime`
|
|
1832
|
-
# @return [DateTime]
|
|
1833
|
-
attr_accessor :start_time
|
|
1834
|
-
|
|
1835
|
-
# The status of an operation. Valid values are PENDING, RUNNING, DONE, UNKNOWN.
|
|
1836
|
-
# Corresponds to the JSON property `status`
|
|
1837
|
-
# @return [String]
|
|
1838
|
-
attr_accessor :status
|
|
1839
|
-
|
|
1840
|
-
# Name of the database instance related to this operation.
|
|
1841
|
-
# Corresponds to the JSON property `targetId`
|
|
1842
|
-
# @return [String]
|
|
1843
|
-
attr_accessor :target_id
|
|
1844
|
-
|
|
1845
|
-
#
|
|
1846
|
-
# Corresponds to the JSON property `targetLink`
|
|
1847
|
-
# @return [String]
|
|
1848
|
-
attr_accessor :target_link
|
|
1849
|
-
|
|
1850
|
-
# The project ID of the target instance related to this operation.
|
|
1851
|
-
# Corresponds to the JSON property `targetProject`
|
|
1852
|
-
# @return [String]
|
|
1853
|
-
attr_accessor :target_project
|
|
1854
|
-
|
|
1855
|
-
# The email address of the user who initiated this operation.
|
|
1856
|
-
# Corresponds to the JSON property `user`
|
|
1857
|
-
# @return [String]
|
|
1858
|
-
attr_accessor :user
|
|
1859
|
-
|
|
1860
|
-
def initialize(**args)
|
|
1861
|
-
update!(**args)
|
|
1862
|
-
end
|
|
1863
|
-
|
|
1864
|
-
# Update properties of this object
|
|
1865
|
-
def update!(**args)
|
|
1866
|
-
@end_time = args[:end_time] if args.key?(:end_time)
|
|
1867
|
-
@error = args[:error] if args.key?(:error)
|
|
1868
|
-
@export_context = args[:export_context] if args.key?(:export_context)
|
|
1869
|
-
@import_context = args[:import_context] if args.key?(:import_context)
|
|
1870
|
-
@insert_time = args[:insert_time] if args.key?(:insert_time)
|
|
1871
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
1872
|
-
@name = args[:name] if args.key?(:name)
|
|
1873
|
-
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
|
1874
|
-
@self_link = args[:self_link] if args.key?(:self_link)
|
|
1875
|
-
@start_time = args[:start_time] if args.key?(:start_time)
|
|
1876
|
-
@status = args[:status] if args.key?(:status)
|
|
1877
|
-
@target_id = args[:target_id] if args.key?(:target_id)
|
|
1878
|
-
@target_link = args[:target_link] if args.key?(:target_link)
|
|
1879
|
-
@target_project = args[:target_project] if args.key?(:target_project)
|
|
1880
|
-
@user = args[:user] if args.key?(:user)
|
|
1881
|
-
end
|
|
1882
|
-
end
|
|
1883
|
-
|
|
1884
|
-
# Database instance operation error.
|
|
1885
|
-
class OperationError
|
|
1886
|
-
include Google::Apis::Core::Hashable
|
|
1887
|
-
|
|
1888
|
-
# Identifies the specific error that occurred.
|
|
1889
|
-
# Corresponds to the JSON property `code`
|
|
1890
|
-
# @return [String]
|
|
1891
|
-
attr_accessor :code
|
|
1892
|
-
|
|
1893
|
-
# This is always sql#operationError.
|
|
1894
|
-
# Corresponds to the JSON property `kind`
|
|
1895
|
-
# @return [String]
|
|
1896
|
-
attr_accessor :kind
|
|
1897
|
-
|
|
1898
|
-
# Additional information about the error encountered.
|
|
1899
|
-
# Corresponds to the JSON property `message`
|
|
1900
|
-
# @return [String]
|
|
1901
|
-
attr_accessor :message
|
|
1902
|
-
|
|
1903
|
-
def initialize(**args)
|
|
1904
|
-
update!(**args)
|
|
1905
|
-
end
|
|
1906
|
-
|
|
1907
|
-
# Update properties of this object
|
|
1908
|
-
def update!(**args)
|
|
1909
|
-
@code = args[:code] if args.key?(:code)
|
|
1910
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
1911
|
-
@message = args[:message] if args.key?(:message)
|
|
1912
|
-
end
|
|
1913
|
-
end
|
|
1914
|
-
|
|
1915
|
-
# Database instance operation errors list wrapper.
|
|
1916
|
-
class OperationErrors
|
|
1917
|
-
include Google::Apis::Core::Hashable
|
|
1918
|
-
|
|
1919
|
-
# The list of errors encountered while processing this operation.
|
|
1920
|
-
# Corresponds to the JSON property `errors`
|
|
1921
|
-
# @return [Array<Google::Apis::SqladminV1beta4::OperationError>]
|
|
1922
|
-
attr_accessor :errors
|
|
1923
|
-
|
|
1924
|
-
# This is always sql#operationErrors.
|
|
1925
|
-
# Corresponds to the JSON property `kind`
|
|
1926
|
-
# @return [String]
|
|
1927
|
-
attr_accessor :kind
|
|
1928
|
-
|
|
1929
|
-
def initialize(**args)
|
|
1930
|
-
update!(**args)
|
|
1931
|
-
end
|
|
1932
|
-
|
|
1933
|
-
# Update properties of this object
|
|
1934
|
-
def update!(**args)
|
|
1935
|
-
@errors = args[:errors] if args.key?(:errors)
|
|
1936
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
1937
|
-
end
|
|
1938
|
-
end
|
|
1939
|
-
|
|
1940
|
-
# Database instance list operations response.
|
|
1941
|
-
class ListOperationsResponse
|
|
1942
|
-
include Google::Apis::Core::Hashable
|
|
1943
|
-
|
|
1944
|
-
# List of operation resources.
|
|
1945
|
-
# Corresponds to the JSON property `items`
|
|
1946
|
-
# @return [Array<Google::Apis::SqladminV1beta4::Operation>]
|
|
1947
|
-
attr_accessor :items
|
|
1948
|
-
|
|
1949
|
-
# This is always sql#operationsList.
|
|
1950
|
-
# Corresponds to the JSON property `kind`
|
|
1951
|
-
# @return [String]
|
|
1952
|
-
attr_accessor :kind
|
|
1953
|
-
|
|
1954
|
-
# The continuation token, used to page through large result sets. Provide this
|
|
1955
|
-
# value in a subsequent request to return the next page of results.
|
|
1956
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
1957
|
-
# @return [String]
|
|
1958
|
-
attr_accessor :next_page_token
|
|
1959
|
-
|
|
1960
|
-
def initialize(**args)
|
|
1961
|
-
update!(**args)
|
|
1962
|
-
end
|
|
1963
|
-
|
|
1964
|
-
# Update properties of this object
|
|
1965
|
-
def update!(**args)
|
|
1966
|
-
@items = args[:items] if args.key?(:items)
|
|
1967
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
1968
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1969
|
-
end
|
|
1970
|
-
end
|
|
1971
|
-
|
|
1972
|
-
# Read-replica configuration for connecting to the master.
|
|
1973
|
-
class ReplicaConfiguration
|
|
1974
|
-
include Google::Apis::Core::Hashable
|
|
1975
|
-
|
|
1976
|
-
# Specifies if the replica is the failover target. If the field is set to true
|
|
1977
|
-
# the replica will be designated as a failover replica. In case the master
|
|
1978
|
-
# instance fails, the replica instance will be promoted as the new master
|
|
1979
|
-
# instance.
|
|
1980
|
-
# Only one replica can be specified as failover target, and the replica has to
|
|
1981
|
-
# be in different zone with the master instance.
|
|
1982
|
-
# Corresponds to the JSON property `failoverTarget`
|
|
1983
|
-
# @return [Boolean]
|
|
1984
|
-
attr_accessor :failover_target
|
|
1985
|
-
alias_method :failover_target?, :failover_target
|
|
1986
|
-
|
|
1987
|
-
# This is always sql#replicaConfiguration.
|
|
1988
|
-
# Corresponds to the JSON property `kind`
|
|
1989
|
-
# @return [String]
|
|
1990
|
-
attr_accessor :kind
|
|
1991
|
-
|
|
1992
|
-
# Read-replica configuration specific to MySQL databases.
|
|
1993
|
-
# Corresponds to the JSON property `mysqlReplicaConfiguration`
|
|
1994
|
-
# @return [Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration]
|
|
1995
|
-
attr_accessor :mysql_replica_configuration
|
|
1996
|
-
|
|
1997
|
-
def initialize(**args)
|
|
1998
|
-
update!(**args)
|
|
1999
|
-
end
|
|
2000
|
-
|
|
2001
|
-
# Update properties of this object
|
|
2002
|
-
def update!(**args)
|
|
2003
|
-
@failover_target = args[:failover_target] if args.key?(:failover_target)
|
|
2004
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
2005
|
-
@mysql_replica_configuration = args[:mysql_replica_configuration] if args.key?(:mysql_replica_configuration)
|
|
2006
|
-
end
|
|
2007
|
-
end
|
|
2008
|
-
|
|
2009
|
-
# Database instance restore from backup context.
|
|
2010
|
-
class RestoreBackupContext
|
|
2011
|
-
include Google::Apis::Core::Hashable
|
|
2012
|
-
|
|
2013
|
-
# The ID of the backup run to restore from.
|
|
2014
|
-
# Corresponds to the JSON property `backupRunId`
|
|
2015
|
-
# @return [Fixnum]
|
|
2016
|
-
attr_accessor :backup_run_id
|
|
2017
|
-
|
|
2018
|
-
# The ID of the instance that the backup was taken from.
|
|
2019
|
-
# Corresponds to the JSON property `instanceId`
|
|
2020
|
-
# @return [String]
|
|
2021
|
-
attr_accessor :instance_id
|
|
2022
|
-
|
|
2023
|
-
# This is always sql#restoreBackupContext.
|
|
2024
|
-
# Corresponds to the JSON property `kind`
|
|
2025
|
-
# @return [String]
|
|
2026
|
-
attr_accessor :kind
|
|
2027
|
-
|
|
2028
|
-
# The full project ID of the source instance.
|
|
2029
|
-
# Corresponds to the JSON property `project`
|
|
2030
|
-
# @return [String]
|
|
2031
|
-
attr_accessor :project
|
|
2032
|
-
|
|
2033
|
-
def initialize(**args)
|
|
2034
|
-
update!(**args)
|
|
2035
|
-
end
|
|
2036
|
-
|
|
2037
|
-
# Update properties of this object
|
|
2038
|
-
def update!(**args)
|
|
2039
|
-
@backup_run_id = args[:backup_run_id] if args.key?(:backup_run_id)
|
|
2040
|
-
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
|
2041
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
2042
|
-
@project = args[:project] if args.key?(:project)
|
|
2043
|
-
end
|
|
2044
|
-
end
|
|
2045
|
-
|
|
2046
|
-
# Instance rotate server CA context.
|
|
2047
|
-
class RotateServerCaContext
|
|
2048
|
-
include Google::Apis::Core::Hashable
|
|
2049
|
-
|
|
2050
|
-
# This is always sql#rotateServerCaContext.
|
|
2051
|
-
# Corresponds to the JSON property `kind`
|
|
2052
|
-
# @return [String]
|
|
2053
|
-
attr_accessor :kind
|
|
2054
|
-
|
|
2055
|
-
# The fingerprint of the next version to be rotated to. If left unspecified,
|
|
2056
|
-
# will be rotated to the most recently added server CA version.
|
|
2057
|
-
# Corresponds to the JSON property `nextVersion`
|
|
2058
|
-
# @return [String]
|
|
2059
|
-
attr_accessor :next_version
|
|
2060
|
-
|
|
2061
|
-
def initialize(**args)
|
|
2062
|
-
update!(**args)
|
|
2063
|
-
end
|
|
2064
|
-
|
|
2065
|
-
# Update properties of this object
|
|
2066
|
-
def update!(**args)
|
|
2067
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
2068
|
-
@next_version = args[:next_version] if args.key?(:next_version)
|
|
2069
|
-
end
|
|
2070
|
-
end
|
|
2071
|
-
|
|
2072
|
-
# Database instance settings.
|
|
2073
|
-
class Settings
|
|
2074
|
-
include Google::Apis::Core::Hashable
|
|
2075
|
-
|
|
2076
|
-
# The activation policy specifies when the instance is activated; it is
|
|
2077
|
-
# applicable only when the instance state is RUNNABLE. Valid values:
|
|
2078
|
-
# ALWAYS: The instance is on, and remains so even in the absence of connection
|
|
2079
|
-
# requests.
|
|
2080
|
-
# NEVER: The instance is off; it is not activated, even if a connection request
|
|
2081
|
-
# arrives.
|
|
2082
|
-
# ON_DEMAND: First Generation instances only. The instance responds to incoming
|
|
2083
|
-
# requests, and turns itself off when not in use. Instances with PER_USE pricing
|
|
2084
|
-
# turn off after 15 minutes of inactivity. Instances with PER_PACKAGE pricing
|
|
2085
|
-
# turn off after 12 hours of inactivity.
|
|
2086
|
-
# Corresponds to the JSON property `activationPolicy`
|
|
2087
|
-
# @return [String]
|
|
2088
|
-
attr_accessor :activation_policy
|
|
2089
|
-
|
|
2090
|
-
# The App Engine app IDs that can access this instance. First Generation
|
|
2091
|
-
# instances only.
|
|
2092
|
-
# Corresponds to the JSON property `authorizedGaeApplications`
|
|
2093
|
-
# @return [Array<String>]
|
|
2094
|
-
attr_accessor :authorized_gae_applications
|
|
2095
|
-
|
|
2096
|
-
# Availability type (PostgreSQL instances only). Potential values:
|
|
2097
|
-
# ZONAL: The instance serves data from only one zone. Outages in that zone
|
|
2098
|
-
# affect data accessibility.
|
|
2099
|
-
# REGIONAL: The instance can serve data from more than one zone in a region (it
|
|
2100
|
-
# is highly available).
|
|
2101
|
-
# For more information, see Overview of the High Availability Configuration.
|
|
2102
|
-
# Corresponds to the JSON property `availabilityType`
|
|
2103
|
-
# @return [String]
|
|
2104
|
-
attr_accessor :availability_type
|
|
2105
|
-
|
|
2106
|
-
# Database instance backup configuration.
|
|
2107
|
-
# Corresponds to the JSON property `backupConfiguration`
|
|
2108
|
-
# @return [Google::Apis::SqladminV1beta4::BackupConfiguration]
|
|
2109
|
-
attr_accessor :backup_configuration
|
|
2110
|
-
|
|
2111
|
-
# Configuration specific to read replica instances. Indicates whether database
|
|
2112
|
-
# flags for crash-safe replication are enabled. This property is only applicable
|
|
2113
|
-
# to First Generation instances.
|
|
2114
|
-
# Corresponds to the JSON property `crashSafeReplicationEnabled`
|
|
2115
|
-
# @return [Boolean]
|
|
2116
|
-
attr_accessor :crash_safe_replication_enabled
|
|
2117
|
-
alias_method :crash_safe_replication_enabled?, :crash_safe_replication_enabled
|
|
2118
|
-
|
|
2119
|
-
# The size of data disk, in GB. The data disk size minimum is 10GB. Not used for
|
|
2120
|
-
# First Generation instances.
|
|
2121
|
-
# Corresponds to the JSON property `dataDiskSizeGb`
|
|
2122
|
-
# @return [Fixnum]
|
|
2123
|
-
attr_accessor :data_disk_size_gb
|
|
2124
|
-
|
|
2125
|
-
# The type of data disk: PD_SSD (default) or PD_HDD. Not used for First
|
|
2126
|
-
# Generation instances.
|
|
2127
|
-
# Corresponds to the JSON property `dataDiskType`
|
|
2128
|
-
# @return [String]
|
|
2129
|
-
attr_accessor :data_disk_type
|
|
2130
|
-
|
|
2131
|
-
# The database flags passed to the instance at startup.
|
|
2132
|
-
# Corresponds to the JSON property `databaseFlags`
|
|
2133
|
-
# @return [Array<Google::Apis::SqladminV1beta4::DatabaseFlags>]
|
|
2134
|
-
attr_accessor :database_flags
|
|
2135
|
-
|
|
2136
|
-
# Configuration specific to read replica instances. Indicates whether
|
|
2137
|
-
# replication is enabled or not.
|
|
2138
|
-
# Corresponds to the JSON property `databaseReplicationEnabled`
|
|
2139
|
-
# @return [Boolean]
|
|
2140
|
-
attr_accessor :database_replication_enabled
|
|
2141
|
-
alias_method :database_replication_enabled?, :database_replication_enabled
|
|
2142
|
-
|
|
2143
|
-
# IP Management configuration.
|
|
2144
|
-
# Corresponds to the JSON property `ipConfiguration`
|
|
2145
|
-
# @return [Google::Apis::SqladminV1beta4::IpConfiguration]
|
|
2146
|
-
attr_accessor :ip_configuration
|
|
2147
|
-
|
|
2148
|
-
# This is always sql#settings.
|
|
2149
|
-
# Corresponds to the JSON property `kind`
|
|
2150
|
-
# @return [String]
|
|
2151
|
-
attr_accessor :kind
|
|
2152
|
-
|
|
2153
|
-
# Preferred location. This specifies where a Cloud SQL instance should
|
|
2154
|
-
# preferably be located, either in a specific Compute Engine zone, or co-located
|
|
2155
|
-
# with an App Engine application. Note that if the preferred location is not
|
|
2156
|
-
# available, the instance will be located as close as possible within the region.
|
|
2157
|
-
# Only one location may be specified.
|
|
2158
|
-
# Corresponds to the JSON property `locationPreference`
|
|
2159
|
-
# @return [Google::Apis::SqladminV1beta4::LocationPreference]
|
|
2160
|
-
attr_accessor :location_preference
|
|
2161
|
-
|
|
2162
|
-
# Maintenance window. This specifies when a v2 Cloud SQL instance should
|
|
2163
|
-
# preferably be restarted for system maintenance purposes.
|
|
2164
|
-
# Corresponds to the JSON property `maintenanceWindow`
|
|
2165
|
-
# @return [Google::Apis::SqladminV1beta4::MaintenanceWindow]
|
|
2166
|
-
attr_accessor :maintenance_window
|
|
2167
|
-
|
|
2168
|
-
# The pricing plan for this instance. This can be either PER_USE or PACKAGE.
|
|
2169
|
-
# Only PER_USE is supported for Second Generation instances.
|
|
2170
|
-
# Corresponds to the JSON property `pricingPlan`
|
|
2171
|
-
# @return [String]
|
|
2172
|
-
attr_accessor :pricing_plan
|
|
2173
|
-
|
|
2174
|
-
# The type of replication this instance uses. This can be either ASYNCHRONOUS or
|
|
2175
|
-
# SYNCHRONOUS. This property is only applicable to First Generation instances.
|
|
2176
|
-
# Corresponds to the JSON property `replicationType`
|
|
2177
|
-
# @return [String]
|
|
2178
|
-
attr_accessor :replication_type
|
|
2179
|
-
|
|
2180
|
-
# The version of instance settings. This is a required field for update method
|
|
2181
|
-
# to make sure concurrent updates are handled properly. During update, use the
|
|
2182
|
-
# most recent settingsVersion value for this instance and do not try to update
|
|
2183
|
-
# this value.
|
|
2184
|
-
# Corresponds to the JSON property `settingsVersion`
|
|
2185
|
-
# @return [Fixnum]
|
|
2186
|
-
attr_accessor :settings_version
|
|
2187
|
-
|
|
2188
|
-
# Configuration to increase storage size automatically. The default value is
|
|
2189
|
-
# true. Not used for First Generation instances.
|
|
2190
|
-
# Corresponds to the JSON property `storageAutoResize`
|
|
2191
|
-
# @return [Boolean]
|
|
2192
|
-
attr_accessor :storage_auto_resize
|
|
2193
|
-
alias_method :storage_auto_resize?, :storage_auto_resize
|
|
2194
|
-
|
|
2195
|
-
# The maximum size to which storage capacity can be automatically increased. The
|
|
2196
|
-
# default value is 0, which specifies that there is no limit. Not used for First
|
|
2197
|
-
# Generation instances.
|
|
2198
|
-
# Corresponds to the JSON property `storageAutoResizeLimit`
|
|
2199
|
-
# @return [Fixnum]
|
|
2200
|
-
attr_accessor :storage_auto_resize_limit
|
|
2201
|
-
|
|
2202
|
-
# The tier (or machine type) for this instance, for example db-n1-standard-1 (
|
|
2203
|
-
# MySQL instances) or db-custom-1-3840 (PostgreSQL instances). For MySQL
|
|
2204
|
-
# instances, this property determines whether the instance is First or Second
|
|
2205
|
-
# Generation. For more information, see Instance Settings.
|
|
2206
|
-
# Corresponds to the JSON property `tier`
|
|
2207
|
-
# @return [String]
|
|
2208
|
-
attr_accessor :tier
|
|
2209
|
-
|
|
2210
|
-
# User-provided labels, represented as a dictionary where each label is a single
|
|
2211
|
-
# key value pair.
|
|
2212
|
-
# Corresponds to the JSON property `userLabels`
|
|
2213
|
-
# @return [Hash<String,String>]
|
|
2214
|
-
attr_accessor :user_labels
|
|
2215
|
-
|
|
2216
|
-
def initialize(**args)
|
|
2217
|
-
update!(**args)
|
|
2218
|
-
end
|
|
2219
|
-
|
|
2220
|
-
# Update properties of this object
|
|
2221
|
-
def update!(**args)
|
|
2222
|
-
@activation_policy = args[:activation_policy] if args.key?(:activation_policy)
|
|
2223
|
-
@authorized_gae_applications = args[:authorized_gae_applications] if args.key?(:authorized_gae_applications)
|
|
2224
|
-
@availability_type = args[:availability_type] if args.key?(:availability_type)
|
|
2225
|
-
@backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration)
|
|
2226
|
-
@crash_safe_replication_enabled = args[:crash_safe_replication_enabled] if args.key?(:crash_safe_replication_enabled)
|
|
2227
|
-
@data_disk_size_gb = args[:data_disk_size_gb] if args.key?(:data_disk_size_gb)
|
|
2228
|
-
@data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type)
|
|
2229
|
-
@database_flags = args[:database_flags] if args.key?(:database_flags)
|
|
2230
|
-
@database_replication_enabled = args[:database_replication_enabled] if args.key?(:database_replication_enabled)
|
|
2231
|
-
@ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration)
|
|
2232
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
2233
|
-
@location_preference = args[:location_preference] if args.key?(:location_preference)
|
|
2234
|
-
@maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
|
|
2235
|
-
@pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
|
|
2236
|
-
@replication_type = args[:replication_type] if args.key?(:replication_type)
|
|
2237
|
-
@settings_version = args[:settings_version] if args.key?(:settings_version)
|
|
2238
|
-
@storage_auto_resize = args[:storage_auto_resize] if args.key?(:storage_auto_resize)
|
|
2239
|
-
@storage_auto_resize_limit = args[:storage_auto_resize_limit] if args.key?(:storage_auto_resize_limit)
|
|
2240
|
-
@tier = args[:tier] if args.key?(:tier)
|
|
2241
|
-
@user_labels = args[:user_labels] if args.key?(:user_labels)
|
|
2242
|
-
end
|
|
2243
|
-
end
|
|
2244
|
-
|
|
2245
|
-
# SslCerts Resource
|
|
2246
|
-
class SslCert
|
|
2247
|
-
include Google::Apis::Core::Hashable
|
|
2248
|
-
|
|
2249
|
-
# PEM representation.
|
|
2250
|
-
# Corresponds to the JSON property `cert`
|
|
2251
|
-
# @return [String]
|
|
2252
|
-
attr_accessor :cert
|
|
2253
|
-
|
|
2254
|
-
# Serial number, as extracted from the certificate.
|
|
2255
|
-
# Corresponds to the JSON property `certSerialNumber`
|
|
2256
|
-
# @return [String]
|
|
2257
|
-
attr_accessor :cert_serial_number
|
|
2258
|
-
|
|
2259
|
-
# User supplied name. Constrained to [a-zA-Z.-_ ]+.
|
|
2260
|
-
# Corresponds to the JSON property `commonName`
|
|
2261
|
-
# @return [String]
|
|
2262
|
-
attr_accessor :common_name
|
|
2263
|
-
|
|
2264
|
-
# The time when the certificate was created in RFC 3339 format, for example 2012-
|
|
2265
|
-
# 11-15T16:19:00.094Z
|
|
2266
|
-
# Corresponds to the JSON property `createTime`
|
|
2267
|
-
# @return [DateTime]
|
|
2268
|
-
attr_accessor :create_time
|
|
2269
|
-
|
|
2270
|
-
# The time when the certificate expires in RFC 3339 format, for example 2012-11-
|
|
2271
|
-
# 15T16:19:00.094Z.
|
|
2272
|
-
# Corresponds to the JSON property `expirationTime`
|
|
2273
|
-
# @return [DateTime]
|
|
2274
|
-
attr_accessor :expiration_time
|
|
2275
|
-
|
|
2276
|
-
# Name of the database instance.
|
|
2277
|
-
# Corresponds to the JSON property `instance`
|
|
2278
|
-
# @return [String]
|
|
2279
|
-
attr_accessor :instance
|
|
2280
|
-
|
|
2281
|
-
# This is always sql#sslCert.
|
|
2282
|
-
# Corresponds to the JSON property `kind`
|
|
2283
|
-
# @return [String]
|
|
2284
|
-
attr_accessor :kind
|
|
2285
|
-
|
|
2286
|
-
# The URI of this resource.
|
|
2287
|
-
# Corresponds to the JSON property `selfLink`
|
|
2288
|
-
# @return [String]
|
|
2289
|
-
attr_accessor :self_link
|
|
2290
|
-
|
|
2291
|
-
# Sha1 Fingerprint.
|
|
2292
|
-
# Corresponds to the JSON property `sha1Fingerprint`
|
|
2293
|
-
# @return [String]
|
|
2294
|
-
attr_accessor :sha1_fingerprint
|
|
2295
|
-
|
|
2296
|
-
def initialize(**args)
|
|
2297
|
-
update!(**args)
|
|
2298
|
-
end
|
|
2299
|
-
|
|
2300
|
-
# Update properties of this object
|
|
2301
|
-
def update!(**args)
|
|
2302
|
-
@cert = args[:cert] if args.key?(:cert)
|
|
2303
|
-
@cert_serial_number = args[:cert_serial_number] if args.key?(:cert_serial_number)
|
|
2304
|
-
@common_name = args[:common_name] if args.key?(:common_name)
|
|
2305
|
-
@create_time = args[:create_time] if args.key?(:create_time)
|
|
2306
|
-
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
|
|
2307
|
-
@instance = args[:instance] if args.key?(:instance)
|
|
2308
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
2309
|
-
@self_link = args[:self_link] if args.key?(:self_link)
|
|
2310
|
-
@sha1_fingerprint = args[:sha1_fingerprint] if args.key?(:sha1_fingerprint)
|
|
2311
|
-
end
|
|
2312
|
-
end
|
|
2313
|
-
|
|
2314
|
-
# SslCertDetail.
|
|
2315
|
-
class SslCertDetail
|
|
2316
|
-
include Google::Apis::Core::Hashable
|
|
2317
|
-
|
|
2318
|
-
# SslCerts Resource
|
|
2319
|
-
# Corresponds to the JSON property `certInfo`
|
|
2320
|
-
# @return [Google::Apis::SqladminV1beta4::SslCert]
|
|
2321
|
-
attr_accessor :cert_info
|
|
2322
|
-
|
|
2323
|
-
# The private key for the client cert, in pem format. Keep private in order to
|
|
2324
|
-
# protect your security.
|
|
2325
|
-
# Corresponds to the JSON property `certPrivateKey`
|
|
2326
|
-
# @return [String]
|
|
2327
|
-
attr_accessor :cert_private_key
|
|
2328
|
-
|
|
2329
|
-
def initialize(**args)
|
|
2330
|
-
update!(**args)
|
|
2331
|
-
end
|
|
2332
|
-
|
|
2333
|
-
# Update properties of this object
|
|
2334
|
-
def update!(**args)
|
|
2335
|
-
@cert_info = args[:cert_info] if args.key?(:cert_info)
|
|
2336
|
-
@cert_private_key = args[:cert_private_key] if args.key?(:cert_private_key)
|
|
2337
|
-
end
|
|
2338
|
-
end
|
|
2339
|
-
|
|
2340
|
-
# SslCerts create ephemeral certificate request.
|
|
2341
|
-
class SslCertsCreateEphemeralRequest
|
|
2342
|
-
include Google::Apis::Core::Hashable
|
|
2343
|
-
|
|
2344
|
-
# PEM encoded public key to include in the signed certificate.
|
|
2345
|
-
# Corresponds to the JSON property `public_key`
|
|
2346
|
-
# @return [String]
|
|
2347
|
-
attr_accessor :public_key
|
|
2348
|
-
|
|
2349
|
-
def initialize(**args)
|
|
2350
|
-
update!(**args)
|
|
2351
|
-
end
|
|
2352
|
-
|
|
2353
|
-
# Update properties of this object
|
|
2354
|
-
def update!(**args)
|
|
2355
|
-
@public_key = args[:public_key] if args.key?(:public_key)
|
|
2356
|
-
end
|
|
2357
|
-
end
|
|
2358
|
-
|
|
2359
|
-
# SslCerts insert request.
|
|
2360
|
-
class InsertSslCertsRequest
|
|
2361
|
-
include Google::Apis::Core::Hashable
|
|
2362
|
-
|
|
2363
|
-
# User supplied name. Must be a distinct name from the other certificates for
|
|
2364
|
-
# this instance.
|
|
2365
|
-
# Corresponds to the JSON property `commonName`
|
|
2366
|
-
# @return [String]
|
|
2367
|
-
attr_accessor :common_name
|
|
2368
|
-
|
|
2369
|
-
def initialize(**args)
|
|
2370
|
-
update!(**args)
|
|
2371
|
-
end
|
|
2372
|
-
|
|
2373
|
-
# Update properties of this object
|
|
2374
|
-
def update!(**args)
|
|
2375
|
-
@common_name = args[:common_name] if args.key?(:common_name)
|
|
2376
|
-
end
|
|
2377
|
-
end
|
|
2378
|
-
|
|
2379
|
-
# SslCert insert response.
|
|
2380
|
-
class InsertSslCertsResponse
|
|
2381
|
-
include Google::Apis::Core::Hashable
|
|
2382
|
-
|
|
2383
|
-
# SslCertDetail.
|
|
2384
|
-
# Corresponds to the JSON property `clientCert`
|
|
2385
|
-
# @return [Google::Apis::SqladminV1beta4::SslCertDetail]
|
|
2386
|
-
attr_accessor :client_cert
|
|
2387
|
-
|
|
2388
|
-
# This is always sql#sslCertsInsert.
|
|
2389
|
-
# Corresponds to the JSON property `kind`
|
|
2390
|
-
# @return [String]
|
|
2391
|
-
attr_accessor :kind
|
|
2392
|
-
|
|
2393
|
-
# An Operation resource. For successful operations that return an Operation
|
|
2394
|
-
# resource, only the fields relevant to the operation are populated in the
|
|
2395
|
-
# resource.
|
|
2396
|
-
# Corresponds to the JSON property `operation`
|
|
2397
|
-
# @return [Google::Apis::SqladminV1beta4::Operation]
|
|
2398
|
-
attr_accessor :operation
|
|
2399
|
-
|
|
2400
|
-
# SslCerts Resource
|
|
2401
|
-
# Corresponds to the JSON property `serverCaCert`
|
|
2402
|
-
# @return [Google::Apis::SqladminV1beta4::SslCert]
|
|
2403
|
-
attr_accessor :server_ca_cert
|
|
2404
|
-
|
|
2405
|
-
def initialize(**args)
|
|
2406
|
-
update!(**args)
|
|
2407
|
-
end
|
|
2408
|
-
|
|
2409
|
-
# Update properties of this object
|
|
2410
|
-
def update!(**args)
|
|
2411
|
-
@client_cert = args[:client_cert] if args.key?(:client_cert)
|
|
2412
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
2413
|
-
@operation = args[:operation] if args.key?(:operation)
|
|
2414
|
-
@server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert)
|
|
2415
|
-
end
|
|
2416
|
-
end
|
|
2417
|
-
|
|
2418
|
-
# SslCerts list response.
|
|
2419
|
-
class ListSslCertsResponse
|
|
2420
|
-
include Google::Apis::Core::Hashable
|
|
2421
|
-
|
|
2422
|
-
# List of client certificates for the instance.
|
|
2423
|
-
# Corresponds to the JSON property `items`
|
|
2424
|
-
# @return [Array<Google::Apis::SqladminV1beta4::SslCert>]
|
|
2425
|
-
attr_accessor :items
|
|
2426
|
-
|
|
2427
|
-
# This is always sql#sslCertsList.
|
|
2428
|
-
# Corresponds to the JSON property `kind`
|
|
2429
|
-
# @return [String]
|
|
2430
|
-
attr_accessor :kind
|
|
2431
|
-
|
|
2432
|
-
def initialize(**args)
|
|
2433
|
-
update!(**args)
|
|
2434
|
-
end
|
|
2435
|
-
|
|
2436
|
-
# Update properties of this object
|
|
2437
|
-
def update!(**args)
|
|
2438
|
-
@items = args[:items] if args.key?(:items)
|
|
2439
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
2440
|
-
end
|
|
2441
|
-
end
|
|
2442
|
-
|
|
2443
|
-
# A Google Cloud SQL service tier resource.
|
|
2444
|
-
class Tier
|
|
2445
|
-
include Google::Apis::Core::Hashable
|
|
2446
|
-
|
|
2447
|
-
# The maximum disk size of this tier in bytes.
|
|
2448
|
-
# Corresponds to the JSON property `DiskQuota`
|
|
2449
|
-
# @return [Fixnum]
|
|
2450
|
-
attr_accessor :disk_quota
|
|
2451
|
-
|
|
2452
|
-
# The maximum RAM usage of this tier in bytes.
|
|
2453
|
-
# Corresponds to the JSON property `RAM`
|
|
2454
|
-
# @return [Fixnum]
|
|
2455
|
-
attr_accessor :ram
|
|
2456
|
-
|
|
2457
|
-
# This is always sql#tier.
|
|
2458
|
-
# Corresponds to the JSON property `kind`
|
|
2459
|
-
# @return [String]
|
|
2460
|
-
attr_accessor :kind
|
|
2461
|
-
|
|
2462
|
-
# The applicable regions for this tier.
|
|
2463
|
-
# Corresponds to the JSON property `region`
|
|
2464
|
-
# @return [Array<String>]
|
|
2465
|
-
attr_accessor :region
|
|
2466
|
-
|
|
2467
|
-
# An identifier for the machine type, for example, db-n1-standard-1. For related
|
|
2468
|
-
# information, see Pricing.
|
|
2469
|
-
# Corresponds to the JSON property `tier`
|
|
2470
|
-
# @return [String]
|
|
2471
|
-
attr_accessor :tier
|
|
2472
|
-
|
|
2473
|
-
def initialize(**args)
|
|
2474
|
-
update!(**args)
|
|
2475
|
-
end
|
|
2476
|
-
|
|
2477
|
-
# Update properties of this object
|
|
2478
|
-
def update!(**args)
|
|
2479
|
-
@disk_quota = args[:disk_quota] if args.key?(:disk_quota)
|
|
2480
|
-
@ram = args[:ram] if args.key?(:ram)
|
|
2481
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
2482
|
-
@region = args[:region] if args.key?(:region)
|
|
2483
|
-
@tier = args[:tier] if args.key?(:tier)
|
|
2484
|
-
end
|
|
2485
|
-
end
|
|
2486
|
-
|
|
2487
|
-
# Tiers list response.
|
|
2488
|
-
class ListTiersResponse
|
|
2489
|
-
include Google::Apis::Core::Hashable
|
|
2490
|
-
|
|
2491
|
-
# List of tiers.
|
|
2492
|
-
# Corresponds to the JSON property `items`
|
|
2493
|
-
# @return [Array<Google::Apis::SqladminV1beta4::Tier>]
|
|
2494
|
-
attr_accessor :items
|
|
2495
|
-
|
|
2496
|
-
# This is always sql#tiersList.
|
|
2497
|
-
# Corresponds to the JSON property `kind`
|
|
2498
|
-
# @return [String]
|
|
2499
|
-
attr_accessor :kind
|
|
2500
|
-
|
|
2501
|
-
def initialize(**args)
|
|
2502
|
-
update!(**args)
|
|
2503
|
-
end
|
|
2504
|
-
|
|
2505
|
-
# Update properties of this object
|
|
2506
|
-
def update!(**args)
|
|
2507
|
-
@items = args[:items] if args.key?(:items)
|
|
2508
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
2509
|
-
end
|
|
2510
|
-
end
|
|
2511
|
-
|
|
2512
|
-
# Database Instance truncate log context.
|
|
2513
|
-
class TruncateLogContext
|
|
2514
|
-
include Google::Apis::Core::Hashable
|
|
2515
|
-
|
|
2516
|
-
# This is always sql#truncateLogContext.
|
|
2517
|
-
# Corresponds to the JSON property `kind`
|
|
2518
|
-
# @return [String]
|
|
2519
|
-
attr_accessor :kind
|
|
2520
|
-
|
|
2521
|
-
# The type of log to truncate. Valid values are MYSQL_GENERAL_TABLE and
|
|
2522
|
-
# MYSQL_SLOW_TABLE.
|
|
2523
|
-
# Corresponds to the JSON property `logType`
|
|
2524
|
-
# @return [String]
|
|
2525
|
-
attr_accessor :log_type
|
|
2526
|
-
|
|
2527
|
-
def initialize(**args)
|
|
2528
|
-
update!(**args)
|
|
2529
|
-
end
|
|
2530
|
-
|
|
2531
|
-
# Update properties of this object
|
|
2532
|
-
def update!(**args)
|
|
2533
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
2534
|
-
@log_type = args[:log_type] if args.key?(:log_type)
|
|
2535
|
-
end
|
|
2536
|
-
end
|
|
2537
|
-
|
|
2538
|
-
# A Cloud SQL user resource.
|
|
2539
|
-
class User
|
|
2540
|
-
include Google::Apis::Core::Hashable
|
|
2541
|
-
|
|
2542
|
-
# This field is deprecated and will be removed from a future version of the API.
|
|
2543
|
-
# Corresponds to the JSON property `etag`
|
|
2544
|
-
# @return [String]
|
|
2545
|
-
attr_accessor :etag
|
|
2546
|
-
|
|
2547
|
-
# The host name from which the user can connect. For insert operations, host
|
|
2548
|
-
# defaults to an empty string. For update operations, host is specified as part
|
|
2549
|
-
# of the request URL. The host name cannot be updated after insertion.
|
|
2550
|
-
# Corresponds to the JSON property `host`
|
|
2551
|
-
# @return [String]
|
|
2552
|
-
attr_accessor :host
|
|
2553
|
-
|
|
2554
|
-
# The name of the Cloud SQL instance. This does not include the project ID. Can
|
|
2555
|
-
# be omitted for update since it is already specified on the URL.
|
|
2556
|
-
# Corresponds to the JSON property `instance`
|
|
2557
|
-
# @return [String]
|
|
2558
|
-
attr_accessor :instance
|
|
2559
|
-
|
|
2560
|
-
# This is always sql#user.
|
|
2561
|
-
# Corresponds to the JSON property `kind`
|
|
2562
|
-
# @return [String]
|
|
2563
|
-
attr_accessor :kind
|
|
2564
|
-
|
|
2565
|
-
# The name of the user in the Cloud SQL instance. Can be omitted for update
|
|
2566
|
-
# since it is already specified in the URL.
|
|
2567
|
-
# Corresponds to the JSON property `name`
|
|
2568
|
-
# @return [String]
|
|
2569
|
-
attr_accessor :name
|
|
2570
|
-
|
|
2571
|
-
# The password for the user.
|
|
2572
|
-
# Corresponds to the JSON property `password`
|
|
2573
|
-
# @return [String]
|
|
2574
|
-
attr_accessor :password
|
|
2575
|
-
|
|
2576
|
-
# The project ID of the project containing the Cloud SQL database. The Google
|
|
2577
|
-
# apps domain is prefixed if applicable. Can be omitted for update since it is
|
|
2578
|
-
# already specified on the URL.
|
|
2579
|
-
# Corresponds to the JSON property `project`
|
|
2580
|
-
# @return [String]
|
|
2581
|
-
attr_accessor :project
|
|
2582
|
-
|
|
2583
|
-
def initialize(**args)
|
|
2584
|
-
update!(**args)
|
|
2585
|
-
end
|
|
2586
|
-
|
|
2587
|
-
# Update properties of this object
|
|
2588
|
-
def update!(**args)
|
|
2589
|
-
@etag = args[:etag] if args.key?(:etag)
|
|
2590
|
-
@host = args[:host] if args.key?(:host)
|
|
2591
|
-
@instance = args[:instance] if args.key?(:instance)
|
|
2592
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
2593
|
-
@name = args[:name] if args.key?(:name)
|
|
2594
|
-
@password = args[:password] if args.key?(:password)
|
|
2595
|
-
@project = args[:project] if args.key?(:project)
|
|
2596
|
-
end
|
|
2597
|
-
end
|
|
2598
|
-
|
|
2599
|
-
# User list response.
|
|
2600
|
-
class ListUsersResponse
|
|
2601
|
-
include Google::Apis::Core::Hashable
|
|
2602
|
-
|
|
2603
|
-
# List of user resources in the instance.
|
|
2604
|
-
# Corresponds to the JSON property `items`
|
|
2605
|
-
# @return [Array<Google::Apis::SqladminV1beta4::User>]
|
|
2606
|
-
attr_accessor :items
|
|
2607
|
-
|
|
2608
|
-
# This is always sql#usersList.
|
|
2609
|
-
# Corresponds to the JSON property `kind`
|
|
2610
|
-
# @return [String]
|
|
2611
|
-
attr_accessor :kind
|
|
2612
|
-
|
|
2613
|
-
# An identifier that uniquely identifies the operation. You can use this
|
|
2614
|
-
# identifier to retrieve the Operations resource that has information about the
|
|
2615
|
-
# operation.
|
|
2616
|
-
# Corresponds to the JSON property `nextPageToken`
|
|
2617
|
-
# @return [String]
|
|
2618
|
-
attr_accessor :next_page_token
|
|
2619
|
-
|
|
2620
|
-
def initialize(**args)
|
|
2621
|
-
update!(**args)
|
|
2622
|
-
end
|
|
2623
|
-
|
|
2624
|
-
# Update properties of this object
|
|
2625
|
-
def update!(**args)
|
|
2626
|
-
@items = args[:items] if args.key?(:items)
|
|
2627
|
-
@kind = args[:kind] if args.key?(:kind)
|
|
2628
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
2629
|
-
end
|
|
2630
|
-
end
|
|
2631
|
-
end
|
|
2632
|
-
end
|
|
2633
|
-
end
|