Class: Google::Apis::ServiceusageV1::ServiceIdentity
- Inherits:
-
Object
- Object
- Google::Apis::ServiceusageV1::ServiceIdentity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/serviceusage_v1/classes.rb,
generated/google/apis/serviceusage_v1/representations.rb,
generated/google/apis/serviceusage_v1/representations.rb
Overview
Service identity for a service. This is the identity that service producer should use to access consumer resources.
Instance Attribute Summary collapse
-
#email ⇒ String
The email address of the service account that a service producer would use to access consumer resources.
-
#unique_id ⇒ String
The unique and stable id of the service account.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceIdentity
constructor
A new instance of ServiceIdentity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ServiceIdentity
Returns a new instance of ServiceIdentity
3556 3557 3558 |
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 3556 def initialize(**args) update!(**args) end |
Instance Attribute Details
#email ⇒ String
The email address of the service account that a service producer would use
to access consumer resources.
Corresponds to the JSON property email
3547 3548 3549 |
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 3547 def email @email end |
#unique_id ⇒ String
The unique and stable id of the service account.
https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#
ServiceAccount
Corresponds to the JSON property uniqueId
3554 3555 3556 |
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 3554 def unique_id @unique_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3561 3562 3563 3564 |
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 3561 def update!(**args) @email = args[:email] if args.key?(:email) @unique_id = args[:unique_id] if args.key?(:unique_id) end |