Class: Google::Apis::CloudbuildV2::Capabilities
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::Capabilities
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/representations.rb
Overview
Capabilities adds and removes POSIX capabilities from running containers.
Instance Attribute Summary collapse
-
#add ⇒ Array<String>
Optional.
-
#drop ⇒ Array<String>
Optional.
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.
363 364 365 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 363 def initialize(**args) update!(**args) end |
Instance Attribute Details
#add ⇒ Array<String>
Optional. Added capabilities +optional
Corresponds to the JSON property add
356 357 358 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 356 def add @add end |
#drop ⇒ Array<String>
Optional. Removed capabilities +optional
Corresponds to the JSON property drop
361 362 363 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 361 def drop @drop end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
368 369 370 371 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 368 def update!(**args) @add = args[:add] if args.key?(:add) @drop = args[:drop] if args.key?(:drop) end |