Class ProjectsResource.LocationsResource.ProductsResource.PurgeRequest
Asynchronous API to delete all Products in a ProductSet or all Products that are in no ProductSet.
If a Product is a member of the specified ProductSet in addition to other ProductSets, the Product
will still be deleted. It is recommended to not delete the specified ProductSet until after this
operation has completed. It is also recommended to not add any of the Products involved in the batch
delete to a new ProductSet while this operation is running because those Products may still end up
deleted. It's not possible to undo the PurgeProducts operation. Therefore, it is recommended to keep
the csv files used in ImportProductSets (if that was how you originally built the Product Set)
before starting PurgeProducts, in case you need to re-import the data after deletion. If the plan is
to purge all of the Products from a ProductSet and then re-use the empty ProductSet to re-import new
Products into the empty ProductSet, you must wait until the PurgeProducts operation has finished for
that ProductSet. The google.longrunning.Operation API can be used to keep track of the progress and
results of the request. Operation.metadata
contains BatchOperationMetadata
. (progress)
Inheritance
Inherited Members
Namespace: Google.Apis.Vision.v1
Assembly: Google.Apis.Vision.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ProductsResource.PurgeRequest : VisionBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
PurgeRequest(IClientService, PurgeProductsRequest, string)
Constructs a new Purge request.
Declaration
public PurgeRequest(IClientService service, PurgeProductsRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
PurgeProductsRequest | 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 and location in which the Products should be deleted. Format is
projects/PROJECT_ID/locations/LOC_ID
.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { 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 Purge parameter list.
Declaration
protected override void InitParameters()