Googly. CloudVision. Projects. Locations. ProductSets
(googly_cloud_vision v0.1.0)
Copy Markdown
View Source
Endpoints for the Projects.Locations.ProductSets resource.
Summary
Functions
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.
Creates and returns a new ProductSet resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters.
Permanently deletes a ProductSet. Products and ReferenceImages in the ProductSet are not deleted. The actual image files are not deleted from Google Cloud Storage.
Gets information associated with a ProductSet. Possible errors: * Returns NOT_FOUND if the ProductSet does not exist.
Asynchronous API that imports a list of reference images to specified product sets based on a list of image information. The google.longrunning.Operation API can be used to keep track of the progress and results of the request. Operation.metadata contains BatchOperationMetadata. (progress) Operation.response contains ImportProductSetsResponse. (results) The input source of this method is a csv file on Google Cloud Storage. For the format of the csv file please see ImportProductSetsGcsSource.csv_file_uri.
Lists ProductSets in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1.
Makes changes to a ProductSet resource. Only display_name can be updated currently. Possible errors: Returns NOT_FOUND if the ProductSet does not exist. Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the request or longer than 4096 characters.
Removes a Product from the specified ProductSet.
Functions
@spec add_product( String.t(), keyword() ) :: {:ok, Googly.CloudVision.Model.Empty.t()} | {:error, term()}
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.
Parameters
-
name(type:String.t()) - Required. The resource name for the ProductSet to modify. Format is:projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID -
opts(type:keyword()) - Query and call options (:token, plus any of the below)-
access_token(type:String.t()) - OAuth access token. -
alt(type:String.t()) - Data format for response. -
callback(type:String.t()) - JSONP -
fields(type:String.t()) - Selector specifying which fields to include in a partial response. -
key(type:String.t()) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
oauth_token(type:String.t()) - OAuth 2.0 token for the current user. -
pretty_print(type:boolean()) - Returns response with indentations and line breaks. -
quota_user(type:String.t()) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
upload_protocol(type:String.t()) - Upload protocol for media (e.g. "raw", "multipart"). -
upload_type(type:String.t()) - Legacy upload protocol for media (e.g. "media", "multipart"). -
xgafv(type:String.t()) - V1 error format. -
body(type:Googly.CloudVision.Model.AddProductToProductSetRequest.t()) -
-
Returns
-
{:ok, %Googly.CloudVision.Model.Empty{}}on success -
{:error, %Googly.CloudVision.Error{}}on failure
@spec create( String.t(), keyword() ) :: {:ok, Googly.CloudVision.Model.ProductSet.t()} | {:error, term()}
Creates and returns a new ProductSet resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters.
Parameters
-
parent(type:String.t()) - Required. The project in which the ProductSet should be created. Format isprojects/PROJECT_ID/locations/LOC_ID. -
opts(type:keyword()) - Query and call options (:token, plus any of the below)-
access_token(type:String.t()) - OAuth access token. -
alt(type:String.t()) - Data format for response. -
callback(type:String.t()) - JSONP -
fields(type:String.t()) - Selector specifying which fields to include in a partial response. -
key(type:String.t()) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
oauth_token(type:String.t()) - OAuth 2.0 token for the current user. -
pretty_print(type:boolean()) - Returns response with indentations and line breaks. -
quota_user(type:String.t()) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
upload_protocol(type:String.t()) - Upload protocol for media (e.g. "raw", "multipart"). -
upload_type(type:String.t()) - Legacy upload protocol for media (e.g. "media", "multipart"). -
xgafv(type:String.t()) - V1 error format. -
product_set_id(type:String.t()) - 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/. -
body(type:Googly.CloudVision.Model.ProductSet.t()) -
-
Returns
-
{:ok, %Googly.CloudVision.Model.ProductSet{}}on success -
{:error, %Googly.CloudVision.Error{}}on failure
@spec delete( String.t(), keyword() ) :: {:ok, Googly.CloudVision.Model.Empty.t()} | {:error, term()}
Permanently deletes a ProductSet. Products and ReferenceImages in the ProductSet are not deleted. The actual image files are not deleted from Google Cloud Storage.
Parameters
-
name(type:String.t()) - Required. Resource name of the ProductSet to delete. Format is:projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID -
opts(type:keyword()) - Query and call options (:token, plus any of the below)-
access_token(type:String.t()) - OAuth access token. -
alt(type:String.t()) - Data format for response. -
callback(type:String.t()) - JSONP -
fields(type:String.t()) - Selector specifying which fields to include in a partial response. -
key(type:String.t()) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
oauth_token(type:String.t()) - OAuth 2.0 token for the current user. -
pretty_print(type:boolean()) - Returns response with indentations and line breaks. -
quota_user(type:String.t()) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
upload_protocol(type:String.t()) - Upload protocol for media (e.g. "raw", "multipart"). -
upload_type(type:String.t()) - Legacy upload protocol for media (e.g. "media", "multipart"). -
xgafv(type:String.t()) - V1 error format.
-
Returns
-
{:ok, %Googly.CloudVision.Model.Empty{}}on success -
{:error, %Googly.CloudVision.Error{}}on failure
@spec get( String.t(), keyword() ) :: {:ok, Googly.CloudVision.Model.ProductSet.t()} | {:error, term()}
Gets information associated with a ProductSet. Possible errors: * Returns NOT_FOUND if the ProductSet does not exist.
Parameters
-
name(type:String.t()) - Required. Resource name of the ProductSet to get. Format is:projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID -
opts(type:keyword()) - Query and call options (:token, plus any of the below)-
access_token(type:String.t()) - OAuth access token. -
alt(type:String.t()) - Data format for response. -
callback(type:String.t()) - JSONP -
fields(type:String.t()) - Selector specifying which fields to include in a partial response. -
key(type:String.t()) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
oauth_token(type:String.t()) - OAuth 2.0 token for the current user. -
pretty_print(type:boolean()) - Returns response with indentations and line breaks. -
quota_user(type:String.t()) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
upload_protocol(type:String.t()) - Upload protocol for media (e.g. "raw", "multipart"). -
upload_type(type:String.t()) - Legacy upload protocol for media (e.g. "media", "multipart"). -
xgafv(type:String.t()) - V1 error format.
-
Returns
-
{:ok, %Googly.CloudVision.Model.ProductSet{}}on success -
{:error, %Googly.CloudVision.Error{}}on failure
@spec import( String.t(), keyword() ) :: {:ok, Googly.CloudVision.Model.Operation.t()} | {:error, term()}
Asynchronous API that imports a list of reference images to specified product sets based on a list of image information. The google.longrunning.Operation API can be used to keep track of the progress and results of the request. Operation.metadata contains BatchOperationMetadata. (progress) Operation.response contains ImportProductSetsResponse. (results) The input source of this method is a csv file on Google Cloud Storage. For the format of the csv file please see ImportProductSetsGcsSource.csv_file_uri.
Parameters
-
parent(type:String.t()) - Required. The project in which the ProductSets should be imported. Format isprojects/PROJECT_ID/locations/LOC_ID. -
opts(type:keyword()) - Query and call options (:token, plus any of the below)-
access_token(type:String.t()) - OAuth access token. -
alt(type:String.t()) - Data format for response. -
callback(type:String.t()) - JSONP -
fields(type:String.t()) - Selector specifying which fields to include in a partial response. -
key(type:String.t()) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
oauth_token(type:String.t()) - OAuth 2.0 token for the current user. -
pretty_print(type:boolean()) - Returns response with indentations and line breaks. -
quota_user(type:String.t()) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
upload_protocol(type:String.t()) - Upload protocol for media (e.g. "raw", "multipart"). -
upload_type(type:String.t()) - Legacy upload protocol for media (e.g. "media", "multipart"). -
xgafv(type:String.t()) - V1 error format. -
body(type:Googly.CloudVision.Model.ImportProductSetsRequest.t()) -
-
Returns
-
{:ok, %Googly.CloudVision.Model.Operation{}}on success -
{:error, %Googly.CloudVision.Error{}}on failure
@spec list( String.t(), keyword() ) :: {:ok, Googly.CloudVision.Model.ListProductSetsResponse.t()} | {:error, term()}
Lists ProductSets in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1.
Parameters
-
parent(type:String.t()) - Required. The project from which ProductSets should be listed. Format isprojects/PROJECT_ID/locations/LOC_ID. -
opts(type:keyword()) - Query and call options (:token, plus any of the below)-
access_token(type:String.t()) - OAuth access token. -
alt(type:String.t()) - Data format for response. -
callback(type:String.t()) - JSONP -
fields(type:String.t()) - Selector specifying which fields to include in a partial response. -
key(type:String.t()) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
oauth_token(type:String.t()) - OAuth 2.0 token for the current user. -
pretty_print(type:boolean()) - Returns response with indentations and line breaks. -
quota_user(type:String.t()) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
upload_protocol(type:String.t()) - Upload protocol for media (e.g. "raw", "multipart"). -
upload_type(type:String.t()) - Legacy upload protocol for media (e.g. "media", "multipart"). -
xgafv(type:String.t()) - V1 error format. -
page_size(type:integer()) - The maximum number of items to return. Default 10, maximum 100. -
page_token(type:String.t()) - The next_page_token returned from a previous List request, if any.
-
Returns
-
{:ok, %Googly.CloudVision.Model.ListProductSetsResponse{}}on success -
{:error, %Googly.CloudVision.Error{}}on failure
@spec patch( String.t(), keyword() ) :: {:ok, Googly.CloudVision.Model.ProductSet.t()} | {:error, term()}
Makes changes to a ProductSet resource. Only display_name can be updated currently. Possible errors: Returns NOT_FOUND if the ProductSet does not exist. Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the request or longer than 4096 characters.
Parameters
-
name(type:String.t()) - The resource name of the ProductSet. Format is:projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID. This field is ignored when creating a ProductSet. -
opts(type:keyword()) - Query and call options (:token, plus any of the below)-
access_token(type:String.t()) - OAuth access token. -
alt(type:String.t()) - Data format for response. -
callback(type:String.t()) - JSONP -
fields(type:String.t()) - Selector specifying which fields to include in a partial response. -
key(type:String.t()) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
oauth_token(type:String.t()) - OAuth 2.0 token for the current user. -
pretty_print(type:boolean()) - Returns response with indentations and line breaks. -
quota_user(type:String.t()) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
upload_protocol(type:String.t()) - Upload protocol for media (e.g. "raw", "multipart"). -
upload_type(type:String.t()) - Legacy upload protocol for media (e.g. "media", "multipart"). -
xgafv(type:String.t()) - V1 error format. -
update_mask(type:String.t()) - The FieldMask that specifies which fields to update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask path isdisplay_name. -
body(type:Googly.CloudVision.Model.ProductSet.t()) -
-
Returns
-
{:ok, %Googly.CloudVision.Model.ProductSet{}}on success -
{:error, %Googly.CloudVision.Error{}}on failure
@spec remove_product( String.t(), keyword() ) :: {:ok, Googly.CloudVision.Model.Empty.t()} | {:error, term()}
Removes a Product from the specified ProductSet.
Parameters
-
name(type:String.t()) - Required. The resource name for the ProductSet to modify. Format is:projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID -
opts(type:keyword()) - Query and call options (:token, plus any of the below)-
access_token(type:String.t()) - OAuth access token. -
alt(type:String.t()) - Data format for response. -
callback(type:String.t()) - JSONP -
fields(type:String.t()) - Selector specifying which fields to include in a partial response. -
key(type:String.t()) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
oauth_token(type:String.t()) - OAuth 2.0 token for the current user. -
pretty_print(type:boolean()) - Returns response with indentations and line breaks. -
quota_user(type:String.t()) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
upload_protocol(type:String.t()) - Upload protocol for media (e.g. "raw", "multipart"). -
upload_type(type:String.t()) - Legacy upload protocol for media (e.g. "media", "multipart"). -
xgafv(type:String.t()) - V1 error format. -
body(type:Googly.CloudVision.Model.RemoveProductFromProductSetRequest.t()) -
-
Returns
-
{:ok, %Googly.CloudVision.Model.Empty{}}on success -
{:error, %Googly.CloudVision.Error{}}on failure