Class: Google::Apis::MerchantapiAccountsV1beta::CreateUserRequest
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::CreateUserRequest
- 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
Request message for the CreateUser
method.
Instance Attribute Summary collapse
-
#parent ⇒ String
Required.
-
#user ⇒ Google::Apis::MerchantapiAccountsV1beta::User
A user.
-
#user_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateUserRequest
constructor
A new instance of CreateUserRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CreateUserRequest
Returns a new instance of CreateUserRequest.
576 577 578 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 576 def initialize(**args) update!(**args) end |
Instance Attribute Details
#parent ⇒ String
Required. The resource name of the account for which a user will be created.
Format: accounts/
account`
Corresponds to the JSON property
parent`
564 565 566 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 564 def parent @parent end |
#user ⇒ Google::Apis::MerchantapiAccountsV1beta::User
A user.
Corresponds to the JSON property user
569 570 571 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 569 def user @user end |
#user_id ⇒ String
Required. The email address of the user (for example, john.doe@gmail.com
).
Corresponds to the JSON property userId
574 575 576 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 574 def user_id @user_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
581 582 583 584 585 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 581 def update!(**args) @parent = args[:parent] if args.key?(:parent) @user = args[:user] if args.key?(:user) @user_id = args[:user_id] if args.key?(:user_id) end |