Class: Google::Apis::ContainerV1::WorkloadMetadataConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::WorkloadMetadataConfig
- 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
-
#mode ⇒ String
Mode is the configuration for how to expose metadata to workloads running on the node pool.
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.
7996 7997 7998 |
# File 'lib/google/apis/container_v1/classes.rb', line 7996 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
7994 7995 7996 |
# File 'lib/google/apis/container_v1/classes.rb', line 7994 def mode @mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8001 8002 8003 |
# File 'lib/google/apis/container_v1/classes.rb', line 8001 def update!(**args) @mode = args[:mode] if args.key?(:mode) end |