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.



1373
1374
1375
# File 'lib/google/apis/content_v2_1/classes.rb', line 1373

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)


1331
1332
1333
# File 'lib/google/apis/content_v2_1/classes.rb', line 1331

def admin
  @admin
end

#email_addressString

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

Returns:

  • (String)


1337
1338
1339
# File 'lib/google/apis/content_v2_1/classes.rb', line 1337

def email_address
  @email_address
end

#order_managerBoolean Also known as: order_manager?

This role is deprecated and can no longer be assigned. Any value set will be ignored. Corresponds to the JSON property orderManager

Returns:

  • (Boolean)


1343
1344
1345
# File 'lib/google/apis/content_v2_1/classes.rb', line 1343

def order_manager
  @order_manager
end

#payments_analystBoolean Also known as: payments_analyst?

This role is deprecated and can no longer be assigned. Any value set will be ignored. Corresponds to the JSON property paymentsAnalyst

Returns:

  • (Boolean)


1350
1351
1352
# File 'lib/google/apis/content_v2_1/classes.rb', line 1350

def payments_analyst
  @payments_analyst
end

#payments_managerBoolean Also known as: payments_manager?

This role is deprecated and can no longer be assigned. Any value set will be ignored. Corresponds to the JSON property paymentsManager

Returns:

  • (Boolean)


1357
1358
1359
# File 'lib/google/apis/content_v2_1/classes.rb', line 1357

def payments_manager
  @payments_manager
end

#read_onlyBoolean Also known as: read_only?

Optional. Whether user has standard read-only access. Corresponds to the JSON property readOnly

Returns:

  • (Boolean)


1363
1364
1365
# File 'lib/google/apis/content_v2_1/classes.rb', line 1363

def read_only
  @read_only
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)


1370
1371
1372
# File 'lib/google/apis/content_v2_1/classes.rb', line 1370

def reporting_manager
  @reporting_manager
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1378
1379
1380
1381
1382
1383
1384
1385
1386
# File 'lib/google/apis/content_v2_1/classes.rb', line 1378

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