Class: Google::Apis::DfareportingV3_5::UserProfile

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

Overview

A UserProfile resource lets you list all DFA user profiles that are associated with a Google user account. The profile_id needs to be specified in other API requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserProfile

Returns a new instance of UserProfile.



12327
12328
12329
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 12327

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

Instance Attribute Details

#account_idFixnum

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

Returns:

  • (Fixnum)


12289
12290
12291
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 12289

def 
  @account_id
end

#account_nameString

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

Returns:

  • (String)


12294
12295
12296
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 12294

def 
  @account_name
end

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


12299
12300
12301
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 12299

def etag
  @etag
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#userProfile". Corresponds to the JSON property kind

Returns:

  • (String)


12305
12306
12307
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 12305

def kind
  @kind
end

#profile_idFixnum

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

Returns:

  • (Fixnum)


12310
12311
12312
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 12310

def profile_id
  @profile_id
end

#sub_account_idFixnum

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

Returns:

  • (Fixnum)


12315
12316
12317
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 12315

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)


12320
12321
12322
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 12320

def 
  @sub_account_name
end

#user_nameString

The user name. Corresponds to the JSON property userName

Returns:

  • (String)


12325
12326
12327
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 12325

def user_name
  @user_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 12332

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