Constructor
new SourceInstanceProperties(propertiesopt)
Constructs a new SourceInstanceProperties.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.cloud.compute.v1.ISourceInstanceProperties |
<optional> |
Properties to set |
- Implements:
-
- ISourceInstanceProperties
Members
_canIpForward
SourceInstanceProperties _canIpForward.
_deletionProtection
SourceInstanceProperties _deletionProtection.
_description
SourceInstanceProperties _description.
_keyRevocationActionType
SourceInstanceProperties _keyRevocationActionType.
_machineType
SourceInstanceProperties _machineType.
_metadata
SourceInstanceProperties _metadata.
_minCpuPlatform
SourceInstanceProperties _minCpuPlatform.
_scheduling
SourceInstanceProperties _scheduling.
_tags
SourceInstanceProperties _tags.
canIpForward
SourceInstanceProperties canIpForward.
deletionProtection
SourceInstanceProperties deletionProtection.
description
SourceInstanceProperties description.
disks
SourceInstanceProperties disks.
guestAccelerators
SourceInstanceProperties guestAccelerators.
keyRevocationActionType
SourceInstanceProperties keyRevocationActionType.
labels
SourceInstanceProperties labels.
machineType
SourceInstanceProperties machineType.
metadata
SourceInstanceProperties metadata.
minCpuPlatform
SourceInstanceProperties minCpuPlatform.
networkInterfaces
SourceInstanceProperties networkInterfaces.
scheduling
SourceInstanceProperties scheduling.
serviceAccounts
SourceInstanceProperties serviceAccounts.
tags
SourceInstanceProperties tags.
KeyRevocationActionType
KeyRevocationActionType enum.
Properties:
Name | Type | Description |
---|---|---|
UNDEFINED_KEY_REVOCATION_ACTION_TYPE |
number |
UNDEFINED_KEY_REVOCATION_ACTION_TYPE value |
KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED |
number |
KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED value |
NONE |
number |
NONE value |
STOP |
number |
STOP value |
Methods
toJSON() → {Object.<string, *>}
Converts this SourceInstanceProperties to JSON.
Returns:
Type | Description |
---|---|
Object.<string, *> |
JSON object |
(static) create(propertiesopt) → {google.cloud.compute.v1.SourceInstanceProperties}
Creates a new SourceInstanceProperties instance using the specified properties.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.cloud.compute.v1.ISourceInstanceProperties |
<optional> |
Properties to set |
Returns:
Type | Description |
---|---|
google.cloud.compute.v1.SourceInstanceProperties |
SourceInstanceProperties instance |
(static) decode(reader, lengthopt) → {google.cloud.compute.v1.SourceInstanceProperties}
Decodes a SourceInstanceProperties 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.SourceInstanceProperties |
SourceInstanceProperties |
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.SourceInstanceProperties}
Decodes a SourceInstanceProperties 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.SourceInstanceProperties |
SourceInstanceProperties |
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 SourceInstanceProperties message. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.compute.v1.ISourceInstanceProperties |
SourceInstanceProperties 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 SourceInstanceProperties message, length delimited. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.compute.v1.ISourceInstanceProperties |
SourceInstanceProperties 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.SourceInstanceProperties}
Creates a SourceInstanceProperties 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.SourceInstanceProperties |
SourceInstanceProperties |
(static) getTypeUrl(typeUrlPrefixopt) → {string}
Gets the default type url for SourceInstanceProperties
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 SourceInstanceProperties message. Also converts values to other types if specified.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.compute.v1.SourceInstanceProperties |
SourceInstanceProperties |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
Returns:
Type | Description |
---|---|
Object.<string, *> |
Plain object |
(static) verify(message) → {string|null}
Verifies a SourceInstanceProperties message.
Parameters:
Name | Type | Description |
---|---|---|
message |
Object.<string, *> |
Plain object to verify |
Returns:
Type | Description |
---|---|
string | null |
|