Class: Google::Apis::AuthorizedbuyersmarketplaceV1::ClientUser

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

Overview

A user of a client who has restricted access to the Marketplace and certain other sections of the Authorized Buyers UI based on the role granted to the associated client.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClientUser

Returns a new instance of ClientUser.



366
367
368
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 366

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

Instance Attribute Details

#emailString

Required. The client user's email address that has to be unique across all users for the same client. Corresponds to the JSON property email

Returns:

  • (String)


353
354
355
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 353

def email
  @email
end

#nameString

Output only. The resource name of the client user. Format: buyers/accountId/ clients/clientAccountId/users/userId` Corresponds to the JSON propertyname`

Returns:

  • (String)


359
360
361
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 359

def name
  @name
end

#stateString

Output only. The state of the client user. Corresponds to the JSON property state

Returns:

  • (String)


364
365
366
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 364

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



371
372
373
374
375
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 371

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