google-cloud-sql-v1beta4 0.6.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.
@@ -522,6 +522,264 @@ module Google
522
522
  raise ::Google::Cloud::Error.from_error(e)
523
523
  end
524
524
 
525
+ ##
526
+ # Upload and update customer managed certificate bundle for an existing
527
+ # Cloud SQL instance.
528
+ #
529
+ # @overload update_customer_managed_certificate(request, options = nil)
530
+ # Pass arguments to `update_customer_managed_certificate` via a request object, either of type
531
+ # {::Google::Cloud::Sql::V1beta4::UpdateCustomerManagedCertificateRequest} or an equivalent Hash.
532
+ #
533
+ # @param request [::Google::Cloud::Sql::V1beta4::UpdateCustomerManagedCertificateRequest, ::Hash]
534
+ # A request object representing the call parameters. Required. To specify no
535
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
536
+ # @param options [::Gapic::CallOptions, ::Hash]
537
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
538
+ #
539
+ # @overload update_customer_managed_certificate(instance: nil, project: nil, customer_managed_certificate_config: nil, update_mask: nil, allow_missing: nil, certificate_bundle: nil)
540
+ # Pass arguments to `update_customer_managed_certificate` via keyword arguments. Note that at
541
+ # least one keyword argument is required. To specify no parameters, or to keep all
542
+ # the default parameter values, pass an empty Hash as a request object (see above).
543
+ #
544
+ # @param instance [::String]
545
+ # Required. Cloud SQL instance ID. This does not include the project ID.
546
+ # @param project [::String]
547
+ # Required. Project ID of the project that contains the instance.
548
+ # @param customer_managed_certificate_config [::Google::Cloud::Sql::V1beta4::CustomerManagedCertificateConfig, ::Hash]
549
+ # Required. The customer managed certificate bundle SSL configuration to
550
+ # update.
551
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
552
+ # Optional. The list of fields to be updated.
553
+ # @param allow_missing [::Boolean]
554
+ # Optional. If set to true, and the customer managed certificate bundle
555
+ # configuration is not found, a new customer managed certificate bundle
556
+ # configuration will be created. In this situation, `update_mask` is ignored.
557
+ # @param certificate_bundle [::String]
558
+ # Required. Name tag of the customer managed certificate bundle to update. It
559
+ # must be alphanumeric and have a maximum length of 10 characters.
560
+ # @yield [result, operation] Access the result along with the TransportOperation object
561
+ # @yieldparam result [::Google::Cloud::Sql::V1beta4::Operation]
562
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
563
+ #
564
+ # @return [::Google::Cloud::Sql::V1beta4::Operation]
565
+ #
566
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
567
+ #
568
+ # @example Basic example
569
+ # require "google/cloud/sql/v1beta4"
570
+ #
571
+ # # Create a client object. The client can be reused for multiple calls.
572
+ # client = Google::Cloud::Sql::V1beta4::SqlSslCertsService::Rest::Client.new
573
+ #
574
+ # # Create a request. To set request fields, pass in keyword arguments.
575
+ # request = Google::Cloud::Sql::V1beta4::UpdateCustomerManagedCertificateRequest.new
576
+ #
577
+ # # Call the update_customer_managed_certificate method.
578
+ # result = client.update_customer_managed_certificate request
579
+ #
580
+ # # The returned object is of type Google::Cloud::Sql::V1beta4::Operation.
581
+ # p result
582
+ #
583
+ def update_customer_managed_certificate request, options = nil
584
+ raise ::ArgumentError, "request must be provided" if request.nil?
585
+
586
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Sql::V1beta4::UpdateCustomerManagedCertificateRequest
587
+
588
+ # Converts hash and nil to an options object
589
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
590
+
591
+ # Customize the options with defaults
592
+ call_metadata = @config.rpcs.update_customer_managed_certificate.metadata.to_h
593
+
594
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
595
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
596
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
597
+ gapic_version: ::Google::Cloud::Sql::V1beta4::VERSION,
598
+ transports_version_send: [:rest]
599
+
600
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
601
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
602
+
603
+ options.apply_defaults timeout: @config.rpcs.update_customer_managed_certificate.timeout,
604
+ metadata: call_metadata,
605
+ retry_policy: @config.rpcs.update_customer_managed_certificate.retry_policy
606
+
607
+ options.apply_defaults timeout: @config.timeout,
608
+ metadata: @config.metadata,
609
+ retry_policy: @config.retry_policy
610
+
611
+ @sql_ssl_certs_service_stub.update_customer_managed_certificate request, options do |result, operation|
612
+ yield result, operation if block_given?
613
+ end
614
+ rescue ::Gapic::Rest::Error => e
615
+ raise ::Google::Cloud::Error.from_error(e)
616
+ end
617
+
618
+ ##
619
+ # Delete customer managed certificate bundle for an existing Cloud SQL
620
+ # instance.
621
+ #
622
+ # @overload delete_customer_managed_certificate(request, options = nil)
623
+ # Pass arguments to `delete_customer_managed_certificate` via a request object, either of type
624
+ # {::Google::Cloud::Sql::V1beta4::DeleteCustomerManagedCertificateRequest} or an equivalent Hash.
625
+ #
626
+ # @param request [::Google::Cloud::Sql::V1beta4::DeleteCustomerManagedCertificateRequest, ::Hash]
627
+ # A request object representing the call parameters. Required. To specify no
628
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
629
+ # @param options [::Gapic::CallOptions, ::Hash]
630
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
631
+ #
632
+ # @overload delete_customer_managed_certificate(instance: nil, project: nil, certificate_bundle: nil)
633
+ # Pass arguments to `delete_customer_managed_certificate` via keyword arguments. Note that at
634
+ # least one keyword argument is required. To specify no parameters, or to keep all
635
+ # the default parameter values, pass an empty Hash as a request object (see above).
636
+ #
637
+ # @param instance [::String]
638
+ # Required. Cloud SQL instance ID. This does not include the project ID.
639
+ # @param project [::String]
640
+ # Required. Project ID of the project that contains the instance.
641
+ # @param certificate_bundle [::String]
642
+ # Required. Name tag of the customer managed certificate bundle to delete. It
643
+ # must be alphanumeric and have a maximum length of 10 characters.
644
+ # @yield [result, operation] Access the result along with the TransportOperation object
645
+ # @yieldparam result [::Google::Cloud::Sql::V1beta4::Operation]
646
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
647
+ #
648
+ # @return [::Google::Cloud::Sql::V1beta4::Operation]
649
+ #
650
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
651
+ #
652
+ # @example Basic example
653
+ # require "google/cloud/sql/v1beta4"
654
+ #
655
+ # # Create a client object. The client can be reused for multiple calls.
656
+ # client = Google::Cloud::Sql::V1beta4::SqlSslCertsService::Rest::Client.new
657
+ #
658
+ # # Create a request. To set request fields, pass in keyword arguments.
659
+ # request = Google::Cloud::Sql::V1beta4::DeleteCustomerManagedCertificateRequest.new
660
+ #
661
+ # # Call the delete_customer_managed_certificate method.
662
+ # result = client.delete_customer_managed_certificate request
663
+ #
664
+ # # The returned object is of type Google::Cloud::Sql::V1beta4::Operation.
665
+ # p result
666
+ #
667
+ def delete_customer_managed_certificate request, options = nil
668
+ raise ::ArgumentError, "request must be provided" if request.nil?
669
+
670
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Sql::V1beta4::DeleteCustomerManagedCertificateRequest
671
+
672
+ # Converts hash and nil to an options object
673
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
674
+
675
+ # Customize the options with defaults
676
+ call_metadata = @config.rpcs.delete_customer_managed_certificate.metadata.to_h
677
+
678
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
679
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
680
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
681
+ gapic_version: ::Google::Cloud::Sql::V1beta4::VERSION,
682
+ transports_version_send: [:rest]
683
+
684
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
685
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
686
+
687
+ options.apply_defaults timeout: @config.rpcs.delete_customer_managed_certificate.timeout,
688
+ metadata: call_metadata,
689
+ retry_policy: @config.rpcs.delete_customer_managed_certificate.retry_policy
690
+
691
+ options.apply_defaults timeout: @config.timeout,
692
+ metadata: @config.metadata,
693
+ retry_policy: @config.retry_policy
694
+
695
+ @sql_ssl_certs_service_stub.delete_customer_managed_certificate request, options do |result, operation|
696
+ yield result, operation if block_given?
697
+ end
698
+ rescue ::Gapic::Rest::Error => e
699
+ raise ::Google::Cloud::Error.from_error(e)
700
+ end
701
+
702
+ ##
703
+ # List all customer managed certificate bundles for an existing Cloud SQL
704
+ # instance.
705
+ #
706
+ # @overload list_customer_managed_certificates(request, options = nil)
707
+ # Pass arguments to `list_customer_managed_certificates` via a request object, either of type
708
+ # {::Google::Cloud::Sql::V1beta4::ListCustomerManagedCertificatesRequest} or an equivalent Hash.
709
+ #
710
+ # @param request [::Google::Cloud::Sql::V1beta4::ListCustomerManagedCertificatesRequest, ::Hash]
711
+ # A request object representing the call parameters. Required. To specify no
712
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
713
+ # @param options [::Gapic::CallOptions, ::Hash]
714
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
715
+ #
716
+ # @overload list_customer_managed_certificates(instance: nil, project: nil)
717
+ # Pass arguments to `list_customer_managed_certificates` via keyword arguments. Note that at
718
+ # least one keyword argument is required. To specify no parameters, or to keep all
719
+ # the default parameter values, pass an empty Hash as a request object (see above).
720
+ #
721
+ # @param instance [::String]
722
+ # Required. Cloud SQL instance ID. This does not include the project ID.
723
+ # @param project [::String]
724
+ # Required. Project ID of the project that contains the instance.
725
+ # @yield [result, operation] Access the result along with the TransportOperation object
726
+ # @yieldparam result [::Google::Cloud::Sql::V1beta4::ListCustomerManagedCertificatesResponse]
727
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
728
+ #
729
+ # @return [::Google::Cloud::Sql::V1beta4::ListCustomerManagedCertificatesResponse]
730
+ #
731
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
732
+ #
733
+ # @example Basic example
734
+ # require "google/cloud/sql/v1beta4"
735
+ #
736
+ # # Create a client object. The client can be reused for multiple calls.
737
+ # client = Google::Cloud::Sql::V1beta4::SqlSslCertsService::Rest::Client.new
738
+ #
739
+ # # Create a request. To set request fields, pass in keyword arguments.
740
+ # request = Google::Cloud::Sql::V1beta4::ListCustomerManagedCertificatesRequest.new
741
+ #
742
+ # # Call the list_customer_managed_certificates method.
743
+ # result = client.list_customer_managed_certificates request
744
+ #
745
+ # # The returned object is of type Google::Cloud::Sql::V1beta4::ListCustomerManagedCertificatesResponse.
746
+ # p result
747
+ #
748
+ def list_customer_managed_certificates request, options = nil
749
+ raise ::ArgumentError, "request must be provided" if request.nil?
750
+
751
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Sql::V1beta4::ListCustomerManagedCertificatesRequest
752
+
753
+ # Converts hash and nil to an options object
754
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
755
+
756
+ # Customize the options with defaults
757
+ call_metadata = @config.rpcs.list_customer_managed_certificates.metadata.to_h
758
+
759
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
760
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
761
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
762
+ gapic_version: ::Google::Cloud::Sql::V1beta4::VERSION,
763
+ transports_version_send: [:rest]
764
+
765
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
766
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
767
+
768
+ options.apply_defaults timeout: @config.rpcs.list_customer_managed_certificates.timeout,
769
+ metadata: call_metadata,
770
+ retry_policy: @config.rpcs.list_customer_managed_certificates.retry_policy
771
+
772
+ options.apply_defaults timeout: @config.timeout,
773
+ metadata: @config.metadata,
774
+ retry_policy: @config.retry_policy
775
+
776
+ @sql_ssl_certs_service_stub.list_customer_managed_certificates request, options do |result, operation|
777
+ yield result, operation if block_given?
778
+ end
779
+ rescue ::Gapic::Rest::Error => e
780
+ raise ::Google::Cloud::Error.from_error(e)
781
+ end
782
+
525
783
  ##
