Class: Google::Apis::DfareportingV2_1::UserProfile

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

Overview

Represents a UserProfile resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UserProfile

Returns a new instance of UserProfile.



10490
10491
10492
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10490

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)


10453
10454
10455
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10453

def 
  @account_id
end

#account_nameString

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

Returns:

  • (String)


10458
10459
10460
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10458

def 
  @account_name
end

#etagString

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

Returns:

  • (String)


10463
10464
10465
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10463

def etag
  @etag
end

#kindString

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

Returns:

  • (String)


10468
10469
10470
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10468

def kind
  @kind
end

#profile_idString

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

Returns:

  • (String)


10473
10474
10475
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10473

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)


10478
10479
10480
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10478

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)


10483
10484
10485
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10483

def 
  @sub_account_name
end

#user_nameString

The user name. Corresponds to the JSON property userName

Returns:

  • (String)


10488
10489
10490
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10488

def user_name
  @user_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 10495

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