google-cloud-redis-cluster-v1 0.3.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82e6d2c541cf643f59ac3ecc1a022644a27c745091d23c607be2ea6b578a928b
4
- data.tar.gz: 1b8b23ef096ee3070bb1d67fdd87d770d25a64db45a085ada902dc63af6292d5
3
+ metadata.gz: fbda4ce7bbb017cecc4f422007994cd0916f6efba8ed982220dcdcba1894ec19
4
+ data.tar.gz: 2e8bf42ce977964a6bc0f2070b773d163aee73200807e51f26000a26c18f80a1
5
5
  SHA512:
6
- metadata.gz: dc77997e8f082fea025255ddad8e4ab183c121e8d0a097e7bdc118184fa54142e68cf5d110a0743cb50d65ca7cd3af6f01c48077510b2b9ec99a6b517c4c8020
7
- data.tar.gz: 275668e048c0030c9980c6dcfce4f988e4e3e7151bdb3f0dde5244e3ab22d919fe25e0f5a16284e92afc4e255fd4eb6378c01287e8a73f625d339ecb0bb57e79
6
+ metadata.gz: df0975d7bbbc4a20eb2fc61c24cbacc521b79054054637044083e826717995ebcee7737a7b0d1a3534ec8be88c85e2d47ab19cf0a39ee6490f4f5ce3623ea90c
7
+ data.tar.gz: 887b530fe5b53ed23519ca86f0df0c05f3467a78114c26be967100a407b8f04032ad4c1d46c910c81a92491767fe3d28950d8df3e7db7f8b498eb6bd3b823452
@@ -52,6 +52,9 @@ module Google
52
52
  # * More details in go/redis-flex-api-versioning
53
53
  #
54
54
  class Client
55
+ # @private
56
+ API_VERSION = ""
57
+
55
58
  # @private
56
59
  DEFAULT_ENDPOINT_TEMPLATE = "redis.$UNIVERSE_DOMAIN$"
57
60
 
@@ -99,6 +102,8 @@ module Google
99
102
 
100
103
  default_config.rpcs.create_cluster.timeout = 600.0
101
104
 
105
+ default_config.rpcs.get_cluster_certificate_authority.timeout = 600.0
106
+
102
107
  default_config
103
108
  end
104
109
  yield @configure if block_given?
@@ -300,10 +305,11 @@ module Google
300
305
  # Customize the options with defaults
301
306
  metadata = @config.rpcs.list_clusters.metadata.to_h
302
307
 
303
- # Set x-goog-api-client and x-goog-user-project headers
308
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
304
309
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
305
310
  lib_name: @config.lib_name, lib_version: @config.lib_version,
306
311
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION
312
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
307
313
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
308
314
 
309
315
  header_params = {}
@@ -388,10 +394,11 @@ module Google
388
394
  # Customize the options with defaults
389
395
  metadata = @config.rpcs.get_cluster.metadata.to_h
390
396
 
391
- # Set x-goog-api-client and x-goog-user-project headers
397
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
392
398
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
393
399
  lib_name: @config.lib_name, lib_version: @config.lib_version,
394
400
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION
401
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
395
402
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
396
403
 
397
404
  header_params = {}
@@ -494,10 +501,11 @@ module Google
494
501
  # Customize the options with defaults
495
502
  metadata = @config.rpcs.update_cluster.metadata.to_h
496
503
 
497
- # Set x-goog-api-client and x-goog-user-project headers
504
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
498
505
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
499
506
  lib_name: @config.lib_name, lib_version: @config.lib_version,
500
507
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION
508
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
501
509
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
502
510
 
503
511
  header_params = {}
@@ -592,10 +600,11 @@ module Google
592
600
  # Customize the options with defaults
593
601
  metadata = @config.rpcs.delete_cluster.metadata.to_h
594
602
 
595
- # Set x-goog-api-client and x-goog-user-project headers
603
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
596
604
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
597
605
  lib_name: @config.lib_name, lib_version: @config.lib_version,
598
606
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION
607
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
599
608
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
600
609
 
601
610
  header_params = {}
@@ -707,10 +716,11 @@ module Google
707
716
  # Customize the options with defaults
708
717
  metadata = @config.rpcs.create_cluster.metadata.to_h
709
718
 
710
- # Set x-goog-api-client and x-goog-user-project headers
719
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
711
720
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
712
721
  lib_name: @config.lib_name, lib_version: @config.lib_version,
713
722
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION
723
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
714
724
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
715
725
 
716
726
  header_params = {}
@@ -738,6 +748,94 @@ module Google
738
748
  raise ::Google::Cloud::Error.from_error(e)
739
749
  end
740
750
 
751
+ ##
752
+ # Gets the details of certificate authority information for Redis cluster.
753
+ #
754
+ # @overload get_cluster_certificate_authority(request, options = nil)
755
+ # Pass arguments to `get_cluster_certificate_authority` via a request object, either of type
756
+ # {::Google::Cloud::Redis::Cluster::V1::GetClusterCertificateAuthorityRequest} or an equivalent Hash.
757
+ #
758
+ # @param request [::Google::Cloud::Redis::Cluster::V1::GetClusterCertificateAuthorityRequest, ::Hash]
759
+ # A request object representing the call parameters. Required. To specify no
760
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
761
+ # @param options [::Gapic::CallOptions, ::Hash]
762
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
763
+ #
764
+ # @overload get_cluster_certificate_authority(name: nil)
765
+ # Pass arguments to `get_cluster_certificate_authority` via keyword arguments. Note that at
766
+ # least one keyword argument is required. To specify no parameters, or to keep all
767
+ # the default parameter values, pass an empty Hash as a request object (see above).
768
+ #
769
+ # @param name [::String]
770
+ # Required. Redis cluster certificate authority resource name using the form:
771
+ # `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
772
+ # where `location_id` refers to a GCP region.
773
+ #
774
+ # @yield [response, operation] Access the result along with the RPC operation
775
+ # @yieldparam response [::Google::Cloud::Redis::Cluster::V1::CertificateAuthority]
776
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
777
+ #
778
+ # @return [::Google::Cloud::Redis::Cluster::V1::CertificateAuthority]
779
+ #
780
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
781
+ #
782
+ # @example Basic example
783
+ # require "google/cloud/redis/cluster/v1"
784
+ #
785
+ # # Create a client object. The client can be reused for multiple calls.
786
+ # client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Client.new
787
+ #
788
+ # # Create a request. To set request fields, pass in keyword arguments.
789
+ # request = Google::Cloud::Redis::Cluster::V1::GetClusterCertificateAuthorityRequest.new
790
+ #
791
+ # # Call the get_cluster_certificate_authority method.
792
+ # result = client.get_cluster_certificate_authority request
793
+ #
794
+ # # The returned object is of type Google::Cloud::Redis::Cluster::V1::CertificateAuthority.
795
+ # p result
796
+ #
797
+ def get_cluster_certificate_authority request, options = nil
798
+ raise ::ArgumentError, "request must be provided" if request.nil?
799
+
800
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::GetClusterCertificateAuthorityRequest
801
+
802
+ # Converts hash and nil to an options object
803
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
804
+
805
+ # Customize the options with defaults
806
+ metadata = @config.rpcs.get_cluster_certificate_authority.metadata.to_h
807
+
808
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
809
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
810
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
811
+ gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION
812
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
813
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
814
+
815
+ header_params = {}
816
+ if request.name
817
+ header_params["name"] = request.name
818
+ end
819
+
820
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
821
+ metadata[:"x-goog-request-params"] ||= request_params_header
822
+
823
+ options.apply_defaults timeout: @config.rpcs.get_cluster_certificate_authority.timeout,
824
+ metadata: metadata,
825
+ retry_policy: @config.rpcs.get_cluster_certificate_authority.retry_policy
826
+
827
+ options.apply_defaults timeout: @config.timeout,
828
+ metadata: @config.metadata,
829
+ retry_policy: @config.retry_policy
830
+
831
+ @cloud_redis_cluster_stub.call_rpc :get_cluster_certificate_authority, request, options: options do |response, operation|
832
+ yield response, operation if block_given?
833
+ return response
834
+ end
835
+ rescue ::GRPC::BadStatus => e
836
+ raise ::Google::Cloud::Error.from_error(e)
837
+ end
838
+
741
839
  ##
