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.



1907
1908
1909
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1907

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)


1904
1905
1906
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1904

def privileged
  @privileged
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1912
1913
1914
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 1912

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