Show / Hide Table of Contents

Class LocationsResource.QuestionsResource.AnswersResource.UpsertRequest

Creates an answer or updates the existing answer written by the user for the specified question. A user can only create one answer per question.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<Answer>
MyBusinessQABaseServiceRequest<Answer>
LocationsResource.QuestionsResource.AnswersResource.UpsertRequest
Implements
IClientServiceRequest<Answer>
IClientServiceRequest
Inherited Members
MyBusinessQABaseServiceRequest<Answer>.Xgafv
MyBusinessQABaseServiceRequest<Answer>.AccessToken
MyBusinessQABaseServiceRequest<Answer>.Alt
MyBusinessQABaseServiceRequest<Answer>.Callback
MyBusinessQABaseServiceRequest<Answer>.Fields
MyBusinessQABaseServiceRequest<Answer>.Key
MyBusinessQABaseServiceRequest<Answer>.OauthToken
MyBusinessQABaseServiceRequest<Answer>.PrettyPrint
MyBusinessQABaseServiceRequest<Answer>.QuotaUser
MyBusinessQABaseServiceRequest<Answer>.UploadType
MyBusinessQABaseServiceRequest<Answer>.UploadProtocol
ClientServiceRequest<Answer>.Execute()
ClientServiceRequest<Answer>.ExecuteAsStream()
ClientServiceRequest<Answer>.ExecuteAsync()
ClientServiceRequest<Answer>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Answer>.ExecuteAsStreamAsync()
ClientServiceRequest<Answer>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Answer>.CreateRequest(bool?)
ClientServiceRequest<Answer>.GenerateRequestUri()
ClientServiceRequest<Answer>.GetDefaultETagAction(string)
ClientServiceRequest<Answer>.ETagAction
ClientServiceRequest<Answer>.ModifyRequest
ClientServiceRequest<Answer>.ValidateParameters
ClientServiceRequest<Answer>.ApiVersion
ClientServiceRequest<Answer>.RequestParameters
ClientServiceRequest<Answer>.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.MyBusinessQA.v1
Assembly: Google.Apis.MyBusinessQA.v1.dll
Syntax
public class LocationsResource.QuestionsResource.AnswersResource.UpsertRequest : MyBusinessQABaseServiceRequest<Answer>, IClientServiceRequest<Answer>, IClientServiceRequest

Constructors

UpsertRequest(IClientService, UpsertAnswerRequest, string)

Constructs a new Upsert request.

Declaration
public UpsertRequest(IClientService service, UpsertAnswerRequest body, string parent)
Parameters
Type Name Description
IClientService service
UpsertAnswerRequest body
string parent

Properties

HttpMethod

Gets the HTTP method.

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

MethodName

Gets the method name.

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

Parent

Required. The name of the question to write an answer for.

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

RestPath

Gets the REST path.

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

Methods

GetBody()

Returns the body of the request.

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

InitParameters()

Initializes Upsert parameter list.

Declaration
protected override void InitParameters()
Overrides
MyBusinessQABaseServiceRequest<Answer>.InitParameters()

Implements

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