Class: Google::Apis::DfareportingV3_0::UserRole
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DfareportingV3_0::UserRole
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v3_0/classes.rb,
 generated/google/apis/dfareporting_v3_0/representations.rb,
 generated/google/apis/dfareporting_v3_0/representations.rb
Overview
Contains properties of auser role, which is used to manage user access.
Instance Attribute Summary collapse
- 
  
    
      #account_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Account ID of this user role. 
- 
  
    
      #default_user_role  ⇒ Boolean 
    
    
      (also: #default_user_role?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether this is a default user role. 
- 
  
    
      #id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ID of this user role. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifies what kind of resource this is. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Name of this user role. 
- 
  
    
      #parent_user_role_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ID of the user role that this user role is based on or copied from. 
- 
  
    
      #permissions  ⇒ Array<Google::Apis::DfareportingV3_0::UserRolePermission> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    List of permissions associated with this user role. 
- 
  
    
      #subaccount_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Subaccount ID of this user role. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ UserRole 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of UserRole. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UserRole
Returns a new instance of UserRole
| 11797 11798 11799 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11797 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#account_id ⇒ Fixnum
Account ID of this user role. This is a read-only field that can be left blank.
Corresponds to the JSON property accountId
| 11750 11751 11752 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11750 def account_id @account_id end | 
#default_user_role ⇒ Boolean Also known as: default_user_role?
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
| 11757 11758 11759 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11757 def default_user_role @default_user_role end | 
#id ⇒ Fixnum
ID of this user role. This is a read-only, auto-generated field.
Corresponds to the JSON property id
| 11763 11764 11765 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11763 def id @id end | 
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#userRole".
Corresponds to the JSON property kind
| 11769 11770 11771 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11769 def kind @kind end | 
#name ⇒ String
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
| 11778 11779 11780 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11778 def name @name end | 
#parent_user_role_id ⇒ Fixnum
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
| 11784 11785 11786 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11784 def parent_user_role_id @parent_user_role_id end | 
#permissions ⇒ Array<Google::Apis::DfareportingV3_0::UserRolePermission>
List of permissions associated with this user role.
Corresponds to the JSON property permissions
| 11789 11790 11791 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11789 def @permissions end | 
#subaccount_id ⇒ Fixnum
Subaccount ID of this user role. This is a read-only field that can be left
blank.
Corresponds to the JSON property subaccountId
| 11795 11796 11797 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11795 def subaccount_id @subaccount_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 | # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 11802 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 |