Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/services/cdnManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/services/cdnManagement/lib/cdnManagementClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
16 changes: 8 additions & 8 deletions lib/services/cdnManagement/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface Profiles {
*
* @reject {Error|ServiceError} - The error object.
*/
listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.ProfileListResult>>;
lOLWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.ProfileListResult>>;

/**
* Lists all of the CDN profiles within an Azure subscription.
Expand Down Expand Up @@ -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<models.ProfileListResult>;
list(callback: ServiceCallback<models.ProfileListResult>): void;
list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.ProfileListResult>): void;
lOL(options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.ProfileListResult>;
lOL(callback: ServiceCallback<models.ProfileListResult>): void;
lOL(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.ProfileListResult>): void;


/**
Expand Down Expand Up @@ -866,7 +866,7 @@ export interface Profiles {
*
* @reject {Error|ServiceError} - The error object.
*/
listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.ProfileListResult>>;
lOLNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.ProfileListResult>>;

/**
* Lists all of the CDN profiles within an Azure subscription.
Expand Down Expand Up @@ -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<models.ProfileListResult>;
listNext(nextPageLink: string, callback: ServiceCallback<models.ProfileListResult>): void;
listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.ProfileListResult>): void;
lOLNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.ProfileListResult>;
lOLNext(nextPageLink: string, callback: ServiceCallback<models.ProfileListResult>): void;
lOLNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.ProfileListResult>): void;


/**
Expand Down
28 changes: 14 additions & 14 deletions lib/services/cdnManagement/lib/operations/profiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -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') {
Expand Down Expand Up @@ -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;
Expand All @@ -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;
}
Expand All @@ -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); }
Expand Down Expand Up @@ -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') {
Expand All @@ -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);
}
}

Expand Down Expand Up @@ -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); }
Expand Down Expand Up @@ -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') {
Expand All @@ -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);
}
}

Expand Down