google-api-client 0.44.2 → 0.45.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +61 -0
- data/generated/google/apis/admob_v1.rb +4 -1
- data/generated/google/apis/admob_v1/classes.rb +2 -2
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +2 -2
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +206 -2
- data/generated/google/apis/apigee_v1/representations.rb +74 -0
- data/generated/google/apis/apigee_v1/service.rb +41 -19
- 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/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +7 -0
- data/generated/google/apis/artifactregistry_v1beta1/representations.rb +1 -0
- data/generated/google/apis/assuredworkloads_v1beta1.rb +34 -0
- data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +458 -0
- data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +230 -0
- data/generated/google/apis/assuredworkloads_v1beta1/service.rb +328 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +15 -5
- data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +3 -3
- data/generated/google/apis/classroom_v1.rb +7 -1
- data/generated/google/apis/classroom_v1/classes.rb +132 -0
- data/generated/google/apis/classroom_v1/representations.rb +43 -0
- data/generated/google/apis/classroom_v1/service.rb +240 -0
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +52 -0
- data/generated/google/apis/cloudasset_v1/representations.rb +16 -0
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +4 -2
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +4 -4
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/classes.rb +84 -0
- data/generated/google/apis/cloudidentity_v1/representations.rb +46 -0
- data/generated/google/apis/cloudidentity_v1/service.rb +39 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +7 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +1 -0
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +7 -0
- data/generated/google/apis/cloudtasks_v2/representations.rb +1 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +25 -19
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +7 -0
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +28 -0
- data/generated/google/apis/container_v1beta1/representations.rb +15 -0
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +1 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/customsearch_v1/service.rb +2 -2
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +135 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +30 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +10 -1
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +3 -3
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +5 -4
- data/generated/google/apis/dfareporting_v3_3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_3/service.rb +51 -54
- data/generated/google/apis/dfareporting_v3_4.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4/service.rb +51 -54
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +18 -0
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +2 -0
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +4 -4
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/service.rb +1 -3
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +7 -0
- data/generated/google/apis/healthcare_v1beta1/representations.rb +1 -0
- data/generated/google/apis/healthcare_v1beta1/service.rb +1 -3
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/service.rb +2 -1
- data/generated/google/apis/licensing_v1.rb +4 -3
- data/generated/google/apis/licensing_v1/classes.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +55 -85
- data/generated/google/apis/monitoring_v1.rb +1 -1
- data/generated/google/apis/monitoring_v1/classes.rb +10 -10
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +36 -30
- data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +68 -0
- data/generated/google/apis/networkmanagement_v1beta1/representations.rb +23 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +7 -0
- data/generated/google/apis/pubsub_v1/representations.rb +1 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +7 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -0
- data/generated/google/apis/pubsublite_v1.rb +1 -1
- data/generated/google/apis/pubsublite_v1/classes.rb +72 -0
- data/generated/google/apis/pubsublite_v1/representations.rb +33 -0
- data/generated/google/apis/pubsublite_v1/service.rb +33 -0
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +0 -386
- data/generated/google/apis/redis_v1/representations.rb +0 -139
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +0 -386
- data/generated/google/apis/redis_v1beta1/representations.rb +0 -139
- data/generated/google/apis/reseller_v1.rb +2 -2
- data/generated/google/apis/reseller_v1/classes.rb +151 -219
- data/generated/google/apis/reseller_v1/service.rb +122 -173
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +8 -8
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/classes.rb +20 -0
- data/generated/google/apis/sasportal_v1alpha1/representations.rb +13 -0
- data/generated/google/apis/sasportal_v1alpha1/service.rb +479 -0
- data/generated/google/apis/secretmanager_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +12 -12
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +31 -29
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +8 -5
- data/generated/google/apis/servicecontrol_v2.rb +1 -1
- data/generated/google/apis/servicecontrol_v2/classes.rb +7 -4
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +1 -1
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +7 -0
- data/generated/google/apis/spanner_v1/representations.rb +1 -0
- data/generated/google/apis/{sql_v1beta4.rb → sqladmin_v1beta4.rb} +5 -5
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/classes.rb +142 -97
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/representations.rb +104 -87
- data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/service.rb +244 -244
- data/generated/google/apis/tagmanager_v2.rb +1 -1
- data/generated/google/apis/tasks_v1.rb +1 -1
- data/generated/google/apis/tasks_v1/classes.rb +1 -1
- data/generated/google/apis/tasks_v1/service.rb +4 -3
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +46 -845
- data/generated/google/apis/youtube_v3/representations.rb +0 -390
- data/generated/google/apis/youtube_v3/service.rb +2 -197
- data/lib/google/apis/version.rb +1 -1
- metadata +11 -11
- data/generated/google/apis/plus_v1.rb +0 -43
- data/generated/google/apis/plus_v1/classes.rb +0 -2094
- data/generated/google/apis/plus_v1/representations.rb +0 -907
- data/generated/google/apis/plus_v1/service.rb +0 -451
@@ -19,16 +19,16 @@ require 'google/apis/errors'
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Apis
|
22
|
-
module
|
22
|
+
module SqladminV1beta4
|
23
23
|
# Cloud SQL Admin API
|
24
24
|
#
|
25
25
|
# API for Cloud SQL database instance management
|
26
26
|
#
|
27
27
|
# @example
|
28
|
-
# require 'google/apis/
|
28
|
+
# require 'google/apis/sqladmin_v1beta4'
|
29
29
|
#
|
30
|
-
#
|
31
|
-
# service =
|
30
|
+
# Sqladmin = Google::Apis::SqladminV1beta4 # Alias the module
|
31
|
+
# service = Sqladmin::SQLAdminService.new
|
32
32
|
#
|
33
33
|
# @see https://developers.google.com/cloud-sql/
|
34
34
|
class SQLAdminService < Google::Apis::Core::BaseService
|
@@ -64,18 +64,18 @@ module Google
|
|
64
64
|
# Request-specific options
|
65
65
|
#
|
66
66
|
# @yield [result, err] Result & error if block supplied
|
67
|
-
# @yieldparam result [Google::Apis::
|
67
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
68
68
|
# @yieldparam err [StandardError] error object if request failed
|
69
69
|
#
|
70
|
-
# @return [Google::Apis::
|
70
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
71
71
|
#
|
72
72
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
73
73
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
74
74
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
75
75
|
def delete_backup_run(project, instance, id, fields: nil, quota_user: nil, options: nil, &block)
|
76
76
|
command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}', options)
|
77
|
-
command.response_representation = Google::Apis::
|
78
|
-
command.response_class = Google::Apis::
|
77
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
78
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
79
79
|
command.params['project'] = project unless project.nil?
|
80
80
|
command.params['instance'] = instance unless instance.nil?
|
81
81
|
command.params['id'] = id unless id.nil?
|
@@ -100,18 +100,18 @@ module Google
|
|
100
100
|
# Request-specific options
|
101
101
|
#
|
102
102
|
# @yield [result, err] Result & error if block supplied
|
103
|
-
# @yieldparam result [Google::Apis::
|
103
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::BackupRun] parsed result object
|
104
104
|
# @yieldparam err [StandardError] error object if request failed
|
105
105
|
#
|
106
|
-
# @return [Google::Apis::
|
106
|
+
# @return [Google::Apis::SqladminV1beta4::BackupRun]
|
107
107
|
#
|
108
108
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
109
109
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
110
110
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
111
111
|
def get_backup_run(project, instance, id, fields: nil, quota_user: nil, options: nil, &block)
|
112
112
|
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}', options)
|
113
|
-
command.response_representation = Google::Apis::
|
114
|
-
command.response_class = Google::Apis::
|
113
|
+
command.response_representation = Google::Apis::SqladminV1beta4::BackupRun::Representation
|
114
|
+
command.response_class = Google::Apis::SqladminV1beta4::BackupRun
|
115
115
|
command.params['project'] = project unless project.nil?
|
116
116
|
command.params['instance'] = instance unless instance.nil?
|
117
117
|
command.params['id'] = id unless id.nil?
|
@@ -126,7 +126,7 @@ module Google
|
|
126
126
|
# Project ID of the project that contains the instance.
|
127
127
|
# @param [String] instance
|
128
128
|
# Cloud SQL instance ID. This does not include the project ID.
|
129
|
-
# @param [Google::Apis::
|
129
|
+
# @param [Google::Apis::SqladminV1beta4::BackupRun] backup_run_object
|
130
130
|
# @param [String] fields
|
131
131
|
# Selector specifying which fields to include in a partial response.
|
132
132
|
# @param [String] quota_user
|
@@ -136,20 +136,20 @@ module Google
|
|
136
136
|
# Request-specific options
|
137
137
|
#
|
138
138
|
# @yield [result, err] Result & error if block supplied
|
139
|
-
# @yieldparam result [Google::Apis::
|
139
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
140
140
|
# @yieldparam err [StandardError] error object if request failed
|
141
141
|
#
|
142
|
-
# @return [Google::Apis::
|
142
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
143
143
|
#
|
144
144
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
145
145
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
146
146
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
147
147
|
def insert_backup_run(project, instance, backup_run_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
148
148
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns', options)
|
149
|
-
command.request_representation = Google::Apis::
|
149
|
+
command.request_representation = Google::Apis::SqladminV1beta4::BackupRun::Representation
|
150
150
|
command.request_object = backup_run_object
|
151
|
-
command.response_representation = Google::Apis::
|
152
|
-
command.response_class = Google::Apis::
|
151
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
152
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
153
153
|
command.params['project'] = project unless project.nil?
|
154
154
|
command.params['instance'] = instance unless instance.nil?
|
155
155
|
command.query['fields'] = fields unless fields.nil?
|
@@ -177,18 +177,18 @@ module Google
|
|
177
177
|
# Request-specific options
|
178
178
|
#
|
179
179
|
# @yield [result, err] Result & error if block supplied
|
180
|
-
# @yieldparam result [Google::Apis::
|
180
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::ListBackupRunsResponse] parsed result object
|
181
181
|
# @yieldparam err [StandardError] error object if request failed
|
182
182
|
#
|
183
|
-
# @return [Google::Apis::
|
183
|
+
# @return [Google::Apis::SqladminV1beta4::ListBackupRunsResponse]
|
184
184
|
#
|
185
185
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
186
186
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
187
187
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
188
188
|
def list_backup_runs(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
189
189
|
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns', options)
|
190
|
-
command.response_representation = Google::Apis::
|
191
|
-
command.response_class = Google::Apis::
|
190
|
+
command.response_representation = Google::Apis::SqladminV1beta4::ListBackupRunsResponse::Representation
|
191
|
+
command.response_class = Google::Apis::SqladminV1beta4::ListBackupRunsResponse
|
192
192
|
command.params['project'] = project unless project.nil?
|
193
193
|
command.params['instance'] = instance unless instance.nil?
|
194
194
|
command.query['maxResults'] = max_results unless max_results.nil?
|
@@ -214,18 +214,18 @@ module Google
|
|
214
214
|
# Request-specific options
|
215
215
|
#
|
216
216
|
# @yield [result, err] Result & error if block supplied
|
217
|
-
# @yieldparam result [Google::Apis::
|
217
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
218
218
|
# @yieldparam err [StandardError] error object if request failed
|
219
219
|
#
|
220
|
-
# @return [Google::Apis::
|
220
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
221
221
|
#
|
222
222
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
223
223
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
224
224
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
225
225
|
def delete_database(project, instance, database, fields: nil, quota_user: nil, options: nil, &block)
|
226
226
|
command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options)
|
227
|
-
command.response_representation = Google::Apis::
|
228
|
-
command.response_class = Google::Apis::
|
227
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
228
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
229
229
|
command.params['project'] = project unless project.nil?
|
230
230
|
command.params['instance'] = instance unless instance.nil?
|
231
231
|
command.params['database'] = database unless database.nil?
|
@@ -251,18 +251,18 @@ module Google
|
|
251
251
|
# Request-specific options
|
252
252
|
#
|
253
253
|
# @yield [result, err] Result & error if block supplied
|
254
|
-
# @yieldparam result [Google::Apis::
|
254
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Database] parsed result object
|
255
255
|
# @yieldparam err [StandardError] error object if request failed
|
256
256
|
#
|
257
|
-
# @return [Google::Apis::
|
257
|
+
# @return [Google::Apis::SqladminV1beta4::Database]
|
258
258
|
#
|
259
259
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
260
260
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
261
261
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
262
262
|
def get_database(project, instance, database, fields: nil, quota_user: nil, options: nil, &block)
|
263
263
|
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options)
|
264
|
-
command.response_representation = Google::Apis::
|
265
|
-
command.response_class = Google::Apis::
|
264
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Database::Representation
|
265
|
+
command.response_class = Google::Apis::SqladminV1beta4::Database
|
266
266
|
command.params['project'] = project unless project.nil?
|
267
267
|
command.params['instance'] = instance unless instance.nil?
|
268
268
|
command.params['database'] = database unless database.nil?
|
@@ -277,7 +277,7 @@ module Google
|
|
277
277
|
# Project ID of the project that contains the instance.
|
278
278
|
# @param [String] instance
|
279
279
|
# Database instance ID. This does not include the project ID.
|
280
|
-
# @param [Google::Apis::
|
280
|
+
# @param [Google::Apis::SqladminV1beta4::Database] database_object
|
281
281
|
# @param [String] fields
|
282
282
|
# Selector specifying which fields to include in a partial response.
|
283
283
|
# @param [String] quota_user
|
@@ -287,20 +287,20 @@ module Google
|
|
287
287
|
# Request-specific options
|
288
288
|
#
|
289
289
|
# @yield [result, err] Result & error if block supplied
|
290
|
-
# @yieldparam result [Google::Apis::
|
290
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
291
291
|
# @yieldparam err [StandardError] error object if request failed
|
292
292
|
#
|
293
|
-
# @return [Google::Apis::
|
293
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
294
294
|
#
|
295
295
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
296
296
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
297
297
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
298
298
|
def insert_database(project, instance, database_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
299
299
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/databases', options)
|
300
|
-
command.request_representation = Google::Apis::
|
300
|
+
command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation
|
301
301
|
command.request_object = database_object
|
302
|
-
command.response_representation = Google::Apis::
|
303
|
-
command.response_class = Google::Apis::
|
302
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
303
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
304
304
|
command.params['project'] = project unless project.nil?
|
305
305
|
command.params['instance'] = instance unless instance.nil?
|
306
306
|
command.query['fields'] = fields unless fields.nil?
|
@@ -322,18 +322,18 @@ module Google
|
|
322
322
|
# Request-specific options
|
323
323
|
#
|
324
324
|
# @yield [result, err] Result & error if block supplied
|
325
|
-
# @yieldparam result [Google::Apis::
|
325
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::ListDatabasesResponse] parsed result object
|
326
326
|
# @yieldparam err [StandardError] error object if request failed
|
327
327
|
#
|
328
|
-
# @return [Google::Apis::
|
328
|
+
# @return [Google::Apis::SqladminV1beta4::ListDatabasesResponse]
|
329
329
|
#
|
330
330
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
331
331
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
332
332
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
333
333
|
def list_databases(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
334
334
|
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/databases', options)
|
335
|
-
command.response_representation = Google::Apis::
|
336
|
-
command.response_class = Google::Apis::
|
335
|
+
command.response_representation = Google::Apis::SqladminV1beta4::ListDatabasesResponse::Representation
|
336
|
+
command.response_class = Google::Apis::SqladminV1beta4::ListDatabasesResponse
|
337
337
|
command.params['project'] = project unless project.nil?
|
338
338
|
command.params['instance'] = instance unless instance.nil?
|
339
339
|
command.query['fields'] = fields unless fields.nil?
|
@@ -349,7 +349,7 @@ module Google
|
|
349
349
|
# Database instance ID. This does not include the project ID.
|
350
350
|
# @param [String] database
|
351
351
|
# Name of the database to be updated in the instance.
|
352
|
-
# @param [Google::Apis::
|
352
|
+
# @param [Google::Apis::SqladminV1beta4::Database] database_object
|
353
353
|
# @param [String] fields
|
354
354
|
# Selector specifying which fields to include in a partial response.
|
355
355
|
# @param [String] quota_user
|
@@ -359,20 +359,20 @@ module Google
|
|
359
359
|
# Request-specific options
|
360
360
|
#
|
361
361
|
# @yield [result, err] Result & error if block supplied
|
362
|
-
# @yieldparam result [Google::Apis::
|
362
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
363
363
|
# @yieldparam err [StandardError] error object if request failed
|
364
364
|
#
|
365
|
-
# @return [Google::Apis::
|
365
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
366
366
|
#
|
367
367
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
368
368
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
369
369
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
370
370
|
def patch_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
371
371
|
command = make_simple_command(:patch, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options)
|
372
|
-
command.request_representation = Google::Apis::
|
372
|
+
command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation
|
373
373
|
command.request_object = database_object
|
374
|
-
command.response_representation = Google::Apis::
|
375
|
-
command.response_class = Google::Apis::
|
374
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
375
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
376
376
|
command.params['project'] = project unless project.nil?
|
377
377
|
command.params['instance'] = instance unless instance.nil?
|
378
378
|
command.params['database'] = database unless database.nil?
|
@@ -389,7 +389,7 @@ module Google
|
|
389
389
|
# Database instance ID. This does not include the project ID.
|
390
390
|
# @param [String] database
|
391
391
|
# Name of the database to be updated in the instance.
|
392
|
-
# @param [Google::Apis::
|
392
|
+
# @param [Google::Apis::SqladminV1beta4::Database] database_object
|
393
393
|
# @param [String] fields
|
394
394
|
# Selector specifying which fields to include in a partial response.
|
395
395
|
# @param [String] quota_user
|
@@ -399,20 +399,20 @@ module Google
|
|
399
399
|
# Request-specific options
|
400
400
|
#
|
401
401
|
# @yield [result, err] Result & error if block supplied
|
402
|
-
# @yieldparam result [Google::Apis::
|
402
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
403
403
|
# @yieldparam err [StandardError] error object if request failed
|
404
404
|
#
|
405
|
-
# @return [Google::Apis::
|
405
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
406
406
|
#
|
407
407
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
408
408
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
409
409
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
410
410
|
def update_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
411
411
|
command = make_simple_command(:put, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options)
|
412
|
-
command.request_representation = Google::Apis::
|
412
|
+
command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation
|
413
413
|
command.request_object = database_object
|
414
|
-
command.response_representation = Google::Apis::
|
415
|
-
command.response_class = Google::Apis::
|
414
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
415
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
416
416
|
command.params['project'] = project unless project.nil?
|
417
417
|
command.params['instance'] = instance unless instance.nil?
|
418
418
|
command.params['database'] = database unless database.nil?
|
@@ -434,18 +434,18 @@ module Google
|
|
434
434
|
# Request-specific options
|
435
435
|
#
|
436
436
|
# @yield [result, err] Result & error if block supplied
|
437
|
-
# @yieldparam result [Google::Apis::
|
437
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::ListFlagsResponse] parsed result object
|
438
438
|
# @yieldparam err [StandardError] error object if request failed
|
439
439
|
#
|
440
|
-
# @return [Google::Apis::
|
440
|
+
# @return [Google::Apis::SqladminV1beta4::ListFlagsResponse]
|
441
441
|
#
|
442
442
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
443
443
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
444
444
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
445
445
|
def list_flags(database_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
446
446
|
command = make_simple_command(:get, 'sql/v1beta4/flags', options)
|
447
|
-
command.response_representation = Google::Apis::
|
448
|
-
command.response_class = Google::Apis::
|
447
|
+
command.response_representation = Google::Apis::SqladminV1beta4::ListFlagsResponse::Representation
|
448
|
+
command.response_class = Google::Apis::SqladminV1beta4::ListFlagsResponse
|
449
449
|
command.query['databaseVersion'] = database_version unless database_version.nil?
|
450
450
|
command.query['fields'] = fields unless fields.nil?
|
451
451
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -470,18 +470,18 @@ module Google
|
|
470
470
|
# Request-specific options
|
471
471
|
#
|
472
472
|
# @yield [result, err] Result & error if block supplied
|
473
|
-
# @yieldparam result [Google::Apis::
|
473
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
474
474
|
# @yieldparam err [StandardError] error object if request failed
|
475
475
|
#
|
476
|
-
# @return [Google::Apis::
|
476
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
477
477
|
#
|
478
478
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
479
479
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
480
480
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
481
481
|
def add_instance_server_ca(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
482
482
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/addServerCa', options)
|
483
|
-
command.response_representation = Google::Apis::
|
484
|
-
command.response_class = Google::Apis::
|
483
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
484
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
485
485
|
command.params['project'] = project unless project.nil?
|
486
486
|
command.params['instance'] = instance unless instance.nil?
|
487
487
|
command.query['fields'] = fields unless fields.nil?
|
@@ -496,7 +496,7 @@ module Google
|
|
496
496
|
# @param [String] instance
|
497
497
|
# The ID of the Cloud SQL instance to be cloned (source). This does not include
|
498
498
|
# the project ID.
|
499
|
-
# @param [Google::Apis::
|
499
|
+
# @param [Google::Apis::SqladminV1beta4::CloneInstancesRequest] clone_instances_request_object
|
500
500
|
# @param [String] fields
|
501
501
|
# Selector specifying which fields to include in a partial response.
|
502
502
|
# @param [String] quota_user
|
@@ -506,20 +506,20 @@ module Google
|
|
506
506
|
# Request-specific options
|
507
507
|
#
|
508
508
|
# @yield [result, err] Result & error if block supplied
|
509
|
-
# @yieldparam result [Google::Apis::
|
509
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
510
510
|
# @yieldparam err [StandardError] error object if request failed
|
511
511
|
#
|
512
|
-
# @return [Google::Apis::
|
512
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
513
513
|
#
|
514
514
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
515
515
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
516
516
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
517
|
-
def clone_instance(project, instance,
|
517
|
+
def clone_instance(project, instance, clone_instances_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
518
518
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/clone', options)
|
519
|
-
command.request_representation = Google::Apis::
|
520
|
-
command.request_object =
|
521
|
-
command.response_representation = Google::Apis::
|
522
|
-
command.response_class = Google::Apis::
|
519
|
+
command.request_representation = Google::Apis::SqladminV1beta4::CloneInstancesRequest::Representation
|
520
|
+
command.request_object = clone_instances_request_object
|
521
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
522
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
523
523
|
command.params['project'] = project unless project.nil?
|
524
524
|
command.params['instance'] = instance unless instance.nil?
|
525
525
|
command.query['fields'] = fields unless fields.nil?
|
@@ -541,18 +541,18 @@ module Google
|
|
541
541
|
# Request-specific options
|
542
542
|
#
|
543
543
|
# @yield [result, err] Result & error if block supplied
|
544
|
-
# @yieldparam result [Google::Apis::
|
544
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
545
545
|
# @yieldparam err [StandardError] error object if request failed
|
546
546
|
#
|
547
|
-
# @return [Google::Apis::
|
547
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
548
548
|
#
|
549
549
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
550
550
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
551
551
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
552
552
|
def delete_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
553
553
|
command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}', options)
|
554
|
-
command.response_representation = Google::Apis::
|
555
|
-
command.response_class = Google::Apis::
|
554
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
555
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
556
556
|
command.params['project'] = project unless project.nil?
|
557
557
|
command.params['instance'] = instance unless instance.nil?
|
558
558
|
command.query['fields'] = fields unless fields.nil?
|
@@ -566,7 +566,7 @@ module Google
|
|
566
566
|
# ID of the project that contains the instance.
|
567
567
|
# @param [String] instance
|
568
568
|
# Cloud SQL instance name.
|
569
|
-
# @param [Google::Apis::
|
569
|
+
# @param [Google::Apis::SqladminV1beta4::InstancesDemoteMasterRequest] instances_demote_master_request_object
|
570
570
|
# @param [String] fields
|
571
571
|
# Selector specifying which fields to include in a partial response.
|
572
572
|
# @param [String] quota_user
|
@@ -576,20 +576,20 @@ module Google
|
|
576
576
|
# Request-specific options
|
577
577
|
#
|
578
578
|
# @yield [result, err] Result & error if block supplied
|
579
|
-
# @yieldparam result [Google::Apis::
|
579
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
580
580
|
# @yieldparam err [StandardError] error object if request failed
|
581
581
|
#
|
582
|
-
# @return [Google::Apis::
|
582
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
583
583
|
#
|
584
584
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
585
585
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
586
586
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
587
587
|
def demote_instance_master(project, instance, instances_demote_master_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
588
588
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster', options)
|
589
|
-
command.request_representation = Google::Apis::
|
589
|
+
command.request_representation = Google::Apis::SqladminV1beta4::InstancesDemoteMasterRequest::Representation
|
590
590
|
command.request_object = instances_demote_master_request_object
|
591
|
-
command.response_representation = Google::Apis::
|
592
|
-
command.response_class = Google::Apis::
|
591
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
592
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
593
593
|
command.params['project'] = project unless project.nil?
|
594
594
|
command.params['instance'] = instance unless instance.nil?
|
595
595
|
command.query['fields'] = fields unless fields.nil?
|
@@ -603,7 +603,7 @@ module Google
|
|
603
603
|
# Project ID of the project that contains the instance to be exported.
|
604
604
|
# @param [String] instance
|
605
605
|
# Cloud SQL instance ID. This does not include the project ID.
|
606
|
-
# @param [Google::Apis::
|
606
|
+
# @param [Google::Apis::SqladminV1beta4::ExportInstancesRequest] export_instances_request_object
|
607
607
|
# @param [String] fields
|
608
608
|
# Selector specifying which fields to include in a partial response.
|
609
609
|
# @param [String] quota_user
|
@@ -613,20 +613,20 @@ module Google
|
|
613
613
|
# Request-specific options
|
614
614
|
#
|
615
615
|
# @yield [result, err] Result & error if block supplied
|
616
|
-
# @yieldparam result [Google::Apis::
|
616
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
617
617
|
# @yieldparam err [StandardError] error object if request failed
|
618
618
|
#
|
619
|
-
# @return [Google::Apis::
|
619
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
620
620
|
#
|
621
621
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
622
622
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
623
623
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
624
|
-
def export_instance(project, instance,
|
624
|
+
def export_instance(project, instance, export_instances_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
625
625
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/export', options)
|
626
|
-
command.request_representation = Google::Apis::
|
627
|
-
command.request_object =
|
628
|
-
command.response_representation = Google::Apis::
|
629
|
-
command.response_class = Google::Apis::
|
626
|
+
command.request_representation = Google::Apis::SqladminV1beta4::ExportInstancesRequest::Representation
|
627
|
+
command.request_object = export_instances_request_object
|
628
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
629
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
630
630
|
command.params['project'] = project unless project.nil?
|
631
631
|
command.params['instance'] = instance unless instance.nil?
|
632
632
|
command.query['fields'] = fields unless fields.nil?
|
@@ -640,7 +640,7 @@ module Google
|
|
640
640
|
# ID of the project that contains the read replica.
|
641
641
|
# @param [String] instance
|
642
642
|
# Cloud SQL instance ID. This does not include the project ID.
|
643
|
-
# @param [Google::Apis::
|
643
|
+
# @param [Google::Apis::SqladminV1beta4::InstancesFailoverRequest] instances_failover_request_object
|
644
644
|
# @param [String] fields
|
645
645
|
# Selector specifying which fields to include in a partial response.
|
646
646
|
# @param [String] quota_user
|
@@ -650,20 +650,20 @@ module Google
|
|
650
650
|
# Request-specific options
|
651
651
|
#
|
652
652
|
# @yield [result, err] Result & error if block supplied
|
653
|
-
# @yieldparam result [Google::Apis::
|
653
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
654
654
|
# @yieldparam err [StandardError] error object if request failed
|
655
655
|
#
|
656
|
-
# @return [Google::Apis::
|
656
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
657
657
|
#
|
658
658
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
659
659
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
660
660
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
661
661
|
def failover_instance(project, instance, instances_failover_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
662
662
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/failover', options)
|
663
|
-
command.request_representation = Google::Apis::
|
663
|
+
command.request_representation = Google::Apis::SqladminV1beta4::InstancesFailoverRequest::Representation
|
664
664
|
command.request_object = instances_failover_request_object
|
665
|
-
command.response_representation = Google::Apis::
|
666
|
-
command.response_class = Google::Apis::
|
665
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
666
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
667
667
|
command.params['project'] = project unless project.nil?
|
668
668
|
command.params['instance'] = instance unless instance.nil?
|
669
669
|
command.query['fields'] = fields unless fields.nil?
|
@@ -685,18 +685,18 @@ module Google
|
|
685
685
|
# Request-specific options
|
686
686
|
#
|
687
687
|
# @yield [result, err] Result & error if block supplied
|
688
|
-
# @yieldparam result [Google::Apis::
|
688
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::DatabaseInstance] parsed result object
|
689
689
|
# @yieldparam err [StandardError] error object if request failed
|
690
690
|
#
|
691
|
-
# @return [Google::Apis::
|
691
|
+
# @return [Google::Apis::SqladminV1beta4::DatabaseInstance]
|
692
692
|
#
|
693
693
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
694
694
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
695
695
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
696
696
|
def get_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
697
697
|
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}', options)
|
698
|
-
command.response_representation = Google::Apis::
|
699
|
-
command.response_class = Google::Apis::
|
698
|
+
command.response_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
|
699
|
+
command.response_class = Google::Apis::SqladminV1beta4::DatabaseInstance
|
700
700
|
command.params['project'] = project unless project.nil?
|
701
701
|
command.params['instance'] = instance unless instance.nil?
|
702
702
|
command.query['fields'] = fields unless fields.nil?
|
@@ -710,7 +710,7 @@ module Google
|
|
710
710
|
# Project ID of the project that contains the instance.
|
711
711
|
# @param [String] instance
|
712
712
|
# Cloud SQL instance ID. This does not include the project ID.
|
713
|
-
# @param [Google::Apis::
|
713
|
+
# @param [Google::Apis::SqladminV1beta4::ImportInstancesRequest] import_instances_request_object
|
714
714
|
# @param [String] fields
|
715
715
|
# Selector specifying which fields to include in a partial response.
|
716
716
|
# @param [String] quota_user
|
@@ -720,20 +720,20 @@ module Google
|
|
720
720
|
# Request-specific options
|
721
721
|
#
|
722
722
|
# @yield [result, err] Result & error if block supplied
|
723
|
-
# @yieldparam result [Google::Apis::
|
723
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
724
724
|
# @yieldparam err [StandardError] error object if request failed
|
725
725
|
#
|
726
|
-
# @return [Google::Apis::
|
726
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
727
727
|
#
|
728
728
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
729
729
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
730
730
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
731
|
-
def import_instance(project, instance,
|
731
|
+
def import_instance(project, instance, import_instances_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
732
732
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/import', options)
|
733
|
-
command.request_representation = Google::Apis::
|
734
|
-
command.request_object =
|
735
|
-
command.response_representation = Google::Apis::
|
736
|
-
command.response_class = Google::Apis::
|
733
|
+
command.request_representation = Google::Apis::SqladminV1beta4::ImportInstancesRequest::Representation
|
734
|
+
command.request_object = import_instances_request_object
|
735
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
736
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
737
737
|
command.params['project'] = project unless project.nil?
|
738
738
|
command.params['instance'] = instance unless instance.nil?
|
739
739
|
command.query['fields'] = fields unless fields.nil?
|
@@ -745,7 +745,7 @@ module Google
|
|
745
745
|
# @param [String] project
|
746
746
|
# Project ID of the project to which the newly created Cloud SQL instances
|
747
747
|
# should belong.
|
748
|
-
# @param [Google::Apis::
|
748
|
+
# @param [Google::Apis::SqladminV1beta4::DatabaseInstance] database_instance_object
|
749
749
|
# @param [String] fields
|
750
750
|
# Selector specifying which fields to include in a partial response.
|
751
751
|
# @param [String] quota_user
|
@@ -755,20 +755,20 @@ module Google
|
|
755
755
|
# Request-specific options
|
756
756
|
#
|
757
757
|
# @yield [result, err] Result & error if block supplied
|
758
|
-
# @yieldparam result [Google::Apis::
|
758
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
759
759
|
# @yieldparam err [StandardError] error object if request failed
|
760
760
|
#
|
761
|
-
# @return [Google::Apis::
|
761
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
762
762
|
#
|
763
763
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
764
764
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
765
765
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
766
766
|
def insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
767
767
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances', options)
|
768
|
-
command.request_representation = Google::Apis::
|
768
|
+
command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
|
769
769
|
command.request_object = database_instance_object
|
770
|
-
command.response_representation = Google::Apis::
|
771
|
-
command.response_class = Google::Apis::
|
770
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
771
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
772
772
|
command.params['project'] = project unless project.nil?
|
773
773
|
command.query['fields'] = fields unless fields.nil?
|
774
774
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -800,18 +800,18 @@ module Google
|
|
800
800
|
# Request-specific options
|
801
801
|
#
|
802
802
|
# @yield [result, err] Result & error if block supplied
|
803
|
-
# @yieldparam result [Google::Apis::
|
803
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::ListInstancesResponse] parsed result object
|
804
804
|
# @yieldparam err [StandardError] error object if request failed
|
805
805
|
#
|
806
|
-
# @return [Google::Apis::
|
806
|
+
# @return [Google::Apis::SqladminV1beta4::ListInstancesResponse]
|
807
807
|
#
|
808
808
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
809
809
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
810
810
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
811
811
|
def list_instances(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
812
812
|
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances', options)
|
813
|
-
command.response_representation = Google::Apis::
|
814
|
-
command.response_class = Google::Apis::
|
813
|
+
command.response_representation = Google::Apis::SqladminV1beta4::ListInstancesResponse::Representation
|
814
|
+
command.response_class = Google::Apis::SqladminV1beta4::ListInstancesResponse
|
815
815
|
command.params['project'] = project unless project.nil?
|
816
816
|
command.query['filter'] = filter unless filter.nil?
|
817
817
|
command.query['maxResults'] = max_results unless max_results.nil?
|
@@ -839,18 +839,18 @@ module Google
|
|
839
839
|
# Request-specific options
|
840
840
|
#
|
841
841
|
# @yield [result, err] Result & error if block supplied
|
842
|
-
# @yieldparam result [Google::Apis::
|
842
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::InstancesListServerCasResponse] parsed result object
|
843
843
|
# @yieldparam err [StandardError] error object if request failed
|
844
844
|
#
|
845
|
-
# @return [Google::Apis::
|
845
|
+
# @return [Google::Apis::SqladminV1beta4::InstancesListServerCasResponse]
|
846
846
|
#
|
847
847
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
848
848
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
849
849
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
850
850
|
def list_instance_server_cas(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
851
851
|
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/listServerCas', options)
|
852
|
-
command.response_representation = Google::Apis::
|
853
|
-
command.response_class = Google::Apis::
|
852
|
+
command.response_representation = Google::Apis::SqladminV1beta4::InstancesListServerCasResponse::Representation
|
853
|
+
command.response_class = Google::Apis::SqladminV1beta4::InstancesListServerCasResponse
|
854
854
|
command.params['project'] = project unless project.nil?
|
855
855
|
command.params['instance'] = instance unless instance.nil?
|
856
856
|
command.query['fields'] = fields unless fields.nil?
|
@@ -863,7 +863,7 @@ module Google
|
|
863
863
|
# Project ID of the project that contains the instance.
|
864
864
|
# @param [String] instance
|
865
865
|
# Cloud SQL instance ID. This does not include the project ID.
|
866
|
-
# @param [Google::Apis::
|
866
|
+
# @param [Google::Apis::SqladminV1beta4::DatabaseInstance] database_instance_object
|
867
867
|
# @param [String] fields
|
868
868
|
# Selector specifying which fields to include in a partial response.
|
869
869
|
# @param [String] quota_user
|
@@ -873,20 +873,20 @@ module Google
|
|
873
873
|
# Request-specific options
|
874
874
|
#
|
875
875
|
# @yield [result, err] Result & error if block supplied
|
876
|
-
# @yieldparam result [Google::Apis::
|
876
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
877
877
|
# @yieldparam err [StandardError] error object if request failed
|
878
878
|
#
|
879
|
-
# @return [Google::Apis::
|
879
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
880
880
|
#
|
881
881
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
882
882
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
883
883
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
884
884
|
def patch_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
885
885
|
command = make_simple_command(:patch, 'sql/v1beta4/projects/{project}/instances/{instance}', options)
|
886
|
-
command.request_representation = Google::Apis::
|
886
|
+
command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
|
887
887
|
command.request_object = database_instance_object
|
888
|
-
command.response_representation = Google::Apis::
|
889
|
-
command.response_class = Google::Apis::
|
888
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
889
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
890
890
|
command.params['project'] = project unless project.nil?
|
891
891
|
command.params['instance'] = instance unless instance.nil?
|
892
892
|
command.query['fields'] = fields unless fields.nil?
|
@@ -909,18 +909,18 @@ module Google
|
|
909
909
|
# Request-specific options
|
910
910
|
#
|
911
911
|
# @yield [result, err] Result & error if block supplied
|
912
|
-
# @yieldparam result [Google::Apis::
|
912
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
913
913
|
# @yieldparam err [StandardError] error object if request failed
|
914
914
|
#
|
915
|
-
# @return [Google::Apis::
|
915
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
916
916
|
#
|
917
917
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
918
918
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
919
919
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
920
920
|
def promote_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
921
921
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica', options)
|
922
|
-
command.response_representation = Google::Apis::
|
923
|
-
command.response_class = Google::Apis::
|
922
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
923
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
924
924
|
command.params['project'] = project unless project.nil?
|
925
925
|
command.params['instance'] = instance unless instance.nil?
|
926
926
|
command.query['fields'] = fields unless fields.nil?
|
@@ -943,18 +943,18 @@ module Google
|
|
943
943
|
# Request-specific options
|
944
944
|
#
|
945
945
|
# @yield [result, err] Result & error if block supplied
|
946
|
-
# @yieldparam result [Google::Apis::
|
946
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
947
947
|
# @yieldparam err [StandardError] error object if request failed
|
948
948
|
#
|
949
|
-
# @return [Google::Apis::
|
949
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
950
950
|
#
|
951
951
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
952
952
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
953
953
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
954
954
|
def reset_instance_ssl_config(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
955
955
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig', options)
|
956
|
-
command.response_representation = Google::Apis::
|
957
|
-
command.response_class = Google::Apis::
|
956
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
957
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
958
958
|
command.params['project'] = project unless project.nil?
|
959
959
|
command.params['instance'] = instance unless instance.nil?
|
960
960
|
command.query['fields'] = fields unless fields.nil?
|
@@ -976,18 +976,18 @@ module Google
|
|
976
976
|
# Request-specific options
|
977
977
|
#
|
978
978
|
# @yield [result, err] Result & error if block supplied
|
979
|
-
# @yieldparam result [Google::Apis::
|
979
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
980
980
|
# @yieldparam err [StandardError] error object if request failed
|
981
981
|
#
|
982
|
-
# @return [Google::Apis::
|
982
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
983
983
|
#
|
984
984
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
985
985
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
986
986
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
987
987
|
def restart_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
988
988
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/restart', options)
|
989
|
-
command.response_representation = Google::Apis::
|
990
|
-
command.response_class = Google::Apis::
|
989
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
990
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
991
991
|
command.params['project'] = project unless project.nil?
|
992
992
|
command.params['instance'] = instance unless instance.nil?
|
993
993
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1001,7 +1001,7 @@ module Google
|
|
1001
1001
|
# Project ID of the project that contains the instance.
|
1002
1002
|
# @param [String] instance
|
1003
1003
|
# Cloud SQL instance ID. This does not include the project ID.
|
1004
|
-
# @param [Google::Apis::
|
1004
|
+
# @param [Google::Apis::SqladminV1beta4::RestoreInstancesBackupRequest] restore_instances_backup_request_object
|
1005
1005
|
# @param [String] fields
|
1006
1006
|
# Selector specifying which fields to include in a partial response.
|
1007
1007
|
# @param [String] quota_user
|
@@ -1011,20 +1011,20 @@ module Google
|
|
1011
1011
|
# Request-specific options
|
1012
1012
|
#
|
1013
1013
|
# @yield [result, err] Result & error if block supplied
|
1014
|
-
# @yieldparam result [Google::Apis::
|
1014
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
1015
1015
|
# @yieldparam err [StandardError] error object if request failed
|
1016
1016
|
#
|
1017
|
-
# @return [Google::Apis::
|
1017
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
1018
1018
|
#
|
1019
1019
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1020
1020
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1021
1021
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1022
|
-
def restore_instance_backup(project, instance,
|
1022
|
+
def restore_instance_backup(project, instance, restore_instances_backup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1023
1023
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup', options)
|
1024
|
-
command.request_representation = Google::Apis::
|
1025
|
-
command.request_object =
|
1026
|
-
command.response_representation = Google::Apis::
|
1027
|
-
command.response_class = Google::Apis::
|
1024
|
+
command.request_representation = Google::Apis::SqladminV1beta4::RestoreInstancesBackupRequest::Representation
|
1025
|
+
command.request_object = restore_instances_backup_request_object
|
1026
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1027
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1028
1028
|
command.params['project'] = project unless project.nil?
|
1029
1029
|
command.params['instance'] = instance unless instance.nil?
|
1030
1030
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1038,7 +1038,7 @@ module Google
|
|
1038
1038
|
# Project ID of the project that contains the instance.
|
1039
1039
|
# @param [String] instance
|
1040
1040
|
# Cloud SQL instance ID. This does not include the project ID.
|
1041
|
-
# @param [Google::Apis::
|
1041
|
+
# @param [Google::Apis::SqladminV1beta4::InstancesRotateServerCaRequest] instances_rotate_server_ca_request_object
|
1042
1042
|
# @param [String] fields
|
1043
1043
|
# Selector specifying which fields to include in a partial response.
|
1044
1044
|
# @param [String] quota_user
|
@@ -1048,20 +1048,20 @@ module Google
|
|
1048
1048
|
# Request-specific options
|
1049
1049
|
#
|
1050
1050
|
# @yield [result, err] Result & error if block supplied
|
1051
|
-
# @yieldparam result [Google::Apis::
|
1051
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
1052
1052
|
# @yieldparam err [StandardError] error object if request failed
|
1053
1053
|
#
|
1054
|
-
# @return [Google::Apis::
|
1054
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
1055
1055
|
#
|
1056
1056
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1057
1057
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1058
1058
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1059
1059
|
def rotate_instance_server_ca(project, instance, instances_rotate_server_ca_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1060
1060
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa', options)
|
1061
|
-
command.request_representation = Google::Apis::
|
1061
|
+
command.request_representation = Google::Apis::SqladminV1beta4::InstancesRotateServerCaRequest::Representation
|
1062
1062
|
command.request_object = instances_rotate_server_ca_request_object
|
1063
|
-
command.response_representation = Google::Apis::
|
1064
|
-
command.response_class = Google::Apis::
|
1063
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1064
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1065
1065
|
command.params['project'] = project unless project.nil?
|
1066
1066
|
command.params['instance'] = instance unless instance.nil?
|
1067
1067
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1083,18 +1083,18 @@ module Google
|
|
1083
1083
|
# Request-specific options
|
1084
1084
|
#
|
1085
1085
|
# @yield [result, err] Result & error if block supplied
|
1086
|
-
# @yieldparam result [Google::Apis::
|
1086
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
1087
1087
|
# @yieldparam err [StandardError] error object if request failed
|
1088
1088
|
#
|
1089
|
-
# @return [Google::Apis::
|
1089
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
1090
1090
|
#
|
1091
1091
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1092
1092
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1093
1093
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1094
1094
|
def start_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
1095
1095
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/startReplica', options)
|
1096
|
-
command.response_representation = Google::Apis::
|
1097
|
-
command.response_class = Google::Apis::
|
1096
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1097
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1098
1098
|
command.params['project'] = project unless project.nil?
|
1099
1099
|
command.params['instance'] = instance unless instance.nil?
|
1100
1100
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1116,18 +1116,18 @@ module Google
|
|
1116
1116
|
# Request-specific options
|
1117
1117
|
#
|
1118
1118
|
# @yield [result, err] Result & error if block supplied
|
1119
|
-
# @yieldparam result [Google::Apis::
|
1119
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
1120
1120
|
# @yieldparam err [StandardError] error object if request failed
|
1121
1121
|
#
|
1122
|
-
# @return [Google::Apis::
|
1122
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
1123
1123
|
#
|
1124
1124
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1125
1125
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1126
1126
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1127
1127
|
def stop_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
1128
1128
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/stopReplica', options)
|
1129
|
-
command.response_representation = Google::Apis::
|
1130
|
-
command.response_class = Google::Apis::
|
1129
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1130
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1131
1131
|
command.params['project'] = project unless project.nil?
|
1132
1132
|
command.params['instance'] = instance unless instance.nil?
|
1133
1133
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1140,7 +1140,7 @@ module Google
|
|
1140
1140
|
# Project ID of the Cloud SQL project.
|
1141
1141
|
# @param [String] instance
|
1142
1142
|
# Cloud SQL instance ID. This does not include the project ID.
|
1143
|
-
# @param [Google::Apis::
|
1143
|
+
# @param [Google::Apis::SqladminV1beta4::InstancesTruncateLogRequest] instances_truncate_log_request_object
|
1144
1144
|
# @param [String] fields
|
1145
1145
|
# Selector specifying which fields to include in a partial response.
|
1146
1146
|
# @param [String] quota_user
|
@@ -1150,20 +1150,20 @@ module Google
|
|
1150
1150
|
# Request-specific options
|
1151
1151
|
#
|
1152
1152
|
# @yield [result, err] Result & error if block supplied
|
1153
|
-
# @yieldparam result [Google::Apis::
|
1153
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
1154
1154
|
# @yieldparam err [StandardError] error object if request failed
|
1155
1155
|
#
|
1156
|
-
# @return [Google::Apis::
|
1156
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
1157
1157
|
#
|
1158
1158
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1159
1159
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1160
1160
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1161
1161
|
def truncate_instance_log(project, instance, instances_truncate_log_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1162
1162
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/truncateLog', options)
|
1163
|
-
command.request_representation = Google::Apis::
|
1163
|
+
command.request_representation = Google::Apis::SqladminV1beta4::InstancesTruncateLogRequest::Representation
|
1164
1164
|
command.request_object = instances_truncate_log_request_object
|
1165
|
-
command.response_representation = Google::Apis::
|
1166
|
-
command.response_class = Google::Apis::
|
1165
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1166
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1167
1167
|
command.params['project'] = project unless project.nil?
|
1168
1168
|
command.params['instance'] = instance unless instance.nil?
|
1169
1169
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1177,7 +1177,7 @@ module Google
|
|
1177
1177
|
# Project ID of the project that contains the instance.
|
1178
1178
|
# @param [String] instance
|
1179
1179
|
# Cloud SQL instance ID. This does not include the project ID.
|
1180
|
-
# @param [Google::Apis::
|
1180
|
+
# @param [Google::Apis::SqladminV1beta4::DatabaseInstance] database_instance_object
|
1181
1181
|
# @param [String] fields
|
1182
1182
|
# Selector specifying which fields to include in a partial response.
|
1183
1183
|
# @param [String] quota_user
|
@@ -1187,20 +1187,20 @@ module Google
|
|
1187
1187
|
# Request-specific options
|
1188
1188
|
#
|
1189
1189
|
# @yield [result, err] Result & error if block supplied
|
1190
|
-
# @yieldparam result [Google::Apis::
|
1190
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
1191
1191
|
# @yieldparam err [StandardError] error object if request failed
|
1192
1192
|
#
|
1193
|
-
# @return [Google::Apis::
|
1193
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
1194
1194
|
#
|
1195
1195
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1196
1196
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1197
1197
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1198
1198
|
def update_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1199
1199
|
command = make_simple_command(:put, 'sql/v1beta4/projects/{project}/instances/{instance}', options)
|
1200
|
-
command.request_representation = Google::Apis::
|
1200
|
+
command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
|
1201
1201
|
command.request_object = database_instance_object
|
1202
|
-
command.response_representation = Google::Apis::
|
1203
|
-
command.response_class = Google::Apis::
|
1202
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1203
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1204
1204
|
command.params['project'] = project unless project.nil?
|
1205
1205
|
command.params['instance'] = instance unless instance.nil?
|
1206
1206
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1222,18 +1222,18 @@ module Google
|
|
1222
1222
|
# Request-specific options
|
1223
1223
|
#
|
1224
1224
|
# @yield [result, err] Result & error if block supplied
|
1225
|
-
# @yieldparam result [Google::Apis::
|
1225
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
1226
1226
|
# @yieldparam err [StandardError] error object if request failed
|
1227
1227
|
#
|
1228
|
-
# @return [Google::Apis::
|
1228
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
1229
1229
|
#
|
1230
1230
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1231
1231
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1232
1232
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1233
1233
|
def get_operation(project, operation, fields: nil, quota_user: nil, options: nil, &block)
|
1234
1234
|
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/operations/{operation}', options)
|
1235
|
-
command.response_representation = Google::Apis::
|
1236
|
-
command.response_class = Google::Apis::
|
1235
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1236
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1237
1237
|
command.params['project'] = project unless project.nil?
|
1238
1238
|
command.params['operation'] = operation unless operation.nil?
|
1239
1239
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1261,18 +1261,18 @@ module Google
|
|
1261
1261
|
# Request-specific options
|
1262
1262
|
#
|
1263
1263
|
# @yield [result, err] Result & error if block supplied
|
1264
|
-
# @yieldparam result [Google::Apis::
|
1264
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::ListOperationsResponse] parsed result object
|
1265
1265
|
# @yieldparam err [StandardError] error object if request failed
|
1266
1266
|
#
|
1267
|
-
# @return [Google::Apis::
|
1267
|
+
# @return [Google::Apis::SqladminV1beta4::ListOperationsResponse]
|
1268
1268
|
#
|
1269
1269
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1270
1270
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1271
1271
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1272
1272
|
def list_operations(project, instance: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1273
1273
|
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/operations', options)
|
1274
|
-
command.response_representation = Google::Apis::
|
1275
|
-
command.response_class = Google::Apis::
|
1274
|
+
command.response_representation = Google::Apis::SqladminV1beta4::ListOperationsResponse::Representation
|
1275
|
+
command.response_class = Google::Apis::SqladminV1beta4::ListOperationsResponse
|
1276
1276
|
command.params['project'] = project unless project.nil?
|
1277
1277
|
command.query['instance'] = instance unless instance.nil?
|
1278
1278
|
command.query['maxResults'] = max_results unless max_results.nil?
|
@@ -1287,7 +1287,7 @@ module Google
|
|
1287
1287
|
# ID of the project that contains the instance.
|
1288
1288
|
# @param [String] instance
|
1289
1289
|
# Cloud SQL instance ID. This does not include the project ID.
|
1290
|
-
# @param [Google::Apis::
|
1290
|
+
# @param [Google::Apis::SqladminV1beta4::SqlInstancesRescheduleMaintenanceRequestBody] sql_instances_reschedule_maintenance_request_body_object
|
1291
1291
|
# @param [String] fields
|
1292
1292
|
# Selector specifying which fields to include in a partial response.
|
1293
1293
|
# @param [String] quota_user
|
@@ -1297,20 +1297,20 @@ module Google
|
|
1297
1297
|
# Request-specific options
|
1298
1298
|
#
|
1299
1299
|
# @yield [result, err] Result & error if block supplied
|
1300
|
-
# @yieldparam result [Google::Apis::
|
1300
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
1301
1301
|
# @yieldparam err [StandardError] error object if request failed
|
1302
1302
|
#
|
1303
|
-
# @return [Google::Apis::
|
1303
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
1304
1304
|
#
|
1305
1305
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1306
1306
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1307
1307
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1308
1308
|
def reschedule_project_instance_maintenance(project, instance, sql_instances_reschedule_maintenance_request_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1309
1309
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance', options)
|
1310
|
-
command.request_representation = Google::Apis::
|
1310
|
+
command.request_representation = Google::Apis::SqladminV1beta4::SqlInstancesRescheduleMaintenanceRequestBody::Representation
|
1311
1311
|
command.request_object = sql_instances_reschedule_maintenance_request_body_object
|
1312
|
-
command.response_representation = Google::Apis::
|
1313
|
-
command.response_class = Google::Apis::
|
1312
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1313
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1314
1314
|
command.params['project'] = project unless project.nil?
|
1315
1315
|
command.params['instance'] = instance unless instance.nil?
|
1316
1316
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1318,7 +1318,7 @@ module Google
|
|
1318
1318
|
execute_or_queue_command(command, &block)
|
1319
1319
|
end
|
1320
1320
|
|
1321
|
-
# Start External
|
1321
|
+
# Start External primary instance migration.
|
1322
1322
|
# @param [String] project
|
1323
1323
|
# ID of the project that contains the instance.
|
1324
1324
|
# @param [String] instance
|
@@ -1334,18 +1334,18 @@ module Google
|
|
1334
1334
|
# Request-specific options
|
1335
1335
|
#
|
1336
1336
|
# @yield [result, err] Result & error if block supplied
|
1337
|
-
# @yieldparam result [Google::Apis::
|
1337
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
1338
1338
|
# @yieldparam err [StandardError] error object if request failed
|
1339
1339
|
#
|
1340
|
-
# @return [Google::Apis::
|
1340
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
1341
1341
|
#
|
1342
1342
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1343
1343
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1344
1344
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1345
1345
|
def start_project_instance_external_sync(project, instance, sync_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1346
1346
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync', options)
|
1347
|
-
command.response_representation = Google::Apis::
|
1348
|
-
command.response_class = Google::Apis::
|
1347
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1348
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1349
1349
|
command.params['project'] = project unless project.nil?
|
1350
1350
|
command.params['instance'] = instance unless instance.nil?
|
1351
1351
|
command.query['syncMode'] = sync_mode unless sync_mode.nil?
|
@@ -1354,7 +1354,7 @@ module Google
|
|
1354
1354
|
execute_or_queue_command(command, &block)
|
1355
1355
|
end
|
1356
1356
|
|
1357
|
-
# Verify External
|
1357
|
+
# Verify External primary instance external sync settings.
|
1358
1358
|
# @param [String] project
|
1359
1359
|
# Project ID of the project that contains the instance.
|
1360
1360
|
# @param [String] instance
|
@@ -1372,18 +1372,18 @@ module Google
|
|
1372
1372
|
# Request-specific options
|
1373
1373
|
#
|
1374
1374
|
# @yield [result, err] Result & error if block supplied
|
1375
|
-
# @yieldparam result [Google::Apis::
|
1375
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse] parsed result object
|
1376
1376
|
# @yieldparam err [StandardError] error object if request failed
|
1377
1377
|
#
|
1378
|
-
# @return [Google::Apis::
|
1378
|
+
# @return [Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse]
|
1379
1379
|
#
|
1380
1380
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1381
1381
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1382
1382
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1383
1383
|
def verify_project_instance_external_sync_settings(project, instance, sync_mode: nil, verify_connection_only: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1384
1384
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings', options)
|
1385
|
-
command.response_representation = Google::Apis::
|
1386
|
-
command.response_class = Google::Apis::
|
1385
|
+
command.response_representation = Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse::Representation
|
1386
|
+
command.response_class = Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse
|
1387
1387
|
command.params['project'] = project unless project.nil?
|
1388
1388
|
command.params['instance'] = instance unless instance.nil?
|
1389
1389
|
command.query['syncMode'] = sync_mode unless sync_mode.nil?
|
@@ -1400,7 +1400,7 @@ module Google
|
|
1400
1400
|
# Project ID of the Cloud SQL project.
|
1401
1401
|
# @param [String] instance
|
1402
1402
|
# Cloud SQL instance ID. This does not include the project ID.
|
1403
|
-
# @param [Google::Apis::
|
1403
|
+
# @param [Google::Apis::SqladminV1beta4::SslCertsCreateEphemeralRequest] ssl_certs_create_ephemeral_request_object
|
1404
1404
|
# @param [String] fields
|
1405
1405
|
# Selector specifying which fields to include in a partial response.
|
1406
1406
|
# @param [String] quota_user
|
@@ -1410,20 +1410,20 @@ module Google
|
|
1410
1410
|
# Request-specific options
|
1411
1411
|
#
|
1412
1412
|
# @yield [result, err] Result & error if block supplied
|
1413
|
-
# @yieldparam result [Google::Apis::
|
1413
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::SslCert] parsed result object
|
1414
1414
|
# @yieldparam err [StandardError] error object if request failed
|
1415
1415
|
#
|
1416
|
-
# @return [Google::Apis::
|
1416
|
+
# @return [Google::Apis::SqladminV1beta4::SslCert]
|
1417
1417
|
#
|
1418
1418
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1419
1419
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1420
1420
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1421
1421
|
def create_ssl_cert_ephemeral(project, instance, ssl_certs_create_ephemeral_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1422
1422
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral', options)
|
1423
|
-
command.request_representation = Google::Apis::
|
1423
|
+
command.request_representation = Google::Apis::SqladminV1beta4::SslCertsCreateEphemeralRequest::Representation
|
1424
1424
|
command.request_object = ssl_certs_create_ephemeral_request_object
|
1425
|
-
command.response_representation = Google::Apis::
|
1426
|
-
command.response_class = Google::Apis::
|
1425
|
+
command.response_representation = Google::Apis::SqladminV1beta4::SslCert::Representation
|
1426
|
+
command.response_class = Google::Apis::SqladminV1beta4::SslCert
|
1427
1427
|
command.params['project'] = project unless project.nil?
|
1428
1428
|
command.params['instance'] = instance unless instance.nil?
|
1429
1429
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1448,18 +1448,18 @@ module Google
|
|
1448
1448
|
# Request-specific options
|
1449
1449
|
#
|
1450
1450
|
# @yield [result, err] Result & error if block supplied
|
1451
|
-
# @yieldparam result [Google::Apis::
|
1451
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
1452
1452
|
# @yieldparam err [StandardError] error object if request failed
|
1453
1453
|
#
|
1454
|
-
# @return [Google::Apis::
|
1454
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
1455
1455
|
#
|
1456
1456
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1457
1457
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1458
1458
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1459
1459
|
def delete_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, options: nil, &block)
|
1460
1460
|
command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
|
1461
|
-
command.response_representation = Google::Apis::
|
1462
|
-
command.response_class = Google::Apis::
|
1461
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1462
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1463
1463
|
command.params['project'] = project unless project.nil?
|
1464
1464
|
command.params['instance'] = instance unless instance.nil?
|
1465
1465
|
command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil?
|
@@ -1486,18 +1486,18 @@ module Google
|
|
1486
1486
|
# Request-specific options
|
1487
1487
|
#
|
1488
1488
|
# @yield [result, err] Result & error if block supplied
|
1489
|
-
# @yieldparam result [Google::Apis::
|
1489
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::SslCert] parsed result object
|
1490
1490
|
# @yieldparam err [StandardError] error object if request failed
|
1491
1491
|
#
|
1492
|
-
# @return [Google::Apis::
|
1492
|
+
# @return [Google::Apis::SqladminV1beta4::SslCert]
|
1493
1493
|
#
|
1494
1494
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1495
1495
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1496
1496
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1497
1497
|
def get_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, options: nil, &block)
|
1498
1498
|
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
|
1499
|
-
command.response_representation = Google::Apis::
|
1500
|
-
command.response_class = Google::Apis::
|
1499
|
+
command.response_representation = Google::Apis::SqladminV1beta4::SslCert::Representation
|
1500
|
+
command.response_class = Google::Apis::SqladminV1beta4::SslCert
|
1501
1501
|
command.params['project'] = project unless project.nil?
|
1502
1502
|
command.params['instance'] = instance unless instance.nil?
|
1503
1503
|
command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil?
|
@@ -1513,7 +1513,7 @@ module Google
|
|
1513
1513
|
# Project ID of the project that contains the instance.
|
1514
1514
|
# @param [String] instance
|
1515
1515
|
# Cloud SQL instance ID. This does not include the project ID.
|
1516
|
-
# @param [Google::Apis::
|
1516
|
+
# @param [Google::Apis::SqladminV1beta4::InsertSslCertsRequest] insert_ssl_certs_request_object
|
1517
1517
|
# @param [String] fields
|
1518
1518
|
# Selector specifying which fields to include in a partial response.
|
1519
1519
|
# @param [String] quota_user
|
@@ -1523,20 +1523,20 @@ module Google
|
|
1523
1523
|
# Request-specific options
|
1524
1524
|
#
|
1525
1525
|
# @yield [result, err] Result & error if block supplied
|
1526
|
-
# @yieldparam result [Google::Apis::
|
1526
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::InsertSslCertsResponse] parsed result object
|
1527
1527
|
# @yieldparam err [StandardError] error object if request failed
|
1528
1528
|
#
|
1529
|
-
# @return [Google::Apis::
|
1529
|
+
# @return [Google::Apis::SqladminV1beta4::InsertSslCertsResponse]
|
1530
1530
|
#
|
1531
1531
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1532
1532
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1533
1533
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1534
|
-
def insert_ssl_cert(project, instance,
|
1534
|
+
def insert_ssl_cert(project, instance, insert_ssl_certs_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1535
1535
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts', options)
|
1536
|
-
command.request_representation = Google::Apis::
|
1537
|
-
command.request_object =
|
1538
|
-
command.response_representation = Google::Apis::
|
1539
|
-
command.response_class = Google::Apis::
|
1536
|
+
command.request_representation = Google::Apis::SqladminV1beta4::InsertSslCertsRequest::Representation
|
1537
|
+
command.request_object = insert_ssl_certs_request_object
|
1538
|
+
command.response_representation = Google::Apis::SqladminV1beta4::InsertSslCertsResponse::Representation
|
1539
|
+
command.response_class = Google::Apis::SqladminV1beta4::InsertSslCertsResponse
|
1540
1540
|
command.params['project'] = project unless project.nil?
|
1541
1541
|
command.params['instance'] = instance unless instance.nil?
|
1542
1542
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1558,18 +1558,18 @@ module Google
|
|
1558
1558
|
# Request-specific options
|
1559
1559
|
#
|
1560
1560
|
# @yield [result, err] Result & error if block supplied
|
1561
|
-
# @yieldparam result [Google::Apis::
|
1561
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::ListSslCertsResponse] parsed result object
|
1562
1562
|
# @yieldparam err [StandardError] error object if request failed
|
1563
1563
|
#
|
1564
|
-
# @return [Google::Apis::
|
1564
|
+
# @return [Google::Apis::SqladminV1beta4::ListSslCertsResponse]
|
1565
1565
|
#
|
1566
1566
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1567
1567
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1568
1568
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1569
1569
|
def list_ssl_certs(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
1570
1570
|
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts', options)
|
1571
|
-
command.response_representation = Google::Apis::
|
1572
|
-
command.response_class = Google::Apis::
|
1571
|
+
command.response_representation = Google::Apis::SqladminV1beta4::ListSslCertsResponse::Representation
|
1572
|
+
command.response_class = Google::Apis::SqladminV1beta4::ListSslCertsResponse
|
1573
1573
|
command.params['project'] = project unless project.nil?
|
1574
1574
|
command.params['instance'] = instance unless instance.nil?
|
1575
1575
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1590,18 +1590,18 @@ module Google
|
|
1590
1590
|
# Request-specific options
|
1591
1591
|
#
|
1592
1592
|
# @yield [result, err] Result & error if block supplied
|
1593
|
-
# @yieldparam result [Google::Apis::
|
1593
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::ListTiersResponse] parsed result object
|
1594
1594
|
# @yieldparam err [StandardError] error object if request failed
|
1595
1595
|
#
|
1596
|
-
# @return [Google::Apis::
|
1596
|
+
# @return [Google::Apis::SqladminV1beta4::ListTiersResponse]
|
1597
1597
|
#
|
1598
1598
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1599
1599
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1600
1600
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1601
1601
|
def list_tiers(project, fields: nil, quota_user: nil, options: nil, &block)
|
1602
1602
|
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/tiers', options)
|
1603
|
-
command.response_representation = Google::Apis::
|
1604
|
-
command.response_class = Google::Apis::
|
1603
|
+
command.response_representation = Google::Apis::SqladminV1beta4::ListTiersResponse::Representation
|
1604
|
+
command.response_class = Google::Apis::SqladminV1beta4::ListTiersResponse
|
1605
1605
|
command.params['project'] = project unless project.nil?
|
1606
1606
|
command.query['fields'] = fields unless fields.nil?
|
1607
1607
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1626,18 +1626,18 @@ module Google
|
|
1626
1626
|
# Request-specific options
|
1627
1627
|
#
|
1628
1628
|
# @yield [result, err] Result & error if block supplied
|
1629
|
-
# @yieldparam result [Google::Apis::
|
1629
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
1630
1630
|
# @yieldparam err [StandardError] error object if request failed
|
1631
1631
|
#
|
1632
|
-
# @return [Google::Apis::
|
1632
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
1633
1633
|
#
|
1634
1634
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1635
1635
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1636
1636
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1637
1637
|
def delete_user(project, instance, host: nil, name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1638
1638
|
command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
|
1639
|
-
command.response_representation = Google::Apis::
|
1640
|
-
command.response_class = Google::Apis::
|
1639
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1640
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1641
1641
|
command.params['project'] = project unless project.nil?
|
1642
1642
|
command.params['instance'] = instance unless instance.nil?
|
1643
1643
|
command.query['host'] = host unless host.nil?
|
@@ -1652,7 +1652,7 @@ module Google
|
|
1652
1652
|
# Project ID of the project that contains the instance.
|
1653
1653
|
# @param [String] instance
|
1654
1654
|
# Database instance ID. This does not include the project ID.
|
1655
|
-
# @param [Google::Apis::
|
1655
|
+
# @param [Google::Apis::SqladminV1beta4::User] user_object
|
1656
1656
|
# @param [String] fields
|
1657
1657
|
# Selector specifying which fields to include in a partial response.
|
1658
1658
|
# @param [String] quota_user
|
@@ -1662,20 +1662,20 @@ module Google
|
|
1662
1662
|
# Request-specific options
|
1663
1663
|
#
|
1664
1664
|
# @yield [result, err] Result & error if block supplied
|
1665
|
-
# @yieldparam result [Google::Apis::
|
1665
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
1666
1666
|
# @yieldparam err [StandardError] error object if request failed
|
1667
1667
|
#
|
1668
|
-
# @return [Google::Apis::
|
1668
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
1669
1669
|
#
|
1670
1670
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1671
1671
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1672
1672
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1673
1673
|
def insert_user(project, instance, user_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1674
1674
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
|
1675
|
-
command.request_representation = Google::Apis::
|
1675
|
+
command.request_representation = Google::Apis::SqladminV1beta4::User::Representation
|
1676
1676
|
command.request_object = user_object
|
1677
|
-
command.response_representation = Google::Apis::
|
1678
|
-
command.response_class = Google::Apis::
|
1677
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1678
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1679
1679
|
command.params['project'] = project unless project.nil?
|
1680
1680
|
command.params['instance'] = instance unless instance.nil?
|
1681
1681
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1697,18 +1697,18 @@ module Google
|
|
1697
1697
|
# Request-specific options
|
1698
1698
|
#
|
1699
1699
|
# @yield [result, err] Result & error if block supplied
|
1700
|
-
# @yieldparam result [Google::Apis::
|
1700
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::ListUsersResponse] parsed result object
|
1701
1701
|
# @yieldparam err [StandardError] error object if request failed
|
1702
1702
|
#
|
1703
|
-
# @return [Google::Apis::
|
1703
|
+
# @return [Google::Apis::SqladminV1beta4::ListUsersResponse]
|
1704
1704
|
#
|
1705
1705
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1706
1706
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1707
1707
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1708
1708
|
def list_users(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
1709
1709
|
command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
|
1710
|
-
command.response_representation = Google::Apis::
|
1711
|
-
command.response_class = Google::Apis::
|
1710
|
+
command.response_representation = Google::Apis::SqladminV1beta4::ListUsersResponse::Representation
|
1711
|
+
command.response_class = Google::Apis::SqladminV1beta4::ListUsersResponse
|
1712
1712
|
command.params['project'] = project unless project.nil?
|
1713
1713
|
command.params['instance'] = instance unless instance.nil?
|
1714
1714
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1721,7 +1721,7 @@ module Google
|
|
1721
1721
|
# Project ID of the project that contains the instance.
|
1722
1722
|
# @param [String] instance
|
1723
1723
|
# Database instance ID. This does not include the project ID.
|
1724
|
-
# @param [Google::Apis::
|
1724
|
+
# @param [Google::Apis::SqladminV1beta4::User] user_object
|
1725
1725
|
# @param [String] host
|
1726
1726
|
# Optional. Host of the user in the instance.
|
1727
1727
|
# @param [String] name
|
@@ -1735,20 +1735,20 @@ module Google
|
|
1735
1735
|
# Request-specific options
|
1736
1736
|
#
|
1737
1737
|
# @yield [result, err] Result & error if block supplied
|
1738
|
-
# @yieldparam result [Google::Apis::
|
1738
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
1739
1739
|
# @yieldparam err [StandardError] error object if request failed
|
1740
1740
|
#
|
1741
|
-
# @return [Google::Apis::
|
1741
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
1742
1742
|
#
|
1743
1743
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1744
1744
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1745
1745
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1746
1746
|
def update_user(project, instance, user_object = nil, host: nil, name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1747
1747
|
command = make_simple_command(:put, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
|
1748
|
-
command.request_representation = Google::Apis::
|
1748
|
+
command.request_representation = Google::Apis::SqladminV1beta4::User::Representation
|
1749
1749
|
command.request_object = user_object
|
1750
|
-
command.response_representation = Google::Apis::
|
1751
|
-
command.response_class = Google::Apis::
|
1750
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1751
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1752
1752
|
command.params['project'] = project unless project.nil?
|
1753
1753
|
command.params['instance'] = instance unless instance.nil?
|
1754
1754
|
command.query['host'] = host unless host.nil?
|