742
840
  # Configuration class for the CloudRedisCluster API.
743
841
  #
@@ -916,6 +1014,11 @@ module Google
916
1014
  # @return [::Gapic::Config::Method]
917
1015
  #
918
1016
  attr_reader :create_cluster
1017
+ ##
1018
+ # RPC-specific configuration for `get_cluster_certificate_authority`
1019
+ # @return [::Gapic::Config::Method]
1020
+ #
1021
+ attr_reader :get_cluster_certificate_authority
919
1022
 
920
1023
  # @private
921
1024
  def initialize parent_rpcs = nil
@@ -929,6 +1032,8 @@ module Google
929
1032
  @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
930
1033
  create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
931
1034
  @create_cluster = ::Gapic::Config::Method.new create_cluster_config
1035
+ get_cluster_certificate_authority_config = parent_rpcs.get_cluster_certificate_authority if parent_rpcs.respond_to? :get_cluster_certificate_authority
1036
+ @get_cluster_certificate_authority = ::Gapic::Config::Method.new get_cluster_certificate_authority_config
932
1037
 
933
1038
  yield self if block_given?
934
1039
  end
@@ -27,6 +27,9 @@ module Google
27
27
  module CloudRedisCluster
28
28
  # Service that implements Longrunning Operations API.
29
29
  class Operations
30
+ # @private
31
+ API_VERSION = ""
32
+
30
33
  # @private
31
34
  DEFAULT_ENDPOINT_TEMPLATE = "redis.$UNIVERSE_DOMAIN$"
32
35
 
@@ -192,10 +195,11 @@ module Google
192
195
  # Customize the options with defaults
193
196
  metadata = @config.rpcs.list_operations.metadata.to_h
194
197
 
195
- # Set x-goog-api-client and x-goog-user-project headers
198
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
196
199
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
197
200
  lib_name: @config.lib_name, lib_version: @config.lib_version,
198
201
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION
202
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
199
203
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
200
204
 
201
205
  header_params = {}
@@ -288,10 +292,11 @@ module Google
288
292
  # Customize the options with defaults
289
293
  metadata = @config.rpcs.get_operation.metadata.to_h
290
294
 
291
- # Set x-goog-api-client and x-goog-user-project headers
295
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
292
296
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
293
297
  lib_name: @config.lib_name, lib_version: @config.lib_version,
294
298
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION
299
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
295
300
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
296
301
 
297
302
  header_params = {}
@@ -377,10 +382,11 @@ module Google
377
382
  # Customize the options with defaults
378
383
  metadata = @config.rpcs.delete_operation.metadata.to_h
379
384
 
380
- # Set x-goog-api-client and x-goog-user-project headers
385
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
381
386
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
382
387
  lib_name: @config.lib_name, lib_version: @config.lib_version,
383
388
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION
389
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
384
390
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
385
391
 
386
392
  header_params = {}
@@ -471,10 +477,11 @@ module Google
471
477
  # Customize the options with defaults
472
478
  metadata = @config.rpcs.cancel_operation.metadata.to_h
473
479
 
474
- # Set x-goog-api-client and x-goog-user-project headers
480
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
475
481
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
476
482
  lib_name: @config.lib_name, lib_version: @config.lib_version,
477
483
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION
484
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
478
485
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
479
486
 
480
487
  header_params = {}
@@ -575,10 +582,11 @@ module Google
575
582
  # Customize the options with defaults
576
583
  metadata = @config.rpcs.wait_operation.metadata.to_h
577
584
 
578
- # Set x-goog-api-client and x-goog-user-project headers
585
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
579
586
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
580
587
  lib_name: @config.lib_name, lib_version: @config.lib_version,
581
588
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION
589
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
582
590
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
583
591
 
584
592
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -25,6 +25,25 @@ module Google
25
25
  module CloudRedisCluster
26
26
  # Path helper methods for the CloudRedisCluster API.
27
27
  module Paths
28
+ ##
29
+ # Create a fully-qualified CertificateAuthority resource string.
30
+ #
31
+ # The resource will be in the following format:
32
+ #
33
+ # `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
34
+ #
35
+ # @param project [String]
36
+ # @param location [String]
37
+ # @param cluster [String]
38
+ #
39
+ # @return [::String]
40
+ def certificate_authority_path project:, location:, cluster:
41
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
42
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
43
+
44
+ "projects/#{project}/locations/#{location}/clusters/#{cluster}/certificateAuthority"
45
+ end
46
+
28
47
  ##
29
48
  # Create a fully-qualified Cluster resource string.
30
49
  #
@@ -54,6 +54,9 @@ module Google
54
54
  # * More details in go/redis-flex-api-versioning
55
55
  #
56
56
  class Client
57
+ # @private
58
+ API_VERSION = ""
59
+
57
60
  # @private
58
61
  DEFAULT_ENDPOINT_TEMPLATE = "redis.$UNIVERSE_DOMAIN$"
59
62
 
@@ -101,6 +104,8 @@ module Google
101
104
 
102
105
  default_config.rpcs.create_cluster.timeout = 600.0
103
106
 
107
+ default_config.rpcs.get_cluster_certificate_authority.timeout = 600.0
108
+
104
109
  default_config
105
110
  end
106
111
  yield @configure if block_given?
@@ -293,12 +298,13 @@ module Google
293
298
  # Customize the options with defaults
294
299
  call_metadata = @config.rpcs.list_clusters.metadata.to_h
295
300
 
296
- # Set x-goog-api-client and x-goog-user-project headers
301
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
297
302
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
298
303
  lib_name: @config.lib_name, lib_version: @config.lib_version,
299
304
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
300
305
  transports_version_send: [:rest]
301
306
 
307
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
302
308
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
303
309
 
304
310
  options.apply_defaults timeout: @config.rpcs.list_clusters.timeout,
@@ -373,12 +379,13 @@ module Google
373
379
  # Customize the options with defaults
374
380
  call_metadata = @config.rpcs.get_cluster.metadata.to_h
375
381
 
376
- # Set x-goog-api-client and x-goog-user-project headers
382
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
377
383
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
378
384
  lib_name: @config.lib_name, lib_version: @config.lib_version,
379
385
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
380
386
  transports_version_send: [:rest]
381
387
 
388
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
382
389
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
390
 
384
391
  options.apply_defaults timeout: @config.rpcs.get_cluster.timeout,
@@ -472,12 +479,13 @@ module Google
472
479
  # Customize the options with defaults
473
480
  call_metadata = @config.rpcs.update_cluster.metadata.to_h
