Skip to content

Commit

Permalink
Deprecate two old functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Qinyuan Wan committed Apr 27, 2016
1 parent 46b1540 commit 2f7d3e4
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ LRORetrys.prototype.put201CreatingSucceeded200 = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -334,7 +334,7 @@ LRORetrys.prototype.putAsyncRelativeRetrySucceeded = function (options, callback
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -562,7 +562,7 @@ LRORetrys.prototype.deleteProvisioning202Accepted200Succeeded = function (option
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -782,7 +782,7 @@ LRORetrys.prototype.delete202Retry200 = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -952,7 +952,7 @@ LRORetrys.prototype.deleteAsyncRelativeRetrySucceeded = function (options, callb
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -1130,7 +1130,7 @@ LRORetrys.prototype.post202Retry200 = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -1332,7 +1332,7 @@ LRORetrys.prototype.postAsyncRelativeRetrySucceeded = function (options, callbac
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -1485,4 +1485,4 @@ LRORetrys.prototype.beginPostAsyncRelativeRetrySucceeded = function (options, ca
};


module.exports = LRORetrys;
module.exports = LRORetrys;
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ LROSADs.prototype.putNonRetry400 = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -326,7 +326,7 @@ LROSADs.prototype.putNonRetry201Creating400 = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -576,7 +576,7 @@ LROSADs.prototype.putAsyncRelativeRetry400 = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -799,7 +799,7 @@ LROSADs.prototype.deleteNonRetry400 = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -965,7 +965,7 @@ LROSADs.prototype.delete202NonRetry400 = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -1133,7 +1133,7 @@ LROSADs.prototype.deleteAsyncRelativeRetry400 = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -1309,7 +1309,7 @@ LROSADs.prototype.postNonRetry400 = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -1506,7 +1506,7 @@ LROSADs.prototype.post202NonRetry400 = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -1705,7 +1705,7 @@ LROSADs.prototype.postAsyncRelativeRetry400 = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -1906,7 +1906,7 @@ LROSADs.prototype.putError201NoProvisioningStatePayload = function (options, cal
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -2156,7 +2156,7 @@ LROSADs.prototype.putAsyncRelativeRetryNoStatus = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -2390,7 +2390,7 @@ LROSADs.prototype.putAsyncRelativeRetryNoStatusPayload = function (options, call
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -2614,7 +2614,7 @@ LROSADs.prototype.delete204Succeeded = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -2783,7 +2783,7 @@ LROSADs.prototype.deleteAsyncRelativeRetryNoStatus = function (options, callback
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -2960,7 +2960,7 @@ LROSADs.prototype.post202NoLocation = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -3160,7 +3160,7 @@ LROSADs.prototype.postAsyncRelativeRetryNoPayload = function (options, callback)
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -3361,7 +3361,7 @@ LROSADs.prototype.put200InvalidJson = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -3594,7 +3594,7 @@ LROSADs.prototype.putAsyncRelativeRetryInvalidHeader = function (options, callba
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -3828,7 +3828,7 @@ LROSADs.prototype.putAsyncRelativeRetryInvalidJsonPolling = function (options, c
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -4052,7 +4052,7 @@ LROSADs.prototype.delete202RetryInvalidHeader = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -4220,7 +4220,7 @@ LROSADs.prototype.deleteAsyncRelativeRetryInvalidHeader = function (options, cal
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -4389,7 +4389,7 @@ LROSADs.prototype.deleteAsyncRelativeRetryInvalidJsonPolling = function (options
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -4566,7 +4566,7 @@ LROSADs.prototype.post202RetryInvalidHeader = function (options, callback) {
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -4766,7 +4766,7 @@ LROSADs.prototype.postAsyncRelativeRetryInvalidHeader = function (options, callb
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -4967,7 +4967,7 @@ LROSADs.prototype.postAsyncRelativeRetryInvalidJsonPolling = function (options,
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);

// Create Result
Expand Down Expand Up @@ -5119,4 +5119,4 @@ LROSADs.prototype.beginPostAsyncRelativeRetryInvalidJsonPolling = function (opti
};


module.exports = LROSADs;
module.exports = LROSADs;
Loading

0 comments on commit 2f7d3e4

Please sign in to comment.