Class: Google::Apis::DisplayvideoV1::AssignedUserRole
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV1::AssignedUserRole
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/displayvideo_v1/classes.rb,
generated/google/apis/displayvideo_v1/representations.rb,
generated/google/apis/displayvideo_v1/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
-
#advertiser_id ⇒ Fixnum
The ID of the advertiser that the assigend user role applies to.
-
#assigned_user_role_id ⇒ String
Output only.
-
#partner_id ⇒ Fixnum
The ID of the partner that the assigned user role applies to.
-
#user_role ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AssignedUserRole
constructor
A new instance of AssignedUserRole.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AssignedUserRole
Returns a new instance of AssignedUserRole.
1026 1027 1028 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1026 def initialize(**args) update!(**args) end |
Instance Attribute Details
#advertiser_id ⇒ Fixnum
The ID of the advertiser that the assigend user role applies to.
Corresponds to the JSON property advertiserId
1009 1010 1011 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1009 def advertiser_id @advertiser_id end |
#assigned_user_role_id ⇒ String
Output only. The ID of the assigned user role.
Corresponds to the JSON property assignedUserRoleId
1014 1015 1016 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1014 def assigned_user_role_id @assigned_user_role_id end |
#partner_id ⇒ Fixnum
The ID of the partner that the assigned user role applies to.
Corresponds to the JSON property partnerId
1019 1020 1021 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1019 def partner_id @partner_id end |
#user_role ⇒ String
Required. The user role to assign to a user for the entity.
Corresponds to the JSON property userRole
1024 1025 1026 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1024 def user_role @user_role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1031 1032 1033 1034 1035 1036 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1031 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 |