Class: Google::Apis::CloudbuildV2::Security

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 configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Security

Returns a new instance of Security.



2399
2400
2401
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2399

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

Instance Attribute Details

#privilege_modeString

Optional. Privilege mode. Corresponds to the JSON property privilegeMode

Returns:

  • (String)


2392
2393
2394
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2392

def privilege_mode
  @privilege_mode
end

#service_accountString

IAM service account whose credentials will be used at runtime. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


2397
2398
2399
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2397

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2404
2405
2406
2407
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2404

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