Class ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.CreateRequest
Creates a ServingConfig. A maximum of 100 ServingConfigs are allowed in a Catalog, otherwise a FAILED_PRECONDITION error is returned.
Inheritance
ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.CloudRetail.v2
Assembly: Google.Apis.CloudRetail.v2.dll
Syntax
public class ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.CreateRequest : CloudRetailBaseServiceRequest<GoogleCloudRetailV2ServingConfig>, IClientServiceRequest<GoogleCloudRetailV2ServingConfig>, IClientServiceRequest
Constructors
CreateRequest(IClientService, GoogleCloudRetailV2ServingConfig, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, GoogleCloudRetailV2ServingConfig body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudRetailV2ServingConfig | 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_number}/locations/{location_id}/catalogs/{catalog_id}
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-z-_/.
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()