@@ -803,6 +803,87 @@ def get_certificate_authority request, options = nil
803803 raise ::Google ::Cloud ::Error . from_error ( e )
804804 end
805805
806+ ##
807+ # Gets the details of shared regional certificate authority information for
808+ # Memorystore instance.
809+ #
810+ # @overload get_shared_regional_certificate_authority(request, options = nil)
811+ # Pass arguments to `get_shared_regional_certificate_authority` via a request object, either of type
812+ # {::Google::Cloud::Memorystore::V1beta::GetSharedRegionalCertificateAuthorityRequest} or an equivalent Hash.
813+ #
814+ # @param request [::Google::Cloud::Memorystore::V1beta::GetSharedRegionalCertificateAuthorityRequest, ::Hash]
815+ # A request object representing the call parameters. Required. To specify no
816+ # parameters, or to keep all the default parameter values, pass an empty Hash.
817+ # @param options [::Gapic::CallOptions, ::Hash]
818+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
819+ #
820+ # @overload get_shared_regional_certificate_authority(name: nil)
821+ # Pass arguments to `get_shared_regional_certificate_authority` via keyword arguments. Note that at
822+ # least one keyword argument is required. To specify no parameters, or to keep all
823+ # the default parameter values, pass an empty Hash as a request object (see above).
824+ #
825+ # @param name [::String]
826+ # Required. Regional certificate authority resource name using the form:
827+ # `projects/{project}/locations/{location}/sharedRegionalCertificateAuthority`
828+ # where `location_id` refers to a Google Cloud region.
829+ # @yield [result, operation] Access the result along with the TransportOperation object
830+ # @yieldparam result [::Google::Cloud::Memorystore::V1beta::SharedRegionalCertificateAuthority]
831+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
832+ #
833+ # @return [::Google::Cloud::Memorystore::V1beta::SharedRegionalCertificateAuthority]
834+ #
835+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
836+ #
837+ # @example Basic example
838+ # require "google/cloud/memorystore/v1beta"
839+ #
840+ # # Create a client object. The client can be reused for multiple calls.
841+ # client = Google::Cloud::Memorystore::V1beta::Memorystore::Rest::Client.new
842+ #
843+ # # Create a request. To set request fields, pass in keyword arguments.
844+ # request = Google::Cloud::Memorystore::V1beta::GetSharedRegionalCertificateAuthorityRequest.new
845+ #
846+ # # Call the get_shared_regional_certificate_authority method.
847+ # result = client.get_shared_regional_certificate_authority request
848+ #
849+ # # The returned object is of type Google::Cloud::Memorystore::V1beta::SharedRegionalCertificateAuthority.
850+ # p result
851+ #
852+ def get_shared_regional_certificate_authority request , options = nil
853+ raise ::ArgumentError , "request must be provided" if request . nil?
854+
855+ request = ::Gapic ::Protobuf . coerce request , to : ::Google ::Cloud ::Memorystore ::V1beta ::GetSharedRegionalCertificateAuthorityRequest
856+
857+ # Converts hash and nil to an options object
858+ options = ::Gapic ::CallOptions . new ( **options . to_h ) if options . respond_to? :to_h
859+
860+ # Customize the options with defaults
861+ call_metadata = @config . rpcs . get_shared_regional_certificate_authority . metadata . to_h
862+
863+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
864+ call_metadata [ :"x-goog-api-client" ] ||= ::Gapic ::Headers . x_goog_api_client \
865+ lib_name : @config . lib_name , lib_version : @config . lib_version ,
866+ gapic_version : ::Google ::Cloud ::Memorystore ::V1beta ::VERSION ,
867+ transports_version_send : [ :rest ]
868+
869+ call_metadata [ :"x-goog-api-version" ] = API_VERSION unless API_VERSION . empty?
870+ call_metadata [ :"x-goog-user-project" ] = @quota_project_id if @quota_project_id
871+
872+ options . apply_defaults timeout : @config . rpcs . get_shared_regional_certificate_authority . timeout ,
873+ metadata : call_metadata ,
874+ retry_policy : @config . rpcs . get_shared_regional_certificate_authority . retry_policy
875+
876+ options . apply_defaults timeout : @config . timeout ,
877+ metadata : @config . metadata ,
878+ retry_policy : @config . retry_policy
879+
880+ @memorystore_stub . get_shared_regional_certificate_authority request , options do |result , operation |
881+ yield result , operation if block_given?
882+ end
883+ rescue ::Gapic ::Rest ::Error => e
884+ raise ::Google ::Cloud ::Error . from_error ( e )
885+ end
886+
806887 ##
807888 # Configuration class for the Memorystore REST API.
808889 #
@@ -986,6 +1067,11 @@ class Rpcs
9861067 # @return [::Gapic::Config::Method]
9871068 #
9881069 attr_reader :get_certificate_authority
1070+ ##
1071+ # RPC-specific configuration for `get_shared_regional_certificate_authority`
1072+ # @return [::Gapic::Config::Method]
1073+ #
1074+ attr_reader :get_shared_regional_certificate_authority
9891075
9901076 # @private
9911077 def initialize parent_rpcs = nil
@@ -1001,6 +1087,8 @@ def initialize parent_rpcs = nil
10011087 @delete_instance = ::Gapic ::Config ::Method . new delete_instance_config
10021088 get_certificate_authority_config = parent_rpcs . get_certificate_authority if parent_rpcs . respond_to? :get_certificate_authority
10031089 @get_certificate_authority = ::Gapic ::Config ::Method . new get_certificate_authority_config
1090+ get_shared_regional_certificate_authority_config = parent_rpcs . get_shared_regional_certificate_authority if parent_rpcs . respond_to? :get_shared_regional_certificate_authority
1091+ @get_shared_regional_certificate_authority = ::Gapic ::Config ::Method . new get_shared_regional_certificate_authority_config
10041092
10051093 yield self if block_given?
10061094 end
0 commit comments