474
481
 
475
- # Set x-goog-api-client and x-goog-user-project headers
482
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
476
483
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
477
484
  lib_name: @config.lib_name, lib_version: @config.lib_version,
478
485
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
479
486
  transports_version_send: [:rest]
480
487
 
488
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
481
489
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
482
490
 
483
491
  options.apply_defaults timeout: @config.rpcs.update_cluster.timeout,
@@ -563,12 +571,13 @@ module Google
563
571
  # Customize the options with defaults
564
572
  call_metadata = @config.rpcs.delete_cluster.metadata.to_h
565
573
 
566
- # Set x-goog-api-client and x-goog-user-project headers
574
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
567
575
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
568
576
  lib_name: @config.lib_name, lib_version: @config.lib_version,
569
577
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
570
578
  transports_version_send: [:rest]
571
579
 
580
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
572
581
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
573
582
 
574
583
  options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout,
@@ -671,12 +680,13 @@ module Google
671
680
  # Customize the options with defaults
672
681
  call_metadata = @config.rpcs.create_cluster.metadata.to_h
673
682
 
674
- # Set x-goog-api-client and x-goog-user-project headers
683
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
675
684
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
676
685
  lib_name: @config.lib_name, lib_version: @config.lib_version,
677
686
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
678
687
  transports_version_send: [:rest]
679
688
 
689
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
680
690
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
681
691
 
682
692
  options.apply_defaults timeout: @config.rpcs.create_cluster.timeout,
@@ -696,6 +706,87 @@ module Google
696
706
  raise ::Google::Cloud::Error.from_error(e)
697
707
  end
698
708
 
709
+ ##
710
+ # Gets the details of certificate authority information for Redis cluster.
711
+ #
712
+ # @overload get_cluster_certificate_authority(request, options = nil)
713
+ # Pass arguments to `get_cluster_certificate_authority` via a request object, either of type
714
+ # {::Google::Cloud::Redis::Cluster::V1::GetClusterCertificateAuthorityRequest} or an equivalent Hash.
715
+ #
716
+ # @param request [::Google::Cloud::Redis::Cluster::V1::GetClusterCertificateAuthorityRequest, ::Hash]
717
+ # A request object representing the call parameters. Required. To specify no
718
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
719
+ # @param options [::Gapic::CallOptions, ::Hash]
720
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
721
+ #
722
+ # @overload get_cluster_certificate_authority(name: nil)
723
+ # Pass arguments to `get_cluster_certificate_authority` via keyword arguments. Note that at
724
+ # least one keyword argument is required. To specify no parameters, or to keep all
725
+ # the default parameter values, pass an empty Hash as a request object (see above).
726
+ #
727
+ # @param name [::String]
728
+ # Required. Redis cluster certificate authority resource name using the form:
729
+ # `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
730
+ # where `location_id` refers to a GCP region.
731
+ # @yield [result, operation] Access the result along with the TransportOperation object
732
+ # @yieldparam result [::Google::Cloud::Redis::Cluster::V1::CertificateAuthority]
733
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
734
+ #
735
+ # @return [::Google::Cloud::Redis::Cluster::V1::CertificateAuthority]
736
+ #
737
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
738
+ #
739
+ # @example Basic example
740
+ # require "google/cloud/redis/cluster/v1"
741
+ #
742
+ # # Create a client object. The client can be reused for multiple calls.
743
+ # client = Google::Cloud::Redis::Cluster::V1::CloudRedisCluster::Rest::Client.new
744
+ #
745
+ # # Create a request. To set request fields, pass in keyword arguments.
746
+ # request = Google::Cloud::Redis::Cluster::V1::GetClusterCertificateAuthorityRequest.new
747
+ #
748
+ # # Call the get_cluster_certificate_authority method.
749
+ # result = client.get_cluster_certificate_authority request
750
+ #
751
+ # # The returned object is of type Google::Cloud::Redis::Cluster::V1::CertificateAuthority.
752
+ # p result
753
+ #
754
+ def get_cluster_certificate_authority request, options = nil
755
+ raise ::ArgumentError, "request must be provided" if request.nil?
756
+
757
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Redis::Cluster::V1::GetClusterCertificateAuthorityRequest
758
+
759
+ # Converts hash and nil to an options object
760
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
761
+
762
+ # Customize the options with defaults
763
+ call_metadata = @config.rpcs.get_cluster_certificate_authority.metadata.to_h
764
+
765
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
766
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
767
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
768
+ gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
769
+ transports_version_send: [:rest]
770
+
771
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
772
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
773
+
774
+ options.apply_defaults timeout: @config.rpcs.get_cluster_certificate_authority.timeout,
775
+ metadata: call_metadata,
776
+ retry_policy: @config.rpcs.get_cluster_certificate_authority.retry_policy
777
+
778
+ options.apply_defaults timeout: @config.timeout,
779
+ metadata: @config.metadata,
780
+ retry_policy: @config.retry_policy
781
+
782
+ @cloud_redis_cluster_stub.get_cluster_certificate_authority request, options do |result, operation|
783
+ yield result, operation if block_given?
784
+ return result
785
+ end
786
+ rescue ::Gapic::Rest::Error => e
787
+ raise ::Google::Cloud::Error.from_error(e)
788
+ end
789
+
699
790
  ##
700
791
  # Configuration class for the CloudRedisCluster REST API.
701
792
  #
@@ -861,6 +952,11 @@ module Google
861
952
  # @return [::Gapic::Config::Method]
862
953
  #
863
954
  attr_reader :create_cluster
955
+ ##
956
+ # RPC-specific configuration for `get_cluster_certificate_authority`
957
+ # @return [::Gapic::Config::Method]
958
+ #
959
+ attr_reader :get_cluster_certificate_authority
864
960
 
865
961
  # @private
866
962
  def initialize parent_rpcs = nil
@@ -874,6 +970,8 @@ module Google
874
970
  @delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
875
971
  create_cluster_config = parent_rpcs.create_cluster if parent_rpcs.respond_to? :create_cluster
876
972
  @create_cluster = ::Gapic::Config::Method.new create_cluster_config
973
+ get_cluster_certificate_authority_config = parent_rpcs.get_cluster_certificate_authority if parent_rpcs.respond_to? :get_cluster_certificate_authority
974
+ @get_cluster_certificate_authority = ::Gapic::Config::Method.new get_cluster_certificate_authority_config
877
975
 
878
976
  yield self if block_given?
879
977
  end
@@ -27,6 +27,9 @@ module Google
27
27
  module Rest
28
28
  # Service that implements Longrunning Operations API.
29
29
  class Operations
30
+ # @private
31
+ API_VERSION = ""
32
+
30
33
  # @private
31
34
  DEFAULT_ENDPOINT_TEMPLATE = "redis.$UNIVERSE_DOMAIN$"
32
35
 
@@ -182,12 +185,13 @@ module Google
182
185
  # Customize the options with defaults
183
186
  call_metadata = @config.rpcs.list_operations.metadata.to_h
184
187
 
185
- # Set x-goog-api-client and x-goog-user-project headers
188
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
186
189
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
187
190
  lib_name: @config.lib_name, lib_version: @config.lib_version,
188
191
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
189
192
  transports_version_send: [:rest]
190
193
 
194
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
191
195
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
192
196
 
193
197
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -270,12 +274,13 @@ module Google
270
274
  # Customize the options with defaults
