Class ProjectsResource.LocationsResource.ToolsResource.CreateRequest
Creates a tool.
Inheritance
Inherited Members
Namespace: Google.Apis.Dialogflow.v2
Assembly: Google.Apis.Dialogflow.v2.dll
Syntax
public class ProjectsResource.LocationsResource.ToolsResource.CreateRequest : DialogflowBaseServiceRequest<GoogleCloudDialogflowV2Tool>, IClientServiceRequest<GoogleCloudDialogflowV2Tool>, IClientServiceRequest
Constructors
CreateRequest(IClientService, GoogleCloudDialogflowV2Tool, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, GoogleCloudDialogflowV2Tool body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GoogleCloudDialogflowV2Tool | body | |
| string | parent |
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
Parent
Required. The project/location to create tool for. Format: projects//locations/
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
ToolId
Optional. The ID to use for the tool, which will become the final component of the tool's
resource name. The tool ID must be compliant with the regression formula a-zA-Z* with the
characters length in range of [3,64]. If the field is not provide, an Id will be auto-generated.
If the field is provided, the caller is responsible for 1. the uniqueness of the ID, otherwise
the request will be rejected. 2. the consistency for whether to use custom ID or not under a
project to better ensure uniqueness.
Declaration
[RequestParameter("toolId", RequestParameterType.Query)]
public virtual string ToolId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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()