# Google Certificate Authority Service V1 Client - Class IssuanceModes (2.4.0)

2.4.0 (latest) 2.3.0 2.2.2 2.1.1 2.0.3 1.7.3 1.5.0 1.4.2 1.3.1 1.2.2 1.1.0 1.0.3 Reference documentation and code samples for the Google Certificate Authority Service V1 Client class IssuanceModes.

[IssuanceModes](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool.IssuancePolicy.IssuanceModes)
specifies the allowed ways in which
[Certificates](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) may be
requested from this [CaPool](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool).

Generated from protobuf message `google.cloud.security.privateca.v1.CaPool.IssuancePolicy.IssuanceModes`

## Namespace

Google \\ Cloud \\ Security \\ PrivateCA \\ V1 \\ CaPool \\ IssuancePolicy

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ allow_csr_based_issuance` | `bool` Optional. When true, allows callers to create [Certificates](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) by specifying a CSR. |
| `↳ allow_config_based_issuance` | `bool` Optional. When true, allows callers to create [Certificates](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) by specifying a [CertificateConfig](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateConfig). |

### getAllowCsrBasedIssuance

Optional. When true, allows callers to create
[Certificates](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) by
specifying a CSR.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setAllowCsrBasedIssuance

Optional. When true, allows callers to create
[Certificates](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) by
specifying a CSR.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAllowConfigBasedIssuance

Optional. When true, allows callers to create
[Certificates](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) by
specifying a
[CertificateConfig](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateConfig).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setAllowConfigBasedIssuance

Optional. When true, allows callers to create
[Certificates](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) by
specifying a
[CertificateConfig](https://docs.cloud.google.com/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateConfig).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |