Class: Google::Apis::ContainerV1beta1::WorkloadMetadataConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::WorkloadMetadataConfig
- 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
-
#mode ⇒ String
Mode is the configuration for how to expose metadata to workloads running on the node pool.
-
#node_metadata ⇒ String
NodeMetadata is the configuration for how to expose metadata to the workloads running on the node.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WorkloadMetadataConfig
constructor
A new instance of WorkloadMetadataConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WorkloadMetadataConfig
Returns a new instance of WorkloadMetadataConfig.
5078 5079 5080 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 5078 def initialize(**args) update!(**args) end |
Instance Attribute Details
#mode ⇒ String
Mode is the configuration for how to expose metadata to workloads running on
the node pool.
Corresponds to the JSON property mode
5070 5071 5072 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 5070 def mode @mode end |
#node_metadata ⇒ String
NodeMetadata is the configuration for how to expose metadata to the workloads
running on the node.
Corresponds to the JSON property nodeMetadata
5076 5077 5078 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 5076 def @node_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5083 5084 5085 5086 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 5083 def update!(**args) @mode = args[:mode] if args.key?(:mode) @node_metadata = args[:node_metadata] if args.key?(:node_metadata) end |