Represents a NetworkAttachment.
Package
@google-cloud/computeConstructors
(constructor)(properties)
constructor(properties?: google.cloud.compute.v1.INetworkAttachment);
Constructs a new NetworkAttachment.
Parameter | |
---|---|
Name | Description |
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.
_selfLink
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.
selfLink
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 | |
---|---|
Name | Description |
properties |
INetworkAttachment
Properties to set |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
message |
INetworkAttachment
NetworkAttachment 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.INetworkAttachment, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified NetworkAttachment message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
INetworkAttachment
NetworkAttachment 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.NetworkAttachment;
Creates a NetworkAttachment 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 |
google.cloud.compute.v1.NetworkAttachment | NetworkAttachment |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for NetworkAttachment
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 NetworkAttachment to JSON.
Returns | |
---|---|
Type | Description |
{ [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 | |
---|---|
Name | Description |
message |
google.cloud.compute.v1.NetworkAttachment
NetworkAttachment |
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 NetworkAttachment message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|