Class: Google::Apis::DfareportingV2_7::UserRolePermission

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

Overview

Contains properties of a user role permission.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserRolePermission

Returns a new instance of UserRolePermission



11607
11608
11609
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 11607

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)


11584
11585
11586
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 11584

def availability
  @availability
end

#idFixnum

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

Returns:

  • (Fixnum)


11589
11590
11591
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 11589

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)


11595
11596
11597
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 11595

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


11600
11601
11602
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 11600

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)


11605
11606
11607
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 11605

def permission_group_id
  @permission_group_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11612
11613
11614
11615
11616
11617
11618
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 11612

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