TrainingAPIClient class
- Extends
Constructors
| Training |
Initializes a new instance of the TrainingAPIClient class. |
Properties
| credentials | |
| endpoint |
Methods
Inherited Methods
| send |
Send an HTTP request that is populated using the provided OperationSpec. |
| send |
Send the provided httpRequest. |
Constructor Details
TrainingAPIClient(ServiceClientCredentials, string, msRest.ServiceClientOptions)
Initializes a new instance of the TrainingAPIClient class.
new TrainingAPIClient(credentials: ServiceClientCredentials, endpoint: string, options?: msRest.ServiceClientOptions)
Parameters
- credentials
-
ServiceClientCredentials
Subscription credentials which uniquely identify client subscription.
- endpoint
-
string
Supported Cognitive Services endpoints.
- options
- msRest.ServiceClientOptions
Property Details
credentials
credentials: ServiceClientCredentials
Property Value
ServiceClientCredentials
endpoint
endpoint: string
Property Value
string
Method Details
createImageRegions(string, ImageRegionCreateBatch, msRest.RequestOptionsBase)
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.
function createImageRegions(projectId: string, batch: ImageRegionCreateBatch, options?: msRest.RequestOptionsBase): Promise<Models.CreateImageRegionsResponse>
Parameters
- projectId
-
string
The project id.
- batch
- ImageRegionCreateBatch
Batch of image regions which include a tag and bounding box. Limited to 64.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.CreateImageRegionsResponse>
Promise<Models.CreateImageRegionsResponse>
createImageRegions(string, ImageRegionCreateBatch, RequestOptionsBase, ServiceCallback<ImageRegionCreateSummary>)
function createImageRegions(projectId: string, batch: ImageRegionCreateBatch, options: RequestOptionsBase, callback: ServiceCallback<ImageRegionCreateSummary>)
Parameters
- projectId
-
string
The project id.
- batch
- ImageRegionCreateBatch
Batch of image regions which include a tag and bounding box. Limited to 64.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<ImageRegionCreateSummary>
The callback
createImageRegions(string, ImageRegionCreateBatch, ServiceCallback<ImageRegionCreateSummary>)
function createImageRegions(projectId: string, batch: ImageRegionCreateBatch, callback: ServiceCallback<ImageRegionCreateSummary>)
Parameters
- projectId
-
string
The project id.
- batch
- ImageRegionCreateBatch
Batch of image regions which include a tag and bounding box. Limited to 64.
- callback
-
ServiceCallback<ImageRegionCreateSummary>
The callback
createImagesFromData(string, msRest.HttpRequestBody, Models.TrainingAPIClientCreateImagesFromDataOptionalParams)
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.
function createImagesFromData(projectId: string, imageData: msRest.HttpRequestBody, options?: Models.TrainingAPIClientCreateImagesFromDataOptionalParams): Promise<Models.CreateImagesFromDataResponse>
Parameters
- projectId
-
string
The project id.
- imageData
- msRest.HttpRequestBody
Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 6MB.
- options
- Models.TrainingAPIClientCreateImagesFromDataOptionalParams
Returns
Promise<Models.CreateImagesFromDataResponse>
Promise<Models.CreateImagesFromDataResponse>
createImagesFromData(string, msRest.HttpRequestBody, ServiceCallback<ImageCreateSummary>)
function createImagesFromData(projectId: string, imageData: msRest.HttpRequestBody, callback: ServiceCallback<ImageCreateSummary>)
Parameters
- projectId
-
string
The project id.
- imageData
- msRest.HttpRequestBody
Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 6MB.
- callback
-
ServiceCallback<ImageCreateSummary>
The callback
createImagesFromData(string, msRest.HttpRequestBody, TrainingAPIClientCreateImagesFromDataOptionalParams, ServiceCallback<ImageCreateSummary>)
function createImagesFromData(projectId: string, imageData: msRest.HttpRequestBody, options: TrainingAPIClientCreateImagesFromDataOptionalParams, callback: ServiceCallback<ImageCreateSummary>)
Parameters
- projectId
-
string
The project id.
- imageData
- msRest.HttpRequestBody
Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 6MB.
The optional parameters
- callback
-
ServiceCallback<ImageCreateSummary>
The callback
createImagesFromFiles(string, ImageFileCreateBatch, msRest.RequestOptionsBase)
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.
function createImagesFromFiles(projectId: string, batch: ImageFileCreateBatch, options?: msRest.RequestOptionsBase): Promise<Models.CreateImagesFromFilesResponse>
Parameters
- projectId
-
string
The project id.
- batch
- ImageFileCreateBatch
The batch of image files to add. Limited to 64 images and 20 tags per batch.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.CreateImagesFromFilesResponse>
Promise<Models.CreateImagesFromFilesResponse>
createImagesFromFiles(string, ImageFileCreateBatch, RequestOptionsBase, ServiceCallback<ImageCreateSummary>)
function createImagesFromFiles(projectId: string, batch: ImageFileCreateBatch, options: RequestOptionsBase, callback: ServiceCallback<ImageCreateSummary>)
Parameters
- projectId
-
string
The project id.
- batch
- ImageFileCreateBatch
The batch of image files to add. Limited to 64 images and 20 tags per batch.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<ImageCreateSummary>
The callback
createImagesFromFiles(string, ImageFileCreateBatch, ServiceCallback<ImageCreateSummary>)
function createImagesFromFiles(projectId: string, batch: ImageFileCreateBatch, callback: ServiceCallback<ImageCreateSummary>)
Parameters
- projectId
-
string
The project id.
- batch
- ImageFileCreateBatch
The batch of image files to add. Limited to 64 images and 20 tags per batch.
- callback
-
ServiceCallback<ImageCreateSummary>
The callback
createImagesFromPredictions(string, ImageIdCreateBatch, msRest.RequestOptionsBase)
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.
function createImagesFromPredictions(projectId: string, batch: ImageIdCreateBatch, options?: msRest.RequestOptionsBase): Promise<Models.CreateImagesFromPredictionsResponse>
Parameters
- projectId
-
string
The project id.
- batch
- ImageIdCreateBatch
Image, tag ids, and metadata. Limited to 64 images and 20 tags per batch.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.CreateImagesFromPredictionsResponse>
Promise<Models.CreateImagesFromPredictionsResponse>
createImagesFromPredictions(string, ImageIdCreateBatch, RequestOptionsBase, ServiceCallback<ImageCreateSummary>)
function createImagesFromPredictions(projectId: string, batch: ImageIdCreateBatch, options: RequestOptionsBase, callback: ServiceCallback<ImageCreateSummary>)
Parameters
- projectId
-
string
The project id.
- batch
- ImageIdCreateBatch
Image, tag ids, and metadata. Limited to 64 images and 20 tags per batch.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<ImageCreateSummary>
The callback
createImagesFromPredictions(string, ImageIdCreateBatch, ServiceCallback<ImageCreateSummary>)
function createImagesFromPredictions(projectId: string, batch: ImageIdCreateBatch, callback: ServiceCallback<ImageCreateSummary>)
Parameters
- projectId
-
string
The project id.
- batch
- ImageIdCreateBatch
Image, tag ids, and metadata. Limited to 64 images and 20 tags per batch.
- callback
-
ServiceCallback<ImageCreateSummary>
The callback
createImagesFromUrls(string, ImageUrlCreateBatch, msRest.RequestOptionsBase)
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.
function createImagesFromUrls(projectId: string, batch: ImageUrlCreateBatch, options?: msRest.RequestOptionsBase): Promise<Models.CreateImagesFromUrlsResponse>
Parameters
- projectId
-
string
The project id.
- batch
- ImageUrlCreateBatch
Image urls, tag ids, and metadata. Limited to 64 images and 20 tags per batch.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.CreateImagesFromUrlsResponse>
Promise<Models.CreateImagesFromUrlsResponse>
createImagesFromUrls(string, ImageUrlCreateBatch, RequestOptionsBase, ServiceCallback<ImageCreateSummary>)
function createImagesFromUrls(projectId: string, batch: ImageUrlCreateBatch, options: RequestOptionsBase, callback: ServiceCallback<ImageCreateSummary>)
Parameters
- projectId
-
string
The project id.
- batch
- ImageUrlCreateBatch
Image urls, tag ids, and metadata. Limited to 64 images and 20 tags per batch.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<ImageCreateSummary>
The callback
createImagesFromUrls(string, ImageUrlCreateBatch, ServiceCallback<ImageCreateSummary>)
function createImagesFromUrls(projectId: string, batch: ImageUrlCreateBatch, callback: ServiceCallback<ImageCreateSummary>)
Parameters
- projectId
-
string
The project id.
- batch
- ImageUrlCreateBatch
Image urls, tag ids, and metadata. Limited to 64 images and 20 tags per batch.
- callback
-
ServiceCallback<ImageCreateSummary>
The callback
createImageTags(string, ImageTagCreateBatch, msRest.RequestOptionsBase)
function createImageTags(projectId: string, batch: ImageTagCreateBatch, options?: msRest.RequestOptionsBase): Promise<Models.CreateImageTagsResponse>
Parameters
- projectId
-
string
The project id.
- batch
- ImageTagCreateBatch
Batch of image tags. Limited to 128 tags per batch.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.CreateImageTagsResponse>
Promise<Models.CreateImageTagsResponse>
createImageTags(string, ImageTagCreateBatch, RequestOptionsBase, ServiceCallback<ImageTagCreateSummary>)
function createImageTags(projectId: string, batch: ImageTagCreateBatch, options: RequestOptionsBase, callback: ServiceCallback<ImageTagCreateSummary>)
Parameters
- projectId
-
string
The project id.
- batch
- ImageTagCreateBatch
Batch of image tags. Limited to 128 tags per batch.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<ImageTagCreateSummary>
The callback
createImageTags(string, ImageTagCreateBatch, ServiceCallback<ImageTagCreateSummary>)
function createImageTags(projectId: string, batch: ImageTagCreateBatch, callback: ServiceCallback<ImageTagCreateSummary>)
Parameters
- projectId
-
string
The project id.
- batch
- ImageTagCreateBatch
Batch of image tags. Limited to 128 tags per batch.
- callback
-
ServiceCallback<ImageTagCreateSummary>
The callback
createProject(string, Models.TrainingAPIClientCreateProjectOptionalParams)
function createProject(name: string, options?: Models.TrainingAPIClientCreateProjectOptionalParams): Promise<Models.CreateProjectResponse>
Parameters
- name
-
string
Name of the project.
- options
- Models.TrainingAPIClientCreateProjectOptionalParams
Returns
Promise<Models.CreateProjectResponse>
Promise<Models.CreateProjectResponse>
createProject(string, ServiceCallback<Project>)
function createProject(name: string, callback: ServiceCallback<Project>)
Parameters
- name
-
string
Name of the project.
- callback
-
ServiceCallback<Project>
The callback
createProject(string, TrainingAPIClientCreateProjectOptionalParams, ServiceCallback<Project>)
function createProject(name: string, options: TrainingAPIClientCreateProjectOptionalParams, callback: ServiceCallback<Project>)
Parameters
- name
-
string
Name of the project.
The optional parameters
- callback
-
ServiceCallback<Project>
The callback
createTag(string, string, Models.TrainingAPIClientCreateTagOptionalParams)
function createTag(projectId: string, name: string, options?: Models.TrainingAPIClientCreateTagOptionalParams): Promise<Models.CreateTagResponse>
Parameters
- projectId
-
string
The project id.
- name
-
string
The tag name.
- options
- Models.TrainingAPIClientCreateTagOptionalParams
Returns
Promise<Models.CreateTagResponse>
Promise<Models.CreateTagResponse>
createTag(string, string, ServiceCallback<Tag>)
function createTag(projectId: string, name: string, callback: ServiceCallback<Tag>)
Parameters
- projectId
-
string
The project id.
- name
-
string
The tag name.
- callback
-
ServiceCallback<Tag>
The callback
createTag(string, string, TrainingAPIClientCreateTagOptionalParams, ServiceCallback<Tag>)
function createTag(projectId: string, name: string, options: TrainingAPIClientCreateTagOptionalParams, callback: ServiceCallback<Tag>)
Parameters
- projectId
-
string
The project id.
- name
-
string
The tag name.
The optional parameters
- callback
-
ServiceCallback<Tag>
The callback
deleteImageRegions(string, string[], msRest.RequestOptionsBase)
function deleteImageRegions(projectId: string, regionIds: string[], options?: msRest.RequestOptionsBase): Promise<RestResponse>
Parameters
- projectId
-
string
The project id.
- regionIds
-
string[]
Regions to delete. Limited to 64.
- options
- msRest.RequestOptionsBase
Returns
Promise<RestResponse>
Promise<msRest.RestResponse>
deleteImageRegions(string, string[], RequestOptionsBase, ServiceCallback<void>)
function deleteImageRegions(projectId: string, regionIds: string[], options: RequestOptionsBase, callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- regionIds
-
string[]
Regions to delete. Limited to 64.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<void>
The callback
deleteImageRegions(string, string[], ServiceCallback<void>)
function deleteImageRegions(projectId: string, regionIds: string[], callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- regionIds
-
string[]
Regions to delete. Limited to 64.
- callback
-
ServiceCallback<void>
The callback
deleteImages(string, Models.TrainingAPIClientDeleteImagesOptionalParams)
function deleteImages(projectId: string, options?: Models.TrainingAPIClientDeleteImagesOptionalParams): Promise<RestResponse>
Parameters
- projectId
-
string
The project id.
- options
- Models.TrainingAPIClientDeleteImagesOptionalParams
Returns
Promise<RestResponse>
Promise<msRest.RestResponse>
deleteImages(string, ServiceCallback<void>)
function deleteImages(projectId: string, callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- callback
-
ServiceCallback<void>
The callback
deleteImages(string, TrainingAPIClientDeleteImagesOptionalParams, ServiceCallback<void>)
function deleteImages(projectId: string, options: TrainingAPIClientDeleteImagesOptionalParams, callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
The optional parameters
- callback
-
ServiceCallback<void>
The callback
deleteImageTags(string, string[], string[], msRest.RequestOptionsBase)
function deleteImageTags(projectId: string, imageIds: string[], tagIds: string[], options?: msRest.RequestOptionsBase): Promise<RestResponse>
Parameters
- projectId
-
string
The project id.
- imageIds
-
string[]
Image ids. Limited to 64 images.
- tagIds
-
string[]
Tags to be deleted from the specified images. Limited to 20 tags.
- options
- msRest.RequestOptionsBase
Returns
Promise<RestResponse>
Promise<msRest.RestResponse>
deleteImageTags(string, string[], string[], RequestOptionsBase, ServiceCallback<void>)
function deleteImageTags(projectId: string, imageIds: string[], tagIds: string[], options: RequestOptionsBase, callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- imageIds
-
string[]
Image ids. Limited to 64 images.
- tagIds
-
string[]
Tags to be deleted from the specified images. Limited to 20 tags.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<void>
The callback
deleteImageTags(string, string[], string[], ServiceCallback<void>)
function deleteImageTags(projectId: string, imageIds: string[], tagIds: string[], callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- imageIds
-
string[]
Image ids. Limited to 64 images.
- tagIds
-
string[]
Tags to be deleted from the specified images. Limited to 20 tags.
- callback
-
ServiceCallback<void>
The callback
deleteIteration(string, string, msRest.RequestOptionsBase)
function deleteIteration(projectId: string, iterationId: string, options?: msRest.RequestOptionsBase): Promise<RestResponse>
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id.
- options
- msRest.RequestOptionsBase
Returns
Promise<RestResponse>
Promise<msRest.RestResponse>
deleteIteration(string, string, RequestOptionsBase, ServiceCallback<void>)
function deleteIteration(projectId: string, iterationId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<void>
The callback
deleteIteration(string, string, ServiceCallback<void>)
function deleteIteration(projectId: string, iterationId: string, callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id.
- callback
-
ServiceCallback<void>
The callback
deletePrediction(string, string[], msRest.RequestOptionsBase)
function deletePrediction(projectId: string, ids: string[], options?: msRest.RequestOptionsBase): Promise<RestResponse>
Parameters
- projectId
-
string
The project id.
- ids
-
string[]
The prediction ids. Limited to 64.
- options
- msRest.RequestOptionsBase
Returns
Promise<RestResponse>
Promise<msRest.RestResponse>
deletePrediction(string, string[], RequestOptionsBase, ServiceCallback<void>)
function deletePrediction(projectId: string, ids: string[], options: RequestOptionsBase, callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- ids
-
string[]
The prediction ids. Limited to 64.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<void>
The callback
deletePrediction(string, string[], ServiceCallback<void>)
function deletePrediction(projectId: string, ids: string[], callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- ids
-
string[]
The prediction ids. Limited to 64.
- callback
-
ServiceCallback<void>
The callback
deleteProject(string, msRest.RequestOptionsBase)
function deleteProject(projectId: string, options?: msRest.RequestOptionsBase): Promise<RestResponse>
Parameters
- projectId
-
string
The project id.
- options
- msRest.RequestOptionsBase
Returns
Promise<RestResponse>
Promise<msRest.RestResponse>
deleteProject(string, RequestOptionsBase, ServiceCallback<void>)
function deleteProject(projectId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<void>
The callback
deleteProject(string, ServiceCallback<void>)
function deleteProject(projectId: string, callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- callback
-
ServiceCallback<void>
The callback
deleteTag(string, string, msRest.RequestOptionsBase)
function deleteTag(projectId: string, tagId: string, options?: msRest.RequestOptionsBase): Promise<RestResponse>
Parameters
- projectId
-
string
The project id.
- tagId
-
string
Id of the tag to be deleted.
- options
- msRest.RequestOptionsBase
Returns
Promise<RestResponse>
Promise<msRest.RestResponse>
deleteTag(string, string, RequestOptionsBase, ServiceCallback<void>)
function deleteTag(projectId: string, tagId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- tagId
-
string
Id of the tag to be deleted.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<void>
The callback
deleteTag(string, string, ServiceCallback<void>)
function deleteTag(projectId: string, tagId: string, callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- tagId
-
string
Id of the tag to be deleted.
- callback
-
ServiceCallback<void>
The callback
exportIteration(string, string, Models.Platform, Models.TrainingAPIClientExportIterationOptionalParams)
function exportIteration(projectId: string, iterationId: string, platform: Models.Platform, options?: Models.TrainingAPIClientExportIterationOptionalParams): Promise<Models.ExportIterationResponse>
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id.
- platform
- Models.Platform
The target platform. Possible values include: 'CoreML', 'TensorFlow', 'DockerFile', 'ONNX', 'VAIDK', 'OpenVino'
- options
- Models.TrainingAPIClientExportIterationOptionalParams
Returns
Promise<Models.ExportIterationResponse>
Promise<Models.ExportIterationResponse>
exportIteration(string, string, Models.Platform, ServiceCallback<ExportModel>)
function exportIteration(projectId: string, iterationId: string, platform: Models.Platform, callback: ServiceCallback<ExportModel>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id.
- platform
- Models.Platform
The target platform. Possible values include: 'CoreML', 'TensorFlow', 'DockerFile', 'ONNX', 'VAIDK', 'OpenVino'
- callback
-
ServiceCallback<ExportModel>
The callback
exportIteration(string, string, Models.Platform, TrainingAPIClientExportIterationOptionalParams, ServiceCallback<ExportModel>)
function exportIteration(projectId: string, iterationId: string, platform: Models.Platform, options: TrainingAPIClientExportIterationOptionalParams, callback: ServiceCallback<ExportModel>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id.
- platform
- Models.Platform
The target platform. Possible values include: 'CoreML', 'TensorFlow', 'DockerFile', 'ONNX', 'VAIDK', 'OpenVino'
The optional parameters
- callback
-
ServiceCallback<ExportModel>
The callback
exportProject(string, msRest.RequestOptionsBase)
function exportProject(projectId: string, options?: msRest.RequestOptionsBase): Promise<Models.ExportProjectResponse>
Parameters
- projectId
-
string
The project id of the project to export.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.ExportProjectResponse>
Promise<Models.ExportProjectResponse>
exportProject(string, RequestOptionsBase, ServiceCallback<ProjectExport>)
function exportProject(projectId: string, options: RequestOptionsBase, callback: ServiceCallback<ProjectExport>)
Parameters
- projectId
-
string
The project id of the project to export.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<ProjectExport>
The callback
exportProject(string, ServiceCallback<ProjectExport>)
function exportProject(projectId: string, callback: ServiceCallback<ProjectExport>)
Parameters
- projectId
-
string
The project id of the project to export.
- callback
-
ServiceCallback<ProjectExport>
The callback
getArtifact(string, string, msRest.RequestOptionsBase)
function getArtifact(projectId: string, path: string, options?: msRest.RequestOptionsBase): Promise<Models.GetArtifactResponse>
Parameters
- projectId
-
string
The project id.
- path
-
string
The relative path for artifact.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.GetArtifactResponse>
Promise<Models.GetArtifactResponse>
getArtifact(string, string, RequestOptionsBase, ServiceCallback<void>)
function getArtifact(projectId: string, path: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- path
-
string
The relative path for artifact.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<void>
The callback
getArtifact(string, string, ServiceCallback<void>)
function getArtifact(projectId: string, path: string, callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- path
-
string
The relative path for artifact.
- callback
-
ServiceCallback<void>
The callback
getDomain(string, msRest.RequestOptionsBase)
function getDomain(domainId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetDomainResponse>
Parameters
- domainId
-
string
The id of the domain to get information about.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.GetDomainResponse>
Promise<Models.GetDomainResponse>
getDomain(string, RequestOptionsBase, ServiceCallback<Domain>)
function getDomain(domainId: string, options: RequestOptionsBase, callback: ServiceCallback<Domain>)
Parameters
- domainId
-
string
The id of the domain to get information about.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<Domain>
The callback
getDomain(string, ServiceCallback<Domain>)
function getDomain(domainId: string, callback: ServiceCallback<Domain>)
Parameters
- domainId
-
string
The id of the domain to get information about.
- callback
-
ServiceCallback<Domain>
The callback
getDomains(msRest.RequestOptionsBase)
function getDomains(options?: msRest.RequestOptionsBase): Promise<Models.GetDomainsResponse>
Parameters
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.GetDomainsResponse>
Promise<Models.GetDomainsResponse>
getDomains(RequestOptionsBase, ServiceCallback<Domain[]>)
function getDomains(options: RequestOptionsBase, callback: ServiceCallback<Domain[]>)
Parameters
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<Domain[]>
The callback
getDomains(ServiceCallback<Domain[]>)
function getDomains(callback: ServiceCallback<Domain[]>)
Parameters
- callback
-
ServiceCallback<Domain[]>
The callback
getExports(string, string, msRest.RequestOptionsBase)
function getExports(projectId: string, iterationId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetExportsResponse>
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.GetExportsResponse>
Promise<Models.GetExportsResponse>
getExports(string, string, RequestOptionsBase, ServiceCallback<ExportModel[]>)
function getExports(projectId: string, iterationId: string, options: RequestOptionsBase, callback: ServiceCallback<ExportModel[]>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<ExportModel[]>
The callback
getExports(string, string, ServiceCallback<ExportModel[]>)
function getExports(projectId: string, iterationId: string, callback: ServiceCallback<ExportModel[]>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id.
- callback
-
ServiceCallback<ExportModel[]>
The callback
getImageCount(string, Models.TrainingAPIClientGetImageCountOptionalParams)
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
function getImageCount(projectId: string, options?: Models.TrainingAPIClientGetImageCountOptionalParams): Promise<Models.GetImageCountResponse>
Parameters
- projectId
-
string
The project id.
- options
- Models.TrainingAPIClientGetImageCountOptionalParams
Returns
Promise<Models.GetImageCountResponse>
Promise<Models.GetImageCountResponse>
getImageCount(string, ServiceCallback<number>)
function getImageCount(projectId: string, callback: ServiceCallback<number>)
Parameters
- projectId
-
string
The project id.
- callback
-
ServiceCallback<number>
The callback
getImageCount(string, TrainingAPIClientGetImageCountOptionalParams, ServiceCallback<number>)
function getImageCount(projectId: string, options: TrainingAPIClientGetImageCountOptionalParams, callback: ServiceCallback<number>)
Parameters
- projectId
-
string
The project id.
The optional parameters
- callback
-
ServiceCallback<number>
The callback
getImagePerformanceCount(string, string, Models.TrainingAPIClientGetImagePerformanceCountOptionalParams)
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
function getImagePerformanceCount(projectId: string, iterationId: string, options?: Models.TrainingAPIClientGetImagePerformanceCountOptionalParams): Promise<Models.GetImagePerformanceCountResponse>
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id. Defaults to workspace.
- options
- Models.TrainingAPIClientGetImagePerformanceCountOptionalParams
Returns
Promise<Models.GetImagePerformanceCountResponse>
Promise<Models.GetImagePerformanceCountResponse>
getImagePerformanceCount(string, string, ServiceCallback<number>)
function getImagePerformanceCount(projectId: string, iterationId: string, callback: ServiceCallback<number>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id. Defaults to workspace.
- callback
-
ServiceCallback<number>
The callback
getImagePerformanceCount(string, string, TrainingAPIClientGetImagePerformanceCountOptionalParams, ServiceCallback<number>)
function getImagePerformanceCount(projectId: string, iterationId: string, options: TrainingAPIClientGetImagePerformanceCountOptionalParams, callback: ServiceCallback<number>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id. Defaults to workspace.
The optional parameters
- callback
-
ServiceCallback<number>
The callback
getImagePerformances(string, string, Models.TrainingAPIClientGetImagePerformancesOptionalParams)
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
function getImagePerformances(projectId: string, iterationId: string, options?: Models.TrainingAPIClientGetImagePerformancesOptionalParams): Promise<Models.GetImagePerformancesResponse>
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id. Defaults to workspace.
- options
- Models.TrainingAPIClientGetImagePerformancesOptionalParams
Returns
Promise<Models.GetImagePerformancesResponse>
Promise<Models.GetImagePerformancesResponse>
getImagePerformances(string, string, ServiceCallback<ImagePerformance[]>)
function getImagePerformances(projectId: string, iterationId: string, callback: ServiceCallback<ImagePerformance[]>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id. Defaults to workspace.
- callback
-
ServiceCallback<ImagePerformance[]>
The callback
getImagePerformances(string, string, TrainingAPIClientGetImagePerformancesOptionalParams, ServiceCallback<ImagePerformance[]>)
function getImagePerformances(projectId: string, iterationId: string, options: TrainingAPIClientGetImagePerformancesOptionalParams, callback: ServiceCallback<ImagePerformance[]>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id. Defaults to workspace.
The optional parameters
- callback
-
ServiceCallback<ImagePerformance[]>
The callback
getImageRegionProposals(string, string, msRest.RequestOptionsBase)
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.
function getImageRegionProposals(projectId: string, imageId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetImageRegionProposalsResponse>
Parameters
- projectId
-
string
The project id.
- imageId
-
string
The image id.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.GetImageRegionProposalsResponse>
Promise<Models.GetImageRegionProposalsResponse>
getImageRegionProposals(string, string, RequestOptionsBase, ServiceCallback<ImageRegionProposal>)
function getImageRegionProposals(projectId: string, imageId: string, options: RequestOptionsBase, callback: ServiceCallback<ImageRegionProposal>)
Parameters
- projectId
-
string
The project id.
- imageId
-
string
The image id.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<ImageRegionProposal>
The callback
getImageRegionProposals(string, string, ServiceCallback<ImageRegionProposal>)
function getImageRegionProposals(projectId: string, imageId: string, callback: ServiceCallback<ImageRegionProposal>)
Parameters
- projectId
-
string
The project id.
- imageId
-
string
The image id.
- callback
-
ServiceCallback<ImageRegionProposal>
The callback
getImages(string, Models.TrainingAPIClientGetImagesOptionalParams)
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
function getImages(projectId: string, options?: Models.TrainingAPIClientGetImagesOptionalParams): Promise<Models.GetImagesResponse>
Parameters
- projectId
-
string
The project id.
- options
- Models.TrainingAPIClientGetImagesOptionalParams
Returns
Promise<Models.GetImagesResponse>
Promise<Models.GetImagesResponse>
getImages(string, ServiceCallback<Image[]>)
function getImages(projectId: string, callback: ServiceCallback<Image[]>)
Parameters
- projectId
-
string
The project id.
- callback
-
ServiceCallback<Image[]>
The callback
getImages(string, TrainingAPIClientGetImagesOptionalParams, ServiceCallback<Image[]>)
function getImages(projectId: string, options: TrainingAPIClientGetImagesOptionalParams, callback: ServiceCallback<Image[]>)
Parameters
- projectId
-
string
The project id.
The optional parameters
- callback
-
ServiceCallback<Image[]>
The callback
getImagesByIds(string, Models.TrainingAPIClientGetImagesByIdsOptionalParams)
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.
function getImagesByIds(projectId: string, options?: Models.TrainingAPIClientGetImagesByIdsOptionalParams): Promise<Models.GetImagesByIdsResponse>
Parameters
- projectId
-
string
The project id.
- options
- Models.TrainingAPIClientGetImagesByIdsOptionalParams
Returns
Promise<Models.GetImagesByIdsResponse>
Promise<Models.GetImagesByIdsResponse>
getImagesByIds(string, ServiceCallback<Image[]>)
function getImagesByIds(projectId: string, callback: ServiceCallback<Image[]>)
Parameters
- projectId
-
string
The project id.
- callback
-
ServiceCallback<Image[]>
The callback
getImagesByIds(string, TrainingAPIClientGetImagesByIdsOptionalParams, ServiceCallback<Image[]>)
function getImagesByIds(projectId: string, options: TrainingAPIClientGetImagesByIdsOptionalParams, callback: ServiceCallback<Image[]>)
Parameters
- projectId
-
string
The project id.
The optional parameters
- callback
-
ServiceCallback<Image[]>
The callback
getIteration(string, string, msRest.RequestOptionsBase)
function getIteration(projectId: string, iterationId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetIterationResponse>
Parameters
- projectId
-
string
The id of the project the iteration belongs to.
- iterationId
-
string
The id of the iteration to get.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.GetIterationResponse>
Promise<Models.GetIterationResponse>
getIteration(string, string, RequestOptionsBase, ServiceCallback<Iteration>)
function getIteration(projectId: string, iterationId: string, options: RequestOptionsBase, callback: ServiceCallback<Iteration>)
Parameters
- projectId
-
string
The id of the project the iteration belongs to.
- iterationId
-
string
The id of the iteration to get.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<Iteration>
The callback
getIteration(string, string, ServiceCallback<Iteration>)
function getIteration(projectId: string, iterationId: string, callback: ServiceCallback<Iteration>)
Parameters
- projectId
-
string
The id of the project the iteration belongs to.
- iterationId
-
string
The id of the iteration to get.
- callback
-
ServiceCallback<Iteration>
The callback
getIterationPerformance(string, string, Models.TrainingAPIClientGetIterationPerformanceOptionalParams)
function getIterationPerformance(projectId: string, iterationId: string, options?: Models.TrainingAPIClientGetIterationPerformanceOptionalParams): Promise<Models.GetIterationPerformanceResponse>
Parameters
- projectId
-
string
The id of the project the iteration belongs to.
- iterationId
-
string
The id of the iteration to get.
- options
- Models.TrainingAPIClientGetIterationPerformanceOptionalParams
Returns
Promise<Models.GetIterationPerformanceResponse>
Promise<Models.GetIterationPerformanceResponse>
getIterationPerformance(string, string, ServiceCallback<IterationPerformance>)
function getIterationPerformance(projectId: string, iterationId: string, callback: ServiceCallback<IterationPerformance>)
Parameters
- projectId
-
string
The id of the project the iteration belongs to.
- iterationId
-
string
The id of the iteration to get.
- callback
-
ServiceCallback<IterationPerformance>
The callback
getIterationPerformance(string, string, TrainingAPIClientGetIterationPerformanceOptionalParams, ServiceCallback<IterationPerformance>)
function getIterationPerformance(projectId: string, iterationId: string, options: TrainingAPIClientGetIterationPerformanceOptionalParams, callback: ServiceCallback<IterationPerformance>)
Parameters
- projectId
-
string
The id of the project the iteration belongs to.
- iterationId
-
string
The id of the iteration to get.
The optional parameters
- callback
-
ServiceCallback<IterationPerformance>
The callback
getIterations(string, msRest.RequestOptionsBase)
function getIterations(projectId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetIterationsResponse>
Parameters
- projectId
-
string
The project id.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.GetIterationsResponse>
Promise<Models.GetIterationsResponse>
getIterations(string, RequestOptionsBase, ServiceCallback<Iteration[]>)
function getIterations(projectId: string, options: RequestOptionsBase, callback: ServiceCallback<Iteration[]>)
Parameters
- projectId
-
string
The project id.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<Iteration[]>
The callback
getIterations(string, ServiceCallback<Iteration[]>)
function getIterations(projectId: string, callback: ServiceCallback<Iteration[]>)
Parameters
- projectId
-
string
The project id.
- callback
-
ServiceCallback<Iteration[]>
The callback
getProject(string, msRest.RequestOptionsBase)
function getProject(projectId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetProjectResponse>
Parameters
- projectId
-
string
The id of the project to get.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.GetProjectResponse>
Promise<Models.GetProjectResponse>
getProject(string, RequestOptionsBase, ServiceCallback<Project>)
function getProject(projectId: string, options: RequestOptionsBase, callback: ServiceCallback<Project>)
Parameters
- projectId
-
string
The id of the project to get.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<Project>
The callback
getProject(string, ServiceCallback<Project>)
function getProject(projectId: string, callback: ServiceCallback<Project>)
Parameters
- projectId
-
string
The id of the project to get.
- callback
-
ServiceCallback<Project>
The callback
getProjects(msRest.RequestOptionsBase)
function getProjects(options?: msRest.RequestOptionsBase): Promise<Models.GetProjectsResponse>
Parameters
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.GetProjectsResponse>
Promise<Models.GetProjectsResponse>
getProjects(RequestOptionsBase, ServiceCallback<Project[]>)
function getProjects(options: RequestOptionsBase, callback: ServiceCallback<Project[]>)
Parameters
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<Project[]>
The callback
getProjects(ServiceCallback<Project[]>)
function getProjects(callback: ServiceCallback<Project[]>)
Parameters
- callback
-
ServiceCallback<Project[]>
The callback
getTag(string, string, Models.TrainingAPIClientGetTagOptionalParams)
function getTag(projectId: string, tagId: string, options?: Models.TrainingAPIClientGetTagOptionalParams): Promise<Models.GetTagResponse>
Parameters
- projectId
-
string
The project this tag belongs to.
- tagId
-
string
The tag id.
- options
- Models.TrainingAPIClientGetTagOptionalParams
Returns
Promise<Models.GetTagResponse>
Promise<Models.GetTagResponse>
getTag(string, string, ServiceCallback<Tag>)
function getTag(projectId: string, tagId: string, callback: ServiceCallback<Tag>)
Parameters
- projectId
-
string
The project this tag belongs to.
- tagId
-
string
The tag id.
- callback
-
ServiceCallback<Tag>
The callback
getTag(string, string, TrainingAPIClientGetTagOptionalParams, ServiceCallback<Tag>)
function getTag(projectId: string, tagId: string, options: TrainingAPIClientGetTagOptionalParams, callback: ServiceCallback<Tag>)
Parameters
- projectId
-
string
The project this tag belongs to.
- tagId
-
string
The tag id.
The optional parameters
- callback
-
ServiceCallback<Tag>
The callback
getTaggedImageCount(string, Models.TrainingAPIClientGetTaggedImageCountOptionalParams)
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
function getTaggedImageCount(projectId: string, options?: Models.TrainingAPIClientGetTaggedImageCountOptionalParams): Promise<Models.GetTaggedImageCountResponse>
Parameters
- projectId
-
string
The project id.
- options
- Models.TrainingAPIClientGetTaggedImageCountOptionalParams
Returns
Promise<Models.GetTaggedImageCountResponse>
Promise<Models.GetTaggedImageCountResponse>
getTaggedImageCount(string, ServiceCallback<number>)
function getTaggedImageCount(projectId: string, callback: ServiceCallback<number>)
Parameters
- projectId
-
string
The project id.
- callback
-
ServiceCallback<number>
The callback
getTaggedImageCount(string, TrainingAPIClientGetTaggedImageCountOptionalParams, ServiceCallback<number>)
function getTaggedImageCount(projectId: string, options: TrainingAPIClientGetTaggedImageCountOptionalParams, callback: ServiceCallback<number>)
Parameters
- projectId
-
string
The project id.
The optional parameters
- callback
-
ServiceCallback<number>
The callback
getTaggedImages(string, Models.TrainingAPIClientGetTaggedImagesOptionalParams)
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
function getTaggedImages(projectId: string, options?: Models.TrainingAPIClientGetTaggedImagesOptionalParams): Promise<Models.GetTaggedImagesResponse>
Parameters
- projectId
-
string
The project id.
- options
- Models.TrainingAPIClientGetTaggedImagesOptionalParams
Returns
Promise<Models.GetTaggedImagesResponse>
Promise<Models.GetTaggedImagesResponse>
getTaggedImages(string, ServiceCallback<Image[]>)
function getTaggedImages(projectId: string, callback: ServiceCallback<Image[]>)
Parameters
- projectId
-
string
The project id.
- callback
-
ServiceCallback<Image[]>
The callback
getTaggedImages(string, TrainingAPIClientGetTaggedImagesOptionalParams, ServiceCallback<Image[]>)
function getTaggedImages(projectId: string, options: TrainingAPIClientGetTaggedImagesOptionalParams, callback: ServiceCallback<Image[]>)
Parameters
- projectId
-
string
The project id.
The optional parameters
- callback
-
ServiceCallback<Image[]>
The callback
getTags(string, Models.TrainingAPIClientGetTagsOptionalParams)
function getTags(projectId: string, options?: Models.TrainingAPIClientGetTagsOptionalParams): Promise<Models.GetTagsResponse>
Parameters
- projectId
-
string
The project id.
- options
- Models.TrainingAPIClientGetTagsOptionalParams
Returns
Promise<Models.GetTagsResponse>
Promise<Models.GetTagsResponse>
getTags(string, ServiceCallback<Tag[]>)
function getTags(projectId: string, callback: ServiceCallback<Tag[]>)
Parameters
- projectId
-
string
The project id.
- callback
-
ServiceCallback<Tag[]>
The callback
getTags(string, TrainingAPIClientGetTagsOptionalParams, ServiceCallback<Tag[]>)
function getTags(projectId: string, options: TrainingAPIClientGetTagsOptionalParams, callback: ServiceCallback<Tag[]>)
Parameters
- projectId
-
string
The project id.
The optional parameters
- callback
-
ServiceCallback<Tag[]>
The callback
getUntaggedImageCount(string, Models.TrainingAPIClientGetUntaggedImageCountOptionalParams)
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.
function getUntaggedImageCount(projectId: string, options?: Models.TrainingAPIClientGetUntaggedImageCountOptionalParams): Promise<Models.GetUntaggedImageCountResponse>
Parameters
- projectId
-
string
The project id.
- options
- Models.TrainingAPIClientGetUntaggedImageCountOptionalParams
Returns
Promise<Models.GetUntaggedImageCountResponse>
Promise<Models.GetUntaggedImageCountResponse>
getUntaggedImageCount(string, ServiceCallback<number>)
function getUntaggedImageCount(projectId: string, callback: ServiceCallback<number>)
Parameters
- projectId
-
string
The project id.
- callback
-
ServiceCallback<number>
The callback
getUntaggedImageCount(string, TrainingAPIClientGetUntaggedImageCountOptionalParams, ServiceCallback<number>)
function getUntaggedImageCount(projectId: string, options: TrainingAPIClientGetUntaggedImageCountOptionalParams, callback: ServiceCallback<number>)
Parameters
- projectId
-
string
The project id.
The optional parameters
- callback
-
ServiceCallback<number>
The callback
getUntaggedImages(string, Models.TrainingAPIClientGetUntaggedImagesOptionalParams)
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.
function getUntaggedImages(projectId: string, options?: Models.TrainingAPIClientGetUntaggedImagesOptionalParams): Promise<Models.GetUntaggedImagesResponse>
Parameters
- projectId
-
string
The project id.
- options
- Models.TrainingAPIClientGetUntaggedImagesOptionalParams
Returns
Promise<Models.GetUntaggedImagesResponse>
Promise<Models.GetUntaggedImagesResponse>
getUntaggedImages(string, ServiceCallback<Image[]>)
function getUntaggedImages(projectId: string, callback: ServiceCallback<Image[]>)
Parameters
- projectId
-
string
The project id.
- callback
-
ServiceCallback<Image[]>
The callback
getUntaggedImages(string, TrainingAPIClientGetUntaggedImagesOptionalParams, ServiceCallback<Image[]>)
function getUntaggedImages(projectId: string, options: TrainingAPIClientGetUntaggedImagesOptionalParams, callback: ServiceCallback<Image[]>)
Parameters
- projectId
-
string
The project id.
The optional parameters
- callback
-
ServiceCallback<Image[]>
The callback
importProject(string, Models.TrainingAPIClientImportProjectOptionalParams)
function importProject(token: string, options?: Models.TrainingAPIClientImportProjectOptionalParams): Promise<Models.ImportProjectResponse>
Parameters
- token
-
string
Token generated from the export project call.
- options
- Models.TrainingAPIClientImportProjectOptionalParams
Returns
Promise<Models.ImportProjectResponse>
Promise<Models.ImportProjectResponse>
importProject(string, ServiceCallback<Project>)
function importProject(token: string, callback: ServiceCallback<Project>)
Parameters
- token
-
string
Token generated from the export project call.
- callback
-
ServiceCallback<Project>
The callback
importProject(string, TrainingAPIClientImportProjectOptionalParams, ServiceCallback<Project>)
function importProject(token: string, options: TrainingAPIClientImportProjectOptionalParams, callback: ServiceCallback<Project>)
Parameters
- token
-
string
Token generated from the export project call.
The optional parameters
- callback
-
ServiceCallback<Project>
The callback
publishIteration(string, string, string, string, Models.TrainingAPIClientPublishIterationOptionalParams)
function publishIteration(projectId: string, iterationId: string, publishName: string, predictionId: string, options?: Models.TrainingAPIClientPublishIterationOptionalParams): Promise<Models.PublishIterationResponse>
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id.
- publishName
-
string
The name to give the published iteration.
- predictionId
-
string
The id of the prediction resource to publish to.
- options
- Models.TrainingAPIClientPublishIterationOptionalParams
Returns
Promise<Models.PublishIterationResponse>
Promise<Models.PublishIterationResponse>
publishIteration(string, string, string, string, ServiceCallback<boolean>)
function publishIteration(projectId: string, iterationId: string, publishName: string, predictionId: string, callback: ServiceCallback<boolean>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id.
- publishName
-
string
The name to give the published iteration.
- predictionId
-
string
The id of the prediction resource to publish to.
- callback
-
ServiceCallback<boolean>
The callback
publishIteration(string, string, string, string, TrainingAPIClientPublishIterationOptionalParams, ServiceCallback<boolean>)
function publishIteration(projectId: string, iterationId: string, publishName: string, predictionId: string, options: TrainingAPIClientPublishIterationOptionalParams, callback: ServiceCallback<boolean>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id.
- publishName
-
string
The name to give the published iteration.
- predictionId
-
string
The id of the prediction resource to publish to.
The optional parameters
- callback
-
ServiceCallback<boolean>
The callback
queryPredictions(string, PredictionQueryToken, msRest.RequestOptionsBase)
function queryPredictions(projectId: string, query: PredictionQueryToken, options?: msRest.RequestOptionsBase): Promise<Models.QueryPredictionsResponse>
Parameters
- projectId
-
string
The project id.
- query
- PredictionQueryToken
Parameters used to query the predictions. Limited to combining 2 tags.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.QueryPredictionsResponse>
Promise<Models.QueryPredictionsResponse>
queryPredictions(string, PredictionQueryToken, RequestOptionsBase, ServiceCallback<PredictionQueryResult>)
function queryPredictions(projectId: string, query: PredictionQueryToken, options: RequestOptionsBase, callback: ServiceCallback<PredictionQueryResult>)
Parameters
- projectId
-
string
The project id.
- query
- PredictionQueryToken
Parameters used to query the predictions. Limited to combining 2 tags.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<PredictionQueryResult>
The callback
queryPredictions(string, PredictionQueryToken, ServiceCallback<PredictionQueryResult>)
function queryPredictions(projectId: string, query: PredictionQueryToken, callback: ServiceCallback<PredictionQueryResult>)
Parameters
- projectId
-
string
The project id.
- query
- PredictionQueryToken
Parameters used to query the predictions. Limited to combining 2 tags.
- callback
-
ServiceCallback<PredictionQueryResult>
The callback
querySuggestedImageCount(string, string, TagFilter, msRest.RequestOptionsBase)
This API takes in tagIds to get count of untagged images per suggested tags for a given threshold.
function querySuggestedImageCount(projectId: string, iterationId: string, query: TagFilter, options?: msRest.RequestOptionsBase): Promise<Models.QuerySuggestedImageCountResponse>
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
IterationId to use for the suggested tags and regions.
- query
- TagFilter
Model that contains tagIds, threshold and projectType to query by.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.QuerySuggestedImageCountResponse>
Promise<Models.QuerySuggestedImageCountResponse>
querySuggestedImageCount(string, string, TagFilter, RequestOptionsBase, ServiceCallback<[key: string]: number>)
function querySuggestedImageCount(projectId: string, iterationId: string, query: TagFilter, options: RequestOptionsBase, callback: ServiceCallback<[key: string]: number>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
IterationId to use for the suggested tags and regions.
- query
- TagFilter
Model that contains tagIds, threshold and projectType to query by.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<[key: string]: number>
The callback
querySuggestedImageCount(string, string, TagFilter, ServiceCallback<[key: string]: number>)
function querySuggestedImageCount(projectId: string, iterationId: string, query: TagFilter, callback: ServiceCallback<[key: string]: number>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
IterationId to use for the suggested tags and regions.
- query
- TagFilter
Model that contains tagIds, threshold and projectType to query by.
- callback
-
ServiceCallback<[key: string]: number>
The callback
querySuggestedImages(string, string, SuggestedTagAndRegionQueryToken, msRest.RequestOptionsBase)
This API will fetch untagged images filtered by suggested tags Ids. It returns an empty array if no images are found.
function querySuggestedImages(projectId: string, iterationId: string, query: SuggestedTagAndRegionQueryToken, options?: msRest.RequestOptionsBase): Promise<Models.QuerySuggestedImagesResponse>
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
IterationId to use for the suggested tags and regions.
Contains properties we need to query suggested images.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.QuerySuggestedImagesResponse>
Promise<Models.QuerySuggestedImagesResponse>
querySuggestedImages(string, string, SuggestedTagAndRegionQueryToken, RequestOptionsBase, ServiceCallback<SuggestedTagAndRegionQuery>)
function querySuggestedImages(projectId: string, iterationId: string, query: SuggestedTagAndRegionQueryToken, options: RequestOptionsBase, callback: ServiceCallback<SuggestedTagAndRegionQuery>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
IterationId to use for the suggested tags and regions.
Contains properties we need to query suggested images.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<SuggestedTagAndRegionQuery>
The callback
querySuggestedImages(string, string, SuggestedTagAndRegionQueryToken, ServiceCallback<SuggestedTagAndRegionQuery>)
function querySuggestedImages(projectId: string, iterationId: string, query: SuggestedTagAndRegionQueryToken, callback: ServiceCallback<SuggestedTagAndRegionQuery>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
IterationId to use for the suggested tags and regions.
Contains properties we need to query suggested images.
- callback
-
ServiceCallback<SuggestedTagAndRegionQuery>
The callback
quickTestImage(string, msRest.HttpRequestBody, Models.TrainingAPIClientQuickTestImageOptionalParams)
function quickTestImage(projectId: string, imageData: msRest.HttpRequestBody, options?: Models.TrainingAPIClientQuickTestImageOptionalParams): Promise<Models.QuickTestImageResponse>
Parameters
- projectId
-
string
The project id.
- imageData
- msRest.HttpRequestBody
Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 6MB.
- options
- Models.TrainingAPIClientQuickTestImageOptionalParams
Returns
Promise<Models.QuickTestImageResponse>
Promise<Models.QuickTestImageResponse>
quickTestImage(string, msRest.HttpRequestBody, ServiceCallback<ImagePrediction>)
function quickTestImage(projectId: string, imageData: msRest.HttpRequestBody, callback: ServiceCallback<ImagePrediction>)
Parameters
- projectId
-
string
The project id.
- imageData
- msRest.HttpRequestBody
Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 6MB.
- callback
-
ServiceCallback<ImagePrediction>
The callback
quickTestImage(string, msRest.HttpRequestBody, TrainingAPIClientQuickTestImageOptionalParams, ServiceCallback<ImagePrediction>)
function quickTestImage(projectId: string, imageData: msRest.HttpRequestBody, options: TrainingAPIClientQuickTestImageOptionalParams, callback: ServiceCallback<ImagePrediction>)
Parameters
- projectId
-
string
The project id.
- imageData
- msRest.HttpRequestBody
Binary image data. Supported formats are JPEG, GIF, PNG, and BMP. Supports images up to 6MB.
The optional parameters
- callback
-
ServiceCallback<ImagePrediction>
The callback
quickTestImageUrl(string, ImageUrl, Models.TrainingAPIClientQuickTestImageUrlOptionalParams)
function quickTestImageUrl(projectId: string, imageUrl: ImageUrl, options?: Models.TrainingAPIClientQuickTestImageUrlOptionalParams): Promise<Models.QuickTestImageUrlResponse>
Parameters
- projectId
-
string
The project to evaluate against.
- imageUrl
- ImageUrl
An ImageUrl that contains the url of the image to be evaluated.
- options
- Models.TrainingAPIClientQuickTestImageUrlOptionalParams
Returns
Promise<Models.QuickTestImageUrlResponse>
Promise<Models.QuickTestImageUrlResponse>
quickTestImageUrl(string, ImageUrl, ServiceCallback<ImagePrediction>)
function quickTestImageUrl(projectId: string, imageUrl: ImageUrl, callback: ServiceCallback<ImagePrediction>)
Parameters
- projectId
-
string
The project to evaluate against.
- imageUrl
- ImageUrl
An ImageUrl that contains the url of the image to be evaluated.
- callback
-
ServiceCallback<ImagePrediction>
The callback
quickTestImageUrl(string, ImageUrl, TrainingAPIClientQuickTestImageUrlOptionalParams, ServiceCallback<ImagePrediction>)
function quickTestImageUrl(projectId: string, imageUrl: ImageUrl, options: TrainingAPIClientQuickTestImageUrlOptionalParams, callback: ServiceCallback<ImagePrediction>)
Parameters
- projectId
-
string
The project to evaluate against.
- imageUrl
- ImageUrl
An ImageUrl that contains the url of the image to be evaluated.
The optional parameters
- callback
-
ServiceCallback<ImagePrediction>
The callback
suggestTagsAndRegions(string, string, string[], msRest.RequestOptionsBase)
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.
function suggestTagsAndRegions(projectId: string, iterationId: string, imageIds: string[], options?: msRest.RequestOptionsBase): Promise<Models.SuggestTagsAndRegionsResponse>
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
IterationId to use for tag and region suggestion.
- imageIds
-
string[]
Array of image ids tag suggestion are needed for. Use GetUntaggedImages API to get imageIds.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.SuggestTagsAndRegionsResponse>
Promise<Models.SuggestTagsAndRegionsResponse>
suggestTagsAndRegions(string, string, string[], RequestOptionsBase, ServiceCallback<SuggestedTagAndRegion[]>)
function suggestTagsAndRegions(projectId: string, iterationId: string, imageIds: string[], options: RequestOptionsBase, callback: ServiceCallback<SuggestedTagAndRegion[]>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
IterationId to use for tag and region suggestion.
- imageIds
-
string[]
Array of image ids tag suggestion are needed for. Use GetUntaggedImages API to get imageIds.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<SuggestedTagAndRegion[]>
The callback
suggestTagsAndRegions(string, string, string[], ServiceCallback<SuggestedTagAndRegion[]>)
function suggestTagsAndRegions(projectId: string, iterationId: string, imageIds: string[], callback: ServiceCallback<SuggestedTagAndRegion[]>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
IterationId to use for tag and region suggestion.
- imageIds
-
string[]
Array of image ids tag suggestion are needed for. Use GetUntaggedImages API to get imageIds.
- callback
-
ServiceCallback<SuggestedTagAndRegion[]>
The callback
trainProject(string, Models.TrainingAPIClientTrainProjectOptionalParams)
function trainProject(projectId: string, options?: Models.TrainingAPIClientTrainProjectOptionalParams): Promise<Models.TrainProjectResponse>
Parameters
- projectId
-
string
The project id.
- options
- Models.TrainingAPIClientTrainProjectOptionalParams
Returns
Promise<Models.TrainProjectResponse>
Promise<Models.TrainProjectResponse>
trainProject(string, ServiceCallback<Iteration>)
function trainProject(projectId: string, callback: ServiceCallback<Iteration>)
Parameters
- projectId
-
string
The project id.
- callback
-
ServiceCallback<Iteration>
The callback
trainProject(string, TrainingAPIClientTrainProjectOptionalParams, ServiceCallback<Iteration>)
function trainProject(projectId: string, options: TrainingAPIClientTrainProjectOptionalParams, callback: ServiceCallback<Iteration>)
Parameters
- projectId
-
string
The project id.
The optional parameters
- callback
-
ServiceCallback<Iteration>
The callback
unpublishIteration(string, string, msRest.RequestOptionsBase)
function unpublishIteration(projectId: string, iterationId: string, options?: msRest.RequestOptionsBase): Promise<RestResponse>
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id.
- options
- msRest.RequestOptionsBase
Returns
Promise<RestResponse>
Promise<msRest.RestResponse>
unpublishIteration(string, string, RequestOptionsBase, ServiceCallback<void>)
function unpublishIteration(projectId: string, iterationId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<void>
The callback
unpublishIteration(string, string, ServiceCallback<void>)
function unpublishIteration(projectId: string, iterationId: string, callback: ServiceCallback<void>)
Parameters
- projectId
-
string
The project id.
- iterationId
-
string
The iteration id.
- callback
-
ServiceCallback<void>
The callback
updateImageMetadata(string, string[], [key: string]: string, msRest.RequestOptionsBase)
This API accepts a batch of image Ids, and metadata, to update images. There is a limit of 64 images.
function updateImageMetadata(projectId: string, imageIds: string[], metadata: [key: string]: string, options?: msRest.RequestOptionsBase): Promise<Models.UpdateImageMetadataResponse>
Parameters
- projectId
-
string
The project id.
- imageIds
-
string[]
The list of image ids to update. Limited to 64.
- metadata
-
[key: string]: string
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.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.UpdateImageMetadataResponse>
Promise<Models.UpdateImageMetadataResponse>
updateImageMetadata(string, string[], [key: string]: string, RequestOptionsBase, ServiceCallback<ImageMetadataUpdateSummary>)
function updateImageMetadata(projectId: string, imageIds: string[], metadata: [key: string]: string, options: RequestOptionsBase, callback: ServiceCallback<ImageMetadataUpdateSummary>)
Parameters
- projectId
-
string
The project id.
- imageIds
-
string[]
The list of image ids to update. Limited to 64.
- metadata
-
[key: string]: string
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.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<ImageMetadataUpdateSummary>
The callback
updateImageMetadata(string, string[], [key: string]: string, ServiceCallback<ImageMetadataUpdateSummary>)
function updateImageMetadata(projectId: string, imageIds: string[], metadata: [key: string]: string, callback: ServiceCallback<ImageMetadataUpdateSummary>)
Parameters
- projectId
-
string
The project id.
- imageIds
-
string[]
The list of image ids to update. Limited to 64.
- metadata
-
[key: string]: string
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.
- callback
-
ServiceCallback<ImageMetadataUpdateSummary>
The callback
updateIteration(string, string, Iteration, msRest.RequestOptionsBase)
function updateIteration(projectId: string, iterationId: string, updatedIteration: Iteration, options?: msRest.RequestOptionsBase): Promise<Models.UpdateIterationResponse>
Parameters
- projectId
-
string
Project id.
- iterationId
-
string
Iteration id.
- updatedIteration
- Iteration
The updated iteration model.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.UpdateIterationResponse>
Promise<Models.UpdateIterationResponse>
updateIteration(string, string, Iteration, RequestOptionsBase, ServiceCallback<Iteration>)
function updateIteration(projectId: string, iterationId: string, updatedIteration: Iteration, options: RequestOptionsBase, callback: ServiceCallback<Iteration>)
Parameters
- projectId
-
string
Project id.
- iterationId
-
string
Iteration id.
- updatedIteration
- Iteration
The updated iteration model.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<Iteration>
The callback
updateIteration(string, string, Iteration, ServiceCallback<Iteration>)
function updateIteration(projectId: string, iterationId: string, updatedIteration: Iteration, callback: ServiceCallback<Iteration>)
Parameters
- projectId
-
string
Project id.
- iterationId
-
string
Iteration id.
- updatedIteration
- Iteration
The updated iteration model.
- callback
-
ServiceCallback<Iteration>
The callback
updateProject(string, Project, msRest.RequestOptionsBase)
function updateProject(projectId: string, updatedProject: Project, options?: msRest.RequestOptionsBase): Promise<Models.UpdateProjectResponse>
Parameters
- projectId
-
string
The id of the project to update.
- updatedProject
- Project
The updated project model.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.UpdateProjectResponse>
Promise<Models.UpdateProjectResponse>
updateProject(string, Project, RequestOptionsBase, ServiceCallback<Project>)
function updateProject(projectId: string, updatedProject: Project, options: RequestOptionsBase, callback: ServiceCallback<Project>)
Parameters
- projectId
-
string
The id of the project to update.
- updatedProject
- Project
The updated project model.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<Project>
The callback
updateProject(string, Project, ServiceCallback<Project>)
function updateProject(projectId: string, updatedProject: Project, callback: ServiceCallback<Project>)
Parameters
- projectId
-
string
The id of the project to update.
- updatedProject
- Project
The updated project model.
- callback
-
ServiceCallback<Project>
The callback
updateTag(string, string, Tag, msRest.RequestOptionsBase)
function updateTag(projectId: string, tagId: string, updatedTag: Tag, options?: msRest.RequestOptionsBase): Promise<Models.UpdateTagResponse>
Parameters
- projectId
-
string
The project id.
- tagId
-
string
The id of the target tag.
- updatedTag
- Tag
The updated tag model.
- options
- msRest.RequestOptionsBase
Returns
Promise<Models.UpdateTagResponse>
Promise<Models.UpdateTagResponse>
updateTag(string, string, Tag, RequestOptionsBase, ServiceCallback<Tag>)
function updateTag(projectId: string, tagId: string, updatedTag: Tag, options: RequestOptionsBase, callback: ServiceCallback<Tag>)
Parameters
- projectId
-
string
The project id.
- tagId
-
string
The id of the target tag.
- updatedTag
- Tag
The updated tag model.
- options
-
RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<Tag>
The callback
updateTag(string, string, Tag, ServiceCallback<Tag>)
function updateTag(projectId: string, tagId: string, updatedTag: Tag, callback: ServiceCallback<Tag>)
Parameters
- projectId
-
string
The project id.
- tagId
-
string
The id of the target tag.
- updatedTag
- Tag
The updated tag model.
- callback
-
ServiceCallback<Tag>
The callback
Inherited Method Details
sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)
Send an HTTP request that is populated using the provided OperationSpec.
function sendOperationRequest(operationArguments: OperationArguments, operationSpec: OperationSpec, callback?: ServiceCallback<any>): Promise<RestResponse>
Parameters
- operationArguments
-
OperationArguments
The arguments that the HTTP request's templated values will be populated from.
- operationSpec
-
OperationSpec
The OperationSpec to use to populate the httpRequest.
- callback
-
ServiceCallback<any>
The callback to call when the response is received.
Returns
Promise<RestResponse>
sendRequest(RequestPrepareOptions | WebResourceLike)
Send the provided httpRequest.
function sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse>
Parameters
- options
-
RequestPrepareOptions | WebResourceLike
Returns
Promise<HttpOperationResponse>