Constructor
new NetworkInterface(propertiesopt)
Constructs a new NetworkInterface.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.cloud.compute.v1.INetworkInterface |
<optional> |
Properties to set |
- Implements:
-
- INetworkInterface
Members
_fingerprint
NetworkInterface _fingerprint.
_internalIpv6PrefixLength
NetworkInterface _internalIpv6PrefixLength.
_ipv6AccessType
NetworkInterface _ipv6AccessType.
_ipv6Address
NetworkInterface _ipv6Address.
_kind
NetworkInterface _kind.
_name
NetworkInterface _name.
_network
NetworkInterface _network.
_networkAttachment
NetworkInterface _networkAttachment.
_networkIP
NetworkInterface _networkIP.
_nicType
NetworkInterface _nicType.
_queueCount
NetworkInterface _queueCount.
_stackType
NetworkInterface _stackType.
_subnetwork
NetworkInterface _subnetwork.
accessConfigs
NetworkInterface accessConfigs.
aliasIpRanges
NetworkInterface aliasIpRanges.
fingerprint
NetworkInterface fingerprint.
internalIpv6PrefixLength
NetworkInterface internalIpv6PrefixLength.
ipv6AccessConfigs
NetworkInterface ipv6AccessConfigs.
ipv6AccessType
NetworkInterface ipv6AccessType.
ipv6Address
NetworkInterface ipv6Address.
kind
NetworkInterface kind.
name
NetworkInterface name.
network
NetworkInterface network.
networkAttachment
NetworkInterface networkAttachment.
networkIP
NetworkInterface networkIP.
nicType
NetworkInterface nicType.
queueCount
NetworkInterface queueCount.
stackType
NetworkInterface stackType.
subnetwork
NetworkInterface subnetwork.
Ipv6AccessType
Ipv6AccessType enum.
Properties:
Name | Type | Description |
---|---|---|
UNDEFINED_IPV6_ACCESS_TYPE |
number |
UNDEFINED_IPV6_ACCESS_TYPE value |
EXTERNAL |
number |
EXTERNAL value |
INTERNAL |
number |
INTERNAL value |
UNSPECIFIED_IPV6_ACCESS_TYPE |
number |
UNSPECIFIED_IPV6_ACCESS_TYPE value |
NicType
NicType enum.
Properties:
Name | Type | Description |
---|---|---|
UNDEFINED_NIC_TYPE |
number |
UNDEFINED_NIC_TYPE value |
GVNIC |
number |
GVNIC value |
UNSPECIFIED_NIC_TYPE |
number |
UNSPECIFIED_NIC_TYPE value |
VIRTIO_NET |
number |
VIRTIO_NET value |
StackType
StackType enum.
Properties:
Name | Type | Description |
---|---|---|
UNDEFINED_STACK_TYPE |
number |
UNDEFINED_STACK_TYPE value |
IPV4_IPV6 |
number |
IPV4_IPV6 value |
IPV4_ONLY |
number |
IPV4_ONLY value |
UNSPECIFIED_STACK_TYPE |
number |
UNSPECIFIED_STACK_TYPE value |
Methods
toJSON() → {Object.<string, *>}
Converts this NetworkInterface to JSON.
Returns:
Type | Description |
---|---|
Object.<string, *> |
JSON object |
(static) create(propertiesopt) → {google.cloud.compute.v1.NetworkInterface}
Creates a new NetworkInterface instance using the specified properties.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.cloud.compute.v1.INetworkInterface |
<optional> |
Properties to set |
Returns:
Type | Description |
---|---|
google.cloud.compute.v1.NetworkInterface |
NetworkInterface instance |
(static) decode(reader, lengthopt) → {google.cloud.compute.v1.NetworkInterface}
Decodes a NetworkInterface message from the specified reader or buffer.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
reader |
$protobuf.Reader | Uint8Array |
Reader or buffer to decode from |
|
length |
number |
<optional> |
Message length if known beforehand |
Returns:
Type | Description |
---|---|
google.cloud.compute.v1.NetworkInterface |
NetworkInterface |
Throws:
-
-
If the payload is not a reader or valid buffer
- Type
- Error
-
-
-
If required fields are missing
- Type
- $protobuf.util.ProtocolError
-
(static) decodeDelimited(reader) → {google.cloud.compute.v1.NetworkInterface}
Decodes a NetworkInterface message from the specified reader or buffer, length delimited.
Parameters:
Name | Type | Description |
---|---|---|
reader |
$protobuf.Reader | Uint8Array |
Reader or buffer to decode from |
Returns:
Type | Description |
---|---|
google.cloud.compute.v1.NetworkInterface |
NetworkInterface |
Throws:
-
-
If the payload is not a reader or valid buffer
- Type
- Error
-
-
-
If required fields are missing
- Type
- $protobuf.util.ProtocolError
-
(static) encode(message, writeropt) → {$protobuf.Writer}
Encodes the specified NetworkInterface message. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.compute.v1.INetworkInterface |
NetworkInterface message or plain object to encode |
|
writer |
$protobuf.Writer |
<optional> |
Writer to encode to |
Returns:
Type | Description |
---|---|
$protobuf.Writer |
Writer |
(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}
Encodes the specified NetworkInterface message, length delimited. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.compute.v1.INetworkInterface |
NetworkInterface message or plain object to encode |
|
writer |
$protobuf.Writer |
<optional> |
Writer to encode to |
Returns:
Type | Description |
---|---|
$protobuf.Writer |
Writer |
(static) fromObject(object) → {google.cloud.compute.v1.NetworkInterface}
Creates a NetworkInterface message from a plain object. Also converts values to their respective internal types.
Parameters:
Name | Type | Description |
---|---|---|
object |
Object.<string, *> |
Plain object |
Returns:
Type | Description |
---|---|
google.cloud.compute.v1.NetworkInterface |
NetworkInterface |
(static) getTypeUrl(typeUrlPrefixopt) → {string}
Gets the default type url for NetworkInterface
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
typeUrlPrefix |
string |
<optional> |
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns:
Type | Description |
---|---|
string |
The default type url |
(static) toObject(message, optionsopt) → {Object.<string, *>}
Creates a plain object from a NetworkInterface message. Also converts values to other types if specified.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.compute.v1.NetworkInterface |
NetworkInterface |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
Returns:
Type | Description |
---|---|
Object.<string, *> |
Plain object |
(static) verify(message) → {string|null}
Verifies a NetworkInterface message.
Parameters:
Name | Type | Description |
---|---|---|
message |
Object.<string, *> |
Plain object to verify |
Returns:
Type | Description |
---|---|
string | null |
|