class Google::Apis::DfareportingV3_3::UserRole

Contains properties of auser role, which is used to manage user access.

Attributes

account_id[RW]

Account ID of this user role. This is a read-only field that can be left blank. Corresponds to the JSON property `accountId` @return [Fixnum]

default_user_role[RW]

Whether this is a default user role. Default user roles are created by the system for the account/subaccount and cannot be modified or deleted. Each default user role comes with a basic set of preassigned permissions. Corresponds to the JSON property `defaultUserRole` @return [Boolean]

default_user_role?[RW]

Whether this is a default user role. Default user roles are created by the system for the account/subaccount and cannot be modified or deleted. Each default user role comes with a basic set of preassigned permissions. Corresponds to the JSON property `defaultUserRole` @return [Boolean]

id[RW]

ID of this user role. This is a read-only, auto-generated field. Corresponds to the JSON property `id` @return [Fixnum]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “ dfareporting#userRole”. Corresponds to the JSON property `kind` @return [String]

name[RW]

Name of this user role. This is a required field. Must be less than 256 characters long. If this user role is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this user role is a top- level user role, and the name must be unique among top-level user roles of the same account. Corresponds to the JSON property `name` @return [String]

parent_user_role_id[RW]

ID of the user role that this user role is based on or copied from. This is a required field. Corresponds to the JSON property `parentUserRoleId` @return [Fixnum]

permissions[RW]

List of permissions associated with this user role. Corresponds to the JSON property `permissions` @return [Array<Google::Apis::DfareportingV3_3::UserRolePermission>]

subaccount_id[RW]

Subaccount ID of this user role. This is a read-only field that can be left blank. Corresponds to the JSON property `subaccountId` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dfareporting_v3_3/classes.rb, line 11822
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dfareporting_v3_3/classes.rb, line 11827
def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @default_user_role = args[:default_user_role] if args.key?(:default_user_role)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @parent_user_role_id = args[:parent_user_role_id] if args.key?(:parent_user_role_id)
  @permissions = args[:permissions] if args.key?(:permissions)
  @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id)
end