# Google Cloud Certificate Manager V1 Client - Class ManagedCertificate (1.1.2)

1.1.2 (latest) 1.1.1 1.0.4 0.7.3 0.6.0 0.5.2 0.4.2 0.3.7 Reference documentation and code samples for the Google Cloud Certificate Manager V1 Client class ManagedCertificate.

Configuration and state of a Managed Certificate.

Certificate Manager provisions and renews Managed Certificates
automatically, for as long as it's authorized to do so.

Generated from protobuf message `google.cloud.certificatemanager.v1.Certificate.ManagedCertificate`

## Namespace

Google \\ Cloud \\ CertificateManager \\ V1 \\ Certificate

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getDomains

Immutable. The domains for which a managed SSL certificate will be
generated. Wildcard domains are only supported with DNS challenge
resolution.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setDomains

Immutable. The domains for which a managed SSL certificate will be
generated. Wildcard domains are only supported with DNS challenge
resolution.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

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

### getDnsAuthorizations

Immutable. Authorizations that will be used for performing domain
authorization.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setDnsAuthorizations

Immutable. Authorizations that will be used for performing domain
authorization.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

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

### getIssuanceConfig

Immutable. The resource name for a
CertificateIssuanceConfig
used to configure private PKI certificates in the format
`projects/*/locations/*/certificateIssuanceConfigs/*`.

If this field is not set, the certificates will instead be publicly
signed as documented at
<https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa>.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setIssuanceConfig

Immutable. The resource name for a
CertificateIssuanceConfig
used to configure private PKI certificates in the format
`projects/*/locations/*/certificateIssuanceConfigs/*`.

If this field is not set, the certificates will instead be publicly
signed as documented at
<https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa>.

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

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

### getState

Output only. State of the managed certificate resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.Certificate.ManagedCertificate.State). |

### setState

Output only. State of the managed certificate resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.Certificate.ManagedCertificate.State). |

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

### getProvisioningIssue

Output only. Information about issues with provisioning a Managed
Certificate.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.Certificate.ManagedCertificate.ProvisioningIssue|null` |   |

### hasProvisioningIssue

### clearProvisioningIssue

### setProvisioningIssue

Output only. Information about issues with provisioning a Managed
Certificate.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.Certificate.ManagedCertificate.ProvisioningIssue` |

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

### getAuthorizationAttemptInfo

Output only. Detailed state of the latest authorization attempt for each
domain specified for managed certificate resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.Certificate.ManagedCertificate.AuthorizationAttemptInfo>` |   |

### setAuthorizationAttemptInfo

Output only. Detailed state of the latest authorization attempt for each
domain specified for managed certificate resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-certificate-manager/latest/V1.Certificate.ManagedCertificate.AuthorizationAttemptInfo>` |

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