Class: Google::Apis::ApphubV1::Identity

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

Overview

The identity associated with a service or workload.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Identity

Returns a new instance of Identity.



683
684
685
# File 'lib/google/apis/apphub_v1/classes.rb', line 683

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

Instance Attribute Details

#principalString

Output only. The principal of the identity. Supported formats: * sa://my-sa@ PROJECT_ID.iam.gserviceaccount.com for GCP Service Account * principal:// POOL_ID.global.PROJECT_NUMBER.workload.id.goog/ns/NAMESPACE_ID/sa/ MANAGED_IDENTITY_ID for Managed Workload Identity Corresponds to the JSON property principal

Returns:

  • (String)


681
682
683
# File 'lib/google/apis/apphub_v1/classes.rb', line 681

def principal
  @principal
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



688
689
690
# File 'lib/google/apis/apphub_v1/classes.rb', line 688

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