Class: Google::Apis::CloudbuildV2::SecurityContext
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::SecurityContext
- 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
-
#privileged ⇒ Boolean
(also: #privileged?)
Run container in privileged mode.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SecurityContext
constructor
A new instance of SecurityContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#privileged ⇒ Boolean Also known as: privileged?
Run container in privileged mode.
Corresponds to the JSON property privileged
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 |