Class: Google::Apis::MerchantapiAccountsV1beta::User
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::User
- 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
-
#access_rights ⇒ Array<String>
Optional.
-
#name ⇒ String
Identifier.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ User
constructor
A new instance of User.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ User
Returns a new instance of User.
2930 2931 2932 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2930 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_rights ⇒ Array<String>
Optional. The access rights the user has.
Corresponds to the JSON property accessRights
2916 2917 2918 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2916 def access_rights @access_rights end |
#name ⇒ String
Identifier. The resource name of the user. Format: accounts/
account/user/
email`Use
meto refer to your own email address, for example
accounts/
account
/users/me.
Corresponds to the JSON property
name`
2923 2924 2925 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2923 def name @name end |
#state ⇒ String
Output only. The state of the user.
Corresponds to the JSON property state
2928 2929 2930 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2928 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2935 2936 2937 2938 2939 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2935 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 |