# Certificate Authority v1 API - Class CertificateAuthority (3.12.0)

3.12.0 (latest) 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.3.0 2.2.0 2.1.0 2.0.0 1.0.0

    public sealed class CertificateAuthority : IMessage<CertificateAuthority>, IEquatable<CertificateAuthority>, IDeepCloneable<CertificateAuthority>, IBufferMessage, IMessage

Reference documentation and code samples for the Certificate Authority v1 API class CertificateAuthority.

A
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\]
represents an individual Certificate Authority. A
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\]
can be used to create
\[Certificates\]\[google.cloud.security.privateca.v1.Certificate\].

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CertificateAuthority

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CertificateAuthority](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthority), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CertificateAuthority](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthority), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CertificateAuthority](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthority), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Security.PrivateCA.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1)

## Assembly

Google.Cloud.Security.PrivateCA.V1.dll

## Constructors

### CertificateAuthority()

    public CertificateAuthority()

### CertificateAuthority(CertificateAuthority)

    public CertificateAuthority(CertificateAuthority other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthority` |

## Properties

### AccessUrls

    public CertificateAuthority.Types.AccessUrls AccessUrls { get; set; }

Output only. URLs for accessing content published by this CA, such as the
CA certificate and CRLs.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.AccessUrls` |   |

### CaCertificateDescriptions

    public RepeatedField<CertificateDescription> CaCertificateDescriptions { get; }

Output only. A structured description of this
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\]'s
CA certificate and its issuers. Ordered as self-to-root.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateDescription` |   |

### CertificateAuthorityName

    public CertificateAuthorityName CertificateAuthorityName { get; set; }

[CertificateAuthorityName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthority#Google_Cloud_Security_PrivateCA_V1_CertificateAuthority_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityName` |   |

### Config

    public CertificateConfig Config { get; set; }

Required. Immutable. The config used to create a self-signed X.509
certificate or CSR.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateConfig` |   |

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The time at which this
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\]
was created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### DeleteTime

    public Timestamp DeleteTime { get; set; }

Output only. The time at which this
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\]
was soft deleted, if it is in the
\[DELETED\]\[google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED\]
state.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### ExpireTime

    public Timestamp ExpireTime { get; set; }

Output only. The time at which this
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\]
will be permanently purged, if it is in the
\[DELETED\]\[google.cloud.security.privateca.v1.CertificateAuthority.State.DELETED\]
state.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### GcsBucket

    public string GcsBucket { get; set; }

Immutable. The name of a Cloud Storage bucket where this
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\]
will publish content, such as the CA certificate and CRLs. This must be a
bucket name, without any prefixes (such as `gs://`) or suffixes (such as
`.googleapis.com`). For example, to use a bucket named `my-bucket`, you
would simply specify `my-bucket`. If not specified, a managed bucket will
be created.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### KeySpec

    public CertificateAuthority.Types.KeyVersionSpec KeySpec { get; set; }

Required. Immutable. Used when issuing certificates for this
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\].
If this
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\]
is a self-signed CertificateAuthority, this key is also used to sign the
self-signed CA certificate. Otherwise, it is used to sign a CSR.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.KeyVersionSpec` |   |

### Labels

    public MapField<string, string> Labels { get; }

Optional. Labels with user-defined metadata.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Lifetime

    public Duration Lifetime { get; set; }

Required. Immutable. The desired lifetime of the CA certificate. Used to
create the "not_before_time" and "not_after_time" fields inside an X.509
certificate.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Duration.html` |   |

### Name

    public string Name { get; set; }

Identifier. The resource name for this
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\]
in the format `projects/*/locations/*/caPools/*/certificateAuthorities/*`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PemCaCertificates

    public RepeatedField<string> PemCaCertificates { get; }

Output only. This
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\]'s
certificate chain, including the current
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\]'s
certificate. Ordered such that the root issuer is the final element
(consistent with RFC 5246). For a self-signed CA, this will only list the
current
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\]'s
certificate.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### SatisfiesPzi

    public bool SatisfiesPzi { get; set; }

Output only. Reserved for future use.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### SatisfiesPzs

    public bool SatisfiesPzs { get; set; }

Output only. Reserved for future use.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### State

    public CertificateAuthority.Types.State State { get; set; }

Output only. The
\[State\]\[google.cloud.security.privateca.v1.CertificateAuthority.State\] for
this
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.State` |   |

### SubordinateConfig

    public SubordinateConfig SubordinateConfig { get; set; }

Optional. If this is a subordinate
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\],
this field will be set with the subordinate configuration, which describes
its issuers. This may be updated, but this
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\]
must continue to validate.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.SubordinateConfig` |   |

### Tier

    public CaPool.Types.Tier Tier { get; set; }

Output only. The
\[CaPool.Tier\]\[google.cloud.security.privateca.v1.CaPool.Tier\] of the
\[CaPool\]\[google.cloud.security.privateca.v1.CaPool\] that includes this
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CaPoolhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CaPool.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CaPool.Types.Tier` |   |

### Type

    public CertificateAuthority.Types.Type Type { get; set; }

Required. Immutable. The
\[Type\]\[google.cloud.security.privateca.v1.CertificateAuthority.Type\] of
this
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.Type` |   |

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The time at which this
\[CertificateAuthority\]\[google.cloud.security.privateca.v1.CertificateAuthority\]
was last updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### UserDefinedAccessUrls

    public CertificateAuthority.Types.UserDefinedAccessUrls UserDefinedAccessUrls { get; set; }

Optional. User-defined URLs for CA certificate and CRLs. The service does
not publish content to these URLs. It is up to the user to mirror content
to these URLs.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthority.Types.UserDefinedAccessUrls` |   |