Class: Google::Apis::ContentV2_1::AccountUser

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AccountUser

Returns a new instance of AccountUser.



687
688
689
# File 'generated/google/apis/content_v2_1/classes.rb', line 687

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

Instance Attribute Details

#adminBoolean Also known as: admin?

Whether user is an admin. Corresponds to the JSON property admin

Returns:

  • (Boolean)


661
662
663
# File 'generated/google/apis/content_v2_1/classes.rb', line 661

def admin
  @admin
end

#email_addressString

User's email address. Corresponds to the JSON property emailAddress

Returns:

  • (String)


667
668
669
# File 'generated/google/apis/content_v2_1/classes.rb', line 667

def email_address
  @email_address
end

#order_managerBoolean Also known as: order_manager?

Whether user is an order manager. Corresponds to the JSON property orderManager

Returns:

  • (Boolean)


672
673
674
# File 'generated/google/apis/content_v2_1/classes.rb', line 672

def order_manager
  @order_manager
end

#payments_analystBoolean Also known as: payments_analyst?

Whether user can access payment statements. Corresponds to the JSON property paymentsAnalyst

Returns:

  • (Boolean)


678
679
680
# File 'generated/google/apis/content_v2_1/classes.rb', line 678

def payments_analyst
  @payments_analyst
end

#payments_managerBoolean Also known as: payments_manager?

Whether user can manage payment settings. Corresponds to the JSON property paymentsManager

Returns:

  • (Boolean)


684
685
686
# File 'generated/google/apis/content_v2_1/classes.rb', line 684

def payments_manager
  @payments_manager
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



692
693
694
695
696
697
698
# File 'generated/google/apis/content_v2_1/classes.rb', line 692

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