Class protos.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec (2.5.0)

Represents a KeyVersionSpec.

Package

@google-cloud/security-private-ca!

Constructors

(constructor)(properties)

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

Constructs a new KeyVersionSpec.

Parameter
NameDescription
properties IKeyVersionSpec

Properties to set

Properties

algorithm

public algorithm?: (google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm|keyof typeof google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm|null);

KeyVersionSpec algorithm.

Property Value
TypeDescription
(google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm|keyof typeof google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm|null)

cloudKmsKeyVersion

public cloudKmsKeyVersion?: (string|null);

KeyVersionSpec cloudKmsKeyVersion.

Property Value
TypeDescription
(string|null)

KeyVersion

public KeyVersion?: ("cloudKmsKeyVersion"|"algorithm");

KeyVersionSpec KeyVersion.

Property Value
TypeDescription
("cloudKmsKeyVersion"|"algorithm")

Methods

create(properties)

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

Creates a new KeyVersionSpec instance using the specified properties.

Parameter
NameDescription
properties IKeyVersionSpec

Properties to set

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

KeyVersionSpec instance

decode(reader, length)

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

Decodes a KeyVersionSpec 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.KeyVersionSpec

KeyVersionSpec

decodeDelimited(reader)

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

Decodes a KeyVersionSpec 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.KeyVersionSpec

KeyVersionSpec

encode(message, writer)

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

Encodes the specified KeyVersionSpec message. Does not implicitly messages.

Parameters
NameDescription
message IKeyVersionSpec

KeyVersionSpec 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.CertificateAuthority.IKeyVersionSpec, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IKeyVersionSpec

KeyVersionSpec 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.KeyVersionSpec;

Creates a KeyVersionSpec 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.KeyVersionSpec

KeyVersionSpec

toJSON()

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

Converts this KeyVersionSpec to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

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

KeyVersionSpec

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 KeyVersionSpec 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