Class: Google::Apis::MerchantapiAccountsV1beta::User

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

Overview

A user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ User

Returns a new instance of User.



2928
2929
2930
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2928

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

Instance Attribute Details

#access_rightsArray<String>

Optional. The access rights the user has. Corresponds to the JSON property accessRights

Returns:

  • (Array<String>)


2914
2915
2916
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2914

def access_rights
  @access_rights
end

#nameString

Identifier. The resource name of the user. Format: accounts/account/user/ email`Usemeto refer to your own email address, for exampleaccounts/ account/users/me. Corresponds to the JSON propertyname`

Returns:

  • (String)


2921
2922
2923
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2921

def name
  @name
end

#stateString

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

Returns:

  • (String)


2926
2927
2928
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2926

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2933
2934
2935
2936
2937
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2933

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