Class: Google::Apis::DisplayvideoV2::AssignedUserRole

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

Overview

A single assigned user role, which defines a user's authorized interaction with a specified partner or advertiser.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AssignedUserRole

Returns a new instance of AssignedUserRole.



1158
1159
1160
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 1158

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

Instance Attribute Details

#advertiser_idFixnum

The ID of the advertiser that the assigend user role applies to. Corresponds to the JSON property advertiserId

Returns:

  • (Fixnum)


1141
1142
1143
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 1141

def advertiser_id
  @advertiser_id
end

#assigned_user_role_idString

Output only. The ID of the assigned user role. Corresponds to the JSON property assignedUserRoleId

Returns:

  • (String)


1146
1147
1148
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 1146

def assigned_user_role_id
  @assigned_user_role_id
end

#partner_idFixnum

The ID of the partner that the assigned user role applies to. Corresponds to the JSON property partnerId

Returns:

  • (Fixnum)


1151
1152
1153
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 1151

def partner_id
  @partner_id
end

#user_roleString

Required. The user role to assign to a user for the entity. Corresponds to the JSON property userRole

Returns:

  • (String)


1156
1157
1158
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 1156

def user_role
  @user_role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1163
1164
1165
1166
1167
1168
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 1163

def update!(**args)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @assigned_user_role_id = args[:assigned_user_role_id] if args.key?(:assigned_user_role_id)
  @partner_id = args[:partner_id] if args.key?(:partner_id)
  @user_role = args[:user_role] if args.key?(:user_role)
end