Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 5.2.0 version of Custom Vision Training #12427

Merged
merged 1 commit into from
Nov 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@azure/cognitiveservices-customvision-training",
"author": "Microsoft Corporation",
"description": "TrainingAPIClient Library with typescript type definitions for node.js and browser.",
"version": "5.1.2",
"version": "5.2.0",
"dependencies": {
"@azure/ms-rest-js": "^2.0.4",
"tslib": "^1.10.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const config = {
"@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down Expand Up @@ -51,6 +51,56 @@ export const BoundingBox: msRest.CompositeMapper = {
}
};

export const CreateProjectOptions: msRest.CompositeMapper = {
serializedName: "CreateProjectOptions",
type: {
name: "Composite",
className: "CreateProjectOptions",
modelProperties: {
exportModelContainerUri: {
nullable: false,
serializedName: "exportModelContainerUri",
type: {
name: "String"
}
},
notificationQueueUri: {
nullable: false,
serializedName: "notificationQueueUri",
type: {
name: "String"
}
}
}
}
};

export const CustomBaseModelInfo: msRest.CompositeMapper = {
serializedName: "CustomBaseModelInfo",
type: {
name: "Composite",
className: "CustomBaseModelInfo",
modelProperties: {
projectId: {
required: true,
nullable: false,
serializedName: "projectId",
type: {
name: "Uuid"
}
},
iterationId: {
required: true,
nullable: false,
serializedName: "iterationId",
type: {
name: "Uuid"
}
}
}
}
};

