# Cloud Key Management Service (KMS) V1 API - Class Google::Cloud::Kms::V1::EkmConnection::ServiceResolver (v1.13.0)

1.13.0 (latest) 1.12.1 1.11.0 1.10.0 1.9.2 1.8.0 1.7.0 1.6.0 1.5.1 1.4.0 1.3.2 1.2.1 1.1.0 1.0.2 0.27.0 0.26.0 0.25.1 0.24.3 0.23.0 0.22.1 0.21.0 0.20.0 0.19.0 0.18.1 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.2 Reference documentation and code samples for the Cloud Key Management Service (KMS) V1 API class Google::Cloud::Kms::V1::EkmConnection::ServiceResolver.

A [ServiceResolver](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-EkmConnection-ServiceResolver "Google::Cloud::Kms::V1::EkmConnection::ServiceResolver (class)")
represents an EKM replica that can be reached within an
[EkmConnection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-EkmConnection "Google::Cloud::Kms::V1::EkmConnection (class)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #endpoint_filter

    def endpoint_filter() -> ::String

**Returns**

- (::String) --- Optional. The filter applied to the endpoints of the resolved service. If no filter is specified, all endpoints will be considered. An endpoint will be chosen arbitrarily from the filtered list for each request.

  For endpoint filter syntax and examples, see
  https://cloud.google.com/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#resolveservicerequest.

### #endpoint_filter=

    def endpoint_filter=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The filter applied to the endpoints of the resolved service. If no filter is specified, all endpoints will be considered. An endpoint will be chosen arbitrarily from the filtered list for each request.


  For endpoint filter syntax and examples, see
  https://cloud.google.com/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#resolveservicerequest.
**Returns**

- (::String) --- Optional. The filter applied to the endpoints of the resolved service. If no filter is specified, all endpoints will be considered. An endpoint will be chosen arbitrarily from the filtered list for each request.

  For endpoint filter syntax and examples, see
  https://cloud.google.com/service-directory/docs/reference/rpc/google.cloud.servicedirectory.v1#resolveservicerequest.

### #hostname

    def hostname() -> ::String

**Returns**

- (::String) --- Required. The hostname of the EKM replica used at TLS and HTTP layers.

### #hostname=

    def hostname=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The hostname of the EKM replica used at TLS and HTTP layers.
**Returns**

- (::String) --- Required. The hostname of the EKM replica used at TLS and HTTP layers.

### #server_certificates

    def server_certificates() -> ::Array<::Google::Cloud::Kms::V1::Certificate>

**Returns**

- (::Array\<[::Google::Cloud::Kms::V1::Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-Certificate)\>) --- Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 [Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-Certificate "Google::Cloud::Kms::V1::Certificate (class)") is supported.

### #server_certificates=

    def server_certificates=(value) -> ::Array<::Google::Cloud::Kms::V1::Certificate>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Kms::V1::Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-Certificate)\>) --- Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 [Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-Certificate "Google::Cloud::Kms::V1::Certificate (class)") is supported.
**Returns**

- (::Array\<[::Google::Cloud::Kms::V1::Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-Certificate)\>) --- Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 [Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-v1/latest/Google-Cloud-Kms-V1-Certificate "Google::Cloud::Kms::V1::Certificate (class)") is supported.

### #service_directory_service

    def service_directory_service() -> ::String

**Returns**

- (::String) --- Required. The resource name of the Service Directory service pointing to an EKM replica, in the format `projects/*/locations/*/namespaces/*/services/*`.

### #service_directory_service=

    def service_directory_service=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the Service Directory service pointing to an EKM replica, in the format `projects/*/locations/*/namespaces/*/services/*`.
**Returns**

- (::String) --- Required. The resource name of the Service Directory service pointing to an EKM replica, in the format `projects/*/locations/*/namespaces/*/services/*`.