Class: Google::Apis::ServicecontrolV1::AuthenticationInfo

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

Authentication information for the operation.

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

Returns a new instance of AuthenticationInfo



305
306
307
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 305

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

Instance Attribute Details

#authority_selectorString

The authority selector specified by the requestor, if any. It is not guaranteed that the principal was allowed to use this authority. Corresponds to the JSON property authoritySelector

Returns:

  • (String)


287
288
289
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 287

def authority_selector
  @authority_selector
end

#principal_emailString

The email address of the authenticated user (or service account on behalf of third party principal) making the request. For privacy reasons, the principal email address is redacted for all read-only operations that fail with a "permission denied" error. Corresponds to the JSON property principalEmail

Returns:

  • (String)


295
296
297
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 295

def principal_email
  @principal_email
end

#third_party_principalHash<String,Object>

The third party identification (if any) of the authenticated user making the request. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the @type property. Corresponds to the JSON property thirdPartyPrincipal

Returns:

  • (Hash<String,Object>)


303
304
305
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 303

def third_party_principal
  @third_party_principal
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



310
311
312
313
314
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 310

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