271
275
  call_metadata = @config.rpcs.get_operation.metadata.to_h
272
276
 
273
- # Set x-goog-api-client and x-goog-user-project headers
277
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
274
278
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
275
279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
276
280
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
277
281
  transports_version_send: [:rest]
278
282
 
283
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
279
284
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
280
285
 
281
286
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -352,12 +357,13 @@ module Google
352
357
  # Customize the options with defaults
353
358
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
354
359
 
355
- # Set x-goog-api-client and x-goog-user-project headers
360
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
356
361
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
357
362
  lib_name: @config.lib_name, lib_version: @config.lib_version,
358
363
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
359
364
  transports_version_send: [:rest]
360
365
 
366
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
361
367
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
362
368
 
363
369
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -439,12 +445,13 @@ module Google
439
445
  # Customize the options with defaults
440
446
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
441
447
 
442
- # Set x-goog-api-client and x-goog-user-project headers
448
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
443
449
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
444
450
  lib_name: @config.lib_name, lib_version: @config.lib_version,
445
451
  gapic_version: ::Google::Cloud::Redis::Cluster::V1::VERSION,
446
452
  transports_version_send: [:rest]
447
453
 
454
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
448
455
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
449
456
 
450
457
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -252,6 +252,44 @@ module Google
252
252
  result
253
253
  end
254
254
 
255
+ ##
256
+ # Baseline implementation for the get_cluster_certificate_authority REST call
257
+ #
258
+ # @param request_pb [::Google::Cloud::Redis::Cluster::V1::GetClusterCertificateAuthorityRequest]
259
+ # A request object representing the call parameters. Required.
260
+ # @param options [::Gapic::CallOptions]
261
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
262
+ #
263
+ # @yield [result, operation] Access the result along with the TransportOperation object
264
+ # @yieldparam result [::Google::Cloud::Redis::Cluster::V1::CertificateAuthority]
265
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
266
+ #
267
+ # @return [::Google::Cloud::Redis::Cluster::V1::CertificateAuthority]
268
+ # A result object deserialized from the server's reply
269
+ def get_cluster_certificate_authority request_pb, options = nil
270
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
271
+
272
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_cluster_certificate_authority_request request_pb
273
+ query_string_params = if query_string_params.any?
274
+ query_string_params.to_h { |p| p.split "=", 2 }
275
+ else
276
+ {}
277
+ end
278
+
279
+ response = @client_stub.make_http_request(
280
+ verb,
281
+ uri: uri,
282
+ body: body || "",
283
+ params: query_string_params,
284
+ options: options
285
+ )
286
+ operation = ::Gapic::Rest::TransportOperation.new response
287
+ result = ::Google::Cloud::Redis::Cluster::V1::CertificateAuthority.decode_json response.body, ignore_unknown_fields: true
288
+
289
+ yield result, operation if block_given?
290
+ result
291
+ end
292
+
255
293
  ##
256
294
  # @private
257
295
  #
@@ -358,6 +396,27 @@ module Google
358
396
  )
359
397
  transcoder.transcode request_pb
360
398
  end
399
+
400
+ ##
401
+ # @private
402
+ #
403
+ # GRPC transcoding helper method for the get_cluster_certificate_authority REST call
404
+ #
405
+ # @param request_pb [::Google::Cloud::Redis::Cluster::V1::GetClusterCertificateAuthorityRequest]
406
+ # A request object representing the call parameters. Required.
407
+ # @return [Array(String, [String, nil], Hash{String => String})]
408
+ # Uri, Body, Query string parameters
409
+ def self.transcode_get_cluster_certificate_authority_request request_pb
410
+ transcoder = Gapic::Rest::GrpcTranscoder.new
411
+ .with_bindings(
412
+ uri_method: :get,
413
+ uri_template: "/v1/{name}",
414
+ matches: [
415
+ ["name", %r{^projects/[^/]+/locations/[^/]+/clusters/[^/]+/certificateAuthority/?$}, false]
416
+ ]
417
+ )
418
+ transcoder.transcode request_pb
419
+ end
361
420
  end
362
421
  end
363
422
  end
@@ -15,7 +15,7 @@ require 'google/protobuf/field_mask_pb'
15
15
  require 'google/protobuf/timestamp_pb'
16
16
 
17
17
 
