Skip to content

Commit bc06c6a

Browse files
Merge pull request #11 from Microsoft/sharad/v0.7
updated to v0.7 API
2 parents acb1ad4 + 1ff4ac1 commit bc06c6a

42 files changed

Lines changed: 599 additions & 282 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
3-
* the MIT License. See LICENSE in the project root for license information.
4-
* <autogenerated> This file was generated using AutoRest. </autogenerated>
5-
*/
6-
7-
'use strict';
8-
9-
/**
10-
* @class
11-
* Initializes a new instance of the GetTopicNameResponse class.
12-
* @constructor
13-
* Response from get topic name
14-
* @member {string} topicHandle Gets or sets topic handle of the response
15-
*
16-
*/
17-
function GetTopicNameResponse() {
18-
}
19-
20-
/**
21-
* Defines the metadata of GetTopicNameResponse
22-
*
23-
* @returns {object} metadata of GetTopicNameResponse
24-
*
25-
*/
26-
GetTopicNameResponse.prototype.mapper = function () {
27-
return {
28-
required: false,
29-
serializedName: 'GetTopicNameResponse',
30-
type: {
31-
name: 'Composite',
32-
className: 'GetTopicNameResponse',
33-
modelProperties: {
34-
topicHandle: {
35-
required: true,
36-
serializedName: 'topicHandle',
37-
type: {
38-
name: 'String'
39-
}
40-
}
41-
}
42-
}
43-
};
44-
};
45-
46-
module.exports = GetTopicNameResponse;
1+
/*
2+
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
3+
* the MIT License. See LICENSE in the project root for license information.
4+
* <autogenerated> This file was generated using AutoRest. </autogenerated>
5+
*/
6+
7+
'use strict';
8+
9+
/**
10+
* @class
11+
* Initializes a new instance of the GetTopicByNameResponse class.
12+
* @constructor
13+
* Response from get topic by name
14+
* @member {string} topicHandle Gets or sets topic handle of the response
15+
*
16+
*/
17+
function GetTopicByNameResponse() {
18+
}
19+
20+
/**
21+
* Defines the metadata of GetTopicByNameResponse
22+
*
23+
* @returns {object} metadata of GetTopicByNameResponse
24+
*
25+
*/
26+
GetTopicByNameResponse.prototype.mapper = function () {
27+
return {
28+
required: false,
29+
serializedName: 'GetTopicByNameResponse',
30+
type: {
31+
name: 'Composite',
32+
className: 'GetTopicByNameResponse',
33+
modelProperties: {
34+
topicHandle: {
35+
required: true,
36+
serializedName: 'topicHandle',
37+
type: {
38+
name: 'String'
39+
}
40+
}
41+
}
42+
}
43+
};
44+
};
45+
46+
module.exports = GetTopicByNameResponse;

