Class ProjectsResource.LocationsResource.ProductSetsResource.AddProductRequest
Adds a Product to the specified ProductSet. If the Product is already present, no change is made. One Product can be added to at most 100 ProductSets. Possible errors: * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
Inheritance
ProjectsResource.LocationsResource.ProductSetsResource.AddProductRequest
Inherited Members
Namespace: Google.Apis.Vision.v1
Assembly: Google.Apis.Vision.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ProductSetsResource.AddProductRequest : VisionBaseServiceRequest<Empty>, IClientServiceRequest<Empty>, IClientServiceRequest
Constructors
AddProductRequest(IClientService, AddProductToProductSetRequest, string)
Constructs a new AddProduct request.
Declaration
public AddProductRequest(IClientService service, AddProductToProductSetRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
AddProductToProductSetRequest | body | |
string | name |
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
Name
Required. The resource name for the ProductSet to modify. Format is:
projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
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 AddProduct parameter list.
Declaration
protected override void InitParameters()