Class: Google::Apis::ApphubV1alpha::Identity
- Inherits:
-
Object
- Object
- Google::Apis::ApphubV1alpha::Identity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apphub_v1alpha/classes.rb,
lib/google/apis/apphub_v1alpha/representations.rb,
lib/google/apis/apphub_v1alpha/representations.rb
Overview
The identity associated with a service or workload.
Instance Attribute Summary collapse
-
#principal ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Identity
constructor
A new instance of Identity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Identity
Returns a new instance of Identity.
794 795 796 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 794 def initialize(**args) update!(**args) end |
Instance Attribute Details
#principal ⇒ String
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
792 793 794 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 792 def principal @principal end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
799 800 801 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 799 def update!(**args) @principal = args[:principal] if args.key?(:principal) end |