Class: Google::Apis::CloudbuildV2::Security
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::Security
- 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 configuration.
Instance Attribute Summary collapse
-
#privilege_mode ⇒ String
Optional.
-
#service_account ⇒ String
IAM service account whose credentials will be used at runtime.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Security
constructor
A new instance of Security.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Security
Returns a new instance of Security.
2153 2154 2155 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2153 def initialize(**args) update!(**args) end |
Instance Attribute Details
#privilege_mode ⇒ String
Optional. Privilege mode.
Corresponds to the JSON property privilegeMode
2146 2147 2148 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2146 def privilege_mode @privilege_mode end |
#service_account ⇒ String
IAM service account whose credentials will be used at runtime.
Corresponds to the JSON property serviceAccount
2151 2152 2153 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2151 def service_account @service_account end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2158 2159 2160 2161 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2158 def update!(**args) @privilege_mode = args[:privilege_mode] if args.key?(:privilege_mode) @service_account = args[:service_account] if args.key?(:service_account) end |