# Certificate Authority Service V1 API - Class Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList::RevokedCertificate (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.1 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.6 Reference documentation and code samples for the Certificate Authority Service V1 API class Google::Cloud::Security::PrivateCA::V1::CertificateRevocationList::RevokedCertificate.

Describes a revoked
[Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Certificate "Google::Cloud::Security::PrivateCA::V1::Certificate (class)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #certificate

    def certificate() -> ::String

**Returns**

- (::String) --- The resource name for the [Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Certificate "Google::Cloud::Security::PrivateCA::V1::Certificate (class)") in the format `projects/*/locations/*/caPools/*/certificates/*`.

### #certificate=

    def certificate=(value) -> ::String

**Parameter**

- **value** (::String) --- The resource name for the [Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Certificate "Google::Cloud::Security::PrivateCA::V1::Certificate (class)") in the format `projects/*/locations/*/caPools/*/certificates/*`.
**Returns**

- (::String) --- The resource name for the [Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Certificate "Google::Cloud::Security::PrivateCA::V1::Certificate (class)") in the format `projects/*/locations/*/caPools/*/certificates/*`.

### #hex_serial_number

    def hex_serial_number() -> ::String

**Returns**

- (::String) --- The serial number of the [Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Certificate "Google::Cloud::Security::PrivateCA::V1::Certificate (class)").

### #hex_serial_number=

    def hex_serial_number=(value) -> ::String

**Parameter**

- **value** (::String) --- The serial number of the [Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Certificate "Google::Cloud::Security::PrivateCA::V1::Certificate (class)").
**Returns**

- (::String) --- The serial number of the [Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Certificate "Google::Cloud::Security::PrivateCA::V1::Certificate (class)").

### #revocation_reason

    def revocation_reason() -> ::Google::Cloud::Security::PrivateCA::V1::RevocationReason

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::RevocationReason](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-RevocationReason)) --- The reason the [Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Certificate "Google::Cloud::Security::PrivateCA::V1::Certificate (class)") was revoked.

### #revocation_reason=

    def revocation_reason=(value) -> ::Google::Cloud::Security::PrivateCA::V1::RevocationReason

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::RevocationReason](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-RevocationReason)) --- The reason the [Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Certificate "Google::Cloud::Security::PrivateCA::V1::Certificate (class)") was revoked.
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::RevocationReason](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-RevocationReason)) --- The reason the [Certificate](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-Certificate "Google::Cloud::Security::PrivateCA::V1::Certificate (class)") was revoked.