Class PhotoResource.CreateRequest
After the client finishes uploading the photo with the returned UploadRef, CreatePhoto publishes the
uploaded Photo to Street View on Google Maps. Currently, the only way to set heading, pitch, and roll in
CreatePhoto is through the Photo Sphere XMP
metadata in the photo bytes. CreatePhoto
ignores the pose.heading
, pose.pitch
, pose.roll
, pose.altitude
, and pose.level
fields in Pose.
This method returns the following error codes: * google.rpc.Code.INVALID_ARGUMENT if the request is
malformed or if the uploaded photo is not a 360 photo. * google.rpc.Code.NOT_FOUND if the upload reference
does not exist. * google.rpc.Code.RESOURCE_EXHAUSTED if the account has reached the storage limit.
Inheritance
Inherited Members
Namespace: Google.Apis.StreetViewPublish.v1
Assembly: Google.Apis.StreetViewPublish.v1.dll
Syntax
public class PhotoResource.CreateRequest : StreetViewPublishBaseServiceRequest<Photo>, IClientServiceRequest<Photo>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Photo)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Photo body)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Photo | body |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()