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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Capabilities
Returns a new instance of Capabilities.
293 294 295 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 293 def initialize(**args) update!(**args) end |
Instance Attribute Details
#add ⇒ Array<String>
Added capabilities
+optional
Corresponds to the JSON property add
285 286 287 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 285 def add @add end |
#drop ⇒ Array<String>
Removed capabilities
+optional
Corresponds to the JSON property drop
291 292 293 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 291 def drop @drop end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
298 299 300 301 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 298 def update!(**args) @add = args[:add] if args.key?(:add) @drop = args[:drop] if args.key?(:drop) end |