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
1110import * as msRest from "@azure/ms-rest-js" ;
1211import * as Models from "./models" ;
1312import * as Mappers from "./models/mappers" ;
14- import * as Parameters from "./models/parameters" ;
1513import * as operations from "./operations" ;
1614import { 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
16958export {
17059 FrontDoorManagementClient ,
0 commit comments