Class protos.google.cloud.compute.v1.CustomerEncryptionKeyProtectedDisk (4.3.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
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 (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
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 (Reader|Uint8Array)

Reader or buffer to decode from

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

CustomerEncryptionKeyProtectedDisk

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for CustomerEncryptionKeyProtectedDisk

Parameter
NameDescription
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
TypeDescription
string

The default type url

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