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



2069
2070
2071
# File 'generated/google/apis/partners_v2/classes.rb', line 2069

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)


2067
2068
2069
# File 'generated/google/apis/partners_v2/classes.rb', line 2067

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)


2062
2063
2064
# File 'generated/google/apis/partners_v2/classes.rb', line 2062

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)


2047
2048
2049
# File 'generated/google/apis/partners_v2/classes.rb', line 2047

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)


2057
2058
2059
# File 'generated/google/apis/partners_v2/classes.rb', line 2057

def profile_image
  @profile_image
end

#urlString

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

Returns:

  • (String)


2052
2053
2054
# File 'generated/google/apis/partners_v2/classes.rb', line 2052

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2074
2075
2076
2077
2078
2079
2080
# File 'generated/google/apis/partners_v2/classes.rb', line 2074

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