Class: Google::Apis::DfareportingV2_3::UserProfile

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

Overview

Represents a UserProfile resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserProfile

Returns a new instance of UserProfile.


10559
10560
10561
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 10559

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

Instance Attribute Details

#account_idString

The account ID to which this profile belongs. Corresponds to the JSON property accountId

Returns:

  • (String)

10522
10523
10524
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 10522

def 
  @account_id
end

#account_nameString

The account name this profile belongs to. Corresponds to the JSON property accountName

Returns:

  • (String)

10527
10528
10529
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 10527

def 
  @account_name
end

#etagString

The eTag of this response for caching purposes. Corresponds to the JSON property etag

Returns:

  • (String)

10532
10533
10534
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 10532

def etag
  @etag
end

#kindString

The kind of resource this is, in this case dfareporting#userProfile. Corresponds to the JSON property kind

Returns:

  • (String)

10537
10538
10539
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 10537

def kind
  @kind
end

#profile_idString

The unique ID of the user profile. Corresponds to the JSON property profileId

Returns:

  • (String)

10542
10543
10544
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 10542

def profile_id
  @profile_id
end

#sub_account_idString

The sub account ID this profile belongs to if applicable. Corresponds to the JSON property subAccountId

Returns:

  • (String)

10547
10548
10549
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 10547

def 
  @sub_account_id
end

#sub_account_nameString

The sub account name this profile belongs to if applicable. Corresponds to the JSON property subAccountName

Returns:

  • (String)

10552
10553
10554
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 10552

def 
  @sub_account_name
end

#user_nameString

The user name. Corresponds to the JSON property userName

Returns:

  • (String)

10557
10558
10559
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 10557

def user_name
  @user_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 10564

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @account_name = args[:account_name] if args.key?(:account_name)
  @etag = args[:etag] if args.key?(:etag)
  @kind = args[:kind] if args.key?(:kind)
  @profile_id = args[:profile_id] if args.key?(:profile_id)
  @sub_account_id = args[:sub_account_id] if args.key?(:sub_account_id)
  @sub_account_name = args[:sub_account_name] if args.key?(:sub_account_name)
  @user_name = args[:user_name] if args.key?(:user_name)
end