Class ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource.CreateRequest
Creates a Product.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudRetail.v2alpha
Assembly: Google.Apis.CloudRetail.v2alpha.dll
Syntax
public class ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource.CreateRequest : CloudRetailBaseServiceRequest<GoogleCloudRetailV2alphaProduct>, IClientServiceRequest<GoogleCloudRetailV2alphaProduct>, IClientServiceRequest
Constructors
CreateRequest(IClientService, GoogleCloudRetailV2alphaProduct, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, GoogleCloudRetailV2alphaProduct body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudRetailV2alphaProduct | 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 parent catalog resource name, such as
projects/*/locations/global/catalogs/default_catalog/branches/default_branch
.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
ProductId
Required. The ID to use for the Product, which will become the final component of the Product.name. If the caller does not have permission to create the Product, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. This field must be unique among all Products with the same parent. Otherwise, an ALREADY_EXISTS error is returned. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
Declaration
[RequestParameter("productId", RequestParameterType.Query)]
public virtual string ProductId { get; set; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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()