Class protos.google.cloud.compute.v1.NetworkAttachment (3.8.1)

Represents a NetworkAttachment.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

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

Constructs a new NetworkAttachment.

Parameter
NameDescription
properties INetworkAttachment

Properties to set

Properties

_connectionPreference

public _connectionPreference?: "connectionPreference";

NetworkAttachment _connectionPreference.

_creationTimestamp

public _creationTimestamp?: "creationTimestamp";

NetworkAttachment _creationTimestamp.

_description

public _description?: "description";

NetworkAttachment _description.

_fingerprint

public _fingerprint?: "fingerprint";

NetworkAttachment _fingerprint.

_id

public _id?: "id";

NetworkAttachment _id.

_kind

public _kind?: "kind";

NetworkAttachment _kind.

_name

public _name?: "name";

NetworkAttachment _name.

_network

public _network?: "network";

NetworkAttachment _network.

_region

public _region?: "region";

NetworkAttachment _region.

public _selfLink?: "selfLink";

NetworkAttachment _selfLink.

_selfLinkWithId

public _selfLinkWithId?: "selfLinkWithId";

NetworkAttachment _selfLinkWithId.

connectionEndpoints

public connectionEndpoints: google.cloud.compute.v1.INetworkAttachmentConnectedEndpoint[];

NetworkAttachment connectionEndpoints.

connectionPreference

public connectionPreference?: (string|null);

NetworkAttachment connectionPreference.

creationTimestamp

public creationTimestamp?: (string|null);

NetworkAttachment creationTimestamp.

description

public description?: (string|null);

NetworkAttachment description.

fingerprint

public fingerprint?: (string|null);

NetworkAttachment fingerprint.

id

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

NetworkAttachment id.

kind

public kind?: (string|null);

NetworkAttachment kind.

name

public name?: (string|null);

NetworkAttachment name.

network

public network?: (string|null);

NetworkAttachment network.

producerAcceptLists

public producerAcceptLists: string[];

NetworkAttachment producerAcceptLists.

producerRejectLists

public producerRejectLists: string[];

NetworkAttachment producerRejectLists.

region

public region?: (string|null);

NetworkAttachment region.

public selfLink?: (string|null);

NetworkAttachment selfLink.

selfLinkWithId

public selfLinkWithId?: (string|null);

NetworkAttachment selfLinkWithId.

subnetworks

public subnetworks: string[];

NetworkAttachment subnetworks.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.INetworkAttachment): google.cloud.compute.v1.NetworkAttachment;

Creates a new NetworkAttachment instance using the specified properties.

Parameter
NameDescription
properties INetworkAttachment

Properties to set

Returns
TypeDescription
google.cloud.compute.v1.NetworkAttachment

NetworkAttachment instance

decode(reader, length)

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

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

NetworkAttachment

decodeDelimited(reader)

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

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

NetworkAttachment

encode(message, writer)

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

Encodes the specified NetworkAttachment message. Does not implicitly messages.

Parameters
NameDescription
message INetworkAttachment

NetworkAttachment 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.INetworkAttachment, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message INetworkAttachment

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

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

NetworkAttachment

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for NetworkAttachment

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 NetworkAttachment to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

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

NetworkAttachment

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