Class: Google::Apis::CloudbuildV2::Capabilities

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/representations.rb

Overview

Capabilities 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.



363
364
365
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 363

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

Instance Attribute Details

#addArray<String>

Optional. Added capabilities +optional Corresponds to the JSON property add

Returns:

  • (Array<String>)


356
357
358
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 356

def add
  @add
end

#dropArray<String>

Optional. Removed capabilities +optional Corresponds to the JSON property drop

Returns:

  • (Array<String>)


361
362
363
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 361

def drop
  @drop
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



368
369
370
371
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 368

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