diff --git a/sdk/network/arm-network/CHANGELOG.md b/sdk/network/arm-network/CHANGELOG.md index a9f4ff539885..c721705ae6d3 100644 --- a/sdk/network/arm-network/CHANGELOG.md +++ b/sdk/network/arm-network/CHANGELOG.md @@ -1,15 +1,27 @@ # Release History + +## 31.0.0 (2022-11-29) + +**Features** -## 30.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added Interface DdosProtectionPlansDeleteHeaders + - Added Interface DelegationProperties + - Added Interface PartnerManagedResourceProperties + - Added Interface PublicIPAddressesDdosProtectionStatusHeaders + - Added Interface PublicIPAddressesDeleteHeaders + - Interface BackendAddressPool has a new optional parameter virtualNetwork + - Interface DdosProtectionPlan has a new optional parameter publicIPAddresses + - Interface NetworkVirtualAppliance has a new optional parameter delegation + - Interface NetworkVirtualAppliance has a new optional parameter deploymentType + - Interface NetworkVirtualAppliance has a new optional parameter partnerManagedResource + - Interface PolicySettings has a new optional parameter customBlockResponseBody + - Interface PolicySettings has a new optional parameter customBlockResponseStatusCode -### Other Changes +**Breaking Changes** + - Interface DdosProtectionPlan no longer has parameter publicIpAddresses + + ## 30.0.0 (2022-09-29) **Features** diff --git a/sdk/network/arm-network/README.md b/sdk/network/arm-network/README.md index ee877b144500..dbafed899284 100644 --- a/sdk/network/arm-network/README.md +++ b/sdk/network/arm-network/README.md @@ -13,7 +13,7 @@ Network Client ### Currently supported environments -- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule) - Latest versions of Safari, Chrome, Edge and Firefox. See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details. diff --git a/sdk/network/arm-network/_meta.json b/sdk/network/arm-network/_meta.json index 03f20ca61a2c..2b2c35aed39d 100644 --- a/sdk/network/arm-network/_meta.json +++ b/sdk/network/arm-network/_meta.json @@ -1,8 +1,8 @@ { - "commit": "065b070773ed6fa98ede768ad602f4c4d2edf739", + "commit": "d51c1b32c441015e937c46d73b6111f80ad5bf3c", "readme": "specification/network/resource-manager/readme.md", - "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\network\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.1.20220727.1 --generate-sample=true", + "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/network/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.2", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.1.20220727.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.5.1", + "use": "@autorest/typescript@6.0.0-rc.2" } \ No newline at end of file diff --git a/sdk/network/arm-network/package.json b/sdk/network/arm-network/package.json index 3ea6a2335fdd..e9c9eebfb030 100644 --- a/sdk/network/arm-network/package.json +++ b/sdk/network/arm-network/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NetworkManagementClient.", - "version": "30.0.1", + "version": "31.0.0", "engines": { "node": ">=14.0.0" }, @@ -109,13 +109,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-network?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/network/arm-network/review/arm-network.api.md b/sdk/network/arm-network/review/arm-network.api.md index a15699133e8d..f4b84113321a 100644 --- a/sdk/network/arm-network/review/arm-network.api.md +++ b/sdk/network/arm-network/review/arm-network.api.md @@ -1900,6 +1900,7 @@ export interface BackendAddressPool extends SubResource { readonly provisioningState?: ProvisioningState; tunnelInterfaces?: GatewayLoadBalancerTunnelInterface[]; readonly type?: string; + virtualNetwork?: SubResource; } // @public @@ -2916,7 +2917,7 @@ export interface DdosProtectionPlan { location?: string; readonly name?: string; readonly provisioningState?: ProvisioningState; - readonly publicIpAddresses?: SubResource[]; + readonly publicIPAddresses?: SubResource[]; readonly resourceGuid?: string; tags?: { [propertyName: string]: string; @@ -2952,6 +2953,11 @@ export interface DdosProtectionPlansCreateOrUpdateOptionalParams extends coreCli // @public export type DdosProtectionPlansCreateOrUpdateResponse = DdosProtectionPlan; +// @public +export interface DdosProtectionPlansDeleteHeaders { + location?: string; +} + // @public export interface DdosProtectionPlansDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -3062,6 +3068,12 @@ export interface Delegation extends SubResource { type?: string; } +// @public +export interface DelegationProperties { + readonly provisioningState?: ProvisioningState; + serviceName?: string; +} + // @public export interface DeleteBastionShareableLinkOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -9449,10 +9461,13 @@ export interface NetworkVirtualAppliance extends Resource { bootStrapConfigurationBlobs?: string[]; cloudInitConfiguration?: string; cloudInitConfigurationBlobs?: string[]; + delegation?: DelegationProperties; + readonly deploymentType?: string; readonly etag?: string; identity?: ManagedServiceIdentity; readonly inboundSecurityRules?: SubResource[]; nvaSku?: VirtualApplianceSkuProperties; + partnerManagedResource?: PartnerManagedResourceProperties; readonly provisioningState?: ProvisioningState; sshPublicKey?: string; virtualApplianceAsn?: number; @@ -10203,6 +10218,13 @@ export interface Parameter { routePrefix?: string[]; } +// @public +export interface PartnerManagedResourceProperties { + readonly id?: string; + readonly internalLoadBalancerId?: string; + readonly standardLoadBalancerId?: string; +} + // @public export interface PatchObject { tags?: { @@ -10311,6 +10333,8 @@ export type PfsGroup = string; // @public export interface PolicySettings { + customBlockResponseBody?: string; + customBlockResponseStatusCode?: number; fileUploadLimitInMb?: number; maxRequestBodySizeInKb?: number; mode?: WebApplicationFirewallMode; @@ -10829,6 +10853,11 @@ export interface PublicIPAddressesCreateOrUpdateOptionalParams extends coreClien // @public export type PublicIPAddressesCreateOrUpdateResponse = PublicIPAddress; +// @public +export interface PublicIPAddressesDdosProtectionStatusHeaders { + location?: string; +} + // @public export interface PublicIPAddressesDdosProtectionStatusOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -10838,6 +10867,11 @@ export interface PublicIPAddressesDdosProtectionStatusOptionalParams extends cor // @public export type PublicIPAddressesDdosProtectionStatusResponse = PublicIpDdosProtectionStatusResult; +// @public +export interface PublicIPAddressesDeleteHeaders { + location?: string; +} + // @public export interface PublicIPAddressesDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; diff --git a/sdk/network/arm-network/src/models/index.ts b/sdk/network/arm-network/src/models/index.ts index 2b6b40d13e2c..e7070c58d96c 100644 --- a/sdk/network/arm-network/src/models/index.ts +++ b/sdk/network/arm-network/src/models/index.ts @@ -1126,6 +1126,38 @@ export interface PublicIPAddressListResult { nextLink?: string; } +/** SwapResource to represent slot type on the specified cloud service. */ +export interface SwapResource { + /** + * Resource Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Resource name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Resource type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** Swap resource properties */ + properties?: SwapResourceProperties; +} + +/** Swap resource properties */ +export interface SwapResourceProperties { + /** Specifies slot info on a cloud service */ + slotType?: SlotType; +} + +/** SwapResource List with single entry to represent slot type on the specified cloud service. */ +export interface SwapResourceListResult { + value?: SwapResource[]; +} + /** Response for ListCustomIpPrefixes API service call. */ export interface CustomIpPrefixListResult { /** A list of Custom IP prefixes that exists in a resource group. */ @@ -1174,7 +1206,7 @@ export interface DdosProtectionPlan { * The list of public IPs associated with the DDoS protection plan resource. This list is read-only. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publicIpAddresses?: SubResource[]; + readonly publicIPAddresses?: SubResource[]; /** * The list of virtual networks associated with the DDoS protection plan resource. This list is read-only. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2557,6 +2589,36 @@ export interface VirtualApplianceNicProperties { readonly privateIpAddress?: string; } +/** Properties of the delegation. */ +export interface DelegationProperties { + /** The service name to which the NVA is delegated. */ + serviceName?: string; + /** + * The current provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** Properties of the partner managed resource. */ +export interface PartnerManagedResourceProperties { + /** + * The partner managed resource id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The partner managed ILB resource id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly internalLoadBalancerId?: string; + /** + * The partner managed SLB resource id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly standardLoadBalancerId?: string; +} + /** Response for ListNetworkVirtualAppliances API service call. */ export interface NetworkVirtualApplianceListResult { /** List of Network Virtual Appliances. */ @@ -5504,6 +5566,10 @@ export interface PolicySettings { maxRequestBodySizeInKb?: number; /** Maximum file upload size in Mb for WAF. */ fileUploadLimitInMb?: number; + /** If the action type is block, customer can override the response status code. */ + customBlockResponseStatusCode?: number; + /** If the action type is block, customer can override the response body. The body must be specified in base64 encoding. */ + customBlockResponseBody?: string; } /** Defines contents of a web application rule. */ @@ -5619,38 +5685,6 @@ export interface ManagedRuleOverride { action?: ActionType; } -/** SwapResource to represent slot type on the specified cloud service. */ -export interface SwapResource { - /** - * Resource Id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Resource name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Resource type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** Swap resource properties */ - properties?: SwapResourceProperties; -} - -/** Swap resource properties */ -export interface SwapResourceProperties { - /** Specifies slot info on a cloud service */ - slotType?: SlotType; -} - -/** SwapResource List with single entry to represent slot type on the specified cloud service. */ -export interface SwapResourceListResult { - value?: SwapResource[]; -} - /** Properties of the FirewallPolicyNatRuleCollectionAction. */ export interface FirewallPolicyNatRuleCollectionAction { /** The type of action. */ @@ -6492,6 +6526,8 @@ export interface BackendAddressPool extends SubResource { readonly provisioningState?: ProvisioningState; /** Amount of seconds Load Balancer waits for before sending RESET to client and backend address. */ drainPeriodInSeconds?: number; + /** A reference to a virtual network. */ + virtualNetwork?: SubResource; } /** Inbound NAT rule of the load balancer. */ @@ -9907,7 +9943,7 @@ export interface NetworkVirtualAppliance extends Resource { cloudInitConfigurationBlobs?: string[]; /** CloudInitConfiguration string in plain text. */ cloudInitConfiguration?: string; - /** VirtualAppliance ASN. */ + /** VirtualAppliance ASN. Microsoft private, public and IANA reserved ASN are not supported. */ virtualApplianceAsn?: number; /** Public key for SSH login. */ sshPublicKey?: string; @@ -9931,6 +9967,15 @@ export interface NetworkVirtualAppliance extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * The deployment type. PartnerManaged for the SaaS NVA + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly deploymentType?: string; + /** The delegation for the Virtual Appliance */ + delegation?: DelegationProperties; + /** The delegation for the Virtual Appliance */ + partnerManagedResource?: PartnerManagedResourceProperties; } /** Definition of the NetworkVirtualApplianceSkus resource. */ @@ -11268,6 +11313,24 @@ export interface DefaultAdminRule extends BaseAdminRule { readonly provisioningState?: ProvisioningState; } +/** Defines headers for PublicIPAddresses_delete operation. */ +export interface PublicIPAddressesDeleteHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for PublicIPAddresses_ddosProtectionStatus operation. */ +export interface PublicIPAddressesDdosProtectionStatusHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for DdosProtectionPlans_delete operation. */ +export interface DdosProtectionPlansDeleteHeaders { + /** The URL of the resource used to check the status of the asynchronous operation. */ + location?: string; +} + /** Defines headers for NetworkManagers_delete operation. */ export interface NetworkManagersDeleteHeaders { /** The URL of the resource used to check the status of the asynchronous operation. */ @@ -15851,6 +15914,8 @@ export type ResourceIdentityType = | "UserAssigned" | "SystemAssigned, UserAssigned" | "None"; +/** Defines values for SlotType. */ +export type SlotType = "Production" | "Staging"; /** Defines values for FirewallPolicyIdpsSignatureMode. */ export type FirewallPolicyIdpsSignatureMode = 0 | 1 | 2; /** Defines values for FirewallPolicyIdpsSignatureSeverity. */ @@ -15859,8 +15924,6 @@ export type FirewallPolicyIdpsSignatureSeverity = 1 | 2 | 3; export type FirewallPolicyIdpsSignatureDirection = 0 | 1 | 2; /** Defines values for PacketCaptureTargetType. */ export type PacketCaptureTargetType = "AzureVM" | "AzureVMSS"; -/** Defines values for SlotType. */ -export type SlotType = "Production" | "Staging"; /** Optional parameters. */ export interface ApplicationGatewaysDeleteOptionalParams @@ -16916,6 +16979,28 @@ export interface PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesN /** Contains response data for the listVirtualMachineScaleSetVMPublicIPAddressesNext operation. */ export type PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesNextResponse = PublicIPAddressListResult; +/** Optional parameters. */ +export interface VipSwapGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type VipSwapGetResponse = SwapResource; + +/** Optional parameters. */ +export interface VipSwapCreateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface VipSwapListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type VipSwapListResponse = SwapResourceListResult; + /** Optional parameters. */ export interface CustomIPPrefixesDeleteOptionalParams extends coreClient.OperationOptions { @@ -22558,28 +22643,6 @@ export interface WebApplicationFirewallPoliciesListAllNextOptionalParams /** Contains response data for the listAllNext operation. */ export type WebApplicationFirewallPoliciesListAllNextResponse = WebApplicationFirewallPolicyListResult; -/** Optional parameters. */ -export interface VipSwapGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type VipSwapGetResponse = SwapResource; - -/** Optional parameters. */ -export interface VipSwapCreateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface VipSwapListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type VipSwapListResponse = SwapResourceListResult; - /** Optional parameters. */ export interface NetworkManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/network/arm-network/src/models/mappers.ts b/sdk/network/arm-network/src/models/mappers.ts index 221dcb1c98e5..2546b0a3d8a3 100644 --- a/sdk/network/arm-network/src/models/mappers.ts +++ b/sdk/network/arm-network/src/models/mappers.ts @@ -3087,6 +3087,80 @@ export const PublicIPAddressListResult: coreClient.CompositeMapper = { } }; +export const SwapResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SwapResource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "SwapResourceProperties" + } + } + } + } +}; + +export const SwapResourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SwapResourceProperties", + modelProperties: { + slotType: { + serializedName: "slotType", + type: { + name: "Enum", + allowedValues: ["Production", "Staging"] + } + } + } + } +}; + +export const SwapResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SwapResourceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SwapResource" + } + } + } + } + } + } +}; + export const CustomIpPrefixListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3174,8 +3248,8 @@ export const DdosProtectionPlan: coreClient.CompositeMapper = { name: "String" } }, - publicIpAddresses: { - serializedName: "properties.publicIpAddresses", + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", readOnly: true, type: { name: "Sequence", @@ -7279,6 +7353,58 @@ export const VirtualApplianceNicProperties: coreClient.CompositeMapper = { } }; +export const DelegationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DelegationProperties", + modelProperties: { + serviceName: { + serializedName: "serviceName", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const PartnerManagedResourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartnerManagedResourceProperties", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + internalLoadBalancerId: { + serializedName: "internalLoadBalancerId", + readOnly: true, + type: { + name: "String" + } + }, + standardLoadBalancerId: { + serializedName: "standardLoadBalancerId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const NetworkVirtualApplianceListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -15555,6 +15681,27 @@ export const PolicySettings: coreClient.CompositeMapper = { type: { name: "Number" } + }, + customBlockResponseStatusCode: { + constraints: { + InclusiveMinimum: 0 + }, + serializedName: "customBlockResponseStatusCode", + type: { + name: "Number" + } + }, + customBlockResponseBody: { + constraints: { + Pattern: new RegExp( + "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$" + ), + MaxLength: 32768 + }, + serializedName: "customBlockResponseBody", + type: { + name: "String" + } } } } @@ -15945,80 +16092,6 @@ export const ManagedRuleOverride: coreClient.CompositeMapper = { } }; -export const SwapResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SwapResource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "SwapResourceProperties" - } - } - } - } -}; - -export const SwapResourceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SwapResourceProperties", - modelProperties: { - slotType: { - serializedName: "slotType", - type: { - name: "Enum", - allowedValues: ["Production", "Staging"] - } - } - } - } -}; - -export const SwapResourceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SwapResourceListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SwapResource" - } - } - } - } - } - } -}; - export const FirewallPolicyNatRuleCollectionAction: coreClient.CompositeMapper = { type: { name: "Composite", @@ -18020,6 +18093,13 @@ export const BackendAddressPool: coreClient.CompositeMapper = { type: { name: "Number" } + }, + virtualNetwork: { + serializedName: "properties.virtualNetwork", + type: { + name: "Composite", + className: "SubResource" + } } } } @@ -26476,6 +26556,27 @@ export const NetworkVirtualAppliance: coreClient.CompositeMapper = { type: { name: "String" } + }, + deploymentType: { + serializedName: "properties.deploymentType", + readOnly: true, + type: { + name: "String" + } + }, + delegation: { + serializedName: "properties.delegation", + type: { + name: "Composite", + className: "DelegationProperties" + } + }, + partnerManagedResource: { + serializedName: "properties.partnerManagedResource", + type: { + name: "Composite", + className: "PartnerManagedResourceProperties" + } } } } @@ -29973,6 +30074,51 @@ export const DefaultAdminRule: coreClient.CompositeMapper = { } }; +export const PublicIPAddressesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PublicIPAddressesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const PublicIPAddressesDdosProtectionStatusHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PublicIPAddressesDdosProtectionStatusHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const DdosProtectionPlansDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DdosProtectionPlansDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + export const NetworkManagersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/network/arm-network/src/models/parameters.ts b/sdk/network/arm-network/src/models/parameters.ts index 6303f37dafc9..1fed00b3520c 100644 --- a/sdk/network/arm-network/src/models/parameters.ts +++ b/sdk/network/arm-network/src/models/parameters.ts @@ -26,6 +26,7 @@ import { VirtualWanVpnProfileParameters as VirtualWanVpnProfileParametersMapper, NetworkInterface as NetworkInterfaceMapper, PublicIPAddress as PublicIPAddressMapper, + SwapResource as SwapResourceMapper, CustomIpPrefix as CustomIpPrefixMapper, DdosCustomPolicy as DdosCustomPolicyMapper, DdosProtectionPlan as DdosProtectionPlanMapper, @@ -148,8 +149,7 @@ import { HubIpConfiguration as HubIpConfigurationMapper, HubRouteTable as HubRouteTableMapper, RoutingIntent as RoutingIntentMapper, - WebApplicationFirewallPolicy as WebApplicationFirewallPolicyMapper, - SwapResource as SwapResourceMapper + WebApplicationFirewallPolicy as WebApplicationFirewallPolicyMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -201,7 +201,7 @@ export const applicationGatewayName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-05-01", + defaultValue: "2022-07-01", isConstant: true, serializedName: "api-version", type: { @@ -575,6 +575,45 @@ export const parameters9: OperationParameter = { mapper: PublicIPAddressMapper }; +export const groupName: OperationURLParameter = { + parameterPath: "groupName", + mapper: { + serializedName: "groupName", + required: true, + type: { + name: "String" + } + } +}; + +export const resourceName: OperationURLParameter = { + parameterPath: "resourceName", + mapper: { + serializedName: "resourceName", + required: true, + type: { + name: "String" + } + } +}; + +export const singletonResource: OperationURLParameter = { + parameterPath: "singletonResource", + mapper: { + defaultValue: "swap", + isConstant: true, + serializedName: "singletonResource", + type: { + name: "String" + } + } +}; + +export const parameters10: OperationParameter = { + parameterPath: "parameters", + mapper: SwapResourceMapper +}; + export const customIpPrefixName: OperationURLParameter = { parameterPath: "customIpPrefixName", mapper: { @@ -586,7 +625,7 @@ export const customIpPrefixName: OperationURLParameter = { } }; -export const parameters10: OperationParameter = { +export const parameters11: OperationParameter = { parameterPath: "parameters", mapper: CustomIpPrefixMapper }; @@ -602,7 +641,7 @@ export const ddosCustomPolicyName: OperationURLParameter = { } }; -export const parameters11: OperationParameter = { +export const parameters12: OperationParameter = { parameterPath: "parameters", mapper: DdosCustomPolicyMapper }; @@ -618,12 +657,12 @@ export const ddosProtectionPlanName: OperationURLParameter = { } }; -export const parameters12: OperationParameter = { +export const parameters13: OperationParameter = { parameterPath: "parameters", mapper: DdosProtectionPlanMapper }; -export const parameters13: OperationParameter = { +export const parameters14: OperationParameter = { parameterPath: "parameters", mapper: DscpConfigurationMapper }; @@ -687,7 +726,7 @@ export const expressRouteCircuitConnectionParameters: OperationParameter = { mapper: ExpressRouteCircuitConnectionMapper }; -export const parameters14: OperationParameter = { +export const parameters15: OperationParameter = { parameterPath: "parameters", mapper: ExpressRouteCircuitMapper }; @@ -714,7 +753,7 @@ export const crossConnectionName: OperationURLParameter = { } }; -export const parameters15: OperationParameter = { +export const parameters16: OperationParameter = { parameterPath: "parameters", mapper: ExpressRouteCrossConnectionMapper }; @@ -751,7 +790,7 @@ export const expressRoutePortName: OperationURLParameter = { } }; -export const parameters16: OperationParameter = { +export const parameters17: OperationParameter = { parameterPath: "parameters", mapper: ExpressRoutePortMapper }; @@ -798,7 +837,7 @@ export const firewallPolicyName: OperationURLParameter = { } }; -export const parameters17: OperationParameter = { +export const parameters18: OperationParameter = { parameterPath: "parameters", mapper: FirewallPolicyMapper }; @@ -814,22 +853,22 @@ export const ruleCollectionGroupName: OperationURLParameter = { } }; -export const parameters18: OperationParameter = { +export const parameters19: OperationParameter = { parameterPath: "parameters", mapper: FirewallPolicyRuleCollectionGroupMapper }; -export const parameters19: OperationParameter = { +export const parameters20: OperationParameter = { parameterPath: "parameters", mapper: IdpsQueryObjectMapper }; -export const parameters20: OperationParameter = { +export const parameters21: OperationParameter = { parameterPath: "parameters", mapper: SignaturesOverridesMapper }; -export const parameters21: OperationParameter = { +export const parameters22: OperationParameter = { parameterPath: "parameters", mapper: SignatureOverridesFilterValuesQueryMapper }; @@ -845,7 +884,7 @@ export const ipAllocationName: OperationURLParameter = { } }; -export const parameters22: OperationParameter = { +export const parameters23: OperationParameter = { parameterPath: "parameters", mapper: IpAllocationMapper }; @@ -861,7 +900,7 @@ export const ipGroupsName: OperationURLParameter = { } }; -export const parameters23: OperationParameter = { +export const parameters24: OperationParameter = { parameterPath: "parameters", mapper: IpGroupMapper }; @@ -877,32 +916,21 @@ export const loadBalancerName: OperationURLParameter = { } }; -export const parameters24: OperationParameter = { +export const parameters25: OperationParameter = { parameterPath: "parameters", mapper: LoadBalancerMapper }; -export const parameters25: OperationParameter = { +export const parameters26: OperationParameter = { parameterPath: "parameters", mapper: LoadBalancerVipSwapRequestMapper }; -export const parameters26: OperationParameter = { +export const parameters27: OperationParameter = { parameterPath: "parameters", mapper: QueryInboundNatRulePortMappingRequestMapper }; -export const groupName: OperationURLParameter = { - parameterPath: "groupName", - mapper: { - serializedName: "groupName", - required: true, - type: { - name: "String" - } - } -}; - export const backendPoolName: OperationURLParameter = { parameterPath: "backendPoolName", mapper: { @@ -925,7 +953,7 @@ export const backendAddressPoolName: OperationURLParameter = { } }; -export const parameters27: OperationParameter = { +export const parameters28: OperationParameter = { parameterPath: "parameters", mapper: BackendAddressPoolMapper }; @@ -1001,7 +1029,7 @@ export const natGatewayName: OperationURLParameter = { } }; -export const parameters28: OperationParameter = { +export const parameters29: OperationParameter = { parameterPath: "parameters", mapper: NatGatewayMapper }; @@ -1022,7 +1050,7 @@ export const tapConfigurationParameters: OperationParameter = { mapper: NetworkInterfaceTapConfigurationMapper }; -export const parameters29: OperationParameter = { +export const parameters30: OperationParameter = { parameterPath: "parameters", mapper: NetworkManagerMapper }; @@ -1037,7 +1065,7 @@ export const force: OperationQueryParameter = { } }; -export const parameters30: OperationParameter = { +export const parameters31: OperationParameter = { parameterPath: "parameters", mapper: PatchObjectMapper }; @@ -1052,17 +1080,17 @@ export const skipToken: OperationQueryParameter = { } }; -export const parameters31: OperationParameter = { +export const parameters32: OperationParameter = { parameterPath: "parameters", mapper: NetworkManagerCommitMapper }; -export const parameters32: OperationParameter = { +export const parameters33: OperationParameter = { parameterPath: "parameters", mapper: NetworkManagerDeploymentStatusParameterMapper }; -export const parameters33: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: "parameters", mapper: NetworkManagerConnectionMapper }; @@ -1116,7 +1144,7 @@ export const networkGroupName: OperationURLParameter = { } }; -export const parameters34: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", mapper: NetworkGroupMapper }; @@ -1142,12 +1170,12 @@ export const staticMemberName: OperationURLParameter = { } }; -export const parameters35: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: "parameters", mapper: StaticMemberMapper }; -export const parameters36: OperationParameter = { +export const parameters37: OperationParameter = { parameterPath: "parameters", mapper: ScopeConnectionMapper }; @@ -1211,7 +1239,7 @@ export const networkProfileName: OperationURLParameter = { } }; -export const parameters37: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", mapper: NetworkProfileMapper }; @@ -1227,7 +1255,7 @@ export const networkSecurityGroupName: OperationURLParameter = { } }; -export const parameters38: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: "parameters", mapper: NetworkSecurityGroupMapper }; @@ -1270,7 +1298,7 @@ export const networkVirtualApplianceName: OperationURLParameter = { } }; -export const parameters39: OperationParameter = { +export const parameters40: OperationParameter = { parameterPath: "parameters", mapper: NetworkVirtualApplianceMapper }; @@ -1286,7 +1314,7 @@ export const siteName: OperationURLParameter = { } }; -export const parameters40: OperationParameter = { +export const parameters41: OperationParameter = { parameterPath: "parameters", mapper: VirtualApplianceSiteMapper }; @@ -1302,12 +1330,12 @@ export const skuName: OperationURLParameter = { } }; -export const parameters41: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: "parameters", mapper: InboundSecurityRuleMapper }; -export const parameters42: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: "parameters", mapper: NetworkWatcherMapper }; @@ -1323,67 +1351,67 @@ export const networkWatcherName: OperationURLParameter = { } }; -export const parameters43: OperationParameter = { +export const parameters44: OperationParameter = { parameterPath: "parameters", mapper: TopologyParametersMapper }; -export const parameters44: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: "parameters", mapper: VerificationIPFlowParametersMapper }; -export const parameters45: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", mapper: NextHopParametersMapper }; -export const parameters46: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", mapper: SecurityGroupViewParametersMapper }; -export const parameters47: OperationParameter = { +export const parameters48: OperationParameter = { parameterPath: "parameters", mapper: TroubleshootingParametersMapper }; -export const parameters48: OperationParameter = { +export const parameters49: OperationParameter = { parameterPath: "parameters", mapper: QueryTroubleshootingParametersMapper }; -export const parameters49: OperationParameter = { +export const parameters50: OperationParameter = { parameterPath: "parameters", mapper: FlowLogInformationMapper }; -export const parameters50: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", mapper: FlowLogStatusParametersMapper }; -export const parameters51: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: "parameters", mapper: ConnectivityParametersMapper }; -export const parameters52: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", mapper: AzureReachabilityReportParametersMapper }; -export const parameters53: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", mapper: AvailableProvidersListParametersMapper }; -export const parameters54: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", mapper: NetworkConfigurationDiagnosticParametersMapper }; -export const parameters55: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", mapper: PacketCaptureMapper }; @@ -1399,7 +1427,7 @@ export const packetCaptureName: OperationURLParameter = { } }; -export const parameters56: OperationParameter = { +export const parameters57: OperationParameter = { parameterPath: "parameters", mapper: ConnectionMonitorMapper }; @@ -1425,7 +1453,7 @@ export const migrate: OperationQueryParameter = { } }; -export const parameters57: OperationParameter = { +export const parameters58: OperationParameter = { parameterPath: "parameters", mapper: FlowLogMapper }; @@ -1452,7 +1480,7 @@ export const privateEndpointName: OperationURLParameter = { } }; -export const parameters58: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointMapper }; @@ -1468,7 +1496,7 @@ export const privateDnsZoneGroupName: OperationURLParameter = { } }; -export const parameters59: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", mapper: PrivateDnsZoneGroupMapper }; @@ -1484,7 +1512,7 @@ export const serviceName: OperationURLParameter = { } }; -export const parameters60: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", mapper: PrivateLinkServiceMapper }; @@ -1500,12 +1528,12 @@ export const peConnectionName: OperationURLParameter = { } }; -export const parameters61: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointConnectionMapper }; -export const parameters62: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", mapper: CheckPrivateLinkServiceVisibilityRequestMapper }; @@ -1521,7 +1549,7 @@ export const publicIpPrefixName: OperationURLParameter = { } }; -export const parameters63: OperationParameter = { +export const parameters64: OperationParameter = { parameterPath: "parameters", mapper: PublicIPPrefixMapper }; @@ -1558,7 +1586,7 @@ export const routeTableName: OperationURLParameter = { } }; -export const parameters64: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", mapper: RouteTableMapper }; @@ -1590,7 +1618,7 @@ export const securityPartnerProviderName: OperationURLParameter = { } }; -export const parameters65: OperationParameter = { +export const parameters66: OperationParameter = { parameterPath: "parameters", mapper: SecurityPartnerProviderMapper }; @@ -1606,7 +1634,7 @@ export const serviceEndpointPolicyName: OperationURLParameter = { } }; -export const parameters66: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", mapper: ServiceEndpointPolicyMapper }; @@ -1661,7 +1689,7 @@ export const location1: OperationURLParameter = { } }; -export const parameters67: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkMapper }; @@ -1749,7 +1777,7 @@ export const syncRemoteAddressSpace: OperationQueryParameter = { } }; -export const parameters68: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkGatewayMapper }; @@ -1775,7 +1803,7 @@ export const gatewayVip: OperationQueryParameter = { } }; -export const parameters69: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", mapper: VpnClientParametersMapper }; @@ -1806,7 +1834,7 @@ export const vpnclientIpsecParams: OperationParameter = { mapper: VpnClientIPsecParametersMapper }; -export const parameters70: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", mapper: VpnDeviceScriptParametersMapper }; @@ -1822,12 +1850,12 @@ export const virtualNetworkGatewayConnectionName: OperationURLParameter = { } }; -export const parameters71: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnPacketCaptureStartParametersMapper }; -export const parameters72: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: "parameters", mapper: VpnPacketCaptureStopParametersMapper }; @@ -1837,22 +1865,22 @@ export const request1: OperationParameter = { mapper: P2SVpnConnectionRequestMapper }; -export const parameters73: OperationParameter = { +export const parameters74: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkGatewayConnectionMapper }; -export const parameters74: OperationParameter = { +export const parameters75: OperationParameter = { parameterPath: "parameters", mapper: ConnectionSharedKeyMapper }; -export const parameters75: OperationParameter = { +export const parameters76: OperationParameter = { parameterPath: "parameters", mapper: ConnectionResetSharedKeyMapper }; -export const parameters76: OperationParameter = { +export const parameters77: OperationParameter = { parameterPath: "parameters", mapper: LocalNetworkGatewayMapper }; @@ -1898,7 +1926,7 @@ export const tapName: OperationURLParameter = { } }; -export const parameters77: OperationParameter = { +export const parameters78: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkTapMapper }; @@ -1919,12 +1947,12 @@ export const virtualRouterName: OperationURLParameter = { } }; -export const parameters78: OperationParameter = { +export const parameters79: OperationParameter = { parameterPath: "parameters", mapper: VirtualRouterMapper }; -export const parameters79: OperationParameter = { +export const parameters80: OperationParameter = { parameterPath: "parameters", mapper: VirtualRouterPeeringMapper }; @@ -2102,12 +2130,12 @@ export const vpnGatewayParameters1: OperationParameter = { mapper: TagsObjectMapper }; -export const parameters80: OperationParameter = { +export const parameters81: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnGatewayPacketCaptureStartParametersMapper }; -export const parameters81: OperationParameter = { +export const parameters82: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnGatewayPacketCaptureStopParametersMapper }; @@ -2128,7 +2156,7 @@ export const vpnConnectionParameters: OperationParameter = { mapper: VpnConnectionMapper }; -export const parameters82: OperationParameter = { +export const parameters83: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnConnectionPacketCaptureStartParametersMapper }; @@ -2144,7 +2172,7 @@ export const vpnConnectionName: OperationURLParameter = { } }; -export const parameters83: OperationParameter = { +export const parameters84: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnConnectionPacketCaptureStopParametersMapper }; @@ -2164,7 +2192,7 @@ export const p2SVpnGatewayParameters1: OperationParameter = { mapper: TagsObjectMapper }; -export const parameters84: OperationParameter = { +export const parameters85: OperationParameter = { parameterPath: "parameters", mapper: P2SVpnProfileParametersMapper }; @@ -2216,7 +2244,7 @@ export const putExpressRouteConnectionParameters: OperationParameter = { mapper: ExpressRouteConnectionMapper }; -export const parameters85: OperationParameter = { +export const parameters86: OperationParameter = { parameterPath: "parameters", mapper: BgpConnectionMapper }; @@ -2243,7 +2271,7 @@ export const ipConfigName: OperationURLParameter = { } }; -export const parameters86: OperationParameter = { +export const parameters87: OperationParameter = { parameterPath: "parameters", mapper: HubIpConfigurationMapper }; @@ -2283,35 +2311,7 @@ export const policyName: OperationURLParameter = { } }; -export const parameters87: OperationParameter = { - parameterPath: "parameters", - mapper: WebApplicationFirewallPolicyMapper -}; - -export const resourceName: OperationURLParameter = { - parameterPath: "resourceName", - mapper: { - serializedName: "resourceName", - required: true, - type: { - name: "String" - } - } -}; - -export const singletonResource: OperationURLParameter = { - parameterPath: "singletonResource", - mapper: { - defaultValue: "swap", - isConstant: true, - serializedName: "singletonResource", - type: { - name: "String" - } - } -}; - export const parameters88: OperationParameter = { parameterPath: "parameters", - mapper: SwapResourceMapper + mapper: WebApplicationFirewallPolicyMapper }; diff --git a/sdk/network/arm-network/src/networkManagementClient.ts b/sdk/network/arm-network/src/networkManagementClient.ts index 742c8eee424b..b2ed3a8b1bc8 100644 --- a/sdk/network/arm-network/src/networkManagementClient.ts +++ b/sdk/network/arm-network/src/networkManagementClient.ts @@ -28,6 +28,7 @@ import { BastionHostsImpl, NetworkInterfacesImpl, PublicIPAddressesImpl, + VipSwapImpl, CustomIPPrefixesImpl, DdosCustomPoliciesImpl, DdosProtectionPlansImpl, @@ -142,8 +143,7 @@ import { VirtualHubIpConfigurationImpl, HubRouteTablesImpl, RoutingIntentOperationsImpl, - WebApplicationFirewallPoliciesImpl, - VipSwapImpl + WebApplicationFirewallPoliciesImpl } from "./operations"; import { ApplicationGateways, @@ -161,6 +161,7 @@ import { BastionHosts, NetworkInterfaces, PublicIPAddresses, + VipSwap, CustomIPPrefixes, DdosCustomPolicies, DdosProtectionPlans, @@ -275,8 +276,7 @@ import { VirtualHubIpConfiguration, HubRouteTables, RoutingIntentOperations, - WebApplicationFirewallPolicies, - VipSwap + WebApplicationFirewallPolicies } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; @@ -358,7 +358,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-network/30.0.1`; + const packageDetails = `azsdk-js-arm-network/31.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -437,6 +437,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { this.bastionHosts = new BastionHostsImpl(this); this.networkInterfaces = new NetworkInterfacesImpl(this); this.publicIPAddresses = new PublicIPAddressesImpl(this); + this.vipSwap = new VipSwapImpl(this); this.customIPPrefixes = new CustomIPPrefixesImpl(this); this.ddosCustomPolicies = new DdosCustomPoliciesImpl(this); this.ddosProtectionPlans = new DdosProtectionPlansImpl(this); @@ -620,7 +621,6 @@ export class NetworkManagementClient extends coreClient.ServiceClient { this.webApplicationFirewallPolicies = new WebApplicationFirewallPoliciesImpl( this ); - this.vipSwap = new VipSwapImpl(this); } /** @@ -1527,6 +1527,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { bastionHosts: BastionHosts; networkInterfaces: NetworkInterfaces; publicIPAddresses: PublicIPAddresses; + vipSwap: VipSwap; customIPPrefixes: CustomIPPrefixes; ddosCustomPolicies: DdosCustomPolicies; ddosProtectionPlans: DdosProtectionPlans; @@ -1642,7 +1643,6 @@ export class NetworkManagementClient extends coreClient.ServiceClient { hubRouteTables: HubRouteTables; routingIntentOperations: RoutingIntentOperations; webApplicationFirewallPolicies: WebApplicationFirewallPolicies; - vipSwap: VipSwap; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); diff --git a/sdk/network/arm-network/src/operations/connectionMonitors.ts b/sdk/network/arm-network/src/operations/connectionMonitors.ts index dd088d7ea68a..18a969b4b833 100644 --- a/sdk/network/arm-network/src/operations/connectionMonitors.ts +++ b/sdk/network/arm-network/src/operations/connectionMonitors.ts @@ -654,7 +654,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters56, + requestBody: Parameters.parameters57, queryParameters: [Parameters.apiVersion, Parameters.migrate], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/customIPPrefixes.ts b/sdk/network/arm-network/src/operations/customIPPrefixes.ts index 9be6c6bba5f6..1216594537d0 100644 --- a/sdk/network/arm-network/src/operations/customIPPrefixes.ts +++ b/sdk/network/arm-network/src/operations/customIPPrefixes.ts @@ -477,7 +477,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters10, + requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/ddosCustomPolicies.ts b/sdk/network/arm-network/src/operations/ddosCustomPolicies.ts index 0cf33945eb1d..1f685632110e 100644 --- a/sdk/network/arm-network/src/operations/ddosCustomPolicies.ts +++ b/sdk/network/arm-network/src/operations/ddosCustomPolicies.ts @@ -318,7 +318,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters11, + requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/ddosProtectionPlans.ts b/sdk/network/arm-network/src/operations/ddosProtectionPlans.ts index 390c711c3ecb..3043e0fc476f 100644 --- a/sdk/network/arm-network/src/operations/ddosProtectionPlans.ts +++ b/sdk/network/arm-network/src/operations/ddosProtectionPlans.ts @@ -480,7 +480,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters12, + requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/dscpConfigurationOperations.ts b/sdk/network/arm-network/src/operations/dscpConfigurationOperations.ts index 8f227c96aa10..19af0bee1e01 100644 --- a/sdk/network/arm-network/src/operations/dscpConfigurationOperations.ts +++ b/sdk/network/arm-network/src/operations/dscpConfigurationOperations.ts @@ -411,7 +411,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters13, + requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/expressRouteCircuits.ts b/sdk/network/arm-network/src/operations/expressRouteCircuits.ts index a07cc7e1e05b..c91b1f76d366 100644 --- a/sdk/network/arm-network/src/operations/expressRouteCircuits.ts +++ b/sdk/network/arm-network/src/operations/expressRouteCircuits.ts @@ -823,7 +823,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters14, + requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/expressRouteCrossConnections.ts b/sdk/network/arm-network/src/operations/expressRouteCrossConnections.ts index f24bb52b8479..9cdc933d5544 100644 --- a/sdk/network/arm-network/src/operations/expressRouteCrossConnections.ts +++ b/sdk/network/arm-network/src/operations/expressRouteCrossConnections.ts @@ -741,7 +741,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters15, + requestBody: Parameters.parameters16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/expressRoutePorts.ts b/sdk/network/arm-network/src/operations/expressRoutePorts.ts index 2ee4bcd10658..cda0e6586d7a 100644 --- a/sdk/network/arm-network/src/operations/expressRoutePorts.ts +++ b/sdk/network/arm-network/src/operations/expressRoutePorts.ts @@ -502,7 +502,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters16, + requestBody: Parameters.parameters17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/firewallPolicies.ts b/sdk/network/arm-network/src/operations/firewallPolicies.ts index d54864352f62..0c87c8dd62c5 100644 --- a/sdk/network/arm-network/src/operations/firewallPolicies.ts +++ b/sdk/network/arm-network/src/operations/firewallPolicies.ts @@ -477,7 +477,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters17, + requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignatures.ts b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignatures.ts index d639be61ca16..7e777b48e2bf 100644 --- a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignatures.ts +++ b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignatures.ts @@ -64,7 +64,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters19, + requestBody: Parameters.parameters20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesFilterValues.ts b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesFilterValues.ts index 7cfa1c8a42bd..af2d63b6005a 100644 --- a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesFilterValues.ts +++ b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesFilterValues.ts @@ -64,7 +64,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters21, + requestBody: Parameters.parameters22, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesOverrides.ts b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesOverrides.ts index 908d37926111..04544c7215d2 100644 --- a/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesOverrides.ts +++ b/sdk/network/arm-network/src/operations/firewallPolicyIdpsSignaturesOverrides.ts @@ -123,7 +123,7 @@ const patchOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -147,7 +147,7 @@ const putOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters20, + requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/firewallPolicyRuleCollectionGroups.ts b/sdk/network/arm-network/src/operations/firewallPolicyRuleCollectionGroups.ts index 9bf1a202b4ea..1eb495d37740 100644 --- a/sdk/network/arm-network/src/operations/firewallPolicyRuleCollectionGroups.ts +++ b/sdk/network/arm-network/src/operations/firewallPolicyRuleCollectionGroups.ts @@ -444,7 +444,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters18, + requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/flowLogs.ts b/sdk/network/arm-network/src/operations/flowLogs.ts index ddbe31e090a6..78d7ee643cac 100644 --- a/sdk/network/arm-network/src/operations/flowLogs.ts +++ b/sdk/network/arm-network/src/operations/flowLogs.ts @@ -412,7 +412,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters57, + requestBody: Parameters.parameters58, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts b/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts index 297a81f5aac1..42724fc8ff2d 100644 --- a/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts +++ b/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts @@ -162,7 +162,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters42, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/index.ts b/sdk/network/arm-network/src/operations/index.ts index a8eb2d961ddb..a666d0b45a47 100644 --- a/sdk/network/arm-network/src/operations/index.ts +++ b/sdk/network/arm-network/src/operations/index.ts @@ -21,6 +21,7 @@ export * from "./webCategories"; export * from "./bastionHosts"; export * from "./networkInterfaces"; export * from "./publicIPAddresses"; +export * from "./vipSwap"; export * from "./customIPPrefixes"; export * from "./ddosCustomPolicies"; export * from "./ddosProtectionPlans"; @@ -136,4 +137,3 @@ export * from "./virtualHubIpConfiguration"; export * from "./hubRouteTables"; export * from "./routingIntentOperations"; export * from "./webApplicationFirewallPolicies"; -export * from "./vipSwap"; diff --git a/sdk/network/arm-network/src/operations/ipAllocations.ts b/sdk/network/arm-network/src/operations/ipAllocations.ts index a8cf3d6c996b..9a90d4659225 100644 --- a/sdk/network/arm-network/src/operations/ipAllocations.ts +++ b/sdk/network/arm-network/src/operations/ipAllocations.ts @@ -480,7 +480,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters22, + requestBody: Parameters.parameters23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/ipGroups.ts b/sdk/network/arm-network/src/operations/ipGroups.ts index 3bd36fdf5351..ecf44e31bfac 100644 --- a/sdk/network/arm-network/src/operations/ipGroups.ts +++ b/sdk/network/arm-network/src/operations/ipGroups.ts @@ -457,7 +457,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters23, + requestBody: Parameters.parameters24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/loadBalancerBackendAddressPools.ts b/sdk/network/arm-network/src/operations/loadBalancerBackendAddressPools.ts index f8bd10eab7b8..2fc28b05874c 100644 --- a/sdk/network/arm-network/src/operations/loadBalancerBackendAddressPools.ts +++ b/sdk/network/arm-network/src/operations/loadBalancerBackendAddressPools.ts @@ -426,7 +426,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters27, + requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/loadBalancers.ts b/sdk/network/arm-network/src/operations/loadBalancers.ts index 5cd39c83a534..014abf68e428 100644 --- a/sdk/network/arm-network/src/operations/loadBalancers.ts +++ b/sdk/network/arm-network/src/operations/loadBalancers.ts @@ -663,7 +663,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters24, + requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -750,7 +750,7 @@ const swapPublicIpAddressesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters25, + requestBody: Parameters.parameters26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -782,13 +782,13 @@ const listInboundNatRulePortMappingsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters26, + requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.loadBalancerName, Parameters.groupName, + Parameters.loadBalancerName, Parameters.backendPoolName ], headerParameters: [Parameters.accept, Parameters.contentType], diff --git a/sdk/network/arm-network/src/operations/localNetworkGateways.ts b/sdk/network/arm-network/src/operations/localNetworkGateways.ts index 203b7ec0ebb0..ab55a728a4cd 100644 --- a/sdk/network/arm-network/src/operations/localNetworkGateways.ts +++ b/sdk/network/arm-network/src/operations/localNetworkGateways.ts @@ -361,7 +361,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters76, + requestBody: Parameters.parameters77, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/managementGroupNetworkManagerConnections.ts b/sdk/network/arm-network/src/operations/managementGroupNetworkManagerConnections.ts index 1596aae282ee..69e0e6b7229c 100644 --- a/sdk/network/arm-network/src/operations/managementGroupNetworkManagerConnections.ts +++ b/sdk/network/arm-network/src/operations/managementGroupNetworkManagerConnections.ts @@ -198,7 +198,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/natGateways.ts b/sdk/network/arm-network/src/operations/natGateways.ts index e3feffaf8d3b..9225417f258c 100644 --- a/sdk/network/arm-network/src/operations/natGateways.ts +++ b/sdk/network/arm-network/src/operations/natGateways.ts @@ -477,7 +477,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters28, + requestBody: Parameters.parameters29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkGroups.ts b/sdk/network/arm-network/src/operations/networkGroups.ts index 8d0e5e258f32..bf5ab71d6f67 100644 --- a/sdk/network/arm-network/src/operations/networkGroups.ts +++ b/sdk/network/arm-network/src/operations/networkGroups.ts @@ -324,7 +324,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters34, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkManagerCommits.ts b/sdk/network/arm-network/src/operations/networkManagerCommits.ts index 0acce4b8b3d0..d614f67d15fe 100644 --- a/sdk/network/arm-network/src/operations/networkManagerCommits.ts +++ b/sdk/network/arm-network/src/operations/networkManagerCommits.ts @@ -148,7 +148,7 @@ const postOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts b/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts index e90c7d946b83..7796b576677d 100644 --- a/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts +++ b/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts @@ -64,7 +64,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkManagers.ts b/sdk/network/arm-network/src/operations/networkManagers.ts index a36dba1c9423..eff670aa1125 100644 --- a/sdk/network/arm-network/src/operations/networkManagers.ts +++ b/sdk/network/arm-network/src/operations/networkManagers.ts @@ -377,7 +377,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters29, + requestBody: Parameters.parameters30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -424,7 +424,7 @@ const patchOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters30, + requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkProfiles.ts b/sdk/network/arm-network/src/operations/networkProfiles.ts index a0cd334e91b4..cc86137a0591 100644 --- a/sdk/network/arm-network/src/operations/networkProfiles.ts +++ b/sdk/network/arm-network/src/operations/networkProfiles.ts @@ -397,7 +397,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters37, + requestBody: Parameters.parameters38, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkSecurityGroups.ts b/sdk/network/arm-network/src/operations/networkSecurityGroups.ts index f66000208534..043db477060f 100644 --- a/sdk/network/arm-network/src/operations/networkSecurityGroups.ts +++ b/sdk/network/arm-network/src/operations/networkSecurityGroups.ts @@ -477,7 +477,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters38, + requestBody: Parameters.parameters39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkVirtualAppliances.ts b/sdk/network/arm-network/src/operations/networkVirtualAppliances.ts index 45d47271f79e..7e1f5d1aa7d9 100644 --- a/sdk/network/arm-network/src/operations/networkVirtualAppliances.ts +++ b/sdk/network/arm-network/src/operations/networkVirtualAppliances.ts @@ -504,7 +504,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters39, + requestBody: Parameters.parameters40, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkWatchers.ts b/sdk/network/arm-network/src/operations/networkWatchers.ts index 7f1d906da13e..03e9f0524f8a 100644 --- a/sdk/network/arm-network/src/operations/networkWatchers.ts +++ b/sdk/network/arm-network/src/operations/networkWatchers.ts @@ -1396,7 +1396,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters42, + requestBody: Parameters.parameters43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1527,7 +1527,7 @@ const getTopologyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters43, + requestBody: Parameters.parameters44, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1560,7 +1560,7 @@ const verifyIPFlowOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters44, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1593,7 +1593,7 @@ const getNextHopOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters45, + requestBody: Parameters.parameters46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1626,7 +1626,7 @@ const getVMSecurityRulesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters46, + requestBody: Parameters.parameters47, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1659,7 +1659,7 @@ const getTroubleshootingOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters47, + requestBody: Parameters.parameters48, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1692,7 +1692,7 @@ const getTroubleshootingResultOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters49, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1725,7 +1725,7 @@ const setFlowLogConfigurationOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters49, + requestBody: Parameters.parameters50, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1758,7 +1758,7 @@ const getFlowLogStatusOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters50, + requestBody: Parameters.parameters51, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1791,7 +1791,7 @@ const checkConnectivityOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters52, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1824,7 +1824,7 @@ const getAzureReachabilityReportOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters52, + requestBody: Parameters.parameters53, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1857,7 +1857,7 @@ const listAvailableProvidersOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters53, + requestBody: Parameters.parameters54, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1890,7 +1890,7 @@ const getNetworkConfigurationDiagnosticOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters55, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/p2SVpnGateways.ts b/sdk/network/arm-network/src/operations/p2SVpnGateways.ts index f206cb12b443..6b03d854793d 100644 --- a/sdk/network/arm-network/src/operations/p2SVpnGateways.ts +++ b/sdk/network/arm-network/src/operations/p2SVpnGateways.ts @@ -1159,7 +1159,7 @@ const generateVpnProfileOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters84, + requestBody: Parameters.parameters85, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/packetCaptures.ts b/sdk/network/arm-network/src/operations/packetCaptures.ts index b1ba639f0680..16b43510ec2a 100644 --- a/sdk/network/arm-network/src/operations/packetCaptures.ts +++ b/sdk/network/arm-network/src/operations/packetCaptures.ts @@ -535,7 +535,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters55, + requestBody: Parameters.parameters56, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/privateDnsZoneGroups.ts b/sdk/network/arm-network/src/operations/privateDnsZoneGroups.ts index 2201a24d1e85..c1cb1dffd3be 100644 --- a/sdk/network/arm-network/src/operations/privateDnsZoneGroups.ts +++ b/sdk/network/arm-network/src/operations/privateDnsZoneGroups.ts @@ -439,7 +439,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters60, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/privateEndpoints.ts b/sdk/network/arm-network/src/operations/privateEndpoints.ts index ed388104be76..43792a6057d2 100644 --- a/sdk/network/arm-network/src/operations/privateEndpoints.ts +++ b/sdk/network/arm-network/src/operations/privateEndpoints.ts @@ -458,7 +458,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters59, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/privateLinkServices.ts b/sdk/network/arm-network/src/operations/privateLinkServices.ts index cc8bf8e94ed3..a4f81a2c8eaa 100644 --- a/sdk/network/arm-network/src/operations/privateLinkServices.ts +++ b/sdk/network/arm-network/src/operations/privateLinkServices.ts @@ -1119,7 +1119,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1204,7 +1204,7 @@ const updatePrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1284,7 +1284,7 @@ const checkPrivateLinkServiceVisibilityOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1316,7 +1316,7 @@ const checkPrivateLinkServiceVisibilityByResourceGroupOperationSpec: coreClient. bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/publicIPPrefixes.ts b/sdk/network/arm-network/src/operations/publicIPPrefixes.ts index 99912da6101b..2ea5c24d9f70 100644 --- a/sdk/network/arm-network/src/operations/publicIPPrefixes.ts +++ b/sdk/network/arm-network/src/operations/publicIPPrefixes.ts @@ -477,7 +477,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters63, + requestBody: Parameters.parameters64, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/routeTables.ts b/sdk/network/arm-network/src/operations/routeTables.ts index 84bb2a386673..5e8b8f2ff07f 100644 --- a/sdk/network/arm-network/src/operations/routeTables.ts +++ b/sdk/network/arm-network/src/operations/routeTables.ts @@ -477,7 +477,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters64, + requestBody: Parameters.parameters65, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/scopeConnections.ts b/sdk/network/arm-network/src/operations/scopeConnections.ts index cb5a1ad61b42..7ce21a4088cb 100644 --- a/sdk/network/arm-network/src/operations/scopeConnections.ts +++ b/sdk/network/arm-network/src/operations/scopeConnections.ts @@ -228,7 +228,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters36, + requestBody: Parameters.parameters37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/securityPartnerProviders.ts b/sdk/network/arm-network/src/operations/securityPartnerProviders.ts index cd97f9af8bbb..165fab4594e7 100644 --- a/sdk/network/arm-network/src/operations/securityPartnerProviders.ts +++ b/sdk/network/arm-network/src/operations/securityPartnerProviders.ts @@ -480,7 +480,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters65, + requestBody: Parameters.parameters66, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/serviceEndpointPolicies.ts b/sdk/network/arm-network/src/operations/serviceEndpointPolicies.ts index 3cf8c8fe6351..19aa94270dcb 100644 --- a/sdk/network/arm-network/src/operations/serviceEndpointPolicies.ts +++ b/sdk/network/arm-network/src/operations/serviceEndpointPolicies.ts @@ -480,7 +480,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters66, + requestBody: Parameters.parameters67, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/staticMembers.ts b/sdk/network/arm-network/src/operations/staticMembers.ts index 1b64ad846c21..1204d7b6bbc6 100644 --- a/sdk/network/arm-network/src/operations/staticMembers.ts +++ b/sdk/network/arm-network/src/operations/staticMembers.ts @@ -290,7 +290,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters35, + requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/subscriptionNetworkManagerConnections.ts b/sdk/network/arm-network/src/operations/subscriptionNetworkManagerConnections.ts index 6a785a120898..cfab45b987a8 100644 --- a/sdk/network/arm-network/src/operations/subscriptionNetworkManagerConnections.ts +++ b/sdk/network/arm-network/src/operations/subscriptionNetworkManagerConnections.ts @@ -171,7 +171,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/vipSwap.ts b/sdk/network/arm-network/src/operations/vipSwap.ts index e0c8eb8a4806..ef7f95724978 100644 --- a/sdk/network/arm-network/src/operations/vipSwap.ts +++ b/sdk/network/arm-network/src/operations/vipSwap.ts @@ -198,7 +198,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters88, + requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualApplianceSites.ts b/sdk/network/arm-network/src/operations/virtualApplianceSites.ts index 8efa45500615..d837ad788bb5 100644 --- a/sdk/network/arm-network/src/operations/virtualApplianceSites.ts +++ b/sdk/network/arm-network/src/operations/virtualApplianceSites.ts @@ -431,7 +431,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters40, + requestBody: Parameters.parameters41, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualHubBgpConnection.ts b/sdk/network/arm-network/src/operations/virtualHubBgpConnection.ts index 24986f77cbc4..c7445c7a6afa 100644 --- a/sdk/network/arm-network/src/operations/virtualHubBgpConnection.ts +++ b/sdk/network/arm-network/src/operations/virtualHubBgpConnection.ts @@ -294,7 +294,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters85, + requestBody: Parameters.parameters86, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualHubIpConfiguration.ts b/sdk/network/arm-network/src/operations/virtualHubIpConfiguration.ts index 0bac3b70fee5..1fc79c8db954 100644 --- a/sdk/network/arm-network/src/operations/virtualHubIpConfiguration.ts +++ b/sdk/network/arm-network/src/operations/virtualHubIpConfiguration.ts @@ -390,7 +390,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters86, + requestBody: Parameters.parameters87, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts b/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts index 5940f9fed67d..208b146527f1 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts @@ -1063,7 +1063,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters73, + requestBody: Parameters.parameters74, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1174,7 +1174,7 @@ const setSharedKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters74, + requestBody: Parameters.parameters75, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1250,7 +1250,7 @@ const resetSharedKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters75, + requestBody: Parameters.parameters76, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1283,7 +1283,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters71, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1316,7 +1316,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters72, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts b/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts index 22a3fdcdd971..63ebaaca5885 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts @@ -1915,7 +1915,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters68, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2123,7 +2123,7 @@ const generatevpnclientpackageOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters69, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2156,7 +2156,7 @@ const generateVpnProfileOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters69, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2390,7 +2390,7 @@ const vpnDeviceConfigurationScriptOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters70, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2423,7 +2423,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters71, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2456,7 +2456,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters72, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualNetworkTaps.ts b/sdk/network/arm-network/src/operations/virtualNetworkTaps.ts index 58c1b9298266..b3c2550f0002 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworkTaps.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworkTaps.ts @@ -476,7 +476,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters77, + requestBody: Parameters.parameters78, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualNetworks.ts b/sdk/network/arm-network/src/operations/virtualNetworks.ts index 709f7396480d..ae873d157dc1 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworks.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworks.ts @@ -776,7 +776,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters67, + requestBody: Parameters.parameters68, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualRouterPeerings.ts b/sdk/network/arm-network/src/operations/virtualRouterPeerings.ts index 08be37846989..1b10894ad85c 100644 --- a/sdk/network/arm-network/src/operations/virtualRouterPeerings.ts +++ b/sdk/network/arm-network/src/operations/virtualRouterPeerings.ts @@ -429,7 +429,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters79, + requestBody: Parameters.parameters80, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualRouters.ts b/sdk/network/arm-network/src/operations/virtualRouters.ts index a3d1f2bd4bcf..652a8e70334f 100644 --- a/sdk/network/arm-network/src/operations/virtualRouters.ts +++ b/sdk/network/arm-network/src/operations/virtualRouters.ts @@ -458,7 +458,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters78, + requestBody: Parameters.parameters79, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/vpnConnections.ts b/sdk/network/arm-network/src/operations/vpnConnections.ts index 943ef59d6a9a..924fa2fe55a4 100644 --- a/sdk/network/arm-network/src/operations/vpnConnections.ts +++ b/sdk/network/arm-network/src/operations/vpnConnections.ts @@ -655,7 +655,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters82, + requestBody: Parameters.parameters83, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -689,7 +689,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters83, + requestBody: Parameters.parameters84, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/vpnGateways.ts b/sdk/network/arm-network/src/operations/vpnGateways.ts index 57517f266630..18896d734872 100644 --- a/sdk/network/arm-network/src/operations/vpnGateways.ts +++ b/sdk/network/arm-network/src/operations/vpnGateways.ts @@ -921,7 +921,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters80, + requestBody: Parameters.parameters81, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -954,7 +954,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters81, + requestBody: Parameters.parameters82, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/webApplicationFirewallPolicies.ts b/sdk/network/arm-network/src/operations/webApplicationFirewallPolicies.ts index 2a6f60339890..d0d71e64daf7 100644 --- a/sdk/network/arm-network/src/operations/webApplicationFirewallPolicies.ts +++ b/sdk/network/arm-network/src/operations/webApplicationFirewallPolicies.ts @@ -391,7 +391,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters87, + requestBody: Parameters.parameters88, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operationsInterfaces/index.ts b/sdk/network/arm-network/src/operationsInterfaces/index.ts index a8eb2d961ddb..a666d0b45a47 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/index.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/index.ts @@ -21,6 +21,7 @@ export * from "./webCategories"; export * from "./bastionHosts"; export * from "./networkInterfaces"; export * from "./publicIPAddresses"; +export * from "./vipSwap"; export * from "./customIPPrefixes"; export * from "./ddosCustomPolicies"; export * from "./ddosProtectionPlans"; @@ -136,4 +137,3 @@ export * from "./virtualHubIpConfiguration"; export * from "./hubRouteTables"; export * from "./routingIntentOperations"; export * from "./webApplicationFirewallPolicies"; -export * from "./vipSwap"; diff --git a/sdk/network/arm-network/test/sampleTest.ts b/sdk/network/arm-network/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/network/arm-network/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/network/arm-network/tsconfig.json b/sdk/network/arm-network/tsconfig.json index 094dfbf3dbe3..3e6ae96443f3 100644 --- a/sdk/network/arm-network/tsconfig.json +++ b/sdk/network/arm-network/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-network": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"