Skip to content

Commit 18c4e2f

Browse files
author
SDKAuto
committed
CodeGen from PR 12505 in Azure/azure-rest-api-specs
Merge 8d7ec5e34b8c2d7f97dddb6b8061b4ab2b77952f into f7fa292b3c09370ad03cc5e002a229f0acbcdbd8
1 parent 7f96968 commit 18c4e2f

33 files changed

+528
-203
lines changed

sdk/frontdoor/arm-frontdoor/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/frontdoor/arm-frontdoor/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install @azure/arm-frontdoor
1515

1616
### How to use
1717

18-
#### nodejs - Authentication, client creation and list networkExperimentProfiles as an example written in TypeScript.
18+
#### nodejs - client creation and list networkExperimentProfiles as an example written in TypeScript.
1919

2020
##### Install @azure/ms-rest-nodeauth
2121

@@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"
2626

2727
##### Sample code
2828

29+
While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
2930
```typescript
30-
import * as msRest from "@azure/ms-rest-js";
31-
import * as msRestAzure from "@azure/ms-rest-azure-js";
32-
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
33-
import { FrontDoorManagementClient, FrontDoorManagementModels, FrontDoorManagementMappers } from "@azure/arm-frontdoor";
31+
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
32+
const { FrontDoorManagementClient } = require("@azure/arm-frontdoor");
3433
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3534

3635
msRestNodeAuth.interactiveLogin().then((creds) => {

sdk/frontdoor/arm-frontdoor/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/frontdoor/arm-frontdoor/src/frontDoorManagementClient.ts

Lines changed: 6 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -11,7 +10,6 @@
1110
import * as msRest from "@azure/ms-rest-js";
1211
import * as Models from "./models";
1312
import * as Mappers from "./models/mappers";
14-
import * as Parameters from "./models/parameters";
1513
import * as operations from "./operations";
1614
import { FrontDoorManagementClientContext } from "./frontDoorManagementClientContext";
1715

@@ -22,6 +20,8 @@ class FrontDoorManagementClient extends FrontDoorManagementClientContext {
2220
preconfiguredEndpoints: operations.PreconfiguredEndpoints;
2321
experiments: operations.Experiments;
2422
reports: operations.Reports;
23+
frontDoorNameAvailability: operations.FrontDoorNameAvailability;
24+
frontDoorNameAvailabilityWithSubscription: operations.FrontDoorNameAvailabilityWithSubscription;
2525
frontDoors: operations.FrontDoors;
2626
frontendEndpoints: operations.FrontendEndpoints;
2727
endpoints: operations.Endpoints;
@@ -42,129 +42,18 @@ class FrontDoorManagementClient extends FrontDoorManagementClientContext {
4242
this.preconfiguredEndpoints = new operations.PreconfiguredEndpoints(this);
4343
this.experiments = new operations.Experiments(this);
4444
this.reports = new operations.Reports(this);
45+
this.frontDoorNameAvailability = new operations.FrontDoorNameAvailability(this);
46+
this.frontDoorNameAvailabilityWithSubscription = new operations.FrontDoorNameAvailabilityWithSubscription(this);
4547
this.frontDoors = new operations.FrontDoors(this);
4648
this.frontendEndpoints = new operations.FrontendEndpoints(this);
4749
this.endpoints = new operations.Endpoints(this);
4850
this.rulesEngines = new operations.RulesEngines(this);
4951
this.policies = new operations.Policies(this);
5052
this.managedRuleSets = new operations.ManagedRuleSets(this);
5153
}
52-
53-
/**
54-
* Check the availability of a Front Door resource name.
55-
* @param checkFrontDoorNameAvailabilityInput Input to check.
56-
* @param [options] The optional parameters
57-
* @returns Promise<Models.CheckFrontDoorNameAvailabilityResponse>
58-
*/
59-
checkFrontDoorNameAvailability(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options?: msRest.RequestOptionsBase): Promise<Models.CheckFrontDoorNameAvailabilityResponse>;
60-
/**
61-
* @param checkFrontDoorNameAvailabilityInput Input to check.
62-
* @param callback The callback
63-
*/
64-
checkFrontDoorNameAvailability(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): void;
65-
/**
66-
* @param checkFrontDoorNameAvailabilityInput Input to check.
67-
* @param options The optional parameters
68-
* @param callback The callback
69-
*/
70-
checkFrontDoorNameAvailability(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): void;
71-
checkFrontDoorNameAvailability(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>, callback?: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): Promise<Models.CheckFrontDoorNameAvailabilityResponse> {
72-
return this.sendOperationRequest(
73-
{
74-
checkFrontDoorNameAvailabilityInput,
75-
options
76-
},
77-
checkFrontDoorNameAvailabilityOperationSpec,
78-
callback) as Promise<Models.CheckFrontDoorNameAvailabilityResponse>;
79-
}
80-
81-
/**
82-
* Check the availability of a Front Door subdomain.
83-
* @param checkFrontDoorNameAvailabilityInput Input to check.
84-
* @param [options] The optional parameters
85-
* @returns Promise<Models.CheckFrontDoorNameAvailabilityWithSubscriptionResponse>
86-
*/
87-
checkFrontDoorNameAvailabilityWithSubscription(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options?: msRest.RequestOptionsBase): Promise<Models.CheckFrontDoorNameAvailabilityWithSubscriptionResponse>;
88-
/**
89-
* @param checkFrontDoorNameAvailabilityInput Input to check.
90-
* @param callback The callback
91-
*/
92-
checkFrontDoorNameAvailabilityWithSubscription(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): void;
93-
/**
94-
* @param checkFrontDoorNameAvailabilityInput Input to check.
95-
* @param options The optional parameters
96-
* @param callback The callback
97-
*/
98-
checkFrontDoorNameAvailabilityWithSubscription(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): void;
99-
checkFrontDoorNameAvailabilityWithSubscription(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>, callback?: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): Promise<Models.CheckFrontDoorNameAvailabilityWithSubscriptionResponse> {
100-
return this.sendOperationRequest(
101-
{
102-
checkFrontDoorNameAvailabilityInput,
103-
options
104-
},
105-
checkFrontDoorNameAvailabilityWithSubscriptionOperationSpec,
106-
callback) as Promise<Models.CheckFrontDoorNameAvailabilityWithSubscriptionResponse>;
107-
}
10854
}
10955

11056
// Operation Specifications
111-
const serializer = new msRest.Serializer(Mappers);
112-
const checkFrontDoorNameAvailabilityOperationSpec: msRest.OperationSpec = {
113-
httpMethod: "POST",
114-
path: "providers/Microsoft.Network/checkFrontDoorNameAvailability",
115-
queryParameters: [
116-
Parameters.apiVersion1
117-
],
118-
headerParameters: [
119-
Parameters.acceptLanguage
120-
],
121-
requestBody: {
122-
parameterPath: "checkFrontDoorNameAvailabilityInput",
123-
mapper: {
124-
...Mappers.CheckNameAvailabilityInput,
125-
required: true
126-
}
127-
},
128-
responses: {
129-
200: {
130-
bodyMapper: Mappers.CheckNameAvailabilityOutput
131-
},
132-
default: {
133-
bodyMapper: Mappers.ErrorResponse
134-
}
135-
},
136-
serializer
137-
};
138-
139-
const checkFrontDoorNameAvailabilityWithSubscriptionOperationSpec: msRest.OperationSpec = {
140-
httpMethod: "POST",
141-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability",
142-
urlParameters: [
143-
Parameters.subscriptionId
144-
],
145-
queryParameters: [
146-
Parameters.apiVersion1
147-
],
148-
headerParameters: [
149-
Parameters.acceptLanguage
150-
],
151-
requestBody: {
152-
parameterPath: "checkFrontDoorNameAvailabilityInput",
153-
mapper: {
154-
...Mappers.CheckNameAvailabilityInput,
155-
required: true
156-
}
157-
},
158-
responses: {
159-
200: {
160-
bodyMapper: Mappers.CheckNameAvailabilityOutput
161-
},
162-
default: {
163-
bodyMapper: Mappers.ErrorResponse
164-
}
165-
},
166-
serializer
167-
};
16857

16958
export {
17059
FrontDoorManagementClient,

sdk/frontdoor/arm-frontdoor/src/frontDoorManagementClientContext.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is

sdk/frontdoor/arm-frontdoor/src/models/endpointsMappers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/frontdoor/arm-frontdoor/src/models/experimentsMappers.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -48,10 +48,13 @@ export {
4848
Resource,
4949
RouteConfiguration,
5050
RoutingRule,
51+
RoutingRuleLink,
52+
RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink,
5153
RulesEngine,
5254
RulesEngineAction,
5355
RulesEngineMatchCondition,
5456
RulesEngineRule,
57+
Sku,
5558
SubResource,
5659
Timeseries,
5760
TimeseriesDataPoint,
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
export {
10+
discriminators,
11+
CheckNameAvailabilityInput,
12+
CheckNameAvailabilityOutput,
13+
ErrorResponse
14+
} from "../models/mappers";
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
export {
10+
discriminators,
11+
CheckNameAvailabilityInput,
12+
CheckNameAvailabilityOutput,
13+
ErrorResponse
14+
} from "../models/mappers";

sdk/frontdoor/arm-frontdoor/src/models/frontDoorsMappers.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -47,10 +47,13 @@ export {
4747
Resource,
4848
RouteConfiguration,
4949
RoutingRule,
50+
RoutingRuleLink,
51+
RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink,
5052
RulesEngine,
5153
RulesEngineAction,
5254
RulesEngineMatchCondition,
5355
RulesEngineRule,
56+
Sku,
5457
SubResource,
5558
Timeseries,
5659
TimeseriesDataPoint,

0 commit comments

Comments
 (0)