# Certificate Authority Service V1beta1 API - Class Google::Cloud::Security::PrivateCA::V1beta1::X509Extension (v0.18.0)

0.18.0 (latest) 0.17.1 0.16.0 0.15.1 0.14.0 0.13.0 0.12.1 0.11.0 0.10.0 0.9.1 0.8.2 0.7.0 0.6.1 0.5.0 0.4.0 0.3.6 Reference documentation and code samples for the Certificate Authority Service V1beta1 API class Google::Cloud::Security::PrivateCA::V1beta1::X509Extension.

An [X509Extension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1beta1/latest/Google-Cloud-Security-PrivateCA-V1beta1-X509Extension "Google::Cloud::Security::PrivateCA::V1beta1::X509Extension (class)") specifies an X.509 extension, which may be used in
different parts of X.509 objects like certificates, CSRs, and CRLs.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #critical

    def critical() -> ::Boolean

**Returns**

- (::Boolean) --- Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error).

### #critical=

    def critical=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error).
**Returns**

- (::Boolean) --- Required. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error).

### #object_id

    def object_id() -> ::Google::Cloud::Security::PrivateCA::V1beta1::ObjectId

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1beta1::ObjectId](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1beta1/latest/Google-Cloud-Security-PrivateCA-V1beta1-ObjectId)) --- Required. The OID for this X.509 extension.

### #object_id=

    def object_id=(value) -> ::Google::Cloud::Security::PrivateCA::V1beta1::ObjectId

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1beta1::ObjectId](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1beta1/latest/Google-Cloud-Security-PrivateCA-V1beta1-ObjectId)) --- Required. The OID for this X.509 extension.
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1beta1::ObjectId](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1beta1/latest/Google-Cloud-Security-PrivateCA-V1beta1-ObjectId)) --- Required. The OID for this X.509 extension.

### #value

    def value() -> ::String

**Returns**

- (::String) --- Required. The value of this X.509 extension.

### #value=

    def value=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The value of this X.509 extension.
**Returns**

- (::String) --- Required. The value of this X.509 extension.