diff --git a/packages/@azure/arm-network/LICENSE.txt b/packages/@azure/arm-network/LICENSE.txt index 5431ba98b936..8f3d856145c5 100644 --- a/packages/@azure/arm-network/LICENSE.txt +++ b/packages/@azure/arm-network/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts index a10d4b1c97c6..b37309620b63 100644 --- a/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts @@ -78,6 +78,11 @@ export { ApplicationGatewayBackendHealthPool, ApplicationGatewayBackendHealthHttpSettings, ApplicationGatewayBackendHealthServer, + ApplicationGatewayAvailableServerVariablesResult, + ErrorModel, + ErrorDetails, + ApplicationGatewayAvailableRequestHeadersResult, + ApplicationGatewayAvailableResponseHeadersResult, ApplicationGatewayAvailableWafRuleSetsResult, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, diff --git a/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts b/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts index 945f0e809afb..4f08f0e84846 100644 --- a/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts +++ b/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts @@ -13,6 +13,7 @@ export { ApplicationSecurityGroup, Resource, BaseResource, + TagsObject, ApplicationSecurityGroupListResult, SubResource, SecurityRule, diff --git a/packages/@azure/arm-network/lib/models/index.ts b/packages/@azure/arm-network/lib/models/index.ts index 8be52fe8f88b..7dfb2fc00fdf 100644 --- a/packages/@azure/arm-network/lib/models/index.ts +++ b/packages/@azure/arm-network/lib/models/index.ts @@ -2841,6 +2841,48 @@ 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. @@ -2985,6 +3027,52 @@ export interface ApplicationGatewaySslPredefinedPolicy extends SubResource { minProtocolVersion?: ApplicationGatewaySslProtocol; } +/** + * @interface + * An interface representing ErrorDetails. + */ +export interface ErrorDetails { + /** + * @member {string} [code] + */ + code?: string; + /** + * @member {string} [target] + */ + target?: string; + /** + * @member {string} [message] + */ + message?: string; +} + +/** + * @interface + * An interface representing ErrorModel. + */ +export interface ErrorModel { + /** + * @member {string} [code] + */ + code?: string; + /** + * @member {string} [message] + */ + message?: string; + /** + * @member {string} [target] + */ + target?: string; + /** + * @member {ErrorDetails[]} [details] + */ + details?: ErrorDetails[]; + /** + * @member {string} [innerError] + */ + innerError?: string; +} + /** * @interface * An interface representing TagsObject. @@ -5262,52 +5350,6 @@ export interface LoadBalancer extends Resource { etag?: string; } -/** - * @interface - * An interface representing ErrorDetails. - */ -export interface ErrorDetails { - /** - * @member {string} [code] - */ - code?: string; - /** - * @member {string} [target] - */ - target?: string; - /** - * @member {string} [message] - */ - message?: string; -} - -/** - * @interface - * An interface representing ErrorModel. - */ -export interface ErrorModel { - /** - * @member {string} [code] - */ - code?: string; - /** - * @member {string} [message] - */ - message?: string; - /** - * @member {string} [target] - */ - target?: string; - /** - * @member {ErrorDetails[]} [details] - */ - details?: ErrorDetails[]; - /** - * @member {string} [innerError] - */ - innerError?: string; -} - /** * @interface * An interface representing AzureAsyncOperationResult. @@ -12202,6 +12244,63 @@ export type ApplicationGatewaysBackendHealthResponse = ApplicationGatewayBackend }; }; +/** + * Contains response data for the listAvailableServerVariables operation. + */ +export type ApplicationGatewaysListAvailableServerVariablesResponse = ApplicationGatewayAvailableServerVariablesResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationGatewayAvailableServerVariablesResult; + }; +}; + +/** + * Contains response data for the listAvailableRequestHeaders operation. + */ +export type ApplicationGatewaysListAvailableRequestHeadersResponse = ApplicationGatewayAvailableRequestHeadersResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationGatewayAvailableRequestHeadersResult; + }; +}; + +/** + * Contains response data for the listAvailableResponseHeaders operation. + */ +export type ApplicationGatewaysListAvailableResponseHeadersResponse = ApplicationGatewayAvailableResponseHeadersResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationGatewayAvailableResponseHeadersResult; + }; +}; + /** * Contains response data for the listAvailableWafRuleSets operation. */ @@ -12430,6 +12529,25 @@ export type ApplicationSecurityGroupsCreateOrUpdateResponse = ApplicationSecurit }; }; +/** + * Contains response data for the updateTags operation. + */ +export type ApplicationSecurityGroupsUpdateTagsResponse = ApplicationSecurityGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationSecurityGroup; + }; +}; + /** * Contains response data for the listAll operation. */ @@ -12487,6 +12605,25 @@ export type ApplicationSecurityGroupsBeginCreateOrUpdateResponse = ApplicationSe }; }; +/** + * Contains response data for the beginUpdateTags operation. + */ +export type ApplicationSecurityGroupsBeginUpdateTagsResponse = ApplicationSecurityGroup & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationSecurityGroup; + }; +}; + /** * Contains response data for the listAllNext operation. */ diff --git a/packages/@azure/arm-network/lib/models/mappers.ts b/packages/@azure/arm-network/lib/models/mappers.ts index 7cae9bf4c180..f3ae7bb42061 100644 --- a/packages/@azure/arm-network/lib/models/mappers.ts +++ b/packages/@azure/arm-network/lib/models/mappers.ts @@ -3819,6 +3819,69 @@ 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: { @@ -4029,6 +4092,80 @@ export const ApplicationGatewaySslPredefinedPolicy: msRest.CompositeMapper = { } }; +export const ErrorDetails: msRest.CompositeMapper = { + serializedName: "ErrorDetails", + type: { + name: "Composite", + className: "ErrorDetails", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorModel: msRest.CompositeMapper = { + serializedName: "Error", + type: { + name: "Composite", + className: "ErrorModel", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetails" + } + } + } + }, + innerError: { + serializedName: "innerError", + type: { + name: "String" + } + } + } + } +}; + export const TagsObject: msRest.CompositeMapper = { serializedName: "TagsObject", type: { @@ -6995,80 +7132,6 @@ export const LoadBalancer: msRest.CompositeMapper = { } }; -export const ErrorDetails: msRest.CompositeMapper = { - serializedName: "ErrorDetails", - type: { - name: "Composite", - className: "ErrorDetails", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - target: { - serializedName: "target", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - -export const ErrorModel: msRest.CompositeMapper = { - serializedName: "Error", - type: { - name: "Composite", - className: "ErrorModel", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - }, - target: { - serializedName: "target", - type: { - name: "String" - } - }, - details: { - serializedName: "details", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetails" - } - } - } - }, - innerError: { - serializedName: "innerError", - type: { - name: "String" - } - } - } - } -}; - export const AzureAsyncOperationResult: msRest.CompositeMapper = { serializedName: "AzureAsyncOperationResult", type: { diff --git a/packages/@azure/arm-network/lib/operations/applicationGateways.ts b/packages/@azure/arm-network/lib/operations/applicationGateways.ts index fcfe33121154..924d495ac75d 100644 --- a/packages/@azure/arm-network/lib/operations/applicationGateways.ts +++ b/packages/@azure/arm-network/lib/operations/applicationGateways.ts @@ -185,6 +185,78 @@ export class ApplicationGateways { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Lists all available server variables. + * @param [options] The optional parameters + * @returns Promise + */ + listAvailableServerVariables(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listAvailableServerVariables(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listAvailableServerVariables(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAvailableServerVariables(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listAvailableServerVariablesOperationSpec, + callback) as Promise; + } + + /** + * Lists all available request headers. + * @param [options] The optional parameters + * @returns Promise + */ + listAvailableRequestHeaders(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listAvailableRequestHeaders(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listAvailableRequestHeaders(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAvailableRequestHeaders(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listAvailableRequestHeadersOperationSpec, + callback) as Promise; + } + + /** + * Lists all available response headers. + * @param [options] The optional parameters + * @returns Promise + */ + listAvailableResponseHeaders(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listAvailableResponseHeaders(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listAvailableResponseHeaders(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAvailableResponseHeaders(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listAvailableResponseHeadersOperationSpec, + callback) as Promise; + } + /** * Lists all available web application firewall rule sets. * @param [options] The optional parameters @@ -556,6 +628,75 @@ const listAllOperationSpec: msRest.OperationSpec = { serializer }; +const listAvailableServerVariablesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableServerVariables", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApplicationGatewayAvailableServerVariablesResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listAvailableRequestHeadersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableRequestHeaders", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApplicationGatewayAvailableRequestHeadersResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listAvailableResponseHeadersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableResponseHeaders", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApplicationGatewayAvailableResponseHeadersResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + const listAvailableWafRuleSetsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets", diff --git a/packages/@azure/arm-network/lib/operations/applicationSecurityGroups.ts b/packages/@azure/arm-network/lib/operations/applicationSecurityGroups.ts index 033c41e05d4e..de4e7cc58536 100644 --- a/packages/@azure/arm-network/lib/operations/applicationSecurityGroups.ts +++ b/packages/@azure/arm-network/lib/operations/applicationSecurityGroups.ts @@ -85,6 +85,19 @@ export class ApplicationSecurityGroups { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Updates an application security group's tags. + * @param resourceGroupName The name of the resource group. + * @param applicationSecurityGroupName The name of the application security group. + * @param parameters Parameters supplied to update application security group tags. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, applicationSecurityGroupName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTags(resourceGroupName,applicationSecurityGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Gets all application security groups in a subscription. * @param [options] The optional parameters @@ -176,6 +189,26 @@ export class ApplicationSecurityGroups { options); } + /** + * Updates an application security group's tags. + * @param resourceGroupName The name of the resource group. + * @param applicationSecurityGroupName The name of the application security group. + * @param parameters Parameters supplied to update application security group tags. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateTags(resourceGroupName: string, applicationSecurityGroupName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + applicationSecurityGroupName, + parameters, + options + }, + beginUpdateTagsOperationSpec, + options); + } + /** * Gets all application security groups in a subscription. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -367,6 +400,38 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; +const beginUpdateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.applicationSecurityGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagsObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ApplicationSecurityGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listAllNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com",