diff --git a/lib/services/cdnManagement/LICENSE.txt b/lib/services/cdnManagement/LICENSE.txt index 5431ba98b9..8f3d856145 100644 --- a/lib/services/cdnManagement/LICENSE.txt +++ b/lib/services/cdnManagement/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/lib/services/cdnManagement/lib/cdnManagementClient.js b/lib/services/cdnManagement/lib/cdnManagementClient.js index 3bfb4f3a8c..1b608cc6a8 100644 --- a/lib/services/cdnManagement/lib/cdnManagementClient.js +++ b/lib/services/cdnManagement/lib/cdnManagementClient.js @@ -536,7 +536,7 @@ class CdnManagementClient extends ServiceClient { super(credentials, options); - this.apiVersion = '2017-10-12'; + this.apiVersion = '2027-12-21'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; diff --git a/lib/services/cdnManagement/lib/operations/index.d.ts b/lib/services/cdnManagement/lib/operations/index.d.ts index 955953fe2e..5fc70e0fc8 100644 --- a/lib/services/cdnManagement/lib/operations/index.d.ts +++ b/lib/services/cdnManagement/lib/operations/index.d.ts @@ -35,7 +35,7 @@ export interface Profiles { * * @reject {Error|ServiceError} - The error object. */ - listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + lOLWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all of the CDN profiles within an Azure subscription. @@ -67,9 +67,9 @@ export interface Profiles { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - list(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - list(callback: ServiceCallback): void; - list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + lOL(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + lOL(callback: ServiceCallback): void; + lOL(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -866,7 +866,7 @@ export interface Profiles { * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + lOLNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all of the CDN profiles within an Azure subscription. @@ -901,9 +901,9 @@ export interface Profiles { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listNext(nextPageLink: string, callback: ServiceCallback): void; - listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + lOLNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + lOLNext(nextPageLink: string, callback: ServiceCallback): void; + lOLNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** diff --git a/lib/services/cdnManagement/lib/operations/profiles.js b/lib/services/cdnManagement/lib/operations/profiles.js index a7ba378f01..e573942f61 100644 --- a/lib/services/cdnManagement/lib/operations/profiles.js +++ b/lib/services/cdnManagement/lib/operations/profiles.js @@ -35,7 +35,7 @@ const WebResource = msRest.WebResource; * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _list(options, callback) { +function _lOL(options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -1810,7 +1810,7 @@ function _beginDeleteMethod(resourceGroupName, profileName, options, callback) { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ -function _listNext(nextPageLink, options, callback) { +function _lOLNext(nextPageLink, options, callback) { /* jshint validthis: true */ let client = this.client; if(!callback && typeof options === 'function') { @@ -2179,7 +2179,7 @@ class Profiles { */ constructor(client) { this.client = client; - this._list = _list; + this._lOL = _lOL; this._listByResourceGroup = _listByResourceGroup; this._get = _get; this._create = _create; @@ -2191,7 +2191,7 @@ class Profiles { this._beginCreate = _beginCreate; this._beginUpdate = _beginUpdate; this._beginDeleteMethod = _beginDeleteMethod; - this._listNext = _listNext; + this._lOLNext = _lOLNext; this._listByResourceGroupNext = _listByResourceGroupNext; this._listResourceUsageNext = _listResourceUsageNext; } @@ -2210,11 +2210,11 @@ class Profiles { * * @reject {Error} - The error object. */ - listWithHttpOperationResponse(options) { + lOLWithHttpOperationResponse(options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._list(options, (err, result, request, response) => { + self._lOL(options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -2254,7 +2254,7 @@ class Profiles { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - list(options, optionalCallback) { + lOL(options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -2263,14 +2263,14 @@ class Profiles { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._list(options, (err, result, request, response) => { + self._lOL(options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._list(options, optionalCallback); + return self._lOL(options, optionalCallback); } } @@ -3365,11 +3365,11 @@ class Profiles { * * @reject {Error} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink, options) { + lOLNextWithHttpOperationResponse(nextPageLink, options) { let client = this.client; let self = this; return new Promise((resolve, reject) => { - self._listNext(nextPageLink, options, (err, result, request, response) => { + self._lOLNext(nextPageLink, options, (err, result, request, response) => { let httpOperationResponse = new msRest.HttpOperationResponse(request, response); httpOperationResponse.body = result; if (err) { reject(err); } @@ -3412,7 +3412,7 @@ class Profiles { * * {stream} [response] - The HTTP Response stream if an error did not occur. */ - listNext(nextPageLink, options, optionalCallback) { + lOLNext(nextPageLink, options, optionalCallback) { let client = this.client; let self = this; if (!optionalCallback && typeof options === 'function') { @@ -3421,14 +3421,14 @@ class Profiles { } if (!optionalCallback) { return new Promise((resolve, reject) => { - self._listNext(nextPageLink, options, (err, result, request, response) => { + self._lOLNext(nextPageLink, options, (err, result, request, response) => { if (err) { reject(err); } else { resolve(result); } return; }); }); } else { - return self._listNext(nextPageLink, options, optionalCallback); + return self._lOLNext(nextPageLink, options, optionalCallback); } }