Class: Google::Apis::DisplayvideoV1::User

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v1/classes.rb,
lib/google/apis/displayvideo_v1/representations.rb,
lib/google/apis/displayvideo_v1/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.



10638
10639
10640
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 10638

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

Instance Attribute Details

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

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



10615
10616
10617
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 10615

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)


10621
10622
10623
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 10621

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)


10626
10627
10628
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 10626

def email
  @email
end

#nameString

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

Returns:

  • (String)


10631
10632
10633
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 10631

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)


10636
10637
10638
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 10636

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10643
10644
10645
10646
10647
10648
10649
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 10643

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)
  @name = args[:name] if args.key?(:name)
  @user_id = args[:user_id] if args.key?(:user_id)
end