Class protos.google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk (3.0.0)

Represents a CustomerEncryptionKeyProtectedDisk.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.compute.v1.ICustomerEncryptionKeyProtectedDisk);

Constructs a new CustomerEncryptionKeyProtectedDisk.

Parameter
NameDescription
properties ICustomerEncryptionKeyProtectedDisk

Properties to set

Properties

_diskEncryptionKey

public _diskEncryptionKey?: "diskEncryptionKey";

CustomerEncryptionKeyProtectedDisk _diskEncryptionKey.

_source

public _source?: "source";

CustomerEncryptionKeyProtectedDisk _source.

diskEncryptionKey

public diskEncryptionKey?: (google.cloud.compute.v1.ICustomerEncryptionKey|null);

CustomerEncryptionKeyProtectedDisk diskEncryptionKey.

source

public source?: (string|null);

CustomerEncryptionKeyProtectedDisk source.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.ICustomerEncryptionKeyProtectedDisk): google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk;

Creates a new CustomerEncryptionKeyProtectedDisk instance using the specified properties.

Parameter
NameDescription
properties ICustomerEncryptionKeyProtectedDisk

Properties to set

Returns
TypeDescription
google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk

CustomerEncryptionKeyProtectedDisk instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk;

Decodes a CustomerEncryptionKeyProtectedDisk 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.compute.v1.CustomerEncryptionKeyProtectedDisk

CustomerEncryptionKeyProtectedDisk

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk;

Decodes a CustomerEncryptionKeyProtectedDisk 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.compute.v1.CustomerEncryptionKeyProtectedDisk

CustomerEncryptionKeyProtectedDisk

encode(message, writer)

public static encode(message: google.cloud.compute.v1.ICustomerEncryptionKeyProtectedDisk, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified CustomerEncryptionKeyProtectedDisk message. Does not implicitly messages.

Parameters
NameDescription
message ICustomerEncryptionKeyProtectedDisk

CustomerEncryptionKeyProtectedDisk 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.compute.v1.ICustomerEncryptionKeyProtectedDisk, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message ICustomerEncryptionKeyProtectedDisk

CustomerEncryptionKeyProtectedDisk 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.compute.v1.CustomerEncryptionKeyProtectedDisk;

Creates a CustomerEncryptionKeyProtectedDisk 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.compute.v1.CustomerEncryptionKeyProtectedDisk

CustomerEncryptionKeyProtectedDisk

toJSON()

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

Converts this CustomerEncryptionKeyProtectedDisk to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk, options?: $protobuf.IConversionOptions): { [k: string]: any };

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

Parameters
NameDescription
message google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk

CustomerEncryptionKeyProtectedDisk

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