Skip to content

Commit 9918fd6

Browse files
author
SDK Automation
committed
Update from master
1 parent 6eaf41a commit 9918fd6

25 files changed

+3250
-222
lines changed

sdk/machinelearningservices/arm-machinelearningservices/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Microsoft
3+
Copyright (c) 2020 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/machinelearningservices/arm-machinelearningservices/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ npm install @azure/arm-machinelearningservices
1919

2020
##### Install @azure/ms-rest-nodeauth
2121

22+
- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
2223
```bash
23-
npm install @azure/ms-rest-nodeauth
24+
npm install @azure/ms-rest-nodeauth@"^3.0.0"
2425
```
2526

2627
##### Sample code
@@ -95,4 +96,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
9596

9697
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
9798

98-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmachinelearningservices%2Farm-machinelearningservices%2FREADME.png)
99+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/machinelearningservices/arm-machinelearningservices/README.png)

sdk/machinelearningservices/arm-machinelearningservices/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "AzureMachineLearningWorkspaces Library with typescript type definitions for node.js and browser.",
55
"version": "3.0.0",
66
"dependencies": {
7-
"@azure/ms-rest-azure-js": "^1.3.2",
8-
"@azure/ms-rest-js": "^1.8.1",
9-
"tslib": "^1.9.3"
7+
"@azure/ms-rest-azure-js": "^2.0.1",
8+
"@azure/ms-rest-js": "^2.0.4",
9+
"tslib": "^1.10.0"
1010
},
1111
"keywords": [
1212
"node",
@@ -20,11 +20,11 @@
2020
"module": "./esm/azureMachineLearningWorkspaces.js",
2121
"types": "./esm/azureMachineLearningWorkspaces.d.ts",
2222
"devDependencies": {
23-
"typescript": "^3.1.1",
24-
"rollup": "^0.66.2",
25-
"rollup-plugin-node-resolve": "^3.4.0",
23+
"typescript": "^3.5.3",
24+
"rollup": "^1.18.0",
25+
"rollup-plugin-node-resolve": "^5.2.0",
2626
"rollup-plugin-sourcemaps": "^0.4.2",
27-
"uglify-js": "^3.4.9"
27+
"uglify-js": "^3.6.0"
2828
},
2929
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/machinelearningservices/arm-machinelearningservices",
3030
"repository": {

sdk/machinelearningservices/arm-machinelearningservices/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const config = {
2929
*/`
3030
},
3131
plugins: [
32-
nodeResolve({ module: true }),
32+
nodeResolve({ mainFields: ['module', 'main'] }),
3333
sourcemaps()
3434
]
3535
};

sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspaces.ts

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import * as msRest from "@azure/ms-rest-js";
1212
import * as Models from "./models";
1313
import * as Mappers from "./models/mappers";
14+
import * as Parameters from "./models/parameters";
1415
import * as operations from "./operations";
1516
import { AzureMachineLearningWorkspacesContext } from "./azureMachineLearningWorkspacesContext";
1617

@@ -19,9 +20,14 @@ class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesConte
1920
// Operation groups
2021
operations: operations.Operations;
2122
workspaces: operations.Workspaces;
23+
workspaceFeatures: operations.WorkspaceFeatures;
24+
notebooks: operations.Notebooks;
2225
usages: operations.Usages;
2326
virtualMachineSizes: operations.VirtualMachineSizes;
27+
quotas: operations.Quotas;
2428
machineLearningCompute: operations.MachineLearningCompute;
29+
privateEndpointConnections: operations.PrivateEndpointConnections;
30+
privateLinkResources: operations.PrivateLinkResources;
2531

2632
/**
2733
* Initializes a new instance of the AzureMachineLearningWorkspaces class.
@@ -33,13 +39,114 @@ class AzureMachineLearningWorkspaces extends AzureMachineLearningWorkspacesConte
3339
super(credentials, subscriptionId, options);
3440
this.operations = new operations.Operations(this);
3541
this.workspaces = new operations.Workspaces(this);
42+
this.workspaceFeatures = new operations.WorkspaceFeatures(this);
43+
this.notebooks = new operations.Notebooks(this);
3644
this.usages = new operations.Usages(this);
3745
this.virtualMachineSizes = new operations.VirtualMachineSizes(this);
46+
this.quotas = new operations.Quotas(this);
3847
this.machineLearningCompute = new operations.MachineLearningCompute(this);
48+
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
49+
this.privateLinkResources = new operations.PrivateLinkResources(this);
50+
}
51+
52+
/**
53+
* Lists all skus with associated features
54+
* @param [options] The optional parameters
55+
* @returns Promise<Models.ListSkusResponse>
56+
*/
57+
listSkus(options?: msRest.RequestOptionsBase): Promise<Models.ListSkusResponse>;
58+
/**
59+
* @param callback The callback
60+
*/
61+
listSkus(callback: msRest.ServiceCallback<Models.SkuListResult>): void;
62+
/**
63+
* @param options The optional parameters
64+
* @param callback The callback
65+
*/
66+
listSkus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SkuListResult>): void;
67+
listSkus(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SkuListResult>, callback?: msRest.ServiceCallback<Models.SkuListResult>): Promise<Models.ListSkusResponse> {
68+
return this.sendOperationRequest(
69+
{
70+
options
71+
},
72+
listSkusOperationSpec,
73+
callback) as Promise<Models.ListSkusResponse>;
74+
}
75+
76+
/**
77+
* Lists all skus with associated features
78+
* @param nextPageLink The NextLink from the previous successful call to List operation.
79+
* @param [options] The optional parameters
80+
* @returns Promise<Models.ListSkusNextResponse>
81+
*/
82+
listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ListSkusNextResponse>;
83+
/**
84+
* @param nextPageLink The NextLink from the previous successful call to List operation.
85+
* @param callback The callback
86+
*/
87+
listSkusNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.SkuListResult>): void;
88+
/**
89+
* @param nextPageLink The NextLink from the previous successful call to List operation.
90+
* @param options The optional parameters
91+
* @param callback The callback
92+
*/
93+
listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SkuListResult>): void;
94+
listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SkuListResult>, callback?: msRest.ServiceCallback<Models.SkuListResult>): Promise<Models.ListSkusNextResponse> {
95+
return this.sendOperationRequest(
96+
{
97+
nextPageLink,
98+
options
99+
},
100+
listSkusNextOperationSpec,
101+
callback) as Promise<Models.ListSkusNextResponse>;
39102
}
40103
}
41104

42105
// Operation Specifications
106+
const serializer = new msRest.Serializer(Mappers);
107+
const listSkusOperationSpec: msRest.OperationSpec = {
108+
httpMethod: "GET",
109+
path: "subscriptions/{subscriptionId}/providers/Microsoft.MachineLearningServices/workspaces/skus",
110+
urlParameters: [
111+
Parameters.subscriptionId
112+
],
113+
queryParameters: [
114+
Parameters.apiVersion
115+
],
116+
headerParameters: [
117+
Parameters.acceptLanguage
118+
],
119+
responses: {
120+
200: {
121+
bodyMapper: Mappers.SkuListResult
122+
},
123+
default: {
124+
bodyMapper: Mappers.MachineLearningServiceError
125+
}
126+
},
127+
serializer
128+
};
129+
130+
const listSkusNextOperationSpec: msRest.OperationSpec = {
131+
httpMethod: "GET",
132+
baseUrl: "https://management.azure.com",
133+
path: "{nextLink}",
134+
urlParameters: [
135+
Parameters.nextPageLink
136+
],
137+
headerParameters: [
138+
Parameters.acceptLanguage
139+
],
140+
responses: {
141+
200: {
142+
bodyMapper: Mappers.SkuListResult
143+
},
144+
default: {
145+
bodyMapper: Mappers.MachineLearningServiceError
146+
}
147+
},
148+
serializer
149+
};
43150

44151
export {
45152
AzureMachineLearningWorkspaces,

sdk/machinelearningservices/arm-machinelearningservices/src/azureMachineLearningWorkspacesContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class AzureMachineLearningWorkspacesContext extends msRestAzure.AzureServ
4444

4545
super(credentials, options);
4646

47-
this.apiVersion = '2019-05-01';
47+
this.apiVersion = '2020-04-01';
4848
this.acceptLanguage = 'en-US';
4949
this.longRunningOperationRetryTimeout = 30;
5050
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";

0 commit comments

Comments
 (0)