Class: MicrosoftGraph::Me::Photo::PhotoRequestBuilder::PhotoRequestBuilderGetQueryParameters

Inherits:
Object
  • Object
show all
Defined in:
lib/me/photo/photo_request_builder.rb

Overview

Get the specified profilePhoto or its metadata (profilePhoto properties). The supported sizes of HD photos on Microsoft 365 are as follows: 48x48, 64x64, 96x96, 120x120, 240x240,360x360, 432x432, 504x504, and 648x648. Photos can be any dimension if they are stored in Azure Active Directory. You can get the metadata of the largest available photo, or specify a size to get the metadata for that photo size.If the size you request is not available, you can still get a smaller size that the user has uploaded and made available.For example, if the user uploads a photo that is 504x504 pixels, all but the 648x648 size of photo will be available for download.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#selectObject

Select properties to be returned



135
136
137
# File 'lib/me/photo/photo_request_builder.rb', line 135

def select
  @select
end

Instance Method Details

#get_query_parameter(original_name) ⇒ Object

Maps the query parameters names to their encoded names for the URI template parsing.

Parameters:

  • original_name

    The original query parameter name in the class.

Returns:

  • a string

Raises:

  • (StandardError)


141
142
143
144
145
146
147
148
149
# File 'lib/me/photo/photo_request_builder.rb', line 141

def get_query_parameter(original_name)
    raise StandardError, 'original_name cannot be null' if original_name.nil?
    case original_name
        when "select"
            return "%24select"
        else
            return original_name
    end
end