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
LocationsResource.QuestionsResource.AnswersResource.UpsertRequest
Inherited Members
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()