Scheduling

google.cloud.compute.v1. Scheduling

Represents a Scheduling.

Constructor

new Scheduling(propertiesopt)

Constructs a new Scheduling.

Parameters:
Name Type Attributes Description
properties google.cloud.compute.v1.IScheduling <optional>

Properties to set

Implements:
  • IScheduling

Members

_automaticRestart

Scheduling _automaticRestart.

_instanceTerminationAction

Scheduling _instanceTerminationAction.

_locationHint

Scheduling _locationHint.

_minNodeCpus

Scheduling _minNodeCpus.

_onHostMaintenance

Scheduling _onHostMaintenance.

_preemptible

Scheduling _preemptible.

_provisioningModel

Scheduling _provisioningModel.

automaticRestart

Scheduling automaticRestart.

instanceTerminationAction

Scheduling instanceTerminationAction.

locationHint

Scheduling locationHint.

minNodeCpus

Scheduling minNodeCpus.

nodeAffinities

Scheduling nodeAffinities.

onHostMaintenance

Scheduling onHostMaintenance.

preemptible

Scheduling preemptible.

provisioningModel

Scheduling provisioningModel.

InstanceTerminationAction

InstanceTerminationAction enum.

Properties:
Name Type Description
UNDEFINED_INSTANCE_TERMINATION_ACTION number

UNDEFINED_INSTANCE_TERMINATION_ACTION value

DELETE number

DELETE value

INSTANCE_TERMINATION_ACTION_UNSPECIFIED number

INSTANCE_TERMINATION_ACTION_UNSPECIFIED value

STOP number

STOP value

OnHostMaintenance

OnHostMaintenance enum.

Properties:
Name Type Description
UNDEFINED_ON_HOST_MAINTENANCE number

UNDEFINED_ON_HOST_MAINTENANCE value

MIGRATE number

MIGRATE value

TERMINATE number

TERMINATE value

ProvisioningModel

ProvisioningModel enum.

Properties:
Name Type Description
UNDEFINED_PROVISIONING_MODEL number

UNDEFINED_PROVISIONING_MODEL value

SPOT number

SPOT value

STANDARD number

STANDARD value

Methods

toJSON() → {Object.<string, *>}

Converts this Scheduling to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

(static) create(propertiesopt) → {google.cloud.compute.v1.Scheduling}

Creates a new Scheduling instance using the specified properties.

Parameters:
Name Type Attributes Description
properties google.cloud.compute.v1.IScheduling <optional>

Properties to set

Returns:
Type Description
google.cloud.compute.v1.Scheduling

Scheduling instance

(static) decode(reader, lengthopt) → {google.cloud.compute.v1.Scheduling}

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

Scheduling

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.Scheduling}

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

Scheduling

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 Scheduling message. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.cloud.compute.v1.IScheduling

Scheduling 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 Scheduling message, length delimited. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.cloud.compute.v1.IScheduling

Scheduling 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.Scheduling}

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

Scheduling

(static) getTypeUrl(typeUrlPrefixopt) → {string}

Gets the default type url for Scheduling

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 Scheduling message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.cloud.compute.v1.Scheduling

Scheduling

options $protobuf.IConversionOptions <optional>

Conversion options

Returns:
Type Description
Object.<string, *>

Plain object

(static) verify(message) → {string|null}

Verifies a Scheduling message.

Parameters:
Name Type Description
message Object.<string, *>

Plain object to verify

Returns:
Type Description
string | null

null if valid, otherwise the reason why it is not