Class: Google::Apis::SecuritycenterV1beta2::ServiceAccountDelegationInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb

Overview

Identity delegation history of an authenticated service account.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceAccountDelegationInfo

Returns a new instance of ServiceAccountDelegationInfo.



2456
2457
2458
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2456

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

Instance Attribute Details

#principal_emailString

The email address of a Google account. . Corresponds to the JSON property principalEmail

Returns:

  • (String)


2443
2444
2445
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2443

def principal_email
  @principal_email
end

#principal_subjectString

A string representing the principal_subject associated with the identity. As compared to principal_email, supports principals that aren't associated with email addresses, such as third party principals. For most identities, the format will be principal://iam.googleapis.com/identity pool name/subject/ subject)except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy formatserviceAccount: identity pool name[subject] Corresponds to the JSON propertyprincipalSubject`

Returns:

  • (String)


2454
2455
2456
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2454

def principal_subject
  @principal_subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2461
2462
2463
2464
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2461

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