Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
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
211 changes: 211 additions & 0 deletions lib/services/networkManagement2/lib/lib/frontdoorManagementClient.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

import { ServiceClient, ServiceClientOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as models from "./models";
import * as operations from "./operations";

export default class FrontdoorManagementClient extends AzureServiceClient {
/**
* Initializes a new instance of the FrontdoorManagementClient class.
* @constructor
*
* @class
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
*
* @param {string} subscriptionId - The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
*
* @param {string} [baseUri] - The base URI of the service.
*
* @param {object} [options] - The parameter options
*
* @param {Array} [options.filters] - Filters to be added to the request pipeline
*
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.acceptLanguage] - The preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);

credentials: ServiceClientCredentials;

subscriptionId: string;

acceptLanguage: string;

longRunningOperationRetryTimeout: number;

generateClientRequestId: boolean;

// Operation groups
frontDoors: operations.FrontDoors;
routingRules: operations.RoutingRules;
healthProbeSettings: operations.HealthProbeSettings;
loadBalancingSettings: operations.LoadBalancingSettings;
backendPools: operations.BackendPools;
frontendEndpoints: operations.FrontendEndpoints;
endpoints: operations.Endpoints;
policies: operations.Policies;


/**
* Check the availability of a Front Door resource name.
*
* @param {object} checkFrontDoorNameAvailabilityInput Input to check.
*
* @param {string} checkFrontDoorNameAvailabilityInput.name The resource name
* to validate.
*
* @param {string} checkFrontDoorNameAvailabilityInput.type The type of the
* resource whose name is to be validated. Possible values include:
* 'Microsoft.Network/frontDoors',
* 'Microsoft.Network/frontDoors/frontendEndpoints'
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<CheckNameAvailabilityOutput>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
checkFrontDoorNameAvailabilityWithHttpOperationResponse(checkFrontDoorNameAvailabilityInput: models.CheckNameAvailabilityInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.CheckNameAvailabilityOutput>>;

/**
* Check the availability of a Front Door resource name.
*
* @param {object} checkFrontDoorNameAvailabilityInput Input to check.
*
* @param {string} checkFrontDoorNameAvailabilityInput.name The resource name
* to validate.
*
* @param {string} checkFrontDoorNameAvailabilityInput.type The type of the
* resource whose name is to be validated. Possible values include:
* 'Microsoft.Network/frontDoors',
* 'Microsoft.Network/frontDoors/frontendEndpoints'
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {CheckNameAvailabilityOutput} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {CheckNameAvailabilityOutput} [result] - The deserialized result object if an error did not occur.
* See {@link CheckNameAvailabilityOutput} for more
* information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
checkFrontDoorNameAvailability(checkFrontDoorNameAvailabilityInput: models.CheckNameAvailabilityInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.CheckNameAvailabilityOutput>;
checkFrontDoorNameAvailability(checkFrontDoorNameAvailabilityInput: models.CheckNameAvailabilityInput, callback: ServiceCallback<models.CheckNameAvailabilityOutput>): void;
checkFrontDoorNameAvailability(checkFrontDoorNameAvailabilityInput: models.CheckNameAvailabilityInput, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.CheckNameAvailabilityOutput>): void;


/**
* Check the availability of a Front Door subdomain.
*
* @param {object} checkFrontDoorNameAvailabilityInput Input to check.
*
* @param {string} checkFrontDoorNameAvailabilityInput.name The resource name
* to validate.
*
* @param {string} checkFrontDoorNameAvailabilityInput.type The type of the
* resource whose name is to be validated. Possible values include:
* 'Microsoft.Network/frontDoors',
* 'Microsoft.Network/frontDoors/frontendEndpoints'
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<CheckNameAvailabilityOutput>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
checkFrontDoorNameAvailabilityWithSubscriptionWithHttpOperationResponse(checkFrontDoorNameAvailabilityInput: models.CheckNameAvailabilityInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.CheckNameAvailabilityOutput>>;

/**
* Check the availability of a Front Door subdomain.
*
* @param {object} checkFrontDoorNameAvailabilityInput Input to check.
*
* @param {string} checkFrontDoorNameAvailabilityInput.name The resource name
* to validate.
*
* @param {string} checkFrontDoorNameAvailabilityInput.type The type of the
* resource whose name is to be validated. Possible values include:
* 'Microsoft.Network/frontDoors',
* 'Microsoft.Network/frontDoors/frontendEndpoints'
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {CheckNameAvailabilityOutput} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {CheckNameAvailabilityOutput} [result] - The deserialized result object if an error did not occur.
* See {@link CheckNameAvailabilityOutput} for more
* information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
checkFrontDoorNameAvailabilityWithSubscription(checkFrontDoorNameAvailabilityInput: models.CheckNameAvailabilityInput, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.CheckNameAvailabilityOutput>;
checkFrontDoorNameAvailabilityWithSubscription(checkFrontDoorNameAvailabilityInput: models.CheckNameAvailabilityInput, callback: ServiceCallback<models.CheckNameAvailabilityOutput>): void;
checkFrontDoorNameAvailabilityWithSubscription(checkFrontDoorNameAvailabilityInput: models.CheckNameAvailabilityInput, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.CheckNameAvailabilityOutput>): void;
}

export { FrontdoorManagementClient, models as FrontdoorManagementModels };
Loading