Class protos.google.cloud.security.privateca.v1beta1.CertificateAuthority

Represents a CertificateAuthority.

Package

@google-cloud/security-private-ca

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.security.privateca.v1beta1.ICertificateAuthority);

Constructs a new CertificateAuthority.

Parameter
NameDescription
properties ICertificateAuthority

Properties to set

Properties

accessUrls

public accessUrls?: (google.cloud.security.privateca.v1beta1.CertificateAuthority.IAccessUrls|null);

CertificateAuthority accessUrls.

caCertificateDescriptions

public caCertificateDescriptions: google.cloud.security.privateca.v1beta1.ICertificateDescription[];

CertificateAuthority caCertificateDescriptions.

certificatePolicy

public certificatePolicy?: (google.cloud.security.privateca.v1beta1.CertificateAuthority.ICertificateAuthorityPolicy|null);

CertificateAuthority certificatePolicy.

config

public config?: (google.cloud.security.privateca.v1beta1.ICertificateConfig|null);

CertificateAuthority config.

createTime

public createTime?: (google.protobuf.ITimestamp|null);

CertificateAuthority createTime.

deleteTime

public deleteTime?: (google.protobuf.ITimestamp|null);

CertificateAuthority deleteTime.

gcsBucket

public gcsBucket: string;

CertificateAuthority gcsBucket.

issuingOptions

public issuingOptions?: (google.cloud.security.privateca.v1beta1.CertificateAuthority.IIssuingOptions|null);

CertificateAuthority issuingOptions.

keySpec

public keySpec?: (google.cloud.security.privateca.v1beta1.CertificateAuthority.IKeyVersionSpec|null);

CertificateAuthority keySpec.

labels

public labels: { [k: string]: string };

CertificateAuthority labels.

lifetime

public lifetime?: (google.protobuf.IDuration|null);

CertificateAuthority lifetime.

name

public name: string;

CertificateAuthority name.

pemCaCertificates

public pemCaCertificates: string[];

CertificateAuthority pemCaCertificates.

state

public state: (google.cloud.security.privateca.v1beta1.CertificateAuthority.State|keyof typeof google.cloud.security.privateca.v1beta1.CertificateAuthority.State);

CertificateAuthority state.

subordinateConfig

public subordinateConfig?: (google.cloud.security.privateca.v1beta1.ISubordinateConfig|null);

CertificateAuthority subordinateConfig.

tier

public tier: (google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier|keyof typeof google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier);

CertificateAuthority tier.

type

public type: (google.cloud.security.privateca.v1beta1.CertificateAuthority.Type|keyof typeof google.cloud.security.privateca.v1beta1.CertificateAuthority.Type);

CertificateAuthority type.

updateTime

public updateTime?: (google.protobuf.ITimestamp|null);

CertificateAuthority updateTime.

Methods

create(properties)

public static create(properties?: google.cloud.security.privateca.v1beta1.ICertificateAuthority): google.cloud.security.privateca.v1beta1.CertificateAuthority;

Creates a new CertificateAuthority instance using the specified properties.

Parameter
NameDescription
properties ICertificateAuthority

Properties to set

Returns
TypeDescription
google.cloud.security.privateca.v1beta1.CertificateAuthority

CertificateAuthority instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.security.privateca.v1beta1.CertificateAuthority;

Decodes a CertificateAuthority message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.security.privateca.v1beta1.CertificateAuthority

CertificateAuthority

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.security.privateca.v1beta1.CertificateAuthority;

Decodes a CertificateAuthority message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.security.privateca.v1beta1.CertificateAuthority

CertificateAuthority

encode(message, writer)

public static encode(message: google.cloud.security.privateca.v1beta1.ICertificateAuthority, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified CertificateAuthority message. Does not implicitly messages.

Parameters
NameDescription
message ICertificateAuthority

CertificateAuthority message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.security.privateca.v1beta1.ICertificateAuthority, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified CertificateAuthority message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message ICertificateAuthority

CertificateAuthority message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.security.privateca.v1beta1.CertificateAuthority;

Creates a CertificateAuthority message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.cloud.security.privateca.v1beta1.CertificateAuthority

CertificateAuthority

toJSON()

public toJSON(): { [k: string]: any };

Converts this CertificateAuthority to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.security.privateca.v1beta1.CertificateAuthority, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a CertificateAuthority message. Also converts values to other types if specified.

Parameters
NameDescription
message google.cloud.security.privateca.v1beta1.CertificateAuthority

CertificateAuthority

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a CertificateAuthority message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not