diff --git a/packages/@azure/arm-cdn/LICENSE.txt b/packages/@azure/arm-cdn/LICENSE.txt index 5431ba98b936..8f3d856145c5 100644 --- a/packages/@azure/arm-cdn/LICENSE.txt +++ b/packages/@azure/arm-cdn/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/packages/@azure/arm-cdn/README.md b/packages/@azure/arm-cdn/README.md index 2b7f1fc1932b..364220624bfb 100644 --- a/packages/@azure/arm-cdn/README.md +++ b/packages/@azure/arm-cdn/README.md @@ -13,7 +13,7 @@ npm install @azure/arm-cdn ## How to use -### nodejs - Authentication, client creation and list profiles as an example written in TypeScript. +### nodejs - Authentication, client creation and lOL profiles as an example written in TypeScript. ```ts import * as msRest from "ms-rest-js"; @@ -24,7 +24,7 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { const client = new CdnManagementClient(creds, subscriptionId); - client.profiles.list().then((result) => { + client.profiles.lOL().then((result) => { console.log("The result is:"); console.log(result); }); @@ -33,7 +33,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -### browser - Authentication, client creation and list profiles as an example written in JavaScript. +### browser - Authentication, client creation and lOL profiles as an example written in JavaScript. See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - index.html @@ -58,7 +58,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to authManager.login(); } const client = new Azure.ArmCdn.CdnManagementClient(res.creds, subscriptionId); - client.profiles.list().then((result) => { + client.profiles.lOL().then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { diff --git a/packages/@azure/arm-cdn/lib/cdnManagementClientContext.ts b/packages/@azure/arm-cdn/lib/cdnManagementClientContext.ts index da88732f3b69..2cbb9ffcc16b 100644 --- a/packages/@azure/arm-cdn/lib/cdnManagementClientContext.ts +++ b/packages/@azure/arm-cdn/lib/cdnManagementClientContext.ts @@ -44,7 +44,7 @@ export class CdnManagementClientContext extends msRestAzure.AzureServiceClient { super(credentials, options); - this.apiVersion = '2017-10-12'; + this.apiVersion = '2027-12-21'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/packages/@azure/arm-cdn/lib/models/index.ts b/packages/@azure/arm-cdn/lib/models/index.ts index cff12e216b60..7642a98109a7 100644 --- a/packages/@azure/arm-cdn/lib/models/index.ts +++ b/packages/@azure/arm-cdn/lib/models/index.ts @@ -1320,9 +1320,9 @@ export type MatchType = 'Literal' | 'Wildcard'; export type CacheBehavior = 'BypassCache' | 'Override' | 'SetIfMissing'; /** - * Contains response data for the list operation. + * Contains response data for the lOL operation. */ -export type ProfilesListResponse = ProfileListResult & { +export type ProfilesLOLResponse = ProfileListResult & { /** * The underlying HTTP response. */ @@ -1510,9 +1510,9 @@ export type ProfilesBeginUpdateResponse = Profile & { }; /** - * Contains response data for the listNext operation. + * Contains response data for the lOLNext operation. */ -export type ProfilesListNextResponse = ProfileListResult & { +export type ProfilesLOLNextResponse = ProfileListResult & { /** * The underlying HTTP response. */ diff --git a/packages/@azure/arm-cdn/lib/operations/profiles.ts b/packages/@azure/arm-cdn/lib/operations/profiles.ts index 990844747d1b..d024ea34bb7d 100644 --- a/packages/@azure/arm-cdn/lib/operations/profiles.ts +++ b/packages/@azure/arm-cdn/lib/operations/profiles.ts @@ -30,25 +30,25 @@ export class Profiles { /** * Lists all of the CDN profiles within an Azure subscription. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - list(options?: msRest.RequestOptionsBase): Promise; + lOL(options?: msRest.RequestOptionsBase): Promise; /** * @param callback The callback */ - list(callback: msRest.ServiceCallback): void; + lOL(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + lOL(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + lOL(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options }, - listOperationSpec, - callback) as Promise; + lOLOperationSpec, + callback) as Promise; } /** @@ -316,28 +316,28 @@ export class Profiles { * Lists all of the CDN profiles within an Azure subscription. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + lOLNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + lOLNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + lOLNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + lOLNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listNextOperationSpec, - callback) as Promise; + lOLNextOperationSpec, + callback) as Promise; } /** @@ -399,7 +399,7 @@ export class Profiles { // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const lOLOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Cdn/profiles", urlParameters: [ @@ -648,7 +648,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { serializer }; -const listNextOperationSpec: msRest.OperationSpec = { +const lOLNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}",