Class: Google::Apis::RunV1alpha1::Capabilities
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::Capabilities
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/google/apis/run_v1alpha1/representations.rb
Overview
Adds and removes POSIX capabilities from running containers.
Instance Attribute Summary collapse
-
#add ⇒ Array<String>
Added capabilities +optional Corresponds to the JSON property
add
. -
#drop ⇒ Array<String>
Removed capabilities +optional Corresponds to the JSON property
drop
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Capabilities
constructor
A new instance of Capabilities.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Capabilities
Returns a new instance of Capabilities.
234 235 236 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 234 def initialize(**args) update!(**args) end |
Instance Attribute Details
#add ⇒ Array<String>
Added capabilities +optional
Corresponds to the JSON property add
227 228 229 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 227 def add @add end |
#drop ⇒ Array<String>
Removed capabilities +optional
Corresponds to the JSON property drop
232 233 234 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 232 def drop @drop end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
239 240 241 242 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 239 def update!(**args) @add = args[:add] if args.key?(:add) @drop = args[:drop] if args.key?(:drop) end |