Class PlacesResource.PhotosResource.GetMediaRequest
Get a photo media with a photo reference string.
Inheritance
Inherited Members
Namespace: Google.Apis.MapsPlaces.v1
Assembly: Google.Apis.MapsPlaces.v1.dll
Syntax
public class PlacesResource.PhotosResource.GetMediaRequest : MapsPlacesBaseServiceRequest<GoogleMapsPlacesV1PhotoMedia>, IClientServiceRequest<GoogleMapsPlacesV1PhotoMedia>, IClientServiceRequest
Constructors
GetMediaRequest(IClientService, string)
Constructs a new GetMedia request.
Declaration
public GetMediaRequest(IClientService service, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MaxHeightPx
Optional. Specifies the maximum desired height, in pixels, of the image. If the image is smaller than the values specified, the original image will be returned. If the image is larger in either dimension, it will be scaled to match the smaller of the two dimensions, restricted to its original aspect ratio. Both the max_height_px and max_width_px properties accept an integer between 1 and 4800, inclusively. If the value is not within the allowed range, an INVALID_ARGUMENT error will be returned. At least one of max_height_px or max_width_px needs to be specified. If neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT error will be returned.
Declaration
[RequestParameter("maxHeightPx", RequestParameterType.Query)]
public virtual int? MaxHeightPx { get; set; }
Property Value
Type | Description |
---|---|
int? |
MaxWidthPx
Optional. Specifies the maximum desired width, in pixels, of the image. If the image is smaller than the values specified, the original image will be returned. If the image is larger in either dimension, it will be scaled to match the smaller of the two dimensions, restricted to its original aspect ratio. Both the max_height_px and max_width_px properties accept an integer between 1 and 4800, inclusively. If the value is not within the allowed range, an INVALID_ARGUMENT error will be returned. At least one of max_height_px or max_width_px needs to be specified. If neither max_height_px nor max_width_px is specified, an INVALID_ARGUMENT error will be returned.
Declaration
[RequestParameter("maxWidthPx", RequestParameterType.Query)]
public virtual int? MaxWidthPx { get; set; }
Property Value
Type | Description |
---|---|
int? |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Required. The resource name of a photo media in the format:
places/{place_id}/photos/{photo_reference}/media
. The resource name of a photo as returned in a
Place object's photos.name
field comes with the format
places/{place_id}/photos/{photo_reference}
. You need to append /media
at the end of the photo
resource to get the photo media resource name.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
SkipHttpRedirect
Optional. If set, skip the default HTTP redirect behavior and render a text format (for example, in JSON format for HTTP use case) response. If not set, an HTTP redirect will be issued to redirect the call to the image media. This option is ignored for non-HTTP requests.
Declaration
[RequestParameter("skipHttpRedirect", RequestParameterType.Query)]
public virtual bool? SkipHttpRedirect { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Methods
InitParameters()
Initializes GetMedia parameter list.
Declaration
protected override void InitParameters()