Class: Google::Apis::DfareportingV4::UserRolePermission

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

Overview

Contains properties of a user role permission.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserRolePermission

Returns a new instance of UserRolePermission.



13036
13037
13038
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13036

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#availabilityString

Levels of availability for a user role permission. Corresponds to the JSON property availability

Returns:

  • (String)


13013
13014
13015
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13013

def availability
  @availability
end

#idFixnum

ID of this user role permission. Corresponds to the JSON property id

Returns:

  • (Fixnum)


13018
13019
13020
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13018

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#userRolePermission". Corresponds to the JSON property kind

Returns:

  • (String)


13024
13025
13026
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13024

def kind
  @kind
end

#nameString

Name of this user role permission. Corresponds to the JSON property name

Returns:

  • (String)


13029
13030
13031
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13029

def name
  @name
end

#permission_group_idFixnum

ID of the permission group that this user role permission belongs to. Corresponds to the JSON property permissionGroupId

Returns:

  • (Fixnum)


13034
13035
13036
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13034

def permission_group_id
  @permission_group_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13041
13042
13043
13044
13045
13046
13047
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13041

def update!(**args)
  @availability = args[:availability] if args.key?(:availability)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @permission_group_id = args[:permission_group_id] if args.key?(:permission_group_id)
end