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



267
268
269
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 267

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

Instance Attribute Details

#addArray<String>

Added capabilities +optional Corresponds to the JSON property add

Returns:

  • (Array<String>)


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

def add
  @add
end

#dropArray<String>

Removed capabilities +optional Corresponds to the JSON property drop

Returns:

  • (Array<String>)


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

def drop
  @drop
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



272
273
274
275
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 272

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