Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,8 @@ export {
ApplicationGatewayBackendHealthPool,
ApplicationGatewayBackendHealthHttpSettings,
ApplicationGatewayBackendHealthServer,
ApplicationGatewayAvailableServerVariablesResult,
ErrorModel,
ErrorDetails,
ApplicationGatewayAvailableRequestHeadersResult,
ApplicationGatewayAvailableResponseHeadersResult,
ApplicationGatewayAvailableWafRuleSetsResult,
ApplicationGatewayFirewallRuleSet,
ApplicationGatewayFirewallRuleGroup,
Expand Down
56 changes: 7 additions & 49 deletions packages/@azure/arm-network/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2911,48 +2911,6 @@ export interface ApplicationGateway extends Resource {
identity?: ManagedServiceIdentity;
}

/**
* @interface
* An interface representing ApplicationGatewayAvailableServerVariablesResult.
* Response for ApplicationGatewayAvailableServerVariables API service call.
*
*/
export interface ApplicationGatewayAvailableServerVariablesResult {
/**
* @member {string[]} [value] The list of supported server variables in
* application gateway.
*/
value?: string[];
}

/**
* @interface
* An interface representing ApplicationGatewayAvailableRequestHeadersResult.
* Response for ApplicationGatewayAvailableRequestHeaders API service call.
*
*/
export interface ApplicationGatewayAvailableRequestHeadersResult {
/**
* @member {string[]} [value] The list of supported request headers in
* application gateway.
*/
value?: string[];
}

/**
* @interface
* An interface representing ApplicationGatewayAvailableResponseHeadersResult.
* Response for ApplicationGatewayAvailableResponeHeaders API service call.
*
*/
export interface ApplicationGatewayAvailableResponseHeadersResult {
/**
* @member {string[]} [value] The list of supported response header in
* application gateway.
*/
value?: string[];
}

/**
* @interface
* An interface representing ApplicationGatewayFirewallRule.
Expand Down Expand Up @@ -3380,7 +3338,7 @@ export interface AzureFirewallNatRule {
sourceAddresses?: string[];
/**
* @member {string[]} [destinationAddresses] List of destination IP addresses
* for this rule.
* for this rule. Supports IP ranges, prefixes, and service tags.
*/
destinationAddresses?: string[];
/**
Expand Down Expand Up @@ -12476,7 +12434,7 @@ export type ApplicationGatewaysBackendHealthResponse = ApplicationGatewayBackend
/**
* Contains response data for the listAvailableServerVariables operation.
*/
export type ApplicationGatewaysListAvailableServerVariablesResponse = ApplicationGatewayAvailableServerVariablesResult & {
export type ApplicationGatewaysListAvailableServerVariablesResponse = Array<string> & {
/**
* The underlying HTTP response.
*/
Expand All @@ -12488,14 +12446,14 @@ export type ApplicationGatewaysListAvailableServerVariablesResponse = Applicatio
/**
* The response body as parsed JSON or XML
*/
parsedBody: ApplicationGatewayAvailableServerVariablesResult;
parsedBody: string[];
};
};

/**
* Contains response data for the listAvailableRequestHeaders operation.
*/
export type ApplicationGatewaysListAvailableRequestHeadersResponse = ApplicationGatewayAvailableRequestHeadersResult & {
export type ApplicationGatewaysListAvailableRequestHeadersResponse = Array<string> & {
/**
* The underlying HTTP response.
*/
Expand All @@ -12507,14 +12465,14 @@ export type ApplicationGatewaysListAvailableRequestHeadersResponse = Application
/**
* The response body as parsed JSON or XML
*/
parsedBody: ApplicationGatewayAvailableRequestHeadersResult;
parsedBody: string[];
};
};

/**
* Contains response data for the listAvailableResponseHeaders operation.
*/
export type ApplicationGatewaysListAvailableResponseHeadersResponse = ApplicationGatewayAvailableResponseHeadersResult & {
export type ApplicationGatewaysListAvailableResponseHeadersResponse = Array<string> & {
/**
* The underlying HTTP response.
*/
Expand All @@ -12526,7 +12484,7 @@ export type ApplicationGatewaysListAvailableResponseHeadersResponse = Applicatio
/**
* The response body as parsed JSON or XML
*/
parsedBody: ApplicationGatewayAvailableResponseHeadersResult;
parsedBody: string[];
};
};

Expand Down
63 changes: 0 additions & 63 deletions packages/@azure/arm-network/lib/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3910,69 +3910,6 @@ export const ApplicationGateway: msRest.CompositeMapper = {
}
};

