# Certificate Manager V1 API - Class Google::Cloud::CertificateManager::V1::CertificateMapEntry (v1.5.0)

1.5.0 (latest) 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.12.0 0.11.0 0.10.1 0.9.0 0.8.2 0.7.0 0.6.0 0.5.0 0.4.2 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Certificate Manager V1 API class Google::Cloud::CertificateManager::V1::CertificateMapEntry.

Defines a certificate map entry.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #certificates

    def certificates() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- A set of Certificates defines for the given `hostname`. There can be defined up to four certificates in each Certificate Map Entry. Each certificate must match pattern `projects/*/locations/*/certificates/*`.

### #certificates=

    def certificates=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- A set of Certificates defines for the given `hostname`. There can be defined up to four certificates in each Certificate Map Entry. Each certificate must match pattern `projects/*/locations/*/certificates/*`.
**Returns**

- (::Array\<::String\>) --- A set of Certificates defines for the given `hostname`. There can be defined up to four certificates in each Certificate Map Entry. Each certificate must match pattern `projects/*/locations/*/certificates/*`.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-certificate_manager-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The creation timestamp of a Certificate Map Entry.

### #description

    def description() -> ::String

**Returns**

- (::String) --- One or more paragraphs of text description of a certificate map entry.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- One or more paragraphs of text description of a certificate map entry.
**Returns**

- (::String) --- One or more paragraphs of text description of a certificate map entry.

### #hostname

    def hostname() -> ::String

**Returns**

- (::String) --- A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression (`*.example.com`) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.


  Note: The following fields are mutually exclusive: `hostname`, `matcher`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #hostname=

    def hostname=(value) -> ::String

**Parameter**

- **value** (::String) --- A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression (`*.example.com`) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.


  Note: The following fields are mutually exclusive: `hostname`, `matcher`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- (::String) --- A Hostname (FQDN, e.g. `example.com`) or a wildcard hostname expression (`*.example.com`) for a set of hostnames with common suffix. Used as Server Name Indication (SNI) for selecting a proper certificate.


  Note: The following fields are mutually exclusive: `hostname`, `matcher`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Set of labels associated with a Certificate Map Entry.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Set of labels associated with a Certificate Map Entry.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Set of labels associated with a Certificate Map Entry.

### #matcher

    def matcher() -> ::Google::Cloud::CertificateManager::V1::CertificateMapEntry::Matcher

**Returns**

- ([::Google::Cloud::CertificateManager::V1::CertificateMapEntry::Matcher](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-certificate_manager-v1/latest/Google-Cloud-CertificateManager-V1-CertificateMapEntry-Matcher)) --- A predefined matcher for particular cases, other than SNI selection.


  Note: The following fields are mutually exclusive: `matcher`, `hostname`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #matcher=

    def matcher=(value) -> ::Google::Cloud::CertificateManager::V1::CertificateMapEntry::Matcher

**Parameter**

- **value** ([::Google::Cloud::CertificateManager::V1::CertificateMapEntry::Matcher](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-certificate_manager-v1/latest/Google-Cloud-CertificateManager-V1-CertificateMapEntry-Matcher)) --- A predefined matcher for particular cases, other than SNI selection.


  Note: The following fields are mutually exclusive: `matcher`, `hostname`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::CertificateManager::V1::CertificateMapEntry::Matcher](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-certificate_manager-v1/latest/Google-Cloud-CertificateManager-V1-CertificateMapEntry-Matcher)) --- A predefined matcher for particular cases, other than SNI selection.


  Note: The following fields are mutually exclusive: `matcher`, `hostname`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #name

    def name() -> ::String

**Returns**

- (::String) --- A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.
**Returns**

- (::String) --- A user-defined name of the Certificate Map Entry. Certificate Map Entry names must be unique globally and match pattern `projects/*/locations/*/certificateMaps/*/certificateMapEntries/*`.

### #state

    def state() -> ::Google::Cloud::CertificateManager::V1::ServingState

**Returns**

- ([::Google::Cloud::CertificateManager::V1::ServingState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-certificate_manager-v1/latest/Google-Cloud-CertificateManager-V1-ServingState)) --- Output only. A serving state of this Certificate Map Entry.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-certificate_manager-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The update timestamp of a Certificate Map Entry.