Class: Google::Apis::CloudbuildV2::SecurityContext

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

Security options the container should be run with.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SecurityContext

Returns a new instance of SecurityContext.



1986
1987
1988
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1986

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

Instance Attribute Details

#privilegedBoolean Also known as: privileged?

Run container in privileged mode. Corresponds to the JSON property privileged

Returns:

  • (Boolean)


1983
1984
1985
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1983

def privileged
  @privileged
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1991
1992
1993
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1991

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