Class: Google::Apis::ServiceusageV1::ServiceIdentity

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ServiceIdentity

Returns a new instance of ServiceIdentity.



3872
3873
3874
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 3872

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

Instance Attribute Details

#emailString

The email address of the service account that a service producer would use to access consumer resources. Corresponds to the JSON property email

Returns:

  • (String)


3863
3864
3865
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 3863

def email
  @email
end

#unique_idString

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

Returns:

  • (String)


3870
3871
3872
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 3870

def unique_id
  @unique_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3877
3878
3879
3880
# File 'generated/google/apis/serviceusage_v1/classes.rb', line 3877

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