Class ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.AddControlRequest
Enables a Control on the specified ServingConfig. The control is added in the last position of the list of controls it belongs to (e.g. if it's a facet spec control it will be applied in the last position of servingConfig.facetSpecIds) Returns a ALREADY_EXISTS error if the control has already been applied. Returns a FAILED_PRECONDITION error if the addition could exceed maximum number of control allowed for that type of control.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudRetail.v2beta
Assembly: Google.Apis.CloudRetail.v2beta.dll
Syntax
public class ProjectsResource.LocationsResource.CatalogsResource.ServingConfigsResource.AddControlRequest : CloudRetailBaseServiceRequest<GoogleCloudRetailV2betaServingConfig>, IClientServiceRequest<GoogleCloudRetailV2betaServingConfig>, IClientServiceRequest
Constructors
AddControlRequest(IClientService, GoogleCloudRetailV2betaAddControlRequest, string)
Constructs a new AddControl request.
Declaration
public AddControlRequest(IClientService service, GoogleCloudRetailV2betaAddControlRequest body, string servingConfig)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudRetailV2betaAddControlRequest | body | |
string | servingConfig |
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
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ServingConfig
Required. The source ServingConfig resource name . Format:
projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}
Declaration
[RequestParameter("servingConfig", RequestParameterType.Path)]
public virtual string ServingConfig { get; }
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 AddControl parameter list.
Declaration
protected override void InitParameters()