export const CustomVisionError: msRest.CompositeMapper = {
serializedName: "CustomVisionError",
type: {
Expand All @@ -75,6 +125,30 @@ export const CustomVisionError: msRest.CompositeMapper = {
}
};

export const ModelInformation: msRest.CompositeMapper = {
serializedName: "ModelInformation",
type: {
name: "Composite",
className: "ModelInformation",
modelProperties: {
estimatedModelSizeInMegabytes: {
serializedName: "estimatedModelSizeInMegabytes",
type: {
name: "Number"
}
},
description: {
required: true,
nullable: false,
serializedName: "description",
type: {
name: "String"
}
}
}
}
};

export const Domain: msRest.CompositeMapper = {
serializedName: "Domain",
type: {
Expand Down Expand Up @@ -120,6 +194,26 @@ export const Domain: msRest.CompositeMapper = {
type: {
name: "Boolean"
}
},
exportablePlatforms: {
readOnly: true,
serializedName: "exportablePlatforms",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
},
modelInformation: {
readOnly: true,
serializedName: "modelInformation",
type: {
name: "Composite",
className: "ModelInformation"
}
}
}
}
Expand Down Expand Up @@ -1582,6 +1676,21 @@ export const Iteration: msRest.CompositeMapper = {
type: {
name: "String"
}
},
customBaseModelInfo: {
readOnly: true,
serializedName: "customBaseModelInfo",
type: {
name: "Composite",
className: "CustomBaseModelInfo"
}
},
trainingErrorDetails: {
readOnly: true,
serializedName: "trainingErrorDetails",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -1992,6 +2101,22 @@ export const ProjectSettings: msRest.CompositeMapper = {
name: "Composite",
className: "ImageProcessingSettings"
}
},
exportModelContainerUri: {
nullable: true,
readOnly: true,
serializedName: "exportModelContainerUri",
type: {
name: "String"
}
},
notificationQueueUri: {
nullable: true,
readOnly: true,
serializedName: "notificationQueueUri",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -2486,6 +2611,13 @@ export const TrainingParameters: msRest.CompositeMapper = {
}
}
}
},
customBaseModelInfo: {
serializedName: "customBaseModelInfo",
type: {
name: "Composite",
className: "CustomBaseModelInfo"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down Expand Up @@ -519,25 +518,25 @@ class TrainingAPIClient extends TrainingAPIClientContext {
* @summary Update metadata of images.
* @param projectId The project id.
* @param imageIds The list of image ids to update. Limited to 64.
* @param metadata The metadata to be updated to the specified images. Limited to 50 key-value
* pairs per image. The length of key is limited to 256. The length of value is limited to 512.
* @param 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wont this change in limit be a breaking change for the users? Or is it the case that things were wrongly documented before?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ramya-rao-a Yes, this is a documentation only fix, nothing is changing in the service. We released with the lower limits, so this isn't breaking.

* @param [options] The optional parameters
* @returns Promise<Models.UpdateImageMetadataResponse>
*/
updateImageMetadata(projectId: string, imageIds: string[], metadata: { [propertyName: string]: string }, options?: msRest.RequestOptionsBase): Promise<Models.UpdateImageMetadataResponse>;
/**
* @param projectId The project id.
* @param imageIds The list of image ids to update. Limited to 64.
* @param metadata The metadata to be updated to the specified images. Limited to 50 key-value
* pairs per image. The length of key is limited to 256. The length of value is limited to 512.
* @param 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.
* @param callback The callback
*/
updateImageMetadata(projectId: string, imageIds: string[], metadata: { [propertyName: string]: string }, callback: msRest.ServiceCallback<Models.ImageMetadataUpdateSummary>): void;
/**
* @param projectId The project id.
* @param imageIds The list of image ids to update. Limited to 64.
* @param metadata The metadata to be updated to the specified images. Limited to 50 key-value
* pairs per image. The length of key is limited to 256. The length of value is limited to 512.
* @param 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.
* @param options The optional parameters
* @param callback The callback
*/
Expand Down Expand Up @@ -1136,7 +1135,7 @@ class TrainingAPIClient extends TrainingAPIClientContext {
* @param projectId The project id.
* @param iterationId The iteration id.
* @param platform The target platform. Possible values include: 'CoreML', 'TensorFlow',
* 'DockerFile', 'ONNX', 'VAIDK'
* 'DockerFile', 'ONNX', 'VAIDK', 'OpenVino'
* @param [options] The optional parameters
* @returns Promise<Models.ExportIterationResponse>
*/
Expand All @@ -1145,15 +1144,15 @@ class TrainingAPIClient extends TrainingAPIClientContext {
* @param projectId The project id.
* @param iterationId The iteration id.
* @param platform The target platform. Possible values include: 'CoreML', 'TensorFlow',
* 'DockerFile', 'ONNX', 'VAIDK'
* 'DockerFile', 'ONNX', 'VAIDK', 'OpenVino'
* @param callback The callback
*/
exportIteration(projectId: string, iterationId: string, platform: Models.Platform, callback: msRest.ServiceCallback<Models.ExportModel>): void;
/**
* @param projectId The project id.
* @param iterationId The iteration id.
* @param platform The target platform. Possible values include: 'CoreML', 'TensorFlow',
* 'DockerFile', 'ONNX', 'VAIDK'
* 'DockerFile', 'ONNX', 'VAIDK', 'OpenVino'
* @param options The optional parameters
* @param callback The callback
*/
Expand Down Expand Up @@ -1829,6 +1828,13 @@ const createProjectOperationSpec: msRest.OperationSpec = {
Parameters.classificationType,
Parameters.targetExportPlatforms
],
requestBody: {
parameterPath: [
"options",
"options"
],
mapper: Mappers.CreateProjectOptions
},
responses: {
200: {
bodyMapper: Mappers.Project
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand All @@ -11,7 +10,7 @@
import * as msRest from "@azure/ms-rest-js";

const packageName = "@azure/cognitiveservices-customvision-training";
const packageVersion = "5.1.2";
const packageVersion = "5.2.0";

export class TrainingAPIClientContext extends msRest.ServiceClient {
endpoint: string;
Expand Down Expand Up @@ -42,7 +41,7 @@ export class TrainingAPIClientContext extends msRest.ServiceClient {

super(credentials, options);

this.baseUri = "{Endpoint}/customvision/v3.3/training";
this.baseUri = "{Endpoint}/customvision/v3.4-preview/training";
this.requestContentType = "application/json; charset=utf-8";
this.endpoint = endpoint;
this.credentials = credentials;
Expand Down