Class: Google::Apis::BackupdrV1::NodeAffinity
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::NodeAffinity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/backupdr_v1/classes.rb,
lib/google/apis/backupdr_v1/representations.rb,
lib/google/apis/backupdr_v1/representations.rb
Overview
Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.
Instance Attribute Summary collapse
-
#key ⇒ String
Optional.
-
#operator ⇒ String
Optional.
-
#values ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NodeAffinity
constructor
A new instance of NodeAffinity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NodeAffinity
Returns a new instance of NodeAffinity.
3069 3070 3071 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3069 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Optional. Corresponds to the label key of Node resource.
Corresponds to the JSON property key
3057 3058 3059 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3057 def key @key end |
#operator ⇒ String
Optional. Defines the operation of node selection.
Corresponds to the JSON property operator
3062 3063 3064 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3062 def operator @operator end |
#values ⇒ Array<String>
Optional. Corresponds to the label values of Node resource.
Corresponds to the JSON property values
3067 3068 3069 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3067 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3074 3075 3076 3077 3078 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 3074 def update!(**args) @key = args[:key] if args.key?(:key) @operator = args[:operator] if args.key?(:operator) @values = args[:values] if args.key?(:values) end |