Class: Google::Apis::ContainerV1::WorkloadMetadataConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb

Overview

WorkloadMetadataConfig defines the metadata configuration to expose to workloads on the node pool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkloadMetadataConfig

Returns a new instance of WorkloadMetadataConfig.



4978
4979
4980
# File 'lib/google/apis/container_v1/classes.rb', line 4978

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#modeString

Mode is the configuration for how to expose metadata to workloads running on the node pool. Corresponds to the JSON property mode

Returns:

  • (String)


4976
4977
4978
# File 'lib/google/apis/container_v1/classes.rb', line 4976

def mode
  @mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4983
4984
4985
# File 'lib/google/apis/container_v1/classes.rb', line 4983

def update!(**args)
  @mode = args[:mode] if args.key?(:mode)
end