Class ProjectsResource.LocationsResource.ProductsResource.CreateRequest
Creates and returns a new product resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. * Returns INVALID_ARGUMENT if description is longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is missing or invalid.
Inheritance
Inherited Members
Namespace: Google.Apis.Vision.v1
Assembly: Google.Apis.Vision.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ProductsResource.CreateRequest : VisionBaseServiceRequest<Product>, IClientServiceRequest<Product>, IClientServiceRequest
Constructors
CreateRequest(IClientService, Product, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, Product body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Product | 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 in which the Product should be created. Format is
projects/PROJECT_ID/locations/LOC_ID
.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
ProductId
A user-supplied resource id for this Product. If set, the server will attempt to use this value
as the resource id. If it is already in use, an error is returned with code ALREADY_EXISTS. Must
be at most 128 characters long. It cannot contain the character /
.
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()