Class: Google::Apis::DfareportingV4::UserRolePermission
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::UserRolePermission
- 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
-
#availability ⇒ String
Levels of availability for a user role permission.
-
#id ⇒ Fixnum
ID of this user role permission.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#name ⇒ String
Name of this user role permission.
-
#permission_group_id ⇒ Fixnum
ID of the permission group that this user role permission belongs to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserRolePermission
constructor
A new instance of UserRolePermission.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UserRolePermission
Returns a new instance of UserRolePermission.
13030 13031 13032 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13030 def initialize(**args) update!(**args) end |
Instance Attribute Details
#availability ⇒ String
Levels of availability for a user role permission.
Corresponds to the JSON property availability
13007 13008 13009 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13007 def availability @availability end |
#id ⇒ Fixnum
ID of this user role permission.
Corresponds to the JSON property id
13012 13013 13014 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13012 def id @id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#userRolePermission".
Corresponds to the JSON property kind
13018 13019 13020 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13018 def kind @kind end |
#name ⇒ String
Name of this user role permission.
Corresponds to the JSON property name
13023 13024 13025 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13023 def name @name end |
#permission_group_id ⇒ Fixnum
ID of the permission group that this user role permission belongs to.
Corresponds to the JSON property permissionGroupId
13028 13029 13030 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13028 def @permission_group_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13035 13036 13037 13038 13039 13040 13041 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13035 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 |