Class: Google::Apis::DfareportingV4::UserProfile
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::UserProfile
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/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
-
#account_id ⇒ Fixnum
The account ID to which this profile belongs.
-
#account_name ⇒ String
The account name this profile belongs to.
-
#etag ⇒ String
Etag of this resource.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#profile_id ⇒ Fixnum
The unique ID of the user profile.
-
#sub_account_id ⇒ Fixnum
The sub account ID this profile belongs to if applicable.
-
#sub_account_name ⇒ String
The sub account name this profile belongs to if applicable.
-
#user_name ⇒ String
The user name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserProfile
constructor
A new instance of UserProfile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UserProfile
Returns a new instance of UserProfile.
12886 12887 12888 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12886 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ Fixnum
The account ID to which this profile belongs.
Corresponds to the JSON property accountId
12848 12849 12850 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12848 def account_id @account_id end |
#account_name ⇒ String
The account name this profile belongs to.
Corresponds to the JSON property accountName
12853 12854 12855 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12853 def account_name @account_name end |
#etag ⇒ String
Etag of this resource.
Corresponds to the JSON property etag
12858 12859 12860 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12858 def etag @etag end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#userProfile".
Corresponds to the JSON property kind
12864 12865 12866 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12864 def kind @kind end |
#profile_id ⇒ Fixnum
The unique ID of the user profile.
Corresponds to the JSON property profileId
12869 12870 12871 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12869 def profile_id @profile_id end |
#sub_account_id ⇒ Fixnum
The sub account ID this profile belongs to if applicable.
Corresponds to the JSON property subAccountId
12874 12875 12876 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12874 def sub_account_id @sub_account_id end |
#sub_account_name ⇒ String
The sub account name this profile belongs to if applicable.
Corresponds to the JSON property subAccountName
12879 12880 12881 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12879 def sub_account_name @sub_account_name end |
#user_name ⇒ String
The user name.
Corresponds to the JSON property userName
12884 12885 12886 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12884 def user_name @user_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12891 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 |