Class: Google::Apis::PeopleV1::Photo
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PeopleV1::Photo
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/people_v1/classes.rb,
 generated/google/apis/people_v1/representations.rb,
 generated/google/apis/people_v1/representations.rb
Overview
A person's read-only photo. A picture shown next to the person's name to help others recognize the person.
Instance Attribute Summary collapse
- 
  
    
      #default  ⇒ Boolean 
    
    
      (also: #default?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    True if the photo is a default photo; false if the photo is a user-provided photo. 
- 
  
    
      #metadata  ⇒ Google::Apis::PeopleV1::FieldMetadata 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Metadata about a field. 
- 
  
    
      #url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The URL of the photo. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Photo 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Photo. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Photo
Returns a new instance of Photo
| 1752 1753 1754 | # File 'generated/google/apis/people_v1/classes.rb', line 1752 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#default ⇒ Boolean Also known as: default?
True if the photo is a default photo;
false if the photo is a user-provided photo.
Corresponds to the JSON property default
| 1736 1737 1738 | # File 'generated/google/apis/people_v1/classes.rb', line 1736 def default @default end | 
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
| 1742 1743 1744 | # File 'generated/google/apis/people_v1/classes.rb', line 1742 def @metadata end | 
#url ⇒ String
The URL of the photo. You can change the desired size by appending a query
parameter sz=size at the end of the url. Example:
https://lh3.googleusercontent.com/-T_wVWLlmg7w/AAAAAAAAAAI/AAAAAAAABa8/
00gzXvDBYqw/s100/photo.jpg?sz=50
Corresponds to the JSON property url
| 1750 1751 1752 | # File 'generated/google/apis/people_v1/classes.rb', line 1750 def url @url end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1757 1758 1759 1760 1761 | # File 'generated/google/apis/people_v1/classes.rb', line 1757 def update!(**args) @default = args[:default] if args.key?(:default) @metadata = args[:metadata] if args.key?(:metadata) @url = args[:url] if args.key?(:url) end |