Class protos.google.cloud.compute.v1.PublicDelegatedPrefix (4.5.0)

Represents a PublicDelegatedPrefix.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

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

Constructs a new PublicDelegatedPrefix.

Parameter
Name Description
properties IPublicDelegatedPrefix

Properties to set

Properties

_allocatablePrefixLength

public _allocatablePrefixLength?: "allocatablePrefixLength";

PublicDelegatedPrefix _allocatablePrefixLength.

_byoipApiVersion

public _byoipApiVersion?: "byoipApiVersion";

PublicDelegatedPrefix _byoipApiVersion.

_creationTimestamp

public _creationTimestamp?: "creationTimestamp";

PublicDelegatedPrefix _creationTimestamp.

_description

public _description?: "description";

PublicDelegatedPrefix _description.

_fingerprint

public _fingerprint?: "fingerprint";

PublicDelegatedPrefix _fingerprint.

_id

public _id?: "id";

PublicDelegatedPrefix _id.

_ipCidrRange

public _ipCidrRange?: "ipCidrRange";

PublicDelegatedPrefix _ipCidrRange.

_isLiveMigration

public _isLiveMigration?: "isLiveMigration";

PublicDelegatedPrefix _isLiveMigration.

_kind

public _kind?: "kind";

PublicDelegatedPrefix _kind.

_mode

public _mode?: "mode";

PublicDelegatedPrefix _mode.

_name

public _name?: "name";

PublicDelegatedPrefix _name.

_parentPrefix

public _parentPrefix?: "parentPrefix";

PublicDelegatedPrefix _parentPrefix.

_region

public _region?: "region";

PublicDelegatedPrefix _region.

public _selfLink?: "selfLink";

PublicDelegatedPrefix _selfLink.

_status

public _status?: "status";

PublicDelegatedPrefix _status.

allocatablePrefixLength

public allocatablePrefixLength?: (number|null);

PublicDelegatedPrefix allocatablePrefixLength.

byoipApiVersion

public byoipApiVersion?: (string|null);

PublicDelegatedPrefix byoipApiVersion.

creationTimestamp

public creationTimestamp?: (string|null);

PublicDelegatedPrefix creationTimestamp.

description

public description?: (string|null);

PublicDelegatedPrefix description.

fingerprint

public fingerprint?: (string|null);

PublicDelegatedPrefix fingerprint.

id

public id?: (number|Long|string|null);

PublicDelegatedPrefix id.

ipCidrRange

public ipCidrRange?: (string|null);

PublicDelegatedPrefix ipCidrRange.

isLiveMigration

public isLiveMigration?: (boolean|null);

PublicDelegatedPrefix isLiveMigration.

kind

public kind?: (string|null);

PublicDelegatedPrefix kind.

mode

public mode?: (string|null);

PublicDelegatedPrefix mode.

name

public name?: (string|null);

PublicDelegatedPrefix name.

parentPrefix

public parentPrefix?: (string|null);

PublicDelegatedPrefix parentPrefix.

publicDelegatedSubPrefixs

public publicDelegatedSubPrefixs: google.cloud.compute.v1.IPublicDelegatedPrefixPublicDelegatedSubPrefix[];

PublicDelegatedPrefix publicDelegatedSubPrefixs.

region

public region?: (string|null);

PublicDelegatedPrefix region.

public selfLink?: (string|null);

PublicDelegatedPrefix selfLink.

status

public status?: (string|null);

PublicDelegatedPrefix status.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.IPublicDelegatedPrefix): google.cloud.compute.v1.PublicDelegatedPrefix;

Creates a new PublicDelegatedPrefix instance using the specified properties.

Parameter
Name Description
properties IPublicDelegatedPrefix

Properties to set

Returns
Type Description
PublicDelegatedPrefix

PublicDelegatedPrefix instance

decode(reader, length)

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

Decodes a PublicDelegatedPrefix message from the specified reader or buffer.

Parameters
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
Type Description
PublicDelegatedPrefix

PublicDelegatedPrefix

decodeDelimited(reader)

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

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
PublicDelegatedPrefix

PublicDelegatedPrefix

encode(message, writer)

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

Encodes the specified PublicDelegatedPrefix message. Does not implicitly messages.

Parameters
Name Description
message IPublicDelegatedPrefix

PublicDelegatedPrefix message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

encodeDelimited(message, writer)

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

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

Parameters
Name Description
message IPublicDelegatedPrefix

PublicDelegatedPrefix message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.compute.v1.PublicDelegatedPrefix;

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

Parameter
Name Description
object { [k: string]: any }

Plain object

Returns
Type Description
PublicDelegatedPrefix

PublicDelegatedPrefix

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for PublicDelegatedPrefix

Parameter
Name Description
typeUrlPrefix string

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

Returns
Type Description
string

The default type url

toJSON()

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

Converts this PublicDelegatedPrefix to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message PublicDelegatedPrefix

PublicDelegatedPrefix

options $protobuf.IConversionOptions

Conversion options

Returns
Type Description
{ [k: string]: any }

Plain object

verify(message)

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

Verifies a PublicDelegatedPrefix message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not