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
@@ -12,7 +11,6 @@ import * as msRest from "@azure/ms-rest-js";
1211import { TokenCredential } from "@azure/core-auth" ;
1312import * as Models from "./models" ;
1413import * as Mappers from "./models/mappers" ;
15- import * as Parameters from "./models/parameters" ;
1614import * as operations from "./operations" ;
1715import { FrontDoorManagementClientContext } from "./frontDoorManagementClientContext" ;
1816
@@ -23,6 +21,8 @@ class FrontDoorManagementClient extends FrontDoorManagementClientContext {
2321 preconfiguredEndpoints : operations . PreconfiguredEndpoints ;
2422 experiments : operations . Experiments ;
2523 reports : operations . Reports ;
24+ frontDoorNameAvailability : operations . FrontDoorNameAvailability ;
25+ frontDoorNameAvailabilityWithSubscription : operations . FrontDoorNameAvailabilityWithSubscription ;
2626 frontDoors : operations . FrontDoors ;
2727 frontendEndpoints : operations . FrontendEndpoints ;
2828 endpoints : operations . Endpoints ;
@@ -48,129 +48,18 @@ class FrontDoorManagementClient extends FrontDoorManagementClientContext {
4848 this . preconfiguredEndpoints = new operations . PreconfiguredEndpoints ( this ) ;
4949 this . experiments = new operations . Experiments ( this ) ;
5050 this . reports = new operations . Reports ( this ) ;
51+ this . frontDoorNameAvailability = new operations . FrontDoorNameAvailability ( this ) ;
52+ this . frontDoorNameAvailabilityWithSubscription = new operations . FrontDoorNameAvailabilityWithSubscription ( this ) ;
5153 this . frontDoors = new operations . FrontDoors ( this ) ;
5254 this . frontendEndpoints = new operations . FrontendEndpoints ( this ) ;
5355 this . endpoints = new operations . Endpoints ( this ) ;
5456 this . rulesEngines = new operations . RulesEngines ( this ) ;
5557 this . policies = new operations . Policies ( this ) ;
5658 this . managedRuleSets = new operations . ManagedRuleSets ( this ) ;
5759 }
58-
59- /**
60- * Check the availability of a Front Door resource name.
61- * @param checkFrontDoorNameAvailabilityInput Input to check.
62- * @param [options] The optional parameters
63- * @returns Promise<Models.CheckFrontDoorNameAvailabilityResponse>
64- */
65- checkFrontDoorNameAvailability ( checkFrontDoorNameAvailabilityInput : Models . CheckNameAvailabilityInput , options ?: msRest . RequestOptionsBase ) : Promise < Models . CheckFrontDoorNameAvailabilityResponse > ;
66- /**
67- * @param checkFrontDoorNameAvailabilityInput Input to check.
68- * @param callback The callback
69- */
70- checkFrontDoorNameAvailability ( checkFrontDoorNameAvailabilityInput : Models . CheckNameAvailabilityInput , callback : msRest . ServiceCallback < Models . CheckNameAvailabilityOutput > ) : void ;
71- /**
72- * @param checkFrontDoorNameAvailabilityInput Input to check.
73- * @param options The optional parameters
74- * @param callback The callback
75- */
76- checkFrontDoorNameAvailability ( checkFrontDoorNameAvailabilityInput : Models . CheckNameAvailabilityInput , options : msRest . RequestOptionsBase , callback : msRest . ServiceCallback < Models . CheckNameAvailabilityOutput > ) : void ;
77- checkFrontDoorNameAvailability ( checkFrontDoorNameAvailabilityInput : Models . CheckNameAvailabilityInput , options ?: msRest . RequestOptionsBase | msRest . ServiceCallback < Models . CheckNameAvailabilityOutput > , callback ?: msRest . ServiceCallback < Models . CheckNameAvailabilityOutput > ) : Promise < Models . CheckFrontDoorNameAvailabilityResponse > {
78- return this . sendOperationRequest (
79- {
80- checkFrontDoorNameAvailabilityInput,
81- options
82- } ,
83- checkFrontDoorNameAvailabilityOperationSpec ,
84- callback ) as Promise < Models . CheckFrontDoorNameAvailabilityResponse > ;
85- }
86-
87- /**
88- * Check the availability of a Front Door subdomain.
89- * @param checkFrontDoorNameAvailabilityInput Input to check.
90- * @param [options] The optional parameters
91- * @returns Promise<Models.CheckFrontDoorNameAvailabilityWithSubscriptionResponse>
92- */
93- checkFrontDoorNameAvailabilityWithSubscription ( checkFrontDoorNameAvailabilityInput : Models . CheckNameAvailabilityInput , options ?: msRest . RequestOptionsBase ) : Promise < Models . CheckFrontDoorNameAvailabilityWithSubscriptionResponse > ;
94- /**
95- * @param checkFrontDoorNameAvailabilityInput Input to check.
96- * @param callback The callback
97- */
98- checkFrontDoorNameAvailabilityWithSubscription ( checkFrontDoorNameAvailabilityInput : Models . CheckNameAvailabilityInput , callback : msRest . ServiceCallback < Models . CheckNameAvailabilityOutput > ) : void ;
99- /**
100- * @param checkFrontDoorNameAvailabilityInput Input to check.
101- * @param options The optional parameters
102- * @param callback The callback
103- */
104- checkFrontDoorNameAvailabilityWithSubscription ( checkFrontDoorNameAvailabilityInput : Models . CheckNameAvailabilityInput , options : msRest . RequestOptionsBase , callback : msRest . ServiceCallback < Models . CheckNameAvailabilityOutput > ) : void ;
105- checkFrontDoorNameAvailabilityWithSubscription ( checkFrontDoorNameAvailabilityInput : Models . CheckNameAvailabilityInput , options ?: msRest . RequestOptionsBase | msRest . ServiceCallback < Models . CheckNameAvailabilityOutput > , callback ?: msRest . ServiceCallback < Models . CheckNameAvailabilityOutput > ) : Promise < Models . CheckFrontDoorNameAvailabilityWithSubscriptionResponse > {
106- return this . sendOperationRequest (
107- {
108- checkFrontDoorNameAvailabilityInput,
109- options
110- } ,
111- checkFrontDoorNameAvailabilityWithSubscriptionOperationSpec ,
112- callback ) as Promise < Models . CheckFrontDoorNameAvailabilityWithSubscriptionResponse > ;
113- }
11460}
11561
11662// Operation Specifications
117- const serializer = new msRest . Serializer ( Mappers ) ;
118- const checkFrontDoorNameAvailabilityOperationSpec : msRest . OperationSpec = {
119- httpMethod : "POST" ,
120- path : "providers/Microsoft.Network/checkFrontDoorNameAvailability" ,
121- queryParameters : [
122- Parameters . apiVersion1
123- ] ,
124- headerParameters : [
125- Parameters . acceptLanguage
126- ] ,
127- requestBody : {
128- parameterPath : "checkFrontDoorNameAvailabilityInput" ,
129- mapper : {
130- ...Mappers . CheckNameAvailabilityInput ,
131- required : true
132- }
133- } ,
134- responses : {
135- 200 : {
136- bodyMapper : Mappers . CheckNameAvailabilityOutput
137- } ,
138- default : {
139- bodyMapper : Mappers . ErrorResponse
140- }
141- } ,
142- serializer
143- } ;
144-
145- const checkFrontDoorNameAvailabilityWithSubscriptionOperationSpec : msRest . OperationSpec = {
146- httpMethod : "POST" ,
147- path : "subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability" ,
148- urlParameters : [
149- Parameters . subscriptionId
150- ] ,
151- queryParameters : [
152- Parameters . apiVersion1
153- ] ,
154- headerParameters : [
155- Parameters . acceptLanguage
156- ] ,
157- requestBody : {
158- parameterPath : "checkFrontDoorNameAvailabilityInput" ,
159- mapper : {
160- ...Mappers . CheckNameAvailabilityInput ,
161- required : true
162- }
163- } ,
164- responses : {
165- 200 : {
166- bodyMapper : Mappers . CheckNameAvailabilityOutput
167- } ,
168- default : {
169- bodyMapper : Mappers . ErrorResponse
170- }
171- } ,
172- serializer
173- } ;
17463
17564export {
17665 FrontDoorManagementClient ,
0 commit comments