Class: Google::Apis::Adexchangebuyer2V2beta1::ClientUser

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

Overview

A client user is created under a client buyer and has restricted access to the Marketplace and certain other sections of the Authorized Buyers UI based on the role granted to the associated client buyer. The only way a new client user can be created is via accepting an email invitation (see the accounts.clients.invitations.create method). All fields are required unless otherwise specified.

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

Returns a new instance of ClientUser.



556
557
558
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 556

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

Instance Attribute Details

#client_account_idFixnum

Numerical account ID of the client buyer with which the user is associated; the buyer must be a client of the current sponsor buyer. The value of this field is ignored in an update operation. Corresponds to the JSON property clientAccountId

Returns:

  • (Fixnum)


536
537
538
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 536

def 
  @client_account_id
end

#emailString

User's email address. The value of this field is ignored in an update operation. Corresponds to the JSON property email

Returns:

  • (String)


542
543
544
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 542

def email
  @email
end

#statusString

The status of the client user. Corresponds to the JSON property status

Returns:

  • (String)


547
548
549
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 547

def status
  @status
end

#user_idFixnum

The unique numerical ID of the client user that has accepted an invitation. The value of this field is ignored in an update operation. Corresponds to the JSON property userId

Returns:

  • (Fixnum)


554
555
556
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 554

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



561
562
563
564
565
566
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 561

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