Class: Google::Apis::PartnersV2::PublicProfile

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

Overview

Basic information from a public profile.

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) ⇒ PublicProfile

Returns a new instance of PublicProfile



1845
1846
1847
# File 'generated/google/apis/partners_v2/classes.rb', line 1845

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

Instance Attribute Details

#display_image_urlString

The URL to the main display image of the public profile. Being deprecated. Corresponds to the JSON property displayImageUrl

Returns:

  • (String)


1823
1824
1825
# File 'generated/google/apis/partners_v2/classes.rb', line 1823

def display_image_url
  @display_image_url
end

#display_nameString

The display name of the public profile. Corresponds to the JSON property displayName

Returns:

  • (String)


1828
1829
1830
# File 'generated/google/apis/partners_v2/classes.rb', line 1828

def display_name
  @display_name
end

#idString

The ID which can be used to retrieve more details about the public profile. Corresponds to the JSON property id

Returns:

  • (String)


1833
1834
1835
# File 'generated/google/apis/partners_v2/classes.rb', line 1833

def id
  @id
end

#profile_imageString

The URL to the main profile image of the public profile. Corresponds to the JSON property profileImage

Returns:

  • (String)


1838
1839
1840
# File 'generated/google/apis/partners_v2/classes.rb', line 1838

def profile_image
  @profile_image
end

#urlString

The URL of the public profile. Corresponds to the JSON property url

Returns:

  • (String)


1843
1844
1845
# File 'generated/google/apis/partners_v2/classes.rb', line 1843

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1850
1851
1852
1853
1854
1855
1856
# File 'generated/google/apis/partners_v2/classes.rb', line 1850

def update!(**args)
  @display_image_url = args[:display_image_url] if args.key?(:display_image_url)
  @display_name = args[:display_name] if args.key?(:display_name)
  @id = args[:id] if args.key?(:id)
  @profile_image = args[:profile_image] if args.key?(:profile_image)
  @url = args[:url] if args.key?(:url)
end