Class: Google::Apis::DfareportingV2_6::UserProfile

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


11305
11306
11307
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11305

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)

11268
11269
11270
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11268

def 
  @account_id
end

#account_nameString

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

Returns:

  • (String)

11273
11274
11275
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11273

def 
  @account_name
end

#etagString

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

Returns:

  • (String)

11278
11279
11280
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11278

def etag
  @etag
end

#kindString

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

Returns:

  • (String)

11283
11284
11285
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11283

def kind
  @kind
end

#profile_idString

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

Returns:

  • (String)

11288
11289
11290
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11288

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)

11293
11294
11295
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11293

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)

11298
11299
11300
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11298

def 
  @sub_account_name
end

#user_nameString

The user name. Corresponds to the JSON property userName

Returns:

  • (String)

11303
11304
11305
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11303

def user_name
  @user_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 11310

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