google-cloud-sql-v1beta4 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -6
- data/lib/google/cloud/sql/v1beta4/cloud_sql_pb.rb +12 -1
- data/lib/google/cloud/sql/v1beta4/cloud_sql_resources_pb.rb +16 -1
- data/lib/google/cloud/sql/v1beta4/cloud_sql_services_pb.rb +27 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_users_services_pb.rb +1 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_workload_captures_pb.rb +2 -1
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service/paths.rb +17 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service/rest/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_databases_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_databases_service/rest/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_databases_service/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_databases_service.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_flags_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_flags_service/rest/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_flags_service/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_flags_service.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/client.rb +411 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/paths.rb +17 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest/client.rb +371 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest/service_stub.rb +250 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_operations_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_operations_service/rest/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_operations_service/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_operations_service.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/client.rb +317 -0
- data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/rest/client.rb +281 -0
- data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/rest/service_stub.rb +189 -0
- data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_users_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_users_service/rest/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_users_service/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_users_service.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/version.rb +1 -1
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql.rb +227 -0
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_resources.rb +325 -0
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_workload_captures.rb +16 -0
- metadata +1 -1
|
@@ -233,6 +233,126 @@ module Google
|
|
|
233
233
|
end
|
|
234
234
|
end
|
|
235
235
|
|
|
236
|
+
##
|
|
237
|
+
# Baseline implementation for the update_customer_managed_certificate REST call
|
|
238
|
+
#
|
|
239
|
+
# @param request_pb [::Google::Cloud::Sql::V1beta4::UpdateCustomerManagedCertificateRequest]
|
|
240
|
+
# A request object representing the call parameters. Required.
|
|
241
|
+
# @param options [::Gapic::CallOptions]
|
|
242
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
243
|
+
#
|
|
244
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
245
|
+
# @yieldparam result [::Google::Cloud::Sql::V1beta4::Operation]
|
|
246
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
247
|
+
#
|
|
248
|
+
# @return [::Google::Cloud::Sql::V1beta4::Operation]
|
|
249
|
+
# A result object deserialized from the server's reply
|
|
250
|
+
def update_customer_managed_certificate request_pb, options = nil
|
|
251
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
252
|
+
|
|
253
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_customer_managed_certificate_request request_pb
|
|
254
|
+
query_string_params = if query_string_params.any?
|
|
255
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
256
|
+
else
|
|
257
|
+
{}
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
response = @client_stub.make_http_request(
|
|
261
|
+
verb,
|
|
262
|
+
uri: uri,
|
|
263
|
+
body: body || "",
|
|
264
|
+
params: query_string_params,
|
|
265
|
+
method_name: "update_customer_managed_certificate",
|
|
266
|
+
options: options
|
|
267
|
+
)
|
|
268
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
269
|
+
result = ::Google::Cloud::Sql::V1beta4::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
270
|
+
catch :response do
|
|
271
|
+
yield result, operation if block_given?
|
|
272
|
+
result
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
##
|
|
277
|
+
# Baseline implementation for the delete_customer_managed_certificate REST call
|
|
278
|
+
#
|
|
279
|
+
# @param request_pb [::Google::Cloud::Sql::V1beta4::DeleteCustomerManagedCertificateRequest]
|
|
280
|
+
# A request object representing the call parameters. Required.
|
|
281
|
+
# @param options [::Gapic::CallOptions]
|
|
282
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
283
|
+
#
|
|
284
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
285
|
+
# @yieldparam result [::Google::Cloud::Sql::V1beta4::Operation]
|
|
286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
287
|
+
#
|
|
288
|
+
# @return [::Google::Cloud::Sql::V1beta4::Operation]
|
|
289
|
+
# A result object deserialized from the server's reply
|
|
290
|
+
def delete_customer_managed_certificate request_pb, options = nil
|
|
291
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
292
|
+
|
|
293
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_customer_managed_certificate_request request_pb
|
|
294
|
+
query_string_params = if query_string_params.any?
|
|
295
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
296
|
+
else
|
|
297
|
+
{}
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
response = @client_stub.make_http_request(
|
|
301
|
+
verb,
|
|
302
|
+
uri: uri,
|
|
303
|
+
body: body || "",
|
|
304
|
+
params: query_string_params,
|
|
305
|
+
method_name: "delete_customer_managed_certificate",
|
|
306
|
+
options: options
|
|
307
|
+
)
|
|
308
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
309
|
+
result = ::Google::Cloud::Sql::V1beta4::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
310
|
+
catch :response do
|
|
311
|
+
yield result, operation if block_given?
|
|
312
|
+
result
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
##
|
|
317
|
+
# Baseline implementation for the list_customer_managed_certificates REST call
|
|
318
|
+
#
|
|
319
|
+
# @param request_pb [::Google::Cloud::Sql::V1beta4::ListCustomerManagedCertificatesRequest]
|
|
320
|
+
# A request object representing the call parameters. Required.
|
|
321
|
+
# @param options [::Gapic::CallOptions]
|
|
322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
323
|
+
#
|
|
324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
325
|
+
# @yieldparam result [::Google::Cloud::Sql::V1beta4::ListCustomerManagedCertificatesResponse]
|
|
326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
327
|
+
#
|
|
328
|
+
# @return [::Google::Cloud::Sql::V1beta4::ListCustomerManagedCertificatesResponse]
|
|
329
|
+
# A result object deserialized from the server's reply
|
|
330
|
+
def list_customer_managed_certificates request_pb, options = nil
|
|
331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
332
|
+
|
|
333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_customer_managed_certificates_request request_pb
|
|
334
|
+
query_string_params = if query_string_params.any?
|
|
335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
336
|
+
else
|
|
337
|
+
{}
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
response = @client_stub.make_http_request(
|
|
341
|
+
verb,
|
|
342
|
+
uri: uri,
|
|
343
|
+
body: body || "",
|
|
344
|
+
params: query_string_params,
|
|
345
|
+
method_name: "list_customer_managed_certificates",
|
|
346
|
+
options: options
|
|
347
|
+
)
|
|
348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
349
|
+
result = ::Google::Cloud::Sql::V1beta4::ListCustomerManagedCertificatesResponse.decode_json response.body, ignore_unknown_fields: true
|
|
350
|
+
catch :response do
|
|
351
|
+
yield result, operation if block_given?
|
|
352
|
+
result
|
|
353
|
+
end
|
|
354
|
+
end
|
|
355
|
+
|
|
236
356
|
##
|
|
237
357
|
# @private
|
|
238
358
|
#
|
|
@@ -323,6 +443,75 @@ module Google
|
|
|
323
443
|
)
|
|
324
444
|
transcoder.transcode request_pb
|
|
325
445
|
end
|
|
446
|
+
|
|
447
|
+
##
|
|
448
|
+
# @private
|
|
449
|
+
#
|
|
450
|
+
# GRPC transcoding helper method for the update_customer_managed_certificate REST call
|
|
451
|
+
#
|
|
452
|
+
# @param request_pb [::Google::Cloud::Sql::V1beta4::UpdateCustomerManagedCertificateRequest]
|
|
453
|
+
# A request object representing the call parameters. Required.
|
|
454
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
455
|
+
# Uri, Body, Query string parameters
|
|
456
|
+
def self.transcode_update_customer_managed_certificate_request request_pb
|
|
457
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
458
|
+
.with_bindings(
|
|
459
|
+
uri_method: :patch,
|
|
460
|
+
uri_template: "/sql/v1beta4/projects/{project}/instances/{instance}/customerManagedCertificates/{certificate_bundle}",
|
|
461
|
+
body: "*",
|
|
462
|
+
matches: [
|
|
463
|
+
["project", %r{^[^/]+/?$}, false],
|
|
464
|
+
["instance", %r{^[^/]+/?$}, false],
|
|
465
|
+
["certificate_bundle", %r{^[^/]+/?$}, false]
|
|
466
|
+
]
|
|
467
|
+
)
|
|
468
|
+
transcoder.transcode request_pb
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
##
|
|
472
|
+
# @private
|
|
473
|
+
#
|
|
474
|
+
# GRPC transcoding helper method for the delete_customer_managed_certificate REST call
|
|
475
|
+
#
|
|
476
|
+
# @param request_pb [::Google::Cloud::Sql::V1beta4::DeleteCustomerManagedCertificateRequest]
|
|
477
|
+
# A request object representing the call parameters. Required.
|
|
478
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
479
|
+
# Uri, Body, Query string parameters
|
|
480
|
+
def self.transcode_delete_customer_managed_certificate_request request_pb
|
|
481
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
482
|
+
.with_bindings(
|
|
483
|
+
uri_method: :delete,
|
|
484
|
+
uri_template: "/sql/v1beta4/projects/{project}/instances/{instance}/customerManagedCertificates/{certificate_bundle}",
|
|
485
|
+
matches: [
|
|
486
|
+
["project", %r{^[^/]+/?$}, false],
|
|
487
|
+
["instance", %r{^[^/]+/?$}, false],
|
|
488
|
+
["certificate_bundle", %r{^[^/]+/?$}, false]
|
|
489
|
+
]
|
|
490
|
+
)
|
|
491
|
+
transcoder.transcode request_pb
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
##
|
|
495
|
+
# @private
|
|
496
|
+
#
|
|
497
|
+
# GRPC transcoding helper method for the list_customer_managed_certificates REST call
|
|
498
|
+
#
|
|
499
|
+
# @param request_pb [::Google::Cloud::Sql::V1beta4::ListCustomerManagedCertificatesRequest]
|
|
500
|
+
# A request object representing the call parameters. Required.
|
|
501
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
502
|
+
# Uri, Body, Query string parameters
|
|
503
|
+
def self.transcode_list_customer_managed_certificates_request request_pb
|
|
504
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
505
|
+
.with_bindings(
|
|
506
|
+
uri_method: :get,
|
|
507
|
+
uri_template: "/sql/v1beta4/projects/{project}/instances/{instance}/customerManagedCertificates",
|
|
508
|
+
matches: [
|
|
509
|
+
["project", %r{^[^/]+/?$}, false],
|
|
510
|
+
["instance", %r{^[^/]+/?$}, false]
|
|
511
|
+
]
|
|
512
|
+
)
|
|
513
|
+
transcoder.transcode request_pb
|
|
514
|
+
end
|
|
326
515
|
end
|
|
327
516
|
end
|
|
328
517
|
end
|
|
@@ -318,6 +318,73 @@ module Google
|
|
|
318
318
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
319
319
|
end
|
|
320
320
|
|
|
321
|
+
# Request message for SqlSslCertsService.UpdateCustomerManagedCertificate.
|
|
322
|
+
# @!attribute [rw] instance
|
|
323
|
+
# @return [::String]
|
|
324
|
+
# Required. Cloud SQL instance ID. This does not include the project ID.
|
|
325
|
+
# @!attribute [rw] project
|
|
326
|
+
# @return [::String]
|
|
327
|
+
# Required. Project ID of the project that contains the instance.
|
|
328
|
+
# @!attribute [rw] customer_managed_certificate_config
|
|
329
|
+
# @return [::Google::Cloud::Sql::V1beta4::CustomerManagedCertificateConfig]
|
|
330
|
+
# Required. The customer managed certificate bundle SSL configuration to
|
|
331
|
+
# update.
|
|
332
|
+
# @!attribute [rw] update_mask
|
|
333
|
+
# @return [::Google::Protobuf::FieldMask]
|
|
334
|
+
# Optional. The list of fields to be updated.
|
|
335
|
+
# @!attribute [rw] allow_missing
|
|
336
|
+
# @return [::Boolean]
|
|
337
|
+
# Optional. If set to true, and the customer managed certificate bundle
|
|
338
|
+
# configuration is not found, a new customer managed certificate bundle
|
|
339
|
+
# configuration will be created. In this situation, `update_mask` is ignored.
|
|
340
|
+
# @!attribute [rw] certificate_bundle
|
|
341
|
+
# @return [::String]
|
|
342
|
+
# Required. Name tag of the customer managed certificate bundle to update. It
|
|
343
|
+
# must be alphanumeric and have a maximum length of 10 characters.
|
|
344
|
+
class UpdateCustomerManagedCertificateRequest
|
|
345
|
+
include ::Google::Protobuf::MessageExts
|
|
346
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
# Request message for SqlSslCertsService.DeleteCustomerManagedCertificate.
|
|
350
|
+
# @!attribute [rw] instance
|
|
351
|
+
# @return [::String]
|
|
352
|
+
# Required. Cloud SQL instance ID. This does not include the project ID.
|
|
353
|
+
# @!attribute [rw] project
|
|
354
|
+
# @return [::String]
|
|
355
|
+
# Required. Project ID of the project that contains the instance.
|
|
356
|
+
# @!attribute [rw] certificate_bundle
|
|
357
|
+
# @return [::String]
|
|
358
|
+
# Required. Name tag of the customer managed certificate bundle to delete. It
|
|
359
|
+
# must be alphanumeric and have a maximum length of 10 characters.
|
|
360
|
+
class DeleteCustomerManagedCertificateRequest
|
|
361
|
+
include ::Google::Protobuf::MessageExts
|
|
362
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
# Request message for SqlSslCertsService.ListCustomerManagedCertificates.
|
|
366
|
+
# @!attribute [rw] instance
|
|
367
|
+
# @return [::String]
|
|
368
|
+
# Required. Cloud SQL instance ID. This does not include the project ID.
|
|
369
|
+
# @!attribute [rw] project
|
|
370
|
+
# @return [::String]
|
|
371
|
+
# Required. Project ID of the project that contains the instance.
|
|
372
|
+
class ListCustomerManagedCertificatesRequest
|
|
373
|
+
include ::Google::Protobuf::MessageExts
|
|
374
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
# Response message for SqlSslCertsService.ListCustomerManagedCertificates.
|
|
378
|
+
# @!attribute [rw] customer_managed_certificates
|
|
379
|
+
# @return [::Array<::Google::Cloud::Sql::V1beta4::CustomerManagedCertificateConfig>]
|
|
380
|
+
# Required. List of customer managed SSL configurations for the instance.
|
|
381
|
+
# Note: Sensitive private keys (e.g., PEER_CLIENT_KEY) are redacted in this
|
|
382
|
+
# response.
|
|
383
|
+
class ListCustomerManagedCertificatesResponse
|
|
384
|
+
include ::Google::Protobuf::MessageExts
|
|
385
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
386
|
+
end
|
|
387
|
+
|
|
321
388
|
# @!attribute [rw] instance
|
|
322
389
|
# @return [::String]
|
|
323
390
|
# The ID of the Cloud SQL instance to be cloned (source). This does not
|
|
@@ -662,6 +729,40 @@ module Google
|
|
|
662
729
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
663
730
|
end
|
|
664
731
|
|
|
732
|
+
# Instance start request.
|
|
733
|
+
# @!attribute [rw] instance
|
|
734
|
+
# @return [::String]
|
|
735
|
+
# Required. Cloud SQL instance ID. This does not include the project ID.
|
|
736
|
+
# @!attribute [rw] project
|
|
737
|
+
# @return [::String]
|
|
738
|
+
# Required. Project ID of the project that contains the instance to be
|
|
739
|
+
# started.
|
|
740
|
+
# @!attribute [rw] location
|
|
741
|
+
# @return [::String]
|
|
742
|
+
# Optional. The region of the Cloud SQL instance, for example `us-central1`.
|
|
743
|
+
# If omitted, the region is determined from the instance.
|
|
744
|
+
class SqlInstancesStartRequest
|
|
745
|
+
include ::Google::Protobuf::MessageExts
|
|
746
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
747
|
+
end
|
|
748
|
+
|
|
749
|
+
# Instance stop request.
|
|
750
|
+
# @!attribute [rw] instance
|
|
751
|
+
# @return [::String]
|
|
752
|
+
# Required. Cloud SQL instance ID. This does not include the project ID.
|
|
753
|
+
# @!attribute [rw] project
|
|
754
|
+
# @return [::String]
|
|
755
|
+
# Required. Project ID of the project that contains the instance to be
|
|
756
|
+
# stopped.
|
|
757
|
+
# @!attribute [rw] location
|
|
758
|
+
# @return [::String]
|
|
759
|
+
# Optional. The region of the Cloud SQL instance, for example `us-central1`.
|
|
760
|
+
# If omitted, the region is determined from the instance.
|
|
761
|
+
class SqlInstancesStopRequest
|
|
762
|
+
include ::Google::Protobuf::MessageExts
|
|
763
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
764
|
+
end
|
|
765
|
+
|
|
665
766
|
# @!attribute [rw] instance
|
|
666
767
|
# @return [::String]
|
|
667
768
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
@@ -1168,6 +1269,25 @@ module Google
|
|
|
1168
1269
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1169
1270
|
end
|
|
1170
1271
|
|
|
1272
|
+
# Execute read only SQL statements request.
|
|
1273
|
+
# Execute SQL statements in read-only mode request.
|
|
1274
|
+
# @!attribute [rw] instance
|
|
1275
|
+
# @return [::String]
|
|
1276
|
+
# Required. Database instance ID. This does not include the project ID.
|
|
1277
|
+
# @!attribute [rw] project
|
|
1278
|
+
# @return [::String]
|
|
1279
|
+
# Required. Project ID of the project that contains the instance.
|
|
1280
|
+
# @!attribute [rw] body
|
|
1281
|
+
# @return [::Google::Cloud::Sql::V1beta4::ExecuteSqlReadOnlyPayload]
|
|
1282
|
+
# Required. The request body.
|
|
1283
|
+
# @!attribute [rw] location
|
|
1284
|
+
# @return [::String]
|
|
1285
|
+
# Optional. Region of the Cloud SQL instance.
|
|
1286
|
+
class SqlInstancesExecuteSqlReadOnlyRequest
|
|
1287
|
+
include ::Google::Protobuf::MessageExts
|
|
1288
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1289
|
+
end
|
|
1290
|
+
|
|
1171
1291
|
# Execute SQL statements request.
|
|
1172
1292
|
# @!attribute [rw] instance
|
|
1173
1293
|
# @return [::String]
|
|
@@ -1214,6 +1334,47 @@ module Google
|
|
|
1214
1334
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1215
1335
|
end
|
|
1216
1336
|
|
|
1337
|
+
# The request payload used to execute SQL statements in read-only mode.
|
|
1338
|
+
# @!attribute [rw] user
|
|
1339
|
+
# @return [::String]
|
|
1340
|
+
# Optional. The name of an existing database user to connect to the database.
|
|
1341
|
+
# When `auto_iam_authn` is set to true, this field is ignored and the API
|
|
1342
|
+
# caller's IAM user is used.
|
|
1343
|
+
# @!attribute [rw] sql_statement
|
|
1344
|
+
# @return [::String]
|
|
1345
|
+
# Required. SQL statements to run on the database. It can be a single
|
|
1346
|
+
# statement or a sequence of statements separated by semicolons.
|
|
1347
|
+
# @!attribute [rw] database
|
|
1348
|
+
# @return [::String]
|
|
1349
|
+
# Optional. Name of the database on which the statement will be executed.
|
|
1350
|
+
# For Postgres and SQL Server it's required, for MySQL it's optional.
|
|
1351
|
+
# @!attribute [rw] password_secret_version
|
|
1352
|
+
# @return [::String]
|
|
1353
|
+
# Optional. The resource name of the Secret Manager secret holding the
|
|
1354
|
+
# password for the user to log into the database. The secret should be
|
|
1355
|
+
# created using the regional endpoint (for API) or from the Regional
|
|
1356
|
+
# Secrets page (for UI), and stored in the same region as the Cloud SQL
|
|
1357
|
+
# instance. The expected resource name format is
|
|
1358
|
+
# `projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}`.
|
|
1359
|
+
# This field is used together with the `user` field.
|
|
1360
|
+
# The secret resource name will not be stored.
|
|
1361
|
+
#
|
|
1362
|
+
# Note: The following fields are mutually exclusive: `password_secret_version`, `auto_iam_authn`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1363
|
+
# @!attribute [rw] auto_iam_authn
|
|
1364
|
+
# @return [::Boolean]
|
|
1365
|
+
# Optional. When set to true, the API caller identity associated with the
|
|
1366
|
+
# request is used for database authentication. The API caller must be an
|
|
1367
|
+
# IAM user in the database.
|
|
1368
|
+
#
|
|
1369
|
+
# Note: The following fields are mutually exclusive: `auto_iam_authn`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1370
|
+
# @!attribute [rw] row_limit
|
|
1371
|
+
# @return [::Integer]
|
|
1372
|
+
# Optional. The maximum number of rows returned per SQL statement.
|
|
1373
|
+
class ExecuteSqlReadOnlyPayload
|
|
1374
|
+
include ::Google::Protobuf::MessageExts
|
|
1375
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1376
|
+
end
|
|
1377
|
+
|
|
1217
1378
|
# The request payload used to execute SQL statements.
|
|
1218
1379
|
# @!attribute [rw] user
|
|
1219
1380
|
# @return [::String]
|
|
@@ -1281,6 +1442,30 @@ module Google
|
|
|
1281
1442
|
end
|
|
1282
1443
|
end
|
|
1283
1444
|
|
|
1445
|
+
# Execute SQL statements response.
|
|
1446
|
+
# Execute SQL statements in read-only mode response.
|
|
1447
|
+
# @!attribute [rw] messages
|
|
1448
|
+
# @return [::Array<::Google::Cloud::Sql::V1beta4::SqlInstancesExecuteSqlResponse::Message>]
|
|
1449
|
+
# A list of notices and warnings generated during query execution.
|
|
1450
|
+
# For PostgreSQL, this includes all notices and warnings.
|
|
1451
|
+
# For MySQL, this includes warnings generated by the last executed statement.
|
|
1452
|
+
# To retrieve all warnings for a multi-statement query, `SHOW WARNINGS` must
|
|
1453
|
+
# be executed after each statement.
|
|
1454
|
+
# @!attribute [rw] metadata
|
|
1455
|
+
# @return [::Google::Cloud::Sql::V1beta4::Metadata]
|
|
1456
|
+
# The additional metadata information regarding the execution of the SQL
|
|
1457
|
+
# statements.
|
|
1458
|
+
# @!attribute [rw] results
|
|
1459
|
+
# @return [::Array<::Google::Cloud::Sql::V1beta4::QueryResult>]
|
|
1460
|
+
# The list of results after executing all the SQL statements.
|
|
1461
|
+
# @!attribute [rw] status
|
|
1462
|
+
# @return [::Google::Rpc::Status]
|
|
1463
|
+
# Contains the error from the database if the SQL execution failed.
|
|
1464
|
+
class SqlInstancesExecuteSqlReadOnlyResponse
|
|
1465
|
+
include ::Google::Protobuf::MessageExts
|
|
1466
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1467
|
+
end
|
|
1468
|
+
|
|
1284
1469
|
# @!attribute [rw] messages
|
|
1285
1470
|
# @return [::Array<::Google::Cloud::Sql::V1beta4::SqlInstancesExecuteSqlResponse::Message>]
|
|
1286
1471
|
# A list of notices and warnings generated during query execution.
|
|
@@ -1450,6 +1635,48 @@ module Google
|
|
|
1450
1635
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1451
1636
|
end
|
|
1452
1637
|
|
|
1638
|
+
# Request message for SqlInstancesService.ReconcileNetworking.
|
|
1639
|
+
# @!attribute [rw] instance
|
|
1640
|
+
# @return [::String]
|
|
1641
|
+
# Required. Cloud SQL instance ID.
|
|
1642
|
+
# @!attribute [rw] project
|
|
1643
|
+
# @return [::String]
|
|
1644
|
+
# Required. Project ID of the project that contains the instance.
|
|
1645
|
+
# @!attribute [rw] psc_dns
|
|
1646
|
+
# @return [::Google::Cloud::Sql::V1beta4::PscDnsReconcileNetworkingRequest]
|
|
1647
|
+
# Request to recreate Private Service Connect DNS write endpoints and
|
|
1648
|
+
# reconcile Private Service Connect connectivity infrastructure for the
|
|
1649
|
+
# instance.
|
|
1650
|
+
# @!attribute [rw] location
|
|
1651
|
+
# @return [::String]
|
|
1652
|
+
# Optional. Region of the Cloud SQL instance.
|
|
1653
|
+
class SqlInstancesReconcileNetworkingRequest
|
|
1654
|
+
include ::Google::Protobuf::MessageExts
|
|
1655
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1656
|
+
end
|
|
1657
|
+
|
|
1658
|
+
# Request parameters specific to PSC DNS networking reconciliation.
|
|
1659
|
+
# @!attribute [rw] networks
|
|
1660
|
+
# @return [::Array<::String>]
|
|
1661
|
+
# Optional. List of specific consumer VPC networks to reconcile. They must be
|
|
1662
|
+
# specified as full resource names (e.g.,
|
|
1663
|
+
# "projects/my-consumer-project/global/networks/prod-vpc"). If empty,
|
|
1664
|
+
# recreates Write Endpoints for all the consumer networks associated with
|
|
1665
|
+
# this instance.
|
|
1666
|
+
# @!attribute [rw] force
|
|
1667
|
+
# @return [::Boolean]
|
|
1668
|
+
# Optional. Set `true` to force the reset and reapplication of Private
|
|
1669
|
+
# Service Connect connectivity infrastructure if standard reconciliation does
|
|
1670
|
+
# not resolve automated DNS issues. This operation might cause a brief
|
|
1671
|
+
# disruption in network connectivity for connected VPC networks while
|
|
1672
|
+
# settings are reapplied. Use this option only when standard reconciliation
|
|
1673
|
+
# fails to resolve networking issues (for example, if connectivity resources
|
|
1674
|
+
# are stuck in an updating or creating state).
|
|
1675
|
+
class PscDnsReconcileNetworkingRequest
|
|
1676
|
+
include ::Google::Protobuf::MessageExts
|
|
1677
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1678
|
+
end
|
|
1679
|
+
|
|
1453
1680
|
# External Sync parallel level.
|
|
1454
1681
|
module ExternalSyncParallelLevel
|
|
1455
1682
|
# Unknown sync parallel level. Will be defaulted to OPTIMAL.
|