func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
BaseClient is the base client for Training.
type BaseClient struct { autorest.Client Endpoint string }
func New(endpoint string) BaseClient
New creates an instance of the BaseClient client.
func NewWithoutDefaults(endpoint string) BaseClient
NewWithoutDefaults creates an instance of the BaseClient client.
func (client BaseClient) CreateImageRegions(ctx context.Context, projectID uuid.UUID, batch ImageRegionCreateBatch) (result ImageRegionCreateSummary, err error)
CreateImageRegions this API accepts a batch of image regions, and optionally tags, to update existing images with region information. There is a limit of 64 entries in the batch. If all regions are successful created, 200(OK) status code will be returned. Otherwise, 207 (Multi-Status) status code will be returned and detail status for each region will be listed in the response payload. Parameters: projectID - the project id. batch - batch of image regions which include a tag and bounding box. Limited to 64.
func (client BaseClient) CreateImageRegionsPreparer(ctx context.Context, projectID uuid.UUID, batch ImageRegionCreateBatch) (*http.Request, error)
CreateImageRegionsPreparer prepares the CreateImageRegions request.
func (client BaseClient) CreateImageRegionsResponder(resp *http.Response) (result ImageRegionCreateSummary, err error)
CreateImageRegionsResponder handles the response to the CreateImageRegions request. The method always closes the http.Response Body.
func (client BaseClient) CreateImageRegionsSender(req *http.Request) (*http.Response, error)
CreateImageRegionsSender sends the CreateImageRegions request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) CreateImageTags(ctx context.Context, projectID uuid.UUID, batch ImageTagCreateBatch) (result ImageTagCreateSummary, err error)
CreateImageTags sends the create image tags request. Parameters: projectID - the project id. batch - batch of image tags. Limited to 128 tags per batch.
func (client BaseClient) CreateImageTagsPreparer(ctx context.Context, projectID uuid.UUID, batch ImageTagCreateBatch) (*http.Request, error)
CreateImageTagsPreparer prepares the CreateImageTags request.
func (client BaseClient) CreateImageTagsResponder(resp *http.Response) (result ImageTagCreateSummary, err error)
CreateImageTagsResponder handles the response to the CreateImageTags request. The method always closes the http.Response Body.
func (client BaseClient) CreateImageTagsSender(req *http.Request) (*http.Response, error)
CreateImageTagsSender sends the CreateImageTags request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) CreateImagesFromData(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, tagIds []uuid.UUID) (result ImageCreateSummary, err error)
CreateImagesFromData this API accepts body content as multipart/form-data and application/octet-stream. When using multipart multiple image files can be sent at once, with a maximum of 64 files. If all images are successful created, 200(OK) status code will be returned. Otherwise, 207 (Multi-Status) status code will be returned and detail status for each image will be listed in the response payload. Parameters: projectID - the project id. imageData - binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 6MB. tagIds - the tags ids with which to tag each image. Limited to 20.
func (client BaseClient) CreateImagesFromDataPreparer(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, tagIds []uuid.UUID) (*http.Request, error)
CreateImagesFromDataPreparer prepares the CreateImagesFromData request.
func (client BaseClient) CreateImagesFromDataResponder(resp *http.Response) (result ImageCreateSummary, err error)
CreateImagesFromDataResponder handles the response to the CreateImagesFromData request. The method always closes the http.Response Body.
func (client BaseClient) CreateImagesFromDataSender(req *http.Request) (*http.Response, error)
CreateImagesFromDataSender sends the CreateImagesFromData request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) CreateImagesFromFiles(ctx context.Context, projectID uuid.UUID, batch ImageFileCreateBatch) (result ImageCreateSummary, err error)
CreateImagesFromFiles this API accepts a batch of files, and optionally tags, to create images. There is a limit of 64 images and 20 tags. If all images are successful created, 200(OK) status code will be returned. Otherwise, 207 (Multi-Status) status code will be returned and detail status for each image will be listed in the response payload. Parameters: projectID - the project id. batch - the batch of image files to add. Limited to 64 images and 20 tags per batch.
func (client BaseClient) CreateImagesFromFilesPreparer(ctx context.Context, projectID uuid.UUID, batch ImageFileCreateBatch) (*http.Request, error)
CreateImagesFromFilesPreparer prepares the CreateImagesFromFiles request.
func (client BaseClient) CreateImagesFromFilesResponder(resp *http.Response) (result ImageCreateSummary, err error)
CreateImagesFromFilesResponder handles the response to the CreateImagesFromFiles request. The method always closes the http.Response Body.
func (client BaseClient) CreateImagesFromFilesSender(req *http.Request) (*http.Response, error)
CreateImagesFromFilesSender sends the CreateImagesFromFiles request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) CreateImagesFromPredictions(ctx context.Context, projectID uuid.UUID, batch ImageIDCreateBatch) (result ImageCreateSummary, err error)
CreateImagesFromPredictions this API creates a batch of images from predicted images specified. There is a limit of 64 images and 20 tags. If all images are successful created, 200(OK) status code will be returned. Otherwise, 207 (Multi-Status) status code will be returned and detail status for each image will be listed in the response payload. Parameters: projectID - the project id. batch - image, tag ids, and metadata. Limited to 64 images and 20 tags per batch.
func (client BaseClient) CreateImagesFromPredictionsPreparer(ctx context.Context, projectID uuid.UUID, batch ImageIDCreateBatch) (*http.Request, error)
CreateImagesFromPredictionsPreparer prepares the CreateImagesFromPredictions request.
func (client BaseClient) CreateImagesFromPredictionsResponder(resp *http.Response) (result ImageCreateSummary, err error)
CreateImagesFromPredictionsResponder handles the response to the CreateImagesFromPredictions request. The method always closes the http.Response Body.
func (client BaseClient) CreateImagesFromPredictionsSender(req *http.Request) (*http.Response, error)
CreateImagesFromPredictionsSender sends the CreateImagesFromPredictions request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) CreateImagesFromUrls(ctx context.Context, projectID uuid.UUID, batch ImageURLCreateBatch) (result ImageCreateSummary, err error)
CreateImagesFromUrls this API accepts a batch of urls, and optionally tags, to create images. There is a limit of 64 images and 20 tags. If all images are successful created, 200(OK) status code will be returned. Otherwise, 207 (Multi-Status) status code will be returned and detail status for each image will be listed in the response payload. Parameters: projectID - the project id. batch - image urls, tag ids, and metadata. Limited to 64 images and 20 tags per batch.
func (client BaseClient) CreateImagesFromUrlsPreparer(ctx context.Context, projectID uuid.UUID, batch ImageURLCreateBatch) (*http.Request, error)
CreateImagesFromUrlsPreparer prepares the CreateImagesFromUrls request.
func (client BaseClient) CreateImagesFromUrlsResponder(resp *http.Response) (result ImageCreateSummary, err error)
CreateImagesFromUrlsResponder handles the response to the CreateImagesFromUrls request. The method always closes the http.Response Body.
func (client BaseClient) CreateImagesFromUrlsSender(req *http.Request) (*http.Response, error)
CreateImagesFromUrlsSender sends the CreateImagesFromUrls request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) CreateProject(ctx context.Context, name string, description string, domainID *uuid.UUID, classificationType string, targetExportPlatforms []string, options *CreateProjectOptions) (result Project, err error)
CreateProject sends the create project request. Parameters: name - name of the project. description - the description of the project. domainID - the id of the domain to use for this project. Defaults to General. classificationType - the type of classifier to create for this project. targetExportPlatforms - list of platforms the trained model is intending exporting to. options - additional project creation options.
func (client BaseClient) CreateProjectPreparer(ctx context.Context, name string, description string, domainID *uuid.UUID, classificationType string, targetExportPlatforms []string, options *CreateProjectOptions) (*http.Request, error)
CreateProjectPreparer prepares the CreateProject request.
func (client BaseClient) CreateProjectResponder(resp *http.Response) (result Project, err error)
CreateProjectResponder handles the response to the CreateProject request. The method always closes the http.Response Body.
func (client BaseClient) CreateProjectSender(req *http.Request) (*http.Response, error)
CreateProjectSender sends the CreateProject request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) CreateTag(ctx context.Context, projectID uuid.UUID, name string, description string, typeParameter string) (result Tag, err error)
CreateTag sends the create tag request. Parameters: projectID - the project id. name - the tag name. description - optional description for the tag. typeParameter - optional type for the tag.
func (client BaseClient) CreateTagPreparer(ctx context.Context, projectID uuid.UUID, name string, description string, typeParameter string) (*http.Request, error)
CreateTagPreparer prepares the CreateTag request.
func (client BaseClient) CreateTagResponder(resp *http.Response) (result Tag, err error)
CreateTagResponder handles the response to the CreateTag request. The method always closes the http.Response Body.
func (client BaseClient) CreateTagSender(req *http.Request) (*http.Response, error)
CreateTagSender sends the CreateTag request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) DeleteImageRegions(ctx context.Context, projectID uuid.UUID, regionIds []uuid.UUID) (result autorest.Response, err error)
DeleteImageRegions sends the delete image regions request. Parameters: projectID - the project id. regionIds - regions to delete. Limited to 64.
func (client BaseClient) DeleteImageRegionsPreparer(ctx context.Context, projectID uuid.UUID, regionIds []uuid.UUID) (*http.Request, error)
DeleteImageRegionsPreparer prepares the DeleteImageRegions request.
func (client BaseClient) DeleteImageRegionsResponder(resp *http.Response) (result autorest.Response, err error)
DeleteImageRegionsResponder handles the response to the DeleteImageRegions request. The method always closes the http.Response Body.
func (client BaseClient) DeleteImageRegionsSender(req *http.Request) (*http.Response, error)
DeleteImageRegionsSender sends the DeleteImageRegions request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) DeleteImageTags(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, tagIds []uuid.UUID) (result autorest.Response, err error)
DeleteImageTags sends the delete image tags request. Parameters: projectID - the project id. imageIds - image ids. Limited to 64 images. tagIds - tags to be deleted from the specified images. Limited to 20 tags.
func (client BaseClient) DeleteImageTagsPreparer(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, tagIds []uuid.UUID) (*http.Request, error)
DeleteImageTagsPreparer prepares the DeleteImageTags request.
func (client BaseClient) DeleteImageTagsResponder(resp *http.Response) (result autorest.Response, err error)
DeleteImageTagsResponder handles the response to the DeleteImageTags request. The method always closes the http.Response Body.
func (client BaseClient) DeleteImageTagsSender(req *http.Request) (*http.Response, error)
DeleteImageTagsSender sends the DeleteImageTags request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) DeleteImages(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, allImages *bool, allIterations *bool) (result autorest.Response, err error)
DeleteImages sends the delete images request. Parameters: projectID - the project id. imageIds - ids of the images to be deleted. Limited to 256 images per batch. allImages - flag to specify delete all images, specify this flag or a list of images. Using this flag will return a 202 response to indicate the images are being deleted. allIterations - removes these images from all iterations, not just the current workspace. Using this flag will return a 202 response to indicate the images are being deleted.
func (client BaseClient) DeleteImagesPreparer(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, allImages *bool, allIterations *bool) (*http.Request, error)
DeleteImagesPreparer prepares the DeleteImages request.
func (client BaseClient) DeleteImagesResponder(resp *http.Response) (result autorest.Response, err error)
DeleteImagesResponder handles the response to the DeleteImages request. The method always closes the http.Response Body.
func (client BaseClient) DeleteImagesSender(req *http.Request) (*http.Response, error)
DeleteImagesSender sends the DeleteImages request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) DeleteIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (result autorest.Response, err error)
DeleteIteration sends the delete iteration request. Parameters: projectID - the project id. iterationID - the iteration id.
func (client BaseClient) DeleteIterationPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (*http.Request, error)
DeleteIterationPreparer prepares the DeleteIteration request.
func (client BaseClient) DeleteIterationResponder(resp *http.Response) (result autorest.Response, err error)
DeleteIterationResponder handles the response to the DeleteIteration request. The method always closes the http.Response Body.
func (client BaseClient) DeleteIterationSender(req *http.Request) (*http.Response, error)
DeleteIterationSender sends the DeleteIteration request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) DeletePrediction(ctx context.Context, projectID uuid.UUID, ids []uuid.UUID) (result autorest.Response, err error)
DeletePrediction sends the delete prediction request. Parameters: projectID - the project id. ids - the prediction ids. Limited to 64.
func (client BaseClient) DeletePredictionPreparer(ctx context.Context, projectID uuid.UUID, ids []uuid.UUID) (*http.Request, error)
DeletePredictionPreparer prepares the DeletePrediction request.
func (client BaseClient) DeletePredictionResponder(resp *http.Response) (result autorest.Response, err error)
DeletePredictionResponder handles the response to the DeletePrediction request. The method always closes the http.Response Body.
func (client BaseClient) DeletePredictionSender(req *http.Request) (*http.Response, error)
DeletePredictionSender sends the DeletePrediction request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) DeleteProject(ctx context.Context, projectID uuid.UUID) (result autorest.Response, err error)
DeleteProject sends the delete project request. Parameters: projectID - the project id.
func (client BaseClient) DeleteProjectPreparer(ctx context.Context, projectID uuid.UUID) (*http.Request, error)
DeleteProjectPreparer prepares the DeleteProject request.
func (client BaseClient) DeleteProjectResponder(resp *http.Response) (result autorest.Response, err error)
DeleteProjectResponder handles the response to the DeleteProject request. The method always closes the http.Response Body.
func (client BaseClient) DeleteProjectSender(req *http.Request) (*http.Response, error)
DeleteProjectSender sends the DeleteProject request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) DeleteTag(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID) (result autorest.Response, err error)
DeleteTag sends the delete tag request. Parameters: projectID - the project id. tagID - id of the tag to be deleted.
func (client BaseClient) DeleteTagPreparer(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID) (*http.Request, error)
DeleteTagPreparer prepares the DeleteTag request.
func (client BaseClient) DeleteTagResponder(resp *http.Response) (result autorest.Response, err error)
DeleteTagResponder handles the response to the DeleteTag request. The method always closes the http.Response Body.
func (client BaseClient) DeleteTagSender(req *http.Request) (*http.Response, error)
DeleteTagSender sends the DeleteTag request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) ExportIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, platform string, flavor string) (result Export, err error)
ExportIteration sends the export iteration request. Parameters: projectID - the project id. iterationID - the iteration id. platform - the target platform. flavor - the flavor of the target platform.
func (client BaseClient) ExportIterationPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, platform string, flavor string) (*http.Request, error)
ExportIterationPreparer prepares the ExportIteration request.
func (client BaseClient) ExportIterationResponder(resp *http.Response) (result Export, err error)
ExportIterationResponder handles the response to the ExportIteration request. The method always closes the http.Response Body.
func (client BaseClient) ExportIterationSender(req *http.Request) (*http.Response, error)
ExportIterationSender sends the ExportIteration request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) ExportProject(ctx context.Context, projectID uuid.UUID) (result ProjectExport, err error)
ExportProject sends the export project request. Parameters: projectID - the project id of the project to export.
func (client BaseClient) ExportProjectPreparer(ctx context.Context, projectID uuid.UUID) (*http.Request, error)
ExportProjectPreparer prepares the ExportProject request.
func (client BaseClient) ExportProjectResponder(resp *http.Response) (result ProjectExport, err error)
ExportProjectResponder handles the response to the ExportProject request. The method always closes the http.Response Body.
func (client BaseClient) ExportProjectSender(req *http.Request) (*http.Response, error)
ExportProjectSender sends the ExportProject request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetArtifact(ctx context.Context, projectID uuid.UUID, pathParameter string) (result ReadCloser, err error)
GetArtifact sends the get artifact request. Parameters: projectID - the project id. pathParameter - the relative path for artifact.
func (client BaseClient) GetArtifactPreparer(ctx context.Context, projectID uuid.UUID, pathParameter string) (*http.Request, error)
GetArtifactPreparer prepares the GetArtifact request.
func (client BaseClient) GetArtifactResponder(resp *http.Response) (result ReadCloser, err error)
GetArtifactResponder handles the response to the GetArtifact request. The method always closes the http.Response Body.
func (client BaseClient) GetArtifactSender(req *http.Request) (*http.Response, error)
GetArtifactSender sends the GetArtifact request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetDomain(ctx context.Context, domainID uuid.UUID) (result Domain, err error)
GetDomain sends the get domain request. Parameters: domainID - the id of the domain to get information about.
func (client BaseClient) GetDomainPreparer(ctx context.Context, domainID uuid.UUID) (*http.Request, error)
GetDomainPreparer prepares the GetDomain request.
func (client BaseClient) GetDomainResponder(resp *http.Response) (result Domain, err error)
GetDomainResponder handles the response to the GetDomain request. The method always closes the http.Response Body.
func (client BaseClient) GetDomainSender(req *http.Request) (*http.Response, error)
GetDomainSender sends the GetDomain request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetDomains(ctx context.Context) (result ListDomain, err error)
GetDomains sends the get domains request.
func (client BaseClient) GetDomainsPreparer(ctx context.Context) (*http.Request, error)
GetDomainsPreparer prepares the GetDomains request.
func (client BaseClient) GetDomainsResponder(resp *http.Response) (result ListDomain, err error)
GetDomainsResponder handles the response to the GetDomains request. The method always closes the http.Response Body.
func (client BaseClient) GetDomainsSender(req *http.Request) (*http.Response, error)
GetDomainsSender sends the GetDomains request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetExports(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (result ListExport, err error)
GetExports sends the get exports request. Parameters: projectID - the project id. iterationID - the iteration id.
func (client BaseClient) GetExportsPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (*http.Request, error)
GetExportsPreparer prepares the GetExports request.
func (client BaseClient) GetExportsResponder(resp *http.Response) (result ListExport, err error)
GetExportsResponder handles the response to the GetExports request. The method always closes the http.Response Body.
func (client BaseClient) GetExportsSender(req *http.Request) (*http.Response, error)
GetExportsSender sends the GetExports request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetImageCount(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, taggingStatus string, filter string, tagIds []uuid.UUID) (result Int32, err error)
GetImageCount the filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and "Cat" tags, then only images tagged with Dog and/or Cat will be returned Parameters: projectID - the project id. iterationID - the iteration id. Defaults to workspace. taggingStatus - the tagging status filter. It can be 'All', 'Tagged', or 'Untagged'. Defaults to 'All'. filter - an expression to filter the images against image metadata. Only images where the expression evaluates to true are included in the response. The expression supports eq (Equal), ne (Not equal), and (Logical and), or (Logical or) operators. Here is an example, metadata=key1 eq 'value1' and key2 ne 'value2'. tagIds - a list of tags ids to filter the images to count. Defaults to all tags when null.
func (client BaseClient) GetImageCountPreparer(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, taggingStatus string, filter string, tagIds []uuid.UUID) (*http.Request, error)
GetImageCountPreparer prepares the GetImageCount request.
func (client BaseClient) GetImageCountResponder(resp *http.Response) (result Int32, err error)
GetImageCountResponder handles the response to the GetImageCount request. The method always closes the http.Response Body.
func (client BaseClient) GetImageCountSender(req *http.Request) (*http.Response, error)
GetImageCountSender sends the GetImageCount request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetImagePerformanceCount(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, tagIds []uuid.UUID) (result Int32, err error)
GetImagePerformanceCount the filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and "Cat" tags, then only images tagged with Dog and/or Cat will be returned Parameters: projectID - the project id. iterationID - the iteration id. Defaults to workspace. tagIds - a list of tags ids to filter the images to count. Defaults to all tags when null.
func (client BaseClient) GetImagePerformanceCountPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, tagIds []uuid.UUID) (*http.Request, error)
GetImagePerformanceCountPreparer prepares the GetImagePerformanceCount request.
func (client BaseClient) GetImagePerformanceCountResponder(resp *http.Response) (result Int32, err error)
GetImagePerformanceCountResponder handles the response to the GetImagePerformanceCount request. The method always closes the http.Response Body.
func (client BaseClient) GetImagePerformanceCountSender(req *http.Request) (*http.Response, error)
GetImagePerformanceCountSender sends the GetImagePerformanceCount request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetImagePerformances(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, tagIds []uuid.UUID, orderBy string, take *int32, skip *int32) (result ListImagePerformance, err error)
GetImagePerformances this API supports batching and range selection. By default it will only return first 50 images matching images. Use the {take} and {skip} parameters to control how many images to return in a given batch. The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and "Cat" tags, then only images tagged with Dog and/or Cat will be returned Parameters: projectID - the project id. iterationID - the iteration id. Defaults to workspace. tagIds - a list of tags ids to filter the images. Defaults to all tagged images when null. Limited to 20. orderBy - the ordering. Defaults to newest. take - maximum number of images to return. Defaults to 50, limited to 256. skip - number of images to skip before beginning the image batch. Defaults to 0.
func (client BaseClient) GetImagePerformancesPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, tagIds []uuid.UUID, orderBy string, take *int32, skip *int32) (*http.Request, error)
GetImagePerformancesPreparer prepares the GetImagePerformances request.
func (client BaseClient) GetImagePerformancesResponder(resp *http.Response) (result ListImagePerformance, err error)
GetImagePerformancesResponder handles the response to the GetImagePerformances request. The method always closes the http.Response Body.
func (client BaseClient) GetImagePerformancesSender(req *http.Request) (*http.Response, error)
GetImagePerformancesSender sends the GetImagePerformances request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetImageRegionProposals(ctx context.Context, projectID uuid.UUID, imageID uuid.UUID) (result ImageRegionProposal, err error)
GetImageRegionProposals this API will get region proposals for an image along with confidences for the region. It returns an empty array if no proposals are found. Parameters: projectID - the project id. imageID - the image id.
func (client BaseClient) GetImageRegionProposalsPreparer(ctx context.Context, projectID uuid.UUID, imageID uuid.UUID) (*http.Request, error)
GetImageRegionProposalsPreparer prepares the GetImageRegionProposals request.
func (client BaseClient) GetImageRegionProposalsResponder(resp *http.Response) (result ImageRegionProposal, err error)
GetImageRegionProposalsResponder handles the response to the GetImageRegionProposals request. The method always closes the http.Response Body.
func (client BaseClient) GetImageRegionProposalsSender(req *http.Request) (*http.Response, error)
GetImageRegionProposalsSender sends the GetImageRegionProposals request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetImages(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, tagIds []uuid.UUID, taggingStatus string, filter string, orderBy string, take *int32, skip *int32) (result ListImage, err error)
GetImages this API supports batching and range selection. By default it will only return first 50 images matching images. Use the {take} and {skip} parameters to control how many images to return in a given batch. The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and "Cat" tags, then only images tagged with Dog and/or Cat will be returned Parameters: projectID - the project id. iterationID - the iteration id. Defaults to workspace. tagIds - a list of tags ids to filter the images. Defaults to all tagged images when null. Limited to 20. taggingStatus - the tagging status filter. It can be 'All', 'Tagged', or 'Untagged'. Defaults to 'All'. filter - an expression to filter the images against image metadata. Only images where the expression evaluates to true are included in the response. The expression supports eq (Equal), ne (Not equal), and (Logical and), or (Logical or) operators. Here is an example, metadata=key1 eq 'value1' and key2 ne 'value2'. orderBy - the ordering. Defaults to newest. take - maximum number of images to return. Defaults to 50, limited to 256. skip - number of images to skip before beginning the image batch. Defaults to 0.
func (client BaseClient) GetImagesByIds(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, iterationID *uuid.UUID) (result ListImage, err error)
GetImagesByIds this API will return a set of Images for the specified tags and optionally iteration. If no iteration is specified the current workspace is used. Parameters: projectID - the project id. imageIds - the list of image ids to retrieve. Limited to 256. iterationID - the iteration id. Defaults to workspace.
func (client BaseClient) GetImagesByIdsPreparer(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, iterationID *uuid.UUID) (*http.Request, error)
GetImagesByIdsPreparer prepares the GetImagesByIds request.
func (client BaseClient) GetImagesByIdsResponder(resp *http.Response) (result ListImage, err error)
GetImagesByIdsResponder handles the response to the GetImagesByIds request. The method always closes the http.Response Body.
func (client BaseClient) GetImagesByIdsSender(req *http.Request) (*http.Response, error)
GetImagesByIdsSender sends the GetImagesByIds request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetImagesPreparer(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, tagIds []uuid.UUID, taggingStatus string, filter string, orderBy string, take *int32, skip *int32) (*http.Request, error)
GetImagesPreparer prepares the GetImages request.
func (client BaseClient) GetImagesResponder(resp *http.Response) (result ListImage, err error)
GetImagesResponder handles the response to the GetImages request. The method always closes the http.Response Body.
func (client BaseClient) GetImagesSender(req *http.Request) (*http.Response, error)
GetImagesSender sends the GetImages request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (result Iteration, err error)
GetIteration sends the get iteration request. Parameters: projectID - the id of the project the iteration belongs to. iterationID - the id of the iteration to get.
func (client BaseClient) GetIterationPerformance(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, threshold *float64, overlapThreshold *float64) (result IterationPerformance, err error)
GetIterationPerformance sends the get iteration performance request. Parameters: projectID - the id of the project the iteration belongs to. iterationID - the id of the iteration to get. threshold - the threshold used to determine true predictions. overlapThreshold - if applicable, the bounding box overlap threshold used to determine true predictions.
func (client BaseClient) GetIterationPerformancePreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, threshold *float64, overlapThreshold *float64) (*http.Request, error)
GetIterationPerformancePreparer prepares the GetIterationPerformance request.
func (client BaseClient) GetIterationPerformanceResponder(resp *http.Response) (result IterationPerformance, err error)
GetIterationPerformanceResponder handles the response to the GetIterationPerformance request. The method always closes the http.Response Body.
func (client BaseClient) GetIterationPerformanceSender(req *http.Request) (*http.Response, error)
GetIterationPerformanceSender sends the GetIterationPerformance request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetIterationPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (*http.Request, error)
GetIterationPreparer prepares the GetIteration request.
func (client BaseClient) GetIterationResponder(resp *http.Response) (result Iteration, err error)
GetIterationResponder handles the response to the GetIteration request. The method always closes the http.Response Body.
func (client BaseClient) GetIterationSender(req *http.Request) (*http.Response, error)
GetIterationSender sends the GetIteration request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetIterations(ctx context.Context, projectID uuid.UUID) (result ListIteration, err error)
GetIterations sends the get iterations request. Parameters: projectID - the project id.
func (client BaseClient) GetIterationsPreparer(ctx context.Context, projectID uuid.UUID) (*http.Request, error)
GetIterationsPreparer prepares the GetIterations request.
func (client BaseClient) GetIterationsResponder(resp *http.Response) (result ListIteration, err error)
GetIterationsResponder handles the response to the GetIterations request. The method always closes the http.Response Body.
func (client BaseClient) GetIterationsSender(req *http.Request) (*http.Response, error)
GetIterationsSender sends the GetIterations request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetProject(ctx context.Context, projectID uuid.UUID) (result Project, err error)
GetProject sends the get project request. Parameters: projectID - the id of the project to get.
func (client BaseClient) GetProjectPreparer(ctx context.Context, projectID uuid.UUID) (*http.Request, error)
GetProjectPreparer prepares the GetProject request.
func (client BaseClient) GetProjectResponder(resp *http.Response) (result Project, err error)
GetProjectResponder handles the response to the GetProject request. The method always closes the http.Response Body.
func (client BaseClient) GetProjectSender(req *http.Request) (*http.Response, error)
GetProjectSender sends the GetProject request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetProjects(ctx context.Context) (result ListProject, err error)
GetProjects sends the get projects request.
func (client BaseClient) GetProjectsPreparer(ctx context.Context) (*http.Request, error)
GetProjectsPreparer prepares the GetProjects request.
func (client BaseClient) GetProjectsResponder(resp *http.Response) (result ListProject, err error)
GetProjectsResponder handles the response to the GetProjects request. The method always closes the http.Response Body.
func (client BaseClient) GetProjectsSender(req *http.Request) (*http.Response, error)
GetProjectsSender sends the GetProjects request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetTag(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID, iterationID *uuid.UUID) (result Tag, err error)
GetTag sends the get tag request. Parameters: projectID - the project this tag belongs to. tagID - the tag id. iterationID - the iteration to retrieve this tag from. Optional, defaults to current training set.
func (client BaseClient) GetTagPreparer(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID, iterationID *uuid.UUID) (*http.Request, error)
GetTagPreparer prepares the GetTag request.
func (client BaseClient) GetTagResponder(resp *http.Response) (result Tag, err error)
GetTagResponder handles the response to the GetTag request. The method always closes the http.Response Body.
func (client BaseClient) GetTagSender(req *http.Request) (*http.Response, error)
GetTagSender sends the GetTag request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetTaggedImageCount(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, tagIds []uuid.UUID) (result Int32, err error)
GetTaggedImageCount the filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and "Cat" tags, then only images tagged with Dog and/or Cat will be returned Parameters: projectID - the project id. iterationID - the iteration id. Defaults to workspace. tagIds - a list of tags ids to filter the images to count. Defaults to all tags when null.
func (client BaseClient) GetTaggedImageCountPreparer(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, tagIds []uuid.UUID) (*http.Request, error)
GetTaggedImageCountPreparer prepares the GetTaggedImageCount request.
func (client BaseClient) GetTaggedImageCountResponder(resp *http.Response) (result Int32, err error)
GetTaggedImageCountResponder handles the response to the GetTaggedImageCount request. The method always closes the http.Response Body.
func (client BaseClient) GetTaggedImageCountSender(req *http.Request) (*http.Response, error)
GetTaggedImageCountSender sends the GetTaggedImageCount request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetTaggedImages(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, tagIds []uuid.UUID, orderBy string, take *int32, skip *int32) (result ListImage, err error)
GetTaggedImages this API supports batching and range selection. By default it will only return first 50 images matching images. Use the {take} and {skip} parameters to control how many images to return in a given batch. The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and "Cat" tags, then only images tagged with Dog and/or Cat will be returned Parameters: projectID - the project id. iterationID - the iteration id. Defaults to workspace. tagIds - a list of tags ids to filter the images. Defaults to all tagged images when null. Limited to 20. orderBy - the ordering. Defaults to newest. take - maximum number of images to return. Defaults to 50, limited to 256. skip - number of images to skip before beginning the image batch. Defaults to 0.
func (client BaseClient) GetTaggedImagesPreparer(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, tagIds []uuid.UUID, orderBy string, take *int32, skip *int32) (*http.Request, error)
GetTaggedImagesPreparer prepares the GetTaggedImages request.
func (client BaseClient) GetTaggedImagesResponder(resp *http.Response) (result ListImage, err error)
GetTaggedImagesResponder handles the response to the GetTaggedImages request. The method always closes the http.Response Body.
func (client BaseClient) GetTaggedImagesSender(req *http.Request) (*http.Response, error)
GetTaggedImagesSender sends the GetTaggedImages request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetTags(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID) (result ListTag, err error)
GetTags sends the get tags request. Parameters: projectID - the project id. iterationID - the iteration id. Defaults to workspace.
func (client BaseClient) GetTagsPreparer(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID) (*http.Request, error)
GetTagsPreparer prepares the GetTags request.
func (client BaseClient) GetTagsResponder(resp *http.Response) (result ListTag, err error)
GetTagsResponder handles the response to the GetTags request. The method always closes the http.Response Body.
func (client BaseClient) GetTagsSender(req *http.Request) (*http.Response, error)
GetTagsSender sends the GetTags request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetUntaggedImageCount(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID) (result Int32, err error)
GetUntaggedImageCount this API returns the images which have no tags for a given project and optionally an iteration. If no iteration is specified the current workspace is used. Parameters: projectID - the project id. iterationID - the iteration id. Defaults to workspace.
func (client BaseClient) GetUntaggedImageCountPreparer(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID) (*http.Request, error)
GetUntaggedImageCountPreparer prepares the GetUntaggedImageCount request.
func (client BaseClient) GetUntaggedImageCountResponder(resp *http.Response) (result Int32, err error)
GetUntaggedImageCountResponder handles the response to the GetUntaggedImageCount request. The method always closes the http.Response Body.
func (client BaseClient) GetUntaggedImageCountSender(req *http.Request) (*http.Response, error)
GetUntaggedImageCountSender sends the GetUntaggedImageCount request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) GetUntaggedImages(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, orderBy string, take *int32, skip *int32) (result ListImage, err error)
GetUntaggedImages this API supports batching and range selection. By default it will only return first 50 images matching images. Use the {take} and {skip} parameters to control how many images to return in a given batch. Parameters: projectID - the project id. iterationID - the iteration id. Defaults to workspace. orderBy - the ordering. Defaults to newest. take - maximum number of images to return. Defaults to 50, limited to 256. skip - number of images to skip before beginning the image batch. Defaults to 0.
func (client BaseClient) GetUntaggedImagesPreparer(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, orderBy string, take *int32, skip *int32) (*http.Request, error)
GetUntaggedImagesPreparer prepares the GetUntaggedImages request.
func (client BaseClient) GetUntaggedImagesResponder(resp *http.Response) (result ListImage, err error)
GetUntaggedImagesResponder handles the response to the GetUntaggedImages request. The method always closes the http.Response Body.
func (client BaseClient) GetUntaggedImagesSender(req *http.Request) (*http.Response, error)
GetUntaggedImagesSender sends the GetUntaggedImages request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) ImportProject(ctx context.Context, tokenParameter string, name string) (result Project, err error)
ImportProject sends the import project request. Parameters: tokenParameter - token generated from the export project call. name - optional, name of the project to use instead of auto-generated name.
func (client BaseClient) ImportProjectPreparer(ctx context.Context, tokenParameter string, name string) (*http.Request, error)
ImportProjectPreparer prepares the ImportProject request.
func (client BaseClient) ImportProjectResponder(resp *http.Response) (result Project, err error)
ImportProjectResponder handles the response to the ImportProject request. The method always closes the http.Response Body.
func (client BaseClient) ImportProjectSender(req *http.Request) (*http.Response, error)
ImportProjectSender sends the ImportProject request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) PublishIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, publishName string, predictionID string, overwrite *bool) (result Bool, err error)
PublishIteration sends the publish iteration request. Parameters: projectID - the project id. iterationID - the iteration id. publishName - the name to give the published iteration. predictionID - the id of the prediction resource to publish to. overwrite - whether to overwrite the published model with the given name (default: false).
func (client BaseClient) PublishIterationPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, publishName string, predictionID string, overwrite *bool) (*http.Request, error)
PublishIterationPreparer prepares the PublishIteration request.
func (client BaseClient) PublishIterationResponder(resp *http.Response) (result Bool, err error)
PublishIterationResponder handles the response to the PublishIteration request. The method always closes the http.Response Body.
func (client BaseClient) PublishIterationSender(req *http.Request) (*http.Response, error)
PublishIterationSender sends the PublishIteration request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) QueryPredictions(ctx context.Context, projectID uuid.UUID, query PredictionQueryToken) (result PredictionQueryResult, err error)
QueryPredictions sends the query predictions request. Parameters: projectID - the project id. query - parameters used to query the predictions. Limited to combining 2 tags.
func (client BaseClient) QueryPredictionsPreparer(ctx context.Context, projectID uuid.UUID, query PredictionQueryToken) (*http.Request, error)
QueryPredictionsPreparer prepares the QueryPredictions request.
func (client BaseClient) QueryPredictionsResponder(resp *http.Response) (result PredictionQueryResult, err error)
QueryPredictionsResponder handles the response to the QueryPredictions request. The method always closes the http.Response Body.
func (client BaseClient) QueryPredictionsSender(req *http.Request) (*http.Response, error)
QueryPredictionsSender sends the QueryPredictions request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) QuerySuggestedImageCount(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, query TagFilter) (result SetInt32, err error)
QuerySuggestedImageCount this API takes in tagIds to get count of untagged images per suggested tags for a given threshold. Parameters: projectID - the project id. iterationID - iterationId to use for the suggested tags and regions. query - model that contains tagIds, threshold and projectType to query by.
func (client BaseClient) QuerySuggestedImageCountPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, query TagFilter) (*http.Request, error)
QuerySuggestedImageCountPreparer prepares the QuerySuggestedImageCount request.
func (client BaseClient) QuerySuggestedImageCountResponder(resp *http.Response) (result SetInt32, err error)
QuerySuggestedImageCountResponder handles the response to the QuerySuggestedImageCount request. The method always closes the http.Response Body.
func (client BaseClient) QuerySuggestedImageCountSender(req *http.Request) (*http.Response, error)
QuerySuggestedImageCountSender sends the QuerySuggestedImageCount request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) QuerySuggestedImages(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, query SuggestedTagAndRegionQueryToken) (result SuggestedTagAndRegionQuery, err error)
QuerySuggestedImages this API will fetch untagged images filtered by suggested tags Ids. It returns an empty array if no images are found. Parameters: projectID - the project id. iterationID - iterationId to use for the suggested tags and regions. query - contains properties we need to query suggested images.
func (client BaseClient) QuerySuggestedImagesPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, query SuggestedTagAndRegionQueryToken) (*http.Request, error)
QuerySuggestedImagesPreparer prepares the QuerySuggestedImages request.
func (client BaseClient) QuerySuggestedImagesResponder(resp *http.Response) (result SuggestedTagAndRegionQuery, err error)
QuerySuggestedImagesResponder handles the response to the QuerySuggestedImages request. The method always closes the http.Response Body.
func (client BaseClient) QuerySuggestedImagesSender(req *http.Request) (*http.Response, error)
QuerySuggestedImagesSender sends the QuerySuggestedImages request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) QuickTestImage(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, iterationID *uuid.UUID, store *bool) (result ImagePrediction, err error)
QuickTestImage sends the quick test image request. Parameters: projectID - the project id. imageData - binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 6MB. iterationID - optional. Specifies the id of a particular iteration to evaluate against. The default iteration for the project will be used when not specified. store - optional. Specifies whether or not to store the result of this prediction. The default is true, to store.
func (client BaseClient) QuickTestImagePreparer(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, iterationID *uuid.UUID, store *bool) (*http.Request, error)
QuickTestImagePreparer prepares the QuickTestImage request.
func (client BaseClient) QuickTestImageResponder(resp *http.Response) (result ImagePrediction, err error)
QuickTestImageResponder handles the response to the QuickTestImage request. The method always closes the http.Response Body.
func (client BaseClient) QuickTestImageSender(req *http.Request) (*http.Response, error)
QuickTestImageSender sends the QuickTestImage request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) QuickTestImageURL(ctx context.Context, projectID uuid.UUID, imageURL ImageURL, iterationID *uuid.UUID, store *bool) (result ImagePrediction, err error)
QuickTestImageURL sends the quick test image url request. Parameters: projectID - the project to evaluate against. imageURL - an ImageUrl that contains the url of the image to be evaluated. iterationID - optional. Specifies the id of a particular iteration to evaluate against. The default iteration for the project will be used when not specified. store - optional. Specifies whether or not to store the result of this prediction. The default is true, to store.
func (client BaseClient) QuickTestImageURLPreparer(ctx context.Context, projectID uuid.UUID, imageURL ImageURL, iterationID *uuid.UUID, store *bool) (*http.Request, error)
QuickTestImageURLPreparer prepares the QuickTestImageURL request.
func (client BaseClient) QuickTestImageURLResponder(resp *http.Response) (result ImagePrediction, err error)
QuickTestImageURLResponder handles the response to the QuickTestImageURL request. The method always closes the http.Response Body.
func (client BaseClient) QuickTestImageURLSender(req *http.Request) (*http.Response, error)
QuickTestImageURLSender sends the QuickTestImageURL request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) SuggestTagsAndRegions(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, imageIds []uuid.UUID) (result ListSuggestedTagAndRegion, err error)
SuggestTagsAndRegions this API will get suggested tags and regions for an array/batch of untagged images along with confidences for the tags. It returns an empty array if no tags are found. There is a limit of 64 images in the batch. Parameters: projectID - the project id. iterationID - iterationId to use for tag and region suggestion. imageIds - array of image ids tag suggestion are needed for. Use GetUntaggedImages API to get imageIds.
func (client BaseClient) SuggestTagsAndRegionsPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, imageIds []uuid.UUID) (*http.Request, error)
SuggestTagsAndRegionsPreparer prepares the SuggestTagsAndRegions request.
func (client BaseClient) SuggestTagsAndRegionsResponder(resp *http.Response) (result ListSuggestedTagAndRegion, err error)
SuggestTagsAndRegionsResponder handles the response to the SuggestTagsAndRegions request. The method always closes the http.Response Body.
func (client BaseClient) SuggestTagsAndRegionsSender(req *http.Request) (*http.Response, error)
SuggestTagsAndRegionsSender sends the SuggestTagsAndRegions request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) TrainProject(ctx context.Context, projectID uuid.UUID, trainingType string, reservedBudgetInHours *int32, forceTrain *bool, notificationEmailAddress string, trainingParameters *Parameters) (result Iteration, err error)
TrainProject sends the train project request. Parameters: projectID - the project id. trainingType - the type of training to use to train the project (default: Regular). reservedBudgetInHours - the number of hours reserved as budget for training (if applicable). forceTrain - whether to force train even if dataset and configuration does not change (default: false). notificationEmailAddress - the email address to send notification to when training finishes (default: null). trainingParameters - additional training parameters passed in to control how the project is trained.
func (client BaseClient) TrainProjectPreparer(ctx context.Context, projectID uuid.UUID, trainingType string, reservedBudgetInHours *int32, forceTrain *bool, notificationEmailAddress string, trainingParameters *Parameters) (*http.Request, error)
TrainProjectPreparer prepares the TrainProject request.
func (client BaseClient) TrainProjectResponder(resp *http.Response) (result Iteration, err error)
TrainProjectResponder handles the response to the TrainProject request. The method always closes the http.Response Body.
func (client BaseClient) TrainProjectSender(req *http.Request) (*http.Response, error)
TrainProjectSender sends the TrainProject request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) UnpublishIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (result autorest.Response, err error)
UnpublishIteration sends the unpublish iteration request. Parameters: projectID - the project id. iterationID - the iteration id.
func (client BaseClient) UnpublishIterationPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (*http.Request, error)
UnpublishIterationPreparer prepares the UnpublishIteration request.
func (client BaseClient) UnpublishIterationResponder(resp *http.Response) (result autorest.Response, err error)
UnpublishIterationResponder handles the response to the UnpublishIteration request. The method always closes the http.Response Body.
func (client BaseClient) UnpublishIterationSender(req *http.Request) (*http.Response, error)
UnpublishIterationSender sends the UnpublishIteration request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) UpdateImageMetadata(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, metadata map[string]*string) (result ImageMetadataUpdateSummary, err error)
UpdateImageMetadata this API accepts a batch of image Ids, and metadata, to update images. There is a limit of 64 images. Parameters: projectID - the project id. imageIds - the list of image ids to update. Limited to 64. metadata - the metadata to be updated to the specified images. Limited to 10 key-value pairs per image. The length of key is limited to 128. The length of value is limited to 256.
func (client BaseClient) UpdateImageMetadataPreparer(ctx context.Context, projectID uuid.UUID, imageIds []uuid.UUID, metadata map[string]*string) (*http.Request, error)
UpdateImageMetadataPreparer prepares the UpdateImageMetadata request.
func (client BaseClient) UpdateImageMetadataResponder(resp *http.Response) (result ImageMetadataUpdateSummary, err error)
UpdateImageMetadataResponder handles the response to the UpdateImageMetadata request. The method always closes the http.Response Body.
func (client BaseClient) UpdateImageMetadataSender(req *http.Request) (*http.Response, error)
UpdateImageMetadataSender sends the UpdateImageMetadata request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) UpdateIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, updatedIteration Iteration) (result Iteration, err error)
UpdateIteration sends the update iteration request. Parameters: projectID - project id. iterationID - iteration id. updatedIteration - the updated iteration model.
func (client BaseClient) UpdateIterationPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, updatedIteration Iteration) (*http.Request, error)
UpdateIterationPreparer prepares the UpdateIteration request.
func (client BaseClient) UpdateIterationResponder(resp *http.Response) (result Iteration, err error)
UpdateIterationResponder handles the response to the UpdateIteration request. The method always closes the http.Response Body.
func (client BaseClient) UpdateIterationSender(req *http.Request) (*http.Response, error)
UpdateIterationSender sends the UpdateIteration request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) UpdateProject(ctx context.Context, projectID uuid.UUID, updatedProject Project) (result Project, err error)
UpdateProject sends the update project request. Parameters: projectID - the id of the project to update. updatedProject - the updated project model.
func (client BaseClient) UpdateProjectPreparer(ctx context.Context, projectID uuid.UUID, updatedProject Project) (*http.Request, error)
UpdateProjectPreparer prepares the UpdateProject request.
func (client BaseClient) UpdateProjectResponder(resp *http.Response) (result Project, err error)
UpdateProjectResponder handles the response to the UpdateProject request. The method always closes the http.Response Body.
func (client BaseClient) UpdateProjectSender(req *http.Request) (*http.Response, error)
UpdateProjectSender sends the UpdateProject request. The method will close the http.Response Body if it receives an error.
func (client BaseClient) UpdateTag(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID, updatedTag Tag) (result Tag, err error)
UpdateTag sends the update tag request. Parameters: projectID - the project id. tagID - the id of the target tag. updatedTag - the updated tag model.
func (client BaseClient) UpdateTagPreparer(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID, updatedTag Tag) (*http.Request, error)
UpdateTagPreparer prepares the UpdateTag request.
func (client BaseClient) UpdateTagResponder(resp *http.Response) (result Tag, err error)
UpdateTagResponder handles the response to the UpdateTag request. The method always closes the http.Response Body.
func (client BaseClient) UpdateTagSender(req *http.Request) (*http.Response, error)
UpdateTagSender sends the UpdateTag request. The method will close the http.Response Body if it receives an error.
Bool ...
type Bool struct { autorest.Response `json:"-"` Value *bool `json:"value,omitempty"` }
BoundingBox bounding box that defines a region of an image.
type BoundingBox struct { // Left - Coordinate of the left boundary. Left *float64 `json:"left,omitempty"` // Top - Coordinate of the top boundary. Top *float64 `json:"top,omitempty"` // Width - Width. Width *float64 `json:"width,omitempty"` // Height - Height. Height *float64 `json:"height,omitempty"` }
Classifier enumerates the values for classifier.
type Classifier string
const ( // Multiclass ... Multiclass Classifier = "Multiclass" // Multilabel ... Multilabel Classifier = "Multilabel" )
func PossibleClassifierValues() []Classifier
PossibleClassifierValues returns an array of possible values for the Classifier const type.
CreateProjectOptions options used for createProject.
type CreateProjectOptions struct { // ExportModelContainerURI - The uri to the Azure Storage container that will be used to store exported models. ExportModelContainerURI *string `json:"exportModelContainerUri,omitempty"` // NotificationQueueURI - The uri to the Azure Storage queue that will be used to send project-related notifications. See <a href="https://go.microsoft.com/fwlink/?linkid=2144149">Storage notifications</a> documentation for setup and message format. NotificationQueueURI *string `json:"notificationQueueUri,omitempty"` }
CustomBaseModelInfo ...
type CustomBaseModelInfo struct { // ProjectID - Project Id of the previously trained project to be used for current iteration's training. ProjectID *uuid.UUID `json:"projectId,omitempty"` // IterationID - Iteration Id of the previously trained project to be used for current iteration's training. IterationID *uuid.UUID `json:"iterationId,omitempty"` }
CustomVisionError ...
type CustomVisionError struct { // Code - The error code. Possible values include: 'NoError', 'BadRequest', 'BadRequestExceededBatchSize', 'BadRequestNotSupported', 'BadRequestInvalidIds', 'BadRequestProjectName', 'BadRequestProjectNameNotUnique', 'BadRequestProjectDescription', 'BadRequestProjectUnknownDomain', 'BadRequestProjectUnknownClassification', 'BadRequestProjectUnsupportedDomainTypeChange', 'BadRequestProjectUnsupportedExportPlatform', 'BadRequestProjectImagePreprocessingSettings', 'BadRequestProjectDuplicated', 'BadRequestIterationName', 'BadRequestIterationNameNotUnique', 'BadRequestIterationDescription', 'BadRequestIterationIsNotTrained', 'BadRequestIterationValidationFailed', 'BadRequestWorkspaceCannotBeModified', 'BadRequestWorkspaceNotDeletable', 'BadRequestTagName', 'BadRequestTagNameNotUnique', 'BadRequestTagDescription', 'BadRequestTagType', 'BadRequestMultipleNegativeTag', 'BadRequestMultipleGeneralProductTag', 'BadRequestImageTags', 'BadRequestImageRegions', 'BadRequestNegativeAndRegularTagOnSameImage', 'BadRequestUnsupportedDomain', 'BadRequestRequiredParamIsNull', 'BadRequestIterationIsPublished', 'BadRequestInvalidPublishName', 'BadRequestInvalidPublishTarget', 'BadRequestUnpublishFailed', 'BadRequestIterationNotPublished', 'BadRequestSubscriptionAPI', 'BadRequestExceedProjectLimit', 'BadRequestExceedIterationPerProjectLimit', 'BadRequestExceedTagPerProjectLimit', 'BadRequestExceedTagPerImageLimit', 'BadRequestExceededQuota', 'BadRequestCannotMigrateProjectWithName', 'BadRequestNotLimitedTrial', 'BadRequestImageBatch', 'BadRequestImageStream', 'BadRequestImageURL', 'BadRequestImageFormat', 'BadRequestImageSizeBytes', 'BadRequestImageDimensions', 'BadRequestImageAspectRatio', 'BadRequestImageExceededCount', 'BadRequestTrainingNotNeeded', 'BadRequestTrainingNotNeededButTrainingPipelineUpdated', 'BadRequestTrainingValidationFailed', 'BadRequestClassificationTrainingValidationFailed', 'BadRequestMultiClassClassificationTrainingValidationFailed', 'BadRequestMultiLabelClassificationTrainingValidationFailed', 'BadRequestDetectionTrainingValidationFailed', 'BadRequestTrainingAlreadyInProgress', 'BadRequestDetectionTrainingNotAllowNegativeTag', 'BadRequestInvalidEmailAddress', 'BadRequestRetiredDomainNotSupportedForTraining', 'BadRequestDomainNotSupportedForAdvancedTraining', 'BadRequestExportPlatformNotSupportedForAdvancedTraining', 'BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining', 'BadRequestCustomBaseModelIterationStatusNotCompleted', 'BadRequestCustomBaseModelDomainNotCompatible', 'BadRequestCustomBaseModelArchitectureRetired', 'BadRequestExportValidationFailed', 'BadRequestExportAlreadyInProgress', 'BadRequestPredictionIdsMissing', 'BadRequestPredictionIdsExceededCount', 'BadRequestPredictionTagsExceededCount', 'BadRequestPredictionResultsExceededCount', 'BadRequestPredictionInvalidApplicationName', 'BadRequestPredictionInvalidQueryParameters', 'BadRequestInvalidImportToken', 'BadRequestExportWhileTraining', 'BadRequestImageMetadataKey', 'BadRequestImageMetadataValue', 'BadRequestOperationNotSupported', 'BadRequestInvalidArtifactURI', 'BadRequestCustomerManagedKeyRevoked', 'BadRequestInvalidURI', 'BadRequestInvalid', 'UnsupportedMediaType', 'Forbidden', 'ForbiddenUser', 'ForbiddenUserResource', 'ForbiddenUserSignupDisabled', 'ForbiddenUserSignupAllowanceExceeded', 'ForbiddenUserDoesNotExist', 'ForbiddenUserDisabled', 'ForbiddenUserInsufficientCapability', 'ForbiddenDRModeEnabled', 'ForbiddenInvalid', 'NotFound', 'NotFoundProject', 'NotFoundProjectDefaultIteration', 'NotFoundIteration', 'NotFoundIterationPerformance', 'NotFoundTag', 'NotFoundImage', 'NotFoundDomain', 'NotFoundApimSubscription', 'NotFoundInvalid', 'Conflict', 'ConflictInvalid', 'ErrorUnknown', 'ErrorIterationCopyFailed', 'ErrorPreparePerformanceMigrationFailed', 'ErrorProjectInvalidWorkspace', 'ErrorProjectInvalidPipelineConfiguration', 'ErrorProjectInvalidDomain', 'ErrorProjectTrainingRequestFailed', 'ErrorProjectImportRequestFailed', 'ErrorProjectExportRequestFailed', 'ErrorFeaturizationServiceUnavailable', 'ErrorFeaturizationQueueTimeout', 'ErrorFeaturizationInvalidFeaturizer', 'ErrorFeaturizationAugmentationUnavailable', 'ErrorFeaturizationUnrecognizedJob', 'ErrorFeaturizationAugmentationError', 'ErrorExporterInvalidPlatform', 'ErrorExporterInvalidFeaturizer', 'ErrorExporterInvalidClassifier', 'ErrorPredictionServiceUnavailable', 'ErrorPredictionModelNotFound', 'ErrorPredictionModelNotCached', 'ErrorPrediction', 'ErrorPredictionStorage', 'ErrorRegionProposal', 'ErrorUnknownBaseModel', 'ErrorServerTimeOut', 'ErrorInvalid' Code CustomVisionErrorCodes `json:"code,omitempty"` // Message - A message explaining the error reported by the service. Message *string `json:"message,omitempty"` }
CustomVisionErrorCodes enumerates the values for custom vision error codes.
type CustomVisionErrorCodes string
const ( // BadRequest ... BadRequest CustomVisionErrorCodes = "BadRequest" // BadRequestCannotMigrateProjectWithName ... BadRequestCannotMigrateProjectWithName CustomVisionErrorCodes = "BadRequestCannotMigrateProjectWithName" // BadRequestClassificationTrainingValidationFailed ... BadRequestClassificationTrainingValidationFailed CustomVisionErrorCodes = "BadRequestClassificationTrainingValidationFailed" // BadRequestCustomBaseModelArchitectureRetired ... BadRequestCustomBaseModelArchitectureRetired CustomVisionErrorCodes = "BadRequestCustomBaseModelArchitectureRetired" // BadRequestCustomBaseModelDomainNotCompatible ... BadRequestCustomBaseModelDomainNotCompatible CustomVisionErrorCodes = "BadRequestCustomBaseModelDomainNotCompatible" // BadRequestCustomBaseModelIterationStatusNotCompleted ... BadRequestCustomBaseModelIterationStatusNotCompleted CustomVisionErrorCodes = "BadRequestCustomBaseModelIterationStatusNotCompleted" // BadRequestCustomerManagedKeyRevoked ... BadRequestCustomerManagedKeyRevoked CustomVisionErrorCodes = "BadRequestCustomerManagedKeyRevoked" // BadRequestDetectionTrainingNotAllowNegativeTag ... BadRequestDetectionTrainingNotAllowNegativeTag CustomVisionErrorCodes = "BadRequestDetectionTrainingNotAllowNegativeTag" // BadRequestDetectionTrainingValidationFailed ... BadRequestDetectionTrainingValidationFailed CustomVisionErrorCodes = "BadRequestDetectionTrainingValidationFailed" // BadRequestDomainNotSupportedForAdvancedTraining ... BadRequestDomainNotSupportedForAdvancedTraining CustomVisionErrorCodes = "BadRequestDomainNotSupportedForAdvancedTraining" // BadRequestExceededBatchSize ... BadRequestExceededBatchSize CustomVisionErrorCodes = "BadRequestExceededBatchSize" // BadRequestExceededQuota ... BadRequestExceededQuota CustomVisionErrorCodes = "BadRequestExceededQuota" // BadRequestExceedIterationPerProjectLimit ... BadRequestExceedIterationPerProjectLimit CustomVisionErrorCodes = "BadRequestExceedIterationPerProjectLimit" // BadRequestExceedProjectLimit ... BadRequestExceedProjectLimit CustomVisionErrorCodes = "BadRequestExceedProjectLimit" // BadRequestExceedTagPerImageLimit ... BadRequestExceedTagPerImageLimit CustomVisionErrorCodes = "BadRequestExceedTagPerImageLimit" // BadRequestExceedTagPerProjectLimit ... BadRequestExceedTagPerProjectLimit CustomVisionErrorCodes = "BadRequestExceedTagPerProjectLimit" // BadRequestExportAlreadyInProgress ... BadRequestExportAlreadyInProgress CustomVisionErrorCodes = "BadRequestExportAlreadyInProgress" // BadRequestExportPlatformNotSupportedForAdvancedTraining ... BadRequestExportPlatformNotSupportedForAdvancedTraining CustomVisionErrorCodes = "BadRequestExportPlatformNotSupportedForAdvancedTraining" // BadRequestExportValidationFailed ... BadRequestExportValidationFailed CustomVisionErrorCodes = "BadRequestExportValidationFailed" // BadRequestExportWhileTraining ... BadRequestExportWhileTraining CustomVisionErrorCodes = "BadRequestExportWhileTraining" // BadRequestImageAspectRatio ... BadRequestImageAspectRatio CustomVisionErrorCodes = "BadRequestImageAspectRatio" // BadRequestImageBatch ... BadRequestImageBatch CustomVisionErrorCodes = "BadRequestImageBatch" // BadRequestImageDimensions ... BadRequestImageDimensions CustomVisionErrorCodes = "BadRequestImageDimensions" // BadRequestImageExceededCount ... BadRequestImageExceededCount CustomVisionErrorCodes = "BadRequestImageExceededCount" // BadRequestImageFormat ... BadRequestImageFormat CustomVisionErrorCodes = "BadRequestImageFormat" // BadRequestImageMetadataKey ... BadRequestImageMetadataKey CustomVisionErrorCodes = "BadRequestImageMetadataKey" // BadRequestImageMetadataValue ... BadRequestImageMetadataValue CustomVisionErrorCodes = "BadRequestImageMetadataValue" // BadRequestImageRegions ... BadRequestImageRegions CustomVisionErrorCodes = "BadRequestImageRegions" // BadRequestImageSizeBytes ... BadRequestImageSizeBytes CustomVisionErrorCodes = "BadRequestImageSizeBytes" // BadRequestImageStream ... BadRequestImageStream CustomVisionErrorCodes = "BadRequestImageStream" // BadRequestImageTags ... BadRequestImageTags CustomVisionErrorCodes = "BadRequestImageTags" // BadRequestImageURL ... BadRequestImageURL CustomVisionErrorCodes = "BadRequestImageUrl" // BadRequestInvalid ... BadRequestInvalid CustomVisionErrorCodes = "BadRequestInvalid" // BadRequestInvalidArtifactURI ... BadRequestInvalidArtifactURI CustomVisionErrorCodes = "BadRequestInvalidArtifactUri" // BadRequestInvalidEmailAddress ... BadRequestInvalidEmailAddress CustomVisionErrorCodes = "BadRequestInvalidEmailAddress" // BadRequestInvalidIds ... BadRequestInvalidIds CustomVisionErrorCodes = "BadRequestInvalidIds" // BadRequestInvalidImportToken ... BadRequestInvalidImportToken CustomVisionErrorCodes = "BadRequestInvalidImportToken" // BadRequestInvalidPublishName ... BadRequestInvalidPublishName CustomVisionErrorCodes = "BadRequestInvalidPublishName" // BadRequestInvalidPublishTarget ... BadRequestInvalidPublishTarget CustomVisionErrorCodes = "BadRequestInvalidPublishTarget" // BadRequestInvalidURI ... BadRequestInvalidURI CustomVisionErrorCodes = "BadRequestInvalidUri" // BadRequestIterationDescription ... BadRequestIterationDescription CustomVisionErrorCodes = "BadRequestIterationDescription" // BadRequestIterationIsNotTrained ... BadRequestIterationIsNotTrained CustomVisionErrorCodes = "BadRequestIterationIsNotTrained" // BadRequestIterationIsPublished ... BadRequestIterationIsPublished CustomVisionErrorCodes = "BadRequestIterationIsPublished" // BadRequestIterationName ... BadRequestIterationName CustomVisionErrorCodes = "BadRequestIterationName" // BadRequestIterationNameNotUnique ... BadRequestIterationNameNotUnique CustomVisionErrorCodes = "BadRequestIterationNameNotUnique" // BadRequestIterationNotPublished ... BadRequestIterationNotPublished CustomVisionErrorCodes = "BadRequestIterationNotPublished" // BadRequestIterationValidationFailed ... BadRequestIterationValidationFailed CustomVisionErrorCodes = "BadRequestIterationValidationFailed" // BadRequestMultiClassClassificationTrainingValidationFailed ... BadRequestMultiClassClassificationTrainingValidationFailed CustomVisionErrorCodes = "BadRequestMultiClassClassificationTrainingValidationFailed" // BadRequestMultiLabelClassificationTrainingValidationFailed ... BadRequestMultiLabelClassificationTrainingValidationFailed CustomVisionErrorCodes = "BadRequestMultiLabelClassificationTrainingValidationFailed" // BadRequestMultipleGeneralProductTag ... BadRequestMultipleGeneralProductTag CustomVisionErrorCodes = "BadRequestMultipleGeneralProductTag" // BadRequestMultipleNegativeTag ... BadRequestMultipleNegativeTag CustomVisionErrorCodes = "BadRequestMultipleNegativeTag" // BadRequestNegativeAndRegularTagOnSameImage ... BadRequestNegativeAndRegularTagOnSameImage CustomVisionErrorCodes = "BadRequestNegativeAndRegularTagOnSameImage" // BadRequestNotLimitedTrial ... BadRequestNotLimitedTrial CustomVisionErrorCodes = "BadRequestNotLimitedTrial" // BadRequestNotSupported ... BadRequestNotSupported CustomVisionErrorCodes = "BadRequestNotSupported" // BadRequestOperationNotSupported ... BadRequestOperationNotSupported CustomVisionErrorCodes = "BadRequestOperationNotSupported" // BadRequestPredictionIdsExceededCount ... BadRequestPredictionIdsExceededCount CustomVisionErrorCodes = "BadRequestPredictionIdsExceededCount" // BadRequestPredictionIdsMissing ... BadRequestPredictionIdsMissing CustomVisionErrorCodes = "BadRequestPredictionIdsMissing" // BadRequestPredictionInvalidApplicationName ... BadRequestPredictionInvalidApplicationName CustomVisionErrorCodes = "BadRequestPredictionInvalidApplicationName" // BadRequestPredictionInvalidQueryParameters ... BadRequestPredictionInvalidQueryParameters CustomVisionErrorCodes = "BadRequestPredictionInvalidQueryParameters" // BadRequestPredictionResultsExceededCount ... BadRequestPredictionResultsExceededCount CustomVisionErrorCodes = "BadRequestPredictionResultsExceededCount" // BadRequestPredictionTagsExceededCount ... BadRequestPredictionTagsExceededCount CustomVisionErrorCodes = "BadRequestPredictionTagsExceededCount" // BadRequestProjectDescription ... BadRequestProjectDescription CustomVisionErrorCodes = "BadRequestProjectDescription" // BadRequestProjectDuplicated ... BadRequestProjectDuplicated CustomVisionErrorCodes = "BadRequestProjectDuplicated" // BadRequestProjectImagePreprocessingSettings ... BadRequestProjectImagePreprocessingSettings CustomVisionErrorCodes = "BadRequestProjectImagePreprocessingSettings" // BadRequestProjectName ... BadRequestProjectName CustomVisionErrorCodes = "BadRequestProjectName" // BadRequestProjectNameNotUnique ... BadRequestProjectNameNotUnique CustomVisionErrorCodes = "BadRequestProjectNameNotUnique" // BadRequestProjectUnknownClassification ... BadRequestProjectUnknownClassification CustomVisionErrorCodes = "BadRequestProjectUnknownClassification" // BadRequestProjectUnknownDomain ... BadRequestProjectUnknownDomain CustomVisionErrorCodes = "BadRequestProjectUnknownDomain" // BadRequestProjectUnsupportedDomainTypeChange ... BadRequestProjectUnsupportedDomainTypeChange CustomVisionErrorCodes = "BadRequestProjectUnsupportedDomainTypeChange" // BadRequestProjectUnsupportedExportPlatform ... BadRequestProjectUnsupportedExportPlatform CustomVisionErrorCodes = "BadRequestProjectUnsupportedExportPlatform" // BadRequestRequiredParamIsNull ... BadRequestRequiredParamIsNull CustomVisionErrorCodes = "BadRequestRequiredParamIsNull" // BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining ... BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining CustomVisionErrorCodes = "BadRequestReservedBudgetInHoursNotEnoughForAdvancedTraining" // BadRequestRetiredDomainNotSupportedForTraining ... BadRequestRetiredDomainNotSupportedForTraining CustomVisionErrorCodes = "BadRequestRetiredDomainNotSupportedForTraining" // BadRequestSubscriptionAPI ... BadRequestSubscriptionAPI CustomVisionErrorCodes = "BadRequestSubscriptionApi" // BadRequestTagDescription ... BadRequestTagDescription CustomVisionErrorCodes = "BadRequestTagDescription" // BadRequestTagName ... BadRequestTagName CustomVisionErrorCodes = "BadRequestTagName" // BadRequestTagNameNotUnique ... BadRequestTagNameNotUnique CustomVisionErrorCodes = "BadRequestTagNameNotUnique" // BadRequestTagType ... BadRequestTagType CustomVisionErrorCodes = "BadRequestTagType" // BadRequestTrainingAlreadyInProgress ... BadRequestTrainingAlreadyInProgress CustomVisionErrorCodes = "BadRequestTrainingAlreadyInProgress" // BadRequestTrainingNotNeeded ... BadRequestTrainingNotNeeded CustomVisionErrorCodes = "BadRequestTrainingNotNeeded" // BadRequestTrainingNotNeededButTrainingPipelineUpdated ... BadRequestTrainingNotNeededButTrainingPipelineUpdated CustomVisionErrorCodes = "BadRequestTrainingNotNeededButTrainingPipelineUpdated" // BadRequestTrainingValidationFailed ... BadRequestTrainingValidationFailed CustomVisionErrorCodes = "BadRequestTrainingValidationFailed" // BadRequestUnpublishFailed ... BadRequestUnpublishFailed CustomVisionErrorCodes = "BadRequestUnpublishFailed" // BadRequestUnsupportedDomain ... BadRequestUnsupportedDomain CustomVisionErrorCodes = "BadRequestUnsupportedDomain" // BadRequestWorkspaceCannotBeModified ... BadRequestWorkspaceCannotBeModified CustomVisionErrorCodes = "BadRequestWorkspaceCannotBeModified" // BadRequestWorkspaceNotDeletable ... BadRequestWorkspaceNotDeletable CustomVisionErrorCodes = "BadRequestWorkspaceNotDeletable" // Conflict ... Conflict CustomVisionErrorCodes = "Conflict" // ConflictInvalid ... ConflictInvalid CustomVisionErrorCodes = "ConflictInvalid" // ErrorExporterInvalidClassifier ... ErrorExporterInvalidClassifier CustomVisionErrorCodes = "ErrorExporterInvalidClassifier" // ErrorExporterInvalidFeaturizer ... ErrorExporterInvalidFeaturizer CustomVisionErrorCodes = "ErrorExporterInvalidFeaturizer" // ErrorExporterInvalidPlatform ... ErrorExporterInvalidPlatform CustomVisionErrorCodes = "ErrorExporterInvalidPlatform" // ErrorFeaturizationAugmentationError ... ErrorFeaturizationAugmentationError CustomVisionErrorCodes = "ErrorFeaturizationAugmentationError" // ErrorFeaturizationAugmentationUnavailable ... CustomVisionErrorCodes = "ErrorFeaturizationAugmentationUnavailable" // ErrorFeaturizationInvalidFeaturizer ... ErrorFeaturizationInvalidFeaturizer CustomVisionErrorCodes = "ErrorFeaturizationInvalidFeaturizer" // ErrorFeaturizationQueueTimeout ... ErrorFeaturizationQueueTimeout CustomVisionErrorCodes = "ErrorFeaturizationQueueTimeout" // ErrorFeaturizationServiceUnavailable ... CustomVisionErrorCodes = "ErrorFeaturizationServiceUnavailable" // ErrorFeaturizationUnrecognizedJob ... ErrorFeaturizationUnrecognizedJob CustomVisionErrorCodes = "ErrorFeaturizationUnrecognizedJob" // ErrorInvalid ... ErrorInvalid CustomVisionErrorCodes = "ErrorInvalid" // ErrorIterationCopyFailed ... ErrorIterationCopyFailed CustomVisionErrorCodes = "ErrorIterationCopyFailed" // ErrorPrediction ... ErrorPrediction CustomVisionErrorCodes = "ErrorPrediction" // ErrorPredictionModelNotCached ... ErrorPredictionModelNotCached CustomVisionErrorCodes = "ErrorPredictionModelNotCached" // ErrorPredictionModelNotFound ... ErrorPredictionModelNotFound CustomVisionErrorCodes = "ErrorPredictionModelNotFound" // ErrorPredictionServiceUnavailable ... CustomVisionErrorCodes = "ErrorPredictionServiceUnavailable" // ErrorPredictionStorage ... ErrorPredictionStorage CustomVisionErrorCodes = "ErrorPredictionStorage" // ErrorPreparePerformanceMigrationFailed ... ErrorPreparePerformanceMigrationFailed CustomVisionErrorCodes = "ErrorPreparePerformanceMigrationFailed" // ErrorProjectExportRequestFailed ... ErrorProjectExportRequestFailed CustomVisionErrorCodes = "ErrorProjectExportRequestFailed" // ErrorProjectImportRequestFailed ... ErrorProjectImportRequestFailed CustomVisionErrorCodes = "ErrorProjectImportRequestFailed" // ErrorProjectInvalidDomain ... ErrorProjectInvalidDomain CustomVisionErrorCodes = "ErrorProjectInvalidDomain" // ErrorProjectInvalidPipelineConfiguration ... ErrorProjectInvalidPipelineConfiguration CustomVisionErrorCodes = "ErrorProjectInvalidPipelineConfiguration" // ErrorProjectInvalidWorkspace ... ErrorProjectInvalidWorkspace CustomVisionErrorCodes = "ErrorProjectInvalidWorkspace" // ErrorProjectTrainingRequestFailed ... ErrorProjectTrainingRequestFailed CustomVisionErrorCodes = "ErrorProjectTrainingRequestFailed" // ErrorRegionProposal ... ErrorRegionProposal CustomVisionErrorCodes = "ErrorRegionProposal" // ErrorServerTimeOut ... ErrorServerTimeOut CustomVisionErrorCodes = "ErrorServerTimeOut" // ErrorUnknown ... ErrorUnknown CustomVisionErrorCodes = "ErrorUnknown" // ErrorUnknownBaseModel ... ErrorUnknownBaseModel CustomVisionErrorCodes = "ErrorUnknownBaseModel" // Forbidden ... Forbidden CustomVisionErrorCodes = "Forbidden" // ForbiddenDRModeEnabled ... ForbiddenDRModeEnabled CustomVisionErrorCodes = "ForbiddenDRModeEnabled" // ForbiddenInvalid ... ForbiddenInvalid CustomVisionErrorCodes = "ForbiddenInvalid" // ForbiddenUser ... ForbiddenUser CustomVisionErrorCodes = "ForbiddenUser" // ForbiddenUserDisabled ... ForbiddenUserDisabled CustomVisionErrorCodes = "ForbiddenUserDisabled" // ForbiddenUserDoesNotExist ... ForbiddenUserDoesNotExist CustomVisionErrorCodes = "ForbiddenUserDoesNotExist" // ForbiddenUserInsufficientCapability ... ForbiddenUserInsufficientCapability CustomVisionErrorCodes = "ForbiddenUserInsufficientCapability" // ForbiddenUserResource ... ForbiddenUserResource CustomVisionErrorCodes = "ForbiddenUserResource" // ForbiddenUserSignupAllowanceExceeded ... ForbiddenUserSignupAllowanceExceeded CustomVisionErrorCodes = "ForbiddenUserSignupAllowanceExceeded" // ForbiddenUserSignupDisabled ... ForbiddenUserSignupDisabled CustomVisionErrorCodes = "ForbiddenUserSignupDisabled" // NoError ... NoError CustomVisionErrorCodes = "NoError" // NotFound ... NotFound CustomVisionErrorCodes = "NotFound" // NotFoundApimSubscription ... NotFoundApimSubscription CustomVisionErrorCodes = "NotFoundApimSubscription" // NotFoundDomain ... NotFoundDomain CustomVisionErrorCodes = "NotFoundDomain" // NotFoundImage ... NotFoundImage CustomVisionErrorCodes = "NotFoundImage" // NotFoundInvalid ... NotFoundInvalid CustomVisionErrorCodes = "NotFoundInvalid" // NotFoundIteration ... NotFoundIteration CustomVisionErrorCodes = "NotFoundIteration" // NotFoundIterationPerformance ... NotFoundIterationPerformance CustomVisionErrorCodes = "NotFoundIterationPerformance" // NotFoundProject ... NotFoundProject CustomVisionErrorCodes = "NotFoundProject" // NotFoundProjectDefaultIteration ... NotFoundProjectDefaultIteration CustomVisionErrorCodes = "NotFoundProjectDefaultIteration" // NotFoundTag ... NotFoundTag CustomVisionErrorCodes = "NotFoundTag" // UnsupportedMediaType ... UnsupportedMediaType CustomVisionErrorCodes = "UnsupportedMediaType" )
func PossibleCustomVisionErrorCodesValues() []CustomVisionErrorCodes
PossibleCustomVisionErrorCodesValues returns an array of possible values for the CustomVisionErrorCodes const type.
Domain domains are used as the starting point for your project. Each domain is optimized for specific types of images. Domains with compact in their name can be exported. For more information visit the <a href="https://go.microsoft.com/fwlink/?linkid=2117014">domain documentation</a>.
type Domain struct { autorest.Response `json:"-"` // ID - READ-ONLY; Domain id. ID *uuid.UUID `json:"id,omitempty"` // Name - READ-ONLY; Name of the domain, describing the types of images used to train it. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Domain type: Classification or ObjectDetection. Possible values include: 'Classification', 'ObjectDetection' Type DomainType `json:"type,omitempty"` // Exportable - READ-ONLY; Indicating if the domain is exportable. Exportable *bool `json:"exportable,omitempty"` // Enabled - READ-ONLY; Indicating if the domain is enabled. Enabled *bool `json:"enabled,omitempty"` // ExportablePlatforms - READ-ONLY; Platforms that the domain can be exported to. ExportablePlatforms *[]string `json:"exportablePlatforms,omitempty"` // ModelInformation - READ-ONLY; Model information. ModelInformation *ModelInformation `json:"modelInformation,omitempty"` }
func (d Domain) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Domain.
DomainType enumerates the values for domain type.
type DomainType string
const ( // Classification ... Classification DomainType = "Classification" // ObjectDetection ... ObjectDetection DomainType = "ObjectDetection" )
func PossibleDomainTypeValues() []DomainType
PossibleDomainTypeValues returns an array of possible values for the DomainType const type.
Export ...
type Export struct { autorest.Response `json:"-"` // Platform - READ-ONLY; Platform of the export. Possible values include: 'CoreML', 'TensorFlow', 'DockerFile', 'ONNX', 'VAIDK', 'OpenVino' Platform ExportPlatform `json:"platform,omitempty"` // Status - READ-ONLY; Status of the export. Possible values include: 'Exporting', 'Failed', 'Done' Status ExportStatus `json:"status,omitempty"` // DownloadURI - READ-ONLY; URI used to download the model. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource. DownloadURI *string `json:"downloadUri,omitempty"` // Flavor - READ-ONLY; Flavor of the export. These are specializations of the export platform. // Docker platform has valid flavors: Linux, Windows, ARM. // Tensorflow platform has valid flavors: TensorFlowNormal, TensorFlowLite. // ONNX platform has valid flavors: ONNX10, ONNX12. Possible values include: 'Linux', 'Windows', 'ONNX10', 'ONNX12', 'ARM', 'TensorFlowNormal', 'TensorFlowLite' Flavor ExportFlavor `json:"flavor,omitempty"` // NewerVersionAvailable - READ-ONLY; Indicates an updated version of the export package is available and should be re-exported for the latest changes. NewerVersionAvailable *bool `json:"newerVersionAvailable,omitempty"` }
func (e Export) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Export.
ExportFlavor enumerates the values for export flavor.
type ExportFlavor string
const ( // ARM ... ARM ExportFlavor = "ARM" // Linux ... Linux ExportFlavor = "Linux" // ONNX10 ... ONNX10 ExportFlavor = "ONNX10" // ONNX12 ... ONNX12 ExportFlavor = "ONNX12" // TensorFlowLite ... TensorFlowLite ExportFlavor = "TensorFlowLite" // TensorFlowNormal ... TensorFlowNormal ExportFlavor = "TensorFlowNormal" // Windows ... Windows ExportFlavor = "Windows" )
func PossibleExportFlavorValues() []ExportFlavor
PossibleExportFlavorValues returns an array of possible values for the ExportFlavor const type.
ExportPlatform enumerates the values for export platform.
type ExportPlatform string
const ( // CoreML ... CoreML ExportPlatform = "CoreML" // DockerFile ... DockerFile ExportPlatform = "DockerFile" // ONNX ... ONNX ExportPlatform = "ONNX" // OpenVino ... OpenVino ExportPlatform = "OpenVino" // TensorFlow ... TensorFlow ExportPlatform = "TensorFlow" // VAIDK ... VAIDK ExportPlatform = "VAIDK" )
func PossibleExportPlatformValues() []ExportPlatform
PossibleExportPlatformValues returns an array of possible values for the ExportPlatform const type.
ExportStatus enumerates the values for export status.
type ExportStatus string
const ( // Done ... Done ExportStatus = "Done" // Exporting ... Exporting ExportStatus = "Exporting" // Failed ... Failed ExportStatus = "Failed" )
func PossibleExportStatusValues() []ExportStatus
PossibleExportStatusValues returns an array of possible values for the ExportStatus const type.
Image image model to be sent as JSON.
type Image struct { // ID - READ-ONLY; Id of the image. ID *uuid.UUID `json:"id,omitempty"` // Created - READ-ONLY; Date the image was created. Created *date.Time `json:"created,omitempty"` // Width - READ-ONLY; Width of the image. Width *int32 `json:"width,omitempty"` // Height - READ-ONLY; Height of the image. Height *int32 `json:"height,omitempty"` // ResizedImageURI - READ-ONLY; The URI to the (resized) image used for training. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource. ResizedImageURI *string `json:"resizedImageUri,omitempty"` // ThumbnailURI - READ-ONLY; The URI to the thumbnail of the original image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource. ThumbnailURI *string `json:"thumbnailUri,omitempty"` // OriginalImageURI - READ-ONLY; The URI to the original uploaded image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource. OriginalImageURI *string `json:"originalImageUri,omitempty"` // Tags - READ-ONLY; Tags associated with this image. Tags *[]ImageTag `json:"tags,omitempty"` // Regions - READ-ONLY; Regions associated with this image. Regions *[]ImageRegion `json:"regions,omitempty"` // Metadata - READ-ONLY; Metadata associated with this image. Metadata map[string]*string `json:"metadata"` }
func (i Image) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Image.
ImageCreateResult ...
type ImageCreateResult struct { // SourceURL - READ-ONLY; Source URL of the image. SourceURL *string `json:"sourceUrl,omitempty"` // Status - READ-ONLY; Status of the image creation. Possible values include: 'ImageCreateStatusOK', 'ImageCreateStatusOKDuplicate', 'ImageCreateStatusErrorSource', 'ImageCreateStatusErrorImageFormat', 'ImageCreateStatusErrorImageSize', 'ImageCreateStatusErrorStorage', 'ImageCreateStatusErrorLimitExceed', 'ImageCreateStatusErrorTagLimitExceed', 'ImageCreateStatusErrorRegionLimitExceed', 'ImageCreateStatusErrorUnknown', 'ImageCreateStatusErrorNegativeAndRegularTagOnSameImage', 'ImageCreateStatusErrorImageDimensions', 'ImageCreateStatusErrorInvalidTag' Status ImageCreateStatus `json:"status,omitempty"` // Image - READ-ONLY; The image. Image *Image `json:"image,omitempty"` }
func (icr ImageCreateResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageCreateResult.
ImageCreateStatus enumerates the values for image create status.
type ImageCreateStatus string
const ( // ImageCreateStatusErrorImageDimensions ... ImageCreateStatusErrorImageDimensions ImageCreateStatus = "ErrorImageDimensions" // ImageCreateStatusErrorImageFormat ... ImageCreateStatusErrorImageFormat ImageCreateStatus = "ErrorImageFormat" // ImageCreateStatusErrorImageSize ... ImageCreateStatusErrorImageSize ImageCreateStatus = "ErrorImageSize" // ImageCreateStatusErrorInvalidTag ... ImageCreateStatusErrorInvalidTag ImageCreateStatus = "ErrorInvalidTag" // ImageCreateStatusErrorLimitExceed ... ImageCreateStatusErrorLimitExceed ImageCreateStatus = "ErrorLimitExceed" // ImageCreateStatusErrorNegativeAndRegularTagOnSameImage ... ImageCreateStatusErrorNegativeAndRegularTagOnSameImage ImageCreateStatus = "ErrorNegativeAndRegularTagOnSameImage" // ImageCreateStatusErrorRegionLimitExceed ... ImageCreateStatusErrorRegionLimitExceed ImageCreateStatus = "ErrorRegionLimitExceed" // ImageCreateStatusErrorSource ... ImageCreateStatusErrorSource ImageCreateStatus = "ErrorSource" // ImageCreateStatusErrorStorage ... ImageCreateStatusErrorStorage ImageCreateStatus = "ErrorStorage" // ImageCreateStatusErrorTagLimitExceed ... ImageCreateStatusErrorTagLimitExceed ImageCreateStatus = "ErrorTagLimitExceed" // ImageCreateStatusErrorUnknown ... ImageCreateStatusErrorUnknown ImageCreateStatus = "ErrorUnknown" // ImageCreateStatusOK ... ImageCreateStatusOK ImageCreateStatus = "OK" // ImageCreateStatusOKDuplicate ... ImageCreateStatusOKDuplicate ImageCreateStatus = "OKDuplicate" )
func PossibleImageCreateStatusValues() []ImageCreateStatus
PossibleImageCreateStatusValues returns an array of possible values for the ImageCreateStatus const type.
ImageCreateSummary ...
type ImageCreateSummary struct { autorest.Response `json:"-"` // IsBatchSuccessful - READ-ONLY; True if all of the images in the batch were created successfully, otherwise false. IsBatchSuccessful *bool `json:"isBatchSuccessful,omitempty"` // Images - READ-ONLY; List of the image creation results. Images *[]ImageCreateResult `json:"images,omitempty"` }
func (ics ImageCreateSummary) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageCreateSummary.
ImageFileCreateBatch ...
type ImageFileCreateBatch struct { Images *[]ImageFileCreateEntry `json:"images,omitempty"` TagIds *[]uuid.UUID `json:"tagIds,omitempty"` // Metadata - The metadata of image. Limited to 10 key-value pairs per image. The length of key is limited to 128. The length of value is limited to 256. Metadata map[string]*string `json:"metadata"` }
func (ifcb ImageFileCreateBatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageFileCreateBatch.
ImageFileCreateEntry ...
type ImageFileCreateEntry struct { Name *string `json:"name,omitempty"` Contents *[]byte `json:"contents,omitempty"` TagIds *[]uuid.UUID `json:"tagIds,omitempty"` Regions *[]Region `json:"regions,omitempty"` }
ImageIDCreateBatch ...
type ImageIDCreateBatch struct { Images *[]ImageIDCreateEntry `json:"images,omitempty"` TagIds *[]uuid.UUID `json:"tagIds,omitempty"` // Metadata - The metadata of image. Limited to 10 key-value pairs per image. The length of key is limited to 128. The length of value is limited to 256. Metadata map[string]*string `json:"metadata"` }
func (iicb ImageIDCreateBatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageIDCreateBatch.
ImageIDCreateEntry ...
type ImageIDCreateEntry struct { // ID - Id of the image. ID *uuid.UUID `json:"id,omitempty"` TagIds *[]uuid.UUID `json:"tagIds,omitempty"` Regions *[]Region `json:"regions,omitempty"` }
ImageMetadataUpdateEntry entry associating a metadata to an image.
type ImageMetadataUpdateEntry struct { // ImageID - Id of the image. ImageID *uuid.UUID `json:"imageId,omitempty"` // Status - Status of the metadata update. Possible values include: 'ImageMetadataUpdateStatusOK', 'ImageMetadataUpdateStatusErrorImageNotFound', 'ImageMetadataUpdateStatusErrorLimitExceed', 'ImageMetadataUpdateStatusErrorUnknown' Status ImageMetadataUpdateStatus `json:"status,omitempty"` // Metadata - Metadata of the image. Metadata map[string]*string `json:"metadata"` }
func (imue ImageMetadataUpdateEntry) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageMetadataUpdateEntry.
ImageMetadataUpdateStatus enumerates the values for image metadata update status.
type ImageMetadataUpdateStatus string
const ( // ImageMetadataUpdateStatusErrorImageNotFound ... ImageMetadataUpdateStatusErrorImageNotFound ImageMetadataUpdateStatus = "ErrorImageNotFound" // ImageMetadataUpdateStatusErrorLimitExceed ... ImageMetadataUpdateStatusErrorLimitExceed ImageMetadataUpdateStatus = "ErrorLimitExceed" // ImageMetadataUpdateStatusErrorUnknown ... ImageMetadataUpdateStatusErrorUnknown ImageMetadataUpdateStatus = "ErrorUnknown" // ImageMetadataUpdateStatusOK ... ImageMetadataUpdateStatusOK ImageMetadataUpdateStatus = "OK" )
func PossibleImageMetadataUpdateStatusValues() []ImageMetadataUpdateStatus
PossibleImageMetadataUpdateStatusValues returns an array of possible values for the ImageMetadataUpdateStatus const type.
ImageMetadataUpdateSummary ...
type ImageMetadataUpdateSummary struct { autorest.Response `json:"-"` // IsBatchSuccessful - READ-ONLY IsBatchSuccessful *bool `json:"isBatchSuccessful,omitempty"` // Images - READ-ONLY Images *[]ImageMetadataUpdateEntry `json:"images,omitempty"` }
func (imus ImageMetadataUpdateSummary) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageMetadataUpdateSummary.
ImagePerformance image performance model.
type ImagePerformance struct { // Predictions - READ-ONLY Predictions *[]Prediction `json:"predictions,omitempty"` // ID - READ-ONLY; Id of the image. ID *uuid.UUID `json:"id,omitempty"` // Created - READ-ONLY; Date the image was created. Created *date.Time `json:"created,omitempty"` // Width - READ-ONLY; Width of the image. Width *int32 `json:"width,omitempty"` // Height - READ-ONLY; Height of the image. Height *int32 `json:"height,omitempty"` // ImageURI - READ-ONLY; The URI to the image used for training. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource. ImageURI *string `json:"imageUri,omitempty"` // ThumbnailURI - READ-ONLY; The URI to the thumbnail of the original image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource. ThumbnailURI *string `json:"thumbnailUri,omitempty"` // Tags - READ-ONLY; Tags associated with this image. Tags *[]ImageTag `json:"tags,omitempty"` // Regions - READ-ONLY; Regions associated with this image. Regions *[]ImageRegion `json:"regions,omitempty"` }
func (IP ImagePerformance) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImagePerformance.
ImagePrediction result of an image prediction request.
type ImagePrediction struct { autorest.Response `json:"-"` // ID - READ-ONLY; Prediction Id. ID *uuid.UUID `json:"id,omitempty"` // Project - READ-ONLY; Project Id. Project *uuid.UUID `json:"project,omitempty"` // Iteration - READ-ONLY; Iteration Id. Iteration *uuid.UUID `json:"iteration,omitempty"` // Created - READ-ONLY; Date this prediction was created. Created *date.Time `json:"created,omitempty"` // Predictions - READ-ONLY; List of predictions. Predictions *[]Prediction `json:"predictions,omitempty"` }
func (IP ImagePrediction) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImagePrediction.
ImageProcessingSettings represents image preprocessing settings used by image augmentation.
type ImageProcessingSettings struct { // AugmentationMethods - Gets or sets enabled image transforms. The key corresponds to the transform name. If value is set to true, then correspondent transform is enabled. Otherwise this transform will not be used. // Augmentation will be uniformly distributed among enabled transforms. AugmentationMethods map[string]*bool `json:"augmentationMethods"` }
func (ips ImageProcessingSettings) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageProcessingSettings.
ImageRegion ...
type ImageRegion struct { // RegionID - READ-ONLY RegionID *uuid.UUID `json:"regionId,omitempty"` // TagName - READ-ONLY TagName *string `json:"tagName,omitempty"` // Created - READ-ONLY Created *date.Time `json:"created,omitempty"` // TagID - Id of the tag associated with this region. TagID *uuid.UUID `json:"tagId,omitempty"` // Left - Coordinate of the left boundary. Left *float64 `json:"left,omitempty"` // Top - Coordinate of the top boundary. Top *float64 `json:"top,omitempty"` // Width - Width. Width *float64 `json:"width,omitempty"` // Height - Height. Height *float64 `json:"height,omitempty"` }
func (ir ImageRegion) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageRegion.
ImageRegionCreateBatch batch of image region information to create.
type ImageRegionCreateBatch struct { Regions *[]ImageRegionCreateEntry `json:"regions,omitempty"` }
ImageRegionCreateEntry entry associating a region to an image.
type ImageRegionCreateEntry struct { // ImageID - Id of the image. ImageID *uuid.UUID `json:"imageId,omitempty"` // TagID - Id of the tag associated with this region. TagID *uuid.UUID `json:"tagId,omitempty"` // Left - Coordinate of the left boundary. Left *float64 `json:"left,omitempty"` // Top - Coordinate of the top boundary. Top *float64 `json:"top,omitempty"` // Width - Width. Width *float64 `json:"width,omitempty"` // Height - Height. Height *float64 `json:"height,omitempty"` }
ImageRegionCreateResult ...
type ImageRegionCreateResult struct { // ImageID - READ-ONLY ImageID *uuid.UUID `json:"imageId,omitempty"` // RegionID - READ-ONLY RegionID *uuid.UUID `json:"regionId,omitempty"` // TagName - READ-ONLY TagName *string `json:"tagName,omitempty"` // Created - READ-ONLY Created *date.Time `json:"created,omitempty"` // TagID - Id of the tag associated with this region. TagID *uuid.UUID `json:"tagId,omitempty"` // Left - Coordinate of the left boundary. Left *float64 `json:"left,omitempty"` // Top - Coordinate of the top boundary. Top *float64 `json:"top,omitempty"` // Width - Width. Width *float64 `json:"width,omitempty"` // Height - Height. Height *float64 `json:"height,omitempty"` }
func (ircr ImageRegionCreateResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageRegionCreateResult.
ImageRegionCreateSummary ...
type ImageRegionCreateSummary struct { autorest.Response `json:"-"` Created *[]ImageRegionCreateResult `json:"created,omitempty"` Duplicated *[]ImageRegionCreateEntry `json:"duplicated,omitempty"` Exceeded *[]ImageRegionCreateEntry `json:"exceeded,omitempty"` }
ImageRegionProposal ...
type ImageRegionProposal struct { autorest.Response `json:"-"` // ProjectID - READ-ONLY ProjectID *uuid.UUID `json:"projectId,omitempty"` // ImageID - READ-ONLY ImageID *uuid.UUID `json:"imageId,omitempty"` // Proposals - READ-ONLY Proposals *[]RegionProposal `json:"proposals,omitempty"` }
func (irp ImageRegionProposal) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageRegionProposal.
ImageTag ...
type ImageTag struct { // TagID - READ-ONLY TagID *uuid.UUID `json:"tagId,omitempty"` // TagName - READ-ONLY TagName *string `json:"tagName,omitempty"` // Created - READ-ONLY Created *date.Time `json:"created,omitempty"` }
func (it ImageTag) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageTag.
ImageTagCreateBatch batch of image tags.
type ImageTagCreateBatch struct { // Tags - Image Tag entries to include in this batch. Tags *[]ImageTagCreateEntry `json:"tags,omitempty"` }
ImageTagCreateEntry entry associating a tag to an image.
type ImageTagCreateEntry struct { // ImageID - Id of the image. ImageID *uuid.UUID `json:"imageId,omitempty"` // TagID - Id of the tag. TagID *uuid.UUID `json:"tagId,omitempty"` }
ImageTagCreateSummary ...
type ImageTagCreateSummary struct { autorest.Response `json:"-"` Created *[]ImageTagCreateEntry `json:"created,omitempty"` Duplicated *[]ImageTagCreateEntry `json:"duplicated,omitempty"` Exceeded *[]ImageTagCreateEntry `json:"exceeded,omitempty"` }
ImageURL image url.
type ImageURL struct { // URL - Url of the image. URL *string `json:"url,omitempty"` }
ImageURLCreateBatch ...
type ImageURLCreateBatch struct { Images *[]ImageURLCreateEntry `json:"images,omitempty"` TagIds *[]uuid.UUID `json:"tagIds,omitempty"` // Metadata - The metadata of image. Limited to 10 key-value pairs per image. The length of key is limited to 128. The length of value is limited to 256. Metadata map[string]*string `json:"metadata"` }
func (iucb ImageURLCreateBatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ImageURLCreateBatch.
ImageURLCreateEntry ...
type ImageURLCreateEntry struct { // URL - Url of the image. URL *string `json:"url,omitempty"` TagIds *[]uuid.UUID `json:"tagIds,omitempty"` Regions *[]Region `json:"regions,omitempty"` }
Int32 ...
type Int32 struct { autorest.Response `json:"-"` Value *int32 `json:"value,omitempty"` }
Iteration iteration model to be sent over JSON.
type Iteration struct { autorest.Response `json:"-"` // ID - READ-ONLY; Gets the id of the iteration. ID *uuid.UUID `json:"id,omitempty"` // Name - Gets or sets the name of the iteration. Name *string `json:"name,omitempty"` // Status - READ-ONLY; Gets the current iteration status. Status *string `json:"status,omitempty"` // Created - READ-ONLY; Gets the time this iteration was completed. Created *date.Time `json:"created,omitempty"` // LastModified - READ-ONLY; Gets the time this iteration was last modified. LastModified *date.Time `json:"lastModified,omitempty"` // TrainedAt - READ-ONLY; Gets the time this iteration was last modified. TrainedAt *date.Time `json:"trainedAt,omitempty"` // ProjectID - READ-ONLY; Gets the project id of the iteration. ProjectID *uuid.UUID `json:"projectId,omitempty"` // Exportable - READ-ONLY; Whether the iteration can be exported to another format for download. Exportable *bool `json:"exportable,omitempty"` // ExportableTo - READ-ONLY; A set of platforms this iteration can export to. ExportableTo *[]string `json:"exportableTo,omitempty"` // DomainID - READ-ONLY; Get or sets a guid of the domain the iteration has been trained on. DomainID *uuid.UUID `json:"domainId,omitempty"` // ClassificationType - READ-ONLY; Gets the classification type of the project. Possible values include: 'Multiclass', 'Multilabel' ClassificationType Classifier `json:"classificationType,omitempty"` // TrainingType - READ-ONLY; Gets the training type of the iteration. Possible values include: 'TypeRegular', 'TypeAdvanced' TrainingType Type `json:"trainingType,omitempty"` // ReservedBudgetInHours - READ-ONLY; Gets the reserved advanced training budget for the iteration. ReservedBudgetInHours *int32 `json:"reservedBudgetInHours,omitempty"` // TrainingTimeInMinutes - READ-ONLY; Gets the training time for the iteration. TrainingTimeInMinutes *int32 `json:"trainingTimeInMinutes,omitempty"` // PublishName - READ-ONLY; Name of the published model. PublishName *string `json:"publishName,omitempty"` // OriginalPublishResourceID - READ-ONLY; Resource Provider Id this iteration was originally published to. OriginalPublishResourceID *string `json:"originalPublishResourceId,omitempty"` // CustomBaseModelInfo - READ-ONLY; Information of the previously trained iteration which provides the base model for current iteration's training. // Default value of null specifies that no previously trained iteration will be used for incremental learning. CustomBaseModelInfo *CustomBaseModelInfo `json:"customBaseModelInfo,omitempty"` // TrainingErrorDetails - READ-ONLY; Training error details, when training fails. // Value is null when training succeeds. TrainingErrorDetails *string `json:"trainingErrorDetails,omitempty"` }
func (i Iteration) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Iteration.
IterationPerformance represents the detailed performance data for a trained iteration.
type IterationPerformance struct { autorest.Response `json:"-"` // PerTagPerformance - READ-ONLY; Gets the per-tag performance details for this iteration. PerTagPerformance *[]TagPerformance `json:"perTagPerformance,omitempty"` // Precision - READ-ONLY; Gets the precision. Precision *float64 `json:"precision,omitempty"` // PrecisionStdDeviation - READ-ONLY; Gets the standard deviation for the precision. PrecisionStdDeviation *float64 `json:"precisionStdDeviation,omitempty"` // Recall - READ-ONLY; Gets the recall. Recall *float64 `json:"recall,omitempty"` // RecallStdDeviation - READ-ONLY; Gets the standard deviation for the recall. RecallStdDeviation *float64 `json:"recallStdDeviation,omitempty"` // AveragePrecision - READ-ONLY; Gets the average precision when applicable. AveragePrecision *float64 `json:"averagePrecision,omitempty"` }
func (IP IterationPerformance) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for IterationPerformance.
ListDomain ...
type ListDomain struct { autorest.Response `json:"-"` Value *[]Domain `json:"value,omitempty"` }
ListExport ...
type ListExport struct { autorest.Response `json:"-"` Value *[]Export `json:"value,omitempty"` }
ListImage ...
type ListImage struct { autorest.Response `json:"-"` Value *[]Image `json:"value,omitempty"` }
ListImagePerformance ...
type ListImagePerformance struct { autorest.Response `json:"-"` Value *[]ImagePerformance `json:"value,omitempty"` }
ListIteration ...
type ListIteration struct { autorest.Response `json:"-"` Value *[]Iteration `json:"value,omitempty"` }
ListProject ...
type ListProject struct { autorest.Response `json:"-"` Value *[]Project `json:"value,omitempty"` }
ListSuggestedTagAndRegion ...
type ListSuggestedTagAndRegion struct { autorest.Response `json:"-"` Value *[]SuggestedTagAndRegion `json:"value,omitempty"` }
ListTag ...
type ListTag struct { autorest.Response `json:"-"` Value *[]Tag `json:"value,omitempty"` }
ModelInformation model information.
type ModelInformation struct { // EstimatedModelSizeInMegabytes - Estimation of the exported FP32 Onnx model size (2 tags) in megabytes. This information is not present if the model cannot be exported. EstimatedModelSizeInMegabytes *int32 `json:"estimatedModelSizeInMegabytes,omitempty"` // Description - Model description. Description *string `json:"description,omitempty"` }
OrderBy enumerates the values for order by.
type OrderBy string
const ( // Newest ... Newest OrderBy = "Newest" // Oldest ... Oldest OrderBy = "Oldest" // Suggested ... Suggested OrderBy = "Suggested" )
func PossibleOrderByValues() []OrderBy
PossibleOrderByValues returns an array of possible values for the OrderBy const type.
Parameters parameters used for training.
type Parameters struct { // SelectedTags - List of tags selected for this training session, other tags in the project will be ignored. SelectedTags *[]uuid.UUID `json:"selectedTags,omitempty"` // CustomBaseModelInfo - Information of the previously trained iteration which provides the base model for current iteration's training. CustomBaseModelInfo *CustomBaseModelInfo `json:"customBaseModelInfo,omitempty"` }
Prediction prediction result.
type Prediction struct { // Probability - READ-ONLY; Probability of the tag. Probability *float64 `json:"probability,omitempty"` // TagID - READ-ONLY; Id of the predicted tag. TagID *uuid.UUID `json:"tagId,omitempty"` // TagName - READ-ONLY; Name of the predicted tag. TagName *string `json:"tagName,omitempty"` // BoundingBox - READ-ONLY; Bounding box of the prediction. BoundingBox *BoundingBox `json:"boundingBox,omitempty"` // TagType - READ-ONLY; Type of the predicted tag. Possible values include: 'Regular', 'Negative', 'GeneralProduct' TagType TagType `json:"tagType,omitempty"` }
func (p Prediction) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Prediction.
PredictionQueryResult query result of the prediction images that were sent to your prediction endpoint.
type PredictionQueryResult struct { autorest.Response `json:"-"` // Token - Prediction Query Token. Token *PredictionQueryToken `json:"token,omitempty"` // Results - READ-ONLY; Result of an image prediction request. Results *[]StoredImagePrediction `json:"results,omitempty"` }
func (pqr PredictionQueryResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PredictionQueryResult.
PredictionQueryTag ...
type PredictionQueryTag struct { ID *uuid.UUID `json:"id,omitempty"` MinThreshold *float64 `json:"minThreshold,omitempty"` MaxThreshold *float64 `json:"maxThreshold,omitempty"` }
PredictionQueryToken ...
type PredictionQueryToken struct { Session *string `json:"session,omitempty"` Continuation *string `json:"continuation,omitempty"` MaxCount *int32 `json:"maxCount,omitempty"` // OrderBy - Possible values include: 'Newest', 'Oldest', 'Suggested' OrderBy OrderBy `json:"orderBy,omitempty"` Tags *[]PredictionQueryTag `json:"tags,omitempty"` IterationID *uuid.UUID `json:"iterationId,omitempty"` StartTime *date.Time `json:"startTime,omitempty"` EndTime *date.Time `json:"endTime,omitempty"` Application *string `json:"application,omitempty"` }
Project represents a project.
type Project struct { autorest.Response `json:"-"` // ID - READ-ONLY; Gets the project id. ID *uuid.UUID `json:"id,omitempty"` // Name - Gets or sets the name of the project. Name *string `json:"name,omitempty"` // Description - Gets or sets the description of the project. Description *string `json:"description,omitempty"` // Settings - Gets or sets the project settings. Settings *ProjectSettings `json:"settings,omitempty"` // Created - READ-ONLY; Gets the date this project was created. Created *date.Time `json:"created,omitempty"` // LastModified - READ-ONLY; Gets the date this project was last modified. LastModified *date.Time `json:"lastModified,omitempty"` // ThumbnailURI - READ-ONLY; Gets the thumbnail url representing the image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource. ThumbnailURI *string `json:"thumbnailUri,omitempty"` // DrModeEnabled - READ-ONLY; Gets if the Disaster Recovery (DR) mode is on, indicating the project is temporarily read-only. DrModeEnabled *bool `json:"drModeEnabled,omitempty"` // Status - Gets the status of the project. Possible values include: 'ProjectStatusSucceeded', 'ProjectStatusImporting', 'ProjectStatusFailed' Status ProjectStatus `json:"status,omitempty"` }
func (p Project) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Project.
ProjectExport represents information about a project export.
type ProjectExport struct { autorest.Response `json:"-"` // IterationCount - READ-ONLY; Count of iterations that will be exported. IterationCount *int32 `json:"iterationCount,omitempty"` // ImageCount - READ-ONLY; Count of images that will be exported. ImageCount *int32 `json:"imageCount,omitempty"` // TagCount - READ-ONLY; Count of tags that will be exported. TagCount *int32 `json:"tagCount,omitempty"` // RegionCount - READ-ONLY; Count of regions that will be exported. RegionCount *int32 `json:"regionCount,omitempty"` // EstimatedImportTimeInMS - READ-ONLY; Estimated time this project will take to import, can change based on network connectivity and load between // source and destination regions. EstimatedImportTimeInMS *int32 `json:"estimatedImportTimeInMS,omitempty"` // Token - READ-ONLY; Opaque token that should be passed to ImportProject to perform the import. This token grants access to import this // project to all that have the token. Token *string `json:"token,omitempty"` }
func (peVar ProjectExport) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProjectExport.
ProjectSettings represents settings associated with a project.
type ProjectSettings struct { // DomainID - Gets or sets the id of the Domain to use with this project. DomainID *uuid.UUID `json:"domainId,omitempty"` // ClassificationType - Gets or sets the classification type of the project. Possible values include: 'Multiclass', 'Multilabel' ClassificationType Classifier `json:"classificationType,omitempty"` // TargetExportPlatforms - A list of ExportPlatform that the trained model should be able to support. TargetExportPlatforms *[]string `json:"targetExportPlatforms,omitempty"` // UseNegativeSet - READ-ONLY; Indicates if negative set is being used. UseNegativeSet *bool `json:"useNegativeSet,omitempty"` // DetectionParameters - READ-ONLY; Detection parameters in use, if any. DetectionParameters *string `json:"detectionParameters,omitempty"` // ImageProcessingSettings - Gets or sets image preprocessing settings. ImageProcessingSettings *ImageProcessingSettings `json:"imageProcessingSettings,omitempty"` // ExportModelContainerURI - READ-ONLY; The uri to the Azure Storage container that will be used to store exported models. ExportModelContainerURI *string `json:"exportModelContainerUri,omitempty"` // NotificationQueueURI - READ-ONLY; The uri to the Azure Storage queue that will be used to send project-related notifications. See <a href="https://go.microsoft.com/fwlink/?linkid=2144149">Storage notifications</a> documentation for setup and message format. NotificationQueueURI *string `json:"notificationQueueUri,omitempty"` }
func (ps ProjectSettings) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProjectSettings.
ProjectStatus enumerates the values for project status.
type ProjectStatus string
const ( // ProjectStatusFailed ... ProjectStatusFailed ProjectStatus = "Failed" // ProjectStatusImporting ... ProjectStatusImporting ProjectStatus = "Importing" // ProjectStatusSucceeded ... ProjectStatusSucceeded ProjectStatus = "Succeeded" )
func PossibleProjectStatusValues() []ProjectStatus
PossibleProjectStatusValues returns an array of possible values for the ProjectStatus const type.
ReadCloser ...
type ReadCloser struct { autorest.Response `json:"-"` Value *io.ReadCloser `json:"value,omitempty"` }
Region ...
type Region struct { // TagID - Id of the tag associated with this region. TagID *uuid.UUID `json:"tagId,omitempty"` // Left - Coordinate of the left boundary. Left *float64 `json:"left,omitempty"` // Top - Coordinate of the top boundary. Top *float64 `json:"top,omitempty"` // Width - Width. Width *float64 `json:"width,omitempty"` // Height - Height. Height *float64 `json:"height,omitempty"` }
RegionProposal ...
type RegionProposal struct { // Confidence - READ-ONLY Confidence *float64 `json:"confidence,omitempty"` // BoundingBox - READ-ONLY BoundingBox *BoundingBox `json:"boundingBox,omitempty"` }
func (rp RegionProposal) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RegionProposal.
SetInt32 ...
type SetInt32 struct { autorest.Response `json:"-"` Value map[string]*int32 `json:"value"` }
func (si3 SetInt32) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SetInt32.
SortBy enumerates the values for sort by.
type SortBy string
const ( // UncertaintyAscending ... UncertaintyAscending SortBy = "UncertaintyAscending" // UncertaintyDescending ... UncertaintyDescending SortBy = "UncertaintyDescending" )
func PossibleSortByValues() []SortBy
PossibleSortByValues returns an array of possible values for the SortBy const type.
StoredImagePrediction result of an image prediction request.
type StoredImagePrediction struct { // ResizedImageURI - READ-ONLY; The URI to the (resized) prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource. ResizedImageURI *string `json:"resizedImageUri,omitempty"` // ThumbnailURI - READ-ONLY; The URI to the thumbnail of the original prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource. ThumbnailURI *string `json:"thumbnailUri,omitempty"` // OriginalImageURI - READ-ONLY; The URI to the original prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource. OriginalImageURI *string `json:"originalImageUri,omitempty"` // Domain - READ-ONLY; Domain used for the prediction. Domain *uuid.UUID `json:"domain,omitempty"` // ID - READ-ONLY; Prediction Id. ID *uuid.UUID `json:"id,omitempty"` // Project - READ-ONLY; Project Id. Project *uuid.UUID `json:"project,omitempty"` // Iteration - READ-ONLY; Iteration Id. Iteration *uuid.UUID `json:"iteration,omitempty"` // Created - READ-ONLY; Date this prediction was created. Created *date.Time `json:"created,omitempty"` // Predictions - READ-ONLY; List of predictions. Predictions *[]Prediction `json:"predictions,omitempty"` }
func (sip StoredImagePrediction) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for StoredImagePrediction.
StoredSuggestedTagAndRegion result of a suggested tags and regions request of the untagged image.
type StoredSuggestedTagAndRegion struct { // Width - READ-ONLY; Width of the resized image. Width *int32 `json:"width,omitempty"` // Height - READ-ONLY; Height of the resized image. Height *int32 `json:"height,omitempty"` // ResizedImageURI - READ-ONLY; The URI to the (resized) prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource. ResizedImageURI *string `json:"resizedImageUri,omitempty"` // ThumbnailURI - READ-ONLY; The URI to the thumbnail of the original prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource. ThumbnailURI *string `json:"thumbnailUri,omitempty"` // OriginalImageURI - READ-ONLY; The URI to the original prediction image. If VNET feature is enabled this will be a relative path to be used with GetArtifact, otherwise this will be an absolute URI to the resource. OriginalImageURI *string `json:"originalImageUri,omitempty"` // Domain - READ-ONLY; Domain used for the prediction. Domain *uuid.UUID `json:"domain,omitempty"` // ID - READ-ONLY; Prediction Id. ID *uuid.UUID `json:"id,omitempty"` // Project - READ-ONLY; Project Id. Project *uuid.UUID `json:"project,omitempty"` // Iteration - READ-ONLY; Iteration Id. Iteration *uuid.UUID `json:"iteration,omitempty"` // Created - READ-ONLY; Date this prediction was created. Created *date.Time `json:"created,omitempty"` // Predictions - READ-ONLY; List of predictions. Predictions *[]Prediction `json:"predictions,omitempty"` // PredictionUncertainty - READ-ONLY; Uncertainty (entropy) of suggested tags or regions per image. PredictionUncertainty *float64 `json:"predictionUncertainty,omitempty"` }
func (sstar StoredSuggestedTagAndRegion) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for StoredSuggestedTagAndRegion.
SuggestedTagAndRegion result of a suggested tags and regions request.
type SuggestedTagAndRegion struct { // ID - READ-ONLY; Prediction Id. ID *uuid.UUID `json:"id,omitempty"` // Project - READ-ONLY; Project Id. Project *uuid.UUID `json:"project,omitempty"` // Iteration - READ-ONLY; Iteration Id. Iteration *uuid.UUID `json:"iteration,omitempty"` // Created - READ-ONLY; Date this prediction was created. Created *date.Time `json:"created,omitempty"` // Predictions - READ-ONLY; List of predictions. Predictions *[]Prediction `json:"predictions,omitempty"` // PredictionUncertainty - READ-ONLY; Uncertainty (entropy) of suggested tags or regions per image. PredictionUncertainty *float64 `json:"predictionUncertainty,omitempty"` }
func (star SuggestedTagAndRegion) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SuggestedTagAndRegion.
SuggestedTagAndRegionQuery the array of result images and token containing session and continuation Ids for the next query.
type SuggestedTagAndRegionQuery struct { autorest.Response `json:"-"` // Token - Contains properties we need to fetch suggested tags for. Token *SuggestedTagAndRegionQueryToken `json:"token,omitempty"` // Results - READ-ONLY; Result of a suggested tags and regions request of the untagged image. Results *[]StoredSuggestedTagAndRegion `json:"results,omitempty"` }
func (starq SuggestedTagAndRegionQuery) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SuggestedTagAndRegionQuery.
SuggestedTagAndRegionQueryToken contains properties we need to fetch suggested tags for. For the first call, Session and continuation set to null. Then on subsequent calls, uses the session/continuation from the previous SuggestedTagAndRegionQuery result to fetch additional results.
type SuggestedTagAndRegionQueryToken struct { // TagIds - Existing TagIds in project to filter suggested tags on. TagIds *[]uuid.UUID `json:"tagIds,omitempty"` // Threshold - Confidence threshold to filter suggested tags on. Threshold *float64 `json:"threshold,omitempty"` // Session - SessionId for database query. Initially set to null but later used to paginate. Session *string `json:"session,omitempty"` // Continuation - Continuation Id for database pagination. Initially null but later used to paginate. Continuation *string `json:"continuation,omitempty"` // MaxCount - Maximum number of results you want to be returned in the response. MaxCount *int32 `json:"maxCount,omitempty"` // SortBy - OrderBy. Ordering mechanism for your results. Possible values include: 'UncertaintyAscending', 'UncertaintyDescending' SortBy SortBy `json:"sortBy,omitempty"` }
Tag represents a Tag.
type Tag struct { autorest.Response `json:"-"` // ID - READ-ONLY; Gets the Tag ID. ID *uuid.UUID `json:"id,omitempty"` // Name - Gets or sets the name of the tag. Name *string `json:"name,omitempty"` // Description - Gets or sets the description of the tag. Description *string `json:"description,omitempty"` // Type - Gets or sets the type of the tag. Possible values include: 'Regular', 'Negative', 'GeneralProduct' Type TagType `json:"type,omitempty"` // ImageCount - READ-ONLY; Gets the number of images with this tag. ImageCount *int32 `json:"imageCount,omitempty"` }
func (t Tag) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Tag.
TagFilter model that query for counting of images whose suggested tags match given tags and their probability are greater than or equal to the given threshold.
type TagFilter struct { // TagIds - Existing TagIds in project to get suggested tags count for. TagIds *[]uuid.UUID `json:"tagIds,omitempty"` // Threshold - Confidence threshold to filter suggested tags on. Threshold *float64 `json:"threshold,omitempty"` }
TagPerformance represents performance data for a particular tag in a trained iteration.
type TagPerformance struct { // ID - READ-ONLY ID *uuid.UUID `json:"id,omitempty"` // Name - READ-ONLY Name *string `json:"name,omitempty"` // Precision - READ-ONLY; Gets the precision. Precision *float64 `json:"precision,omitempty"` // PrecisionStdDeviation - READ-ONLY; Gets the standard deviation for the precision. PrecisionStdDeviation *float64 `json:"precisionStdDeviation,omitempty"` // Recall - READ-ONLY; Gets the recall. Recall *float64 `json:"recall,omitempty"` // RecallStdDeviation - READ-ONLY; Gets the standard deviation for the recall. RecallStdDeviation *float64 `json:"recallStdDeviation,omitempty"` // AveragePrecision - READ-ONLY; Gets the average precision when applicable. AveragePrecision *float64 `json:"averagePrecision,omitempty"` }
func (tp TagPerformance) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TagPerformance.
TagType enumerates the values for tag type.
type TagType string
const ( // GeneralProduct ... GeneralProduct TagType = "GeneralProduct" // Negative ... Negative TagType = "Negative" // Regular ... Regular TagType = "Regular" )
func PossibleTagTypeValues() []TagType
PossibleTagTypeValues returns an array of possible values for the TagType const type.
Type enumerates the values for type.
type Type string
const ( // TypeAdvanced ... TypeAdvanced Type = "Advanced" // TypeRegular ... TypeRegular Type = "Regular" )
func PossibleTypeValues() []Type
PossibleTypeValues returns an array of possible values for the Type const type.
Name | Synopsis |
---|---|
.. | |
trainingapi |