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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#addArray<String>

Added capabilities +optional Corresponds to the JSON property add

Returns:

  • (Array<String>)


285
286
287
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 285

def add
  @add
end

#dropArray<String>

Removed capabilities +optional Corresponds to the JSON property drop

Returns:

  • (Array<String>)


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