class Google::Apis::RunV1::SecurityContext

Not supported by Cloud Run SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.

Attributes

run_as_user[RW]

(Optional) The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Corresponds to the JSON property `runAsUser` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v1/classes.rb, line 2439
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/run_v1/classes.rb, line 2444
def update!(**args)
  @run_as_user = args[:run_as_user] if args.key?(:run_as_user)
end