Class: Google::Apis::ContainerV1beta1::WorkloadMetadataConfig

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ WorkloadMetadataConfig

Returns a new instance of WorkloadMetadataConfig.



4785
4786
4787
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4785

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)


4777
4778
4779
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4777

def mode
  @mode
end

#node_metadataString

NodeMetadata is the configuration for how to expose metadata to the workloads running on the node. Corresponds to the JSON property nodeMetadata

Returns:

  • (String)


4783
4784
4785
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4783

def 
  @node_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4790
4791
4792
4793
# File 'generated/google/apis/container_v1beta1/classes.rb', line 4790

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