Skip to content
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
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 arrayMethod 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.arrayMethod().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 arrayMethod 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.arrayMethod().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 @@ -13,7 +13,7 @@ import * as msRest from "ms-rest-js";
import * as msRestAzure from "ms-rest-azure-js";

const packageName = "@azure/arm-cdn";
const packageVersion = "0.1.0";
const packageVersion = "0.2.0";

export class CdnManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
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 arrayMethod operation.
*/
export type ProfilesListResponse = ProfileListResult & {
export type ProfilesArrayMethodResponse = 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 arrayMethodNext operation.
*/
export type ProfilesListNextResponse = ProfileListResult & {
export type ProfilesArrayMethodNextResponse = 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.ProfilesArrayMethodResponse>
*/
list(options?: msRest.RequestOptionsBase): Promise<Models.ProfilesListResponse>;
arrayMethod(options?: msRest.RequestOptionsBase): Promise<Models.ProfilesArrayMethodResponse>;
/**
* @param callback The callback
*/
list(callback: msRest.ServiceCallback<Models.ProfileListResult>): void;
arrayMethod(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> {
arrayMethod(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ProfileListResult>): void;
arrayMethod(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ProfileListResult>, callback?: msRest.ServiceCallback<Models.ProfileListResult>): Promise<Models.ProfilesArrayMethodResponse> {
return this.client.sendOperationRequest(
{
options
},
listOperationSpec,
callback) as Promise<Models.ProfilesListResponse>;
arrayMethodOperationSpec,
callback) as Promise<Models.ProfilesArrayMethodResponse>;
}

/**
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.ProfilesArrayMethodNextResponse>
*/
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ProfilesListNextResponse>;
arrayMethodNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.ProfilesArrayMethodNextResponse>;
/**
* @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;
arrayMethodNext(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> {
arrayMethodNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ProfileListResult>): void;
arrayMethodNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ProfileListResult>, callback?: msRest.ServiceCallback<Models.ProfileListResult>): Promise<Models.ProfilesArrayMethodNextResponse> {
return this.client.sendOperationRequest(
{
nextPageLink,
options
},
listNextOperationSpec,
callback) as Promise<Models.ProfilesListNextResponse>;
arrayMethodNextOperationSpec,
callback) as Promise<Models.ProfilesArrayMethodNextResponse>;
}

/**
Expand Down Expand Up @@ -399,7 +399,7 @@ export class Profiles {

// Operation Specifications
const serializer = new msRest.Serializer(Mappers);
const listOperationSpec: msRest.OperationSpec = {
const arrayMethodOperationSpec: 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 arrayMethodNextOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
baseUrl: "https://management.azure.com",
path: "{nextLink}",
Expand Down