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



258
259
260
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 258

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

Instance Attribute Details

#addArray<String>

Added capabilities +optional Corresponds to the JSON property add

Returns:

  • (Array<String>)


250
251
252
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 250

def add
  @add
end

#dropArray<String>

Removed capabilities +optional Corresponds to the JSON property drop

Returns:

  • (Array<String>)


256
257
258
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 256

def drop
  @drop
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



263
264
265
266
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 263

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