Show / Hide Table of Contents

Class PhotoResource.UpdateRequest

Updates the metadata of a Photo, such as pose, place association, connections, etc. Changing the pixels of a photo is not supported. Only the fields specified in the updateMask field are used. If updateMask is not present, the update applies to all fields. This method returns the following error codes: * google.rpc.Code.PERMISSION_DENIED if the requesting user did not create the requested photo. * google.rpc.Code.INVALID_ARGUMENT if the request is malformed. * google.rpc.Code.NOT_FOUND if the requested photo does not exist. * google.rpc.Code.UNAVAILABLE if the requested Photo is still being indexed.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<Photo>
StreetViewPublishBaseServiceRequest<Photo>
PhotoResource.UpdateRequest
Implements
IClientServiceRequest<Photo>
IClientServiceRequest
Inherited Members
StreetViewPublishBaseServiceRequest<Photo>.Xgafv
StreetViewPublishBaseServiceRequest<Photo>.AccessToken
StreetViewPublishBaseServiceRequest<Photo>.Alt
StreetViewPublishBaseServiceRequest<Photo>.Callback
StreetViewPublishBaseServiceRequest<Photo>.Fields
StreetViewPublishBaseServiceRequest<Photo>.Key
StreetViewPublishBaseServiceRequest<Photo>.OauthToken
StreetViewPublishBaseServiceRequest<Photo>.PrettyPrint
StreetViewPublishBaseServiceRequest<Photo>.QuotaUser
StreetViewPublishBaseServiceRequest<Photo>.UploadType
StreetViewPublishBaseServiceRequest<Photo>.UploadProtocol
ClientServiceRequest<Photo>.Execute()
ClientServiceRequest<Photo>.ExecuteAsStream()
ClientServiceRequest<Photo>.ExecuteAsync()
ClientServiceRequest<Photo>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Photo>.ExecuteAsStreamAsync()
ClientServiceRequest<Photo>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Photo>.CreateRequest(bool?)
ClientServiceRequest<Photo>.GenerateRequestUri()
ClientServiceRequest<Photo>.GetDefaultETagAction(string)
ClientServiceRequest<Photo>.ETagAction
ClientServiceRequest<Photo>.ModifyRequest
ClientServiceRequest<Photo>.ValidateParameters
ClientServiceRequest<Photo>.ApiVersion
ClientServiceRequest<Photo>.RequestParameters
ClientServiceRequest<Photo>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.StreetViewPublish.v1
Assembly: Google.Apis.StreetViewPublish.v1.dll
Syntax
public class PhotoResource.UpdateRequest : StreetViewPublishBaseServiceRequest<Photo>, IClientServiceRequest<Photo>, IClientServiceRequest

Constructors

UpdateRequest(IClientService, Photo, string)

Constructs a new Update request.

Declaration
public UpdateRequest(IClientService service, Photo body, string id)
Parameters
Type Name Description
IClientService service
Photo body
string id

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.StreetViewPublish.v1.Data.Photo>.HttpMethod

Id

A unique identifier for a photo.

Declaration
[RequestParameter("id", RequestParameterType.Path)]
public virtual string Id { get; }
Property Value
Type Description
string

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.StreetViewPublish.v1.Data.Photo>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.StreetViewPublish.v1.Data.Photo>.RestPath

UpdateMask

Required. Mask that identifies fields on the photo metadata to update. If not present, the old Photo metadata is entirely replaced with the new Photo metadata in this request. The update fails if invalid fields are specified. Multiple fields can be specified in a comma-delimited list. The following fields are valid: * pose.heading * pose.lat_lng_pair * pose.pitch * pose.roll * pose.level * pose.altitude * connections * places &gt; Note: When updateMask contains repeated fields, the entire set of repeated values get replaced with the new contents. For example, if updateMask contains connections and UpdatePhotoRequest.photo.connections is empty, all connections are removed.

Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type Description
object

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.StreetViewPublish.v1.Data.Photo>.GetBody()

InitParameters()

Initializes Update parameter list.

Declaration
protected override void InitParameters()
Overrides
StreetViewPublishBaseServiceRequest<Photo>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX