Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR cdn/resource-manager] [Hub Generated] Review request for Microsoft.Cdn to add version 2027-12-21 #1041

Closed
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 packages/@azure/arm-cdn/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
8 changes: 4 additions & 4 deletions packages/@azure/arm-cdn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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);
});
Expand All @@ -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
Expand All @@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/@azure/arm-cdn/lib/cdnManagementClientContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
8 changes: 4 additions & 4 deletions packages/@azure/arm-cdn/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down
32 changes: 16 additions & 16 deletions packages/@azure/arm-cdn/lib/operations/profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@ export class Profiles {
/**
* Lists all of the CDN profiles within an Azure subscription.
* @param [options] The optional parameters
* @returns Promise<Models.ProfilesListResponse>
* @returns Promise<Models.ProfilesLOLResponse>
*/
list(options?: msRest.RequestOptionsBase): Promise<Models.ProfilesListResponse>;
lOL(options?: msRest.RequestOptionsBase): Promise<Models.ProfilesLOLResponse>;
/**
* @param callback The callback
*/
list(callback: msRest.ServiceCallback<Models.ProfileListResult>): void;
lOL(callback: msRest.ServiceCallback<Models.ProfileListResult>): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ProfileListResult>): void;
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ProfileListResult>, callback?: msRest.ServiceCallback<Models.ProfileListResult>): Promise<Models.ProfilesListResponse> {
lOL(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ProfileListResult>): void;
lOL(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ProfileListResult>, callback?: msRest.ServiceCallback<Models.ProfileListResult>): Promise<Models.ProfilesLOLResponse> {
return this.client.sendOperationRequest(
{
options
},
listOperationSpec,
callback) as Promise<Models.ProfilesListResponse>;
lOLOperationSpec,
callback) as Promise<Models.ProfilesLOLResponse>;
}

/**
Expand Down Expand Up @@ -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<Models.ProfilesListNextResponse>
* @returns Promise<Models.ProfilesLOLNextResponse>
*/
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ProfilesListNextResponse>;
lOLNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ProfilesLOLNextResponse>;
/**
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param callback The callback
*/
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ProfileListResult>): void;
lOLNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.ProfileListResult>): 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<Models.ProfileListResult>): void;
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ProfileListResult>, callback?: msRest.ServiceCallback<Models.ProfileListResult>): Promise<Models.ProfilesListNextResponse> {
lOLNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ProfileListResult>): void;
lOLNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ProfileListResult>, callback?: msRest.ServiceCallback<Models.ProfileListResult>): Promise<Models.ProfilesLOLNextResponse> {
return this.client.sendOperationRequest(
{
nextPageLink,
options
},
listNextOperationSpec,
callback) as Promise<Models.ProfilesListNextResponse>;
lOLNextOperationSpec,
callback) as Promise<Models.ProfilesLOLNextResponse>;
}

/**
Expand Down Expand Up @@ -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: [
Expand Down Expand Up @@ -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}",
Expand Down