Class: Google::Apis::ApphubV1::Identity
- Inherits:
-
Object
- Object
- Google::Apis::ApphubV1::Identity
- 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
-
#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.
683 684 685 |
# File 'lib/google/apis/apphub_v1/classes.rb', line 683 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
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 |