export const ApplicationGatewayAvailableServerVariablesResult: msRest.CompositeMapper = {
serializedName: "ApplicationGatewayAvailableServerVariablesResult",
type: {
name: "Composite",
className: "ApplicationGatewayAvailableServerVariablesResult",
modelProperties: {
value: {
serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};

export const ApplicationGatewayAvailableRequestHeadersResult: msRest.CompositeMapper = {
serializedName: "ApplicationGatewayAvailableRequestHeadersResult",
type: {
name: "Composite",
className: "ApplicationGatewayAvailableRequestHeadersResult",
modelProperties: {
value: {
serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};

export const ApplicationGatewayAvailableResponseHeadersResult: msRest.CompositeMapper = {
serializedName: "ApplicationGatewayAvailableResponseHeadersResult",
type: {
name: "Composite",
className: "ApplicationGatewayAvailableResponseHeadersResult",
modelProperties: {
value: {
serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};

export const ApplicationGatewayFirewallRule: msRest.CompositeMapper = {
serializedName: "ApplicationGatewayFirewallRule",
type: {
Expand Down
54 changes: 42 additions & 12 deletions packages/@azure/arm-network/lib/operations/applicationGateways.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,13 @@ export class ApplicationGateways {
/**
* @param callback The callback
*/
listAvailableServerVariables(callback: msRest.ServiceCallback<Models.ApplicationGatewayAvailableServerVariablesResult>): void;
listAvailableServerVariables(callback: msRest.ServiceCallback<string[]>): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
listAvailableServerVariables(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplicationGatewayAvailableServerVariablesResult>): void;
listAvailableServerVariables(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplicationGatewayAvailableServerVariablesResult>, callback?: msRest.ServiceCallback<Models.ApplicationGatewayAvailableServerVariablesResult>): Promise<Models.ApplicationGatewaysListAvailableServerVariablesResponse> {
listAvailableServerVariables(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<string[]>): void;
listAvailableServerVariables(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<string[]>, callback?: msRest.ServiceCallback<string[]>): Promise<Models.ApplicationGatewaysListAvailableServerVariablesResponse> {
return this.client.sendOperationRequest(
{
options
Expand All @@ -218,13 +218,13 @@ export class ApplicationGateways {
/**
* @param callback The callback
*/
listAvailableRequestHeaders(callback: msRest.ServiceCallback<Models.ApplicationGatewayAvailableRequestHeadersResult>): void;
listAvailableRequestHeaders(callback: msRest.ServiceCallback<string[]>): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
listAvailableRequestHeaders(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplicationGatewayAvailableRequestHeadersResult>): void;
listAvailableRequestHeaders(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplicationGatewayAvailableRequestHeadersResult>, callback?: msRest.ServiceCallback<Models.ApplicationGatewayAvailableRequestHeadersResult>): Promise<Models.ApplicationGatewaysListAvailableRequestHeadersResponse> {
listAvailableRequestHeaders(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<string[]>): void;
listAvailableRequestHeaders(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<string[]>, callback?: msRest.ServiceCallback<string[]>): Promise<Models.ApplicationGatewaysListAvailableRequestHeadersResponse> {
return this.client.sendOperationRequest(
{
options
Expand All @@ -242,13 +242,13 @@ export class ApplicationGateways {
/**
* @param callback The callback
*/
listAvailableResponseHeaders(callback: msRest.ServiceCallback<Models.ApplicationGatewayAvailableResponseHeadersResult>): void;
listAvailableResponseHeaders(callback: msRest.ServiceCallback<string[]>): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
listAvailableResponseHeaders(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApplicationGatewayAvailableResponseHeadersResult>): void;
listAvailableResponseHeaders(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ApplicationGatewayAvailableResponseHeadersResult>, callback?: msRest.ServiceCallback<Models.ApplicationGatewayAvailableResponseHeadersResult>): Promise<Models.ApplicationGatewaysListAvailableResponseHeadersResponse> {
listAvailableResponseHeaders(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<string[]>): void;
listAvailableResponseHeaders(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<string[]>, callback?: msRest.ServiceCallback<string[]>): Promise<Models.ApplicationGatewaysListAvailableResponseHeadersResponse> {
return this.client.sendOperationRequest(
{
options
Expand Down Expand Up @@ -642,7 +642,17 @@ const listAvailableServerVariablesOperationSpec: msRest.OperationSpec = {
],
responses: {
200: {
bodyMapper: Mappers.ApplicationGatewayAvailableServerVariablesResult
bodyMapper: {
serializedName: "parsedResponse",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
},
default: {
bodyMapper: Mappers.ErrorModel
Expand All @@ -665,7 +675,17 @@ const listAvailableRequestHeadersOperationSpec: msRest.OperationSpec = {
],
responses: {
200: {
bodyMapper: Mappers.ApplicationGatewayAvailableRequestHeadersResult
bodyMapper: {
serializedName: "parsedResponse",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
},
default: {
bodyMapper: Mappers.ErrorModel
Expand All @@ -688,7 +708,17 @@ const listAvailableResponseHeadersOperationSpec: msRest.OperationSpec = {
],
responses: {
200: {
bodyMapper: Mappers.ApplicationGatewayAvailableResponseHeadersResult
bodyMapper: {
serializedName: "parsedResponse",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
},
default: {
bodyMapper: Mappers.ErrorModel
Expand Down