Class: Google::Apis::DfareportingV3_1::UserProfile

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



11836
11837
11838
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11836

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)


11799
11800
11801
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11799

def 
  @account_id
end

#account_nameString

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

Returns:

  • (String)


11804
11805
11806
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11804

def 
  @account_name
end

#etagString

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

Returns:

  • (String)


11809
11810
11811
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11809

def etag
  @etag
end

#kindString

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

Returns:

  • (String)


11814
11815
11816
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11814

def kind
  @kind
end

#profile_idFixnum

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

Returns:

  • (Fixnum)


11819
11820
11821
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11819

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)


11824
11825
11826
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11824

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)


11829
11830
11831
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11829

def 
  @sub_account_name
end

#user_nameString

The user name. Corresponds to the JSON property userName

Returns:

  • (String)


11834
11835
11836
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11834

def user_name
  @user_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
# File 'generated/google/apis/dfareporting_v3_1/classes.rb', line 11841

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