Class: Google::Apis::RunV1alpha1::Capabilities

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#addArray<String>

Added capabilities +optional Corresponds to the JSON property add

Returns:

  • (Array<String>)


227
228
229
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 227

def add
  @add
end

#dropArray<String>

Removed capabilities +optional Corresponds to the JSON property drop

Returns:

  • (Array<String>)


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