models/index.d.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -555,15 +555,16 @@ export interface TopicView {
555555
* Initializes a new instance of the PutPushRegistrationRequest class.
556556
* @constructor
557557
* Request to put push registration (register or update)
558-
* @member {date} lastUpdatedTime Gets or sets last updated time from the OS
558+
* @member {string} lastUpdatedTime Gets or sets last updated time from the OS
559+
* in ISO 8601 format.
559560
* This is used to expire out registrations that have not been
560561
* updated every 30 days.
561562
*
562563
* @member {string} language Gets or sets language of the user
563564
*
564565
*/
565566
export interface PutPushRegistrationRequest {
566-
lastUpdatedTime: Date;
567+
lastUpdatedTime: string;
567568
language: string;
568569
}
569570

@@ -901,13 +902,13 @@ export interface DeleteTopicNameRequest {
901902

902903
/**
903904
* @class
904-
* Initializes a new instance of the GetTopicNameResponse class.
905+
* Initializes a new instance of the GetTopicByNameResponse class.
905906
* @constructor
906-
* Response from get topic name
907+
* Response from get topic by name
907908
* @member {string} topicHandle Gets or sets topic handle of the response
908909
*
909910
*/
910-
export interface GetTopicNameResponse {
911+
export interface GetTopicByNameResponse {
911912
topicHandle: string;
912913
}
913914

models/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ exports.PutTopicRequest = require('./putTopicRequest');
4747
exports.PostTopicNameRequest = require('./postTopicNameRequest');
4848
exports.PutTopicNameRequest = require('./putTopicNameRequest');
4949
exports.DeleteTopicNameRequest = require('./deleteTopicNameRequest');
50-
exports.GetTopicNameResponse = require('./getTopicNameResponse');
50+
exports.GetTopicByNameResponse = require('./getTopicByNameResponse');
5151
exports.PostLinkedAccountRequest = require('./postLinkedAccountRequest');
5252
exports.LinkedAccountView = require('./linkedAccountView');
5353
exports.PostUserRequest = require('./postUserRequest');

models/putPushRegistrationRequest.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
* Initializes a new instance of the PutPushRegistrationRequest class.
1212
* @constructor
1313
* Request to put push registration (register or update)
14-
* @member {date} lastUpdatedTime Gets or sets last updated time from the OS
14+
* @member {string} lastUpdatedTime Gets or sets last updated time from the OS
15+
* in ISO 8601 format.
1516
* This is used to expire out registrations that have not been
1617
* updated every 30 days.
1718
*
@@ -39,7 +40,7 @@ PutPushRegistrationRequest.prototype.mapper = function () {
3940
required: true,
4041
serializedName: 'lastUpdatedTime',
4142
type: {
42-
name: 'DateTime'
43+
name: 'String'
4344
}
4445
},
4546
language: {

operations/blobs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Blobs.prototype.postBlob = function (authorization, blob, options, callback) {
9090

9191
// Construct URL
9292
var requestUrl = this.client.baseUri +
93-
'//v0.5/blobs';
93+
'//v0.7/blobs';
9494
// trim all duplicate forward slashes in the url
9595
var regex = /([^:]\/)\/+/gi;
9696
requestUrl = requestUrl.replace(regex, '$1');
@@ -229,7 +229,7 @@ Blobs.prototype.getBlob = function (blobHandle, authorization, options, callback
229229

230230
// Construct URL
231231
var requestUrl = this.client.baseUri +
232-
'//v0.5/blobs/{blobHandle}';
232+
'//v0.7/blobs/{blobHandle}';
233233
requestUrl = requestUrl.replace('{blobHandle}', encodeURIComponent(blobHandle));
234234
// trim all duplicate forward slashes in the url
235235
var regex = /([^:]\/)\/+/gi;

operations/builds.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Builds.prototype.getBuildsCurrent = function (options, callback) {
5959

6060
// Construct URL
6161
var requestUrl = this.client.baseUri +
62-
'//v0.5/builds/current';
62+
'//v0.7/builds/current';
6363
// trim all duplicate forward slashes in the url
6464
var regex = /([^:]\/)\/+/gi;
6565
requestUrl = requestUrl.replace(regex, '$1');

operations/commentLikes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ CommentLikes.prototype.getLikes = function (commentHandle, authorization, option
100100

101101
// Construct URL
102102
var requestUrl = this.client.baseUri +
103-
'//v0.5/comments/{commentHandle}/likes';
103+
'//v0.7/comments/{commentHandle}/likes';
104104
requestUrl = requestUrl.replace('{commentHandle}', encodeURIComponent(commentHandle));
105105
var queryParameters = [];
106106
if (cursor !== null && cursor !== undefined) {
@@ -248,7 +248,7 @@ CommentLikes.prototype.postLike = function (commentHandle, authorization, option
248248

249249
// Construct URL
250250
var requestUrl = this.client.baseUri +
251-
'//v0.5/comments/{commentHandle}/likes';
251+
'//v0.7/comments/{commentHandle}/likes';
252252
requestUrl = requestUrl.replace('{commentHandle}', encodeURIComponent(commentHandle));
253253
// trim all duplicate forward slashes in the url
254254
var regex = /([^:]\/)\/+/gi;
@@ -392,7 +392,7 @@ CommentLikes.prototype.deleteLike = function (commentHandle, authorization, opti
392392

393393
// Construct URL
394394
var requestUrl = this.client.baseUri +
395-
'//v0.5/comments/{commentHandle}/likes/me';
395+
'//v0.7/comments/{commentHandle}/likes/me';
396396
requestUrl = requestUrl.replace('{commentHandle}', encodeURIComponent(commentHandle));
397397
// trim all duplicate forward slashes in the url
398398
var regex = /([^:]\/)\/+/gi;

operations/commentReplies.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ CommentReplies.prototype.getReplies = function (commentHandle, authorization, op
9999

100100
// Construct URL
101101
var requestUrl = this.client.baseUri +
102-
'//v0.5/comments/{commentHandle}/replies';
102+
'//v0.7/comments/{commentHandle}/replies';
103103
requestUrl = requestUrl.replace('{commentHandle}', encodeURIComponent(commentHandle));
104104
var queryParameters = [];
105105
if (cursor !== null && cursor !== undefined) {
@@ -257,7 +257,7 @@ CommentReplies.prototype.postReply = function (commentHandle, request, authoriza
257257

258258
// Construct URL
259259
var requestUrl = this.client.baseUri +
260-
'//v0.5/comments/{commentHandle}/replies';
260+
'//v0.7/comments/{commentHandle}/replies';
261261
requestUrl = requestUrl.replace('{commentHandle}', encodeURIComponent(commentHandle));
262262
// trim all duplicate forward slashes in the url
263263
var regex = /([^:]\/)\/+/gi;

operations/commentReports.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ CommentReports.prototype.postReport = function (commentHandle, postReportRequest
9797

9898
// Construct URL
9999
var requestUrl = this.client.baseUri +
100-
'//v0.5/comments/{commentHandle}/reports';
100+
'//v0.7/comments/{commentHandle}/reports';
101101
requestUrl = requestUrl.replace('{commentHandle}', encodeURIComponent(commentHandle));
102102
// trim all duplicate forward slashes in the url
103103
var regex = /([^:]\/)\/+/gi;

operations/comments.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Comments.prototype.getComment = function (commentHandle, authorization, options,
8787

8888
// Construct URL
8989
var requestUrl = this.client.baseUri +
90-
'//v0.5/comments/{commentHandle}';
90+
'//v0.7/comments/{commentHandle}';
9191
requestUrl = requestUrl.replace('{commentHandle}', encodeURIComponent(commentHandle));
9292
// trim all duplicate forward slashes in the url
9393
var regex = /([^:]\/)\/+/gi;
@@ -225,7 +225,7 @@ Comments.prototype.deleteComment = function (commentHandle, authorization, optio
225225

226226
// Construct URL
227227
var requestUrl = this.client.baseUri +
228-
'//v0.5/comments/{commentHandle}';
228+
'//v0.7/comments/{commentHandle}';
229229
requestUrl = requestUrl.replace('{commentHandle}', encodeURIComponent(commentHandle));
230230
// trim all duplicate forward slashes in the url
231231
var regex = /([^:]\/)\/+/gi;

0 commit comments

Comments
 (0)