Class: Google::Apis::ServicecontrolV2::ServiceAccountDelegationInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/servicecontrol_v2/classes.rb,
lib/google/apis/servicecontrol_v2/representations.rb,
lib/google/apis/servicecontrol_v2/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.



1193
1194
1195
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1193

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

Instance Attribute Details

#first_party_principalGoogle::Apis::ServicecontrolV2::FirstPartyPrincipal

First party identity principal. Corresponds to the JSON property firstPartyPrincipal



1177
1178
1179
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1177

def first_party_principal
  @first_party_principal
end

#principal_subjectString

A string representing the principal_subject associated with the identity. 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 format serviceAccount:identity pool name[subject] Corresponds to the JSON propertyprincipalSubject`

Returns:

  • (String)


1186
1187
1188
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1186

def principal_subject
  @principal_subject
end

#third_party_principalGoogle::Apis::ServicecontrolV2::ThirdPartyPrincipal

Third party identity principal. Corresponds to the JSON property thirdPartyPrincipal



1191
1192
1193
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1191

def third_party_principal
  @third_party_principal
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1198
1199
1200
1201
1202
# File 'lib/google/apis/servicecontrol_v2/classes.rb', line 1198

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