Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR @azure/arm-frontdoor] Update API specs 2020-04-01 #9146

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
118 changes: 4 additions & 114 deletions sdk/frontdoor/arm-frontdoor/src/frontDoorManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import * as msRest from "@azure/ms-rest-js";
import * as Models from "./models";
import * as Mappers from "./models/mappers";
import * as Parameters from "./models/parameters";
import * as operations from "./operations";
import { FrontDoorManagementClientContext } from "./frontDoorManagementClientContext";

Expand All @@ -22,6 +21,8 @@ class FrontDoorManagementClient extends FrontDoorManagementClientContext {
preconfiguredEndpoints: operations.PreconfiguredEndpoints;
experiments: operations.Experiments;
reports: operations.Reports;
frontDoorNameAvailability: operations.FrontDoorNameAvailability;
frontDoorNameAvailabilityWithSubscription: operations.FrontDoorNameAvailabilityWithSubscription;
frontDoors: operations.FrontDoors;
frontendEndpoints: operations.FrontendEndpoints;
endpoints: operations.Endpoints;
Expand All @@ -42,129 +43,18 @@ class FrontDoorManagementClient extends FrontDoorManagementClientContext {
this.preconfiguredEndpoints = new operations.PreconfiguredEndpoints(this);
this.experiments = new operations.Experiments(this);
this.reports = new operations.Reports(this);
this.frontDoorNameAvailability = new operations.FrontDoorNameAvailability(this);
this.frontDoorNameAvailabilityWithSubscription = new operations.FrontDoorNameAvailabilityWithSubscription(this);
this.frontDoors = new operations.FrontDoors(this);
this.frontendEndpoints = new operations.FrontendEndpoints(this);
this.endpoints = new operations.Endpoints(this);
this.rulesEngines = new operations.RulesEngines(this);
this.policies = new operations.Policies(this);
this.managedRuleSets = new operations.ManagedRuleSets(this);
}

/**
* Check the availability of a Front Door resource name.
* @param checkFrontDoorNameAvailabilityInput Input to check.
* @param [options] The optional parameters
* @returns Promise<Models.CheckFrontDoorNameAvailabilityResponse>
*/
checkFrontDoorNameAvailability(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options?: msRest.RequestOptionsBase): Promise<Models.CheckFrontDoorNameAvailabilityResponse>;
/**
* @param checkFrontDoorNameAvailabilityInput Input to check.
* @param callback The callback
*/
checkFrontDoorNameAvailability(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): void;
/**
* @param checkFrontDoorNameAvailabilityInput Input to check.
* @param options The optional parameters
* @param callback The callback
*/
checkFrontDoorNameAvailability(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): void;
checkFrontDoorNameAvailability(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>, callback?: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): Promise<Models.CheckFrontDoorNameAvailabilityResponse> {
return this.sendOperationRequest(
{
checkFrontDoorNameAvailabilityInput,
options
},
checkFrontDoorNameAvailabilityOperationSpec,
callback) as Promise<Models.CheckFrontDoorNameAvailabilityResponse>;
}

/**
* Check the availability of a Front Door subdomain.
* @param checkFrontDoorNameAvailabilityInput Input to check.
* @param [options] The optional parameters
* @returns Promise<Models.CheckFrontDoorNameAvailabilityWithSubscriptionResponse>
*/
checkFrontDoorNameAvailabilityWithSubscription(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options?: msRest.RequestOptionsBase): Promise<Models.CheckFrontDoorNameAvailabilityWithSubscriptionResponse>;
/**
* @param checkFrontDoorNameAvailabilityInput Input to check.
* @param callback The callback
*/
checkFrontDoorNameAvailabilityWithSubscription(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): void;
/**
* @param checkFrontDoorNameAvailabilityInput Input to check.
* @param options The optional parameters
* @param callback The callback
*/
checkFrontDoorNameAvailabilityWithSubscription(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): void;
checkFrontDoorNameAvailabilityWithSubscription(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>, callback?: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): Promise<Models.CheckFrontDoorNameAvailabilityWithSubscriptionResponse> {
return this.sendOperationRequest(
{
checkFrontDoorNameAvailabilityInput,
options
},
checkFrontDoorNameAvailabilityWithSubscriptionOperationSpec,
callback) as Promise<Models.CheckFrontDoorNameAvailabilityWithSubscriptionResponse>;
}
}

