WorkloadMetadataConfig

google.container.v1beta1. WorkloadMetadataConfig

Represents a WorkloadMetadataConfig.

Constructor

new WorkloadMetadataConfig(propertiesopt)

Constructs a new WorkloadMetadataConfig.

Parameters:
Name Type Attributes Description
properties google.container.v1beta1.IWorkloadMetadataConfig <optional>

Properties to set

Implements:
  • IWorkloadMetadataConfig

Members

mode

WorkloadMetadataConfig mode.

nodeMetadata

WorkloadMetadataConfig nodeMetadata.

Mode

Mode enum.

Properties:
Name Type Description
MODE_UNSPECIFIED number

MODE_UNSPECIFIED value

GCE_METADATA number

GCE_METADATA value

GKE_METADATA number

GKE_METADATA value

NodeMetadata

NodeMetadata enum.

Properties:
Name Type Description
UNSPECIFIED number

UNSPECIFIED value

SECURE number

SECURE value

EXPOSE number

EXPOSE value

GKE_METADATA_SERVER number

GKE_METADATA_SERVER value

Methods

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

Converts this WorkloadMetadataConfig to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

(static) create(propertiesopt) → {google.container.v1beta1.WorkloadMetadataConfig}

Creates a new WorkloadMetadataConfig instance using the specified properties.

Parameters:
Name Type Attributes Description
properties google.container.v1beta1.IWorkloadMetadataConfig <optional>

Properties to set

Returns:
Type Description
google.container.v1beta1.WorkloadMetadataConfig

WorkloadMetadataConfig instance

(static) decode(reader, lengthopt) → {google.container.v1beta1.WorkloadMetadataConfig}

Decodes a WorkloadMetadataConfig 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.container.v1beta1.WorkloadMetadataConfig

WorkloadMetadataConfig

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.container.v1beta1.WorkloadMetadataConfig}

Decodes a WorkloadMetadataConfig 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.container.v1beta1.WorkloadMetadataConfig

WorkloadMetadataConfig

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

Parameters:
Name Type Attributes Description
message google.container.v1beta1.IWorkloadMetadataConfig

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

Parameters:
Name Type Attributes Description
message google.container.v1beta1.IWorkloadMetadataConfig

WorkloadMetadataConfig message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) fromObject(object) → {google.container.v1beta1.WorkloadMetadataConfig}

Creates a WorkloadMetadataConfig 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.container.v1beta1.WorkloadMetadataConfig

WorkloadMetadataConfig

(static) getTypeUrl(typeUrlPrefixopt) → {string}

Gets the default type url for WorkloadMetadataConfig

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

Parameters:
Name Type Attributes Description
message google.container.v1beta1.WorkloadMetadataConfig

WorkloadMetadataConfig

options $protobuf.IConversionOptions <optional>

Conversion options

Returns:
Type Description
Object.<string, *>

Plain object

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

Verifies a WorkloadMetadataConfig 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