Class: Google::Apis::MerchantapiAccountsV1beta::CreateUserRequest

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

Request message for the CreateUser method.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#parentString

Required. The resource name of the account for which a user will be created. Format: accounts/account` Corresponds to the JSON propertyparent`

Returns:

  • (String)


564
565
566
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 564

def parent
  @parent
end

#userGoogle::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_idString

Required. The email address of the user (for example, john.doe@gmail.com). Corresponds to the JSON property userId

Returns:

  • (String)


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