Class ProjectsResource.LocationsResource.ProductSetsResource.CreateRequest
Creates and returns a new ProductSet resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters.
Inheritance
System.Object
ProjectsResource.LocationsResource.ProductSetsResource.CreateRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Vision.v1
Assembly: Google.Apis.Vision.v1.dll
Syntax
public class CreateRequest : VisionBaseServiceRequest<ProductSet>, IClientServiceRequest<ProductSet>, IClientServiceRequest
Constructors
CreateRequest(IClientService, ProductSet, String)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, ProductSet body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| ProductSet | body | |
| System.String | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Vision.v1.Data.ProductSet>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Vision.v1.Data.ProductSet>.MethodName
Parent
Required. The project in which the ProductSet 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 |
|---|---|
| System.String |
ProductSetId
A user-supplied resource id for this ProductSet. 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("productSetId", RequestParameterType.Query)]
public virtual string ProductSetId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Vision.v1.Data.ProductSet>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| System.Object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Vision.v1.Data.ProductSet>.GetBody()
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Vision.v1.VisionBaseServiceRequest<Google.Apis.Vision.v1.Data.ProductSet>.InitParameters()