Class: Google::Apis::Adexchangebuyer2V2beta1::ClientUser
- Inherits:
-
Object
- Object
- Google::Apis::Adexchangebuyer2V2beta1::ClientUser
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/adexchangebuyer2_v2beta1/classes.rb,
lib/google/apis/adexchangebuyer2_v2beta1/representations.rb,
lib/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 through accepting an email invitation (see the accounts. clients.invitations.create method). All fields are required unless otherwise specified.
Instance Attribute Summary collapse
-
#client_account_id ⇒ Fixnum
Numerical account ID of the client buyer with which the user is associated; the buyer must be a client of the current sponsor buyer.
-
#email ⇒ String
User's email address.
-
#status ⇒ String
The status of the client user.
-
#user_id ⇒ Fixnum
The unique numerical ID of the client user that has accepted an invitation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClientUser
constructor
A new instance of ClientUser.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClientUser
Returns a new instance of ClientUser.
536 537 538 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 536 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_account_id ⇒ Fixnum
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
517 518 519 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 517 def client_account_id @client_account_id end |
#email ⇒ String
User's email address. The value of this field is ignored in an update
operation.
Corresponds to the JSON property email
523 524 525 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 523 def email @email end |
#status ⇒ String
The status of the client user.
Corresponds to the JSON property status
528 529 530 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 528 def status @status end |
#user_id ⇒ Fixnum
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
534 535 536 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 534 def user_id @user_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
541 542 543 544 545 546 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 541 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 |