18
- descriptor_data = "\n7google/cloud/redis/cluster/v1/cloud_redis_cluster.proto\x12\x1dgoogle.cloud.redis.cluster.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbc\x01\n\x14\x43reateClusterRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x17\n\ncluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12<\n\x07\x63luster\x18\x03 \x01(\x0b\x32&.google.cloud.redis.cluster.v1.ClusterB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x04 \x01(\t\"w\n\x13ListClustersRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"~\n\x14ListClustersResponse\x12\x38\n\x08\x63lusters\x18\x01 \x03(\x0b\x32&.google.cloud.redis.cluster.v1.Cluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x9e\x01\n\x14UpdateClusterRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12<\n\x07\x63luster\x18\x02 \x01(\x0b\x32&.google.cloud.redis.cluster.v1.ClusterB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x03 \x01(\t\"G\n\x11GetClusterRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1credis.googleapis.com/Cluster\"^\n\x14\x44\x65leteClusterRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1credis.googleapis.com/Cluster\x12\x12\n\nrequest_id\x18\x02 \x01(\t\"\xaf\t\n\x07\x43luster\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x05state\x18\x04 \x01(\x0e\x32,.google.cloud.redis.cluster.v1.Cluster.StateB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\rreplica_count\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12Q\n\x12\x61uthorization_mode\x18\x0b \x01(\x0e\x32\x30.google.cloud.redis.cluster.v1.AuthorizationModeB\x03\xe0\x41\x01\x12Z\n\x17transit_encryption_mode\x18\x0c \x01(\x0e\x32\x34.google.cloud.redis.cluster.v1.TransitEncryptionModeB\x03\xe0\x41\x01\x12\x19\n\x07size_gb\x18\r \x01(\x05\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1d\n\x0bshard_count\x18\x0e \x01(\x05\x42\x03\xe0\x41\x02H\x02\x88\x01\x01\x12\x42\n\x0bpsc_configs\x18\x0f \x03(\x0b\x32(.google.cloud.redis.cluster.v1.PscConfigB\x03\xe0\x41\x02\x12R\n\x13\x64iscovery_endpoints\x18\x10 \x03(\x0b\x32\x30.google.cloud.redis.cluster.v1.DiscoveryEndpointB\x03\xe0\x41\x03\x12J\n\x0fpsc_connections\x18\x11 \x03(\x0b\x32,.google.cloud.redis.cluster.v1.PscConnectionB\x03\xe0\x41\x03\x12I\n\nstate_info\x18\x12 \x01(\x0b\x32\x30.google.cloud.redis.cluster.v1.Cluster.StateInfoB\x03\xe0\x41\x03\x1a\xea\x01\n\tStateInfo\x12R\n\x0bupdate_info\x18\x01 \x01(\x0b\x32;.google.cloud.redis.cluster.v1.Cluster.StateInfo.UpdateInfoH\x00\x1a\x80\x01\n\nUpdateInfo\x12\x1f\n\x12target_shard_count\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12!\n\x14target_replica_count\x18\x02 \x01(\x05H\x01\x88\x01\x01\x42\x15\n\x13_target_shard_countB\x17\n\x15_target_replica_countB\x06\n\x04info\"T\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04:]\xea\x41Z\n\x1credis.googleapis.com/Cluster\x12:projects/{project}/locations/{location}/clusters/{cluster}B\x10\n\x0e_replica_countB\n\n\x08_size_gbB\x0e\n\x0c_shard_count\"!\n\tPscConfig\x12\x14\n\x07network\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x7f\n\x11\x44iscoveryEndpoint\x12\x14\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04port\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12\x41\n\npsc_config\x18\x03 \x01(\x0b\x32(.google.cloud.redis.cluster.v1.PscConfigB\x03\xe0\x41\x03\"\x8d\x01\n\rPscConnection\x12\x1e\n\x11psc_connection_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07\x61\x64\x64ress\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x66orwarding_rule\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nproject_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x0f\n\x07network\x18\x05 \x01(\t\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03*^\n\x11\x41uthorizationMode\x12\x19\n\x15\x41UTH_MODE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x41UTH_MODE_IAM_AUTH\x10\x01\x12\x16\n\x12\x41UTH_MODE_DISABLED\x10\x02*\x99\x01\n\x15TransitEncryptionMode\x12\'\n#TRANSIT_ENCRYPTION_MODE_UNSPECIFIED\x10\x00\x12$\n TRANSIT_ENCRYPTION_MODE_DISABLED\x10\x01\x12\x31\n-TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION\x10\x02\x32\xd4\x08\n\x11\x43loudRedisCluster\x12\xb6\x01\n\x0cListClusters\x12\x32.google.cloud.redis.cluster.v1.ListClustersRequest\x1a\x33.google.cloud.redis.cluster.v1.ListClustersResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/clusters\x12\xa3\x01\n\nGetCluster\x12\x30.google.cloud.redis.cluster.v1.GetClusterRequest\x1a&.google.cloud.redis.cluster.v1.Cluster\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/clusters/*}\x12\xe1\x01\n\rUpdateCluster\x12\x33.google.cloud.redis.cluster.v1.UpdateClusterRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41\x1e\n\x07\x43luster\x12\x13google.protobuf.Any\xda\x41\x13\x63luster,update_mask\x82\xd3\xe4\x93\x02?24/v1/{cluster.name=projects/*/locations/*/clusters/*}:\x07\x63luster\x12\xcf\x01\n\rDeleteCluster\x12\x33.google.cloud.redis.cluster.v1.DeleteClusterRequest\x1a\x1d.google.longrunning.Operation\"j\xca\x41,\n\x15google.protobuf.Empty\x12\x13google.protobuf.Any\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/clusters/*}\x12\xdf\x01\n\rCreateCluster\x12\x33.google.cloud.redis.cluster.v1.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"z\xca\x41\x1e\n\x07\x43luster\x12\x13google.protobuf.Any\xda\x41\x19parent,cluster,cluster_id\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/clusters:\x07\x63luster\x1aH\xca\x41\x14redis.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x9e\x01\n!com.google.cloud.redis.cluster.v1B\x16\x43loudRedisClusterProtoP\x01Z;cloud.google.com/go/redis/cluster/apiv1/clusterpb;clusterpb\xea\x02!Google::Cloud::Redis::Cluster::V1b\x06proto3"
18
+ descriptor_data = "\n7google/cloud/redis/cluster/v1/cloud_redis_cluster.proto\x12\x1dgoogle.cloud.redis.cluster.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbc\x01\n\x14\x43reateClusterRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x17\n\ncluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12<\n\x07\x63luster\x18\x03 \x01(\x0b\x32&.google.cloud.redis.cluster.v1.ClusterB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x04 \x01(\t\"w\n\x13ListClustersRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"~\n\x14ListClustersResponse\x12\x38\n\x08\x63lusters\x18\x01 \x03(\x0b\x32&.google.cloud.redis.cluster.v1.Cluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x9e\x01\n\x14UpdateClusterRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12<\n\x07\x63luster\x18\x02 \x01(\x0b\x32&.google.cloud.redis.cluster.v1.ClusterB\x03\xe0\x41\x02\x12\x12\n\nrequest_id\x18\x03 \x01(\t\"G\n\x11GetClusterRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1credis.googleapis.com/Cluster\"^\n\x14\x44\x65leteClusterRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1credis.googleapis.com/Cluster\x12\x12\n\nrequest_id\x18\x02 \x01(\t\"h\n%GetClusterCertificateAuthorityRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)redis.googleapis.com/CertificateAuthority\"\xb9\r\n\x07\x43luster\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12@\n\x05state\x18\x04 \x01(\x0e\x32,.google.cloud.redis.cluster.v1.Cluster.StateB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\rreplica_count\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12Q\n\x12\x61uthorization_mode\x18\x0b \x01(\x0e\x32\x30.google.cloud.redis.cluster.v1.AuthorizationModeB\x03\xe0\x41\x01\x12Z\n\x17transit_encryption_mode\x18\x0c \x01(\x0e\x32\x34.google.cloud.redis.cluster.v1.TransitEncryptionModeB\x03\xe0\x41\x01\x12\x19\n\x07size_gb\x18\r \x01(\x05\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1d\n\x0bshard_count\x18\x0e \x01(\x05\x42\x03\xe0\x41\x02H\x02\x88\x01\x01\x12\x42\n\x0bpsc_configs\x18\x0f \x03(\x0b\x32(.google.cloud.redis.cluster.v1.PscConfigB\x03\xe0\x41\x02\x12R\n\x13\x64iscovery_endpoints\x18\x10 \x03(\x0b\x32\x30.google.cloud.redis.cluster.v1.DiscoveryEndpointB\x03\xe0\x41\x03\x12J\n\x0fpsc_connections\x18\x11 \x03(\x0b\x32,.google.cloud.redis.cluster.v1.PscConnectionB\x03\xe0\x41\x03\x12I\n\nstate_info\x18\x12 \x01(\x0b\x32\x30.google.cloud.redis.cluster.v1.Cluster.StateInfoB\x03\xe0\x41\x03\x12?\n\tnode_type\x18\x13 \x01(\x0e\x32\'.google.cloud.redis.cluster.v1.NodeTypeB\x03\xe0\x41\x01\x12X\n\x12persistence_config\x18\x14 \x01(\x0b\x32\x37.google.cloud.redis.cluster.v1.ClusterPersistenceConfigB\x03\xe0\x41\x01\x12T\n\rredis_configs\x18\x15 \x03(\x0b\x32\x38.google.cloud.redis.cluster.v1.Cluster.RedisConfigsEntryB\x03\xe0\x41\x01\x12!\n\x0fprecise_size_gb\x18\x16 \x01(\x01\x42\x03\xe0\x41\x03H\x03\x88\x01\x01\x12\\\n\x18zone_distribution_config\x18\x17 \x01(\x0b\x32\x35.google.cloud.redis.cluster.v1.ZoneDistributionConfigB\x03\xe0\x41\x01\x12-\n\x1b\x64\x65letion_protection_enabled\x18\x19 \x01(\x08\x42\x03\xe0\x41\x01H\x04\x88\x01\x01\x1a\xea\x01\n\tStateInfo\x12R\n\x0bupdate_info\x18\x01 \x01(\x0b\x32;.google.cloud.redis.cluster.v1.Cluster.StateInfo.UpdateInfoH\x00\x1a\x80\x01\n\nUpdateInfo\x12\x1f\n\x12target_shard_count\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12!\n\x14target_replica_count\x18\x02 \x01(\x05H\x01\x88\x01\x01\x42\x15\n\x13_target_shard_countB\x17\n\x15_target_replica_countB\x06\n\x04info\x1a\x33\n\x11RedisConfigsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"T\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04:]\xea\x41Z\n\x1credis.googleapis.com/Cluster\x12:projects/{project}/locations/{location}/clusters/{cluster}B\x10\n\x0e_replica_countB\n\n\x08_size_gbB\x0e\n\x0c_shard_countB\x12\n\x10_precise_size_gbB\x1e\n\x1c_deletion_protection_enabled\"!\n\tPscConfig\x12\x14\n\x07network\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x7f\n\x11\x44iscoveryEndpoint\x12\x14\n\x07\x61\x64\x64ress\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04port\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x12\x41\n\npsc_config\x18\x03 \x01(\x0b\x32(.google.cloud.redis.cluster.v1.PscConfigB\x03\xe0\x41\x03\"\x8d\x01\n\rPscConnection\x12\x1e\n\x11psc_connection_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07\x61\x64\x64ress\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x66orwarding_rule\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nproject_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x0f\n\x07network\x18\x05 \x01(\t\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\xd5\x03\n\x14\x43\x65rtificateAuthority\x12l\n\x11managed_server_ca\x18\x01 \x01(\x0b\x32O.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthorityH\x00\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x08\x1a\xad\x01\n\x1bManagedCertificateAuthority\x12k\n\x08\x63\x61_certs\x18\x01 \x03(\x0b\x32Y.google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain\x1a!\n\tCertChain\x12\x14\n\x0c\x63\x65rtificates\x18\x01 \x03(\t:\x7f\xea\x41|\n)redis.googleapis.com/CertificateAuthority\x12Oprojects/{project}/locations/{location}/clusters/{cluster}/certificateAuthorityB\x0b\n\tserver_ca\"\x87\x07\n\x18\x43lusterPersistenceConfig\x12Z\n\x04mode\x18\x01 \x01(\x0e\x32G.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceModeB\x03\xe0\x41\x01\x12Z\n\nrdb_config\x18\x02 \x01(\x0b\x32\x41.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfigB\x03\xe0\x41\x01\x12Z\n\naof_config\x18\x03 \x01(\x0b\x32\x41.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfigB\x03\xe0\x41\x01\x1a\xba\x02\n\tRDBConfig\x12r\n\x13rdb_snapshot_period\x18\x01 \x01(\x0e\x32P.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriodB\x03\xe0\x41\x01\x12@\n\x17rdb_snapshot_start_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"w\n\x0eSnapshotPeriod\x12\x1f\n\x1bSNAPSHOT_PERIOD_UNSPECIFIED\x10\x00\x12\x0c\n\x08ONE_HOUR\x10\x01\x12\r\n\tSIX_HOURS\x10\x02\x12\x10\n\x0cTWELVE_HOURS\x10\x03\x12\x15\n\x11TWENTY_FOUR_HOURS\x10\x04\x1a\xc4\x01\n\tAOFConfig\x12h\n\x0c\x61ppend_fsync\x18\x01 \x01(\x0e\x32M.google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsyncB\x03\xe0\x41\x01\"M\n\x0b\x41ppendFsync\x12\x1c\n\x18\x41PPEND_FSYNC_UNSPECIFIED\x10\x00\x12\x06\n\x02NO\x10\x01\x12\x0c\n\x08\x45VERYSEC\x10\x02\x12\n\n\x06\x41LWAYS\x10\x03\"S\n\x0fPersistenceMode\x12 \n\x1cPERSISTENCE_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x07\n\x03RDB\x10\x02\x12\x07\n\x03\x41OF\x10\x03\"\xeb\x01\n\x16ZoneDistributionConfig\x12]\n\x04mode\x18\x01 \x01(\x0e\x32J.google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionModeB\x03\xe0\x41\x01\x12\x11\n\x04zone\x18\x02 \x01(\tB\x03\xe0\x41\x01\"_\n\x14ZoneDistributionMode\x12&\n\"ZONE_DISTRIBUTION_MODE_UNSPECIFIED\x10\x00\x12\x0e\n\nMULTI_ZONE\x10\x01\x12\x0f\n\x0bSINGLE_ZONE\x10\x02*^\n\x11\x41uthorizationMode\x12\x19\n\x15\x41UTH_MODE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x41UTH_MODE_IAM_AUTH\x10\x01\x12\x16\n\x12\x41UTH_MODE_DISABLED\x10\x02*\x8f\x01\n\x08NodeType\x12\x19\n\x15NODE_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16REDIS_SHARED_CORE_NANO\x10\x01\x12\x18\n\x14REDIS_HIGHMEM_MEDIUM\x10\x02\x12\x18\n\x14REDIS_HIGHMEM_XLARGE\x10\x03\x12\x18\n\x14REDIS_STANDARD_SMALL\x10\x04*\x99\x01\n\x15TransitEncryptionMode\x12\'\n#TRANSIT_ENCRYPTION_MODE_UNSPECIFIED\x10\x00\x12$\n TRANSIT_ENCRYPTION_MODE_DISABLED\x10\x01\x12\x31\n-TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION\x10\x02\x32\xc4\n\n\x11\x43loudRedisCluster\x12\xb6\x01\n\x0cListClusters\x12\x32.google.cloud.redis.cluster.v1.ListClustersRequest\x1a\x33.google.cloud.redis.cluster.v1.ListClustersResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/clusters\x12\xa3\x01\n\nGetCluster\x12\x30.google.cloud.redis.cluster.v1.GetClusterRequest\x1a&.google.cloud.redis.cluster.v1.Cluster\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/clusters/*}\x12\xe1\x01\n\rUpdateCluster\x12\x33.google.cloud.redis.cluster.v1.UpdateClusterRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41\x1e\n\x07\x43luster\x12\x13google.protobuf.Any\xda\x41\x13\x63luster,update_mask\x82\xd3\xe4\x93\x02?24/v1/{cluster.name=projects/*/locations/*/clusters/*}:\x07\x63luster\x12\xcf\x01\n\rDeleteCluster\x12\x33.google.cloud.redis.cluster.v1.DeleteClusterRequest\x1a\x1d.google.longrunning.Operation\"j\xca\x41,\n\x15google.protobuf.Empty\x12\x13google.protobuf.Any\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/clusters/*}\x12\xdf\x01\n\rCreateCluster\x12\x33.google.cloud.redis.cluster.v1.CreateClusterRequest\x1a\x1d.google.longrunning.Operation\"z\xca\x41\x1e\n\x07\x43luster\x12\x13google.protobuf.Any\xda\x41\x19parent,cluster,cluster_id\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/clusters:\x07\x63luster\x12\xed\x01\n\x1eGetClusterCertificateAuthority\x12\x44.google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest\x1a\x33.google.cloud.redis.cluster.v1.CertificateAuthority\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/clusters/*/certificateAuthority}\x1aH\xca\x41\x14redis.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x9e\x01\n!com.google.cloud.redis.cluster.v1B\x16\x43loudRedisClusterProtoP\x01Z;cloud.google.com/go/redis/cluster/apiv1/clusterpb;clusterpb\xea\x02!Google::Cloud::Redis::Cluster::V1b\x06proto3"
19
19
 
20
20
  pool = Google::Protobuf::DescriptorPool.generated_pool
21
21
 
@@ -54,6 +54,7 @@ module Google
54
54
  UpdateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.UpdateClusterRequest").msgclass
55
55
  GetClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.GetClusterRequest").msgclass
56
56
  DeleteClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.DeleteClusterRequest").msgclass
57
+ GetClusterCertificateAuthorityRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.GetClusterCertificateAuthorityRequest").msgclass
57
58
  Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.Cluster").msgclass
58
59
  Cluster::StateInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.Cluster.StateInfo").msgclass
59
60
  Cluster::StateInfo::UpdateInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.Cluster.StateInfo.UpdateInfo").msgclass
@@ -62,7 +63,19 @@ module Google
62
63
  DiscoveryEndpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.DiscoveryEndpoint").msgclass
63
64
  PscConnection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.PscConnection").msgclass
64
65
  OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.OperationMetadata").msgclass
66
+ CertificateAuthority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.CertificateAuthority").msgclass
67
+ CertificateAuthority::ManagedCertificateAuthority = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority").msgclass
68
+ CertificateAuthority::ManagedCertificateAuthority::CertChain = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain").msgclass
69
+ ClusterPersistenceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.ClusterPersistenceConfig").msgclass
70
+ ClusterPersistenceConfig::RDBConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig").msgclass
71
+ ClusterPersistenceConfig::RDBConfig::SnapshotPeriod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.ClusterPersistenceConfig.RDBConfig.SnapshotPeriod").enummodule
72
+ ClusterPersistenceConfig::AOFConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig").msgclass
73
+ ClusterPersistenceConfig::AOFConfig::AppendFsync = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.ClusterPersistenceConfig.AOFConfig.AppendFsync").enummodule
74
+ ClusterPersistenceConfig::PersistenceMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.ClusterPersistenceConfig.PersistenceMode").enummodule
75
+ ZoneDistributionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.ZoneDistributionConfig").msgclass
76
+ ZoneDistributionConfig::ZoneDistributionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.ZoneDistributionConfig.ZoneDistributionMode").enummodule
65
77
  AuthorizationMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.AuthorizationMode").enummodule
78
+ NodeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.NodeType").enummodule
66
79
  TransitEncryptionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.redis.cluster.v1.TransitEncryptionMode").enummodule
67
80
  end
68
81
  end
@@ -84,6 +84,8 @@ module Google
84
84
  # The returned operation is automatically deleted after a few hours, so there
85
85
  # is no need to call DeleteOperation.
86
86
  rpc :CreateCluster, ::Google::Cloud::Redis::Cluster::V1::CreateClusterRequest, ::Google::Longrunning::Operation
87
+ # Gets the details of certificate authority information for Redis cluster.
88
+ rpc :GetClusterCertificateAuthority, ::Google::Cloud::Redis::Cluster::V1::GetClusterCertificateAuthorityRequest, ::Google::Cloud::Redis::Cluster::V1::CertificateAuthority
87
89
  end
88
90
 
89
91
  Stub = Service.rpc_stub_class
@@ -22,7 +22,7 @@ module Google
22
22
  module Redis
23
23
  module Cluster
24
24
  module V1
25
- VERSION = "0.3.0"
25
+ VERSION = "0.4.0"
26
26
  end
27
27
  end
28
28
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -145,6 +145,18 @@ module Google
145
145
  extend ::Google::Protobuf::MessageExts::ClassMethods
146
146
  end
147
147
 
148
+ # Request for
149
+ # [GetClusterCertificateAuthorityRequest][CloudRedis.GetClusterCertificateAuthorityRequest].
150
+ # @!attribute [rw] name
151
+ # @return [::String]
152
+ # Required. Redis cluster certificate authority resource name using the form:
153
+ # `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}/certificateAuthority`
154
+ # where `location_id` refers to a GCP region.
155
+ class GetClusterCertificateAuthorityRequest
156
+ include ::Google::Protobuf::MessageExts
157
+ extend ::Google::Protobuf::MessageExts::ClassMethods
158
+ end
159
+
148
160
  # A cluster instance.
149
161
  # @!attribute [rw] name
150
162
  # @return [::String]
@@ -174,7 +186,8 @@ module Google
174
186
  # If not provided, encryption is disabled for the cluster.
175
187
  # @!attribute [r] size_gb
176
188
  # @return [::Integer]
177
- # Output only. Redis memory size in GB for the entire cluster.
189
+ # Output only. Redis memory size in GB for the entire cluster rounded up to
190
+ # the next integer.
178
191
  # @!attribute [rw] shard_count
179
192
  # @return [::Integer]
180
193
  # Required. Number of shards for the Redis cluster.
@@ -194,6 +207,27 @@ module Google
194
207
  # @!attribute [r] state_info
195
208
  # @return [::Google::Cloud::Redis::Cluster::V1::Cluster::StateInfo]
196
209
  # Output only. Additional information about the current state of the cluster.
210
+ # @!attribute [rw] node_type
211
+ # @return [::Google::Cloud::Redis::Cluster::V1::NodeType]
212
+ # Optional. The type of a redis node in the cluster. NodeType determines the
213
+ # underlying machine-type of a redis node.
214
+ # @!attribute [rw] persistence_config
215
+ # @return [::Google::Cloud::Redis::Cluster::V1::ClusterPersistenceConfig]
216
+ # Optional. Persistence config (RDB, AOF) for the cluster.
217
+ # @!attribute [rw] redis_configs
218
+ # @return [::Google::Protobuf::Map{::String => ::String}]
219
+ # Optional. Key/Value pairs of customer overrides for mutable Redis Configs
220
+ # @!attribute [r] precise_size_gb
221
+ # @return [::Float]
222
+ # Output only. Precise value of redis memory size in GB for the entire
223
+ # cluster.
224
+ # @!attribute [rw] zone_distribution_config
225
+ # @return [::Google::Cloud::Redis::Cluster::V1::ZoneDistributionConfig]
226
+ # Optional. This config will be used to determine how the customer wants us
227
+ # to distribute cluster resources within the region.
228
+ # @!attribute [rw] deletion_protection_enabled
229
+ # @return [::Boolean]
230
+ # Optional. The delete operation will fail when the value is set to true.
197
231
  class Cluster
198
232
  include ::Google::Protobuf::MessageExts
199
233
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -219,6 +253,15 @@ module Google
219
253
  end
220
254
  end
221
255
 
256
+ # @!attribute [rw] key
257
+ # @return [::String]
258
+ # @!attribute [rw] value
259
+ # @return [::String]
260
+ class RedisConfigsEntry
261
+ include ::Google::Protobuf::MessageExts
262
+ extend ::Google::Protobuf::MessageExts::ClassMethods
263
+ end
264
+
222
265
  # Represents the different states of a Redis cluster.
223
266
  module State
224
267
  # Not set.
@@ -323,6 +366,157 @@ module Google
323
366
  extend ::Google::Protobuf::MessageExts::ClassMethods
324
367
  end
325
368
 
369
+ # Redis cluster certificate authority
370
+ # @!attribute [rw] managed_server_ca
371
+ # @return [::Google::Cloud::Redis::Cluster::V1::CertificateAuthority::ManagedCertificateAuthority]
372
+ # @!attribute [rw] name
373
+ # @return [::String]
374
+ # Identifier. Unique name of the resource in this scope including project,
375
+ # location and cluster using the form:
376
+ # `projects/{project}/locations/{location}/clusters/{cluster}/certificateAuthority`
377
+ class CertificateAuthority
378
+ include ::Google::Protobuf::MessageExts
379
+ extend ::Google::Protobuf::MessageExts::ClassMethods
380
+
381
+ # @!attribute [rw] ca_certs
382
+ # @return [::Array<::Google::Cloud::Redis::Cluster::V1::CertificateAuthority::ManagedCertificateAuthority::CertChain>]
383
+ # The PEM encoded CA certificate chains for redis managed
384
+ # server authentication
385
+ class ManagedCertificateAuthority
386
+ include ::Google::Protobuf::MessageExts
387
+ extend ::Google::Protobuf::MessageExts::ClassMethods
388
+
389
+ # @!attribute [rw] certificates
390
+ # @return [::Array<::String>]
391
+ # The certificates that form the CA chain, from leaf to root order.
392
+ class CertChain
393
+ include ::Google::Protobuf::MessageExts
394
+ extend ::Google::Protobuf::MessageExts::ClassMethods
395
+ end
396
+ end
397
+ end
398
+
399
+ # Configuration of the persistence functionality.
400
+ # @!attribute [rw] mode
401
+ # @return [::Google::Cloud::Redis::Cluster::V1::ClusterPersistenceConfig::PersistenceMode]
402
+ # Optional. The mode of persistence.
403
+ # @!attribute [rw] rdb_config
404
+ # @return [::Google::Cloud::Redis::Cluster::V1::ClusterPersistenceConfig::RDBConfig]
405
+ # Optional. RDB configuration. This field will be ignored if mode is not RDB.
406
+ # @!attribute [rw] aof_config
407
+ # @return [::Google::Cloud::Redis::Cluster::V1::ClusterPersistenceConfig::AOFConfig]
408
+ # Optional. AOF configuration. This field will be ignored if mode is not AOF.
409
+ class ClusterPersistenceConfig
410
+ include ::Google::Protobuf::MessageExts
411
+ extend ::Google::Protobuf::MessageExts::ClassMethods
412
+
413
+ # Configuration of the RDB based persistence.
414
+ # @!attribute [rw] rdb_snapshot_period
415
+ # @return [::Google::Cloud::Redis::Cluster::V1::ClusterPersistenceConfig::RDBConfig::SnapshotPeriod]
416
+ # Optional. Period between RDB snapshots.
417
+ # @!attribute [rw] rdb_snapshot_start_time
418
+ # @return [::Google::Protobuf::Timestamp]
419
+ # Optional. The time that the first snapshot was/will be attempted, and to
420
+ # which future snapshots will be aligned. If not provided, the current time
421
+ # will be used.
422
+ class RDBConfig
423
+ include ::Google::Protobuf::MessageExts
424
+ extend ::Google::Protobuf::MessageExts::ClassMethods
425
+
426
+ # Available snapshot periods.
427
+ module SnapshotPeriod
428
+ # Not set.
429
+ SNAPSHOT_PERIOD_UNSPECIFIED = 0
430
+
431
+ # One hour.
432
+ ONE_HOUR = 1
433
+
434
+ # Six hours.
435
+ SIX_HOURS = 2
436
+
437
+ # Twelve hours.
438
+ TWELVE_HOURS = 3
439
+
440
+ # Twenty four hours.
441
+ TWENTY_FOUR_HOURS = 4
442
+ end
443
+ end
444
+
445
+ # Configuration of the AOF based persistence.
446
+ # @!attribute [rw] append_fsync
447
+ # @return [::Google::Cloud::Redis::Cluster::V1::ClusterPersistenceConfig::AOFConfig::AppendFsync]
448
+ # Optional. fsync configuration.
449
+ class AOFConfig
450
+ include ::Google::Protobuf::MessageExts
451
+ extend ::Google::Protobuf::MessageExts::ClassMethods
452
+
453
+ # Available fsync modes.
454
+ module AppendFsync
455
+ # Not set. Default: EVERYSEC
456
+ APPEND_FSYNC_UNSPECIFIED = 0
457
+
458
+ # Never fsync. Normally Linux will flush data every 30 seconds with this
459
+ # configuration, but it's up to the kernel's exact tuning.
460
+ NO = 1
461
+
462
+ # fsync every second. Fast enough, and you may lose 1 second of data if
463
+ # there is a disaster
464
+ EVERYSEC = 2
465
+
466
+ # fsync every time new commands are appended to the AOF. It has the best
467
+ # data loss protection at the cost of performance
468
+ ALWAYS = 3
469
+ end
470
+ end
471
+
472
+ # Available persistence modes.
473
+ module PersistenceMode
474
+ # Not set.
475
+ PERSISTENCE_MODE_UNSPECIFIED = 0
476
+
477
+ # Persistence is disabled, and any snapshot data is deleted.
478
+ DISABLED = 1
479
+
480
+ # RDB based persistence is enabled.
481
+ RDB = 2
482
+
483
+ # AOF based persistence is enabled.
484
+ AOF = 3
485
+ end
486
+ end
487
+
488
+ # Zone distribution config for allocation of cluster resources.
489
+ # @!attribute [rw] mode
490
+ # @return [::Google::Cloud::Redis::Cluster::V1::ZoneDistributionConfig::ZoneDistributionMode]
491
+ # Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
492
+ # specified.
493
+ # @!attribute [rw] zone
494
+ # @return [::String]
495
+ # Optional. When SINGLE ZONE distribution is selected, zone field would be
496
+ # used to allocate all resources in that zone. This is not applicable to
497
+ # MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.
498
+ class ZoneDistributionConfig
499
+ include ::Google::Protobuf::MessageExts
500
+ extend ::Google::Protobuf::MessageExts::ClassMethods
501
+
502
+ # Defines various modes of zone distribution.
503
+ # Currently supports two modes, can be expanded in future to support more
504
+ # types of distribution modes.
505
+ # design doc: go/same-zone-cluster
506
+ module ZoneDistributionMode
507
+ # Not Set. Default: MULTI_ZONE
508
+ ZONE_DISTRIBUTION_MODE_UNSPECIFIED = 0
509
+
510
+ # Distribute all resources across 3 zones picked at random, within the
511
+ # region.
512
+ MULTI_ZONE = 1
513
+
514
+ # Distribute all resources in a single zone. The zone field must be
515
+ # specified, when this mode is selected.
516
+ SINGLE_ZONE = 2
517
+ end
518
+ end
519
+
326
520
  # Available authorization mode of a Redis cluster.
327
521
  module AuthorizationMode
328
522
  # Not set.
@@ -335,6 +529,23 @@ module Google
335
529
  AUTH_MODE_DISABLED = 2
336
530
  end
337
531
 
532
+ # NodeType of a redis cluster node,
533
+ module NodeType
534
+ NODE_TYPE_UNSPECIFIED = 0
535
+
536
+ # Redis shared core nano node_type.
537
+ REDIS_SHARED_CORE_NANO = 1
538
+
539
+ # Redis highmem medium node_type.
540
+ REDIS_HIGHMEM_MEDIUM = 2
541
+
542
+ # Redis highmem xlarge node_type.
543
+ REDIS_HIGHMEM_XLARGE = 3
544
+
545
+ # Redis standard small node_type.
546
+ REDIS_STANDARD_SMALL = 4
547
+ end
548
+
338
549
  # Available mode of in-transit encryption.
339
550
  module TransitEncryptionMode
340
551
  # In-transit encryption not set.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-redis-cluster-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common