Class: Google::Apis::MemcacheV1beta2::ApplySoftwareUpdateRequest
- Inherits:
-
Object
- Object
- Google::Apis::MemcacheV1beta2::ApplySoftwareUpdateRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/memcache_v1beta2/classes.rb,
lib/google/apis/memcache_v1beta2/representations.rb,
lib/google/apis/memcache_v1beta2/representations.rb
Overview
Request for ApplySoftwareUpdate.
Instance Attribute Summary collapse
-
#apply_all ⇒ Boolean
(also: #apply_all?)
Whether to apply the update to all nodes.
-
#node_ids ⇒ Array<String>
Nodes to which we should apply the update to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApplySoftwareUpdateRequest
constructor
A new instance of ApplySoftwareUpdateRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ApplySoftwareUpdateRequest
Returns a new instance of ApplySoftwareUpdateRequest.
71 72 73 |
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 71 def initialize(**args) update!(**args) end |
Instance Attribute Details
#apply_all ⇒ Boolean Also known as: apply_all?
Whether to apply the update to all nodes. If set to true, will explicitly
restrict users from specifying any nodes, and apply software update to all
nodes (where applicable) within the instance.
Corresponds to the JSON property applyAll
62 63 64 |
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 62 def apply_all @apply_all end |
#node_ids ⇒ Array<String>
Nodes to which we should apply the update to. Note all the selected nodes are
updated in parallel.
Corresponds to the JSON property nodeIds
69 70 71 |
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 69 def node_ids @node_ids end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
76 77 78 79 |
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 76 def update!(**args) @apply_all = args[:apply_all] if args.key?(:apply_all) @node_ids = args[:node_ids] if args.key?(:node_ids) end |