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



2774
2775
2776
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2774

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

Instance Attribute Details

#node_metadataString

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

Returns:

  • (String)


2772
2773
2774
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2772

def 
  @node_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2779
2780
2781
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2779

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