526
784
  # Configuration class for the SqlSslCertsService REST API.
527
785
  #
@@ -690,6 +948,21 @@ module Google
690
948
  # @return [::Gapic::Config::Method]
691
949
  #
692
950
  attr_reader :list
951
+ ##
952
+ # RPC-specific configuration for `update_customer_managed_certificate`
953
+ # @return [::Gapic::Config::Method]
954
+ #
955
+ attr_reader :update_customer_managed_certificate
956
+ ##
957
+ # RPC-specific configuration for `delete_customer_managed_certificate`
958
+ # @return [::Gapic::Config::Method]
959
+ #
960
+ attr_reader :delete_customer_managed_certificate
961
+ ##
962
+ # RPC-specific configuration for `list_customer_managed_certificates`
963
+ # @return [::Gapic::Config::Method]
964
+ #
965
+ attr_reader :list_customer_managed_certificates
693
966
 
694
967
  # @private
695
968
  def initialize parent_rpcs = nil
@@ -701,6 +974,12 @@ module Google
701
974
  @insert = ::Gapic::Config::Method.new insert_config
702
975
  list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
703
976
  @list = ::Gapic::Config::Method.new list_config
977
+ update_customer_managed_certificate_config = parent_rpcs.update_customer_managed_certificate if parent_rpcs.respond_to? :update_customer_managed_certificate
978
+ @update_customer_managed_certificate = ::Gapic::Config::Method.new update_customer_managed_certificate_config
979
+ delete_customer_managed_certificate_config = parent_rpcs.delete_customer_managed_certificate if parent_rpcs.respond_to? :delete_customer_managed_certificate
980
+ @delete_customer_managed_certificate = ::Gapic::Config::Method.new delete_customer_managed_certificate_config
981
+ list_customer_managed_certificates_config = parent_rpcs.list_customer_managed_certificates if parent_rpcs.respond_to? :list_customer_managed_certificates
982
+ @list_customer_managed_certificates = ::Gapic::Config::Method.new list_customer_managed_certificates_config
704
983
 
705
984
  yield self if block_given?
706
985
  end
@@ -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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Sql
23
23
  module V1beta4
24
- VERSION = "0.6.0"
24
+ VERSION = "0.7.0"
25
25
  end
26
26
  end
27
27
  end