Class: Google::Apis::ContentV2::AccountUser
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::AccountUser
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
-
#admin ⇒ Boolean
(also: #admin?)
Whether user is an admin.
-
#email_address ⇒ String
User's email address.
-
#order_manager ⇒ Boolean
(also: #order_manager?)
Whether user is an order manager.
-
#payments_analyst ⇒ Boolean
(also: #payments_analyst?)
Whether user can access payment statements.
-
#payments_manager ⇒ Boolean
(also: #payments_manager?)
Whether user can manage payment settings.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountUser
constructor
A new instance of AccountUser.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccountUser
Returns a new instance of AccountUser.
807 808 809 |
# File 'generated/google/apis/content_v2/classes.rb', line 807 def initialize(**args) update!(**args) end |
Instance Attribute Details
#admin ⇒ Boolean Also known as: admin?
Whether user is an admin.
Corresponds to the JSON property admin
781 782 783 |
# File 'generated/google/apis/content_v2/classes.rb', line 781 def admin @admin end |
#email_address ⇒ String
User's email address.
Corresponds to the JSON property emailAddress
787 788 789 |
# File 'generated/google/apis/content_v2/classes.rb', line 787 def email_address @email_address end |
#order_manager ⇒ Boolean Also known as: order_manager?
Whether user is an order manager.
Corresponds to the JSON property orderManager
792 793 794 |
# File 'generated/google/apis/content_v2/classes.rb', line 792 def order_manager @order_manager end |
#payments_analyst ⇒ Boolean Also known as: payments_analyst?
Whether user can access payment statements.
Corresponds to the JSON property paymentsAnalyst
798 799 800 |
# File 'generated/google/apis/content_v2/classes.rb', line 798 def payments_analyst @payments_analyst end |
#payments_manager ⇒ Boolean Also known as: payments_manager?
Whether user can manage payment settings.
Corresponds to the JSON property paymentsManager
804 805 806 |
# File 'generated/google/apis/content_v2/classes.rb', line 804 def payments_manager @payments_manager end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
812 813 814 815 816 817 818 |
# File 'generated/google/apis/content_v2/classes.rb', line 812 def update!(**args) @admin = args[:admin] if args.key?(:admin) @email_address = args[:email_address] if args.key?(:email_address) @order_manager = args[:order_manager] if args.key?(:order_manager) @payments_analyst = args[:payments_analyst] if args.key?(:payments_analyst) @payments_manager = args[:payments_manager] if args.key?(:payments_manager) end |