# Certificate Authority Service V1 API - Class Google::Cloud::Security::PrivateCA::V1::CaPool::PublishingOptions (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::CaPool::PublishingOptions.

Options relating to the publication of each
[CertificateAuthority](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthority "Google::Cloud::Security::PrivateCA::V1::CertificateAuthority (class)")'s
CA certificate and CRLs and their inclusion as extensions in issued
[Certificates](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)"). The options
set here apply to certificates issued by any
[CertificateAuthority](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthority "Google::Cloud::Security::PrivateCA::V1::CertificateAuthority (class)")
in the [CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #encoding_format

    def encoding_format() -> ::Google::Cloud::Security::PrivateCA::V1::CaPool::PublishingOptions::EncodingFormat

**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::CaPool::PublishingOptions::EncodingFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-PublishingOptions-EncodingFormat)) --- Optional. Specifies the encoding format of each [CertificateAuthority](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthority "Google::Cloud::Security::PrivateCA::V1::CertificateAuthority (class)") resource's CA certificate and CRLs. If this is omitted, CA certificates and CRLs will be published in PEM.

### #encoding_format=

    def encoding_format=(value) -> ::Google::Cloud::Security::PrivateCA::V1::CaPool::PublishingOptions::EncodingFormat

**Parameter**

- **value** ([::Google::Cloud::Security::PrivateCA::V1::CaPool::PublishingOptions::EncodingFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-PublishingOptions-EncodingFormat)) --- Optional. Specifies the encoding format of each [CertificateAuthority](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthority "Google::Cloud::Security::PrivateCA::V1::CertificateAuthority (class)") resource's CA certificate and CRLs. If this is omitted, CA certificates and CRLs will be published in PEM.
**Returns**

- ([::Google::Cloud::Security::PrivateCA::V1::CaPool::PublishingOptions::EncodingFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool-PublishingOptions-EncodingFormat)) --- Optional. Specifies the encoding format of each [CertificateAuthority](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthority "Google::Cloud::Security::PrivateCA::V1::CertificateAuthority (class)") resource's CA certificate and CRLs. If this is omitted, CA certificates and CRLs will be published in PEM.

### #publish_ca_cert

    def publish_ca_cert() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. When true, publishes each [CertificateAuthority](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthority "Google::Cloud::Security::PrivateCA::V1::CertificateAuthority (class)")'s CA certificate and includes its URL in the "Authority Information Access" X.509 extension in all issued [Certificates](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)"). If this is false, the CA certificate will not be published and the corresponding X.509 extension will not be written in issued certificates.

### #publish_ca_cert=

    def publish_ca_cert=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. When true, publishes each [CertificateAuthority](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthority "Google::Cloud::Security::PrivateCA::V1::CertificateAuthority (class)")'s CA certificate and includes its URL in the "Authority Information Access" X.509 extension in all issued [Certificates](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)"). If this is false, the CA certificate will not be published and the corresponding X.509 extension will not be written in issued certificates.
**Returns**

- (::Boolean) --- Optional. When true, publishes each [CertificateAuthority](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthority "Google::Cloud::Security::PrivateCA::V1::CertificateAuthority (class)")'s CA certificate and includes its URL in the "Authority Information Access" X.509 extension in all issued [Certificates](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)"). If this is false, the CA certificate will not be published and the corresponding X.509 extension will not be written in issued certificates.

### #publish_crl

    def publish_crl() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. When true, publishes each [CertificateAuthority](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthority "Google::Cloud::Security::PrivateCA::V1::CertificateAuthority (class)")'s CRL and includes its URL in the "CRL Distribution Points" X.509 extension in all issued [Certificates](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)"). If this is false, CRLs will not be published and the corresponding X.509 extension will not be written in issued certificates. CRLs will expire 7 days from their creation. However, we will rebuild daily. CRLs are also rebuilt shortly after a certificate is revoked.

### #publish_crl=

    def publish_crl=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. When true, publishes each [CertificateAuthority](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthority "Google::Cloud::Security::PrivateCA::V1::CertificateAuthority (class)")'s CRL and includes its URL in the "CRL Distribution Points" X.509 extension in all issued [Certificates](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)"). If this is false, CRLs will not be published and the corresponding X.509 extension will not be written in issued certificates. CRLs will expire 7 days from their creation. However, we will rebuild daily. CRLs are also rebuilt shortly after a certificate is revoked.
**Returns**

- (::Boolean) --- Optional. When true, publishes each [CertificateAuthority](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthority "Google::Cloud::Security::PrivateCA::V1::CertificateAuthority (class)")'s CRL and includes its URL in the "CRL Distribution Points" X.509 extension in all issued [Certificates](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)"). If this is false, CRLs will not be published and the corresponding X.509 extension will not be written in issued certificates. CRLs will expire 7 days from their creation. However, we will rebuild daily. CRLs are also rebuilt shortly after a certificate is revoked.