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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountUser

Returns a new instance of AccountUser.



1326
1327
1328
# File 'lib/google/apis/content_v2_1/classes.rb', line 1326

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)


1293
1294
1295
# File 'lib/google/apis/content_v2_1/classes.rb', line 1293

def admin
  @admin
end

#email_addressString

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

Returns:

  • (String)


1299
1300
1301
# File 'lib/google/apis/content_v2_1/classes.rb', line 1299

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)


1304
1305
1306
# File 'lib/google/apis/content_v2_1/classes.rb', line 1304

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)


1310
1311
1312
# File 'lib/google/apis/content_v2_1/classes.rb', line 1310

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)


1316
1317
1318
# File 'lib/google/apis/content_v2_1/classes.rb', line 1316

def payments_manager
  @payments_manager
end

#reporting_managerBoolean Also known as: reporting_manager?

Whether user is a reporting manager. This role is equivalent to the Performance and insights role in Merchant Center. Corresponds to the JSON property reportingManager

Returns:

  • (Boolean)


1323
1324
1325
# File 'lib/google/apis/content_v2_1/classes.rb', line 1323

def reporting_manager
  @reporting_manager
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1331
1332
1333
1334
1335
1336
1337
1338
# File 'lib/google/apis/content_v2_1/classes.rb', line 1331

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)
  @reporting_manager = args[:reporting_manager] if args.key?(:reporting_manager)
end