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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/run_v1alpha1/classes.rb,
lib/google/apis/run_v1alpha1/representations.rb,
lib/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.



39
40
41
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 39

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#addArray<String>

Added capabilities +optional Corresponds to the JSON property add

Returns:

  • (Array<String>)


32
33
34
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 32

def add
  @add
end

#dropArray<String>

Removed capabilities +optional Corresponds to the JSON property drop

Returns:

  • (Array<String>)


37
38
39
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 37

def drop
  @drop
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



44
45
46
47
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 44

def update!(**args)
  @add = args[:add] if args.key?(:add)
  @drop = args[:drop] if args.key?(:drop)
end