Class: Google::Apis::DisplayvideoV3::User

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

Overview

A single user in Display & Video 360.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ User

Returns a new instance of User.



12268
12269
12270
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12268

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

Instance Attribute Details

#assigned_user_rolesArray<Google::Apis::DisplayvideoV3::AssignedUserRole>

The assigned user roles. Required in CreateUser. Output only in UpdateUser. Can only be updated through BulkEditAssignedUserRoles. Corresponds to the JSON property assignedUserRoles



12240
12241
12242
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12240

def assigned_user_roles
  @assigned_user_roles
end

#display_nameString

Required. The display name of the user. Must be UTF-8 encoded with a maximum size of 240 bytes. Corresponds to the JSON property displayName

Returns:

  • (String)


12246
12247
12248
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12246

def display_name
  @display_name
end

#emailString

Required. Immutable. The email address used to identify the user. Corresponds to the JSON property email

Returns:

  • (String)


12251
12252
12253
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12251

def email
  @email
end

#last_login_timeString

Output only. The timestamp when the user last logged in DV360 UI. Corresponds to the JSON property lastLoginTime

Returns:

  • (String)


12256
12257
12258
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12256

def 
  @last_login_time
end

#nameString

Output only. The resource name of the user. Corresponds to the JSON property name

Returns:

  • (String)


12261
12262
12263
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12261

def name
  @name
end

#user_idFixnum

Output only. The unique ID of the user. Assigned by the system. Corresponds to the JSON property userId

Returns:

  • (Fixnum)


12266
12267
12268
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12266

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12273
12274
12275
12276
12277
12278
12279
12280
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 12273

def update!(**args)
  @assigned_user_roles = args[:assigned_user_roles] if args.key?(:assigned_user_roles)
  @display_name = args[:display_name] if args.key?(:display_name)
  @email = args[:email] if args.key?(:email)
  @last_login_time = args[:last_login_time] if args.key?(:last_login_time)
  @name = args[:name] if args.key?(:name)
  @user_id = args[:user_id] if args.key?(:user_id)
end