Show / Hide Table of Contents

Class LocationsResource.QuestionsResource

The "questions" collection of methods.

Inheritance
object
LocationsResource.QuestionsResource
Inherited Members
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

Constructors

QuestionsResource(IClientService)

Constructs a new resource.

Declaration
public QuestionsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Answers

Gets the Answers resource.

Declaration
public virtual LocationsResource.QuestionsResource.AnswersResource Answers { get; }
Property Value
Type Description
LocationsResource.QuestionsResource.AnswersResource

Methods

Create(Question, string)

Adds a question for the specified location.

Declaration
public virtual LocationsResource.QuestionsResource.CreateRequest Create(Question body, string parent)
Parameters
Type Name Description
Question body

The body of the request.

string parent

Required. The name of the location to write a question for.

Returns
Type Description
LocationsResource.QuestionsResource.CreateRequest

Delete(string)

Deletes a specific question written by the current user.

Declaration
public virtual LocationsResource.QuestionsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the question to delete.

Returns
Type Description
LocationsResource.QuestionsResource.DeleteRequest

List(string)

Returns the paginated list of questions and some of its answers for a specified location. This operation is only valid if the specified location is verified.

Declaration
public virtual LocationsResource.QuestionsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The name of the location to fetch questions for.

Returns
Type Description
LocationsResource.QuestionsResource.ListRequest

Patch(Question, string)

Updates a specific question written by the current user.

Declaration
public virtual LocationsResource.QuestionsResource.PatchRequest Patch(Question body, string name)
Parameters
Type Name Description
Question body

The body of the request.

string name

Immutable. The unique name for the question. locations//questions/ This field will be ignored if set during question creation.

Returns
Type Description
LocationsResource.QuestionsResource.PatchRequest
In this article
Back to top Generated by DocFX