Class: Google::Apis::DfareportingV2_1::UserRolePermission

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable
Defined in:
generated/google/apis/dfareporting_v2_1/classes.rb,
generated/google/apis/dfareporting_v2_1/representations.rb,
generated/google/apis/dfareporting_v2_1/representations.rb

Overview

Contains properties of a user role permission.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserRolePermission

Returns a new instance of UserRolePermission.


10639
10640
10641
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10639

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)

10616
10617
10618
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10616

def availability
  @availability
end

#idString

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

Returns:

  • (String)

10621
10622
10623
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10621

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)

10627
10628
10629
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10627

def kind
  @kind
end

#nameString

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

Returns:

  • (String)

10632
10633
10634
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10632

def name
  @name
end

#permission_group_idString

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

Returns:

  • (String)

10637
10638
10639
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10637

def permission_group_id
  @permission_group_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


10644
10645
10646
10647
10648
10649
10650
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10644

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