// Operation Specifications
const serializer = new msRest.Serializer(Mappers);
const checkFrontDoorNameAvailabilityOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "providers/Microsoft.Network/checkFrontDoorNameAvailability",
queryParameters: [
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
],
requestBody: {
parameterPath: "checkFrontDoorNameAvailabilityInput",
mapper: {
...Mappers.CheckNameAvailabilityInput,
required: true
}
},
responses: {
200: {
bodyMapper: Mappers.CheckNameAvailabilityOutput
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
serializer
};

const checkFrontDoorNameAvailabilityWithSubscriptionOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/checkFrontDoorNameAvailability",
urlParameters: [
Parameters.subscriptionId
],
queryParameters: [
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
],
requestBody: {
parameterPath: "checkFrontDoorNameAvailabilityInput",
mapper: {
...Mappers.CheckNameAvailabilityInput,
required: true
}
},
responses: {
200: {
bodyMapper: Mappers.CheckNameAvailabilityOutput
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
serializer
};

export {
FrontDoorManagementClient,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* 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.
*/

export {
discriminators,
CheckNameAvailabilityInput,
CheckNameAvailabilityOutput,
ErrorResponse
} from "../models/mappers";
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* 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.
*/

export {
discriminators,
CheckNameAvailabilityInput,
CheckNameAvailabilityOutput,
ErrorResponse
} from "../models/mappers";
18 changes: 14 additions & 4 deletions sdk/frontdoor/arm-frontdoor/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,16 @@ export interface Backend {
* backend is 'Private'
*/
privateLinkAlias?: string;
/**
* The Resource Id of the Private Link resource. Populating this optional field indicates that
* this backend is 'Private'
*/
privateLinkResourceId?: string;
/**
* The location of the Private Link resource. Required only if 'privateLinkResourceId' is
* populated
*/
privateLinkLocation?: string;
/**
* The Approval status for the connection to the Private Link. Possible values include:
* 'Pending', 'Approved', 'Rejected', 'Disconnected', 'Timeout'
Expand Down Expand Up @@ -2617,9 +2627,9 @@ export type ReportsGetTimeseriesResponse = Timeseries & {
};

/**
* Contains response data for the checkFrontDoorNameAvailability operation.
* Contains response data for the check operation.
*/
export type CheckFrontDoorNameAvailabilityResponse = CheckNameAvailabilityOutput & {
export type FrontDoorNameAvailabilityCheckResponse = CheckNameAvailabilityOutput & {
/**
* The underlying HTTP response.
*/
Expand All @@ -2637,9 +2647,9 @@ export type CheckFrontDoorNameAvailabilityResponse = CheckNameAvailabilityOutput
};

/**
* Contains response data for the checkFrontDoorNameAvailabilityWithSubscription operation.
* Contains response data for the check operation.
*/
export type CheckFrontDoorNameAvailabilityWithSubscriptionResponse = CheckNameAvailabilityOutput & {
export type FrontDoorNameAvailabilityWithSubscriptionCheckResponse = CheckNameAvailabilityOutput & {
/**
* The underlying HTTP response.
*/
Expand Down
21 changes: 13 additions & 8 deletions sdk/frontdoor/arm-frontdoor/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1632,18 +1632,23 @@ export const Backend: msRest.CompositeMapper = {
name: "String"
}
},
privateLinkResourceId: {
serializedName: "privateLinkResourceId",
type: {
name: "String"
}
},
privateLinkLocation: {
serializedName: "privateLinkLocation",
type: {
name: "String"
}
},
privateEndpointStatus: {
readOnly: true,
serializedName: "privateEndpointStatus",
type: {
name: "Enum",
allowedValues: [
"Pending",
"Approved",
"Rejected",
"Disconnected",
"Timeout"
]
name: "String"
}
},
privateLinkApprovalMessage: {
Expand Down
2 changes: 1 addition & 1 deletion sdk/frontdoor/arm-frontdoor/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const apiVersion1: msRest.OperationQueryParameter = {
required: true,
isConstant: true,
serializedName: "api-version",
defaultValue: '2020-01-01',
defaultValue: '2020-05-01',
type: {
name: "String"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
/*
* 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 * as msRest from "@azure/ms-rest-js";
import * as Models from "../models";
import * as Mappers from "../models/frontDoorNameAvailabilityMappers";
import * as Parameters from "../models/parameters";
import { FrontDoorManagementClientContext } from "../frontDoorManagementClientContext";

/** Class representing a FrontDoorNameAvailability. */
export class FrontDoorNameAvailability {
private readonly client: FrontDoorManagementClientContext;

/**
* Create a FrontDoorNameAvailability.
* @param {FrontDoorManagementClientContext} client Reference to the service client.
*/
constructor(client: FrontDoorManagementClientContext) {
this.client = client;
}

/**
* Check the availability of a Front Door resource name.
* @param checkFrontDoorNameAvailabilityInput Input to check.
* @param [options] The optional parameters
* @returns Promise<Models.FrontDoorNameAvailabilityCheckResponse>
*/
check(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options?: msRest.RequestOptionsBase): Promise<Models.FrontDoorNameAvailabilityCheckResponse>;
/**
* @param checkFrontDoorNameAvailabilityInput Input to check.
* @param callback The callback
*/
check(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): void;
/**
* @param checkFrontDoorNameAvailabilityInput Input to check.
* @param options The optional parameters
* @param callback The callback
*/
check(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): void;
check(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>, callback?: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): Promise<Models.FrontDoorNameAvailabilityCheckResponse> {
return this.client.sendOperationRequest(
{
checkFrontDoorNameAvailabilityInput,
options
},
checkOperationSpec,
callback) as Promise<Models.FrontDoorNameAvailabilityCheckResponse>;
}
}

// Operation Specifications
const serializer = new msRest.Serializer(Mappers);
const checkOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "providers/Microsoft.Network/checkFrontDoorNameAvailability",
queryParameters: [
Parameters.apiVersion1
],
headerParameters: [
Parameters.acceptLanguage
],
requestBody: {
parameterPath: "checkFrontDoorNameAvailabilityInput",
mapper: {
...Mappers.CheckNameAvailabilityInput,
required: true
}
},
responses: {
200: {
bodyMapper: Mappers.CheckNameAvailabilityOutput
},
default: {
bodyMapper: Mappers.ErrorResponse
}
},
serializer
};
Loading