Class ProjectsResource.LocationsResource.CollectionsResource.EnginesResource.ServingConfigsResource.CreateRequest
Creates a ServingConfig. Note: The Google Cloud console works only with the default serving config. Additional ServingConfigs can be created and managed only via the API. A maximum of 100 ServingConfigs are allowed in an Engine, otherwise a RESOURCE_EXHAUSTED error is returned.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.DiscoveryEngine.v1alpha
Assembly: Google.Apis.DiscoveryEngine.v1alpha.dll
Syntax
public class ProjectsResource.LocationsResource.CollectionsResource.EnginesResource.ServingConfigsResource.CreateRequest : DiscoveryEngineBaseServiceRequest<GoogleCloudDiscoveryengineV1alphaServingConfig>, IClientServiceRequest<GoogleCloudDiscoveryengineV1alphaServingConfig>, IClientServiceRequest
Constructors
CreateRequest(IClientService, GoogleCloudDiscoveryengineV1alphaServingConfig, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, GoogleCloudDiscoveryengineV1alphaServingConfig body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GoogleCloudDiscoveryengineV1alphaServingConfig | 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. Full resource name of parent. Format:
projects/{project}/locations/{location}/collections/{collection}/engines/{engine}
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
ServingConfigId
Required. The ID to use for the ServingConfig, which will become the final component of the ServingConfig's resource name. This value should be 4-63 characters, and valid characters are /a-zA-Z0-9+/.
Declaration
[RequestParameter("servingConfigId", RequestParameterType.Query)]
public virtual string ServingConfigId { 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()