Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit 25cbb30

Browse files
authored
Merge pull request #1863 from amarzavery/kv
bulk update-2
2 parents 41314a8 + 269be2c commit 25cbb30

File tree

152 files changed

+21555
-1925
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+21555
-1925
lines changed

.travis.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
language: node_js
22
sudo: false
33
node_js:
4-
- "4.2"
5-
- "0.12"
4+
- "4"
65

7-
matrix:
8-
allow_failures:
6+
#matrix:
7+
# allow_failures:
98

109
# setup links to submodules
1110
before_install:

Documentation/RegeneratingCode.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
- Regenertion command options
1212
- If you want to regenerate all the services then execute `gulp codegen`
1313
- If you want to generate for your project then execute `gulp codegen --project <your project name a.k.a the key of the mappings object>`
14-
- If you want to use a local file then save the file locally say "D:\sdk" and make sure to have the same path as defined in the source of your porject in the mappings object. Execute `gulp codegen --spec-root "D:\sdk" --project <your-project-name>`.
14+
- If you want to use a local file then save the file locally say "D:\sdk" and make sure to have the same path as defined in the source of your project in the mappings object. Execute `gulp codegen --spec-root "D:\sdk" --project <your-project-name>`.
1515
- If generation is successful then you will see the generated code in the lib folder under `lib/services/<YourServiceName>`
16-
- Make sure you have License.txt, README.md and package.json file. Take a look at [StorageManagement2](https://github.com/Azure/azure-sdk-for-node/tree/master/lib/services/storageManagement2) as an example.
17-
- **Please make sure to have accurate examples in README.md as that is what customers will see when they search for your service package on https://npmjs.com**
18-
- Once your PR is merged into the master branch, you can publish your package to npm by following the instructions in "step 6" over [here](https://github.com/Azure/adx-documentation-pr/blob/master/clis/azure-cli/guide.md#hydra-specs-pr----node-sdk----xplat-cli)
16+
- Make sure you have License.txt (MIT), README.md and package.json file. Take a look at [StorageManagement2](https://github.com/Azure/azure-sdk-for-node/tree/master/lib/services/storageManagement2) as an example.
17+
- **Please make sure to have accurate examples in README.md as that is what customers will see when they search for your client libraries on [npm](https://npmjs.com).**
18+
- Please make sure that the version in your service's package.json is also reflected in the rollup package.json (i.e. azure-sdk-for-node/package.json)
19+
- If you are adding a brand new client library or adding a new client to your library then please make sure that a function to create a client for your service is exported in the rollup azure file (azure-sdk-for-node/lib/azure.js). You can take a look at an exported function as an example over [here](https://github.com/Azure/azure-sdk-for-node/blob/master/lib/azure.js#L1640).
20+
- Once your PR is merged into the master branch, you can publish your package to npm by following the instructions in "step 6" over [here](https://github.com/Azure/adx-documentation-pr/blob/master/clis/azure-cli/guide.md#swagger-specs---using-autorest----node-sdk--------azure-cli)

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,30 @@ npm install azure
3535
| &nbsp; | |
3636
| **Azure Resource Management (ARM)** |
3737
| [Authorization](https://azure.microsoft.com/en-us/documentation/articles/role-based-access-control-configure/) | `npm install azure-arm-authorization` |
38+
| [Batch](https://azure.microsoft.com/en-us/services/batch/) | `npm install azure-arm-batch` |
3839
| [CDN](https://azure.microsoft.com/en-us/services/cdn/) | `npm install azure-arm-cdn`|
40+
| [Commerce/Billing/Usage](https://azure.microsoft.com/en-us/documentation/articles/billing-usage-rate-card-overview/) | `npm install azure-arm-commerce`|
3941
| [Compute](http://azure.microsoft.com/en-us/services/virtual-machines/) | `npm install azure-arm-compute`|
4042
| [Datalake Analytics](https://azure.microsoft.com/en-us/services/data-lake-analytics/) | `azure-arm-datalake-analytics` |
4143
| [Datalake Storage](https://azure.microsoft.com/en-us/services/data-lake-store/) | `azure-arm-datalake-storage` |
4244
| [DNS](http://azure.microsoft.com/en-us/services/dns/) | `npm install azure-arm-dns` |
45+
| [DevTest Labs](https://azure.microsoft.com/en-us/services/devtest-lab/) | `npm install azure-arm-devtestlabs` |
46+
| [EventHubs](https://azure.microsoft.com/en-us/services/event-hubs/) | `azure-arm-eventhub` |
47+
| [HDInsight](http://azure.microsoft.com/en-us/services/hdinsight/) | `npm install azure-arm-hdinsight` |
48+
| [HDInsightJobs](https://msdn.microsoft.com/en-us/library/azure/mt613023.aspx) | `azure-arm-hdinsight-jobs` |
4349
| [Insights](https://msdn.microsoft.com/en-us/library/azure/dn931943.aspx) | `npm install azure-arm-insights` |
50+
| [IotHub](https://azure.microsoft.com/en-us/documentation/services/iot-hub/) | `npm install azure-arm-iothub` |
4451
| [Key Vault](http://azure.microsoft.com/en-us/services/key-vault/) | `npm install azure-arm-keyvault` |
52+
| [Notification Hubs](https://azure.microsoft.com/en-us/documentation/services/notification-hubs/) | `azure-arm-notificationhubs` |
53+
| [PowerBi Embedded](https://azure.microsoft.com/en-us/services/power-bi-embedded/) | `azure-arm-powerbiembedded` |
4554
| [Redis Cache](https://azure.microsoft.com/en-us/services/cache/) | `npm install azure-arm-rediscache` |
4655
| [Resource Manager](https://azure.microsoft.com/en-us/documentation/articles/resource-group-overview/) | `npm install azure-arm-resource` |
56+
| [ServerManagement](https://azure.microsoft.com/en-us/documentation/articles/resource-group-overview/) | `azure-arm-servermanagement` |
57+
| [Servicebus](https://msdn.microsoft.com/en-us/library/mt639375.aspx) | `azure-arm-sb` |
4758
| [Storage](http://azure.microsoft.com/en-us/services/storage/) | `npm install azure-arm-storage` |
4859
| [Traffic Manager](http://azure.microsoft.com/en-us/services/traffic-manager/) | `npm install azure-arm-trafficManager`|
4960
| [Virtual Networks](http://azure.microsoft.com/en-us/services/virtual-network/) | `npm install azure-arm-network` |
5061
| [WebApps (WebSites)](http://azure.microsoft.com/en-us/services/app-service/web/) | `npm install azure-arm-website` |
51-
| [Batch](https://azure.microsoft.com/en-us/services/batch/) | `npm install azure-arm-batch` |
5262
| &nbsp; | |
5363
| **Azure Service Management (ASM)** |
5464
| [Compute](http://azure.microsoft.com/en-us/services/virtual-machines/) | `npm install azure-asm-compute` |

gulpfile.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,18 @@ var mappings = {
5353
'dir': 'dataLake.Store/lib/filesystem',
5454
'source': 'arm-datalake-store/filesystem/2015-10-01-preview/swagger/filesystem.json'
5555
},
56-
'devTestLabs': {
56+
'devtestlabs': {
5757
'dir': 'devTestLabs/lib',
58-
'source': 'arm-devtestlabs/2015-05-21-preview/swagger/DTL.json'
58+
'source': 'arm-devtestlabs/2016-05-15/swagger/DTL.json'
5959
},
6060
'dns': {
6161
'dir': 'dnsManagement/lib',
6262
'source': 'arm-dns/2016-04-01/swagger/dns.json'
6363
},
64+
'eventhub': {
65+
'dir': 'eventHubManagement/lib',
66+
'source': 'arm-eventhub/2015-08-01/swagger/EventHub.json'
67+
},
6468
'graph': {
6569
'dir': 'graphManagement/lib',
6670
'source': 'arm-graphrbac/compositeGraphRbacManagementClient.json',
@@ -128,6 +132,10 @@ var mappings = {
128132
'dir': 'servermanagement/lib',
129133
'source': 'arm-servermanagement/2015-07-01-preview/servermanagement.json'
130134
},
135+
'servicebus.management': {
136+
'dir': 'serviceBusManagement2/lib',
137+
'source': 'arm-servicebus/2015-08-01/swagger/servicebus.json'
138+
},
131139
'serviceFabric': {
132140
'dir': 'serviceFabric/lib',
133141
'source': 'servicefabric/2016-01-28/swagger/servicefabric.json',

lib/services/authorizationManagement/package.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"contributors": [
55
"Shubham Agarwal, <[email protected]>"
66
],
7-
"version": "3.1.0",
7+
"version": "3.1.1",
88
"description": "Microsoft Azure Authorization Management Client Library for node",
99
"tags": [
1010
"azure",
@@ -15,12 +15,7 @@
1515
"azure"
1616
],
1717
"main": "./lib/authorizationManagementClient.js",
18-
"licenses": [
19-
{
20-
"type": "MIT",
21-
"url": "http://www.apache.org/licenses/LICENSE-2.0"
22-
}
23-
],
18+
"license": "MIT",
2419
"dependencies": {
2520
"ms-rest-azure": "^1.14.0",
2621
"ms-rest": "^1.14.0"

lib/services/devTestLabs/lib/devTestLabsClient.d.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ declare class DevTestLabsClient {
1717
* Initializes a new instance of the DevTestLabsClient class.
1818
* @constructor
1919
*
20-
* @param {credentials} credentials - Gets Azure subscription credentials.
20+
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
2121
*
2222
* @param {string} subscriptionId - The subscription ID.
2323
*
@@ -59,7 +59,6 @@ declare class DevTestLabsClient {
5959
labOperations: operations.LabOperations;
6060
artifactSourceOperations: operations.ArtifactSourceOperations;
6161
artifactOperations: operations.ArtifactOperations;
62-
costInsightOperations: operations.CostInsightOperations;
6362
costOperations: operations.CostOperations;
6463
customImageOperations: operations.CustomImageOperations;
6564
formulaOperations: operations.FormulaOperations;

lib/services/devTestLabs/lib/devTestLabsClient.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var operations = require('./operations');
2727
* Initializes a new instance of the DevTestLabsClient class.
2828
* @constructor
2929
*
30-
* @param {credentials} credentials - Gets Azure subscription credentials.
30+
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
3131
*
3232
* @param {string} subscriptionId - The subscription ID.
3333
*
@@ -52,7 +52,7 @@ var operations = require('./operations');
5252
*
5353
*/
5454
function DevTestLabsClient(credentials, subscriptionId, baseUri, options) {
55-
this.apiVersion = '2015-05-21-preview';
55+
this.apiVersion = '2016-05-15';
5656
this.acceptLanguage = 'en-US';
5757
this.longRunningOperationRetryTimeout = 30;
5858
this.generateClientRequestId = true;
@@ -88,7 +88,6 @@ function DevTestLabsClient(credentials, subscriptionId, baseUri, options) {
8888
this.labOperations = new operations.LabOperations(this);
8989
this.artifactSourceOperations = new operations.ArtifactSourceOperations(this);
9090
this.artifactOperations = new operations.ArtifactOperations(this);
91-
this.costInsightOperations = new operations.CostInsightOperations(this);
9291
this.costOperations = new operations.CostOperations(this);
9392
this.customImageOperations = new operations.CustomImageOperations(this);
9493
this.formulaOperations = new operations.FormulaOperations(this);

lib/services/devTestLabs/lib/models/applyArtifactsRequest.js

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ var util = require('util');
1919
* Initializes a new instance of the ApplyArtifactsRequest class.
2020
* @constructor
2121
* Request body for applying artifacts to a virtual machine.
22+
*
2223
* @member {array} [artifacts] The list of artifacts to apply.
2324
*
2425
*/

lib/services/devTestLabs/lib/models/armTemplateInfo.js

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* Initializes a new instance of the ArmTemplateInfo class.
1616
* @constructor
1717
* Information about a generated ARM template.
18+
*
1819
* @member {object} [template] The template's contents.
1920
*
2021
* @member {object} [parameters] The parameters of the ARM template.

lib/services/devTestLabs/lib/models/artifact.js

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ var util = require('util');
1919
* Initializes a new instance of the Artifact class.
2020
* @constructor
2121
* An artifact.
22+
*
2223
* @member {string} [title] The title of the artifact.
2324
*
2425
* @member {string} [description] The description of the artifact.

lib/services/devTestLabs/lib/models/artifactDeploymentStatusProperties.js

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* Initializes a new instance of the ArtifactDeploymentStatusProperties class.
1616
* @constructor
1717
* Properties of an artifact deployment.
18+
*
1819
* @member {string} [deploymentStatus] The deployment status of the artifact.
1920
*
2021
* @member {number} [artifactsApplied] The total count of the artifacts that

lib/services/devTestLabs/lib/models/artifactInstallProperties.js

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ var util = require('util');
1919
* Initializes a new instance of the ArtifactInstallProperties class.
2020
* @constructor
2121
* Properties of an artifact.
22+
*
2223
* @member {string} [artifactId] The artifact's identifier.
2324
*
2425
* @member {array} [parameters] The parameters of the artifact.

lib/services/devTestLabs/lib/models/artifactParameterProperties.js

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* Initializes a new instance of the ArtifactParameterProperties class.
1616
* @constructor
1717
* Properties of an artifact parameter.
18+
*
1819
* @member {string} [name] The name of the artifact parameter.
1920
*
2021
* @member {string} [value] The value of the artifact parameter.

lib/services/devTestLabs/lib/models/artifactSource.js

+11
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ var util = require('util');
1919
* Initializes a new instance of the ArtifactSource class.
2020
* @constructor
2121
* Properties of an artifact source.
22+
*
2223
* @member {string} [displayName] The display name of the artifact source.
2324
*
2425
* @member {string} [uri] The URI of the artifact source.
@@ -38,6 +39,9 @@ var util = require('util');
3839
* @member {string} [provisioningState] The provisioning status of the
3940
* resource.
4041
*
42+
* @member {string} [uniqueIdentifier] The unique immutable identifier of a
43+
* resource (Guid).
44+
*
4145
* @member {string} [id] The identifier of the resource.
4246
*
4347
* @member {string} [name] The name of the resource.
@@ -125,6 +129,13 @@ ArtifactSource.prototype.mapper = function () {
125129
name: 'String'
126130
}
127131
},
132+
uniqueIdentifier: {
133+
required: false,
134+
serializedName: 'properties.uniqueIdentifier',
135+
type: {
136+
name: 'String'
137+
}
138+
},
128139
id: {
129140
required: false,
130141
serializedName: 'id',

lib/services/devTestLabs/lib/models/cost.js

+20-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ var util = require('util');
1919
* Initializes a new instance of the Cost class.
2020
* @constructor
2121
* A cost item.
22+
*
2223
* @member {string} [currencyCode] The currency code of the cost.
2324
*
24-
* @member {array} [costs] The per-day costs items of the cost.
25+
* @member {array} [costs] The lab cost component of the cost data.
26+
*
27+
* @member {array} [resourceCosts] The resource cost component of the cost
28+
* data.
2529
*
2630
* @member {string} [id] The identifier of the resource.
2731
*
@@ -76,6 +80,21 @@ Cost.prototype.mapper = function () {
7680
}
7781
}
7882
},
83+
resourceCosts: {
84+
required: false,
85+
serializedName: 'properties.resourceCosts',
86+
type: {
87+
name: 'Sequence',
88+
element: {
89+
required: false,
90+
serializedName: 'ResourceCostPropertiesElementType',
91+
type: {
92+
name: 'Composite',
93+
className: 'ResourceCostProperties'
94+
}
95+
}
96+
}
97+
},
7998
id: {
8099
required: false,
81100
serializedName: 'id',

lib/services/devTestLabs/lib/models/costPerDayProperties.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
* @class
1515
* Initializes a new instance of the CostPerDayProperties class.
1616
* @constructor
17-
* The per-day properties of a cost item.
17+
* The properties of a lab cost item.
18+
*
1819
* @member {date} [date] The date of the cost item.
1920
*
20-
* @member {number} [cost] The cost of the cost item.
21+
* @member {number} [cost] The cost component of the cost item.
2122
*
2223
* @member {string} [costType] The type of the cost. Possible values include:
2324
* 'Unavailable', 'Reported', 'Projected'

lib/services/devTestLabs/lib/models/customImage.js

+14-13
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@ var util = require('util');
1919
* Initializes a new instance of the CustomImage class.
2020
* @constructor
2121
* A custom image.
22+
*
2223
* @member {object} [vm]
2324
*
2425
* @member {string} [vm.sourceVmId] The source vm identifier.
2526
*
26-
* @member {boolean} [vm.sysPrep] Indicates whether sysprep has been run on
27-
* the VHD.
28-
*
2927
* @member {object} [vm.windowsOsInfo] The Windows OS information of the VM.
3028
*
3129
* @member {string} [vm.windowsOsInfo.windowsOsState] The state of the Windows
@@ -45,10 +43,10 @@ var util = require('util');
4543
* @member {boolean} [vhd.sysPrep] Indicates whether sysprep has been run on
4644
* the VHD.
4745
*
48-
* @member {string} [description] The description of the custom image.
46+
* @member {string} [vhd.osType] The OS type of the custom image. Possible
47+
* values include: 'Windows', 'Linux', 'None'
4948
*
50-
* @member {string} [osType] The OS type of the custom image. Possible values
51-
* include: 'Windows', 'Linux', 'None'
49+
* @member {string} [description] The description of the custom image.
5250
*
5351
* @member {string} [author] The author of the custom image.
5452
*
@@ -57,6 +55,9 @@ var util = require('util');
5755
* @member {string} [provisioningState] The provisioning status of the
5856
* resource.
5957
*
58+
* @member {string} [uniqueIdentifier] The unique immutable identifier of a
59+
* resource (Guid).
60+
*
6061
* @member {string} [id] The identifier of the resource.
6162
*
6263
* @member {string} [name] The name of the resource.
@@ -111,13 +112,6 @@ CustomImage.prototype.mapper = function () {
111112
name: 'String'
112113
}
113114
},
114-
osType: {
115-
required: false,
116-
serializedName: 'properties.osType',
117-
type: {
118-
name: 'String'
119-
}
120-
},
121115
author: {
122116
required: false,
123117
serializedName: 'properties.author',
@@ -139,6 +133,13 @@ CustomImage.prototype.mapper = function () {
139133
name: 'String'
140134
}
141135
},
136+
uniqueIdentifier: {
137+
required: false,
138+
serializedName: 'properties.uniqueIdentifier',
139+
type: {
140+
name: 'String'
141+
}
142+
},
142143
id: {
143144
required: false,
144145
serializedName: 'id',

lib/services/devTestLabs/lib/models/customImagePropertiesCustom.js

+11
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@
1515
* Initializes a new instance of the CustomImagePropertiesCustom class.
1616
* @constructor
1717
* Properties for creating a custom image from a VHD.
18+
*
1819
* @member {string} [imageName] The image name.
1920
*
2021
* @member {boolean} [sysPrep] Indicates whether sysprep has been run on the
2122
* VHD.
2223
*
24+
* @member {string} [osType] The OS type of the custom image. Possible values
25+
* include: 'Windows', 'Linux', 'None'
26+
*
2327
*/
2428
function CustomImagePropertiesCustom() {
2529
}
@@ -51,6 +55,13 @@ CustomImagePropertiesCustom.prototype.mapper = function () {
5155
type: {
5256
name: 'Boolean'
5357
}
58+
},
59+
osType: {
60+
required: false,
61+
serializedName: 'osType',
62+
type: {
63+
name: 'String'
64+
}
5465
}
5566
}
5667
}

0 commit comments

Comments
 (0)