Class: Google::Apis::ServicecontrolV1::FirstPartyPrincipal

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

Overview

First party identity principal.

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) ⇒ FirstPartyPrincipal

Returns a new instance of FirstPartyPrincipal



867
868
869
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 867

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

Instance Attribute Details

#principal_emailString

The email address of a Google account. . Corresponds to the JSON property principalEmail

Returns:

  • (String)


859
860
861
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 859

def principal_email
  @principal_email
end

#service_metadataHash<String,Object>

Metadata about the service that uses the service account. . Corresponds to the JSON property serviceMetadata

Returns:

  • (Hash<String,Object>)


865
866
867
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 865

def 
  @service_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



872
873
874
875
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 872

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