diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/CHANGELOG.md b/sdk/managednetworkfabric/arm-managednetworkfabric/CHANGELOG.md index 5f7724de3e2c..c58645605d89 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/CHANGELOG.md +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/CHANGELOG.md @@ -1,15 +1,5 @@ # Release History - -## 1.0.0-beta.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 1.0.0-beta.1 (2023-06-26) + +## 1.0.0 (2023-07-06) The package of @azure/arm-managednetworkfabric is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/README.md b/sdk/managednetworkfabric/arm-managednetworkfabric/README.md index b43f71f8e732..01f2beaf44cf 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/README.md +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/README.md @@ -6,7 +6,7 @@ Self service experience for Azure Network Fabric API. [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managednetworkfabric/arm-managednetworkfabric) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-managednetworkfabric) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-managednetworkfabric?view=azure-node-preview) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-managednetworkfabric) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/_meta.json b/sdk/managednetworkfabric/arm-managednetworkfabric/_meta.json index b439928d845b..fde4c0319ca4 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/_meta.json +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/_meta.json @@ -1,8 +1,8 @@ { - "commit": "89e91a02e7cf20da48bb84c34eda694faed4dc5c", + "commit": "c57a3811bedfef01c7604bc00eb10dd944e583a6", "readme": "specification/managednetworkfabric/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --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\\managednetworkfabric\\resource-manager\\readme.md --use=@autorest/typescript@6.0.5 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --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/managednetworkfabric/resource-manager/readme.md --use=@autorest/typescript@^6.0.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", - "use": "@autorest/typescript@6.0.5" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.1", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/assets.json b/sdk/managednetworkfabric/arm-managednetworkfabric/assets.json deleted file mode 100644 index e4dc92e5c5fa..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/assets.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "AssetsRepo": "Azure/azure-sdk-assets", - "AssetsRepoPrefixPath": "js", - "TagPrefix": "js/managednetworkfabric/arm-managednetworkfabric", - "Tag": "js/managednetworkfabric/arm-managednetworkfabric_ca3ccdb61f" -} diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/package.json b/sdk/managednetworkfabric/arm-managednetworkfabric/package.json index 083d6bd27f84..3bf520b50182 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/package.json +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AzureNetworkFabricManagementServiceAPI.", - "version": "1.0.0-beta.2", + "version": "1.0.0", "engines": { "node": ">=14.0.0" }, @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managednetworkfabric/arm-managednetworkfabric", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-managednetworkfabric?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managednetworkfabric/arm-managednetworkfabric" +} \ No newline at end of file diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/review/arm-managednetworkfabric.api.md b/sdk/managednetworkfabric/arm-managednetworkfabric/review/arm-managednetworkfabric.api.md index 497ec303f38a..57eaed337d00 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/review/arm-managednetworkfabric.api.md +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/review/arm-managednetworkfabric.api.md @@ -12,67 +12,123 @@ import { SimplePollerLike } from '@azure/core-lro'; // @public export interface AccessControlList extends TrackedResource { - addressFamily: AddressFamily; + aclsUrl?: string; + readonly administrativeState?: AdministrativeState; annotation?: string; - conditions: AccessControlListConditionProperties[]; + readonly configurationState?: ConfigurationState; + configurationType?: ConfigurationType; + dynamicMatchConfigurations?: CommonDynamicMatchConfiguration[]; + readonly lastSyncedTime?: Date; + matchConfigurations?: AccessControlListMatchConfiguration[]; readonly provisioningState?: ProvisioningState; } // @public -export interface AccessControlListConditionProperties extends AnnotationResource { - action: ConditionActionType; - destinationAddress: string; - destinationPort: string; - protocol: number; - sequenceNumber: number; - sourceAddress: string; - sourcePort: string; +export interface AccessControlListAction { + counterName?: string; + type?: AclActionType; +} + +// @public +export interface AccessControlListMatchCondition extends CommonMatchConditions { + dscpMarkings?: string[]; + etherTypes?: string[]; + fragments?: string[]; + ipLengths?: string[]; + portCondition?: AccessControlListPortCondition; + ttlValues?: string[]; } // @public -export interface AccessControlListPatch { - addressFamily?: AddressFamily; +export interface AccessControlListMatchConfiguration { + actions?: AccessControlListAction[]; + ipAddressType?: IPAddressType; + matchConditions?: AccessControlListMatchCondition[]; + matchConfigurationName?: string; + sequenceNumber?: number; +} + +// @public +export interface AccessControlListPatch extends TagsUpdate { + aclsUrl?: string; annotation?: string; - conditions?: AccessControlListConditionProperties[]; - tags?: { - [propertyName: string]: string; - }; + configurationType?: ConfigurationType; + dynamicMatchConfigurations?: CommonDynamicMatchConfiguration[]; + matchConfigurations?: AccessControlListMatchConfiguration[]; +} + +// @public +export interface AccessControlListPatchableProperties { + aclsUrl?: string; + configurationType?: ConfigurationType; + dynamicMatchConfigurations?: CommonDynamicMatchConfiguration[]; + matchConfigurations?: AccessControlListMatchConfiguration[]; +} + +// @public +export interface AccessControlListPatchProperties extends AccessControlListPatchableProperties, AnnotationResource { } // @public -export interface AccessControlListPatchProperties extends AnnotationResource { - addressFamily?: AddressFamily; - conditions?: AccessControlListConditionProperties[]; +export interface AccessControlListPortCondition extends PortCondition { + flags?: string[]; } // @public -export interface AccessControlListProperties extends AnnotationResource { - addressFamily: AddressFamily; - conditions: AccessControlListConditionProperties[]; +export interface AccessControlListProperties extends AnnotationResource, AccessControlListPatchableProperties { + readonly administrativeState?: AdministrativeState; + readonly configurationState?: ConfigurationState; + readonly lastSyncedTime?: Date; readonly provisioningState?: ProvisioningState; } // @public export interface AccessControlLists { - create(resourceGroupName: string, accessControlListName: string, body: AccessControlList, options?: AccessControlListsCreateOptionalParams): Promise; - delete(resourceGroupName: string, accessControlListName: string, options?: AccessControlListsDeleteOptionalParams): Promise; + beginCreate(resourceGroupName: string, accessControlListName: string, body: AccessControlList, options?: AccessControlListsCreateOptionalParams): Promise, AccessControlListsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, accessControlListName: string, body: AccessControlList, options?: AccessControlListsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, accessControlListName: string, options?: AccessControlListsDeleteOptionalParams): Promise, AccessControlListsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, accessControlListName: string, options?: AccessControlListsDeleteOptionalParams): Promise; + beginResync(resourceGroupName: string, accessControlListName: string, options?: AccessControlListsResyncOptionalParams): Promise, AccessControlListsResyncResponse>>; + beginResyncAndWait(resourceGroupName: string, accessControlListName: string, options?: AccessControlListsResyncOptionalParams): Promise; + beginUpdate(resourceGroupName: string, accessControlListName: string, body: AccessControlListPatch, options?: AccessControlListsUpdateOptionalParams): Promise, AccessControlListsUpdateResponse>>; + beginUpdateAdministrativeState(resourceGroupName: string, accessControlListName: string, body: UpdateAdministrativeState, options?: AccessControlListsUpdateAdministrativeStateOptionalParams): Promise, AccessControlListsUpdateAdministrativeStateResponse>>; + beginUpdateAdministrativeStateAndWait(resourceGroupName: string, accessControlListName: string, body: UpdateAdministrativeState, options?: AccessControlListsUpdateAdministrativeStateOptionalParams): Promise; + beginUpdateAndWait(resourceGroupName: string, accessControlListName: string, body: AccessControlListPatch, options?: AccessControlListsUpdateOptionalParams): Promise; + beginValidateConfiguration(resourceGroupName: string, accessControlListName: string, options?: AccessControlListsValidateConfigurationOptionalParams): Promise, AccessControlListsValidateConfigurationResponse>>; + beginValidateConfigurationAndWait(resourceGroupName: string, accessControlListName: string, options?: AccessControlListsValidateConfigurationOptionalParams): Promise; get(resourceGroupName: string, accessControlListName: string, options?: AccessControlListsGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: AccessControlListsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: AccessControlListsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - update(resourceGroupName: string, accessControlListName: string, body: AccessControlListPatch, options?: AccessControlListsUpdateOptionalParams): Promise; +} + +// @public +export interface AccessControlListsCreateHeaders { + azureAsyncOperation?: string; } // @public export interface AccessControlListsCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public export type AccessControlListsCreateResponse = AccessControlList; +// @public +export interface AccessControlListsDeleteHeaders { + location?: string; +} + // @public export interface AccessControlListsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } +// @public +export type AccessControlListsDeleteResponse = AccessControlListsDeleteHeaders; + // @public export interface AccessControlListsGetOptionalParams extends coreClient.OperationOptions { } @@ -114,13 +170,68 @@ export interface AccessControlListsListResult { value?: AccessControlList[]; } +// @public +export interface AccessControlListsResyncHeaders { + location?: string; +} + +// @public +export interface AccessControlListsResyncOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AccessControlListsResyncResponse = CommonPostActionResponseForStateUpdate; + +// @public +export interface AccessControlListsUpdateAdministrativeStateHeaders { + location?: string; +} + +// @public +export interface AccessControlListsUpdateAdministrativeStateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AccessControlListsUpdateAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; + +// @public +export interface AccessControlListsUpdateHeaders { + location?: string; +} + // @public export interface AccessControlListsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public export type AccessControlListsUpdateResponse = AccessControlList; +// @public +export interface AccessControlListsValidateConfigurationHeaders { + location?: string; +} + +// @public +export interface AccessControlListsValidateConfigurationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AccessControlListsValidateConfigurationResponse = ValidateConfigurationResponse; + +// @public +export type AclActionType = string; + +// @public +export type Action = string; + // @public export interface ActionIpCommunityProperties extends IpCommunityAddOperationProperties, IpCommunityDeleteOperationProperties, IpCommunitySetOperationProperties { } @@ -133,14 +244,14 @@ export interface ActionIpExtendedCommunityProperties extends IpExtendedCommunity export type ActionType = string; // @public -export type AddressFamily = string; +export type AddressFamilyType = string; // @public export type AdministrativeState = string; // @public export interface AggregateRoute { - prefix?: string; + prefix: string; } // @public @@ -157,15 +268,6 @@ export interface AnnotationResource { annotation?: string; } -// @public -export interface ARPProperties { - address: string; - age: string; - interface: string; - macAddress: string; - state?: string; -} - // @public (undocumented) export class AzureNetworkFabricManagementServiceAPI extends coreClient.ServiceClient { // (undocumented) @@ -180,6 +282,10 @@ export class AzureNetworkFabricManagementServiceAPI extends coreClient.ServiceCl // (undocumented) internalNetworks: InternalNetworks; // (undocumented) + internetGatewayRules: InternetGatewayRules; + // (undocumented) + internetGateways: InternetGateways; + // (undocumented) ipCommunities: IpCommunities; // (undocumented) ipExtendedCommunities: IpExtendedCommunities; @@ -190,6 +296,8 @@ export class AzureNetworkFabricManagementServiceAPI extends coreClient.ServiceCl // (undocumented) l3IsolationDomains: L3IsolationDomains; // (undocumented) + neighborGroups: NeighborGroups; + // (undocumented) networkDevices: NetworkDevices; // (undocumented) networkDeviceSkus: NetworkDeviceSkus; @@ -202,9 +310,13 @@ export class AzureNetworkFabricManagementServiceAPI extends coreClient.ServiceCl // (undocumented) networkInterfaces: NetworkInterfaces; // (undocumented) + networkPacketBrokers: NetworkPacketBrokers; + // (undocumented) networkRacks: NetworkRacks; // (undocumented) - networkRackSkus: NetworkRackSkus; + networkTapRules: NetworkTapRules; + // (undocumented) + networkTaps: NetworkTaps; // (undocumented) networkToNetworkInterconnects: NetworkToNetworkInterconnects; // (undocumented) @@ -222,11 +334,14 @@ export interface AzureNetworkFabricManagementServiceAPIOptionalParams extends co endpoint?: string; } +// @public +export type BfdAdministrativeState = string; + // @public export interface BfdConfiguration { - readonly administrativeState?: EnabledDisabledState; - readonly interval?: number; - readonly multiplier?: number; + readonly administrativeState?: BfdAdministrativeState; + intervalInMilliSeconds?: number; + multiplier?: number; } // @public @@ -240,12 +355,38 @@ export interface BgpConfiguration extends AnnotationResource { ipv4NeighborAddress?: NeighborAddress[]; ipv6ListenRangePrefixes?: string[]; ipv6NeighborAddress?: NeighborAddress[]; - peerASN: number; + peerASN?: number; } // @public export type BooleanEnumProperty = string; +// @public +export interface CommonDynamicMatchConfiguration { + ipGroups?: IpGroupProperties[]; + portGroups?: PortGroupProperties[]; + vlanGroups?: VlanGroupProperties[]; +} + +// @public +export interface CommonMatchConditions { + ipCondition?: IpMatchCondition; + protocolTypes?: string[]; + vlanMatchCondition?: VlanMatchCondition; +} + +// @public +export interface CommonPostActionResponseForDeviceUpdate extends ErrorResponse { + readonly configurationState?: ConfigurationState; + failedDevices?: string[]; + successfulDevices?: string[]; +} + +// @public +export interface CommonPostActionResponseForStateUpdate extends ErrorResponse { + readonly configurationState?: ConfigurationState; +} + // @public export type CommunityActionTypes = string; @@ -253,16 +394,46 @@ export type CommunityActionTypes = string; export type Condition = string; // @public -export type ConditionActionType = string; +export type ConfigurationState = string; + +// @public +export type ConfigurationType = string; // @public export interface ConnectedSubnet extends AnnotationResource { - prefix?: string; + prefix: string; +} + +// @public +export interface ConnectedSubnetRoutePolicy { + exportRoutePolicy?: L3ExportRoutePolicy; + exportRoutePolicyId?: string; +} + +// @public +export interface ControllerServices { + ipv4AddressSpaces?: string[]; + ipv6AddressSpaces?: string[]; } // @public export type CreatedByType = string; +// @public +export interface DestinationProperties { + destinationId?: string; + destinationTapRuleId?: string; + destinationType?: DestinationType; + isolationDomainProperties?: IsolationDomainProperties; + name?: string; +} + +// @public +export type DestinationType = string; + +// @public +export type DeviceAdministrativeState = string; + // @public export interface DeviceInterfaceProperties { identifier?: string; @@ -271,22 +442,18 @@ export interface DeviceInterfaceProperties { } // @public -export interface DeviceLimits { - maxBidirectionalForwardingDetectionPeers?: number; - maxBorderGatewayProtocolPeers?: number; - maxSubInterfaces?: number; - maxTunnelInterfaces?: number; - maxVirtualRouterFunctions?: number; - physicalInterfaceCount?: number; +export interface EnableDisableOnResources { + resourceIds?: string[]; } // @public -export type EnabledDisabledState = string; +export type EnableDisableState = string; // @public -export interface EnableDisableOnResources { - resourceIds?: string[]; -} +export type Encapsulation = string; + +// @public +export type EncapsulationType = string; // @public export interface ErrorAdditionalInfo { @@ -309,18 +476,21 @@ export interface ErrorResponse { } // @public -export interface ExpressRouteConnectionInformation { - expressRouteAuthorizationKey: string; - expressRouteCircuitId: string; +export interface ExportRoutePolicy { + exportIpv4RoutePolicyId?: string; + exportIpv6RoutePolicyId?: string; } // @public -export type ExpressRouteConnectionState = string; +export interface ExportRoutePolicyInformation { + exportIpv4RoutePolicyId?: string; + exportIpv6RoutePolicyId?: string; +} // @public -export interface ExpressRouteStatusDef { - expressRouteCircuitId?: string; - expressRouteStatus?: ExpressRouteConnectionState; +export interface ExpressRouteConnectionInformation { + expressRouteAuthorizationKey: string; + expressRouteCircuitId: string; } // @public @@ -329,16 +499,26 @@ export interface ExtendedLocation { type?: string; } +// @public +export type Extension = string; + +// @public +export interface ExtensionEnumProperty { + extension?: Extension; +} + // @public export interface ExternalNetwork extends ProxyResource { - readonly administrativeState?: EnabledDisabledState; + readonly administrativeState?: AdministrativeState; annotation?: string; - readonly disabledOnResources?: string[]; + readonly configurationState?: ConfigurationState; + exportRoutePolicy?: ExportRoutePolicy; exportRoutePolicyId?: string; + importRoutePolicy?: ImportRoutePolicy; importRoutePolicyId?: string; readonly networkToNetworkInterconnectId?: string; optionAProperties?: ExternalNetworkPropertiesOptionAProperties; - optionBProperties?: OptionBProperties; + optionBProperties?: L3OptionBProperties; peeringOption: PeeringOption; readonly provisioningState?: ProvisioningState; } @@ -346,49 +526,51 @@ export interface ExternalNetwork extends ProxyResource { // @public export interface ExternalNetworkPatch { annotation?: string; + exportRoutePolicy?: ExportRoutePolicy; exportRoutePolicyId?: string; + importRoutePolicy?: ImportRoutePolicy; importRoutePolicyId?: string; - optionAProperties?: Layer3OptionAProperties; - optionBProperties?: OptionBProperties; + optionAProperties?: ExternalNetworkPatchPropertiesOptionAProperties; + optionBProperties?: L3OptionBProperties; peeringOption?: PeeringOption; } // @public export interface ExternalNetworkPatchableProperties { + exportRoutePolicy?: ExportRoutePolicy; exportRoutePolicyId?: string; + importRoutePolicy?: ImportRoutePolicy; importRoutePolicyId?: string; - optionAProperties?: Layer3OptionAProperties; - optionBProperties?: OptionBProperties; - peeringOption?: PeeringOption; } // @public export interface ExternalNetworkPatchProperties extends AnnotationResource, ExternalNetworkPatchableProperties { + optionAProperties?: ExternalNetworkPatchPropertiesOptionAProperties; + optionBProperties?: L3OptionBProperties; + peeringOption?: PeeringOption; } // @public -export interface ExternalNetworkProperties extends AnnotationResource { - readonly administrativeState?: EnabledDisabledState; - readonly disabledOnResources?: string[]; - exportRoutePolicyId?: string; - importRoutePolicyId?: string; +export interface ExternalNetworkPatchPropertiesOptionAProperties extends Layer3IpPrefixProperties, L3OptionAProperties { +} + +// @public +export interface ExternalNetworkProperties extends AnnotationResource, ExternalNetworkPatchableProperties { + readonly administrativeState?: AdministrativeState; + readonly configurationState?: ConfigurationState; readonly networkToNetworkInterconnectId?: string; optionAProperties?: ExternalNetworkPropertiesOptionAProperties; - optionBProperties?: OptionBProperties; + optionBProperties?: L3OptionBProperties; peeringOption: PeeringOption; readonly provisioningState?: ProvisioningState; } // @public -export interface ExternalNetworkPropertiesOptionAProperties extends Layer3OptionAProperties { +export interface ExternalNetworkPropertiesOptionAProperties extends Layer3IpPrefixProperties, L3OptionAProperties { } // @public export interface ExternalNetworks { - beginClearArpEntries(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: EnableDisableOnResources, options?: ExternalNetworksClearArpEntriesOptionalParams): Promise, ExternalNetworksClearArpEntriesResponse>>; - beginClearArpEntriesAndWait(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: EnableDisableOnResources, options?: ExternalNetworksClearArpEntriesOptionalParams): Promise; - beginClearIpv6Neighbors(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: EnableDisableOnResources, options?: ExternalNetworksClearIpv6NeighborsOptionalParams): Promise, ExternalNetworksClearIpv6NeighborsResponse>>; - beginClearIpv6NeighborsAndWait(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: EnableDisableOnResources, options?: ExternalNetworksClearIpv6NeighborsOptionalParams): Promise; beginCreate(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: ExternalNetwork, options?: ExternalNetworksCreateOptionalParams): Promise, ExternalNetworksCreateResponse>>; beginCreateAndWait(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: ExternalNetwork, options?: ExternalNetworksCreateOptionalParams): Promise; beginDelete(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, options?: ExternalNetworksDeleteOptionalParams): Promise, void>>; @@ -397,42 +579,12 @@ export interface ExternalNetworks { beginUpdateAdministrativeState(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: UpdateAdministrativeState, options?: ExternalNetworksUpdateAdministrativeStateOptionalParams): Promise, ExternalNetworksUpdateAdministrativeStateResponse>>; beginUpdateAdministrativeStateAndWait(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: UpdateAdministrativeState, options?: ExternalNetworksUpdateAdministrativeStateOptionalParams): Promise; beginUpdateAndWait(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: ExternalNetworkPatch, options?: ExternalNetworksUpdateOptionalParams): Promise; - beginUpdateBfdForBgpAdministrativeState(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: UpdateAdministrativeState, options?: ExternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams): Promise, ExternalNetworksUpdateBfdForBgpAdministrativeStateResponse>>; - beginUpdateBfdForBgpAdministrativeStateAndWait(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: UpdateAdministrativeState, options?: ExternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams): Promise; - beginUpdateBgpAdministrativeState(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: UpdateAdministrativeState, options?: ExternalNetworksUpdateBgpAdministrativeStateOptionalParams): Promise, ExternalNetworksUpdateBgpAdministrativeStateResponse>>; - beginUpdateBgpAdministrativeStateAndWait(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: UpdateAdministrativeState, options?: ExternalNetworksUpdateBgpAdministrativeStateOptionalParams): Promise; + beginUpdateStaticRouteBfdAdministrativeState(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: UpdateAdministrativeState, options?: ExternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams): Promise, ExternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse>>; + beginUpdateStaticRouteBfdAdministrativeStateAndWait(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: UpdateAdministrativeState, options?: ExternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams): Promise; get(resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, options?: ExternalNetworksGetOptionalParams): Promise; - list(resourceGroupName: string, l3IsolationDomainName: string, options?: ExternalNetworksListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ExternalNetworksClearArpEntriesHeaders { - location?: string; -} - -// @public -export interface ExternalNetworksClearArpEntriesOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ExternalNetworksClearArpEntriesResponse = ExternalNetworksClearArpEntriesHeaders; - -// @public -export interface ExternalNetworksClearIpv6NeighborsHeaders { - location?: string; -} - -// @public -export interface ExternalNetworksClearIpv6NeighborsOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; + listByL3IsolationDomain(resourceGroupName: string, l3IsolationDomainName: string, options?: ExternalNetworksListByL3IsolationDomainOptionalParams): PagedAsyncIterableIterator; } -// @public -export type ExternalNetworksClearIpv6NeighborsResponse = ExternalNetworksClearIpv6NeighborsHeaders; - // @public export interface ExternalNetworksCreateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -462,18 +614,18 @@ export interface ExternalNetworksList { } // @public -export interface ExternalNetworksListNextOptionalParams extends coreClient.OperationOptions { +export interface ExternalNetworksListByL3IsolationDomainNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ExternalNetworksListNextResponse = ExternalNetworksList; +export type ExternalNetworksListByL3IsolationDomainNextResponse = ExternalNetworksList; // @public -export interface ExternalNetworksListOptionalParams extends coreClient.OperationOptions { +export interface ExternalNetworksListByL3IsolationDomainOptionalParams extends coreClient.OperationOptions { } // @public -export type ExternalNetworksListResponse = ExternalNetworksList; +export type ExternalNetworksListByL3IsolationDomainResponse = ExternalNetworksList; // @public export interface ExternalNetworksUpdateAdministrativeStateHeaders { @@ -487,94 +639,55 @@ export interface ExternalNetworksUpdateAdministrativeStateOptionalParams extends } // @public -export type ExternalNetworksUpdateAdministrativeStateResponse = ExternalNetworksUpdateAdministrativeStateHeaders; +export type ExternalNetworksUpdateAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; // @public -export interface ExternalNetworksUpdateBfdForBgpAdministrativeStateHeaders { +export interface ExternalNetworksUpdateHeaders { location?: string; } // @public -export interface ExternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams extends coreClient.OperationOptions { +export interface ExternalNetworksUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type ExternalNetworksUpdateBfdForBgpAdministrativeStateResponse = ExternalNetworksUpdateBfdForBgpAdministrativeStateHeaders; +export type ExternalNetworksUpdateResponse = ExternalNetwork; // @public -export interface ExternalNetworksUpdateBgpAdministrativeStateHeaders { +export interface ExternalNetworksUpdateStaticRouteBfdAdministrativeStateHeaders { location?: string; } // @public -export interface ExternalNetworksUpdateBgpAdministrativeStateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ExternalNetworksUpdateBgpAdministrativeStateResponse = ExternalNetworksUpdateBgpAdministrativeStateHeaders; - -// @public -export interface ExternalNetworksUpdateOptionalParams extends coreClient.OperationOptions { +export interface ExternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type ExternalNetworksUpdateResponse = ExternalNetwork; +export type ExternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; // @public -export interface FabricBfdConfiguration { - readonly interval?: number; - readonly multiplier?: number; -} +export type FabricSkuType = string; // @public -export type FailedSucceededState = string; +export type GatewayType = string; // @public export function getContinuationToken(page: unknown): string | undefined; // @public -export interface GetDeviceStatusProperties { - operationalStatus: OperationalStatus; - powerCycleState: PowerCycleState; - serialNumber: string; -} - -// @public -export interface GetDynamicInterfaceMapsPropertiesItem extends InterfaceStatus { - name?: string; -} - -// @public -export interface GetStaticInterfaceMapsPropertiesItem { - channelGroupId?: number; - connectedTo?: string; - connectorType?: string; - description?: string; - identifier?: string; - interfaceType?: string; - name?: string; - speed?: number; -} - -// @public -export interface InfrastructureServices { - ipv4AddressSpaces?: string[]; - ipv6AddressSpaces?: string[]; +export interface ImportRoutePolicy { + importIpv4RoutePolicyId?: string; + importIpv6RoutePolicyId?: string; } // @public -export interface InterfaceStatus { - readonly administrativeState?: EnabledDisabledState; - connectedTo?: string; - operationalStatus?: string; - phyStatus?: string; - transceiverStatus?: string; +export interface ImportRoutePolicyInformation { + importIpv4RoutePolicyId?: string; + importIpv6RoutePolicyId?: string; } // @public @@ -582,20 +695,23 @@ export type InterfaceType = string; // @public export interface InternalNetwork extends ProxyResource { - readonly administrativeState?: EnabledDisabledState; + readonly administrativeState?: AdministrativeState; annotation?: string; - readonly bfdDisabledOnResources?: string[]; - readonly bfdForStaticRoutesDisabledOnResources?: string[]; - bgpConfiguration?: BgpConfiguration; - readonly bgpDisabledOnResources?: string[]; + bgpConfiguration?: InternalNetworkPropertiesBgpConfiguration; + readonly configurationState?: ConfigurationState; connectedIPv4Subnets?: ConnectedSubnet[]; connectedIPv6Subnets?: ConnectedSubnet[]; - readonly disabledOnResources?: string[]; + egressAclId?: string; + exportRoutePolicy?: ExportRoutePolicy; exportRoutePolicyId?: string; + extension?: Extension; + importRoutePolicy?: ImportRoutePolicy; importRoutePolicyId?: string; + ingressAclId?: string; + isMonitoringEnabled?: IsMonitoringEnabled; mtu?: number; readonly provisioningState?: ProvisioningState; - staticRouteConfiguration?: StaticRouteConfiguration; + staticRouteConfiguration?: InternalNetworkPropertiesStaticRouteConfiguration; vlanId: number; } @@ -605,44 +721,57 @@ export interface InternalNetworkPatch { bgpConfiguration?: BgpConfiguration; connectedIPv4Subnets?: ConnectedSubnet[]; connectedIPv6Subnets?: ConnectedSubnet[]; + egressAclId?: string; + exportRoutePolicy?: ExportRoutePolicy; exportRoutePolicyId?: string; + importRoutePolicy?: ImportRoutePolicy; importRoutePolicyId?: string; + ingressAclId?: string; + isMonitoringEnabled?: IsMonitoringEnabled; mtu?: number; staticRouteConfiguration?: StaticRouteConfiguration; } // @public export interface InternalNetworkPatchableProperties { - bgpConfiguration?: BgpConfiguration; connectedIPv4Subnets?: ConnectedSubnet[]; connectedIPv6Subnets?: ConnectedSubnet[]; + egressAclId?: string; + exportRoutePolicy?: ExportRoutePolicy; exportRoutePolicyId?: string; + importRoutePolicy?: ImportRoutePolicy; importRoutePolicyId?: string; + ingressAclId?: string; + isMonitoringEnabled?: IsMonitoringEnabled; mtu?: number; - staticRouteConfiguration?: StaticRouteConfiguration; } // @public export interface InternalNetworkPatchProperties extends AnnotationResource, InternalNetworkPatchableProperties { + bgpConfiguration?: BgpConfiguration; + staticRouteConfiguration?: StaticRouteConfiguration; } // @public -export interface InternalNetworkProperties extends AnnotationResource, InternalNetworkPatchableProperties { - readonly administrativeState?: EnabledDisabledState; - readonly bfdDisabledOnResources?: string[]; - readonly bfdForStaticRoutesDisabledOnResources?: string[]; - readonly bgpDisabledOnResources?: string[]; - readonly disabledOnResources?: string[]; +export interface InternalNetworkProperties extends AnnotationResource, InternalNetworkPatchableProperties, ExtensionEnumProperty { + readonly administrativeState?: AdministrativeState; + bgpConfiguration?: InternalNetworkPropertiesBgpConfiguration; + readonly configurationState?: ConfigurationState; readonly provisioningState?: ProvisioningState; + staticRouteConfiguration?: InternalNetworkPropertiesStaticRouteConfiguration; vlanId: number; } +// @public +export interface InternalNetworkPropertiesBgpConfiguration extends BgpConfiguration { +} + +// @public +export interface InternalNetworkPropertiesStaticRouteConfiguration extends StaticRouteConfiguration, ExtensionEnumProperty { +} + // @public export interface InternalNetworks { - beginClearArpEntries(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: EnableDisableOnResources, options?: InternalNetworksClearArpEntriesOptionalParams): Promise, InternalNetworksClearArpEntriesResponse>>; - beginClearArpEntriesAndWait(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: EnableDisableOnResources, options?: InternalNetworksClearArpEntriesOptionalParams): Promise; - beginClearIpv6Neighbors(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: EnableDisableOnResources, options?: InternalNetworksClearIpv6NeighborsOptionalParams): Promise, InternalNetworksClearIpv6NeighborsResponse>>; - beginClearIpv6NeighborsAndWait(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: EnableDisableOnResources, options?: InternalNetworksClearIpv6NeighborsOptionalParams): Promise; beginCreate(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: InternalNetwork, options?: InternalNetworksCreateOptionalParams): Promise, InternalNetworksCreateResponse>>; beginCreateAndWait(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: InternalNetwork, options?: InternalNetworksCreateOptionalParams): Promise; beginDelete(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, options?: InternalNetworksDeleteOptionalParams): Promise, void>>; @@ -651,44 +780,14 @@ export interface InternalNetworks { beginUpdateAdministrativeState(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: UpdateAdministrativeState, options?: InternalNetworksUpdateAdministrativeStateOptionalParams): Promise, InternalNetworksUpdateAdministrativeStateResponse>>; beginUpdateAdministrativeStateAndWait(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: UpdateAdministrativeState, options?: InternalNetworksUpdateAdministrativeStateOptionalParams): Promise; beginUpdateAndWait(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: InternalNetworkPatch, options?: InternalNetworksUpdateOptionalParams): Promise; - beginUpdateBfdForBgpAdministrativeState(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: UpdateAdministrativeState, options?: InternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams): Promise, InternalNetworksUpdateBfdForBgpAdministrativeStateResponse>>; - beginUpdateBfdForBgpAdministrativeStateAndWait(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: UpdateAdministrativeState, options?: InternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams): Promise; - beginUpdateBfdForStaticRouteAdministrativeState(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: UpdateAdministrativeState, options?: InternalNetworksUpdateBfdForStaticRouteAdministrativeStateOptionalParams): Promise, InternalNetworksUpdateBfdForStaticRouteAdministrativeStateResponse>>; - beginUpdateBfdForStaticRouteAdministrativeStateAndWait(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: UpdateAdministrativeState, options?: InternalNetworksUpdateBfdForStaticRouteAdministrativeStateOptionalParams): Promise; beginUpdateBgpAdministrativeState(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: UpdateAdministrativeState, options?: InternalNetworksUpdateBgpAdministrativeStateOptionalParams): Promise, InternalNetworksUpdateBgpAdministrativeStateResponse>>; beginUpdateBgpAdministrativeStateAndWait(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: UpdateAdministrativeState, options?: InternalNetworksUpdateBgpAdministrativeStateOptionalParams): Promise; + beginUpdateStaticRouteBfdAdministrativeState(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: UpdateAdministrativeState, options?: InternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams): Promise, InternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse>>; + beginUpdateStaticRouteBfdAdministrativeStateAndWait(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: UpdateAdministrativeState, options?: InternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams): Promise; get(resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, options?: InternalNetworksGetOptionalParams): Promise; - list(resourceGroupName: string, l3IsolationDomainName: string, options?: InternalNetworksListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface InternalNetworksClearArpEntriesHeaders { - location?: string; -} - -// @public -export interface InternalNetworksClearArpEntriesOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type InternalNetworksClearArpEntriesResponse = InternalNetworksClearArpEntriesHeaders; - -// @public -export interface InternalNetworksClearIpv6NeighborsHeaders { - location?: string; + listByL3IsolationDomain(resourceGroupName: string, l3IsolationDomainName: string, options?: InternalNetworksListByL3IsolationDomainOptionalParams): PagedAsyncIterableIterator; } -// @public -export interface InternalNetworksClearIpv6NeighborsOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type InternalNetworksClearIpv6NeighborsResponse = InternalNetworksClearIpv6NeighborsHeaders; - // @public export interface InternalNetworksCreateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -718,18 +817,18 @@ export interface InternalNetworksList { } // @public -export interface InternalNetworksListNextOptionalParams extends coreClient.OperationOptions { +export interface InternalNetworksListByL3IsolationDomainNextOptionalParams extends coreClient.OperationOptions { } // @public -export type InternalNetworksListNextResponse = InternalNetworksList; +export type InternalNetworksListByL3IsolationDomainNextResponse = InternalNetworksList; // @public -export interface InternalNetworksListOptionalParams extends coreClient.OperationOptions { +export interface InternalNetworksListByL3IsolationDomainOptionalParams extends coreClient.OperationOptions { } // @public -export type InternalNetworksListResponse = InternalNetworksList; +export type InternalNetworksListByL3IsolationDomainResponse = InternalNetworksList; // @public export interface InternalNetworksUpdateAdministrativeStateHeaders { @@ -743,75 +842,302 @@ export interface InternalNetworksUpdateAdministrativeStateOptionalParams extends } // @public -export type InternalNetworksUpdateAdministrativeStateResponse = InternalNetworksUpdateAdministrativeStateHeaders; +export type InternalNetworksUpdateAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; // @public -export interface InternalNetworksUpdateBfdForBgpAdministrativeStateHeaders { +export interface InternalNetworksUpdateBgpAdministrativeStateHeaders { location?: string; } // @public -export interface InternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams extends coreClient.OperationOptions { +export interface InternalNetworksUpdateBgpAdministrativeStateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type InternalNetworksUpdateBfdForBgpAdministrativeStateResponse = InternalNetworksUpdateBfdForBgpAdministrativeStateHeaders; +export type InternalNetworksUpdateBgpAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; // @public -export interface InternalNetworksUpdateBfdForStaticRouteAdministrativeStateHeaders { +export interface InternalNetworksUpdateHeaders { location?: string; } // @public -export interface InternalNetworksUpdateBfdForStaticRouteAdministrativeStateOptionalParams extends coreClient.OperationOptions { +export interface InternalNetworksUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type InternalNetworksUpdateBfdForStaticRouteAdministrativeStateResponse = InternalNetworksUpdateBfdForStaticRouteAdministrativeStateHeaders; +export type InternalNetworksUpdateResponse = InternalNetwork; // @public -export interface InternalNetworksUpdateBgpAdministrativeStateHeaders { +export interface InternalNetworksUpdateStaticRouteBfdAdministrativeStateHeaders { location?: string; } // @public -export interface InternalNetworksUpdateBgpAdministrativeStateOptionalParams extends coreClient.OperationOptions { +export interface InternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type InternalNetworksUpdateBgpAdministrativeStateResponse = InternalNetworksUpdateBgpAdministrativeStateHeaders; +export type InternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; // @public -export interface InternalNetworksUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface InternetGateway extends TrackedResource { + annotation?: string; + internetGatewayRuleId?: string; + readonly ipv4Address?: string; + networkFabricControllerId: string; + readonly port?: number; + readonly provisioningState?: ProvisioningState; + typePropertiesType: GatewayType; } // @public -export type InternalNetworksUpdateResponse = InternalNetwork; +export interface InternetGatewayPatch extends TagsUpdate { + internetGatewayRuleId?: string; +} // @public -export interface IpCommunities { - beginCreate(resourceGroupName: string, ipCommunityName: string, body: IpCommunity, options?: IpCommunitiesCreateOptionalParams): Promise, IpCommunitiesCreateResponse>>; - beginCreateAndWait(resourceGroupName: string, ipCommunityName: string, body: IpCommunity, options?: IpCommunitiesCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, ipCommunityName: string, options?: IpCommunitiesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, ipCommunityName: string, options?: IpCommunitiesDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, ipCommunityName: string, body: IpCommunityPatch, options?: IpCommunitiesUpdateOptionalParams): Promise, IpCommunitiesUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, ipCommunityName: string, body: IpCommunityPatch, options?: IpCommunitiesUpdateOptionalParams): Promise; - get(resourceGroupName: string, ipCommunityName: string, options?: IpCommunitiesGetOptionalParams): Promise; - listByResourceGroup(resourceGroupName: string, options?: IpCommunitiesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - listBySubscription(options?: IpCommunitiesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +export interface InternetGatewayPatchableProperties { + internetGatewayRuleId?: string; } // @public -export interface IpCommunitiesCreateHeaders { - azureAsyncOperation?: string; +export interface InternetGatewayProperties extends AnnotationResource, InternetGatewayPatchableProperties { + readonly ipv4Address?: string; + networkFabricControllerId: string; + readonly port?: number; + readonly provisioningState?: ProvisioningState; + type: GatewayType; +} + +// @public +export interface InternetGatewayRule extends TrackedResource { + annotation?: string; + readonly internetGatewayIds?: string[]; + readonly provisioningState?: ProvisioningState; + ruleProperties: RuleProperties; +} + +// @public +export interface InternetGatewayRulePatch extends TagsUpdate { +} + +// @public +export interface InternetGatewayRuleProperties extends AnnotationResource { + readonly internetGatewayIds?: string[]; + readonly provisioningState?: ProvisioningState; + ruleProperties: RuleProperties; +} + +// @public +export interface InternetGatewayRules { + beginCreate(resourceGroupName: string, internetGatewayRuleName: string, body: InternetGatewayRule, options?: InternetGatewayRulesCreateOptionalParams): Promise, InternetGatewayRulesCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, internetGatewayRuleName: string, body: InternetGatewayRule, options?: InternetGatewayRulesCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, internetGatewayRuleName: string, options?: InternetGatewayRulesDeleteOptionalParams): Promise, InternetGatewayRulesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, internetGatewayRuleName: string, options?: InternetGatewayRulesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, internetGatewayRuleName: string, body: InternetGatewayRulePatch, options?: InternetGatewayRulesUpdateOptionalParams): Promise, InternetGatewayRulesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, internetGatewayRuleName: string, body: InternetGatewayRulePatch, options?: InternetGatewayRulesUpdateOptionalParams): Promise; + get(resourceGroupName: string, internetGatewayRuleName: string, options?: InternetGatewayRulesGetOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: InternetGatewayRulesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: InternetGatewayRulesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface InternetGatewayRulesCreateHeaders { + azureAsyncOperation?: string; +} + +// @public +export interface InternetGatewayRulesCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type InternetGatewayRulesCreateResponse = InternetGatewayRule; + +// @public +export interface InternetGatewayRulesDeleteHeaders { + azureAsyncOperation?: string; +} + +// @public +export interface InternetGatewayRulesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type InternetGatewayRulesDeleteResponse = InternetGatewayRulesDeleteHeaders; + +// @public +export interface InternetGatewayRulesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InternetGatewayRulesGetResponse = InternetGatewayRule; + +// @public +export interface InternetGatewayRulesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InternetGatewayRulesListByResourceGroupNextResponse = InternetGatewayRulesListResult; + +// @public +export interface InternetGatewayRulesListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InternetGatewayRulesListByResourceGroupResponse = InternetGatewayRulesListResult; + +// @public +export interface InternetGatewayRulesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InternetGatewayRulesListBySubscriptionNextResponse = InternetGatewayRulesListResult; + +// @public +export interface InternetGatewayRulesListBySubscriptionOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InternetGatewayRulesListBySubscriptionResponse = InternetGatewayRulesListResult; + +// @public +export interface InternetGatewayRulesListResult { + nextLink?: string; + value?: InternetGatewayRule[]; +} + +// @public +export interface InternetGatewayRulesUpdateHeaders { + location?: string; +} + +// @public +export interface InternetGatewayRulesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type InternetGatewayRulesUpdateResponse = InternetGatewayRule; + +// @public +export interface InternetGateways { + beginCreate(resourceGroupName: string, internetGatewayName: string, body: InternetGateway, options?: InternetGatewaysCreateOptionalParams): Promise, InternetGatewaysCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, internetGatewayName: string, body: InternetGateway, options?: InternetGatewaysCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, internetGatewayName: string, options?: InternetGatewaysDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, internetGatewayName: string, options?: InternetGatewaysDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, internetGatewayName: string, body: InternetGatewayPatch, options?: InternetGatewaysUpdateOptionalParams): Promise, InternetGatewaysUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, internetGatewayName: string, body: InternetGatewayPatch, options?: InternetGatewaysUpdateOptionalParams): Promise; + get(resourceGroupName: string, internetGatewayName: string, options?: InternetGatewaysGetOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: InternetGatewaysListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: InternetGatewaysListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface InternetGatewaysCreateHeaders { + azureAsyncOperation?: string; +} + +// @public +export interface InternetGatewaysCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type InternetGatewaysCreateResponse = InternetGateway; + +// @public +export interface InternetGatewaysDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface InternetGatewaysGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InternetGatewaysGetResponse = InternetGateway; + +// @public +export interface InternetGatewaysListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InternetGatewaysListByResourceGroupNextResponse = InternetGatewaysListResult; + +// @public +export interface InternetGatewaysListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InternetGatewaysListByResourceGroupResponse = InternetGatewaysListResult; + +// @public +export interface InternetGatewaysListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InternetGatewaysListBySubscriptionNextResponse = InternetGatewaysListResult; + +// @public +export interface InternetGatewaysListBySubscriptionOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type InternetGatewaysListBySubscriptionResponse = InternetGatewaysListResult; + +// @public +export interface InternetGatewaysListResult { + nextLink?: string; + value?: InternetGateway[]; +} + +// @public +export interface InternetGatewaysUpdateHeaders { + location?: string; +} + +// @public +export interface InternetGatewaysUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type InternetGatewaysUpdateResponse = InternetGateway; + +// @public +export type IPAddressType = string; + +// @public +export interface IpCommunities { + beginCreate(resourceGroupName: string, ipCommunityName: string, body: IpCommunity, options?: IpCommunitiesCreateOptionalParams): Promise, IpCommunitiesCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, ipCommunityName: string, body: IpCommunity, options?: IpCommunitiesCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, ipCommunityName: string, options?: IpCommunitiesDeleteOptionalParams): Promise, IpCommunitiesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, ipCommunityName: string, options?: IpCommunitiesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, ipCommunityName: string, body: IpCommunityPatch, options?: IpCommunitiesUpdateOptionalParams): Promise, IpCommunitiesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, ipCommunityName: string, body: IpCommunityPatch, options?: IpCommunitiesUpdateOptionalParams): Promise; + get(resourceGroupName: string, ipCommunityName: string, options?: IpCommunitiesGetOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: IpCommunitiesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: IpCommunitiesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface IpCommunitiesCreateHeaders { + azureAsyncOperation?: string; } // @public @@ -834,6 +1160,9 @@ export interface IpCommunitiesDeleteOptionalParams extends coreClient.OperationO updateIntervalInMs?: number; } +// @public +export type IpCommunitiesDeleteResponse = IpCommunitiesDeleteHeaders; + // @public export interface IpCommunitiesGetOptionalParams extends coreClient.OperationOptions { } @@ -877,7 +1206,7 @@ export interface IpCommunitiesListResult { // @public export interface IpCommunitiesUpdateHeaders { - azureAsyncOperation?: string; + location?: string; } // @public @@ -891,11 +1220,11 @@ export type IpCommunitiesUpdateResponse = IpCommunity; // @public export interface IpCommunity extends TrackedResource { - action?: CommunityActionTypes; + readonly administrativeState?: AdministrativeState; annotation?: string; - communityMembers?: string[]; + readonly configurationState?: ConfigurationState; + ipCommunityRules?: IpCommunityRule[]; readonly provisioningState?: ProvisioningState; - wellKnownCommunities?: WellKnownCommunities[]; } // @public @@ -914,17 +1243,27 @@ export interface IpCommunityIdList { } // @public -export interface IpCommunityPatch { - tags?: { - [propertyName: string]: string; - }; +export interface IpCommunityPatch extends TagsUpdate { + ipCommunityRules?: IpCommunityRule[]; +} + +// @public +export interface IpCommunityPatchableProperties { + ipCommunityRules?: IpCommunityRule[]; } // @public -export interface IpCommunityProperties extends AnnotationResource { +export interface IpCommunityProperties extends AnnotationResource, IpCommunityPatchableProperties { + readonly administrativeState?: AdministrativeState; + readonly configurationState?: ConfigurationState; + readonly provisioningState?: ProvisioningState; +} + +// @public +export interface IpCommunityRule { action: CommunityActionTypes; communityMembers: string[]; - readonly provisioningState?: ProvisioningState; + sequenceNumber: number; wellKnownCommunities?: WellKnownCommunities[]; } @@ -937,8 +1276,8 @@ export interface IpCommunitySetOperationProperties { export interface IpExtendedCommunities { beginCreate(resourceGroupName: string, ipExtendedCommunityName: string, body: IpExtendedCommunity, options?: IpExtendedCommunitiesCreateOptionalParams): Promise, IpExtendedCommunitiesCreateResponse>>; beginCreateAndWait(resourceGroupName: string, ipExtendedCommunityName: string, body: IpExtendedCommunity, options?: IpExtendedCommunitiesCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, ipExtendedCommunityName: string, options?: IpExtendedCommunitiesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, ipExtendedCommunityName: string, options?: IpExtendedCommunitiesDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, ipExtendedCommunityName: string, options?: IpExtendedCommunitiesDeleteOptionalParams): Promise, IpExtendedCommunitiesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, ipExtendedCommunityName: string, options?: IpExtendedCommunitiesDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, ipExtendedCommunityName: string, body: IpExtendedCommunityPatch, options?: IpExtendedCommunitiesUpdateOptionalParams): Promise, IpExtendedCommunitiesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, ipExtendedCommunityName: string, body: IpExtendedCommunityPatch, options?: IpExtendedCommunitiesUpdateOptionalParams): Promise; get(resourceGroupName: string, ipExtendedCommunityName: string, options?: IpExtendedCommunitiesGetOptionalParams): Promise; @@ -971,6 +1310,9 @@ export interface IpExtendedCommunitiesDeleteOptionalParams extends coreClient.Op updateIntervalInMs?: number; } +// @public +export type IpExtendedCommunitiesDeleteResponse = IpExtendedCommunitiesDeleteHeaders; + // @public export interface IpExtendedCommunitiesGetOptionalParams extends coreClient.OperationOptions { } @@ -1008,7 +1350,7 @@ export type IpExtendedCommunitiesListBySubscriptionResponse = IpExtendedCommunit // @public export interface IpExtendedCommunitiesUpdateHeaders { - azureAsyncOperation?: string; + location?: string; } // @public @@ -1022,10 +1364,11 @@ export type IpExtendedCommunitiesUpdateResponse = IpExtendedCommunity; // @public export interface IpExtendedCommunity extends TrackedResource { - action?: CommunityActionTypes; + readonly administrativeState?: AdministrativeState; annotation?: string; + readonly configurationState?: ConfigurationState; + ipExtendedCommunityRules: IpExtendedCommunityRule[]; readonly provisioningState?: ProvisioningState; - routeTargets?: string[]; } // @public @@ -1050,17 +1393,32 @@ export interface IpExtendedCommunityListResult { } // @public -export interface IpExtendedCommunityPatch { - tags?: { - [propertyName: string]: string; - }; +export interface IpExtendedCommunityPatch extends TagsUpdate { + annotation?: string; + ipExtendedCommunityRules?: IpExtendedCommunityRule[]; } // @public -export interface IpExtendedCommunityProperties extends AnnotationResource { - action: CommunityActionTypes; +export interface IpExtendedCommunityPatchableProperties { + ipExtendedCommunityRules: IpExtendedCommunityRule[]; +} + +// @public +export interface IpExtendedCommunityPatchProperties extends IpExtendedCommunityPatchableProperties, AnnotationResource { +} + +// @public +export interface IpExtendedCommunityProperties extends AnnotationResource, IpExtendedCommunityPatchableProperties { + readonly administrativeState?: AdministrativeState; + readonly configurationState?: ConfigurationState; readonly provisioningState?: ProvisioningState; +} + +// @public +export interface IpExtendedCommunityRule { + action: CommunityActionTypes; routeTargets: string[]; + sequenceNumber: number; } // @public @@ -1068,10 +1426,27 @@ export interface IpExtendedCommunitySetOperationProperties { set?: IpExtendedCommunityIdList; } +// @public +export interface IpGroupProperties { + ipAddressType?: IPAddressType; + ipPrefixes?: string[]; + name?: string; +} + +// @public +export interface IpMatchCondition { + ipGroupNames?: string[]; + ipPrefixValues?: string[]; + prefixType?: PrefixType; + type?: SourceDestinationType; +} + // @public export interface IpPrefix extends TrackedResource { + readonly administrativeState?: AdministrativeState; annotation?: string; - ipPrefixRules: IpPrefixPropertiesIpPrefixRulesItem[]; + readonly configurationState?: ConfigurationState; + ipPrefixRules?: IpPrefixRule[]; readonly provisioningState?: ProvisioningState; } @@ -1079,8 +1454,8 @@ export interface IpPrefix extends TrackedResource { export interface IpPrefixes { beginCreate(resourceGroupName: string, ipPrefixName: string, body: IpPrefix, options?: IpPrefixesCreateOptionalParams): Promise, IpPrefixesCreateResponse>>; beginCreateAndWait(resourceGroupName: string, ipPrefixName: string, body: IpPrefix, options?: IpPrefixesCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, ipPrefixName: string, options?: IpPrefixesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, ipPrefixName: string, options?: IpPrefixesDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, ipPrefixName: string, options?: IpPrefixesDeleteOptionalParams): Promise, IpPrefixesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, ipPrefixName: string, options?: IpPrefixesDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, ipPrefixName: string, body: IpPrefixPatch, options?: IpPrefixesUpdateOptionalParams): Promise, IpPrefixesUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, ipPrefixName: string, body: IpPrefixPatch, options?: IpPrefixesUpdateOptionalParams): Promise; get(resourceGroupName: string, ipPrefixName: string, options?: IpPrefixesGetOptionalParams): Promise; @@ -1113,6 +1488,9 @@ export interface IpPrefixesDeleteOptionalParams extends coreClient.OperationOpti updateIntervalInMs?: number; } +// @public +export type IpPrefixesDeleteResponse = IpPrefixesDeleteHeaders; + // @public export interface IpPrefixesGetOptionalParams extends coreClient.OperationOptions { } @@ -1156,7 +1534,7 @@ export interface IpPrefixesListResult { // @public export interface IpPrefixesUpdateHeaders { - azureAsyncOperation?: string; + location?: string; } // @public @@ -1169,32 +1547,63 @@ export interface IpPrefixesUpdateOptionalParams extends coreClient.OperationOpti export type IpPrefixesUpdateResponse = IpPrefix; // @public -export interface IpPrefixPatch { - tags?: { - [propertyName: string]: string; - }; +export interface IpPrefixPatch extends TagsUpdate { + annotation?: string; + ipPrefixRules?: IpPrefixRule[]; +} + +// @public +export interface IpPrefixPatchableProperties { + ipPrefixRules?: IpPrefixRule[]; } // @public -export interface IpPrefixProperties extends AnnotationResource { - ipPrefixRules: IpPrefixPropertiesIpPrefixRulesItem[]; +export interface IpPrefixPatchProperties extends AnnotationResource, IpPrefixPatchableProperties { +} + +// @public +export interface IpPrefixProperties extends AnnotationResource, IpPrefixPatchableProperties { + readonly administrativeState?: AdministrativeState; + readonly configurationState?: ConfigurationState; readonly provisioningState?: ProvisioningState; } -// @public (undocumented) -export interface IpPrefixPropertiesIpPrefixRulesItem { +// @public +export interface IpPrefixRule { action: CommunityActionTypes; condition?: Condition; networkPrefix: string; sequenceNumber: number; - subnetMaskLength?: number; + subnetMaskLength?: string; +} + +// @public +export type IsManagementType = string; + +// @public +export type IsMonitoringEnabled = string; + +// @public +export interface IsolationDomainProperties { + encapsulation?: Encapsulation; + neighborGroupIds?: string[]; } // @public -export type IsCurrentVersion = string; +export type IsWorkloadManagementNetworkEnabled = string; // @public -export type IsTestVersion = string; +export enum KnownAclActionType { + Count = "Count", + Drop = "Drop", + Log = "Log" +} + +// @public +export enum KnownAction { + Allow = "Allow", + Deny = "Deny" +} // @public export enum KnownActionType { @@ -1202,15 +1611,17 @@ export enum KnownActionType { } // @public -export enum KnownAddressFamily { - Ipv4 = "ipv4", - Ipv6 = "ipv6" +export enum KnownAddressFamilyType { + IPv4 = "IPv4", + IPv6 = "IPv6" } // @public export enum KnownAdministrativeState { - Disable = "Disable", - Enable = "Enable" + Disabled = "Disabled", + Enabled = "Enabled", + MAT = "MAT", + RMA = "RMA" } // @public @@ -1219,6 +1630,14 @@ export enum KnownAllowASOverride { Enable = "Enable" } +// @public +export enum KnownBfdAdministrativeState { + Disabled = "Disabled", + Enabled = "Enabled", + MAT = "MAT", + RMA = "RMA" +} + // @public export enum KnownBooleanEnumProperty { False = "False", @@ -1235,13 +1654,28 @@ export enum KnownCommunityActionTypes { export enum KnownCondition { EqualTo = "EqualTo", GreaterThanOrEqualTo = "GreaterThanOrEqualTo", - LesserThanOrEqualTo = "LesserThanOrEqualTo" + LesserThanOrEqualTo = "LesserThanOrEqualTo", + Range = "Range" +} + +// @public +export enum KnownConfigurationState { + Accepted = "Accepted", + DeferredControl = "DeferredControl", + Deprovisioned = "Deprovisioned", + Deprovisioning = "Deprovisioning", + ErrorDeprovisioning = "ErrorDeprovisioning", + ErrorProvisioning = "ErrorProvisioning", + Failed = "Failed", + Provisioned = "Provisioned", + Rejected = "Rejected", + Succeeded = "Succeeded" } // @public -export enum KnownConditionActionType { - Allow = "allow", - Deny = "deny" +export enum KnownConfigurationType { + File = "File", + Inline = "Inline" } // @public @@ -1253,53 +1687,93 @@ export enum KnownCreatedByType { } // @public -export enum KnownEnabledDisabledState { - Disabled = "Disabled", - Enabled = "Enabled" +export enum KnownDestinationType { + Direct = "Direct", + IsolationDomain = "IsolationDomain" } // @public -export enum KnownExpressRouteConnectionState { - Connected = "Connected", - Connecting = "Connecting", - Disconnected = "Disconnected" +export enum KnownDeviceAdministrativeState { + GracefulQuarantine = "GracefulQuarantine", + Quarantine = "Quarantine", + Resync = "Resync", + RMA = "RMA" } // @public -export enum KnownFailedSucceededState { - Failed = "Failed", - Succeeded = "Succeeded" +export enum KnownEnableDisableState { + Disable = "Disable", + Enable = "Enable" } // @public -export enum KnownInterfaceType { - Data = "Data", - Management = "Management" +export enum KnownEncapsulation { + GRE = "GRE", + None = "None" } // @public -export enum KnownIsCurrentVersion { - False = "false", - True = "true" +export enum KnownEncapsulationType { + GTPv1 = "GTPv1", + None = "None" } // @public -export enum KnownIsTestVersion { - False = "false", - True = "true" +export enum KnownExtension { + NoExtension = "NoExtension", + NPB = "NPB" } // @public -export enum KnownNetworkDeviceRackRoleType { - CE = "CE", - Management = "Management", - NPB = "NPB", - ToR = "ToR", - TS = "TS" +export enum KnownFabricSkuType { + MultiRack = "MultiRack", + SingleRack = "SingleRack" } // @public -export enum KnownNetworkDeviceRoleName { +export enum KnownGatewayType { + Infrastructure = "Infrastructure", + Workload = "Workload" +} + +// @public +export enum KnownInterfaceType { + Data = "Data", + Management = "Management" +} + +// @public +export enum KnownIPAddressType { + IPv4 = "IPv4", + IPv6 = "IPv6" +} + +// @public +export enum KnownIsManagementType { + False = "False", + True = "True" +} + +// @public +export enum KnownIsMonitoringEnabled { + False = "False", + True = "True" +} + +// @public +export enum KnownIsWorkloadManagementNetworkEnabled { + False = "False", + True = "True" +} + +// @public +export enum KnownLayer4Protocol { + TCP = "TCP", + UDP = "UDP" +} + +// @public +export enum KnownNetworkDeviceRole { CE = "CE", Management = "Management", NPB = "NPB", @@ -1308,7 +1782,7 @@ export enum KnownNetworkDeviceRoleName { } // @public -export enum KnownNetworkDeviceRoleTypes { +export enum KnownNetworkDeviceRoleName { CE = "CE", Management = "Management", NPB = "NPB", @@ -1317,27 +1791,17 @@ export enum KnownNetworkDeviceRoleTypes { } // @public -export enum KnownNetworkFabricControllerOperationalState { - Configuring = "Configuring", - Failed = "Failed", - Succeeded = "Succeeded" -} - -// @public -export enum KnownNetworkFabricOperationalState { - DeferredControl = "DeferredControl", - Deprovisioned = "Deprovisioned", - Deprovisioning = "Deprovisioning", - ErrorDeprovisioning = "ErrorDeprovisioning", - ErrorProvisioning = "ErrorProvisioning", - Provisioned = "Provisioned", - Provisioning = "Provisioning" +export enum KnownNetworkRackType { + Aggregate = "Aggregate", + Combined = "Combined", + Compute = "Compute" } // @public -export enum KnownNetworkRackRoleName { - AggregateRack = "AggregateRack", - ComputeRack = "ComputeRack" +export enum KnownNfcSku { + Basic = "Basic", + HighPerformance = "HighPerformance", + Standard = "Standard" } // @public @@ -1346,20 +1810,6 @@ export enum KnownNniType { NPB = "NPB" } -// @public -export enum KnownOperationalState { - Configuring = "Configuring", - Failed = "Failed", - Succeeded = "Succeeded" -} - -// @public -export enum KnownOperationalStatus { - Booted = "Booted", - BootPrompt = "BootPrompt", - Ztp = "Ztp" -} - // @public export enum KnownOrigin { System = "system", @@ -1374,19 +1824,34 @@ export enum KnownPeeringOption { } // @public -export enum KnownPowerCycleState { - Off = "Off", - On = "On" +export enum KnownPollingIntervalInSeconds { + Ninety = 90, + OneHundredTwenty = 120, + Sixty = 60, + Thirty = 30 +} + +// @public +export enum KnownPollingType { + Pull = "Pull", + Push = "Push" +} + +// @public +export enum KnownPortType { + DestinationPort = "DestinationPort", + SourcePort = "SourcePort" } // @public -export enum KnownPowerEnd { - Primary = "Primary", - Secondary = "Secondary" +export enum KnownPrefixType { + LongestPrefix = "LongestPrefix", + Prefix = "Prefix" } // @public export enum KnownProvisioningState { + Accepted = "Accepted", Canceled = "Canceled", Deleting = "Deleting", Failed = "Failed", @@ -1395,9 +1860,11 @@ export enum KnownProvisioningState { } // @public -export enum KnownReachabilityState { - Reachable = "Reachable", - Unreachable = "Unreachable" +export enum KnownRebootType { + GracefulRebootWithoutZTP = "GracefulRebootWithoutZTP", + GracefulRebootWithZTP = "GracefulRebootWithZTP", + UngracefulRebootWithoutZTP = "UngracefulRebootWithoutZTP", + UngracefulRebootWithZTP = "UngracefulRebootWithZTP" } // @public @@ -1413,15 +1880,40 @@ export enum KnownRedistributeStaticRoutes { } // @public -export enum KnownState { - Off = "Off", - On = "On" +export enum KnownRoutePolicyActionType { + Continue = "Continue", + Deny = "Deny", + Permit = "Permit" +} + +// @public +export enum KnownRoutePolicyConditionType { + And = "And", + Or = "Or" +} + +// @public +export enum KnownSourceDestinationType { + DestinationIP = "DestinationIP", + SourceIP = "SourceIP" +} + +// @public +export enum KnownTapRuleActionType { + Count = "Count", + Drop = "Drop", + Goto = "Goto", + Log = "Log", + Mirror = "Mirror", + Redirect = "Redirect", + Replicate = "Replicate" } // @public -export enum KnownTerminalServerConnectivityState { - Ipv4Reachable = "Ipv4Reachable", - Ipv4Unreachable = "Ipv4Unreachable" +export enum KnownValidateAction { + Cabling = "Cabling", + Configuration = "Configuration", + Connectivity = "Connectivity" } // @public @@ -1435,22 +1927,19 @@ export enum KnownWellKnownCommunities { // @public export interface L2IsolationDomain extends TrackedResource { - readonly administrativeState?: EnabledDisabledState; + readonly administrativeState?: AdministrativeState; annotation?: string; - readonly disabledOnResources?: string[]; + readonly configurationState?: ConfigurationState; mtu?: number; - networkFabricId?: string; + networkFabricId: string; readonly provisioningState?: ProvisioningState; - vlanId?: number; + vlanId: number; } // @public -export interface L2IsolationDomainPatch { +export interface L2IsolationDomainPatch extends TagsUpdate { annotation?: string; mtu?: number; - tags?: { - [propertyName: string]: string; - }; } // @public @@ -1460,8 +1949,8 @@ export interface L2IsolationDomainPatchProperties extends AnnotationResource { // @public export interface L2IsolationDomainProperties extends AnnotationResource { - readonly administrativeState?: EnabledDisabledState; - readonly disabledOnResources?: string[]; + readonly administrativeState?: AdministrativeState; + readonly configurationState?: ConfigurationState; mtu?: number; networkFabricId: string; readonly provisioningState?: ProvisioningState; @@ -1470,52 +1959,36 @@ export interface L2IsolationDomainProperties extends AnnotationResource { // @public export interface L2IsolationDomains { - beginClearArpTable(resourceGroupName: string, l2IsolationDomainName: string, body: EnableDisableOnResources, options?: L2IsolationDomainsClearArpTableOptionalParams): Promise, L2IsolationDomainsClearArpTableResponse>>; - beginClearArpTableAndWait(resourceGroupName: string, l2IsolationDomainName: string, body: EnableDisableOnResources, options?: L2IsolationDomainsClearArpTableOptionalParams): Promise; - beginClearNeighborTable(resourceGroupName: string, l2IsolationDomainName: string, body: EnableDisableOnResources, options?: L2IsolationDomainsClearNeighborTableOptionalParams): Promise, L2IsolationDomainsClearNeighborTableResponse>>; - beginClearNeighborTableAndWait(resourceGroupName: string, l2IsolationDomainName: string, body: EnableDisableOnResources, options?: L2IsolationDomainsClearNeighborTableOptionalParams): Promise; + beginCommitConfiguration(resourceGroupName: string, l2IsolationDomainName: string, options?: L2IsolationDomainsCommitConfigurationOptionalParams): Promise, L2IsolationDomainsCommitConfigurationResponse>>; + beginCommitConfigurationAndWait(resourceGroupName: string, l2IsolationDomainName: string, options?: L2IsolationDomainsCommitConfigurationOptionalParams): Promise; beginCreate(resourceGroupName: string, l2IsolationDomainName: string, body: L2IsolationDomain, options?: L2IsolationDomainsCreateOptionalParams): Promise, L2IsolationDomainsCreateResponse>>; beginCreateAndWait(resourceGroupName: string, l2IsolationDomainName: string, body: L2IsolationDomain, options?: L2IsolationDomainsCreateOptionalParams): Promise; beginDelete(resourceGroupName: string, l2IsolationDomainName: string, options?: L2IsolationDomainsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, l2IsolationDomainName: string, options?: L2IsolationDomainsDeleteOptionalParams): Promise; - beginGetArpEntries(resourceGroupName: string, l2IsolationDomainName: string, options?: L2IsolationDomainsGetArpEntriesOptionalParams): Promise, L2IsolationDomainsGetArpEntriesResponse>>; - beginGetArpEntriesAndWait(resourceGroupName: string, l2IsolationDomainName: string, options?: L2IsolationDomainsGetArpEntriesOptionalParams): Promise; beginUpdate(resourceGroupName: string, l2IsolationDomainName: string, body: L2IsolationDomainPatch, options?: L2IsolationDomainsUpdateOptionalParams): Promise, L2IsolationDomainsUpdateResponse>>; beginUpdateAdministrativeState(resourceGroupName: string, l2IsolationDomainName: string, body: UpdateAdministrativeState, options?: L2IsolationDomainsUpdateAdministrativeStateOptionalParams): Promise, L2IsolationDomainsUpdateAdministrativeStateResponse>>; beginUpdateAdministrativeStateAndWait(resourceGroupName: string, l2IsolationDomainName: string, body: UpdateAdministrativeState, options?: L2IsolationDomainsUpdateAdministrativeStateOptionalParams): Promise; beginUpdateAndWait(resourceGroupName: string, l2IsolationDomainName: string, body: L2IsolationDomainPatch, options?: L2IsolationDomainsUpdateOptionalParams): Promise; + beginValidateConfiguration(resourceGroupName: string, l2IsolationDomainName: string, options?: L2IsolationDomainsValidateConfigurationOptionalParams): Promise, L2IsolationDomainsValidateConfigurationResponse>>; + beginValidateConfigurationAndWait(resourceGroupName: string, l2IsolationDomainName: string, options?: L2IsolationDomainsValidateConfigurationOptionalParams): Promise; get(resourceGroupName: string, l2IsolationDomainName: string, options?: L2IsolationDomainsGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: L2IsolationDomainsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: L2IsolationDomainsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; } // @public -export interface L2IsolationDomainsClearArpTableHeaders { - location?: string; -} - -// @public -export interface L2IsolationDomainsClearArpTableOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type L2IsolationDomainsClearArpTableResponse = L2IsolationDomainsClearArpTableHeaders; - -// @public -export interface L2IsolationDomainsClearNeighborTableHeaders { +export interface L2IsolationDomainsCommitConfigurationHeaders { location?: string; } // @public -export interface L2IsolationDomainsClearNeighborTableOptionalParams extends coreClient.OperationOptions { +export interface L2IsolationDomainsCommitConfigurationOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type L2IsolationDomainsClearNeighborTableResponse = L2IsolationDomainsClearNeighborTableHeaders; +export type L2IsolationDomainsCommitConfigurationResponse = CommonPostActionResponseForStateUpdate; // @public export interface L2IsolationDomainsCreateOptionalParams extends coreClient.OperationOptions { @@ -1532,22 +2005,6 @@ export interface L2IsolationDomainsDeleteOptionalParams extends coreClient.Opera updateIntervalInMs?: number; } -// @public -export interface L2IsolationDomainsGetArpEntriesHeaders { - location?: string; -} - -// @public -export interface L2IsolationDomainsGetArpEntriesOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type L2IsolationDomainsGetArpEntriesResponse = L2IsolationDomainsGetArpEntriesHeaders & { - [propertyName: string]: ARPProperties; -}; - // @public export interface L2IsolationDomainsGetOptionalParams extends coreClient.OperationOptions { } @@ -1601,11 +2058,11 @@ export interface L2IsolationDomainsUpdateAdministrativeStateOptionalParams exten } // @public -export type L2IsolationDomainsUpdateAdministrativeStateResponse = L2IsolationDomainsUpdateAdministrativeStateHeaders; +export type L2IsolationDomainsUpdateAdministrativeStateResponse = CommonPostActionResponseForDeviceUpdate; // @public export interface L2IsolationDomainsUpdateHeaders { - azureAsyncOperation?: string; + location?: string; } // @public @@ -1617,63 +2074,72 @@ export interface L2IsolationDomainsUpdateOptionalParams extends coreClient.Opera // @public export type L2IsolationDomainsUpdateResponse = L2IsolationDomain; +// @public +export interface L2IsolationDomainsValidateConfigurationHeaders { + location?: string; +} + +// @public +export interface L2IsolationDomainsValidateConfigurationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type L2IsolationDomainsValidateConfigurationResponse = ValidateConfigurationResponse; + +// @public +export interface L3ExportRoutePolicy { + exportIpv4RoutePolicyId?: string; + exportIpv6RoutePolicyId?: string; +} + // @public export interface L3IsolationDomain extends TrackedResource { - readonly administrativeState?: EnabledDisabledState; + readonly administrativeState?: AdministrativeState; aggregateRouteConfiguration?: AggregateRouteConfiguration; annotation?: string; - connectedSubnetRoutePolicy?: L3IsolationDomainPatchPropertiesConnectedSubnetRoutePolicy; - description?: string; - readonly disabledOnResources?: string[]; - networkFabricId?: string; - readonly optionBDisabledOnResources?: string[]; + readonly configurationState?: ConfigurationState; + connectedSubnetRoutePolicy?: ConnectedSubnetRoutePolicy; + networkFabricId: string; readonly provisioningState?: ProvisioningState; redistributeConnectedSubnets?: RedistributeConnectedSubnets; redistributeStaticRoutes?: RedistributeStaticRoutes; } // @public -export interface L3IsolationDomainPatch { +export interface L3IsolationDomainPatch extends TagsUpdate { aggregateRouteConfiguration?: AggregateRouteConfiguration; - connectedSubnetRoutePolicy?: L3IsolationDomainPatchPropertiesConnectedSubnetRoutePolicy; - description?: string; + annotation?: string; + connectedSubnetRoutePolicy?: ConnectedSubnetRoutePolicy; redistributeConnectedSubnets?: RedistributeConnectedSubnets; redistributeStaticRoutes?: RedistributeStaticRoutes; - tags?: { - [propertyName: string]: string; - }; } // @public -export interface L3IsolationDomainPatchProperties { +export interface L3IsolationDomainPatchableProperties { aggregateRouteConfiguration?: AggregateRouteConfiguration; - connectedSubnetRoutePolicy?: L3IsolationDomainPatchPropertiesConnectedSubnetRoutePolicy; - description?: string; + connectedSubnetRoutePolicy?: ConnectedSubnetRoutePolicy; redistributeConnectedSubnets?: RedistributeConnectedSubnets; redistributeStaticRoutes?: RedistributeStaticRoutes; } // @public -export interface L3IsolationDomainPatchPropertiesConnectedSubnetRoutePolicy { - readonly administrativeState?: EnabledDisabledState; - exportRoutePolicyId?: string; +export interface L3IsolationDomainPatchProperties extends AnnotationResource, L3IsolationDomainPatchableProperties { } // @public -export interface L3IsolationDomainProperties extends AnnotationResource, L3IsolationDomainPatchProperties { - readonly administrativeState?: EnabledDisabledState; - readonly disabledOnResources?: string[]; +export interface L3IsolationDomainProperties extends AnnotationResource, L3IsolationDomainPatchableProperties { + readonly administrativeState?: AdministrativeState; + readonly configurationState?: ConfigurationState; networkFabricId: string; - readonly optionBDisabledOnResources?: string[]; readonly provisioningState?: ProvisioningState; } // @public export interface L3IsolationDomains { - beginClearArpTable(resourceGroupName: string, l3IsolationDomainName: string, body: EnableDisableOnResources, options?: L3IsolationDomainsClearArpTableOptionalParams): Promise, L3IsolationDomainsClearArpTableResponse>>; - beginClearArpTableAndWait(resourceGroupName: string, l3IsolationDomainName: string, body: EnableDisableOnResources, options?: L3IsolationDomainsClearArpTableOptionalParams): Promise; - beginClearNeighborTable(resourceGroupName: string, l3IsolationDomainName: string, body: EnableDisableOnResources, options?: L3IsolationDomainsClearNeighborTableOptionalParams): Promise, L3IsolationDomainsClearNeighborTableResponse>>; - beginClearNeighborTableAndWait(resourceGroupName: string, l3IsolationDomainName: string, body: EnableDisableOnResources, options?: L3IsolationDomainsClearNeighborTableOptionalParams): Promise; + beginCommitConfiguration(resourceGroupName: string, l3IsolationDomainName: string, options?: L3IsolationDomainsCommitConfigurationOptionalParams): Promise, L3IsolationDomainsCommitConfigurationResponse>>; + beginCommitConfigurationAndWait(resourceGroupName: string, l3IsolationDomainName: string, options?: L3IsolationDomainsCommitConfigurationOptionalParams): Promise; beginCreate(resourceGroupName: string, l3IsolationDomainName: string, body: L3IsolationDomain, options?: L3IsolationDomainsCreateOptionalParams): Promise, L3IsolationDomainsCreateResponse>>; beginCreateAndWait(resourceGroupName: string, l3IsolationDomainName: string, body: L3IsolationDomain, options?: L3IsolationDomainsCreateOptionalParams): Promise; beginDelete(resourceGroupName: string, l3IsolationDomainName: string, options?: L3IsolationDomainsDeleteOptionalParams): Promise, void>>; @@ -1682,40 +2148,26 @@ export interface L3IsolationDomains { beginUpdateAdministrativeState(resourceGroupName: string, l3IsolationDomainName: string, body: UpdateAdministrativeState, options?: L3IsolationDomainsUpdateAdministrativeStateOptionalParams): Promise, L3IsolationDomainsUpdateAdministrativeStateResponse>>; beginUpdateAdministrativeStateAndWait(resourceGroupName: string, l3IsolationDomainName: string, body: UpdateAdministrativeState, options?: L3IsolationDomainsUpdateAdministrativeStateOptionalParams): Promise; beginUpdateAndWait(resourceGroupName: string, l3IsolationDomainName: string, body: L3IsolationDomainPatch, options?: L3IsolationDomainsUpdateOptionalParams): Promise; - beginUpdateOptionBAdministrativeState(resourceGroupName: string, l3IsolationDomainName: string, body: UpdateAdministrativeState, options?: L3IsolationDomainsUpdateOptionBAdministrativeStateOptionalParams): Promise, L3IsolationDomainsUpdateOptionBAdministrativeStateResponse>>; - beginUpdateOptionBAdministrativeStateAndWait(resourceGroupName: string, l3IsolationDomainName: string, body: UpdateAdministrativeState, options?: L3IsolationDomainsUpdateOptionBAdministrativeStateOptionalParams): Promise; + beginValidateConfiguration(resourceGroupName: string, l3IsolationDomainName: string, options?: L3IsolationDomainsValidateConfigurationOptionalParams): Promise, L3IsolationDomainsValidateConfigurationResponse>>; + beginValidateConfigurationAndWait(resourceGroupName: string, l3IsolationDomainName: string, options?: L3IsolationDomainsValidateConfigurationOptionalParams): Promise; get(resourceGroupName: string, l3IsolationDomainName: string, options?: L3IsolationDomainsGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: L3IsolationDomainsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: L3IsolationDomainsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; } // @public -export interface L3IsolationDomainsClearArpTableHeaders { - location?: string; -} - -// @public -export interface L3IsolationDomainsClearArpTableOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type L3IsolationDomainsClearArpTableResponse = L3IsolationDomainsClearArpTableHeaders; - -// @public -export interface L3IsolationDomainsClearNeighborTableHeaders { +export interface L3IsolationDomainsCommitConfigurationHeaders { location?: string; } // @public -export interface L3IsolationDomainsClearNeighborTableOptionalParams extends coreClient.OperationOptions { +export interface L3IsolationDomainsCommitConfigurationOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type L3IsolationDomainsClearNeighborTableResponse = L3IsolationDomainsClearNeighborTableHeaders; +export type L3IsolationDomainsCommitConfigurationResponse = CommonPostActionResponseForStateUpdate; // @public export interface L3IsolationDomainsCreateOptionalParams extends coreClient.OperationOptions { @@ -1785,11 +2237,11 @@ export interface L3IsolationDomainsUpdateAdministrativeStateOptionalParams exten } // @public -export type L3IsolationDomainsUpdateAdministrativeStateResponse = L3IsolationDomainsUpdateAdministrativeStateHeaders; +export type L3IsolationDomainsUpdateAdministrativeStateResponse = CommonPostActionResponseForDeviceUpdate; // @public export interface L3IsolationDomainsUpdateHeaders { - azureAsyncOperation?: string; + location?: string; } // @public @@ -1799,36 +2251,44 @@ export interface L3IsolationDomainsUpdateOptionalParams extends coreClient.Opera } // @public -export interface L3IsolationDomainsUpdateOptionBAdministrativeStateHeaders { +export type L3IsolationDomainsUpdateResponse = L3IsolationDomain; + +// @public +export interface L3IsolationDomainsValidateConfigurationHeaders { location?: string; } // @public -export interface L3IsolationDomainsUpdateOptionBAdministrativeStateOptionalParams extends coreClient.OperationOptions { +export interface L3IsolationDomainsValidateConfigurationOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type L3IsolationDomainsUpdateOptionBAdministrativeStateResponse = L3IsolationDomainsUpdateOptionBAdministrativeStateHeaders; +export type L3IsolationDomainsValidateConfigurationResponse = ValidateConfigurationResponse; // @public -export type L3IsolationDomainsUpdateResponse = L3IsolationDomain; +export interface L3OptionAProperties { + bfdConfiguration?: BfdConfiguration; + egressAclId?: string; + readonly fabricASN?: number; + ingressAclId?: string; + mtu?: number; + peerASN?: number; + vlanId?: number; +} // @public -export interface Layer2Configuration { - readonly interfaces?: string[]; - mtu: number; - portCount?: number; +export interface L3OptionBProperties { + exportRouteTargets?: string[]; + importRouteTargets?: string[]; + routeTargets?: RouteTargetInformation; } // @public -export interface Layer3Configuration extends Layer3IpPrefixProperties { - exportRoutePolicyId?: string; - readonly fabricASN?: number; - importRoutePolicyId?: string; - peerASN?: number; - vlanId?: number; +export interface Layer2Configuration { + interfaces?: string[]; + mtu?: number; } // @public @@ -1840,13 +2300,7 @@ export interface Layer3IpPrefixProperties { } // @public -export interface Layer3OptionAProperties extends Layer3IpPrefixProperties { - bfdConfiguration?: BfdConfiguration; - readonly fabricASN?: number; - mtu?: number; - peerASN?: number; - vlanId?: number; -} +export type Layer4Protocol = string; // @public export interface ManagedResourceGroupConfiguration { @@ -1855,7 +2309,13 @@ export interface ManagedResourceGroupConfiguration { } // @public -export interface ManagementNetworkConfiguration { +export interface ManagementNetworkConfigurationPatchableProperties { + infrastructureVpnConfiguration?: VpnConfigurationPatchableProperties; + workloadVpnConfiguration?: VpnConfigurationPatchableProperties; +} + +// @public +export interface ManagementNetworkConfigurationProperties { infrastructureVpnConfiguration: VpnConfigurationProperties; workloadVpnConfiguration: VpnConfigurationProperties; } @@ -1863,207 +2323,257 @@ export interface ManagementNetworkConfiguration { // @public export interface NeighborAddress { address?: string; - readonly operationalState?: string; + readonly configurationState?: ConfigurationState; } // @public -export interface NetworkDevice extends TrackedResource { +export interface NeighborGroup extends TrackedResource { annotation?: string; - hostName?: string; - networkDeviceRole?: NetworkDeviceRoleTypes; - networkDeviceSku?: string; - readonly networkRackId?: string; + destination?: NeighborGroupDestination; + readonly networkTapIds?: string[]; + readonly networkTapRuleIds?: string[]; readonly provisioningState?: ProvisioningState; - serialNumber?: string; - readonly version?: string; } // @public -export interface NetworkDevicePatchableProperties { - hostName?: string; - serialNumber?: string; +export interface NeighborGroupDestination { + ipv4Addresses?: string[]; + ipv6Addresses?: string[]; } // @public -export interface NetworkDevicePatchParameters { +export interface NeighborGroupPatch extends TagsUpdate { annotation?: string; - hostName?: string; - serialNumber?: string; - tags?: { - [propertyName: string]: string; - }; + destination?: NeighborGroupDestination; } // @public -export interface NetworkDevicePatchParametersProperties extends AnnotationResource, NetworkDevicePatchableProperties { +export interface NeighborGroupPatchableProperties { + destination?: NeighborGroupDestination; } // @public -export interface NetworkDeviceProperties extends AnnotationResource, NetworkDevicePatchableProperties { - networkDeviceRole: NetworkDeviceRoleTypes; - networkDeviceSku: string; - readonly networkRackId?: string; - readonly provisioningState?: ProvisioningState; - readonly version?: string; +export interface NeighborGroupPatchProperties extends AnnotationResource, NeighborGroupPatchableProperties { } // @public -export type NetworkDeviceRackRoleType = string; - -// @public -export type NetworkDeviceRoleName = string; - -// @public -export interface NetworkDeviceRoleProperties { - networkDeviceSkuName?: string; - rackSlot?: number; - roleType?: NetworkDeviceRackRoleType; +export interface NeighborGroupProperties extends AnnotationResource, NeighborGroupPatchableProperties { + readonly networkTapIds?: string[]; + readonly networkTapRuleIds?: string[]; + readonly provisioningState?: ProvisioningState; } // @public -export type NetworkDeviceRoleTypes = string; - -// @public -export interface NetworkDevices { - beginCreate(resourceGroupName: string, networkDeviceName: string, body: NetworkDevice, options?: NetworkDevicesCreateOptionalParams): Promise, NetworkDevicesCreateResponse>>; - beginCreateAndWait(resourceGroupName: string, networkDeviceName: string, body: NetworkDevice, options?: NetworkDevicesCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesDeleteOptionalParams): Promise; - beginGenerateSupportPackage(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesGenerateSupportPackageOptionalParams): Promise, NetworkDevicesGenerateSupportPackageResponse>>; - beginGenerateSupportPackageAndWait(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesGenerateSupportPackageOptionalParams): Promise; - beginGetDynamicInterfaceMaps(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesGetDynamicInterfaceMapsOptionalParams): Promise, NetworkDevicesGetDynamicInterfaceMapsResponse>>; - beginGetDynamicInterfaceMapsAndWait(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesGetDynamicInterfaceMapsOptionalParams): Promise; - beginGetStaticInterfaceMaps(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesGetStaticInterfaceMapsOptionalParams): Promise, NetworkDevicesGetStaticInterfaceMapsResponse>>; - beginGetStaticInterfaceMapsAndWait(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesGetStaticInterfaceMapsOptionalParams): Promise; - beginGetStatus(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesGetStatusOptionalParams): Promise, NetworkDevicesGetStatusResponse>>; - beginGetStatusAndWait(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesGetStatusOptionalParams): Promise; - beginReboot(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesRebootOptionalParams): Promise, NetworkDevicesRebootResponse>>; - beginRebootAndWait(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesRebootOptionalParams): Promise; - beginRestoreConfig(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesRestoreConfigOptionalParams): Promise, NetworkDevicesRestoreConfigResponse>>; - beginRestoreConfigAndWait(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesRestoreConfigOptionalParams): Promise; - beginUpdate(resourceGroupName: string, networkDeviceName: string, body: NetworkDevicePatchParameters, options?: NetworkDevicesUpdateOptionalParams): Promise, NetworkDevicesUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, networkDeviceName: string, body: NetworkDevicePatchParameters, options?: NetworkDevicesUpdateOptionalParams): Promise; - beginUpdatePowerCycle(resourceGroupName: string, networkDeviceName: string, body: UpdatePowerCycleProperties, options?: NetworkDevicesUpdatePowerCycleOptionalParams): Promise, NetworkDevicesUpdatePowerCycleResponse>>; - beginUpdatePowerCycleAndWait(resourceGroupName: string, networkDeviceName: string, body: UpdatePowerCycleProperties, options?: NetworkDevicesUpdatePowerCycleOptionalParams): Promise; - beginUpdateVersion(resourceGroupName: string, networkDeviceName: string, body: UpdateVersionProperties, options?: NetworkDevicesUpdateVersionOptionalParams): Promise, NetworkDevicesUpdateVersionResponse>>; - beginUpdateVersionAndWait(resourceGroupName: string, networkDeviceName: string, body: UpdateVersionProperties, options?: NetworkDevicesUpdateVersionOptionalParams): Promise; - get(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesGetOptionalParams): Promise; - listByResourceGroup(resourceGroupName: string, options?: NetworkDevicesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - listBySubscription(options?: NetworkDevicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +export interface NeighborGroups { + beginCreate(resourceGroupName: string, neighborGroupName: string, body: NeighborGroup, options?: NeighborGroupsCreateOptionalParams): Promise, NeighborGroupsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, neighborGroupName: string, body: NeighborGroup, options?: NeighborGroupsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, neighborGroupName: string, options?: NeighborGroupsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, neighborGroupName: string, options?: NeighborGroupsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, neighborGroupName: string, body: NeighborGroupPatch, options?: NeighborGroupsUpdateOptionalParams): Promise, NeighborGroupsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, neighborGroupName: string, body: NeighborGroupPatch, options?: NeighborGroupsUpdateOptionalParams): Promise; + get(resourceGroupName: string, neighborGroupName: string, options?: NeighborGroupsGetOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: NeighborGroupsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: NeighborGroupsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; } // @public -export interface NetworkDevicesCreateOptionalParams extends coreClient.OperationOptions { +export interface NeighborGroupsCreateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type NetworkDevicesCreateResponse = NetworkDevice; +export type NeighborGroupsCreateResponse = NeighborGroup; // @public -export interface NetworkDevicesDeleteOptionalParams extends coreClient.OperationOptions { +export interface NeighborGroupsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export interface NetworkDevicesGenerateSupportPackageHeaders { - location?: string; +export interface NeighborGroupsGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface NetworkDevicesGenerateSupportPackageOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} +export type NeighborGroupsGetResponse = NeighborGroup; // @public -export type NetworkDevicesGenerateSupportPackageResponse = NetworkDevicesGenerateSupportPackageHeaders & SupportPackageProperties; +export interface NeighborGroupsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} // @public -export interface NetworkDevicesGetDynamicInterfaceMapsHeaders { - location?: string; -} +export type NeighborGroupsListByResourceGroupNextResponse = NeighborGroupsListResult; // @public -export interface NetworkDevicesGetDynamicInterfaceMapsOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface NeighborGroupsListByResourceGroupOptionalParams extends coreClient.OperationOptions { } // @public -export type NetworkDevicesGetDynamicInterfaceMapsResponse = NetworkDevicesGetDynamicInterfaceMapsHeaders & GetDynamicInterfaceMapsPropertiesItem[]; +export type NeighborGroupsListByResourceGroupResponse = NeighborGroupsListResult; // @public -export interface NetworkDevicesGetOptionalParams extends coreClient.OperationOptions { +export interface NeighborGroupsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { } // @public -export type NetworkDevicesGetResponse = NetworkDevice; +export type NeighborGroupsListBySubscriptionNextResponse = NeighborGroupsListResult; // @public -export interface NetworkDevicesGetStaticInterfaceMapsHeaders { - location?: string; +export interface NeighborGroupsListBySubscriptionOptionalParams extends coreClient.OperationOptions { } // @public -export interface NetworkDevicesGetStaticInterfaceMapsOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} +export type NeighborGroupsListBySubscriptionResponse = NeighborGroupsListResult; // @public -export type NetworkDevicesGetStaticInterfaceMapsResponse = NetworkDevicesGetStaticInterfaceMapsHeaders & GetStaticInterfaceMapsPropertiesItem[]; +export interface NeighborGroupsListResult { + nextLink?: string; + value?: NeighborGroup[]; +} // @public -export interface NetworkDevicesGetStatusHeaders { +export interface NeighborGroupsUpdateHeaders { location?: string; } // @public -export interface NetworkDevicesGetStatusOptionalParams extends coreClient.OperationOptions { +export interface NeighborGroupsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type NetworkDevicesGetStatusResponse = NetworkDevicesGetStatusHeaders & GetDeviceStatusProperties; +export type NeighborGroupsUpdateResponse = NeighborGroup; // @public -export interface NetworkDeviceSku extends ProxyResource { - interfaces?: DeviceInterfaceProperties[]; - limits?: DeviceLimits; - manufacturer?: string; - model: string; +export interface NetworkDevice extends TrackedResource { + readonly administrativeState?: AdministrativeState; + annotation?: string; + readonly configurationState?: ConfigurationState; + hostName?: string; + readonly managementIpv4Address?: string; + readonly managementIpv6Address?: string; + readonly networkDeviceRole?: NetworkDeviceRole; + networkDeviceSku?: string; + readonly networkRackId?: string; readonly provisioningState?: ProvisioningState; - supportedRoleTypes?: NetworkDeviceRoleName[]; - supportedVersions?: SupportedVersionProperties[]; + serialNumber?: string; + readonly version?: string; } // @public -export interface NetworkDeviceSkus { - get(networkDeviceSkuName: string, options?: NetworkDeviceSkusGetOptionalParams): Promise; - listBySubscription(options?: NetworkDeviceSkusListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +export interface NetworkDevicePatchableProperties { + hostName?: string; + serialNumber?: string; } // @public -export interface NetworkDeviceSkusGetOptionalParams extends coreClient.OperationOptions { +export interface NetworkDevicePatchParameters extends TagsUpdate { + annotation?: string; + hostName?: string; + serialNumber?: string; } // @public -export type NetworkDeviceSkusGetResponse = NetworkDeviceSku; +export interface NetworkDevicePatchParametersProperties extends AnnotationResource, NetworkDevicePatchableProperties { +} // @public -export interface NetworkDeviceSkusListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +export interface NetworkDeviceProperties extends AnnotationResource, NetworkDevicePatchableProperties { + readonly administrativeState?: AdministrativeState; + readonly configurationState?: ConfigurationState; + readonly managementIpv4Address?: string; + readonly managementIpv6Address?: string; + readonly networkDeviceRole?: NetworkDeviceRole; + networkDeviceSku?: string; + readonly networkRackId?: string; + readonly provisioningState?: ProvisioningState; + readonly version?: string; } // @public -export type NetworkDeviceSkusListBySubscriptionNextResponse = NetworkDeviceSkusListResult; +export type NetworkDeviceRole = string; // @public -export interface NetworkDeviceSkusListBySubscriptionOptionalParams extends coreClient.OperationOptions { -} +export type NetworkDeviceRoleName = string; + +// @public +export interface NetworkDevices { + beginCreate(resourceGroupName: string, networkDeviceName: string, body: NetworkDevice, options?: NetworkDevicesCreateOptionalParams): Promise, NetworkDevicesCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, networkDeviceName: string, body: NetworkDevice, options?: NetworkDevicesCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesDeleteOptionalParams): Promise; + beginReboot(resourceGroupName: string, networkDeviceName: string, body: RebootProperties, options?: NetworkDevicesRebootOptionalParams): Promise, NetworkDevicesRebootResponse>>; + beginRebootAndWait(resourceGroupName: string, networkDeviceName: string, body: RebootProperties, options?: NetworkDevicesRebootOptionalParams): Promise; + beginRefreshConfiguration(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesRefreshConfigurationOptionalParams): Promise, NetworkDevicesRefreshConfigurationResponse>>; + beginRefreshConfigurationAndWait(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesRefreshConfigurationOptionalParams): Promise; + beginUpdate(resourceGroupName: string, networkDeviceName: string, body: NetworkDevicePatchParameters, options?: NetworkDevicesUpdateOptionalParams): Promise, NetworkDevicesUpdateResponse>>; + beginUpdateAdministrativeState(resourceGroupName: string, networkDeviceName: string, body: UpdateDeviceAdministrativeState, options?: NetworkDevicesUpdateAdministrativeStateOptionalParams): Promise, NetworkDevicesUpdateAdministrativeStateResponse>>; + beginUpdateAdministrativeStateAndWait(resourceGroupName: string, networkDeviceName: string, body: UpdateDeviceAdministrativeState, options?: NetworkDevicesUpdateAdministrativeStateOptionalParams): Promise; + beginUpdateAndWait(resourceGroupName: string, networkDeviceName: string, body: NetworkDevicePatchParameters, options?: NetworkDevicesUpdateOptionalParams): Promise; + beginUpgrade(resourceGroupName: string, networkDeviceName: string, body: UpdateVersion, options?: NetworkDevicesUpgradeOptionalParams): Promise, NetworkDevicesUpgradeResponse>>; + beginUpgradeAndWait(resourceGroupName: string, networkDeviceName: string, body: UpdateVersion, options?: NetworkDevicesUpgradeOptionalParams): Promise; + get(resourceGroupName: string, networkDeviceName: string, options?: NetworkDevicesGetOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: NetworkDevicesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: NetworkDevicesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface NetworkDevicesCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkDevicesCreateResponse = NetworkDevice; + +// @public +export interface NetworkDevicesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface NetworkDevicesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkDevicesGetResponse = NetworkDevice; + +// @public +export interface NetworkDeviceSku extends ProxyResource { + interfaces?: DeviceInterfaceProperties[]; + manufacturer?: string; + model: string; + readonly provisioningState?: ProvisioningState; + supportedRoleTypes?: NetworkDeviceRoleName[]; + supportedVersions?: SupportedVersionProperties[]; +} + +// @public +export interface NetworkDeviceSkus { + get(networkDeviceSkuName: string, options?: NetworkDeviceSkusGetOptionalParams): Promise; + listBySubscription(options?: NetworkDeviceSkusListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface NetworkDeviceSkusGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkDeviceSkusGetResponse = NetworkDeviceSku; + +// @public +export interface NetworkDeviceSkusListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkDeviceSkusListBySubscriptionNextResponse = NetworkDeviceSkusListResult; + +// @public +export interface NetworkDeviceSkusListBySubscriptionOptionalParams extends coreClient.OperationOptions { +} // @public export type NetworkDeviceSkusListBySubscriptionResponse = NetworkDeviceSkusListResult; @@ -2120,109 +2630,107 @@ export interface NetworkDevicesRebootOptionalParams extends coreClient.Operation } // @public -export type NetworkDevicesRebootResponse = NetworkDevicesRebootHeaders; +export type NetworkDevicesRebootResponse = CommonPostActionResponseForStateUpdate; // @public -export interface NetworkDevicesRestoreConfigHeaders { +export interface NetworkDevicesRefreshConfigurationHeaders { location?: string; } // @public -export interface NetworkDevicesRestoreConfigOptionalParams extends coreClient.OperationOptions { +export interface NetworkDevicesRefreshConfigurationOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type NetworkDevicesRestoreConfigResponse = NetworkDevicesRestoreConfigHeaders; +export type NetworkDevicesRefreshConfigurationResponse = CommonPostActionResponseForStateUpdate; // @public -export interface NetworkDevicesUpdateHeaders { - azureAsyncOperation?: string; +export interface NetworkDevicesUpdateAdministrativeStateHeaders { + location?: string; } // @public -export interface NetworkDevicesUpdateOptionalParams extends coreClient.OperationOptions { +export interface NetworkDevicesUpdateAdministrativeStateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export interface NetworkDevicesUpdatePowerCycleHeaders { +export type NetworkDevicesUpdateAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; + +// @public +export interface NetworkDevicesUpdateHeaders { location?: string; } // @public -export interface NetworkDevicesUpdatePowerCycleOptionalParams extends coreClient.OperationOptions { +export interface NetworkDevicesUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } -// @public -export type NetworkDevicesUpdatePowerCycleResponse = NetworkDevicesUpdatePowerCycleHeaders; - // @public export type NetworkDevicesUpdateResponse = NetworkDevice; // @public -export interface NetworkDevicesUpdateVersionHeaders { +export interface NetworkDevicesUpgradeHeaders { location?: string; } // @public -export interface NetworkDevicesUpdateVersionOptionalParams extends coreClient.OperationOptions { +export interface NetworkDevicesUpgradeOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type NetworkDevicesUpdateVersionResponse = NetworkDevicesUpdateVersionHeaders; +export type NetworkDevicesUpgradeResponse = CommonPostActionResponseForStateUpdate; // @public export interface NetworkFabric extends TrackedResource { + readonly administrativeState?: AdministrativeState; annotation?: string; - fabricASN?: number; - ipv4Prefix?: string; + readonly configurationState?: ConfigurationState; + fabricASN: number; + readonly fabricVersion?: string; + ipv4Prefix: string; ipv6Prefix?: string; readonly l2IsolationDomains?: string[]; readonly l3IsolationDomains?: string[]; - managementNetworkConfiguration?: ManagementNetworkConfiguration; - networkFabricControllerId?: string; - networkFabricSku?: string; - readonly operationalState?: NetworkFabricOperationalState; + managementNetworkConfiguration: ManagementNetworkConfigurationProperties; + networkFabricControllerId: string; + networkFabricSku: string; readonly provisioningState?: ProvisioningState; rackCount?: number; readonly racks?: string[]; - readonly routerId?: string; - serverCountPerRack?: number; - terminalServerConfiguration?: TerminalServerConfiguration; + readonly routerIds?: string[]; + serverCountPerRack: number; + terminalServerConfiguration: TerminalServerConfiguration; } // @public export interface NetworkFabricController extends TrackedResource { annotation?: string; infrastructureExpressRouteConnections?: ExpressRouteConnectionInformation[]; - readonly infrastructureServices?: InfrastructureServices; + readonly infrastructureServices?: ControllerServices; ipv4AddressSpace?: string; ipv6AddressSpace?: string; + isWorkloadManagementNetworkEnabled?: IsWorkloadManagementNetworkEnabled; managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; readonly networkFabricIds?: string[]; - readonly operationalState?: NetworkFabricControllerOperationalState; + nfcSku?: NfcSku; readonly provisioningState?: ProvisioningState; + readonly tenantInternetGatewayIds?: string[]; workloadExpressRouteConnections?: ExpressRouteConnectionInformation[]; readonly workloadManagementNetwork?: boolean; - readonly workloadServices?: WorkloadServices; + readonly workloadServices?: ControllerServices; } // @public -export type NetworkFabricControllerOperationalState = string; - -// @public -export interface NetworkFabricControllerPatch { +export interface NetworkFabricControllerPatch extends TagsUpdate { infrastructureExpressRouteConnections?: ExpressRouteConnectionInformation[]; - tags?: { - [propertyName: string]: string; - }; workloadExpressRouteConnections?: ExpressRouteConnectionInformation[]; } @@ -2234,27 +2742,25 @@ export interface NetworkFabricControllerPatchableProperties { // @public export interface NetworkFabricControllerProperties extends AnnotationResource, NetworkFabricControllerPatchableProperties { - readonly infrastructureServices?: InfrastructureServices; + readonly infrastructureServices?: ControllerServices; ipv4AddressSpace?: string; ipv6AddressSpace?: string; + isWorkloadManagementNetworkEnabled?: IsWorkloadManagementNetworkEnabled; managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; readonly networkFabricIds?: string[]; - readonly operationalState?: NetworkFabricControllerOperationalState; + nfcSku?: NfcSku; readonly provisioningState?: ProvisioningState; + readonly tenantInternetGatewayIds?: string[]; readonly workloadManagementNetwork?: boolean; - readonly workloadServices?: WorkloadServices; + readonly workloadServices?: ControllerServices; } // @public export interface NetworkFabricControllers { beginCreate(resourceGroupName: string, networkFabricControllerName: string, body: NetworkFabricController, options?: NetworkFabricControllersCreateOptionalParams): Promise, NetworkFabricControllersCreateResponse>>; beginCreateAndWait(resourceGroupName: string, networkFabricControllerName: string, body: NetworkFabricController, options?: NetworkFabricControllersCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, networkFabricControllerName: string, options?: NetworkFabricControllersDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, networkFabricControllerName: string, options?: NetworkFabricControllersDeleteOptionalParams): Promise; - beginDisableWorkloadManagementNetwork(resourceGroupName: string, networkFabricControllerName: string, options?: NetworkFabricControllersDisableWorkloadManagementNetworkOptionalParams): Promise, NetworkFabricControllersDisableWorkloadManagementNetworkResponse>>; - beginDisableWorkloadManagementNetworkAndWait(resourceGroupName: string, networkFabricControllerName: string, options?: NetworkFabricControllersDisableWorkloadManagementNetworkOptionalParams): Promise; - beginEnableWorkloadManagementNetwork(resourceGroupName: string, networkFabricControllerName: string, options?: NetworkFabricControllersEnableWorkloadManagementNetworkOptionalParams): Promise, NetworkFabricControllersEnableWorkloadManagementNetworkResponse>>; - beginEnableWorkloadManagementNetworkAndWait(resourceGroupName: string, networkFabricControllerName: string, options?: NetworkFabricControllersEnableWorkloadManagementNetworkOptionalParams): Promise; + beginDelete(resourceGroupName: string, networkFabricControllerName: string, options?: NetworkFabricControllersDeleteOptionalParams): Promise, NetworkFabricControllersDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, networkFabricControllerName: string, options?: NetworkFabricControllersDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, networkFabricControllerName: string, body: NetworkFabricControllerPatch, options?: NetworkFabricControllersUpdateOptionalParams): Promise, NetworkFabricControllersUpdateResponse>>; beginUpdateAndWait(resourceGroupName: string, networkFabricControllerName: string, body: NetworkFabricControllerPatch, options?: NetworkFabricControllersUpdateOptionalParams): Promise; get(resourceGroupName: string, networkFabricControllerName: string, options?: NetworkFabricControllersGetOptionalParams): Promise; @@ -2283,32 +2789,7 @@ export interface NetworkFabricControllersDeleteOptionalParams extends coreClient } // @public -export interface NetworkFabricControllersDisableWorkloadManagementNetworkHeaders { - location?: string; -} - -// @public -export interface NetworkFabricControllersDisableWorkloadManagementNetworkOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type NetworkFabricControllersDisableWorkloadManagementNetworkResponse = NetworkFabricControllersDisableWorkloadManagementNetworkHeaders; - -// @public -export interface NetworkFabricControllersEnableWorkloadManagementNetworkHeaders { - location?: string; -} - -// @public -export interface NetworkFabricControllersEnableWorkloadManagementNetworkOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type NetworkFabricControllersEnableWorkloadManagementNetworkResponse = NetworkFabricControllersEnableWorkloadManagementNetworkHeaders; +export type NetworkFabricControllersDeleteResponse = NetworkFabricControllersDeleteHeaders; // @public export interface NetworkFabricControllersGetOptionalParams extends coreClient.OperationOptions { @@ -2366,64 +2847,102 @@ export interface NetworkFabricControllersUpdateOptionalParams extends coreClient export type NetworkFabricControllersUpdateResponse = NetworkFabricController; // @public -export type NetworkFabricOperationalState = string; +export interface NetworkFabricPatch extends TagsUpdate { + annotation?: string; + fabricASN?: number; + ipv4Prefix?: string; + ipv6Prefix?: string; + managementNetworkConfiguration?: ManagementNetworkConfigurationPatchableProperties; + rackCount?: number; + serverCountPerRack?: number; + terminalServerConfiguration?: NetworkFabricPatchablePropertiesTerminalServerConfiguration; +} // @public export interface NetworkFabricPatchableProperties { - readonly l2IsolationDomains?: string[]; - readonly l3IsolationDomains?: string[]; - readonly racks?: string[]; + fabricASN?: number; + ipv4Prefix?: string; + ipv6Prefix?: string; + managementNetworkConfiguration?: ManagementNetworkConfigurationPatchableProperties; + rackCount?: number; + serverCountPerRack?: number; + terminalServerConfiguration?: NetworkFabricPatchablePropertiesTerminalServerConfiguration; } // @public -export interface NetworkFabricPatchParameters { - annotation?: string; - readonly l2IsolationDomains?: string[]; - readonly l3IsolationDomains?: string[]; - readonly racks?: string[]; - tags?: { - [propertyName: string]: string; - }; - terminalServerConfiguration?: TerminalServerPatchableProperties; +export interface NetworkFabricPatchablePropertiesTerminalServerConfiguration extends TerminalServerPatchableProperties, Layer3IpPrefixProperties { } // @public -export interface NetworkFabricPatchParametersProperties extends AnnotationResource, TerminalServerPatchParameters, NetworkFabricPatchableProperties { +export interface NetworkFabricPatchProperties extends AnnotationResource, NetworkFabricPatchableProperties { } // @public -export interface NetworkFabricProperties extends AnnotationResource, NetworkFabricPatchableProperties { +export interface NetworkFabricProperties extends AnnotationResource { + readonly administrativeState?: AdministrativeState; + readonly configurationState?: ConfigurationState; fabricASN: number; - ipv4Prefix?: string; + readonly fabricVersion?: string; + ipv4Prefix: string; ipv6Prefix?: string; - managementNetworkConfiguration: ManagementNetworkConfiguration; + readonly l2IsolationDomains?: string[]; + readonly l3IsolationDomains?: string[]; + managementNetworkConfiguration: ManagementNetworkConfigurationProperties; networkFabricControllerId: string; networkFabricSku: string; - readonly operationalState?: NetworkFabricOperationalState; readonly provisioningState?: ProvisioningState; - rackCount: number; - readonly routerId?: string; + rackCount?: number; + readonly racks?: string[]; + readonly routerIds?: string[]; serverCountPerRack: number; terminalServerConfiguration: TerminalServerConfiguration; } // @public export interface NetworkFabrics { + beginCommitConfiguration(resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsCommitConfigurationOptionalParams): Promise, NetworkFabricsCommitConfigurationResponse>>; + beginCommitConfigurationAndWait(resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsCommitConfigurationOptionalParams): Promise; beginCreate(resourceGroupName: string, networkFabricName: string, body: NetworkFabric, options?: NetworkFabricsCreateOptionalParams): Promise, NetworkFabricsCreateResponse>>; beginCreateAndWait(resourceGroupName: string, networkFabricName: string, body: NetworkFabric, options?: NetworkFabricsCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsDeleteOptionalParams): Promise; + beginDelete(resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsDeleteOptionalParams): Promise, NetworkFabricsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsDeleteOptionalParams): Promise; beginDeprovision(resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsDeprovisionOptionalParams): Promise, NetworkFabricsDeprovisionResponse>>; beginDeprovisionAndWait(resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsDeprovisionOptionalParams): Promise; + beginGetTopology(resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsGetTopologyOptionalParams): Promise, NetworkFabricsGetTopologyResponse>>; + beginGetTopologyAndWait(resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsGetTopologyOptionalParams): Promise; beginProvision(resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsProvisionOptionalParams): Promise, NetworkFabricsProvisionResponse>>; beginProvisionAndWait(resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsProvisionOptionalParams): Promise; - beginUpdate(resourceGroupName: string, networkFabricName: string, body: NetworkFabricPatchParameters, options?: NetworkFabricsUpdateOptionalParams): Promise, NetworkFabricsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, networkFabricName: string, body: NetworkFabricPatchParameters, options?: NetworkFabricsUpdateOptionalParams): Promise; + beginRefreshConfiguration(resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsRefreshConfigurationOptionalParams): Promise, NetworkFabricsRefreshConfigurationResponse>>; + beginRefreshConfigurationAndWait(resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsRefreshConfigurationOptionalParams): Promise; + beginUpdate(resourceGroupName: string, networkFabricName: string, body: NetworkFabricPatch, options?: NetworkFabricsUpdateOptionalParams): Promise, NetworkFabricsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, networkFabricName: string, body: NetworkFabricPatch, options?: NetworkFabricsUpdateOptionalParams): Promise; + beginUpdateInfraManagementBfdConfiguration(resourceGroupName: string, networkFabricName: string, body: UpdateAdministrativeState, options?: NetworkFabricsUpdateInfraManagementBfdConfigurationOptionalParams): Promise, NetworkFabricsUpdateInfraManagementBfdConfigurationResponse>>; + beginUpdateInfraManagementBfdConfigurationAndWait(resourceGroupName: string, networkFabricName: string, body: UpdateAdministrativeState, options?: NetworkFabricsUpdateInfraManagementBfdConfigurationOptionalParams): Promise; + beginUpdateWorkloadManagementBfdConfiguration(resourceGroupName: string, networkFabricName: string, body: UpdateAdministrativeState, options?: NetworkFabricsUpdateWorkloadManagementBfdConfigurationOptionalParams): Promise, NetworkFabricsUpdateWorkloadManagementBfdConfigurationResponse>>; + beginUpdateWorkloadManagementBfdConfigurationAndWait(resourceGroupName: string, networkFabricName: string, body: UpdateAdministrativeState, options?: NetworkFabricsUpdateWorkloadManagementBfdConfigurationOptionalParams): Promise; + beginUpgrade(resourceGroupName: string, networkFabricName: string, body: UpdateVersion, options?: NetworkFabricsUpgradeOptionalParams): Promise, NetworkFabricsUpgradeResponse>>; + beginUpgradeAndWait(resourceGroupName: string, networkFabricName: string, body: UpdateVersion, options?: NetworkFabricsUpgradeOptionalParams): Promise; + beginValidateConfiguration(resourceGroupName: string, networkFabricName: string, body: ValidateConfigurationProperties, options?: NetworkFabricsValidateConfigurationOptionalParams): Promise, NetworkFabricsValidateConfigurationResponse>>; + beginValidateConfigurationAndWait(resourceGroupName: string, networkFabricName: string, body: ValidateConfigurationProperties, options?: NetworkFabricsValidateConfigurationOptionalParams): Promise; get(resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: NetworkFabricsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: NetworkFabricsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface NetworkFabricsCommitConfigurationHeaders { + location?: string; +} + +// @public +export interface NetworkFabricsCommitConfigurationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkFabricsCommitConfigurationResponse = CommonPostActionResponseForStateUpdate; + // @public export interface NetworkFabricsCreateHeaders { azureAsyncOperation?: string; @@ -2449,6 +2968,9 @@ export interface NetworkFabricsDeleteOptionalParams extends coreClient.Operation updateIntervalInMs?: number; } +// @public +export type NetworkFabricsDeleteResponse = NetworkFabricsDeleteHeaders; + // @public export interface NetworkFabricsDeprovisionHeaders { location?: string; @@ -2461,7 +2983,7 @@ export interface NetworkFabricsDeprovisionOptionalParams extends coreClient.Oper } // @public -export type NetworkFabricsDeprovisionResponse = NetworkFabricsDeprovisionHeaders; +export type NetworkFabricsDeprovisionResponse = CommonPostActionResponseForDeviceUpdate; // @public export interface NetworkFabricsGetOptionalParams extends coreClient.OperationOptions { @@ -2470,14 +2992,28 @@ export interface NetworkFabricsGetOptionalParams extends coreClient.OperationOpt // @public export type NetworkFabricsGetResponse = NetworkFabric; +// @public +export interface NetworkFabricsGetTopologyHeaders { + location?: string; +} + +// @public +export interface NetworkFabricsGetTopologyOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkFabricsGetTopologyResponse = ValidateConfigurationResponse; + // @public export interface NetworkFabricSku extends ProxyResource { - readonly detailsUri?: string; + readonly details?: string; maxComputeRacks?: number; - readonly maxSupportedVer?: string; - readonly minSupportedVer?: string; + maximumServerCount?: number; readonly provisioningState?: ProvisioningState; - readonly typePropertiesType?: string; + readonly supportedVersions?: string[]; + readonly typePropertiesType?: FabricSkuType; } // @public @@ -2559,13 +3095,41 @@ export interface NetworkFabricsProvisionOptionalParams extends coreClient.Operat } // @public -export type NetworkFabricsProvisionResponse = NetworkFabricsProvisionHeaders; +export type NetworkFabricsProvisionResponse = CommonPostActionResponseForDeviceUpdate; + +// @public +export interface NetworkFabricsRefreshConfigurationHeaders { + location?: string; +} + +// @public +export interface NetworkFabricsRefreshConfigurationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkFabricsRefreshConfigurationResponse = CommonPostActionResponseForStateUpdate; // @public export interface NetworkFabricsUpdateHeaders { location?: string; } +// @public +export interface NetworkFabricsUpdateInfraManagementBfdConfigurationHeaders { + location?: string; +} + +// @public +export interface NetworkFabricsUpdateInfraManagementBfdConfigurationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkFabricsUpdateInfraManagementBfdConfigurationResponse = CommonPostActionResponseForStateUpdate; + // @public export interface NetworkFabricsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -2575,9 +3139,51 @@ export interface NetworkFabricsUpdateOptionalParams extends coreClient.Operation // @public export type NetworkFabricsUpdateResponse = NetworkFabric; +// @public +export interface NetworkFabricsUpdateWorkloadManagementBfdConfigurationHeaders { + location?: string; +} + +// @public +export interface NetworkFabricsUpdateWorkloadManagementBfdConfigurationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkFabricsUpdateWorkloadManagementBfdConfigurationResponse = CommonPostActionResponseForStateUpdate; + +// @public +export interface NetworkFabricsUpgradeHeaders { + location?: string; +} + +// @public +export interface NetworkFabricsUpgradeOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkFabricsUpgradeResponse = CommonPostActionResponseForStateUpdate; + +// @public +export interface NetworkFabricsValidateConfigurationHeaders { + location?: string; +} + +// @public +export interface NetworkFabricsValidateConfigurationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkFabricsValidateConfigurationResponse = ValidateConfigurationResponse; + // @public export interface NetworkInterface extends ProxyResource { - readonly administrativeState?: EnabledDisabledState; + readonly administrativeState?: AdministrativeState; annotation?: string; readonly connectedTo?: string; readonly interfaceType?: InterfaceType; @@ -2598,7 +3204,7 @@ export interface NetworkInterfacePatchProperties extends AnnotationResource { // @public export interface NetworkInterfaceProperties extends AnnotationResource { - readonly administrativeState?: EnabledDisabledState; + readonly administrativeState?: AdministrativeState; readonly connectedTo?: string; readonly interfaceType?: InterfaceType; readonly ipv4Address?: string; @@ -2613,14 +3219,12 @@ export interface NetworkInterfaces { beginCreateAndWait(resourceGroupName: string, networkDeviceName: string, networkInterfaceName: string, body: NetworkInterface, options?: NetworkInterfacesCreateOptionalParams): Promise; beginDelete(resourceGroupName: string, networkDeviceName: string, networkInterfaceName: string, options?: NetworkInterfacesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, networkDeviceName: string, networkInterfaceName: string, options?: NetworkInterfacesDeleteOptionalParams): Promise; - beginGetStatus(resourceGroupName: string, networkDeviceName: string, networkInterfaceName: string, options?: NetworkInterfacesGetStatusOptionalParams): Promise, NetworkInterfacesGetStatusResponse>>; - beginGetStatusAndWait(resourceGroupName: string, networkDeviceName: string, networkInterfaceName: string, options?: NetworkInterfacesGetStatusOptionalParams): Promise; beginUpdate(resourceGroupName: string, networkDeviceName: string, networkInterfaceName: string, body: NetworkInterfacePatch, options?: NetworkInterfacesUpdateOptionalParams): Promise, NetworkInterfacesUpdateResponse>>; beginUpdateAdministrativeState(resourceGroupName: string, networkDeviceName: string, networkInterfaceName: string, body: UpdateAdministrativeState, options?: NetworkInterfacesUpdateAdministrativeStateOptionalParams): Promise, NetworkInterfacesUpdateAdministrativeStateResponse>>; beginUpdateAdministrativeStateAndWait(resourceGroupName: string, networkDeviceName: string, networkInterfaceName: string, body: UpdateAdministrativeState, options?: NetworkInterfacesUpdateAdministrativeStateOptionalParams): Promise; beginUpdateAndWait(resourceGroupName: string, networkDeviceName: string, networkInterfaceName: string, body: NetworkInterfacePatch, options?: NetworkInterfacesUpdateOptionalParams): Promise; get(resourceGroupName: string, networkDeviceName: string, networkInterfaceName: string, options?: NetworkInterfacesGetOptionalParams): Promise; - list(resourceGroupName: string, networkDeviceName: string, options?: NetworkInterfacesListOptionalParams): PagedAsyncIterableIterator; + listByNetworkDevice(resourceGroupName: string, networkDeviceName: string, options?: NetworkInterfacesListByNetworkDeviceOptionalParams): PagedAsyncIterableIterator; } // @public @@ -2646,225 +3250,656 @@ export interface NetworkInterfacesGetOptionalParams extends coreClient.Operation export type NetworkInterfacesGetResponse = NetworkInterface; // @public -export interface NetworkInterfacesGetStatusHeaders { +export interface NetworkInterfacesList { + nextLink?: string; + value?: NetworkInterface[]; +} + +// @public +export interface NetworkInterfacesListByNetworkDeviceNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkInterfacesListByNetworkDeviceNextResponse = NetworkInterfacesList; + +// @public +export interface NetworkInterfacesListByNetworkDeviceOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkInterfacesListByNetworkDeviceResponse = NetworkInterfacesList; + +// @public +export interface NetworkInterfacesUpdateAdministrativeStateHeaders { + location?: string; +} + +// @public +export interface NetworkInterfacesUpdateAdministrativeStateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkInterfacesUpdateAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; + +// @public +export interface NetworkInterfacesUpdateHeaders { location?: string; } // @public -export interface NetworkInterfacesGetStatusOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface NetworkInterfacesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkInterfacesUpdateResponse = NetworkInterface; + +// @public +export interface NetworkPacketBroker extends TrackedResource { + readonly neighborGroupIds?: string[]; + readonly networkDeviceIds?: string[]; + networkFabricId: string; + readonly networkTapIds?: string[]; + readonly provisioningState?: ProvisioningState; + readonly sourceInterfaceIds?: string[]; +} + +// @public +export interface NetworkPacketBrokerPatch extends TagsUpdate { +} + +// @public +export interface NetworkPacketBrokers { + beginCreate(resourceGroupName: string, networkPacketBrokerName: string, body: NetworkPacketBroker, options?: NetworkPacketBrokersCreateOptionalParams): Promise, NetworkPacketBrokersCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, networkPacketBrokerName: string, body: NetworkPacketBroker, options?: NetworkPacketBrokersCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, networkPacketBrokerName: string, options?: NetworkPacketBrokersDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, networkPacketBrokerName: string, options?: NetworkPacketBrokersDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, networkPacketBrokerName: string, body: NetworkPacketBrokerPatch, options?: NetworkPacketBrokersUpdateOptionalParams): Promise, NetworkPacketBrokersUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, networkPacketBrokerName: string, body: NetworkPacketBrokerPatch, options?: NetworkPacketBrokersUpdateOptionalParams): Promise; + get(resourceGroupName: string, networkPacketBrokerName: string, options?: NetworkPacketBrokersGetOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: NetworkPacketBrokersListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: NetworkPacketBrokersListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface NetworkPacketBrokersCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkPacketBrokersCreateResponse = NetworkPacketBroker; + +// @public +export interface NetworkPacketBrokersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface NetworkPacketBrokersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkPacketBrokersGetResponse = NetworkPacketBroker; + +// @public +export interface NetworkPacketBrokersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkPacketBrokersListByResourceGroupNextResponse = NetworkPacketBrokersListResult; + +// @public +export interface NetworkPacketBrokersListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkPacketBrokersListByResourceGroupResponse = NetworkPacketBrokersListResult; + +// @public +export interface NetworkPacketBrokersListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkPacketBrokersListBySubscriptionNextResponse = NetworkPacketBrokersListResult; + +// @public +export interface NetworkPacketBrokersListBySubscriptionOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkPacketBrokersListBySubscriptionResponse = NetworkPacketBrokersListResult; + +// @public +export interface NetworkPacketBrokersListResult { + nextLink?: string; + value?: NetworkPacketBroker[]; +} + +// @public +export interface NetworkPacketBrokersUpdateHeaders { + location?: string; +} + +// @public +export interface NetworkPacketBrokersUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkPacketBrokersUpdateResponse = NetworkPacketBroker; + +// @public +export interface NetworkRack extends TrackedResource { + annotation?: string; + readonly networkDevices?: string[]; + networkFabricId: string; + networkRackType?: NetworkRackType; + readonly provisioningState?: ProvisioningState; +} + +// @public +export interface NetworkRackProperties extends AnnotationResource { + readonly networkDevices?: string[]; + networkFabricId: string; + networkRackType?: NetworkRackType; + readonly provisioningState?: ProvisioningState; +} + +// @public +export interface NetworkRacks { + beginCreate(resourceGroupName: string, networkRackName: string, body: NetworkRack, options?: NetworkRacksCreateOptionalParams): Promise, NetworkRacksCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, networkRackName: string, body: NetworkRack, options?: NetworkRacksCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, networkRackName: string, options?: NetworkRacksDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, networkRackName: string, options?: NetworkRacksDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, networkRackName: string, body: TagsUpdate, options?: NetworkRacksUpdateOptionalParams): Promise, NetworkRacksUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, networkRackName: string, body: TagsUpdate, options?: NetworkRacksUpdateOptionalParams): Promise; + get(resourceGroupName: string, networkRackName: string, options?: NetworkRacksGetOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: NetworkRacksListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: NetworkRacksListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface NetworkRacksCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkRacksCreateResponse = NetworkRack; + +// @public +export interface NetworkRacksDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface NetworkRacksGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkRacksGetResponse = NetworkRack; + +// @public +export interface NetworkRacksListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkRacksListByResourceGroupNextResponse = NetworkRacksListResult; + +// @public +export interface NetworkRacksListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkRacksListByResourceGroupResponse = NetworkRacksListResult; + +// @public +export interface NetworkRacksListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkRacksListBySubscriptionNextResponse = NetworkRacksListResult; + +// @public +export interface NetworkRacksListBySubscriptionOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkRacksListBySubscriptionResponse = NetworkRacksListResult; + +// @public +export interface NetworkRacksListResult { + nextLink?: string; + value?: NetworkRack[]; +} + +// @public +export interface NetworkRacksUpdateHeaders { + location?: string; +} + +// @public +export interface NetworkRacksUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkRacksUpdateResponse = NetworkRack; + +// @public +export type NetworkRackType = string; + +// @public +export interface NetworkTap extends TrackedResource { + readonly administrativeState?: AdministrativeState; + annotation?: string; + readonly configurationState?: ConfigurationState; + destinations: NetworkTapPropertiesDestinationsItem[]; + networkPacketBrokerId: string; + pollingType?: PollingType; + readonly provisioningState?: ProvisioningState; + readonly sourceTapRuleId?: string; +} + +// @public +export interface NetworkTapPatch extends TagsUpdate { + annotation?: string; + destinations?: NetworkTapPatchableParametersDestinationsItem[]; + pollingType?: PollingType; +} + +// @public +export interface NetworkTapPatchableParameters extends AnnotationResource { + destinations?: NetworkTapPatchableParametersDestinationsItem[]; + pollingType?: PollingType; +} + +// @public +export interface NetworkTapPatchableParametersDestinationsItem extends DestinationProperties { +} + +// @public +export interface NetworkTapProperties extends AnnotationResource { + readonly administrativeState?: AdministrativeState; + readonly configurationState?: ConfigurationState; + destinations: NetworkTapPropertiesDestinationsItem[]; + networkPacketBrokerId: string; + pollingType?: PollingType; + readonly provisioningState?: ProvisioningState; + readonly sourceTapRuleId?: string; +} + +// @public +export interface NetworkTapPropertiesDestinationsItem extends DestinationProperties { +} + +// @public +export interface NetworkTapRule extends TrackedResource { + readonly administrativeState?: AdministrativeState; + annotation?: string; + readonly configurationState?: ConfigurationState; + configurationType?: ConfigurationType; + dynamicMatchConfigurations?: CommonDynamicMatchConfiguration[]; + readonly lastSyncedTime?: Date; + matchConfigurations?: NetworkTapRuleMatchConfiguration[]; + readonly networkTapId?: string; + pollingIntervalInSeconds?: PollingIntervalInSeconds; + readonly provisioningState?: ProvisioningState; + tapRulesUrl?: string; +} + +// @public +export interface NetworkTapRuleAction { + destinationId?: string; + isTimestampEnabled?: BooleanEnumProperty; + matchConfigurationName?: string; + truncate?: string; + type?: TapRuleActionType; +} + +// @public +export interface NetworkTapRuleMatchCondition extends CommonMatchConditions { + encapsulationType?: EncapsulationType; + portCondition?: PortCondition; +} + +// @public +export interface NetworkTapRuleMatchConfiguration { + actions?: NetworkTapRuleAction[]; + ipAddressType?: IPAddressType; + matchConditions?: NetworkTapRuleMatchCondition[]; + matchConfigurationName?: string; + sequenceNumber?: number; +} + +// @public +export interface NetworkTapRulePatch extends TagsUpdate { + annotation?: string; + configurationType?: ConfigurationType; + dynamicMatchConfigurations?: CommonDynamicMatchConfiguration[]; + matchConfigurations?: NetworkTapRuleMatchConfiguration[]; + tapRulesUrl?: string; +} + +// @public +export interface NetworkTapRulePatchableProperties { + configurationType?: ConfigurationType; + dynamicMatchConfigurations?: CommonDynamicMatchConfiguration[]; + matchConfigurations?: NetworkTapRuleMatchConfiguration[]; + tapRulesUrl?: string; +} + +// @public +export interface NetworkTapRulePatchProperties extends AnnotationResource, NetworkTapRulePatchableProperties { +} + +// @public +export interface NetworkTapRuleProperties extends AnnotationResource, NetworkTapRulePatchableProperties { + readonly administrativeState?: AdministrativeState; + readonly configurationState?: ConfigurationState; + readonly lastSyncedTime?: Date; + readonly networkTapId?: string; + pollingIntervalInSeconds?: PollingIntervalInSeconds; + readonly provisioningState?: ProvisioningState; +} + +// @public +export interface NetworkTapRules { + beginCreate(resourceGroupName: string, networkTapRuleName: string, body: NetworkTapRule, options?: NetworkTapRulesCreateOptionalParams): Promise, NetworkTapRulesCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, networkTapRuleName: string, body: NetworkTapRule, options?: NetworkTapRulesCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, networkTapRuleName: string, options?: NetworkTapRulesDeleteOptionalParams): Promise, NetworkTapRulesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, networkTapRuleName: string, options?: NetworkTapRulesDeleteOptionalParams): Promise; + beginResync(resourceGroupName: string, networkTapRuleName: string, options?: NetworkTapRulesResyncOptionalParams): Promise, NetworkTapRulesResyncResponse>>; + beginResyncAndWait(resourceGroupName: string, networkTapRuleName: string, options?: NetworkTapRulesResyncOptionalParams): Promise; + beginUpdate(resourceGroupName: string, networkTapRuleName: string, body: NetworkTapRulePatch, options?: NetworkTapRulesUpdateOptionalParams): Promise, NetworkTapRulesUpdateResponse>>; + beginUpdateAdministrativeState(resourceGroupName: string, networkTapRuleName: string, body: UpdateAdministrativeState, options?: NetworkTapRulesUpdateAdministrativeStateOptionalParams): Promise, NetworkTapRulesUpdateAdministrativeStateResponse>>; + beginUpdateAdministrativeStateAndWait(resourceGroupName: string, networkTapRuleName: string, body: UpdateAdministrativeState, options?: NetworkTapRulesUpdateAdministrativeStateOptionalParams): Promise; + beginUpdateAndWait(resourceGroupName: string, networkTapRuleName: string, body: NetworkTapRulePatch, options?: NetworkTapRulesUpdateOptionalParams): Promise; + beginValidateConfiguration(resourceGroupName: string, networkTapRuleName: string, options?: NetworkTapRulesValidateConfigurationOptionalParams): Promise, NetworkTapRulesValidateConfigurationResponse>>; + beginValidateConfigurationAndWait(resourceGroupName: string, networkTapRuleName: string, options?: NetworkTapRulesValidateConfigurationOptionalParams): Promise; + get(resourceGroupName: string, networkTapRuleName: string, options?: NetworkTapRulesGetOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: NetworkTapRulesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: NetworkTapRulesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface NetworkTapRulesCreateHeaders { + azureAsyncOperation?: string; +} + +// @public +export interface NetworkTapRulesCreateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkTapRulesCreateResponse = NetworkTapRule; + +// @public +export interface NetworkTapRulesDeleteHeaders { + location?: string; +} + +// @public +export interface NetworkTapRulesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkTapRulesDeleteResponse = NetworkTapRulesDeleteHeaders; + +// @public +export interface NetworkTapRulesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkTapRulesGetResponse = NetworkTapRule; + +// @public +export interface NetworkTapRulesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkTapRulesListByResourceGroupNextResponse = NetworkTapRulesListResult; + +// @public +export interface NetworkTapRulesListByResourceGroupOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkTapRulesListByResourceGroupResponse = NetworkTapRulesListResult; + +// @public +export interface NetworkTapRulesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkTapRulesListBySubscriptionNextResponse = NetworkTapRulesListResult; + +// @public +export interface NetworkTapRulesListBySubscriptionOptionalParams extends coreClient.OperationOptions { } // @public -export type NetworkInterfacesGetStatusResponse = NetworkInterfacesGetStatusHeaders & InterfaceStatus; +export type NetworkTapRulesListBySubscriptionResponse = NetworkTapRulesListResult; // @public -export interface NetworkInterfacesList { +export interface NetworkTapRulesListResult { nextLink?: string; - value?: NetworkInterface[]; + value?: NetworkTapRule[]; } // @public -export interface NetworkInterfacesListNextOptionalParams extends coreClient.OperationOptions { +export interface NetworkTapRulesResyncHeaders { + location?: string; } // @public -export type NetworkInterfacesListNextResponse = NetworkInterfacesList; - -// @public -export interface NetworkInterfacesListOptionalParams extends coreClient.OperationOptions { +export interface NetworkTapRulesResyncOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type NetworkInterfacesListResponse = NetworkInterfacesList; +export type NetworkTapRulesResyncResponse = CommonPostActionResponseForStateUpdate; // @public -export interface NetworkInterfacesUpdateAdministrativeStateHeaders { +export interface NetworkTapRulesUpdateAdministrativeStateHeaders { location?: string; } // @public -export interface NetworkInterfacesUpdateAdministrativeStateOptionalParams extends coreClient.OperationOptions { +export interface NetworkTapRulesUpdateAdministrativeStateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type NetworkInterfacesUpdateAdministrativeStateResponse = NetworkInterfacesUpdateAdministrativeStateHeaders; +export type NetworkTapRulesUpdateAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; // @public -export interface NetworkInterfacesUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +export interface NetworkTapRulesUpdateHeaders { + location?: string; } // @public -export type NetworkInterfacesUpdateResponse = NetworkInterface; +export interface NetworkTapRulesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export interface NetworkRack extends TrackedResource { - annotation?: string; - readonly networkDevices?: string[]; - networkFabricId: string; - networkRackSku: string; - readonly provisioningState?: ProvisioningState; -} +export type NetworkTapRulesUpdateResponse = NetworkTapRule; // @public -export interface NetworkRackPatch { - properties?: Record; - tags?: { - [propertyName: string]: string; - }; +export interface NetworkTapRulesValidateConfigurationHeaders { + location?: string; } // @public -export interface NetworkRackProperties extends AnnotationResource { - readonly networkDevices?: string[]; - networkFabricId: string; - networkRackSku: string; - readonly provisioningState?: ProvisioningState; +export interface NetworkTapRulesValidateConfigurationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type NetworkRackRoleName = string; +export type NetworkTapRulesValidateConfigurationResponse = ValidateConfigurationResponse; // @public -export interface NetworkRacks { - beginCreate(resourceGroupName: string, networkRackName: string, body: NetworkRack, options?: NetworkRacksCreateOptionalParams): Promise, NetworkRacksCreateResponse>>; - beginCreateAndWait(resourceGroupName: string, networkRackName: string, body: NetworkRack, options?: NetworkRacksCreateOptionalParams): Promise; - beginDelete(resourceGroupName: string, networkRackName: string, options?: NetworkRacksDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, networkRackName: string, options?: NetworkRacksDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, networkRackName: string, body: NetworkRackPatch, options?: NetworkRacksUpdateOptionalParams): Promise, NetworkRacksUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, networkRackName: string, body: NetworkRackPatch, options?: NetworkRacksUpdateOptionalParams): Promise; - get(resourceGroupName: string, networkRackName: string, options?: NetworkRacksGetOptionalParams): Promise; - listByResourceGroup(resourceGroupName: string, options?: NetworkRacksListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - listBySubscription(options?: NetworkRacksListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +export interface NetworkTaps { + beginCreate(resourceGroupName: string, networkTapName: string, body: NetworkTap, options?: NetworkTapsCreateOptionalParams): Promise, NetworkTapsCreateResponse>>; + beginCreateAndWait(resourceGroupName: string, networkTapName: string, body: NetworkTap, options?: NetworkTapsCreateOptionalParams): Promise; + beginDelete(resourceGroupName: string, networkTapName: string, options?: NetworkTapsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, networkTapName: string, options?: NetworkTapsDeleteOptionalParams): Promise; + beginResync(resourceGroupName: string, networkTapName: string, options?: NetworkTapsResyncOptionalParams): Promise, NetworkTapsResyncResponse>>; + beginResyncAndWait(resourceGroupName: string, networkTapName: string, options?: NetworkTapsResyncOptionalParams): Promise; + beginUpdate(resourceGroupName: string, networkTapName: string, body: NetworkTapPatch, options?: NetworkTapsUpdateOptionalParams): Promise, NetworkTapsUpdateResponse>>; + beginUpdateAdministrativeState(resourceGroupName: string, networkTapName: string, body: UpdateAdministrativeState, options?: NetworkTapsUpdateAdministrativeStateOptionalParams): Promise, NetworkTapsUpdateAdministrativeStateResponse>>; + beginUpdateAdministrativeStateAndWait(resourceGroupName: string, networkTapName: string, body: UpdateAdministrativeState, options?: NetworkTapsUpdateAdministrativeStateOptionalParams): Promise; + beginUpdateAndWait(resourceGroupName: string, networkTapName: string, body: NetworkTapPatch, options?: NetworkTapsUpdateOptionalParams): Promise; + get(resourceGroupName: string, networkTapName: string, options?: NetworkTapsGetOptionalParams): Promise; + listByResourceGroup(resourceGroupName: string, options?: NetworkTapsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; + listBySubscription(options?: NetworkTapsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; } // @public -export interface NetworkRacksCreateOptionalParams extends coreClient.OperationOptions { +export interface NetworkTapsCreateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type NetworkRacksCreateResponse = NetworkRack; +export type NetworkTapsCreateResponse = NetworkTap; // @public -export interface NetworkRacksDeleteOptionalParams extends coreClient.OperationOptions { +export interface NetworkTapsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export interface NetworkRacksGetOptionalParams extends coreClient.OperationOptions { +export interface NetworkTapsGetOptionalParams extends coreClient.OperationOptions { } // @public -export type NetworkRacksGetResponse = NetworkRack; +export type NetworkTapsGetResponse = NetworkTap; // @public -export interface NetworkRackSku extends ProxyResource { - maximumServerCount?: number; - maximumStorageCount?: number; - maximumUplinks?: number; - networkDevices?: NetworkDeviceRoleProperties[]; - readonly provisioningState?: ProvisioningState; - roleName: NetworkRackRoleName; +export interface NetworkTapsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface NetworkRackSkus { - get(networkRackSkuName: string, options?: NetworkRackSkusGetOptionalParams): Promise; - listBySubscription(options?: NetworkRackSkusListBySubscriptionOptionalParams): PagedAsyncIterableIterator; -} +export type NetworkTapsListByResourceGroupNextResponse = NetworkTapsListResult; // @public -export interface NetworkRackSkusGetOptionalParams extends coreClient.OperationOptions { +export interface NetworkTapsListByResourceGroupOptionalParams extends coreClient.OperationOptions { } // @public -export type NetworkRackSkusGetResponse = NetworkRackSku; +export type NetworkTapsListByResourceGroupResponse = NetworkTapsListResult; // @public -export interface NetworkRackSkusListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +export interface NetworkTapsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { } // @public -export type NetworkRackSkusListBySubscriptionNextResponse = NetworkRackSkusListResult; +export type NetworkTapsListBySubscriptionNextResponse = NetworkTapsListResult; // @public -export interface NetworkRackSkusListBySubscriptionOptionalParams extends coreClient.OperationOptions { +export interface NetworkTapsListBySubscriptionOptionalParams extends coreClient.OperationOptions { } // @public -export type NetworkRackSkusListBySubscriptionResponse = NetworkRackSkusListResult; +export type NetworkTapsListBySubscriptionResponse = NetworkTapsListResult; // @public -export interface NetworkRackSkusListResult { +export interface NetworkTapsListResult { nextLink?: string; - value?: NetworkRackSku[]; + value?: NetworkTap[]; } // @public -export interface NetworkRacksListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { +export interface NetworkTapsResyncHeaders { + location?: string; } // @public -export type NetworkRacksListByResourceGroupNextResponse = NetworkRacksListResult; - -// @public -export interface NetworkRacksListByResourceGroupOptionalParams extends coreClient.OperationOptions { +export interface NetworkTapsResyncOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type NetworkRacksListByResourceGroupResponse = NetworkRacksListResult; +export type NetworkTapsResyncResponse = CommonPostActionResponseForStateUpdate; // @public -export interface NetworkRacksListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +export interface NetworkTapsUpdateAdministrativeStateHeaders { + location?: string; } // @public -export type NetworkRacksListBySubscriptionNextResponse = NetworkRacksListResult; - -// @public -export interface NetworkRacksListBySubscriptionOptionalParams extends coreClient.OperationOptions { +export interface NetworkTapsUpdateAdministrativeStateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type NetworkRacksListBySubscriptionResponse = NetworkRacksListResult; - -// @public -export interface NetworkRacksListResult { - nextLink?: string; - value?: NetworkRack[]; -} +export type NetworkTapsUpdateAdministrativeStateResponse = CommonPostActionResponseForDeviceUpdate; // @public -export interface NetworkRacksUpdateHeaders { - azureAsyncOperation?: string; +export interface NetworkTapsUpdateHeaders { + location?: string; } // @public -export interface NetworkRacksUpdateOptionalParams extends coreClient.OperationOptions { +export interface NetworkTapsUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type NetworkRacksUpdateResponse = NetworkRack; +export type NetworkTapsUpdateResponse = NetworkTap; // @public export interface NetworkToNetworkInterconnect extends ProxyResource { - readonly administrativeState?: EnabledDisabledState; - isManagementType?: BooleanEnumProperty; + readonly administrativeState?: AdministrativeState; + readonly configurationState?: ConfigurationState; + egressAclId?: string; + exportRoutePolicy?: ExportRoutePolicyInformation; + importRoutePolicy?: ImportRoutePolicyInformation; + ingressAclId?: string; + isManagementType?: IsManagementType; layer2Configuration?: Layer2Configuration; - layer3Configuration?: Layer3Configuration; nniType?: NniType; + npbStaticRouteConfiguration?: NpbStaticRouteConfiguration; + optionBLayer3Configuration?: NetworkToNetworkInterconnectPropertiesOptionBLayer3Configuration; readonly provisioningState?: ProvisioningState; - useOptionB?: BooleanEnumProperty; + useOptionB: BooleanEnumProperty; +} + +// @public +export interface NetworkToNetworkInterconnectPatch extends ProxyResource { + egressAclId?: string; + exportRoutePolicy?: ExportRoutePolicyInformation; + importRoutePolicy?: ImportRoutePolicyInformation; + ingressAclId?: string; + layer2Configuration?: Layer2Configuration; + npbStaticRouteConfiguration?: NpbStaticRouteConfiguration; + optionBLayer3Configuration?: OptionBLayer3Configuration; +} + +// @public +export interface NetworkToNetworkInterconnectPropertiesOptionBLayer3Configuration extends OptionBLayer3Configuration { } // @public @@ -2873,8 +3908,14 @@ export interface NetworkToNetworkInterconnects { beginCreateAndWait(resourceGroupName: string, networkFabricName: string, networkToNetworkInterconnectName: string, body: NetworkToNetworkInterconnect, options?: NetworkToNetworkInterconnectsCreateOptionalParams): Promise; beginDelete(resourceGroupName: string, networkFabricName: string, networkToNetworkInterconnectName: string, options?: NetworkToNetworkInterconnectsDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, networkFabricName: string, networkToNetworkInterconnectName: string, options?: NetworkToNetworkInterconnectsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, networkFabricName: string, networkToNetworkInterconnectName: string, body: NetworkToNetworkInterconnectPatch, options?: NetworkToNetworkInterconnectsUpdateOptionalParams): Promise, NetworkToNetworkInterconnectsUpdateResponse>>; + beginUpdateAdministrativeState(resourceGroupName: string, networkFabricName: string, networkToNetworkInterconnectName: string, body: UpdateAdministrativeState, options?: NetworkToNetworkInterconnectsUpdateAdministrativeStateOptionalParams): Promise, NetworkToNetworkInterconnectsUpdateAdministrativeStateResponse>>; + beginUpdateAdministrativeStateAndWait(resourceGroupName: string, networkFabricName: string, networkToNetworkInterconnectName: string, body: UpdateAdministrativeState, options?: NetworkToNetworkInterconnectsUpdateAdministrativeStateOptionalParams): Promise; + beginUpdateAndWait(resourceGroupName: string, networkFabricName: string, networkToNetworkInterconnectName: string, body: NetworkToNetworkInterconnectPatch, options?: NetworkToNetworkInterconnectsUpdateOptionalParams): Promise; + beginUpdateNpbStaticRouteBfdAdministrativeState(resourceGroupName: string, networkFabricName: string, networkToNetworkInterconnectName: string, body: UpdateAdministrativeState, options?: NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateOptionalParams): Promise, NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateResponse>>; + beginUpdateNpbStaticRouteBfdAdministrativeStateAndWait(resourceGroupName: string, networkFabricName: string, networkToNetworkInterconnectName: string, body: UpdateAdministrativeState, options?: NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateOptionalParams): Promise; get(resourceGroupName: string, networkFabricName: string, networkToNetworkInterconnectName: string, options?: NetworkToNetworkInterconnectsGetOptionalParams): Promise; - list(resourceGroupName: string, networkFabricName: string, options?: NetworkToNetworkInterconnectsListOptionalParams): PagedAsyncIterableIterator; + listByNetworkFabric(resourceGroupName: string, networkFabricName: string, options?: NetworkToNetworkInterconnectsListByNetworkFabricOptionalParams): PagedAsyncIterableIterator; } // @public @@ -2906,22 +3947,74 @@ export interface NetworkToNetworkInterconnectsList { } // @public -export interface NetworkToNetworkInterconnectsListNextOptionalParams extends coreClient.OperationOptions { +export interface NetworkToNetworkInterconnectsListByNetworkFabricNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkToNetworkInterconnectsListByNetworkFabricNextResponse = NetworkToNetworkInterconnectsList; + +// @public +export interface NetworkToNetworkInterconnectsListByNetworkFabricOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type NetworkToNetworkInterconnectsListByNetworkFabricResponse = NetworkToNetworkInterconnectsList; + +// @public +export interface NetworkToNetworkInterconnectsUpdateAdministrativeStateHeaders { + location?: string; +} + +// @public +export interface NetworkToNetworkInterconnectsUpdateAdministrativeStateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type NetworkToNetworkInterconnectsUpdateAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; + +// @public +export interface NetworkToNetworkInterconnectsUpdateHeaders { + location?: string; +} + +// @public +export interface NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateHeaders { + location?: string; +} + +// @public +export interface NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type NetworkToNetworkInterconnectsListNextResponse = NetworkToNetworkInterconnectsList; +export type NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; // @public -export interface NetworkToNetworkInterconnectsListOptionalParams extends coreClient.OperationOptions { +export interface NetworkToNetworkInterconnectsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type NetworkToNetworkInterconnectsListResponse = NetworkToNetworkInterconnectsList; +export type NetworkToNetworkInterconnectsUpdateResponse = NetworkToNetworkInterconnect; + +// @public +export type NfcSku = string; // @public export type NniType = string; +// @public +export interface NpbStaticRouteConfiguration { + bfdConfiguration?: BfdConfiguration; + ipv4Routes?: StaticRouteProperties[]; + ipv6Routes?: StaticRouteProperties[]; +} + // @public export interface Operation { readonly actionType?: ActionType; @@ -2931,12 +4024,6 @@ export interface Operation { readonly origin?: Origin; } -// @public -export type OperationalState = string; - -// @public -export type OperationalStatus = string; - // @public export interface OperationDisplay { readonly description?: string; @@ -2971,23 +4058,25 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption export type OperationsListResponse = OperationListResult; // @public -export interface OptionAProperties extends Layer3IpPrefixProperties { - bfdConfiguration?: FabricBfdConfiguration; +export interface OptionAProperties { + bfdConfiguration?: BfdConfiguration; mtu?: number; peerASN?: number; vlanId?: number; } // @public -export interface OptionBProperties { - exportRouteTargets?: string[]; - importRouteTargets?: string[]; +export interface OptionBLayer3Configuration extends Layer3IpPrefixProperties { + readonly fabricASN?: number; + peerASN?: number; + vlanId?: number; } // @public -export interface OptionBPropertiesAutoGenerated { - exportRouteTargets: string[]; - importRouteTargets: string[]; +export interface OptionBProperties { + exportRouteTargets?: string[]; + importRouteTargets?: string[]; + routeTargets?: RouteTargetInformation; } // @public @@ -2997,10 +4086,30 @@ export type Origin = string; export type PeeringOption = string; // @public -export type PowerCycleState = string; +export type PollingIntervalInSeconds = number; + +// @public +export type PollingType = string; + +// @public +export interface PortCondition { + layer4Protocol: Layer4Protocol; + portGroupNames?: string[]; + ports?: string[]; + portType?: PortType; +} + +// @public +export interface PortGroupProperties { + name?: string; + ports?: string[]; +} + +// @public +export type PortType = string; // @public -export type PowerEnd = string; +export type PrefixType = string; // @public export type ProvisioningState = string; @@ -3010,7 +4119,12 @@ export interface ProxyResource extends Resource { } // @public -export type ReachabilityState = string; +export interface RebootProperties { + rebootType?: RebootType; +} + +// @public +export type RebootType = string; // @public export type RedistributeConnectedSubnets = string; @@ -3028,17 +4142,37 @@ export interface Resource { // @public export interface RoutePolicies { + beginCommitConfiguration(resourceGroupName: string, routePolicyName: string, options?: RoutePoliciesCommitConfigurationOptionalParams): Promise, RoutePoliciesCommitConfigurationResponse>>; + beginCommitConfigurationAndWait(resourceGroupName: string, routePolicyName: string, options?: RoutePoliciesCommitConfigurationOptionalParams): Promise; beginCreate(resourceGroupName: string, routePolicyName: string, body: RoutePolicy, options?: RoutePoliciesCreateOptionalParams): Promise, RoutePoliciesCreateResponse>>; beginCreateAndWait(resourceGroupName: string, routePolicyName: string, body: RoutePolicy, options?: RoutePoliciesCreateOptionalParams): Promise; beginDelete(resourceGroupName: string, routePolicyName: string, options?: RoutePoliciesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, routePolicyName: string, options?: RoutePoliciesDeleteOptionalParams): Promise; beginUpdate(resourceGroupName: string, routePolicyName: string, body: RoutePolicyPatch, options?: RoutePoliciesUpdateOptionalParams): Promise, RoutePoliciesUpdateResponse>>; + beginUpdateAdministrativeState(resourceGroupName: string, routePolicyName: string, body: UpdateAdministrativeState, options?: RoutePoliciesUpdateAdministrativeStateOptionalParams): Promise, RoutePoliciesUpdateAdministrativeStateResponse>>; + beginUpdateAdministrativeStateAndWait(resourceGroupName: string, routePolicyName: string, body: UpdateAdministrativeState, options?: RoutePoliciesUpdateAdministrativeStateOptionalParams): Promise; beginUpdateAndWait(resourceGroupName: string, routePolicyName: string, body: RoutePolicyPatch, options?: RoutePoliciesUpdateOptionalParams): Promise; + beginValidateConfiguration(resourceGroupName: string, routePolicyName: string, options?: RoutePoliciesValidateConfigurationOptionalParams): Promise, RoutePoliciesValidateConfigurationResponse>>; + beginValidateConfigurationAndWait(resourceGroupName: string, routePolicyName: string, options?: RoutePoliciesValidateConfigurationOptionalParams): Promise; get(resourceGroupName: string, routePolicyName: string, options?: RoutePoliciesGetOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: RoutePoliciesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: RoutePoliciesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface RoutePoliciesCommitConfigurationHeaders { + location?: string; +} + +// @public +export interface RoutePoliciesCommitConfigurationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type RoutePoliciesCommitConfigurationResponse = CommonPostActionResponseForStateUpdate; + // @public export interface RoutePoliciesCreateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -3095,9 +4229,23 @@ export interface RoutePoliciesListResult { value?: RoutePolicy[]; } +// @public +export interface RoutePoliciesUpdateAdministrativeStateHeaders { + location?: string; +} + +// @public +export interface RoutePoliciesUpdateAdministrativeStateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type RoutePoliciesUpdateAdministrativeStateResponse = CommonPostActionResponseForDeviceUpdate; + // @public export interface RoutePoliciesUpdateHeaders { - azureAsyncOperation?: string; + location?: string; } // @public @@ -3109,24 +4257,54 @@ export interface RoutePoliciesUpdateOptionalParams extends coreClient.OperationO // @public export type RoutePoliciesUpdateResponse = RoutePolicy; +// @public +export interface RoutePoliciesValidateConfigurationHeaders { + location?: string; +} + +// @public +export interface RoutePoliciesValidateConfigurationOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type RoutePoliciesValidateConfigurationResponse = ValidateConfigurationResponse; + // @public export interface RoutePolicy extends TrackedResource { + addressFamilyType?: AddressFamilyType; + readonly administrativeState?: AdministrativeState; annotation?: string; + readonly configurationState?: ConfigurationState; + networkFabricId: string; readonly provisioningState?: ProvisioningState; - statements: RoutePolicyStatementProperties[]; + statements?: RoutePolicyStatementProperties[]; } // @public -export interface RoutePolicyPatch { - tags?: { - [propertyName: string]: string; - }; +export type RoutePolicyActionType = string; + +// @public +export type RoutePolicyConditionType = string; + +// @public +export interface RoutePolicyPatch extends TagsUpdate { + statements?: RoutePolicyStatementProperties[]; } // @public -export interface RoutePolicyProperties extends AnnotationResource { +export interface RoutePolicyPatchableProperties { + statements?: RoutePolicyStatementProperties[]; +} + +// @public +export interface RoutePolicyProperties extends AnnotationResource, RoutePolicyPatchableProperties { + addressFamilyType?: AddressFamilyType; + readonly administrativeState?: AdministrativeState; + readonly configurationState?: ConfigurationState; + networkFabricId: string; readonly provisioningState?: ProvisioningState; - statements: RoutePolicyStatementProperties[]; } // @public @@ -3137,11 +4315,25 @@ export interface RoutePolicyStatementProperties extends AnnotationResource { } // @public -export type State = string; +export interface RouteTargetInformation { + exportIpv4RouteTargets?: string[]; + exportIpv6RouteTargets?: string[]; + importIpv4RouteTargets?: string[]; + importIpv6RouteTargets?: string[]; +} + +// @public +export interface RuleProperties { + action: Action; + addressList: string[]; +} + +// @public +export type SourceDestinationType = string; // @public export interface StatementActionProperties { - actionType: CommunityActionTypes; + actionType: RoutePolicyActionType; ipCommunityProperties?: ActionIpCommunityProperties; ipExtendedCommunityProperties?: ActionIpExtendedCommunityProperties; localPreference?: number; @@ -3150,6 +4342,7 @@ export interface StatementActionProperties { // @public export interface StatementConditionProperties extends IpCommunityIdList, IpExtendedCommunityIdList { ipPrefixId?: string; + type?: RoutePolicyConditionType; } // @public @@ -3173,18 +4366,12 @@ export interface SupportedConnectorProperties { // @public export interface SupportedVersionProperties { - isCurrent?: IsCurrentVersion; - isTest?: IsTestVersion; + isDefault?: BooleanEnumProperty; vendorFirmwareVersion?: string; vendorOsVersion?: string; version?: string; } -// @public -export interface SupportPackageProperties { - supportPackageURL: string; -} - // @public export interface SystemData { createdAt?: Date; @@ -3196,12 +4383,19 @@ export interface SystemData { } // @public -export interface TerminalServerConfiguration extends Layer3IpPrefixProperties, TerminalServerPatchableProperties { - readonly networkDeviceId?: string; +export interface TagsUpdate { + tags?: { + [propertyName: string]: string; + }; } // @public -export type TerminalServerConnectivityState = string; +export type TapRuleActionType = string; + +// @public +export interface TerminalServerConfiguration extends TerminalServerPatchableProperties, Layer3IpPrefixProperties { + readonly networkDeviceId?: string; +} // @public export interface TerminalServerPatchableProperties { @@ -3210,11 +4404,6 @@ export interface TerminalServerPatchableProperties { username?: string; } -// @public -export interface TerminalServerPatchParameters { - terminalServerConfiguration?: TerminalServerPatchableProperties; -} - // @public export interface TrackedResource extends Resource { location: string; @@ -3225,37 +4414,73 @@ export interface TrackedResource extends Resource { // @public export interface UpdateAdministrativeState extends EnableDisableOnResources { - state?: AdministrativeState; + state?: EnableDisableState; } // @public -export interface UpdatePowerCycleProperties { - powerEnd: PowerEnd; - state: State; +export interface UpdateDeviceAdministrativeState extends EnableDisableOnResources { + state?: DeviceAdministrativeState; } // @public -export interface UpdateVersionProperties { - skuVersion: string; +export interface UpdateVersion { + version?: string; +} + +// @public +export type ValidateAction = string; + +// @public +export interface ValidateConfigurationProperties { + validateAction?: ValidateAction; +} + +// @public +export interface ValidateConfigurationResponse extends ErrorResponse { + readonly configurationState?: ConfigurationState; + url?: string; +} + +// @public +export interface VlanGroupProperties { + name?: string; + vlans?: string[]; +} + +// @public +export interface VlanMatchCondition { + innerVlans?: string[]; + vlanGroupNames?: string[]; + vlans?: string[]; +} + +// @public +export interface VpnConfigurationPatchableProperties { + networkToNetworkInterconnectId?: string; + optionAProperties?: VpnConfigurationPatchablePropertiesOptionAProperties; + optionBProperties?: OptionBProperties; + peeringOption?: PeeringOption; +} + +// @public +export interface VpnConfigurationPatchablePropertiesOptionAProperties extends OptionAProperties, Layer3IpPrefixProperties { } // @public export interface VpnConfigurationProperties { - readonly administrativeState?: EnabledDisabledState; - readonly networkToNetworkInterconnectId?: string; - optionAProperties?: OptionAProperties; - optionBProperties?: OptionBPropertiesAutoGenerated; + readonly administrativeState?: AdministrativeState; + networkToNetworkInterconnectId?: string; + optionAProperties?: VpnConfigurationPropertiesOptionAProperties; + optionBProperties?: OptionBProperties; peeringOption: PeeringOption; } // @public -export type WellKnownCommunities = string; +export interface VpnConfigurationPropertiesOptionAProperties extends OptionAProperties, Layer3IpPrefixProperties { +} // @public -export interface WorkloadServices { - ipv4AddressSpaces?: string[]; - ipv6AddressSpaces?: string[]; -} +export type WellKnownCommunities = string; // (No @packageDocumentation comment for this package) diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsCreateSample.ts deleted file mode 100644 index 65a9b6d4b2d8..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsCreateSample.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AccessControlList, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements Access Control List PUT method. - * - * @summary Implements Access Control List PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Create_MinimumSet_Gen.json - */ -async function accessControlListsCreateMinimumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const accessControlListName = "aclOne"; - const body: AccessControlList = { - addressFamily: "ipv4", - conditions: [ - { - action: "allow", - destinationAddress: "1.1.1.1", - destinationPort: "21", - sequenceNumber: 3, - sourceAddress: "2.2.2.2", - sourcePort: "65000", - protocol: 6 - } - ], - location: "EastUs" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.accessControlLists.create( - resourceGroupName, - accessControlListName, - body - ); - console.log(result); -} - -async function main() { - accessControlListsCreateMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsDeleteSample.ts deleted file mode 100644 index 646181ff42a8..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements Access Control List DELETE method. - * - * @summary Implements Access Control List DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Delete_MinimumSet_Gen.json - */ -async function accessControlListsDeleteMinimumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "subscriptionId"; - const accessControlListName = "aclOne"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.accessControlLists.delete( - resourceGroupName, - accessControlListName - ); - console.log(result); -} - -async function main() { - accessControlListsDeleteMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsGetSample.ts deleted file mode 100644 index 7c57ae1520a6..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements Access Control List GET method. - * - * @summary Implements Access Control List GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Get_MinimumSet_Gen.json - */ -async function accessControlListsGetMinimumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const accessControlListName = "aclOne"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.accessControlLists.get( - resourceGroupName, - accessControlListName - ); - console.log(result); -} - -async function main() { - accessControlListsGetMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsListByResourceGroupSample.ts deleted file mode 100644 index b1413535da8b..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements AccessControlLists list by resource group GET method. - * - * @summary Implements AccessControlLists list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_ListByResourceGroup_MinimumSet_Gen.json - */ -async function accessControlListsListByResourceGroupMinimumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.accessControlLists.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accessControlListsListByResourceGroupMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsListBySubscriptionSample.ts deleted file mode 100644 index 641a376df61e..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements AccessControlLists list by subscription GET method. - * - * @summary Implements AccessControlLists list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_ListBySubscription_MinimumSet_Gen.json - */ -async function accessControlListsListBySubscriptionMinimumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.accessControlLists.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accessControlListsListBySubscriptionMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsUpdateSample.ts deleted file mode 100644 index a617cccb7564..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/accessControlListsUpdateSample.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AccessControlListPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to API to update certain properties of the Access Control List resource. - * - * @summary API to update certain properties of the Access Control List resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Update_MinimumSet_Gen.json - */ -async function accessControlListsUpdateMinimumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const accessControlListName = "aclOne"; - const body: AccessControlListPatch = { - addressFamily: "ipv4", - conditions: [ - { - action: "allow", - destinationAddress: "1.1.1.2", - destinationPort: "21", - sequenceNumber: 4, - sourceAddress: "2.2.2.3", - sourcePort: "65000", - protocol: 6 - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.accessControlLists.update( - resourceGroupName, - accessControlListName, - body - ); - console.log(result); -} - -async function main() { - accessControlListsUpdateMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksClearArpEntriesSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksClearArpEntriesSample.ts deleted file mode 100644 index 4df6a52ce248..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksClearArpEntriesSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EnableDisableOnResources, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to clearArpEntries for externalNetwork. - * - * @summary clearArpEntries for externalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_clearArpEntries_MaximumSet_Gen.json - */ -async function externalNetworksClearArpEntriesMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body: EnableDisableOnResources = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.beginClearArpEntriesAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksClearArpEntriesMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksClearIpv6NeighborsSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksClearIpv6NeighborsSample.ts deleted file mode 100644 index 1fbfa382fbbe..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksClearIpv6NeighborsSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EnableDisableOnResources, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to clearIpv6Neighbors for externalNetwork. - * - * @summary clearIpv6Neighbors for externalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_clearIpv6Neighbors_MaximumSet_Gen.json - */ -async function externalNetworksClearIpv6NeighborsMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body: EnableDisableOnResources = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.beginClearIpv6NeighborsAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksClearIpv6NeighborsMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksCreateSample.ts deleted file mode 100644 index 9439f95097c2..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksCreateSample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ExternalNetwork, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates ExternalNetwork PUT method. - * - * @summary Creates ExternalNetwork PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Create_MaximumSet_Gen.json - */ -async function externalNetworksCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body: ExternalNetwork = { - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName", - importRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName", - optionAProperties: { - bfdConfiguration: {}, - mtu: 1500, - peerASN: 65047, - primaryIpv4Prefix: "10.1.1.0/30", - primaryIpv6Prefix: "3FFE:FFFF:0:CD30::a0/126", - secondaryIpv4Prefix: "10.1.1.4/30", - secondaryIpv6Prefix: "3FFE:FFFF:0:CD30::a4/126", - vlanId: 1001 - }, - optionBProperties: { - exportRouteTargets: ["65046:10039"], - importRouteTargets: ["65046:10039"] - }, - peeringOption: "OptionA" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.beginCreateAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksDeleteSample.ts deleted file mode 100644 index 176fd24c77f9..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksDeleteSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements ExternalNetworks DELETE method. - * - * @summary Implements ExternalNetworks DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Delete_MaximumSet_Gen.json - */ -async function externalNetworksDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.beginDeleteAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName - ); - console.log(result); -} - -async function main() { - externalNetworksDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksGetSample.ts deleted file mode 100644 index baf2ed492117..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksGetSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements ExternalNetworks GET method. - * - * @summary Implements ExternalNetworks GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Get_MaximumSet_Gen.json - */ -async function externalNetworksGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.get( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName - ); - console.log(result); -} - -async function main() { - externalNetworksGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksListSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksListSample.ts deleted file mode 100644 index 2d2bee2813d2..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksListSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements External Networks list by resource group GET method. - * - * @summary Implements External Networks list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_List_MaximumSet_Gen.json - */ -async function externalNetworksListMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.externalNetworks.list( - resourceGroupName, - l3IsolationDomainName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - externalNetworksListMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksUpdateAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksUpdateAdministrativeStateSample.ts deleted file mode 100644 index eaca6d1da125..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksUpdateAdministrativeStateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Executes update operation to enable or disable administrative State for externalNetwork. - * - * @summary Executes update operation to enable or disable administrative State for externalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_updateAdministrativeState_MaximumSet_Gen.json - */ -async function externalNetworksUpdateAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.beginUpdateAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksUpdateAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksUpdateBfdForBgpAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksUpdateBfdForBgpAdministrativeStateSample.ts deleted file mode 100644 index dc7332221b70..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksUpdateBfdForBgpAdministrativeStateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update BfdForBgp for externalNetwork. - * - * @summary Update BfdForBgp for externalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_updateBfdForBgpAdministrativeState_MaximumSet_Gen.json - */ -async function externalNetworksUpdateBfdForBgpAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.beginUpdateBfdForBgpAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksUpdateBfdForBgpAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksUpdateBgpAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksUpdateBgpAdministrativeStateSample.ts deleted file mode 100644 index 2ec2c5b55744..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksUpdateBgpAdministrativeStateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update BGP for externalNetwork. - * - * @summary Update BGP for externalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_updateBgpAdministrativeState_MaximumSet_Gen.json - */ -async function externalNetworksUpdateBgpAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.beginUpdateBgpAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksUpdateBgpAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksUpdateSample.ts deleted file mode 100644 index 2d92f020311d..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/externalNetworksUpdateSample.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ExternalNetworkPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to API to update certain properties of the ExternalNetworks resource. - * - * @summary API to update certain properties of the ExternalNetworks resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Update_MaximumSet_Gen.json - */ -async function externalNetworksUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body: ExternalNetworkPatch = { - annotation: "Lab 1", - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName", - importRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName", - optionAProperties: { - bfdConfiguration: {}, - mtu: 1500, - peerASN: 65047, - primaryIpv4Prefix: "10.1.1.0/30", - primaryIpv6Prefix: "3FFE:FFFF:0:CD30::a0/126", - secondaryIpv4Prefix: "10.1.1.4/30", - secondaryIpv6Prefix: "3FFE:FFFF:0:CD30::a4/126", - vlanId: 1001 - }, - optionBProperties: { - exportRouteTargets: ["65046:10039"], - importRouteTargets: ["65046:10039"] - }, - peeringOption: "OptionA" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.beginUpdateAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksClearArpEntriesSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksClearArpEntriesSample.ts deleted file mode 100644 index 9929f0865bd3..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksClearArpEntriesSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EnableDisableOnResources, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to clearArpEntries for internalNetwork. - * - * @summary clearArpEntries for internalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_clearArpEntries_MaximumSet_Gen.json - */ -async function internalNetworksClearArpEntriesMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body: EnableDisableOnResources = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginClearArpEntriesAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksClearArpEntriesMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksClearIpv6NeighborsSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksClearIpv6NeighborsSample.ts deleted file mode 100644 index 9f83c8e0338d..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksClearIpv6NeighborsSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EnableDisableOnResources, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to clearIpv6Neighbors for internalNetwork. - * - * @summary clearIpv6Neighbors for internalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_clearIpv6Neighbors_MaximumSet_Gen.json - */ -async function internalNetworksClearIpv6NeighborsMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body: EnableDisableOnResources = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginClearIpv6NeighborsAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksClearIpv6NeighborsMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksCreateSample.ts deleted file mode 100644 index 76b1389ff603..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksCreateSample.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - InternalNetwork, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates InternalNetwork PUT method. - * - * @summary Creates InternalNetwork PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Create_MaximumSet_Gen.json - */ -async function internalNetworksCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body: InternalNetwork = { - bgpConfiguration: { - allowAS: 1, - allowASOverride: "Enable", - bfdConfiguration: {}, - defaultRouteOriginate: "True", - ipv4ListenRangePrefixes: ["10.1.0.0/25"], - ipv4NeighborAddress: [{ address: "10.1.0.0" }], - ipv6ListenRangePrefixes: ["2fff::/66"], - ipv6NeighborAddress: [{ address: "2fff::" }], - peerASN: 6 - }, - connectedIPv4Subnets: [{ prefix: "10.0.0.0/24" }], - connectedIPv6Subnets: [{ prefix: "3FFE:FFFF:0:CD30::a0/29" }], - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName2", - importRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName1", - mtu: 1500, - staticRouteConfiguration: { - bfdConfiguration: {}, - ipv4Routes: [{ nextHop: ["10.0.0.1"], prefix: "10.1.0.0/24" }], - ipv6Routes: [{ nextHop: ["2ffe::1"], prefix: "2fff::/64" }] - }, - vlanId: 501 - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginCreateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksDeleteSample.ts deleted file mode 100644 index d4dbfb1b2438..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksDeleteSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements InternalNetworks DELETE method. - * - * @summary Implements InternalNetworks DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Delete_MaximumSet_Gen.json - */ -async function internalNetworksDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginDeleteAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName - ); - console.log(result); -} - -async function main() { - internalNetworksDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksGetSample.ts deleted file mode 100644 index 88ade242d130..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksGetSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a InternalNetworks. - * - * @summary Gets a InternalNetworks. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Get_MaximumSet_Gen.json - */ -async function internalNetworksGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.get( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName - ); - console.log(result); -} - -async function main() { - internalNetworksGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksListSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksListSample.ts deleted file mode 100644 index 5519245a5e5d..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksListSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Displays InternalNetworks list by resource group GET method. - * - * @summary Displays InternalNetworks list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_List_MaximumSet_Gen.json - */ -async function internalNetworksListMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.internalNetworks.list( - resourceGroupName, - l3IsolationDomainName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - internalNetworksListMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksUpdateAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksUpdateAdministrativeStateSample.ts deleted file mode 100644 index 28e3711a9ddc..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksUpdateAdministrativeStateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update Administrative state of InternalNetworks on resources referred by their resource ids. - * - * @summary Update Administrative state of InternalNetworks on resources referred by their resource ids. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateAdministrativeState_MaximumSet_Gen.json - */ -async function internalNetworksUpdateAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/example-l3domain/internalNetworks/example-internalnetwork" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginUpdateAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksUpdateAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksUpdateBfdForBgpAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksUpdateBfdForBgpAdministrativeStateSample.ts deleted file mode 100644 index c47a803d8f6d..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksUpdateBfdForBgpAdministrativeStateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update BfdForBgp for internalNetwork. - * - * @summary Update BfdForBgp for internalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateBfdForBgpAdministrativeState_MaximumSet_Gen.json - */ -async function internalNetworksUpdateBfdForBgpAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/example-l3domain/internalNetworks/example-internalnetwork" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginUpdateBfdForBgpAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksUpdateBfdForBgpAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksUpdateBfdForStaticRouteAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksUpdateBfdForStaticRouteAdministrativeStateSample.ts deleted file mode 100644 index c06d00870fdb..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksUpdateBfdForStaticRouteAdministrativeStateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update BfdForStaticRoutes for internalNetwork. - * - * @summary Update BfdForStaticRoutes for internalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateBfdForStaticRouteAdministrativeState_MaximumSet_Gen.json - */ -async function internalNetworksUpdateBfdForStaticRouteAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/example-l3domain/internalNetworks/example-internalnetwork" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginUpdateBfdForStaticRouteAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksUpdateBfdForStaticRouteAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksUpdateBgpAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksUpdateBgpAdministrativeStateSample.ts deleted file mode 100644 index 5b9078792d83..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksUpdateBgpAdministrativeStateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update BGP state for internalNetwork. Allowed only on edge devices. - * - * @summary Update BGP state for internalNetwork. Allowed only on edge devices. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateBgpAdministrativeState_MaximumSet_Gen.json - */ -async function internalNetworksUpdateBgpAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/example-l3domain/internalNetworks/example-internalnetwork" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginUpdateBgpAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksUpdateBgpAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksUpdateSample.ts deleted file mode 100644 index ece280392ade..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/internalNetworksUpdateSample.ts +++ /dev/null @@ -1,76 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - InternalNetworkPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates a InternalNetworks. - * - * @summary Updates a InternalNetworks. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Update_MaximumSet_Gen.json - */ -async function internalNetworksUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body: InternalNetworkPatch = { - bgpConfiguration: { - allowAS: 1, - allowASOverride: "Enable", - bfdConfiguration: {}, - defaultRouteOriginate: "True", - ipv4ListenRangePrefixes: ["10.1.0.0/25"], - ipv4NeighborAddress: [{ address: "10.1.0.0" }], - ipv6ListenRangePrefixes: ["2fff::/66"], - ipv6NeighborAddress: [{ address: "2fff::" }], - peerASN: 6 - }, - connectedIPv4Subnets: [{ prefix: "10.0.0.0/24" }], - connectedIPv6Subnets: [{ prefix: "3FFE:FFFF:0:CD30::a0/29" }], - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName2", - importRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName1", - mtu: 1500, - staticRouteConfiguration: { - bfdConfiguration: {}, - ipv4Routes: [{ nextHop: ["10.0.0.1"], prefix: "10.1.0.0/24" }], - ipv6Routes: [{ nextHop: ["2ffe::1"], prefix: "2fff::/64" }] - } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginUpdateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesCreateSample.ts deleted file mode 100644 index 64029c2c1b94..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesCreateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - IpCommunity, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements an IP Community PUT method. - * - * @summary Implements an IP Community PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Create_MaximumSet_Gen.json - */ -async function ipCommunitiesCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgIpCommunityLists"; - const ipCommunityName = "example-ipCommunity"; - const body: IpCommunity = { - action: "Permit", - annotation: "annotationValue", - communityMembers: ["1234:5678"], - location: "EastUS", - tags: { key2814: "" }, - wellKnownCommunities: ["Internet", "LocalAS", "NoExport", "GShut"] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipCommunities.beginCreateAndWait( - resourceGroupName, - ipCommunityName, - body - ); - console.log(result); -} - -async function main() { - ipCommunitiesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesDeleteSample.ts deleted file mode 100644 index bf59c2c9e195..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IP Community DELETE method. - * - * @summary Implements IP Community DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Delete_MaximumSet_Gen.json - */ -async function ipCommunitiesDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const ipCommunityName = "IpCommunityList1"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipCommunities.beginDeleteAndWait( - resourceGroupName, - ipCommunityName - ); - console.log(result); -} - -async function main() { - ipCommunitiesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesGetSample.ts deleted file mode 100644 index 945ba2072845..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements an IP Community GET method. - * - * @summary Implements an IP Community GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Get_MaximumSet_Gen.json - */ -async function ipCommunitiesGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const ipCommunityName = "example-ipCommunity"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipCommunities.get( - resourceGroupName, - ipCommunityName - ); - console.log(result); -} - -async function main() { - ipCommunitiesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesListByResourceGroupSample.ts deleted file mode 100644 index 5c0ede5a35f4..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IpCommunities list by resource group GET method. - * - * @summary Implements IpCommunities list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_ListByResourceGroup_MaximumSet_Gen.json - */ -async function ipCommunitiesListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.ipCommunities.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipCommunitiesListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesListBySubscriptionSample.ts deleted file mode 100644 index 464725791299..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IpCommunities list by subscription GET method. - * - * @summary Implements IpCommunities list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_ListBySubscription_MaximumSet_Gen.json - */ -async function ipCommunitiesListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.ipCommunities.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipCommunitiesListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesUpdateSample.ts deleted file mode 100644 index 0b12b6633030..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipCommunitiesUpdateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - IpCommunityPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to API to update certain properties of the IP Community resource. - * - * @summary API to update certain properties of the IP Community resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Update_MaximumSet_Gen.json - */ -async function ipCommunitiesUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const ipCommunityName = "example-ipCommunity"; - const body: IpCommunityPatch = { tags: { key2814: "" } }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipCommunities.beginUpdateAndWait( - resourceGroupName, - ipCommunityName, - body - ); - console.log(result); -} - -async function main() { - ipCommunitiesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesCreateSample.ts deleted file mode 100644 index ba64f36256ca..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesCreateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - IpExtendedCommunity, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IP Extended Community PUT method. - * - * @summary Implements IP Extended Community PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Create_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || - "rgIpExtendedCommunityLists"; - const ipExtendedCommunityName = "example_ipExtendedCommunity"; - const body: IpExtendedCommunity = { - action: "Permit", - annotation: "annotationValue", - location: "EastUs", - routeTargets: ["1234:5678"], - tags: { key5054: "key" } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipExtendedCommunities.beginCreateAndWait( - resourceGroupName, - ipExtendedCommunityName, - body - ); - console.log(result); -} - -async function main() { - ipExtendedCommunitiesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesDeleteSample.ts deleted file mode 100644 index 43e8777f55f7..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesDeleteSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IP Extended Community DELETE method. - * - * @summary Implements IP Extended Community DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Delete_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || - "rgIpExtendedCommunityLists"; - const ipExtendedCommunityName = "example_ipExtendedCommunity"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipExtendedCommunities.beginDeleteAndWait( - resourceGroupName, - ipExtendedCommunityName - ); - console.log(result); -} - -async function main() { - ipExtendedCommunitiesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesGetSample.ts deleted file mode 100644 index c269912fe944..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesGetSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IP Extended Community GET method. - * - * @summary Implements IP Extended Community GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Get_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || - "rgIpExtendedCommunityLists"; - const ipExtendedCommunityName = "example_ipExtendedCommunity"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipExtendedCommunities.get( - resourceGroupName, - ipExtendedCommunityName - ); - console.log(result); -} - -async function main() { - ipExtendedCommunitiesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesListByResourceGroupSample.ts deleted file mode 100644 index 8eb8171f862a..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesListByResourceGroupSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IpExtendedCommunities list by resource group GET method. - * - * @summary Implements IpExtendedCommunities list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_ListByResourceGroup_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || - "rgIpExtendedCommunityLists"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.ipExtendedCommunities.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipExtendedCommunitiesListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesListBySubscriptionSample.ts deleted file mode 100644 index 24f117f8be7a..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IpExtendedCommunities list by subscription GET method. - * - * @summary Implements IpExtendedCommunities list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_ListBySubscription_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.ipExtendedCommunities.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipExtendedCommunitiesListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesUpdateSample.ts deleted file mode 100644 index b58461159e42..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipExtendedCommunitiesUpdateSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - IpExtendedCommunityPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to API to update certain properties of the IP Extended Community resource. - * - * @summary API to update certain properties of the IP Extended Community resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Update_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || - "rgIpExtendedCommunityLists"; - const ipExtendedCommunityName = "example_ipExtendedCommunity"; - const body: IpExtendedCommunityPatch = { tags: { key5054: "key1" } }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipExtendedCommunities.beginUpdateAndWait( - resourceGroupName, - ipExtendedCommunityName, - body - ); - console.log(result); -} - -async function main() { - ipExtendedCommunitiesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesCreateSample.ts deleted file mode 100644 index 6c35eb516a57..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesCreateSample.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - IpPrefix, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IP Prefix PUT method. - * - * @summary Implements IP Prefix PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Create_MaximumSet_Gen.json - */ -async function ipPrefixesCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourcegroupname"; - const ipPrefixName = "example-ipPrefix"; - const body: IpPrefix = { - annotation: "annotationValue", - ipPrefixRules: [ - { - action: "Permit", - condition: "EqualTo", - networkPrefix: "1.1.1.0/24", - sequenceNumber: 12, - subnetMaskLength: 28 - } - ], - location: "EastUS", - tags: { key6404: "" } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipPrefixes.beginCreateAndWait( - resourceGroupName, - ipPrefixName, - body - ); - console.log(result); -} - -async function main() { - ipPrefixesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesDeleteSample.ts deleted file mode 100644 index b920867bcc34..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IP Prefix DELETE method. - * - * @summary Implements IP Prefix DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Delete_MaximumSet_Gen.json - */ -async function ipPrefixesDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "xxxxxx"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgIpPrefixLists"; - const ipPrefixName = "example-ipPrefix"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipPrefixes.beginDeleteAndWait( - resourceGroupName, - ipPrefixName - ); - console.log(result); -} - -async function main() { - ipPrefixesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesGetSample.ts deleted file mode 100644 index 647c9b3bb520..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesGetSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IP Prefix GET method. - * - * @summary Implements IP Prefix GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Get_MaximumSet_Gen.json - */ -async function ipPrefixesGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "xxxxxx"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourcegroupname"; - const ipPrefixName = "example-ipPrefix"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipPrefixes.get(resourceGroupName, ipPrefixName); - console.log(result); -} - -async function main() { - ipPrefixesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesListByResourceGroupSample.ts deleted file mode 100644 index 92de13c651ff..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IpPrefixes list by resource group GET method. - * - * @summary Implements IpPrefixes list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_ListByResourceGroup_MaximumSet_Gen.json - */ -async function ipPrefixesListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourcegroupname"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.ipPrefixes.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipPrefixesListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesListBySubscriptionSample.ts deleted file mode 100644 index 614836496a17..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IpPrefixes list by subscription GET method. - * - * @summary Implements IpPrefixes list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_ListBySubscription_MaximumSet_Gen.json - */ -async function ipPrefixesListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.ipPrefixes.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipPrefixesListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesUpdateSample.ts deleted file mode 100644 index 4e34173c6562..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/ipPrefixesUpdateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - IpPrefixPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to API to update certain properties of the IP Prefix resource. - * - * @summary API to update certain properties of the IP Prefix resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Update_MaximumSet_Gen.json - */ -async function ipPrefixesUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourcegroupname"; - const ipPrefixName = "example-ipPrefix"; - const body: IpPrefixPatch = { tags: { key3127: "key" } }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipPrefixes.beginUpdateAndWait( - resourceGroupName, - ipPrefixName, - body - ); - console.log(result); -} - -async function main() { - ipPrefixesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsClearArpTableSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsClearArpTableSample.ts deleted file mode 100644 index 7dc3813e82e0..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsClearArpTableSample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EnableDisableOnResources, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Clears ARP tables for this Isolation Domain. - * - * @summary Clears ARP tables for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_clearArpTable_MaximumSet_Gen.json - */ -async function l2IsolationDomainsClearArpTableMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "example-l2domain"; - const body: EnableDisableOnResources = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/example-l2domain" - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l2IsolationDomains.beginClearArpTableAndWait( - resourceGroupName, - l2IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsClearArpTableMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsClearNeighborTableSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsClearNeighborTableSample.ts deleted file mode 100644 index 1f3ea54ecccd..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsClearNeighborTableSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EnableDisableOnResources, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Clears IPv6 neighbors for this Isolation Domain. - * - * @summary Clears IPv6 neighbors for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_clearNeighborTable_MaximumSet_Gen.json - */ -async function l2IsolationDomainsClearNeighborTableMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "qc"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || - "rgL2IsolationDomains"; - const l2IsolationDomainName = "oz"; - const body: EnableDisableOnResources = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/example-l2domain" - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l2IsolationDomains.beginClearNeighborTableAndWait( - resourceGroupName, - l2IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsClearNeighborTableMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsCreateSample.ts deleted file mode 100644 index ffa7fe370a1f..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsCreateSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - L2IsolationDomain, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied on the devices only after the isolation domain is enabled. - * - * @summary Creates layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied on the devices only after the isolation domain is enabled. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Create_MaximumSet_Gen.json - */ -async function l2IsolationDomainsCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "example-l2domain"; - const body: L2IsolationDomain = { - location: "eastus", - mtu: 1500, - networkFabricId: - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/networkFabrics/FabricName", - vlanId: 501 - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l2IsolationDomains.beginCreateAndWait( - resourceGroupName, - l2IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsDeleteSample.ts deleted file mode 100644 index 4d5ee372b0f7..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes layer 2 connectivity between compute nodes by managed by named L2 Isolation name. - * - * @summary Deletes layer 2 connectivity between compute nodes by managed by named L2 Isolation name. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Delete_MaximumSet_Gen.json - */ -async function l2IsolationDomainsDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "example-l2domain"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l2IsolationDomains.beginDeleteAndWait( - resourceGroupName, - l2IsolationDomainName - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsGetArpEntriesSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsGetArpEntriesSample.ts deleted file mode 100644 index fecbdb499804..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsGetArpEntriesSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Clears IPv6 neighbors for this Isolation Domain. - * - * @summary Clears IPv6 neighbors for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_getArpEntries_MaximumSet_Gen.json - */ -async function l2IsolationDomainsGetArpEntriesMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "l2IsolationDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l2IsolationDomains.beginGetArpEntriesAndWait( - resourceGroupName, - l2IsolationDomainName - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsGetArpEntriesMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsGetSample.ts deleted file mode 100644 index 6a8a44ad6055..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements L2 Isolation Domain GET method. - * - * @summary Implements L2 Isolation Domain GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Get_MaximumSet_Gen.json - */ -async function l2IsolationDomainsGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "l2IsolationDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l2IsolationDomains.get( - resourceGroupName, - l2IsolationDomainName - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsListByResourceGroupSample.ts deleted file mode 100644 index 108240b275b1..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Displays L2IsolationDomains list by resource group GET method. - * - * @summary Displays L2IsolationDomains list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_ListByResourceGroup_MaximumSet_Gen.json - */ -async function l2IsolationDomainsListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.l2IsolationDomains.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - l2IsolationDomainsListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsListBySubscriptionSample.ts deleted file mode 100644 index 97e959bfcc47..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Displays L2IsolationDomains list by subscription GET method. - * - * @summary Displays L2IsolationDomains list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_ListBySubscription_MaximumSet_Gen.json - */ -async function l2IsolationDomainsListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.l2IsolationDomains.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - l2IsolationDomainsListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsUpdateAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsUpdateAdministrativeStateSample.ts deleted file mode 100644 index 00a246f2c8e6..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsUpdateAdministrativeStateSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Enables isolation domain across the fabric or on specified racks. - * - * @summary Enables isolation domain across the fabric or on specified racks. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_updateAdministrativeState_MaximumSet_Gen.json - */ -async function l2IsolationDomainsUpdateAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "l2IsolationDomainName"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/example-l2domain" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l2IsolationDomains.beginUpdateAdministrativeStateAndWait( - resourceGroupName, - l2IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsUpdateAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsUpdateSample.ts deleted file mode 100644 index 5adc88236519..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l2IsolationDomainsUpdateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - L2IsolationDomainPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to API to update certain properties of the L2 Isolation Domain resource. - * - * @summary API to update certain properties of the L2 Isolation Domain resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Update_MaximumSet_Gen.json - */ -async function l2IsolationDomainsUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "l2IsolationDomainName"; - const body: L2IsolationDomainPatch = { mtu: 9000 }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l2IsolationDomains.beginUpdateAndWait( - resourceGroupName, - l2IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsClearArpTableSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsClearArpTableSample.ts deleted file mode 100644 index 23f87ed4bd05..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsClearArpTableSample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EnableDisableOnResources, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Clears ARP tables for this Isolation Domain. - * - * @summary Clears ARP tables for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_clearArpTable_MaximumSet_Gen.json - */ -async function l3IsolationDomainsClearArpTableMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "l3IsolationDomainName"; - const body: EnableDisableOnResources = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l3IsolationDomains.beginClearArpTableAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsClearArpTableMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsClearNeighborTableSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsClearNeighborTableSample.ts deleted file mode 100644 index f39c5f712094..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsClearNeighborTableSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EnableDisableOnResources, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Clears IPv6 neighbor tables for this Isolation Domain. - * - * @summary Clears IPv6 neighbor tables for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_clearNeighborTable_MaximumSet_Gen.json - */ -async function l3IsolationDomainsClearNeighborTableMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const body: EnableDisableOnResources = { resourceIds: ["wnaxqikneofcni"] }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l3IsolationDomains.beginClearNeighborTableAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsClearNeighborTableMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsCreateSample.ts deleted file mode 100644 index 84d68e5803f3..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsCreateSample.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - L3IsolationDomain, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is enabled. - * - * @summary Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is enabled. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Create_MaximumSet_Gen.json - */ -async function l3IsolationDomainsCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const body: L3IsolationDomain = { - description: "creating L3 isolation domain", - aggregateRouteConfiguration: { - ipv4Routes: [{ prefix: "10.0.0.0/24" }], - ipv6Routes: [{ prefix: "10.0.0.1" }] - }, - connectedSubnetRoutePolicy: { - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName2" - }, - location: "eastus", - networkFabricId: - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/networkFabrics/FabricName", - redistributeConnectedSubnets: "True", - redistributeStaticRoutes: "False" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l3IsolationDomains.beginCreateAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsDeleteSample.ts deleted file mode 100644 index 26f90f79b6a5..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes layer 3 connectivity between compute nodes by managed by named L3 Isolation name. - * - * @summary Deletes layer 3 connectivity between compute nodes by managed by named L3 Isolation name. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Delete_MaximumSet_Gen.json - */ -async function l3IsolationDomainsDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l3IsolationDomains.beginDeleteAndWait( - resourceGroupName, - l3IsolationDomainName - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsGetSample.ts deleted file mode 100644 index ce8ec391cbf0..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieves details of this L3 Isolation Domain. - * - * @summary Retrieves details of this L3 Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Get_MaximumSet_Gen.json - */ -async function l3IsolationDomainsGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l3IsolationDomains.get( - resourceGroupName, - l3IsolationDomainName - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsListByResourceGroupSample.ts deleted file mode 100644 index 1e0bdd0e1e86..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Displays L3IsolationDomains list by resource group GET method. - * - * @summary Displays L3IsolationDomains list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_ListByResourceGroup_MaximumSet_Gen.json - */ -async function l3IsolationDomainsListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.l3IsolationDomains.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - l3IsolationDomainsListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsListBySubscriptionSample.ts deleted file mode 100644 index 7304003d3201..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Displays L3IsolationDomains list by subscription GET method. - * - * @summary Displays L3IsolationDomains list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_ListBySubscription_MaximumSet_Gen.json - */ -async function l3IsolationDomainsListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.l3IsolationDomains.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - l3IsolationDomainsListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsUpdateAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsUpdateAdministrativeStateSample.ts deleted file mode 100644 index 6e39b07b73f4..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsUpdateAdministrativeStateSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Enables racks for this Isolation Domain. - * - * @summary Enables racks for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_updateAdministrativeState_MaximumSet_Gen.json - */ -async function l3IsolationDomainsUpdateAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l3IsolationDomains.beginUpdateAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsUpdateAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsUpdateOptionBAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsUpdateOptionBAdministrativeStateSample.ts deleted file mode 100644 index 3801cebe9844..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsUpdateOptionBAdministrativeStateSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update administrative state of option B on CE devices - * - * @summary Update administrative state of option B on CE devices - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_updateOptionBAdministrativeState_MaximumSet_Gen.json - */ -async function l3IsolationDomainsUpdateOptionBAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l3IsolationDomains.beginUpdateOptionBAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsUpdateOptionBAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsUpdateSample.ts deleted file mode 100644 index a682ef5a9759..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/l3IsolationDomainsUpdateSample.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - L3IsolationDomainPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to API to update certain properties of the L3 Isolation Domain resource. - * - * @summary API to update certain properties of the L3 Isolation Domain resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Update_MaximumSet_Gen.json - */ -async function l3IsolationDomainsUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const body: L3IsolationDomainPatch = { - description: "creating L3 isolation domain", - aggregateRouteConfiguration: { - ipv4Routes: [{ prefix: "10.0.0.0/24" }], - ipv6Routes: [{ prefix: "3FFE:FFFF:0:CD30::a0/29" }] - }, - connectedSubnetRoutePolicy: { - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName" - }, - redistributeConnectedSubnets: "True", - redistributeStaticRoutes: "False" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l3IsolationDomains.beginUpdateAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDeviceSkusGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDeviceSkusGetSample.ts deleted file mode 100644 index 25b10b369fa9..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDeviceSkusGetSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get Network Device SKU details. - * - * @summary Get Network Device SKU details. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDeviceSkus_Get_MaximumSet_Gen.json - */ -async function networkDeviceSkusGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const networkDeviceSkuName = "DefaultSku"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDeviceSkus.get(networkDeviceSkuName); - console.log(result); -} - -async function main() { - networkDeviceSkusGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDeviceSkusListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDeviceSkusListBySubscriptionSample.ts deleted file mode 100644 index 140e43e72de8..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDeviceSkusListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List Network Device SKUs for the given subscription. - * - * @summary List Network Device SKUs for the given subscription. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDeviceSkus_ListBySubscription_MaximumSet_Gen.json - */ -async function networkDeviceSkusListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkDeviceSkus.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkDeviceSkusListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesCreateSample.ts deleted file mode 100644 index 1c1a46483c47..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesCreateSample.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkDevice, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a Network Device resource - * - * @summary Create a Network Device resource - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Create_MaximumSet_Gen.json - */ -async function networkDevicesCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const body: NetworkDevice = { - annotation: "null", - hostName: "networkDeviceName", - location: "eastus", - networkDeviceRole: "CE", - networkDeviceSku: "DefaultSku", - serialNumber: "Arista;DCS-7280PR3-24;12.05;JPE21330382", - tags: { keyID: "keyValue" } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginCreateAndWait( - resourceGroupName, - networkDeviceName, - body - ); - console.log(result); -} - -async function main() { - networkDevicesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesDeleteSample.ts deleted file mode 100644 index 62efb789906b..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the Network Device resource. - * - * @summary Delete the Network Device resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Delete_MaximumSet_Gen.json - */ -async function networkDevicesDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginDeleteAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesGenerateSupportPackageSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesGenerateSupportPackageSample.ts deleted file mode 100644 index e76e0dfa7459..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesGenerateSupportPackageSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Generate Support Package for the given Network Device. - * - * @summary Generate Support Package for the given Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_generateSupportPackage_MaximumSet_Gen.json - */ -async function networkDevicesGenerateSupportPackageMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginGenerateSupportPackageAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesGenerateSupportPackageMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesGetDynamicInterfaceMapsSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesGetDynamicInterfaceMapsSample.ts deleted file mode 100644 index 2a76f7c3204c..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesGetDynamicInterfaceMapsSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the dynamic interface maps for the given Network Device. - * - * @summary Get the dynamic interface maps for the given Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_getDynamicInterfaceMaps_MaximumSet_Gen.json - */ -async function networkDevicesGetDynamicInterfaceMapsMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginGetDynamicInterfaceMapsAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesGetDynamicInterfaceMapsMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesGetSample.ts deleted file mode 100644 index dc1170afb494..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the Network Device resource details. - * - * @summary Get the Network Device resource details. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Get_MaximumSet_Gen.json - */ -async function networkDevicesGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.get( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesGetStaticInterfaceMapsSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesGetStaticInterfaceMapsSample.ts deleted file mode 100644 index a5582f67c05b..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesGetStaticInterfaceMapsSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the static interface maps for the given Network Device. - * - * @summary Get the static interface maps for the given Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_getStaticInterfaceMaps_MaximumSet_Gen.json - */ -async function networkDevicesGetStaticInterfaceMapsMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginGetStaticInterfaceMapsAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesGetStaticInterfaceMapsMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesGetStatusSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesGetStatusSample.ts deleted file mode 100644 index 2b9586a0f071..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesGetStatusSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the running status of the Network Device. - * - * @summary Get the running status of the Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_getStatus_MaximumSet_Gen.json - */ -async function networkDevicesGetStatusMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginGetStatusAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesGetStatusMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesListByResourceGroupSample.ts deleted file mode 100644 index 45ba84d455dd..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all the Network Device resources in a given resource group. - * - * @summary List all the Network Device resources in a given resource group. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_ListByResourceGroup_MaximumSet_Gen.json - */ -async function networkDevicesListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkDevices.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkDevicesListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesListBySubscriptionSample.ts deleted file mode 100644 index 5aee48d0d618..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all the Network Device resources in a given subscription. - * - * @summary List all the Network Device resources in a given subscription. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_ListBySubscription_MaximumSet_Gen.json - */ -async function networkDevicesListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkDevices.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkDevicesListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesRebootSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesRebootSample.ts deleted file mode 100644 index f03d5ed5c44a..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesRebootSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Reboot the Network Device. - * - * @summary Reboot the Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_reboot_MaximumSet_Gen.json - */ -async function networkDevicesRebootMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginRebootAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesRebootMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesRestoreConfigSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesRestoreConfigSample.ts deleted file mode 100644 index b65594f0d68f..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesRestoreConfigSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restore the configuration of the Network Device resource to last known good configuration. - * - * @summary Restore the configuration of the Network Device resource to last known good configuration. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_restoreConfig_MaximumSet_Gen.json - */ -async function networkDevicesRestoreConfigMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginRestoreConfigAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesRestoreConfigMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesUpdatePowerCycleSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesUpdatePowerCycleSample.ts deleted file mode 100644 index c3cb74f71d2f..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesUpdatePowerCycleSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdatePowerCycleProperties, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update PDU power cycle of the Network Device. - * - * @summary Update PDU power cycle of the Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_updatePowerCycle_MaximumSet_Gen.json - */ -async function networkDevicesUpdatePowerCycleMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const body: UpdatePowerCycleProperties = { powerEnd: "Primary", state: "On" }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginUpdatePowerCycleAndWait( - resourceGroupName, - networkDeviceName, - body - ); - console.log(result); -} - -async function main() { - networkDevicesUpdatePowerCycleMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesUpdateSample.ts deleted file mode 100644 index a72ab248d10b..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesUpdateSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkDevicePatchParameters, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update certain properties of the Network Device resource. - * - * @summary Update certain properties of the Network Device resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Update_MaximumSet_Gen.json - */ -async function networkDevicesUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const body: NetworkDevicePatchParameters = { - annotation: "null", - hostName: "networkDeviceName", - serialNumber: "Arista;DCS-7280PR3-24;12.05;JPE21330382", - tags: { keyID: "keyValue" } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginUpdateAndWait( - resourceGroupName, - networkDeviceName, - body - ); - console.log(result); -} - -async function main() { - networkDevicesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesUpdateVersionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesUpdateVersionSample.ts deleted file mode 100644 index 06faf9d36499..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkDevicesUpdateVersionSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateVersionProperties, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update the SKU version of the Network Device resource. - * - * @summary Update the SKU version of the Network Device resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_updateVersion_MaximumSet_Gen.json - */ -async function networkDevicesUpdateVersionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const body: UpdateVersionProperties = { skuVersion: "DefaultSku" }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginUpdateVersionAndWait( - resourceGroupName, - networkDeviceName, - body - ); - console.log(result); -} - -async function main() { - networkDevicesUpdateVersionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersCreateSample.ts deleted file mode 100644 index fbd02b7fe637..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersCreateSample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkFabricController, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates a Network Fabric Controller. - * - * @summary Creates a Network Fabric Controller. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Create_MaximumSet_Gen.json - */ -async function networkFabricControllersCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "NetworkControllerName"; - const body: NetworkFabricController = { - annotation: "lab 1", - infrastructureExpressRouteConnections: [ - { - expressRouteAuthorizationKey: "xxxxxxx", - expressRouteCircuitId: - "/subscriptions/xxxxx/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/expressRouteCircuitName" - } - ], - ipv4AddressSpace: "172.253.0.0/19", - location: "eastus", - managedResourceGroupConfiguration: { - name: "managedResourceGroupName", - location: "eastus" - }, - workloadExpressRouteConnections: [ - { - expressRouteAuthorizationKey: "xxxxx", - expressRouteCircuitId: - "/subscriptions/xxxxx/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/expressRouteCircuitName" - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabricControllers.beginCreateAndWait( - resourceGroupName, - networkFabricControllerName, - body - ); - console.log(result); -} - -async function main() { - networkFabricControllersCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersDeleteSample.ts deleted file mode 100644 index cbb7f32f80e8..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the Network Fabric Controller resource. - * - * @summary Deletes the Network Fabric Controller resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Delete_MaximumSet_Gen.json - */ -async function networkFabricControllersDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "networkFabricControllerName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabricControllers.beginDeleteAndWait( - resourceGroupName, - networkFabricControllerName - ); - console.log(result); -} - -async function main() { - networkFabricControllersDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersDisableWorkloadManagementNetworkSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersDisableWorkloadManagementNetworkSample.ts deleted file mode 100644 index c6743825f461..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersDisableWorkloadManagementNetworkSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Disables the workloadManagementNetwork (Tenant Network). - * - * @summary Disables the workloadManagementNetwork (Tenant Network). - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_disableWorkloadManagementNetwork_MaximumSet_Gen.json - */ -async function networkFabricControllersDisableWorkloadManagementNetworkMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "networkFabricControllerName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabricControllers.beginDisableWorkloadManagementNetworkAndWait( - resourceGroupName, - networkFabricControllerName - ); - console.log(result); -} - -async function main() { - networkFabricControllersDisableWorkloadManagementNetworkMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersEnableWorkloadManagementNetworkSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersEnableWorkloadManagementNetworkSample.ts deleted file mode 100644 index f287132da901..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersEnableWorkloadManagementNetworkSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Enables the workloadManagementNetwork (Tenant Network). - * - * @summary Enables the workloadManagementNetwork (Tenant Network). - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_enableWorkloadManagementNetwork_MaximumSet_Gen.json - */ -async function networkFabricControllersEnableWorkloadManagementNetworkMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "networkFabricControllerName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabricControllers.beginEnableWorkloadManagementNetworkAndWait( - resourceGroupName, - networkFabricControllerName - ); - console.log(result); -} - -async function main() { - networkFabricControllersEnableWorkloadManagementNetworkMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersGetSample.ts deleted file mode 100644 index 2aca418a87e8..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Shows the provisioning status of Network Fabric Controller. - * - * @summary Shows the provisioning status of Network Fabric Controller. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Get_MaximumSet_Gen.json - */ -async function networkFabricControllersGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "networkFabricControllerName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabricControllers.get( - resourceGroupName, - networkFabricControllerName - ); - console.log(result); -} - -async function main() { - networkFabricControllersGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersListByResourceGroupSample.ts deleted file mode 100644 index e58bad52e986..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the NetworkFabricControllers thats available in the resource group. - * - * @summary Lists all the NetworkFabricControllers thats available in the resource group. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_ListByResourceGroup_MaximumSet_Gen.json - */ -async function networkFabricControllersListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkFabricControllers.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkFabricControllersListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersListBySubscriptionSample.ts deleted file mode 100644 index 145d5752dd62..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the NetworkFabricControllers by subscription. - * - * @summary Lists all the NetworkFabricControllers by subscription. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_ListBySubscription_MaximumSet_Gen.json - */ -async function networkFabricControllersListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkFabricControllers.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkFabricControllersListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersUpdateSample.ts deleted file mode 100644 index c3c8074bc95a..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricControllersUpdateSample.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkFabricControllerPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates are currently not supported for the Network Fabric Controller resource. - * - * @summary Updates are currently not supported for the Network Fabric Controller resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Update_MaximumSet_Gen.json - */ -async function networkFabricControllersUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "networkFabricControllerName"; - const body: NetworkFabricControllerPatch = { - workloadExpressRouteConnections: [ - { - expressRouteAuthorizationKey: "xxxxxxx", - expressRouteCircuitId: - "/subscriptions/xxxxx/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/expressRouteCircuitName" - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabricControllers.beginUpdateAndWait( - resourceGroupName, - networkFabricControllerName, - body - ); - console.log(result); -} - -async function main() { - networkFabricControllersUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricSkusGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricSkusGetSample.ts deleted file mode 100644 index 65fa3f6a3750..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricSkusGetSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements Network Fabric Sku GET method. - * - * @summary Implements Network Fabric Sku GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricSkus_Get_MaximumSet_Gen.json - */ -async function networkFabricSkusGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const networkFabricSkuName = "networkFabricSkuName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabricSkus.get(networkFabricSkuName); - console.log(result); -} - -async function main() { - networkFabricSkusGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricSkusListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricSkusListBySubscriptionSample.ts deleted file mode 100644 index 18459d90185f..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricSkusListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements NetworkFabricSkus list by subscription GET method. - * - * @summary Implements NetworkFabricSkus list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricSkus_ListBySubscription_MaximumSet_Gen.json - */ -async function networkFabricSkusListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkFabricSkus.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkFabricSkusListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsCreateSample.ts deleted file mode 100644 index e9b8d01b90ec..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsCreateSample.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkFabric, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create Network Fabric resource. - * - * @summary Create Network Fabric resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Create_MaximumSet_Gen.json - */ -async function networkFabricsCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const body: NetworkFabric = { - annotation: "annotationValue", - fabricASN: 29249, - ipv4Prefix: "10.18.0.0/19", - ipv6Prefix: "3FFE:FFFF:0:CD40::/59", - location: "eastuseuap", - managementNetworkConfiguration: { - infrastructureVpnConfiguration: { - optionAProperties: { - mtu: 5892, - peerASN: 42666, - primaryIpv4Prefix: "20.0.0.12/30", - primaryIpv6Prefix: "3FFE:FFFF:0:CD30::a8/126", - secondaryIpv4Prefix: "20.0.0.13/30", - secondaryIpv6Prefix: "3FFE:FFFF:0:CD30::ac/126", - vlanId: 2724 - }, - optionBProperties: { - exportRouteTargets: ["65046:10039"], - importRouteTargets: ["65046:10039"] - }, - peeringOption: "OptionA" - }, - workloadVpnConfiguration: { - optionAProperties: { - mtu: 5892, - peerASN: 42666, - primaryIpv4Prefix: "10.0.0.14/30", - primaryIpv6Prefix: "2FFE:FFFF:0:CD30::a7/126", - secondaryIpv4Prefix: "10.0.0.15/30", - secondaryIpv6Prefix: "2FFE:FFFF:0:CD30::ac/126", - vlanId: 2724 - }, - optionBProperties: { - exportRouteTargets: ["65046:10050"], - importRouteTargets: ["65046:10050"] - }, - peeringOption: "OptionA" - } - }, - networkFabricControllerId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName", - networkFabricSku: "M4-A400-A100-C16-aa", - rackCount: 4, - serverCountPerRack: 8, - tags: { key6468: "" }, - terminalServerConfiguration: { - password: "xxxx", - primaryIpv4Prefix: "20.0.0.12/30", - primaryIpv6Prefix: "3FFE:FFFF:0:CD30::a8/126", - secondaryIpv4Prefix: "20.0.0.13/30", - secondaryIpv6Prefix: "3FFE:FFFF:0:CD30::ac/126", - serialNumber: "123456", - username: "username" - } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabrics.beginCreateAndWait( - resourceGroupName, - networkFabricName, - body - ); - console.log(result); -} - -async function main() { - networkFabricsCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsDeleteSample.ts deleted file mode 100644 index 4f9e42be2265..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsDeleteSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete Network Fabric resource. - * - * @summary Delete Network Fabric resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Delete_MaximumSet_Gen.json - */ -async function networkFabricsDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || - "70A68989-24C0-4FA7-B1B2-8A2BB6D10CA8"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgNetworkFabrics"; - const networkFabricName = "lrhjxlxlhgvufessdcuetcwnto"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabrics.beginDeleteAndWait( - resourceGroupName, - networkFabricName - ); - console.log(result); -} - -async function main() { - networkFabricsDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsDeprovisionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsDeprovisionSample.ts deleted file mode 100644 index e42ed87e8c19..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsDeprovisionSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deprovisions the underlying resources in the given Network Fabric instance. - * - * @summary Deprovisions the underlying resources in the given Network Fabric instance. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_deprovision_MaximumSet_Gen.json - */ -async function networkFabricsDeprovisionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabrics.beginDeprovisionAndWait( - resourceGroupName, - networkFabricName - ); - console.log(result); -} - -async function main() { - networkFabricsDeprovisionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsGetSample.ts deleted file mode 100644 index 3031cb751985..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get Network Fabric resource details. - * - * @summary Get Network Fabric resource details. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Get_MaximumSet_Gen.json - */ -async function networkFabricsGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabrics.get( - resourceGroupName, - networkFabricName - ); - console.log(result); -} - -async function main() { - networkFabricsGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsListByResourceGroupSample.ts deleted file mode 100644 index ee5530943414..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all the Network Fabric resources in the given resource group. - * - * @summary List all the Network Fabric resources in the given resource group. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_ListByResourceGroup_MaximumSet_Gen.json - */ -async function networkFabricsListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgNetworkFabrics"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkFabrics.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkFabricsListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsListBySubscriptionSample.ts deleted file mode 100644 index 18e6f2db11ad..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all the Network Fabric resources in the given subscription. - * - * @summary List all the Network Fabric resources in the given subscription. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_ListBySubscription_MaximumSet_Gen.json - */ -async function networkFabricsListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkFabrics.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkFabricsListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsProvisionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsProvisionSample.ts deleted file mode 100644 index 5c900ff0157c..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsProvisionSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provisions the underlying resources in the given Network Fabric instance. - * - * @summary Provisions the underlying resources in the given Network Fabric instance. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_provision_MaximumSet_Gen.json - */ -async function networkFabricsProvisionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabrics.beginProvisionAndWait( - resourceGroupName, - networkFabricName - ); - console.log(result); -} - -async function main() { - networkFabricsProvisionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsUpdateSample.ts deleted file mode 100644 index ebfea338b5a5..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkFabricsUpdateSample.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkFabricPatchParameters, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update certain properties of the Network Fabric resource. - * - * @summary Update certain properties of the Network Fabric resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Update_MaximumSet_Gen.json - */ -async function networkFabricsUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const body: NetworkFabricPatchParameters = { - annotation: "annotationValue", - tags: { key1758: "" }, - terminalServerConfiguration: { - password: "xxxxxxx", - serialNumber: "234567", - username: "username" - } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabrics.beginUpdateAndWait( - resourceGroupName, - networkFabricName, - body - ); - console.log(result); -} - -async function main() { - networkFabricsUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesCreateSample.ts deleted file mode 100644 index c9ce80ab7fda..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesCreateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkInterface, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a Network Interface resource. - * - * @summary Create a Network Interface resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Create_MaximumSet_Gen.json - */ -async function networkInterfacesCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const body: NetworkInterface = { annotation: "null" }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkInterfaces.beginCreateAndWait( - resourceGroupName, - networkDeviceName, - networkInterfaceName, - body - ); - console.log(result); -} - -async function main() { - networkInterfacesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesDeleteSample.ts deleted file mode 100644 index 9990c342c2b0..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesDeleteSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the Network Interface resource. - * - * @summary Delete the Network Interface resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Delete_MaximumSet_Gen.json - */ -async function networkInterfacesDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkInterfaces.beginDeleteAndWait( - resourceGroupName, - networkDeviceName, - networkInterfaceName - ); - console.log(result); -} - -async function main() { - networkInterfacesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesGetSample.ts deleted file mode 100644 index 8f4c3f0f03fb..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesGetSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the Network Interface resource details. - * - * @summary Get the Network Interface resource details. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Get_MaximumSet_Gen.json - */ -async function networkInterfacesGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkInterfaces.get( - resourceGroupName, - networkDeviceName, - networkInterfaceName - ); - console.log(result); -} - -async function main() { - networkInterfacesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesGetStatusSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesGetStatusSample.ts deleted file mode 100644 index 12852cb1c6dc..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesGetStatusSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the running status of the Network Interface. - * - * @summary Get the running status of the Network Interface. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_getStatus_MaximumSet_Gen.json - */ -async function networkInterfacesGetStatusMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkInterfaces.beginGetStatusAndWait( - resourceGroupName, - networkDeviceName, - networkInterfaceName - ); - console.log(result); -} - -async function main() { - networkInterfacesGetStatusMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesListSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesListSample.ts deleted file mode 100644 index 68207a212135..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesListSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all the Network Interface resources in a given resource group. - * - * @summary List all the Network Interface resources in a given resource group. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_List_MaximumSet_Gen.json - */ -async function networkInterfacesListMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkInterfaces.list( - resourceGroupName, - networkDeviceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkInterfacesListMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesUpdateAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesUpdateAdministrativeStateSample.ts deleted file mode 100644 index edaff88d039e..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesUpdateAdministrativeStateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update the admin state of the Network Interface. - * - * @summary Update the admin state of the Network Interface. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_updateAdministrativeState_MaximumSet_Gen.json - */ -async function networkInterfacesUpdateAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const body: UpdateAdministrativeState = { state: "Enable" }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkInterfaces.beginUpdateAdministrativeStateAndWait( - resourceGroupName, - networkDeviceName, - networkInterfaceName, - body - ); - console.log(result); -} - -async function main() { - networkInterfacesUpdateAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesUpdateSample.ts deleted file mode 100644 index e68668d7cbf5..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkInterfacesUpdateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkInterfacePatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update certain properties of the Network Interface resource. - * - * @summary Update certain properties of the Network Interface resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Update_MaximumSet_Gen.json - */ -async function networkInterfacesUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const body: NetworkInterfacePatch = { annotation: "null" }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkInterfaces.beginUpdateAndWait( - resourceGroupName, - networkDeviceName, - networkInterfaceName, - body - ); - console.log(result); -} - -async function main() { - networkInterfacesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRackSkusGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRackSkusGetSample.ts deleted file mode 100644 index c661aff6cd5b..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRackSkusGetSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get Network Rack SKU resource. - * - * @summary Get Network Rack SKU resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRackSkus_Get_MaximumSet_Gen.json - */ -async function networkRackSkusGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const networkRackSkuName = "networkRackSkuName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkRackSkus.get(networkRackSkuName); - console.log(result); -} - -async function main() { - networkRackSkusGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRackSkusListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRackSkusListBySubscriptionSample.ts deleted file mode 100644 index a052058bf31c..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRackSkusListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all Network Rack SKUs in the given subscription. - * - * @summary List all Network Rack SKUs in the given subscription. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRackSkus_ListBySubscription_MaximumSet_Gen.json - */ -async function networkRackSkusListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkRackSkus.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkRackSkusListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksCreateSample.ts deleted file mode 100644 index dbf16ef63503..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksCreateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkRack, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create Network Rack resource. - * - * @summary Create Network Rack resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Create_MaximumSet_Gen.json - */ -async function networkRacksCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkRackName = "networkRackName"; - const body: NetworkRack = { - annotation: "null", - location: "eastus", - networkFabricId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/networkFabricName", - networkRackSku: "RackSKU", - tags: { keyID: "keyValue" } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkRacks.beginCreateAndWait( - resourceGroupName, - networkRackName, - body - ); - console.log(result); -} - -async function main() { - networkRacksCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksDeleteSample.ts deleted file mode 100644 index a88d75450d86..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete Network Rack resource. - * - * @summary Delete Network Rack resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Delete_MaximumSet_Gen.json - */ -async function networkRacksDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkRackName = "networkRackName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkRacks.beginDeleteAndWait( - resourceGroupName, - networkRackName - ); - console.log(result); -} - -async function main() { - networkRacksDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksGetSample.ts deleted file mode 100644 index 795bfbb9246e..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get Network Rack resource details. - * - * @summary Get Network Rack resource details. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Get_MaximumSet_Gen.json - */ -async function networkRacksGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkRackName = "networkRackName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkRacks.get( - resourceGroupName, - networkRackName - ); - console.log(result); -} - -async function main() { - networkRacksGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksListByResourceGroupSample.ts deleted file mode 100644 index baa6b16fa171..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all Network Rack resources in the given resource group. - * - * @summary List all Network Rack resources in the given resource group. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_ListByResourceGroup_MaximumSet_Gen.json - */ -async function networkRacksListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkRacks.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkRacksListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksListBySubscriptionSample.ts deleted file mode 100644 index 998b451e0b86..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all Network Rack resources in the given subscription - * - * @summary List all Network Rack resources in the given subscription - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_ListBySubscription_MaximumSet_Gen.json - */ -async function networkRacksListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkRacks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkRacksListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksUpdateSample.ts deleted file mode 100644 index 4cfdc3dd4128..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkRacksUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkRackPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update certain properties of the Network Rack resource. - * - * @summary Update certain properties of the Network Rack resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Update_MaximumSet_Gen.json - */ -async function networkRacksUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkRackName = "networkRackName"; - const body: NetworkRackPatch = { - properties: {}, - tags: { keyID: "keyValue" } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkRacks.beginUpdateAndWait( - resourceGroupName, - networkRackName, - body - ); - console.log(result); -} - -async function main() { - networkRacksUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkToNetworkInterconnectsCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkToNetworkInterconnectsCreateSample.ts deleted file mode 100644 index b88d188f253f..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkToNetworkInterconnectsCreateSample.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkToNetworkInterconnect, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Configuration used to setup CE-PE connectivity PUT Method. - * - * @summary Configuration used to setup CE-PE connectivity PUT Method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_Create_MaximumSet_Gen.json - */ -async function networkToNetworkInterconnectsCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const networkToNetworkInterconnectName = "DefaultNNI"; - const body: NetworkToNetworkInterconnect = { - isManagementType: "True", - layer2Configuration: { mtu: 1500, portCount: 10 }, - layer3Configuration: { - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName2", - importRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName1", - peerASN: 50272, - primaryIpv4Prefix: "172.31.0.0/31", - primaryIpv6Prefix: "3FFE:FFFF:0:CD30::a0/126", - secondaryIpv4Prefix: "172.31.0.20/31", - secondaryIpv6Prefix: "3FFE:FFFF:0:CD30::a4/126", - vlanId: 2064 - }, - nniType: "CE", - useOptionB: "False" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkToNetworkInterconnects.beginCreateAndWait( - resourceGroupName, - networkFabricName, - networkToNetworkInterconnectName, - body - ); - console.log(result); -} - -async function main() { - networkToNetworkInterconnectsCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkToNetworkInterconnectsDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkToNetworkInterconnectsDeleteSample.ts deleted file mode 100644 index 32bb44eb2ec7..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkToNetworkInterconnectsDeleteSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements NetworkToNetworkInterconnects DELETE method. - * - * @summary Implements NetworkToNetworkInterconnects DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_Delete_MaximumSet_Gen.json - */ -async function networkToNetworkInterconnectsDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const networkToNetworkInterconnectName = "DefaultNNI"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkToNetworkInterconnects.beginDeleteAndWait( - resourceGroupName, - networkFabricName, - networkToNetworkInterconnectName - ); - console.log(result); -} - -async function main() { - networkToNetworkInterconnectsDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkToNetworkInterconnectsGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkToNetworkInterconnectsGetSample.ts deleted file mode 100644 index 489bcd62245b..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkToNetworkInterconnectsGetSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements NetworkToNetworkInterconnects GET method. - * - * @summary Implements NetworkToNetworkInterconnects GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_Get_MaximumSet_Gen.json - */ -async function networkToNetworkInterconnectsGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const networkToNetworkInterconnectName = "DefaultNNI"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkToNetworkInterconnects.get( - resourceGroupName, - networkFabricName, - networkToNetworkInterconnectName - ); - console.log(result); -} - -async function main() { - networkToNetworkInterconnectsGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkToNetworkInterconnectsListSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkToNetworkInterconnectsListSample.ts deleted file mode 100644 index 6970ac8dfe69..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/networkToNetworkInterconnectsListSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements Network To Network Interconnects list by Network Fabric GET method. - * - * @summary Implements Network To Network Interconnects list by Network Fabric GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_List_MaximumSet_Gen.json - */ -async function networkToNetworkInterconnectsListMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkToNetworkInterconnects.list( - resourceGroupName, - networkFabricName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkToNetworkInterconnectsListMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/operationsListSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/operationsListSample.ts deleted file mode 100644 index f6b3764b97f8..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/operationsListSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns list of all operations. - * - * @summary Returns list of all operations. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ListOperations.json - */ -async function listOperations() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listOperations(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesCreateSample.ts deleted file mode 100644 index 3393ce09aef1..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesCreateSample.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RoutePolicy, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements Route Policy PUT method. - * - * @summary Implements Route Policy PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Create_MaximumSet_Gen.json - */ -async function routePoliciesCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgRoutePolicies"; - const routePolicyName = "routePolicyName"; - const body: RoutePolicy = { - annotation: "annotationValue", - location: "EastUS", - statements: [ - { - action: { - actionType: "Permit", - ipCommunityProperties: { - add: { - ipCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipCommunities/ipCommunityName" - ] - }, - delete: { - ipCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipCommunities/ipCommunityName" - ] - }, - set: { - ipCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipCommunities/ipCommunityName" - ] - } - }, - ipExtendedCommunityProperties: { - add: { - ipExtendedCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities/ipExtendedCommunityName" - ] - }, - delete: { - ipExtendedCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities/ipExtendedCommunityName" - ] - }, - set: { - ipExtendedCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities/ipExtendedCommunityName" - ] - } - }, - localPreference: 20 - }, - annotation: "annotationValue", - condition: { - ipCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipCommunities/ipCommunityName" - ], - ipExtendedCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities/ipExtendedCommunityName" - ], - ipPrefixId: - "subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/ipPrefixes/example-ipPrefix" - }, - sequenceNumber: 7 - } - ], - tags: { key8254: "" } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.routePolicies.beginCreateAndWait( - resourceGroupName, - routePolicyName, - body - ); - console.log(result); -} - -async function main() { - routePoliciesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesDeleteSample.ts deleted file mode 100644 index b137e7cafa34..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements Route Policy DELETE method. - * - * @summary Implements Route Policy DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Delete_MaximumSet_Gen.json - */ -async function routePoliciesDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgRoutePolicies"; - const routePolicyName = "routePolicyName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.routePolicies.beginDeleteAndWait( - resourceGroupName, - routePolicyName - ); - console.log(result); -} - -async function main() { - routePoliciesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesGetSample.ts deleted file mode 100644 index ddd2ae32a9f1..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements Route Policy GET method. - * - * @summary Implements Route Policy GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Get_MaximumSet_Gen.json - */ -async function routePoliciesGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgRoutePolicies"; - const routePolicyName = "routePolicyName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.routePolicies.get( - resourceGroupName, - routePolicyName - ); - console.log(result); -} - -async function main() { - routePoliciesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesListByResourceGroupSample.ts deleted file mode 100644 index 3525f595b349..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements RoutePolicies list by resource group GET method. - * - * @summary Implements RoutePolicies list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_ListByResourceGroup_MaximumSet_Gen.json - */ -async function routePoliciesListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgRoutePolicies"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.routePolicies.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - routePoliciesListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesListBySubscriptionSample.ts deleted file mode 100644 index 9ad44f193676..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements RoutePolicies list by subscription GET method. - * - * @summary Implements RoutePolicies list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_ListBySubscription_MaximumSet_Gen.json - */ -async function routePoliciesListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.routePolicies.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - routePoliciesListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesUpdateSample.ts deleted file mode 100644 index f6d665be7318..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples-dev/routePoliciesUpdateSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RoutePolicyPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to API to update certain properties of the Route Policy resource. - * - * @summary API to update certain properties of the Route Policy resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Update_MaximumSet_Gen.json - */ -async function routePoliciesUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || - "97D66995-95BA-464A-A250-FB6E25E499A8"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const routePolicyName = "routePolicyName"; - const body: RoutePolicyPatch = { tags: { key8254: "" } }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.routePolicies.beginUpdateAndWait( - resourceGroupName, - routePolicyName, - body - ); - console.log(result); -} - -async function main() { - routePoliciesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/README.md b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/README.md deleted file mode 100644 index 17083da813fd..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/README.md +++ /dev/null @@ -1,298 +0,0 @@ -# client library samples for JavaScript (Beta) - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [accessControlListsCreateSample.js][accesscontrollistscreatesample] | Implements Access Control List PUT method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Create_MinimumSet_Gen.json | -| [accessControlListsDeleteSample.js][accesscontrollistsdeletesample] | Implements Access Control List DELETE method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Delete_MinimumSet_Gen.json | -| [accessControlListsGetSample.js][accesscontrollistsgetsample] | Implements Access Control List GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Get_MinimumSet_Gen.json | -| [accessControlListsListByResourceGroupSample.js][accesscontrollistslistbyresourcegroupsample] | Implements AccessControlLists list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_ListByResourceGroup_MinimumSet_Gen.json | -| [accessControlListsListBySubscriptionSample.js][accesscontrollistslistbysubscriptionsample] | Implements AccessControlLists list by subscription GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_ListBySubscription_MinimumSet_Gen.json | -| [accessControlListsUpdateSample.js][accesscontrollistsupdatesample] | API to update certain properties of the Access Control List resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Update_MinimumSet_Gen.json | -| [externalNetworksClearArpEntriesSample.js][externalnetworkscleararpentriessample] | clearArpEntries for externalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_clearArpEntries_MaximumSet_Gen.json | -| [externalNetworksClearIpv6NeighborsSample.js][externalnetworksclearipv6neighborssample] | clearIpv6Neighbors for externalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_clearIpv6Neighbors_MaximumSet_Gen.json | -| [externalNetworksCreateSample.js][externalnetworkscreatesample] | Creates ExternalNetwork PUT method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Create_MaximumSet_Gen.json | -| [externalNetworksDeleteSample.js][externalnetworksdeletesample] | Implements ExternalNetworks DELETE method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Delete_MaximumSet_Gen.json | -| [externalNetworksGetSample.js][externalnetworksgetsample] | Implements ExternalNetworks GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Get_MaximumSet_Gen.json | -| [externalNetworksListSample.js][externalnetworkslistsample] | Implements External Networks list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_List_MaximumSet_Gen.json | -| [externalNetworksUpdateAdministrativeStateSample.js][externalnetworksupdateadministrativestatesample] | Executes update operation to enable or disable administrative State for externalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_updateAdministrativeState_MaximumSet_Gen.json | -| [externalNetworksUpdateBfdForBgpAdministrativeStateSample.js][externalnetworksupdatebfdforbgpadministrativestatesample] | Update BfdForBgp for externalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_updateBfdForBgpAdministrativeState_MaximumSet_Gen.json | -| [externalNetworksUpdateBgpAdministrativeStateSample.js][externalnetworksupdatebgpadministrativestatesample] | Update BGP for externalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_updateBgpAdministrativeState_MaximumSet_Gen.json | -| [externalNetworksUpdateSample.js][externalnetworksupdatesample] | API to update certain properties of the ExternalNetworks resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Update_MaximumSet_Gen.json | -| [internalNetworksClearArpEntriesSample.js][internalnetworkscleararpentriessample] | clearArpEntries for internalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_clearArpEntries_MaximumSet_Gen.json | -| [internalNetworksClearIpv6NeighborsSample.js][internalnetworksclearipv6neighborssample] | clearIpv6Neighbors for internalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_clearIpv6Neighbors_MaximumSet_Gen.json | -| [internalNetworksCreateSample.js][internalnetworkscreatesample] | Creates InternalNetwork PUT method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Create_MaximumSet_Gen.json | -| [internalNetworksDeleteSample.js][internalnetworksdeletesample] | Implements InternalNetworks DELETE method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Delete_MaximumSet_Gen.json | -| [internalNetworksGetSample.js][internalnetworksgetsample] | Gets a InternalNetworks. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Get_MaximumSet_Gen.json | -| [internalNetworksListSample.js][internalnetworkslistsample] | Displays InternalNetworks list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_List_MaximumSet_Gen.json | -| [internalNetworksUpdateAdministrativeStateSample.js][internalnetworksupdateadministrativestatesample] | Update Administrative state of InternalNetworks on resources referred by their resource ids. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateAdministrativeState_MaximumSet_Gen.json | -| [internalNetworksUpdateBfdForBgpAdministrativeStateSample.js][internalnetworksupdatebfdforbgpadministrativestatesample] | Update BfdForBgp for internalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateBfdForBgpAdministrativeState_MaximumSet_Gen.json | -| [internalNetworksUpdateBfdForStaticRouteAdministrativeStateSample.js][internalnetworksupdatebfdforstaticrouteadministrativestatesample] | Update BfdForStaticRoutes for internalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateBfdForStaticRouteAdministrativeState_MaximumSet_Gen.json | -| [internalNetworksUpdateBgpAdministrativeStateSample.js][internalnetworksupdatebgpadministrativestatesample] | Update BGP state for internalNetwork. Allowed only on edge devices. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateBgpAdministrativeState_MaximumSet_Gen.json | -| [internalNetworksUpdateSample.js][internalnetworksupdatesample] | Updates a InternalNetworks. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Update_MaximumSet_Gen.json | -| [ipCommunitiesCreateSample.js][ipcommunitiescreatesample] | Implements an IP Community PUT method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Create_MaximumSet_Gen.json | -| [ipCommunitiesDeleteSample.js][ipcommunitiesdeletesample] | Implements IP Community DELETE method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Delete_MaximumSet_Gen.json | -| [ipCommunitiesGetSample.js][ipcommunitiesgetsample] | Implements an IP Community GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Get_MaximumSet_Gen.json | -| [ipCommunitiesListByResourceGroupSample.js][ipcommunitieslistbyresourcegroupsample] | Implements IpCommunities list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_ListByResourceGroup_MaximumSet_Gen.json | -| [ipCommunitiesListBySubscriptionSample.js][ipcommunitieslistbysubscriptionsample] | Implements IpCommunities list by subscription GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_ListBySubscription_MaximumSet_Gen.json | -| [ipCommunitiesUpdateSample.js][ipcommunitiesupdatesample] | API to update certain properties of the IP Community resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Update_MaximumSet_Gen.json | -| [ipExtendedCommunitiesCreateSample.js][ipextendedcommunitiescreatesample] | Implements IP Extended Community PUT method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Create_MaximumSet_Gen.json | -| [ipExtendedCommunitiesDeleteSample.js][ipextendedcommunitiesdeletesample] | Implements IP Extended Community DELETE method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Delete_MaximumSet_Gen.json | -| [ipExtendedCommunitiesGetSample.js][ipextendedcommunitiesgetsample] | Implements IP Extended Community GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Get_MaximumSet_Gen.json | -| [ipExtendedCommunitiesListByResourceGroupSample.js][ipextendedcommunitieslistbyresourcegroupsample] | Implements IpExtendedCommunities list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_ListByResourceGroup_MaximumSet_Gen.json | -| [ipExtendedCommunitiesListBySubscriptionSample.js][ipextendedcommunitieslistbysubscriptionsample] | Implements IpExtendedCommunities list by subscription GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_ListBySubscription_MaximumSet_Gen.json | -| [ipExtendedCommunitiesUpdateSample.js][ipextendedcommunitiesupdatesample] | API to update certain properties of the IP Extended Community resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Update_MaximumSet_Gen.json | -| [ipPrefixesCreateSample.js][ipprefixescreatesample] | Implements IP Prefix PUT method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Create_MaximumSet_Gen.json | -| [ipPrefixesDeleteSample.js][ipprefixesdeletesample] | Implements IP Prefix DELETE method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Delete_MaximumSet_Gen.json | -| [ipPrefixesGetSample.js][ipprefixesgetsample] | Implements IP Prefix GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Get_MaximumSet_Gen.json | -| [ipPrefixesListByResourceGroupSample.js][ipprefixeslistbyresourcegroupsample] | Implements IpPrefixes list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_ListByResourceGroup_MaximumSet_Gen.json | -| [ipPrefixesListBySubscriptionSample.js][ipprefixeslistbysubscriptionsample] | Implements IpPrefixes list by subscription GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_ListBySubscription_MaximumSet_Gen.json | -| [ipPrefixesUpdateSample.js][ipprefixesupdatesample] | API to update certain properties of the IP Prefix resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Update_MaximumSet_Gen.json | -| [l2IsolationDomainsClearArpTableSample.js][l2isolationdomainscleararptablesample] | Clears ARP tables for this Isolation Domain. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_clearArpTable_MaximumSet_Gen.json | -| [l2IsolationDomainsClearNeighborTableSample.js][l2isolationdomainsclearneighbortablesample] | Clears IPv6 neighbors for this Isolation Domain. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_clearNeighborTable_MaximumSet_Gen.json | -| [l2IsolationDomainsCreateSample.js][l2isolationdomainscreatesample] | Creates layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied on the devices only after the isolation domain is enabled. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Create_MaximumSet_Gen.json | -| [l2IsolationDomainsDeleteSample.js][l2isolationdomainsdeletesample] | Deletes layer 2 connectivity between compute nodes by managed by named L2 Isolation name. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Delete_MaximumSet_Gen.json | -| [l2IsolationDomainsGetArpEntriesSample.js][l2isolationdomainsgetarpentriessample] | Clears IPv6 neighbors for this Isolation Domain. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_getArpEntries_MaximumSet_Gen.json | -| [l2IsolationDomainsGetSample.js][l2isolationdomainsgetsample] | Implements L2 Isolation Domain GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Get_MaximumSet_Gen.json | -| [l2IsolationDomainsListByResourceGroupSample.js][l2isolationdomainslistbyresourcegroupsample] | Displays L2IsolationDomains list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_ListByResourceGroup_MaximumSet_Gen.json | -| [l2IsolationDomainsListBySubscriptionSample.js][l2isolationdomainslistbysubscriptionsample] | Displays L2IsolationDomains list by subscription GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_ListBySubscription_MaximumSet_Gen.json | -| [l2IsolationDomainsUpdateAdministrativeStateSample.js][l2isolationdomainsupdateadministrativestatesample] | Enables isolation domain across the fabric or on specified racks. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_updateAdministrativeState_MaximumSet_Gen.json | -| [l2IsolationDomainsUpdateSample.js][l2isolationdomainsupdatesample] | API to update certain properties of the L2 Isolation Domain resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Update_MaximumSet_Gen.json | -| [l3IsolationDomainsClearArpTableSample.js][l3isolationdomainscleararptablesample] | Clears ARP tables for this Isolation Domain. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_clearArpTable_MaximumSet_Gen.json | -| [l3IsolationDomainsClearNeighborTableSample.js][l3isolationdomainsclearneighbortablesample] | Clears IPv6 neighbor tables for this Isolation Domain. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_clearNeighborTable_MaximumSet_Gen.json | -| [l3IsolationDomainsCreateSample.js][l3isolationdomainscreatesample] | Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is enabled. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Create_MaximumSet_Gen.json | -| [l3IsolationDomainsDeleteSample.js][l3isolationdomainsdeletesample] | Deletes layer 3 connectivity between compute nodes by managed by named L3 Isolation name. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Delete_MaximumSet_Gen.json | -| [l3IsolationDomainsGetSample.js][l3isolationdomainsgetsample] | Retrieves details of this L3 Isolation Domain. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Get_MaximumSet_Gen.json | -| [l3IsolationDomainsListByResourceGroupSample.js][l3isolationdomainslistbyresourcegroupsample] | Displays L3IsolationDomains list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_ListByResourceGroup_MaximumSet_Gen.json | -| [l3IsolationDomainsListBySubscriptionSample.js][l3isolationdomainslistbysubscriptionsample] | Displays L3IsolationDomains list by subscription GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_ListBySubscription_MaximumSet_Gen.json | -| [l3IsolationDomainsUpdateAdministrativeStateSample.js][l3isolationdomainsupdateadministrativestatesample] | Enables racks for this Isolation Domain. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_updateAdministrativeState_MaximumSet_Gen.json | -| [l3IsolationDomainsUpdateOptionBAdministrativeStateSample.js][l3isolationdomainsupdateoptionbadministrativestatesample] | Update administrative state of option B on CE devices x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_updateOptionBAdministrativeState_MaximumSet_Gen.json | -| [l3IsolationDomainsUpdateSample.js][l3isolationdomainsupdatesample] | API to update certain properties of the L3 Isolation Domain resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Update_MaximumSet_Gen.json | -| [networkDeviceSkusGetSample.js][networkdeviceskusgetsample] | Get Network Device SKU details. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDeviceSkus_Get_MaximumSet_Gen.json | -| [networkDeviceSkusListBySubscriptionSample.js][networkdeviceskuslistbysubscriptionsample] | List Network Device SKUs for the given subscription. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDeviceSkus_ListBySubscription_MaximumSet_Gen.json | -| [networkDevicesCreateSample.js][networkdevicescreatesample] | Create a Network Device resource x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Create_MaximumSet_Gen.json | -| [networkDevicesDeleteSample.js][networkdevicesdeletesample] | Delete the Network Device resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Delete_MaximumSet_Gen.json | -| [networkDevicesGenerateSupportPackageSample.js][networkdevicesgeneratesupportpackagesample] | Generate Support Package for the given Network Device. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_generateSupportPackage_MaximumSet_Gen.json | -| [networkDevicesGetDynamicInterfaceMapsSample.js][networkdevicesgetdynamicinterfacemapssample] | Get the dynamic interface maps for the given Network Device. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_getDynamicInterfaceMaps_MaximumSet_Gen.json | -| [networkDevicesGetSample.js][networkdevicesgetsample] | Get the Network Device resource details. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Get_MaximumSet_Gen.json | -| [networkDevicesGetStaticInterfaceMapsSample.js][networkdevicesgetstaticinterfacemapssample] | Get the static interface maps for the given Network Device. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_getStaticInterfaceMaps_MaximumSet_Gen.json | -| [networkDevicesGetStatusSample.js][networkdevicesgetstatussample] | Get the running status of the Network Device. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_getStatus_MaximumSet_Gen.json | -| [networkDevicesListByResourceGroupSample.js][networkdeviceslistbyresourcegroupsample] | List all the Network Device resources in a given resource group. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_ListByResourceGroup_MaximumSet_Gen.json | -| [networkDevicesListBySubscriptionSample.js][networkdeviceslistbysubscriptionsample] | List all the Network Device resources in a given subscription. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_ListBySubscription_MaximumSet_Gen.json | -| [networkDevicesRebootSample.js][networkdevicesrebootsample] | Reboot the Network Device. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_reboot_MaximumSet_Gen.json | -| [networkDevicesRestoreConfigSample.js][networkdevicesrestoreconfigsample] | Restore the configuration of the Network Device resource to last known good configuration. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_restoreConfig_MaximumSet_Gen.json | -| [networkDevicesUpdatePowerCycleSample.js][networkdevicesupdatepowercyclesample] | Update PDU power cycle of the Network Device. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_updatePowerCycle_MaximumSet_Gen.json | -| [networkDevicesUpdateSample.js][networkdevicesupdatesample] | Update certain properties of the Network Device resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Update_MaximumSet_Gen.json | -| [networkDevicesUpdateVersionSample.js][networkdevicesupdateversionsample] | Update the SKU version of the Network Device resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_updateVersion_MaximumSet_Gen.json | -| [networkFabricControllersCreateSample.js][networkfabriccontrollerscreatesample] | Creates a Network Fabric Controller. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Create_MaximumSet_Gen.json | -| [networkFabricControllersDeleteSample.js][networkfabriccontrollersdeletesample] | Deletes the Network Fabric Controller resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Delete_MaximumSet_Gen.json | -| [networkFabricControllersDisableWorkloadManagementNetworkSample.js][networkfabriccontrollersdisableworkloadmanagementnetworksample] | Disables the workloadManagementNetwork (Tenant Network). x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_disableWorkloadManagementNetwork_MaximumSet_Gen.json | -| [networkFabricControllersEnableWorkloadManagementNetworkSample.js][networkfabriccontrollersenableworkloadmanagementnetworksample] | Enables the workloadManagementNetwork (Tenant Network). x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_enableWorkloadManagementNetwork_MaximumSet_Gen.json | -| [networkFabricControllersGetSample.js][networkfabriccontrollersgetsample] | Shows the provisioning status of Network Fabric Controller. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Get_MaximumSet_Gen.json | -| [networkFabricControllersListByResourceGroupSample.js][networkfabriccontrollerslistbyresourcegroupsample] | Lists all the NetworkFabricControllers thats available in the resource group. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_ListByResourceGroup_MaximumSet_Gen.json | -| [networkFabricControllersListBySubscriptionSample.js][networkfabriccontrollerslistbysubscriptionsample] | Lists all the NetworkFabricControllers by subscription. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_ListBySubscription_MaximumSet_Gen.json | -| [networkFabricControllersUpdateSample.js][networkfabriccontrollersupdatesample] | Updates are currently not supported for the Network Fabric Controller resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Update_MaximumSet_Gen.json | -| [networkFabricSkusGetSample.js][networkfabricskusgetsample] | Implements Network Fabric Sku GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricSkus_Get_MaximumSet_Gen.json | -| [networkFabricSkusListBySubscriptionSample.js][networkfabricskuslistbysubscriptionsample] | Implements NetworkFabricSkus list by subscription GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricSkus_ListBySubscription_MaximumSet_Gen.json | -| [networkFabricsCreateSample.js][networkfabricscreatesample] | Create Network Fabric resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Create_MaximumSet_Gen.json | -| [networkFabricsDeleteSample.js][networkfabricsdeletesample] | Delete Network Fabric resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Delete_MaximumSet_Gen.json | -| [networkFabricsDeprovisionSample.js][networkfabricsdeprovisionsample] | Deprovisions the underlying resources in the given Network Fabric instance. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_deprovision_MaximumSet_Gen.json | -| [networkFabricsGetSample.js][networkfabricsgetsample] | Get Network Fabric resource details. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Get_MaximumSet_Gen.json | -| [networkFabricsListByResourceGroupSample.js][networkfabricslistbyresourcegroupsample] | List all the Network Fabric resources in the given resource group. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_ListByResourceGroup_MaximumSet_Gen.json | -| [networkFabricsListBySubscriptionSample.js][networkfabricslistbysubscriptionsample] | List all the Network Fabric resources in the given subscription. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_ListBySubscription_MaximumSet_Gen.json | -| [networkFabricsProvisionSample.js][networkfabricsprovisionsample] | Provisions the underlying resources in the given Network Fabric instance. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_provision_MaximumSet_Gen.json | -| [networkFabricsUpdateSample.js][networkfabricsupdatesample] | Update certain properties of the Network Fabric resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Update_MaximumSet_Gen.json | -| [networkInterfacesCreateSample.js][networkinterfacescreatesample] | Create a Network Interface resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Create_MaximumSet_Gen.json | -| [networkInterfacesDeleteSample.js][networkinterfacesdeletesample] | Delete the Network Interface resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Delete_MaximumSet_Gen.json | -| [networkInterfacesGetSample.js][networkinterfacesgetsample] | Get the Network Interface resource details. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Get_MaximumSet_Gen.json | -| [networkInterfacesGetStatusSample.js][networkinterfacesgetstatussample] | Get the running status of the Network Interface. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_getStatus_MaximumSet_Gen.json | -| [networkInterfacesListSample.js][networkinterfaceslistsample] | List all the Network Interface resources in a given resource group. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_List_MaximumSet_Gen.json | -| [networkInterfacesUpdateAdministrativeStateSample.js][networkinterfacesupdateadministrativestatesample] | Update the admin state of the Network Interface. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_updateAdministrativeState_MaximumSet_Gen.json | -| [networkInterfacesUpdateSample.js][networkinterfacesupdatesample] | Update certain properties of the Network Interface resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Update_MaximumSet_Gen.json | -| [networkRackSkusGetSample.js][networkrackskusgetsample] | Get Network Rack SKU resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRackSkus_Get_MaximumSet_Gen.json | -| [networkRackSkusListBySubscriptionSample.js][networkrackskuslistbysubscriptionsample] | List all Network Rack SKUs in the given subscription. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRackSkus_ListBySubscription_MaximumSet_Gen.json | -| [networkRacksCreateSample.js][networkrackscreatesample] | Create Network Rack resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Create_MaximumSet_Gen.json | -| [networkRacksDeleteSample.js][networkracksdeletesample] | Delete Network Rack resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Delete_MaximumSet_Gen.json | -| [networkRacksGetSample.js][networkracksgetsample] | Get Network Rack resource details. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Get_MaximumSet_Gen.json | -| [networkRacksListByResourceGroupSample.js][networkrackslistbyresourcegroupsample] | List all Network Rack resources in the given resource group. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_ListByResourceGroup_MaximumSet_Gen.json | -| [networkRacksListBySubscriptionSample.js][networkrackslistbysubscriptionsample] | List all Network Rack resources in the given subscription x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_ListBySubscription_MaximumSet_Gen.json | -| [networkRacksUpdateSample.js][networkracksupdatesample] | Update certain properties of the Network Rack resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Update_MaximumSet_Gen.json | -| [networkToNetworkInterconnectsCreateSample.js][networktonetworkinterconnectscreatesample] | Configuration used to setup CE-PE connectivity PUT Method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_Create_MaximumSet_Gen.json | -| [networkToNetworkInterconnectsDeleteSample.js][networktonetworkinterconnectsdeletesample] | Implements NetworkToNetworkInterconnects DELETE method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_Delete_MaximumSet_Gen.json | -| [networkToNetworkInterconnectsGetSample.js][networktonetworkinterconnectsgetsample] | Implements NetworkToNetworkInterconnects GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_Get_MaximumSet_Gen.json | -| [networkToNetworkInterconnectsListSample.js][networktonetworkinterconnectslistsample] | Implements Network To Network Interconnects list by Network Fabric GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_List_MaximumSet_Gen.json | -| [operationsListSample.js][operationslistsample] | Returns list of all operations. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ListOperations.json | -| [routePoliciesCreateSample.js][routepoliciescreatesample] | Implements Route Policy PUT method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Create_MaximumSet_Gen.json | -| [routePoliciesDeleteSample.js][routepoliciesdeletesample] | Implements Route Policy DELETE method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Delete_MaximumSet_Gen.json | -| [routePoliciesGetSample.js][routepoliciesgetsample] | Implements Route Policy GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Get_MaximumSet_Gen.json | -| [routePoliciesListByResourceGroupSample.js][routepolicieslistbyresourcegroupsample] | Implements RoutePolicies list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_ListByResourceGroup_MaximumSet_Gen.json | -| [routePoliciesListBySubscriptionSample.js][routepolicieslistbysubscriptionsample] | Implements RoutePolicies list by subscription GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_ListBySubscription_MaximumSet_Gen.json | -| [routePoliciesUpdateSample.js][routepoliciesupdatesample] | API to update certain properties of the Route Policy resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Update_MaximumSet_Gen.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node accessControlListsCreateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID="" MANAGEDNETWORKFABRIC_RESOURCE_GROUP="" node accessControlListsCreateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[accesscontrollistscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsCreateSample.js -[accesscontrollistsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsDeleteSample.js -[accesscontrollistsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsGetSample.js -[accesscontrollistslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsListByResourceGroupSample.js -[accesscontrollistslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsListBySubscriptionSample.js -[accesscontrollistsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsUpdateSample.js -[externalnetworkscleararpentriessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksClearArpEntriesSample.js -[externalnetworksclearipv6neighborssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksClearIpv6NeighborsSample.js -[externalnetworkscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksCreateSample.js -[externalnetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksDeleteSample.js -[externalnetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksGetSample.js -[externalnetworkslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksListSample.js -[externalnetworksupdateadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksUpdateAdministrativeStateSample.js -[externalnetworksupdatebfdforbgpadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksUpdateBfdForBgpAdministrativeStateSample.js -[externalnetworksupdatebgpadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksUpdateBgpAdministrativeStateSample.js -[externalnetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksUpdateSample.js -[internalnetworkscleararpentriessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksClearArpEntriesSample.js -[internalnetworksclearipv6neighborssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksClearIpv6NeighborsSample.js -[internalnetworkscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksCreateSample.js -[internalnetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksDeleteSample.js -[internalnetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksGetSample.js -[internalnetworkslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksListSample.js -[internalnetworksupdateadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateAdministrativeStateSample.js -[internalnetworksupdatebfdforbgpadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateBfdForBgpAdministrativeStateSample.js -[internalnetworksupdatebfdforstaticrouteadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateBfdForStaticRouteAdministrativeStateSample.js -[internalnetworksupdatebgpadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateBgpAdministrativeStateSample.js -[internalnetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateSample.js -[ipcommunitiescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesCreateSample.js -[ipcommunitiesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesDeleteSample.js -[ipcommunitiesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesGetSample.js -[ipcommunitieslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesListByResourceGroupSample.js -[ipcommunitieslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesListBySubscriptionSample.js -[ipcommunitiesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesUpdateSample.js -[ipextendedcommunitiescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesCreateSample.js -[ipextendedcommunitiesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesDeleteSample.js -[ipextendedcommunitiesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesGetSample.js -[ipextendedcommunitieslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesListByResourceGroupSample.js -[ipextendedcommunitieslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesListBySubscriptionSample.js -[ipextendedcommunitiesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesUpdateSample.js -[ipprefixescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesCreateSample.js -[ipprefixesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesDeleteSample.js -[ipprefixesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesGetSample.js -[ipprefixeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesListByResourceGroupSample.js -[ipprefixeslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesListBySubscriptionSample.js -[ipprefixesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesUpdateSample.js -[l2isolationdomainscleararptablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsClearArpTableSample.js -[l2isolationdomainsclearneighbortablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsClearNeighborTableSample.js -[l2isolationdomainscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsCreateSample.js -[l2isolationdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsDeleteSample.js -[l2isolationdomainsgetarpentriessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsGetArpEntriesSample.js -[l2isolationdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsGetSample.js -[l2isolationdomainslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsListByResourceGroupSample.js -[l2isolationdomainslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsListBySubscriptionSample.js -[l2isolationdomainsupdateadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsUpdateAdministrativeStateSample.js -[l2isolationdomainsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsUpdateSample.js -[l3isolationdomainscleararptablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsClearArpTableSample.js -[l3isolationdomainsclearneighbortablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsClearNeighborTableSample.js -[l3isolationdomainscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsCreateSample.js -[l3isolationdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsDeleteSample.js -[l3isolationdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsGetSample.js -[l3isolationdomainslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsListByResourceGroupSample.js -[l3isolationdomainslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsListBySubscriptionSample.js -[l3isolationdomainsupdateadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsUpdateAdministrativeStateSample.js -[l3isolationdomainsupdateoptionbadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsUpdateOptionBAdministrativeStateSample.js -[l3isolationdomainsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsUpdateSample.js -[networkdeviceskusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDeviceSkusGetSample.js -[networkdeviceskuslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDeviceSkusListBySubscriptionSample.js -[networkdevicescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesCreateSample.js -[networkdevicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesDeleteSample.js -[networkdevicesgeneratesupportpackagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGenerateSupportPackageSample.js -[networkdevicesgetdynamicinterfacemapssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGetDynamicInterfaceMapsSample.js -[networkdevicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGetSample.js -[networkdevicesgetstaticinterfacemapssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGetStaticInterfaceMapsSample.js -[networkdevicesgetstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGetStatusSample.js -[networkdeviceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesListByResourceGroupSample.js -[networkdeviceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesListBySubscriptionSample.js -[networkdevicesrebootsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesRebootSample.js -[networkdevicesrestoreconfigsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesRestoreConfigSample.js -[networkdevicesupdatepowercyclesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesUpdatePowerCycleSample.js -[networkdevicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesUpdateSample.js -[networkdevicesupdateversionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesUpdateVersionSample.js -[networkfabriccontrollerscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersCreateSample.js -[networkfabriccontrollersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersDeleteSample.js -[networkfabriccontrollersdisableworkloadmanagementnetworksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersDisableWorkloadManagementNetworkSample.js -[networkfabriccontrollersenableworkloadmanagementnetworksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersEnableWorkloadManagementNetworkSample.js -[networkfabriccontrollersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersGetSample.js -[networkfabriccontrollerslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersListByResourceGroupSample.js -[networkfabriccontrollerslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersListBySubscriptionSample.js -[networkfabriccontrollersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersUpdateSample.js -[networkfabricskusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricSkusGetSample.js -[networkfabricskuslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricSkusListBySubscriptionSample.js -[networkfabricscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsCreateSample.js -[networkfabricsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsDeleteSample.js -[networkfabricsdeprovisionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsDeprovisionSample.js -[networkfabricsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsGetSample.js -[networkfabricslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsListByResourceGroupSample.js -[networkfabricslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsListBySubscriptionSample.js -[networkfabricsprovisionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsProvisionSample.js -[networkfabricsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsUpdateSample.js -[networkinterfacescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesCreateSample.js -[networkinterfacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesDeleteSample.js -[networkinterfacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesGetSample.js -[networkinterfacesgetstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesGetStatusSample.js -[networkinterfaceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesListSample.js -[networkinterfacesupdateadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesUpdateAdministrativeStateSample.js -[networkinterfacesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesUpdateSample.js -[networkrackskusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRackSkusGetSample.js -[networkrackskuslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRackSkusListBySubscriptionSample.js -[networkrackscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksCreateSample.js -[networkracksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksDeleteSample.js -[networkracksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksGetSample.js -[networkrackslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksListByResourceGroupSample.js -[networkrackslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksListBySubscriptionSample.js -[networkracksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksUpdateSample.js -[networktonetworkinterconnectscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkToNetworkInterconnectsCreateSample.js -[networktonetworkinterconnectsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkToNetworkInterconnectsDeleteSample.js -[networktonetworkinterconnectsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkToNetworkInterconnectsGetSample.js -[networktonetworkinterconnectslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkToNetworkInterconnectsListSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/operationsListSample.js -[routepoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesCreateSample.js -[routepoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesDeleteSample.js -[routepoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesGetSample.js -[routepolicieslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesListByResourceGroupSample.js -[routepolicieslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesListBySubscriptionSample.js -[routepoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesUpdateSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-managednetworkfabric?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managednetworkfabric/arm-managednetworkfabric/README.md diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsCreateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsCreateSample.js deleted file mode 100644 index b8c8c55c7a09..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsCreateSample.js +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements Access Control List PUT method. - * - * @summary Implements Access Control List PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Create_MinimumSet_Gen.json - */ -async function accessControlListsCreateMinimumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const accessControlListName = "aclOne"; - const body = { - addressFamily: "ipv4", - conditions: [ - { - action: "allow", - destinationAddress: "1.1.1.1", - destinationPort: "21", - sequenceNumber: 3, - sourceAddress: "2.2.2.2", - sourcePort: "65000", - protocol: 6, - }, - ], - location: "EastUs", - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.accessControlLists.create( - resourceGroupName, - accessControlListName, - body - ); - console.log(result); -} - -async function main() { - accessControlListsCreateMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsDeleteSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsDeleteSample.js deleted file mode 100644 index 3770a33a63a3..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsDeleteSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements Access Control List DELETE method. - * - * @summary Implements Access Control List DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Delete_MinimumSet_Gen.json - */ -async function accessControlListsDeleteMinimumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "subscriptionId"; - const accessControlListName = "aclOne"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.accessControlLists.delete(resourceGroupName, accessControlListName); - console.log(result); -} - -async function main() { - accessControlListsDeleteMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsGetSample.js deleted file mode 100644 index 845605d54f14..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements Access Control List GET method. - * - * @summary Implements Access Control List GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Get_MinimumSet_Gen.json - */ -async function accessControlListsGetMinimumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const accessControlListName = "aclOne"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.accessControlLists.get(resourceGroupName, accessControlListName); - console.log(result); -} - -async function main() { - accessControlListsGetMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsListByResourceGroupSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsListByResourceGroupSample.js deleted file mode 100644 index fbe527da8b4e..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements AccessControlLists list by resource group GET method. - * - * @summary Implements AccessControlLists list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_ListByResourceGroup_MinimumSet_Gen.json - */ -async function accessControlListsListByResourceGroupMinimumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accessControlLists.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accessControlListsListByResourceGroupMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsListBySubscriptionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsListBySubscriptionSample.js deleted file mode 100644 index 50a68cb39048..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsListBySubscriptionSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements AccessControlLists list by subscription GET method. - * - * @summary Implements AccessControlLists list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_ListBySubscription_MinimumSet_Gen.json - */ -async function accessControlListsListBySubscriptionMinimumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.accessControlLists.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accessControlListsListBySubscriptionMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsUpdateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsUpdateSample.js deleted file mode 100644 index a2fbea4cea3e..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/accessControlListsUpdateSample.js +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to API to update certain properties of the Access Control List resource. - * - * @summary API to update certain properties of the Access Control List resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Update_MinimumSet_Gen.json - */ -async function accessControlListsUpdateMinimumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const accessControlListName = "aclOne"; - const body = { - addressFamily: "ipv4", - conditions: [ - { - action: "allow", - destinationAddress: "1.1.1.2", - destinationPort: "21", - sequenceNumber: 4, - sourceAddress: "2.2.2.3", - sourcePort: "65000", - protocol: 6, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.accessControlLists.update( - resourceGroupName, - accessControlListName, - body - ); - console.log(result); -} - -async function main() { - accessControlListsUpdateMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksClearArpEntriesSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksClearArpEntriesSample.js deleted file mode 100644 index be7699ebe9ee..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksClearArpEntriesSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to clearArpEntries for externalNetwork. - * - * @summary clearArpEntries for externalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_clearArpEntries_MaximumSet_Gen.json - */ -async function externalNetworksClearArpEntriesMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain", - ], - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.externalNetworks.beginClearArpEntriesAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksClearArpEntriesMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksClearIpv6NeighborsSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksClearIpv6NeighborsSample.js deleted file mode 100644 index d0419d9e66e9..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksClearIpv6NeighborsSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to clearIpv6Neighbors for externalNetwork. - * - * @summary clearIpv6Neighbors for externalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_clearIpv6Neighbors_MaximumSet_Gen.json - */ -async function externalNetworksClearIpv6NeighborsMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain", - ], - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.externalNetworks.beginClearIpv6NeighborsAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksClearIpv6NeighborsMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksCreateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksCreateSample.js deleted file mode 100644 index fa5d9e381119..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksCreateSample.js +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates ExternalNetwork PUT method. - * - * @summary Creates ExternalNetwork PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Create_MaximumSet_Gen.json - */ -async function externalNetworksCreateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body = { - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName", - importRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName", - optionAProperties: { - bfdConfiguration: {}, - mtu: 1500, - peerASN: 65047, - primaryIpv4Prefix: "10.1.1.0/30", - primaryIpv6Prefix: "3FFE:FFFF:0:CD30::a0/126", - secondaryIpv4Prefix: "10.1.1.4/30", - secondaryIpv6Prefix: "3FFE:FFFF:0:CD30::a4/126", - vlanId: 1001, - }, - optionBProperties: { - exportRouteTargets: ["65046:10039"], - importRouteTargets: ["65046:10039"], - }, - peeringOption: "OptionA", - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.externalNetworks.beginCreateAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksDeleteSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksDeleteSample.js deleted file mode 100644 index b2a239b0d30e..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements ExternalNetworks DELETE method. - * - * @summary Implements ExternalNetworks DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Delete_MaximumSet_Gen.json - */ -async function externalNetworksDeleteMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.externalNetworks.beginDeleteAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName - ); - console.log(result); -} - -async function main() { - externalNetworksDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksGetSample.js deleted file mode 100644 index 1c0f2fc9f136..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksGetSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements ExternalNetworks GET method. - * - * @summary Implements ExternalNetworks GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Get_MaximumSet_Gen.json - */ -async function externalNetworksGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.externalNetworks.get( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName - ); - console.log(result); -} - -async function main() { - externalNetworksGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksListSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksListSample.js deleted file mode 100644 index 60541a7de420..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksListSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements External Networks list by resource group GET method. - * - * @summary Implements External Networks list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_List_MaximumSet_Gen.json - */ -async function externalNetworksListMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.externalNetworks.list(resourceGroupName, l3IsolationDomainName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - externalNetworksListMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksUpdateAdministrativeStateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksUpdateAdministrativeStateSample.js deleted file mode 100644 index 16de1add307b..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksUpdateAdministrativeStateSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Executes update operation to enable or disable administrative State for externalNetwork. - * - * @summary Executes update operation to enable or disable administrative State for externalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_updateAdministrativeState_MaximumSet_Gen.json - */ -async function externalNetworksUpdateAdministrativeStateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain", - ], - state: "Enable", - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.externalNetworks.beginUpdateAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksUpdateAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksUpdateBfdForBgpAdministrativeStateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksUpdateBfdForBgpAdministrativeStateSample.js deleted file mode 100644 index cfbd078cf899..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksUpdateBfdForBgpAdministrativeStateSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update BfdForBgp for externalNetwork. - * - * @summary Update BfdForBgp for externalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_updateBfdForBgpAdministrativeState_MaximumSet_Gen.json - */ -async function externalNetworksUpdateBfdForBgpAdministrativeStateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain", - ], - state: "Enable", - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.externalNetworks.beginUpdateBfdForBgpAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksUpdateBfdForBgpAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksUpdateBgpAdministrativeStateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksUpdateBgpAdministrativeStateSample.js deleted file mode 100644 index d33dbc6fd4b6..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksUpdateBgpAdministrativeStateSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update BGP for externalNetwork. - * - * @summary Update BGP for externalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_updateBgpAdministrativeState_MaximumSet_Gen.json - */ -async function externalNetworksUpdateBgpAdministrativeStateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain", - ], - state: "Enable", - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.externalNetworks.beginUpdateBgpAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksUpdateBgpAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksUpdateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksUpdateSample.js deleted file mode 100644 index e600bc53c589..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/externalNetworksUpdateSample.js +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to API to update certain properties of the ExternalNetworks resource. - * - * @summary API to update certain properties of the ExternalNetworks resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Update_MaximumSet_Gen.json - */ -async function externalNetworksUpdateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body = { - annotation: "Lab 1", - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName", - importRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName", - optionAProperties: { - bfdConfiguration: {}, - mtu: 1500, - peerASN: 65047, - primaryIpv4Prefix: "10.1.1.0/30", - primaryIpv6Prefix: "3FFE:FFFF:0:CD30::a0/126", - secondaryIpv4Prefix: "10.1.1.4/30", - secondaryIpv6Prefix: "3FFE:FFFF:0:CD30::a4/126", - vlanId: 1001, - }, - optionBProperties: { - exportRouteTargets: ["65046:10039"], - importRouteTargets: ["65046:10039"], - }, - peeringOption: "OptionA", - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.externalNetworks.beginUpdateAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksClearArpEntriesSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksClearArpEntriesSample.js deleted file mode 100644 index a8e1814804a5..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksClearArpEntriesSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to clearArpEntries for internalNetwork. - * - * @summary clearArpEntries for internalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_clearArpEntries_MaximumSet_Gen.json - */ -async function internalNetworksClearArpEntriesMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain", - ], - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.internalNetworks.beginClearArpEntriesAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksClearArpEntriesMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksClearIpv6NeighborsSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksClearIpv6NeighborsSample.js deleted file mode 100644 index bb11b763d546..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksClearIpv6NeighborsSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to clearIpv6Neighbors for internalNetwork. - * - * @summary clearIpv6Neighbors for internalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_clearIpv6Neighbors_MaximumSet_Gen.json - */ -async function internalNetworksClearIpv6NeighborsMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain", - ], - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.internalNetworks.beginClearIpv6NeighborsAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksClearIpv6NeighborsMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksCreateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksCreateSample.js deleted file mode 100644 index 3b303f317884..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksCreateSample.js +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates InternalNetwork PUT method. - * - * @summary Creates InternalNetwork PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Create_MaximumSet_Gen.json - */ -async function internalNetworksCreateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body = { - bgpConfiguration: { - allowAS: 1, - allowASOverride: "Enable", - bfdConfiguration: {}, - defaultRouteOriginate: "True", - ipv4ListenRangePrefixes: ["10.1.0.0/25"], - ipv4NeighborAddress: [{ address: "10.1.0.0" }], - ipv6ListenRangePrefixes: ["2fff::/66"], - ipv6NeighborAddress: [{ address: "2fff::" }], - peerASN: 6, - }, - connectedIPv4Subnets: [{ prefix: "10.0.0.0/24" }], - connectedIPv6Subnets: [{ prefix: "3FFE:FFFF:0:CD30::a0/29" }], - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName2", - importRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName1", - mtu: 1500, - staticRouteConfiguration: { - bfdConfiguration: {}, - ipv4Routes: [{ nextHop: ["10.0.0.1"], prefix: "10.1.0.0/24" }], - ipv6Routes: [{ nextHop: ["2ffe::1"], prefix: "2fff::/64" }], - }, - vlanId: 501, - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.internalNetworks.beginCreateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksDeleteSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksDeleteSample.js deleted file mode 100644 index 0a0fa74d010a..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements InternalNetworks DELETE method. - * - * @summary Implements InternalNetworks DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Delete_MaximumSet_Gen.json - */ -async function internalNetworksDeleteMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.internalNetworks.beginDeleteAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName - ); - console.log(result); -} - -async function main() { - internalNetworksDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksGetSample.js deleted file mode 100644 index b6dd74645a03..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksGetSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets a InternalNetworks. - * - * @summary Gets a InternalNetworks. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Get_MaximumSet_Gen.json - */ -async function internalNetworksGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.internalNetworks.get( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName - ); - console.log(result); -} - -async function main() { - internalNetworksGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksListSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksListSample.js deleted file mode 100644 index cc151101ad96..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksListSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Displays InternalNetworks list by resource group GET method. - * - * @summary Displays InternalNetworks list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_List_MaximumSet_Gen.json - */ -async function internalNetworksListMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.internalNetworks.list(resourceGroupName, l3IsolationDomainName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - internalNetworksListMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateAdministrativeStateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateAdministrativeStateSample.js deleted file mode 100644 index aa9899385ba5..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateAdministrativeStateSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update Administrative state of InternalNetworks on resources referred by their resource ids. - * - * @summary Update Administrative state of InternalNetworks on resources referred by their resource ids. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateAdministrativeState_MaximumSet_Gen.json - */ -async function internalNetworksUpdateAdministrativeStateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/example-l3domain/internalNetworks/example-internalnetwork", - ], - state: "Enable", - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.internalNetworks.beginUpdateAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksUpdateAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateBfdForBgpAdministrativeStateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateBfdForBgpAdministrativeStateSample.js deleted file mode 100644 index 3d2078a8a365..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateBfdForBgpAdministrativeStateSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update BfdForBgp for internalNetwork. - * - * @summary Update BfdForBgp for internalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateBfdForBgpAdministrativeState_MaximumSet_Gen.json - */ -async function internalNetworksUpdateBfdForBgpAdministrativeStateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/example-l3domain/internalNetworks/example-internalnetwork", - ], - state: "Enable", - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.internalNetworks.beginUpdateBfdForBgpAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksUpdateBfdForBgpAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateBfdForStaticRouteAdministrativeStateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateBfdForStaticRouteAdministrativeStateSample.js deleted file mode 100644 index dd7cd40461da..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateBfdForStaticRouteAdministrativeStateSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update BfdForStaticRoutes for internalNetwork. - * - * @summary Update BfdForStaticRoutes for internalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateBfdForStaticRouteAdministrativeState_MaximumSet_Gen.json - */ -async function internalNetworksUpdateBfdForStaticRouteAdministrativeStateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/example-l3domain/internalNetworks/example-internalnetwork", - ], - state: "Enable", - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = - await client.internalNetworks.beginUpdateBfdForStaticRouteAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksUpdateBfdForStaticRouteAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateBgpAdministrativeStateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateBgpAdministrativeStateSample.js deleted file mode 100644 index 85428e40b8ae..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateBgpAdministrativeStateSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update BGP state for internalNetwork. Allowed only on edge devices. - * - * @summary Update BGP state for internalNetwork. Allowed only on edge devices. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateBgpAdministrativeState_MaximumSet_Gen.json - */ -async function internalNetworksUpdateBgpAdministrativeStateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/example-l3domain/internalNetworks/example-internalnetwork", - ], - state: "Enable", - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.internalNetworks.beginUpdateBgpAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksUpdateBgpAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateSample.js deleted file mode 100644 index eb146e06d821..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/internalNetworksUpdateSample.js +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates a InternalNetworks. - * - * @summary Updates a InternalNetworks. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Update_MaximumSet_Gen.json - */ -async function internalNetworksUpdateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body = { - bgpConfiguration: { - allowAS: 1, - allowASOverride: "Enable", - bfdConfiguration: {}, - defaultRouteOriginate: "True", - ipv4ListenRangePrefixes: ["10.1.0.0/25"], - ipv4NeighborAddress: [{ address: "10.1.0.0" }], - ipv6ListenRangePrefixes: ["2fff::/66"], - ipv6NeighborAddress: [{ address: "2fff::" }], - peerASN: 6, - }, - connectedIPv4Subnets: [{ prefix: "10.0.0.0/24" }], - connectedIPv6Subnets: [{ prefix: "3FFE:FFFF:0:CD30::a0/29" }], - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName2", - importRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName1", - mtu: 1500, - staticRouteConfiguration: { - bfdConfiguration: {}, - ipv4Routes: [{ nextHop: ["10.0.0.1"], prefix: "10.1.0.0/24" }], - ipv6Routes: [{ nextHop: ["2ffe::1"], prefix: "2fff::/64" }], - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.internalNetworks.beginUpdateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesCreateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesCreateSample.js deleted file mode 100644 index db9da18ccca1..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesCreateSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements an IP Community PUT method. - * - * @summary Implements an IP Community PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Create_MaximumSet_Gen.json - */ -async function ipCommunitiesCreateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgIpCommunityLists"; - const ipCommunityName = "example-ipCommunity"; - const body = { - action: "Permit", - annotation: "annotationValue", - communityMembers: ["1234:5678"], - location: "EastUS", - tags: { key2814: "" }, - wellKnownCommunities: ["Internet", "LocalAS", "NoExport", "GShut"], - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.ipCommunities.beginCreateAndWait( - resourceGroupName, - ipCommunityName, - body - ); - console.log(result); -} - -async function main() { - ipCommunitiesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesDeleteSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesDeleteSample.js deleted file mode 100644 index 825bfac2127b..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesDeleteSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements IP Community DELETE method. - * - * @summary Implements IP Community DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Delete_MaximumSet_Gen.json - */ -async function ipCommunitiesDeleteMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const ipCommunityName = "IpCommunityList1"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.ipCommunities.beginDeleteAndWait(resourceGroupName, ipCommunityName); - console.log(result); -} - -async function main() { - ipCommunitiesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesGetSample.js deleted file mode 100644 index a7d35c842995..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements an IP Community GET method. - * - * @summary Implements an IP Community GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Get_MaximumSet_Gen.json - */ -async function ipCommunitiesGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const ipCommunityName = "example-ipCommunity"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.ipCommunities.get(resourceGroupName, ipCommunityName); - console.log(result); -} - -async function main() { - ipCommunitiesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesListByResourceGroupSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesListByResourceGroupSample.js deleted file mode 100644 index ae9e70cd21a2..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements IpCommunities list by resource group GET method. - * - * @summary Implements IpCommunities list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_ListByResourceGroup_MaximumSet_Gen.json - */ -async function ipCommunitiesListByResourceGroupMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.ipCommunities.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipCommunitiesListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesListBySubscriptionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesListBySubscriptionSample.js deleted file mode 100644 index 87461a28f796..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesListBySubscriptionSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements IpCommunities list by subscription GET method. - * - * @summary Implements IpCommunities list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_ListBySubscription_MaximumSet_Gen.json - */ -async function ipCommunitiesListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.ipCommunities.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipCommunitiesListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesUpdateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesUpdateSample.js deleted file mode 100644 index 6cd52deecd87..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipCommunitiesUpdateSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to API to update certain properties of the IP Community resource. - * - * @summary API to update certain properties of the IP Community resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Update_MaximumSet_Gen.json - */ -async function ipCommunitiesUpdateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const ipCommunityName = "example-ipCommunity"; - const body = { tags: { key2814: "" } }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.ipCommunities.beginUpdateAndWait( - resourceGroupName, - ipCommunityName, - body - ); - console.log(result); -} - -async function main() { - ipCommunitiesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesCreateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesCreateSample.js deleted file mode 100644 index 09db5eecc1ba..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesCreateSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements IP Extended Community PUT method. - * - * @summary Implements IP Extended Community PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Create_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesCreateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgIpExtendedCommunityLists"; - const ipExtendedCommunityName = "example_ipExtendedCommunity"; - const body = { - action: "Permit", - annotation: "annotationValue", - location: "EastUs", - routeTargets: ["1234:5678"], - tags: { key5054: "key" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.ipExtendedCommunities.beginCreateAndWait( - resourceGroupName, - ipExtendedCommunityName, - body - ); - console.log(result); -} - -async function main() { - ipExtendedCommunitiesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesDeleteSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesDeleteSample.js deleted file mode 100644 index 86c694c957a6..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesDeleteSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements IP Extended Community DELETE method. - * - * @summary Implements IP Extended Community DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Delete_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesDeleteMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgIpExtendedCommunityLists"; - const ipExtendedCommunityName = "example_ipExtendedCommunity"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.ipExtendedCommunities.beginDeleteAndWait( - resourceGroupName, - ipExtendedCommunityName - ); - console.log(result); -} - -async function main() { - ipExtendedCommunitiesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesGetSample.js deleted file mode 100644 index d95dd09c9363..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements IP Extended Community GET method. - * - * @summary Implements IP Extended Community GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Get_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgIpExtendedCommunityLists"; - const ipExtendedCommunityName = "example_ipExtendedCommunity"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.ipExtendedCommunities.get(resourceGroupName, ipExtendedCommunityName); - console.log(result); -} - -async function main() { - ipExtendedCommunitiesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesListByResourceGroupSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesListByResourceGroupSample.js deleted file mode 100644 index 97dcd5596846..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements IpExtendedCommunities list by resource group GET method. - * - * @summary Implements IpExtendedCommunities list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_ListByResourceGroup_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesListByResourceGroupMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgIpExtendedCommunityLists"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.ipExtendedCommunities.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipExtendedCommunitiesListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesListBySubscriptionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesListBySubscriptionSample.js deleted file mode 100644 index 97ccaab301f2..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesListBySubscriptionSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements IpExtendedCommunities list by subscription GET method. - * - * @summary Implements IpExtendedCommunities list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_ListBySubscription_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.ipExtendedCommunities.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipExtendedCommunitiesListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesUpdateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesUpdateSample.js deleted file mode 100644 index 886b8500ed38..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipExtendedCommunitiesUpdateSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to API to update certain properties of the IP Extended Community resource. - * - * @summary API to update certain properties of the IP Extended Community resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Update_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesUpdateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgIpExtendedCommunityLists"; - const ipExtendedCommunityName = "example_ipExtendedCommunity"; - const body = { tags: { key5054: "key1" } }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.ipExtendedCommunities.beginUpdateAndWait( - resourceGroupName, - ipExtendedCommunityName, - body - ); - console.log(result); -} - -async function main() { - ipExtendedCommunitiesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesCreateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesCreateSample.js deleted file mode 100644 index 5fb222b538b9..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesCreateSample.js +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements IP Prefix PUT method. - * - * @summary Implements IP Prefix PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Create_MaximumSet_Gen.json - */ -async function ipPrefixesCreateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourcegroupname"; - const ipPrefixName = "example-ipPrefix"; - const body = { - annotation: "annotationValue", - ipPrefixRules: [ - { - action: "Permit", - condition: "EqualTo", - networkPrefix: "1.1.1.0/24", - sequenceNumber: 12, - subnetMaskLength: 28, - }, - ], - location: "EastUS", - tags: { key6404: "" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.ipPrefixes.beginCreateAndWait(resourceGroupName, ipPrefixName, body); - console.log(result); -} - -async function main() { - ipPrefixesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesDeleteSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesDeleteSample.js deleted file mode 100644 index 89fa2cecb521..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesDeleteSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements IP Prefix DELETE method. - * - * @summary Implements IP Prefix DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Delete_MaximumSet_Gen.json - */ -async function ipPrefixesDeleteMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "xxxxxx"; - const resourceGroupName = process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgIpPrefixLists"; - const ipPrefixName = "example-ipPrefix"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.ipPrefixes.beginDeleteAndWait(resourceGroupName, ipPrefixName); - console.log(result); -} - -async function main() { - ipPrefixesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesGetSample.js deleted file mode 100644 index fa2a8cedcd90..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements IP Prefix GET method. - * - * @summary Implements IP Prefix GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Get_MaximumSet_Gen.json - */ -async function ipPrefixesGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "xxxxxx"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourcegroupname"; - const ipPrefixName = "example-ipPrefix"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.ipPrefixes.get(resourceGroupName, ipPrefixName); - console.log(result); -} - -async function main() { - ipPrefixesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesListByResourceGroupSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesListByResourceGroupSample.js deleted file mode 100644 index 0cb4196286ce..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements IpPrefixes list by resource group GET method. - * - * @summary Implements IpPrefixes list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_ListByResourceGroup_MaximumSet_Gen.json - */ -async function ipPrefixesListByResourceGroupMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourcegroupname"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.ipPrefixes.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipPrefixesListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesListBySubscriptionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesListBySubscriptionSample.js deleted file mode 100644 index dbe36add4fdc..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesListBySubscriptionSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements IpPrefixes list by subscription GET method. - * - * @summary Implements IpPrefixes list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_ListBySubscription_MaximumSet_Gen.json - */ -async function ipPrefixesListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.ipPrefixes.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipPrefixesListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesUpdateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesUpdateSample.js deleted file mode 100644 index c1d62749a8a5..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/ipPrefixesUpdateSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to API to update certain properties of the IP Prefix resource. - * - * @summary API to update certain properties of the IP Prefix resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Update_MaximumSet_Gen.json - */ -async function ipPrefixesUpdateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourcegroupname"; - const ipPrefixName = "example-ipPrefix"; - const body = { tags: { key3127: "key" } }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.ipPrefixes.beginUpdateAndWait(resourceGroupName, ipPrefixName, body); - console.log(result); -} - -async function main() { - ipPrefixesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsClearArpTableSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsClearArpTableSample.js deleted file mode 100644 index ab393d98c5c8..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsClearArpTableSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Clears ARP tables for this Isolation Domain. - * - * @summary Clears ARP tables for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_clearArpTable_MaximumSet_Gen.json - */ -async function l2IsolationDomainsClearArpTableMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "example-l2domain"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/example-l2domain", - ], - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.l2IsolationDomains.beginClearArpTableAndWait( - resourceGroupName, - l2IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsClearArpTableMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsClearNeighborTableSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsClearNeighborTableSample.js deleted file mode 100644 index 97ea6368e859..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsClearNeighborTableSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Clears IPv6 neighbors for this Isolation Domain. - * - * @summary Clears IPv6 neighbors for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_clearNeighborTable_MaximumSet_Gen.json - */ -async function l2IsolationDomainsClearNeighborTableMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "qc"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgL2IsolationDomains"; - const l2IsolationDomainName = "oz"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/example-l2domain", - ], - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.l2IsolationDomains.beginClearNeighborTableAndWait( - resourceGroupName, - l2IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsClearNeighborTableMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsCreateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsCreateSample.js deleted file mode 100644 index 58592332bd12..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsCreateSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied on the devices only after the isolation domain is enabled. - * - * @summary Creates layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied on the devices only after the isolation domain is enabled. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Create_MaximumSet_Gen.json - */ -async function l2IsolationDomainsCreateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "example-l2domain"; - const body = { - location: "eastus", - mtu: 1500, - networkFabricId: - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/networkFabrics/FabricName", - vlanId: 501, - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.l2IsolationDomains.beginCreateAndWait( - resourceGroupName, - l2IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsDeleteSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsDeleteSample.js deleted file mode 100644 index 8ca4b312bab6..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsDeleteSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes layer 2 connectivity between compute nodes by managed by named L2 Isolation name. - * - * @summary Deletes layer 2 connectivity between compute nodes by managed by named L2 Isolation name. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Delete_MaximumSet_Gen.json - */ -async function l2IsolationDomainsDeleteMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "example-l2domain"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.l2IsolationDomains.beginDeleteAndWait( - resourceGroupName, - l2IsolationDomainName - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsGetArpEntriesSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsGetArpEntriesSample.js deleted file mode 100644 index 4c4004644b78..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsGetArpEntriesSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Clears IPv6 neighbors for this Isolation Domain. - * - * @summary Clears IPv6 neighbors for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_getArpEntries_MaximumSet_Gen.json - */ -async function l2IsolationDomainsGetArpEntriesMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "l2IsolationDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.l2IsolationDomains.beginGetArpEntriesAndWait( - resourceGroupName, - l2IsolationDomainName - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsGetArpEntriesMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsGetSample.js deleted file mode 100644 index cbec73849ca5..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements L2 Isolation Domain GET method. - * - * @summary Implements L2 Isolation Domain GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Get_MaximumSet_Gen.json - */ -async function l2IsolationDomainsGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "l2IsolationDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.l2IsolationDomains.get(resourceGroupName, l2IsolationDomainName); - console.log(result); -} - -async function main() { - l2IsolationDomainsGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsListByResourceGroupSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsListByResourceGroupSample.js deleted file mode 100644 index 60b801e33b0c..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Displays L2IsolationDomains list by resource group GET method. - * - * @summary Displays L2IsolationDomains list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_ListByResourceGroup_MaximumSet_Gen.json - */ -async function l2IsolationDomainsListByResourceGroupMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.l2IsolationDomains.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - l2IsolationDomainsListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsListBySubscriptionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsListBySubscriptionSample.js deleted file mode 100644 index 033c13995cac..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsListBySubscriptionSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Displays L2IsolationDomains list by subscription GET method. - * - * @summary Displays L2IsolationDomains list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_ListBySubscription_MaximumSet_Gen.json - */ -async function l2IsolationDomainsListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.l2IsolationDomains.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - l2IsolationDomainsListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsUpdateAdministrativeStateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsUpdateAdministrativeStateSample.js deleted file mode 100644 index 13ad9137ca24..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsUpdateAdministrativeStateSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Enables isolation domain across the fabric or on specified racks. - * - * @summary Enables isolation domain across the fabric or on specified racks. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_updateAdministrativeState_MaximumSet_Gen.json - */ -async function l2IsolationDomainsUpdateAdministrativeStateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "l2IsolationDomainName"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/example-l2domain", - ], - state: "Enable", - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.l2IsolationDomains.beginUpdateAdministrativeStateAndWait( - resourceGroupName, - l2IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsUpdateAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsUpdateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsUpdateSample.js deleted file mode 100644 index 5b083a062f8a..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l2IsolationDomainsUpdateSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to API to update certain properties of the L2 Isolation Domain resource. - * - * @summary API to update certain properties of the L2 Isolation Domain resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Update_MaximumSet_Gen.json - */ -async function l2IsolationDomainsUpdateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "l2IsolationDomainName"; - const body = { mtu: 9000 }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.l2IsolationDomains.beginUpdateAndWait( - resourceGroupName, - l2IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsClearArpTableSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsClearArpTableSample.js deleted file mode 100644 index 2eb95d1da0c9..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsClearArpTableSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Clears ARP tables for this Isolation Domain. - * - * @summary Clears ARP tables for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_clearArpTable_MaximumSet_Gen.json - */ -async function l3IsolationDomainsClearArpTableMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "l3IsolationDomainName"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain", - ], - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.l3IsolationDomains.beginClearArpTableAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsClearArpTableMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsClearNeighborTableSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsClearNeighborTableSample.js deleted file mode 100644 index 1215e241d3a4..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsClearNeighborTableSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Clears IPv6 neighbor tables for this Isolation Domain. - * - * @summary Clears IPv6 neighbor tables for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_clearNeighborTable_MaximumSet_Gen.json - */ -async function l3IsolationDomainsClearNeighborTableMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const body = { resourceIds: ["wnaxqikneofcni"] }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.l3IsolationDomains.beginClearNeighborTableAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsClearNeighborTableMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsCreateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsCreateSample.js deleted file mode 100644 index 4c14e1e7373c..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsCreateSample.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is enabled. - * - * @summary Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is enabled. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Create_MaximumSet_Gen.json - */ -async function l3IsolationDomainsCreateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const body = { - description: "creating L3 isolation domain", - aggregateRouteConfiguration: { - ipv4Routes: [{ prefix: "10.0.0.0/24" }], - ipv6Routes: [{ prefix: "10.0.0.1" }], - }, - connectedSubnetRoutePolicy: { - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName2", - }, - location: "eastus", - networkFabricId: - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/networkFabrics/FabricName", - redistributeConnectedSubnets: "True", - redistributeStaticRoutes: "False", - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.l3IsolationDomains.beginCreateAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsDeleteSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsDeleteSample.js deleted file mode 100644 index 502f55bfb31c..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsDeleteSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes layer 3 connectivity between compute nodes by managed by named L3 Isolation name. - * - * @summary Deletes layer 3 connectivity between compute nodes by managed by named L3 Isolation name. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Delete_MaximumSet_Gen.json - */ -async function l3IsolationDomainsDeleteMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.l3IsolationDomains.beginDeleteAndWait( - resourceGroupName, - l3IsolationDomainName - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsGetSample.js deleted file mode 100644 index c3b34188892f..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieves details of this L3 Isolation Domain. - * - * @summary Retrieves details of this L3 Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Get_MaximumSet_Gen.json - */ -async function l3IsolationDomainsGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.l3IsolationDomains.get(resourceGroupName, l3IsolationDomainName); - console.log(result); -} - -async function main() { - l3IsolationDomainsGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsListByResourceGroupSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsListByResourceGroupSample.js deleted file mode 100644 index 59cf27d764e6..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Displays L3IsolationDomains list by resource group GET method. - * - * @summary Displays L3IsolationDomains list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_ListByResourceGroup_MaximumSet_Gen.json - */ -async function l3IsolationDomainsListByResourceGroupMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.l3IsolationDomains.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - l3IsolationDomainsListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsListBySubscriptionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsListBySubscriptionSample.js deleted file mode 100644 index 6388ea176a61..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsListBySubscriptionSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Displays L3IsolationDomains list by subscription GET method. - * - * @summary Displays L3IsolationDomains list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_ListBySubscription_MaximumSet_Gen.json - */ -async function l3IsolationDomainsListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.l3IsolationDomains.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - l3IsolationDomainsListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsUpdateAdministrativeStateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsUpdateAdministrativeStateSample.js deleted file mode 100644 index c2f7547fe0aa..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsUpdateAdministrativeStateSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Enables racks for this Isolation Domain. - * - * @summary Enables racks for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_updateAdministrativeState_MaximumSet_Gen.json - */ -async function l3IsolationDomainsUpdateAdministrativeStateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain", - ], - state: "Enable", - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.l3IsolationDomains.beginUpdateAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsUpdateAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsUpdateOptionBAdministrativeStateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsUpdateOptionBAdministrativeStateSample.js deleted file mode 100644 index 4e4b7dacc193..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsUpdateOptionBAdministrativeStateSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update administrative state of option B on CE devices - * - * @summary Update administrative state of option B on CE devices - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_updateOptionBAdministrativeState_MaximumSet_Gen.json - */ -async function l3IsolationDomainsUpdateOptionBAdministrativeStateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const body = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain", - ], - state: "Enable", - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.l3IsolationDomains.beginUpdateOptionBAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsUpdateOptionBAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsUpdateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsUpdateSample.js deleted file mode 100644 index 1318e5873349..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/l3IsolationDomainsUpdateSample.js +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to API to update certain properties of the L3 Isolation Domain resource. - * - * @summary API to update certain properties of the L3 Isolation Domain resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Update_MaximumSet_Gen.json - */ -async function l3IsolationDomainsUpdateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const body = { - description: "creating L3 isolation domain", - aggregateRouteConfiguration: { - ipv4Routes: [{ prefix: "10.0.0.0/24" }], - ipv6Routes: [{ prefix: "3FFE:FFFF:0:CD30::a0/29" }], - }, - connectedSubnetRoutePolicy: { - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName", - }, - redistributeConnectedSubnets: "True", - redistributeStaticRoutes: "False", - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.l3IsolationDomains.beginUpdateAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDeviceSkusGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDeviceSkusGetSample.js deleted file mode 100644 index 00e19234a330..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDeviceSkusGetSample.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get Network Device SKU details. - * - * @summary Get Network Device SKU details. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDeviceSkus_Get_MaximumSet_Gen.json - */ -async function networkDeviceSkusGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const networkDeviceSkuName = "DefaultSku"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkDeviceSkus.get(networkDeviceSkuName); - console.log(result); -} - -async function main() { - networkDeviceSkusGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDeviceSkusListBySubscriptionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDeviceSkusListBySubscriptionSample.js deleted file mode 100644 index 682ce2e4a20f..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDeviceSkusListBySubscriptionSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List Network Device SKUs for the given subscription. - * - * @summary List Network Device SKUs for the given subscription. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDeviceSkus_ListBySubscription_MaximumSet_Gen.json - */ -async function networkDeviceSkusListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.networkDeviceSkus.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkDeviceSkusListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesCreateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesCreateSample.js deleted file mode 100644 index 72db9d9f3773..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesCreateSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a Network Device resource - * - * @summary Create a Network Device resource - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Create_MaximumSet_Gen.json - */ -async function networkDevicesCreateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const body = { - annotation: "null", - hostName: "networkDeviceName", - location: "eastus", - networkDeviceRole: "CE", - networkDeviceSku: "DefaultSku", - serialNumber: "Arista;DCS-7280PR3-24;12.05;JPE21330382", - tags: { keyID: "keyValue" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkDevices.beginCreateAndWait( - resourceGroupName, - networkDeviceName, - body - ); - console.log(result); -} - -async function main() { - networkDevicesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesDeleteSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesDeleteSample.js deleted file mode 100644 index f58065230fda..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesDeleteSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the Network Device resource. - * - * @summary Delete the Network Device resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Delete_MaximumSet_Gen.json - */ -async function networkDevicesDeleteMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkDevices.beginDeleteAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGenerateSupportPackageSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGenerateSupportPackageSample.js deleted file mode 100644 index 201a536f146d..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGenerateSupportPackageSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Generate Support Package for the given Network Device. - * - * @summary Generate Support Package for the given Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_generateSupportPackage_MaximumSet_Gen.json - */ -async function networkDevicesGenerateSupportPackageMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkDevices.beginGenerateSupportPackageAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesGenerateSupportPackageMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGetDynamicInterfaceMapsSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGetDynamicInterfaceMapsSample.js deleted file mode 100644 index 8a248c343cf5..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGetDynamicInterfaceMapsSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the dynamic interface maps for the given Network Device. - * - * @summary Get the dynamic interface maps for the given Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_getDynamicInterfaceMaps_MaximumSet_Gen.json - */ -async function networkDevicesGetDynamicInterfaceMapsMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkDevices.beginGetDynamicInterfaceMapsAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesGetDynamicInterfaceMapsMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGetSample.js deleted file mode 100644 index 8ef730f36b28..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the Network Device resource details. - * - * @summary Get the Network Device resource details. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Get_MaximumSet_Gen.json - */ -async function networkDevicesGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkDevices.get(resourceGroupName, networkDeviceName); - console.log(result); -} - -async function main() { - networkDevicesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGetStaticInterfaceMapsSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGetStaticInterfaceMapsSample.js deleted file mode 100644 index 5d6ffea07ede..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGetStaticInterfaceMapsSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the static interface maps for the given Network Device. - * - * @summary Get the static interface maps for the given Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_getStaticInterfaceMaps_MaximumSet_Gen.json - */ -async function networkDevicesGetStaticInterfaceMapsMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkDevices.beginGetStaticInterfaceMapsAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesGetStaticInterfaceMapsMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGetStatusSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGetStatusSample.js deleted file mode 100644 index 00a84bdc3006..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesGetStatusSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the running status of the Network Device. - * - * @summary Get the running status of the Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_getStatus_MaximumSet_Gen.json - */ -async function networkDevicesGetStatusMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkDevices.beginGetStatusAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesGetStatusMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesListByResourceGroupSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesListByResourceGroupSample.js deleted file mode 100644 index 3c5bbdbc7332..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all the Network Device resources in a given resource group. - * - * @summary List all the Network Device resources in a given resource group. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_ListByResourceGroup_MaximumSet_Gen.json - */ -async function networkDevicesListByResourceGroupMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.networkDevices.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkDevicesListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesListBySubscriptionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesListBySubscriptionSample.js deleted file mode 100644 index 5f94ff7e7db8..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesListBySubscriptionSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all the Network Device resources in a given subscription. - * - * @summary List all the Network Device resources in a given subscription. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_ListBySubscription_MaximumSet_Gen.json - */ -async function networkDevicesListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.networkDevices.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkDevicesListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesRebootSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesRebootSample.js deleted file mode 100644 index 7209b1930341..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesRebootSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Reboot the Network Device. - * - * @summary Reboot the Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_reboot_MaximumSet_Gen.json - */ -async function networkDevicesRebootMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkDevices.beginRebootAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesRebootMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesRestoreConfigSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesRestoreConfigSample.js deleted file mode 100644 index d9f24988e07b..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesRestoreConfigSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Restore the configuration of the Network Device resource to last known good configuration. - * - * @summary Restore the configuration of the Network Device resource to last known good configuration. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_restoreConfig_MaximumSet_Gen.json - */ -async function networkDevicesRestoreConfigMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkDevices.beginRestoreConfigAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesRestoreConfigMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesUpdatePowerCycleSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesUpdatePowerCycleSample.js deleted file mode 100644 index d891b85f6d17..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesUpdatePowerCycleSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update PDU power cycle of the Network Device. - * - * @summary Update PDU power cycle of the Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_updatePowerCycle_MaximumSet_Gen.json - */ -async function networkDevicesUpdatePowerCycleMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const body = { powerEnd: "Primary", state: "On" }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkDevices.beginUpdatePowerCycleAndWait( - resourceGroupName, - networkDeviceName, - body - ); - console.log(result); -} - -async function main() { - networkDevicesUpdatePowerCycleMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesUpdateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesUpdateSample.js deleted file mode 100644 index 10889dd8bb08..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesUpdateSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update certain properties of the Network Device resource. - * - * @summary Update certain properties of the Network Device resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Update_MaximumSet_Gen.json - */ -async function networkDevicesUpdateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const body = { - annotation: "null", - hostName: "networkDeviceName", - serialNumber: "Arista;DCS-7280PR3-24;12.05;JPE21330382", - tags: { keyID: "keyValue" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkDevices.beginUpdateAndWait( - resourceGroupName, - networkDeviceName, - body - ); - console.log(result); -} - -async function main() { - networkDevicesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesUpdateVersionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesUpdateVersionSample.js deleted file mode 100644 index 49826ef2303a..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkDevicesUpdateVersionSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update the SKU version of the Network Device resource. - * - * @summary Update the SKU version of the Network Device resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_updateVersion_MaximumSet_Gen.json - */ -async function networkDevicesUpdateVersionMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const body = { skuVersion: "DefaultSku" }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkDevices.beginUpdateVersionAndWait( - resourceGroupName, - networkDeviceName, - body - ); - console.log(result); -} - -async function main() { - networkDevicesUpdateVersionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersCreateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersCreateSample.js deleted file mode 100644 index 5af3336b0c50..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersCreateSample.js +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates a Network Fabric Controller. - * - * @summary Creates a Network Fabric Controller. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Create_MaximumSet_Gen.json - */ -async function networkFabricControllersCreateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "NetworkControllerName"; - const body = { - annotation: "lab 1", - infrastructureExpressRouteConnections: [ - { - expressRouteAuthorizationKey: "xxxxxxx", - expressRouteCircuitId: - "/subscriptions/xxxxx/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/expressRouteCircuitName", - }, - ], - ipv4AddressSpace: "172.253.0.0/19", - location: "eastus", - managedResourceGroupConfiguration: { - name: "managedResourceGroupName", - location: "eastus", - }, - workloadExpressRouteConnections: [ - { - expressRouteAuthorizationKey: "xxxxx", - expressRouteCircuitId: - "/subscriptions/xxxxx/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/expressRouteCircuitName", - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkFabricControllers.beginCreateAndWait( - resourceGroupName, - networkFabricControllerName, - body - ); - console.log(result); -} - -async function main() { - networkFabricControllersCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersDeleteSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersDeleteSample.js deleted file mode 100644 index 742bf4cfe7eb..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersDeleteSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes the Network Fabric Controller resource. - * - * @summary Deletes the Network Fabric Controller resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Delete_MaximumSet_Gen.json - */ -async function networkFabricControllersDeleteMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "networkFabricControllerName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkFabricControllers.beginDeleteAndWait( - resourceGroupName, - networkFabricControllerName - ); - console.log(result); -} - -async function main() { - networkFabricControllersDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersDisableWorkloadManagementNetworkSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersDisableWorkloadManagementNetworkSample.js deleted file mode 100644 index 56fa612cf1ce..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersDisableWorkloadManagementNetworkSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Disables the workloadManagementNetwork (Tenant Network). - * - * @summary Disables the workloadManagementNetwork (Tenant Network). - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_disableWorkloadManagementNetwork_MaximumSet_Gen.json - */ -async function networkFabricControllersDisableWorkloadManagementNetworkMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "networkFabricControllerName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkFabricControllers.beginDisableWorkloadManagementNetworkAndWait( - resourceGroupName, - networkFabricControllerName - ); - console.log(result); -} - -async function main() { - networkFabricControllersDisableWorkloadManagementNetworkMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersEnableWorkloadManagementNetworkSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersEnableWorkloadManagementNetworkSample.js deleted file mode 100644 index 364587007612..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersEnableWorkloadManagementNetworkSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Enables the workloadManagementNetwork (Tenant Network). - * - * @summary Enables the workloadManagementNetwork (Tenant Network). - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_enableWorkloadManagementNetwork_MaximumSet_Gen.json - */ -async function networkFabricControllersEnableWorkloadManagementNetworkMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "networkFabricControllerName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkFabricControllers.beginEnableWorkloadManagementNetworkAndWait( - resourceGroupName, - networkFabricControllerName - ); - console.log(result); -} - -async function main() { - networkFabricControllersEnableWorkloadManagementNetworkMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersGetSample.js deleted file mode 100644 index 57cada0cf4f9..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersGetSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Shows the provisioning status of Network Fabric Controller. - * - * @summary Shows the provisioning status of Network Fabric Controller. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Get_MaximumSet_Gen.json - */ -async function networkFabricControllersGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "networkFabricControllerName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkFabricControllers.get( - resourceGroupName, - networkFabricControllerName - ); - console.log(result); -} - -async function main() { - networkFabricControllersGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersListByResourceGroupSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersListByResourceGroupSample.js deleted file mode 100644 index 1af6b221a915..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all the NetworkFabricControllers thats available in the resource group. - * - * @summary Lists all the NetworkFabricControllers thats available in the resource group. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_ListByResourceGroup_MaximumSet_Gen.json - */ -async function networkFabricControllersListByResourceGroupMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.networkFabricControllers.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkFabricControllersListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersListBySubscriptionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersListBySubscriptionSample.js deleted file mode 100644 index ce3d9dfb471e..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersListBySubscriptionSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all the NetworkFabricControllers by subscription. - * - * @summary Lists all the NetworkFabricControllers by subscription. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_ListBySubscription_MaximumSet_Gen.json - */ -async function networkFabricControllersListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.networkFabricControllers.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkFabricControllersListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersUpdateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersUpdateSample.js deleted file mode 100644 index 153b94363515..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricControllersUpdateSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates are currently not supported for the Network Fabric Controller resource. - * - * @summary Updates are currently not supported for the Network Fabric Controller resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Update_MaximumSet_Gen.json - */ -async function networkFabricControllersUpdateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "networkFabricControllerName"; - const body = { - workloadExpressRouteConnections: [ - { - expressRouteAuthorizationKey: "xxxxxxx", - expressRouteCircuitId: - "/subscriptions/xxxxx/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/expressRouteCircuitName", - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkFabricControllers.beginUpdateAndWait( - resourceGroupName, - networkFabricControllerName, - body - ); - console.log(result); -} - -async function main() { - networkFabricControllersUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricSkusGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricSkusGetSample.js deleted file mode 100644 index 7b812449ba4c..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricSkusGetSample.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements Network Fabric Sku GET method. - * - * @summary Implements Network Fabric Sku GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricSkus_Get_MaximumSet_Gen.json - */ -async function networkFabricSkusGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const networkFabricSkuName = "networkFabricSkuName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkFabricSkus.get(networkFabricSkuName); - console.log(result); -} - -async function main() { - networkFabricSkusGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricSkusListBySubscriptionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricSkusListBySubscriptionSample.js deleted file mode 100644 index 5417d6bb1823..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricSkusListBySubscriptionSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements NetworkFabricSkus list by subscription GET method. - * - * @summary Implements NetworkFabricSkus list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricSkus_ListBySubscription_MaximumSet_Gen.json - */ -async function networkFabricSkusListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.networkFabricSkus.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkFabricSkusListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsCreateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsCreateSample.js deleted file mode 100644 index 56470ebb0500..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsCreateSample.js +++ /dev/null @@ -1,96 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create Network Fabric resource. - * - * @summary Create Network Fabric resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Create_MaximumSet_Gen.json - */ -async function networkFabricsCreateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const body = { - annotation: "annotationValue", - fabricASN: 29249, - ipv4Prefix: "10.18.0.0/19", - ipv6Prefix: "3FFE:FFFF:0:CD40::/59", - location: "eastuseuap", - managementNetworkConfiguration: { - infrastructureVpnConfiguration: { - optionAProperties: { - mtu: 5892, - peerASN: 42666, - primaryIpv4Prefix: "20.0.0.12/30", - primaryIpv6Prefix: "3FFE:FFFF:0:CD30::a8/126", - secondaryIpv4Prefix: "20.0.0.13/30", - secondaryIpv6Prefix: "3FFE:FFFF:0:CD30::ac/126", - vlanId: 2724, - }, - optionBProperties: { - exportRouteTargets: ["65046:10039"], - importRouteTargets: ["65046:10039"], - }, - peeringOption: "OptionA", - }, - workloadVpnConfiguration: { - optionAProperties: { - mtu: 5892, - peerASN: 42666, - primaryIpv4Prefix: "10.0.0.14/30", - primaryIpv6Prefix: "2FFE:FFFF:0:CD30::a7/126", - secondaryIpv4Prefix: "10.0.0.15/30", - secondaryIpv6Prefix: "2FFE:FFFF:0:CD30::ac/126", - vlanId: 2724, - }, - optionBProperties: { - exportRouteTargets: ["65046:10050"], - importRouteTargets: ["65046:10050"], - }, - peeringOption: "OptionA", - }, - }, - networkFabricControllerId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName", - networkFabricSku: "M4-A400-A100-C16-aa", - rackCount: 4, - serverCountPerRack: 8, - tags: { key6468: "" }, - terminalServerConfiguration: { - password: "xxxx", - primaryIpv4Prefix: "20.0.0.12/30", - primaryIpv6Prefix: "3FFE:FFFF:0:CD30::a8/126", - secondaryIpv4Prefix: "20.0.0.13/30", - secondaryIpv6Prefix: "3FFE:FFFF:0:CD30::ac/126", - serialNumber: "123456", - username: "username", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkFabrics.beginCreateAndWait( - resourceGroupName, - networkFabricName, - body - ); - console.log(result); -} - -async function main() { - networkFabricsCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsDeleteSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsDeleteSample.js deleted file mode 100644 index 87f698d2f036..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsDeleteSample.js +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete Network Fabric resource. - * - * @summary Delete Network Fabric resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Delete_MaximumSet_Gen.json - */ -async function networkFabricsDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "70A68989-24C0-4FA7-B1B2-8A2BB6D10CA8"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgNetworkFabrics"; - const networkFabricName = "lrhjxlxlhgvufessdcuetcwnto"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkFabrics.beginDeleteAndWait( - resourceGroupName, - networkFabricName - ); - console.log(result); -} - -async function main() { - networkFabricsDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsDeprovisionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsDeprovisionSample.js deleted file mode 100644 index 9b9f43b6e2ac..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsDeprovisionSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deprovisions the underlying resources in the given Network Fabric instance. - * - * @summary Deprovisions the underlying resources in the given Network Fabric instance. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_deprovision_MaximumSet_Gen.json - */ -async function networkFabricsDeprovisionMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkFabrics.beginDeprovisionAndWait( - resourceGroupName, - networkFabricName - ); - console.log(result); -} - -async function main() { - networkFabricsDeprovisionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsGetSample.js deleted file mode 100644 index 54aa57395716..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get Network Fabric resource details. - * - * @summary Get Network Fabric resource details. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Get_MaximumSet_Gen.json - */ -async function networkFabricsGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkFabrics.get(resourceGroupName, networkFabricName); - console.log(result); -} - -async function main() { - networkFabricsGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsListByResourceGroupSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsListByResourceGroupSample.js deleted file mode 100644 index 39f8b5722a5d..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all the Network Fabric resources in the given resource group. - * - * @summary List all the Network Fabric resources in the given resource group. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_ListByResourceGroup_MaximumSet_Gen.json - */ -async function networkFabricsListByResourceGroupMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgNetworkFabrics"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.networkFabrics.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkFabricsListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsListBySubscriptionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsListBySubscriptionSample.js deleted file mode 100644 index 6f89b160b80a..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsListBySubscriptionSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all the Network Fabric resources in the given subscription. - * - * @summary List all the Network Fabric resources in the given subscription. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_ListBySubscription_MaximumSet_Gen.json - */ -async function networkFabricsListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.networkFabrics.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkFabricsListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsProvisionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsProvisionSample.js deleted file mode 100644 index ffb81d384c84..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsProvisionSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Provisions the underlying resources in the given Network Fabric instance. - * - * @summary Provisions the underlying resources in the given Network Fabric instance. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_provision_MaximumSet_Gen.json - */ -async function networkFabricsProvisionMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkFabrics.beginProvisionAndWait( - resourceGroupName, - networkFabricName - ); - console.log(result); -} - -async function main() { - networkFabricsProvisionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsUpdateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsUpdateSample.js deleted file mode 100644 index 108d7a7ae0fe..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkFabricsUpdateSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update certain properties of the Network Fabric resource. - * - * @summary Update certain properties of the Network Fabric resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Update_MaximumSet_Gen.json - */ -async function networkFabricsUpdateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const body = { - annotation: "annotationValue", - tags: { key1758: "" }, - terminalServerConfiguration: { - password: "xxxxxxx", - serialNumber: "234567", - username: "username", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkFabrics.beginUpdateAndWait( - resourceGroupName, - networkFabricName, - body - ); - console.log(result); -} - -async function main() { - networkFabricsUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesCreateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesCreateSample.js deleted file mode 100644 index 4cead5a0b9fd..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesCreateSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a Network Interface resource. - * - * @summary Create a Network Interface resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Create_MaximumSet_Gen.json - */ -async function networkInterfacesCreateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const body = { annotation: "null" }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkInterfaces.beginCreateAndWait( - resourceGroupName, - networkDeviceName, - networkInterfaceName, - body - ); - console.log(result); -} - -async function main() { - networkInterfacesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesDeleteSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesDeleteSample.js deleted file mode 100644 index 8e08506dc0ec..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete the Network Interface resource. - * - * @summary Delete the Network Interface resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Delete_MaximumSet_Gen.json - */ -async function networkInterfacesDeleteMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkInterfaces.beginDeleteAndWait( - resourceGroupName, - networkDeviceName, - networkInterfaceName - ); - console.log(result); -} - -async function main() { - networkInterfacesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesGetSample.js deleted file mode 100644 index 13cd536a35ff..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesGetSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the Network Interface resource details. - * - * @summary Get the Network Interface resource details. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Get_MaximumSet_Gen.json - */ -async function networkInterfacesGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkInterfaces.get( - resourceGroupName, - networkDeviceName, - networkInterfaceName - ); - console.log(result); -} - -async function main() { - networkInterfacesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesGetStatusSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesGetStatusSample.js deleted file mode 100644 index 3acd39cc6f6f..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesGetStatusSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the running status of the Network Interface. - * - * @summary Get the running status of the Network Interface. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_getStatus_MaximumSet_Gen.json - */ -async function networkInterfacesGetStatusMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkInterfaces.beginGetStatusAndWait( - resourceGroupName, - networkDeviceName, - networkInterfaceName - ); - console.log(result); -} - -async function main() { - networkInterfacesGetStatusMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesListSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesListSample.js deleted file mode 100644 index 7a2efc647425..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesListSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all the Network Interface resources in a given resource group. - * - * @summary List all the Network Interface resources in a given resource group. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_List_MaximumSet_Gen.json - */ -async function networkInterfacesListMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.networkInterfaces.list(resourceGroupName, networkDeviceName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkInterfacesListMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesUpdateAdministrativeStateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesUpdateAdministrativeStateSample.js deleted file mode 100644 index dde90e5e83a7..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesUpdateAdministrativeStateSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update the admin state of the Network Interface. - * - * @summary Update the admin state of the Network Interface. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_updateAdministrativeState_MaximumSet_Gen.json - */ -async function networkInterfacesUpdateAdministrativeStateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const body = { state: "Enable" }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkInterfaces.beginUpdateAdministrativeStateAndWait( - resourceGroupName, - networkDeviceName, - networkInterfaceName, - body - ); - console.log(result); -} - -async function main() { - networkInterfacesUpdateAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesUpdateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesUpdateSample.js deleted file mode 100644 index 8ff11b6df040..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkInterfacesUpdateSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update certain properties of the Network Interface resource. - * - * @summary Update certain properties of the Network Interface resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Update_MaximumSet_Gen.json - */ -async function networkInterfacesUpdateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const body = { annotation: "null" }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkInterfaces.beginUpdateAndWait( - resourceGroupName, - networkDeviceName, - networkInterfaceName, - body - ); - console.log(result); -} - -async function main() { - networkInterfacesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRackSkusGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRackSkusGetSample.js deleted file mode 100644 index a1cd06561134..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRackSkusGetSample.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get Network Rack SKU resource. - * - * @summary Get Network Rack SKU resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRackSkus_Get_MaximumSet_Gen.json - */ -async function networkRackSkusGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const networkRackSkuName = "networkRackSkuName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkRackSkus.get(networkRackSkuName); - console.log(result); -} - -async function main() { - networkRackSkusGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRackSkusListBySubscriptionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRackSkusListBySubscriptionSample.js deleted file mode 100644 index 6f360f9d5102..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRackSkusListBySubscriptionSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all Network Rack SKUs in the given subscription. - * - * @summary List all Network Rack SKUs in the given subscription. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRackSkus_ListBySubscription_MaximumSet_Gen.json - */ -async function networkRackSkusListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.networkRackSkus.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkRackSkusListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksCreateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksCreateSample.js deleted file mode 100644 index 60fb76f5b066..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksCreateSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create Network Rack resource. - * - * @summary Create Network Rack resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Create_MaximumSet_Gen.json - */ -async function networkRacksCreateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkRackName = "networkRackName"; - const body = { - annotation: "null", - location: "eastus", - networkFabricId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/networkFabricName", - networkRackSku: "RackSKU", - tags: { keyID: "keyValue" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkRacks.beginCreateAndWait( - resourceGroupName, - networkRackName, - body - ); - console.log(result); -} - -async function main() { - networkRacksCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksDeleteSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksDeleteSample.js deleted file mode 100644 index b346bf5caf8e..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksDeleteSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete Network Rack resource. - * - * @summary Delete Network Rack resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Delete_MaximumSet_Gen.json - */ -async function networkRacksDeleteMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkRackName = "networkRackName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkRacks.beginDeleteAndWait(resourceGroupName, networkRackName); - console.log(result); -} - -async function main() { - networkRacksDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksGetSample.js deleted file mode 100644 index 2a6c50d5c0c8..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get Network Rack resource details. - * - * @summary Get Network Rack resource details. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Get_MaximumSet_Gen.json - */ -async function networkRacksGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkRackName = "networkRackName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkRacks.get(resourceGroupName, networkRackName); - console.log(result); -} - -async function main() { - networkRacksGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksListByResourceGroupSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksListByResourceGroupSample.js deleted file mode 100644 index 0ff580034d96..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all Network Rack resources in the given resource group. - * - * @summary List all Network Rack resources in the given resource group. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_ListByResourceGroup_MaximumSet_Gen.json - */ -async function networkRacksListByResourceGroupMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.networkRacks.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkRacksListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksListBySubscriptionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksListBySubscriptionSample.js deleted file mode 100644 index 34b7359b2a8e..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksListBySubscriptionSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List all Network Rack resources in the given subscription - * - * @summary List all Network Rack resources in the given subscription - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_ListBySubscription_MaximumSet_Gen.json - */ -async function networkRacksListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.networkRacks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkRacksListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksUpdateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksUpdateSample.js deleted file mode 100644 index 954cb56969a5..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkRacksUpdateSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update certain properties of the Network Rack resource. - * - * @summary Update certain properties of the Network Rack resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Update_MaximumSet_Gen.json - */ -async function networkRacksUpdateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkRackName = "networkRackName"; - const body = { - properties: {}, - tags: { keyID: "keyValue" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkRacks.beginUpdateAndWait( - resourceGroupName, - networkRackName, - body - ); - console.log(result); -} - -async function main() { - networkRacksUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkToNetworkInterconnectsCreateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkToNetworkInterconnectsCreateSample.js deleted file mode 100644 index e6c4b0c584b7..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkToNetworkInterconnectsCreateSample.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Configuration used to setup CE-PE connectivity PUT Method. - * - * @summary Configuration used to setup CE-PE connectivity PUT Method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_Create_MaximumSet_Gen.json - */ -async function networkToNetworkInterconnectsCreateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const networkToNetworkInterconnectName = "DefaultNNI"; - const body = { - isManagementType: "True", - layer2Configuration: { mtu: 1500, portCount: 10 }, - layer3Configuration: { - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName2", - importRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName1", - peerASN: 50272, - primaryIpv4Prefix: "172.31.0.0/31", - primaryIpv6Prefix: "3FFE:FFFF:0:CD30::a0/126", - secondaryIpv4Prefix: "172.31.0.20/31", - secondaryIpv6Prefix: "3FFE:FFFF:0:CD30::a4/126", - vlanId: 2064, - }, - nniType: "CE", - useOptionB: "False", - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkToNetworkInterconnects.beginCreateAndWait( - resourceGroupName, - networkFabricName, - networkToNetworkInterconnectName, - body - ); - console.log(result); -} - -async function main() { - networkToNetworkInterconnectsCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkToNetworkInterconnectsDeleteSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkToNetworkInterconnectsDeleteSample.js deleted file mode 100644 index 8e80f97aabbf..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkToNetworkInterconnectsDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements NetworkToNetworkInterconnects DELETE method. - * - * @summary Implements NetworkToNetworkInterconnects DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_Delete_MaximumSet_Gen.json - */ -async function networkToNetworkInterconnectsDeleteMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const networkToNetworkInterconnectName = "DefaultNNI"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkToNetworkInterconnects.beginDeleteAndWait( - resourceGroupName, - networkFabricName, - networkToNetworkInterconnectName - ); - console.log(result); -} - -async function main() { - networkToNetworkInterconnectsDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkToNetworkInterconnectsGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkToNetworkInterconnectsGetSample.js deleted file mode 100644 index 58fe7b5e41be..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkToNetworkInterconnectsGetSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements NetworkToNetworkInterconnects GET method. - * - * @summary Implements NetworkToNetworkInterconnects GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_Get_MaximumSet_Gen.json - */ -async function networkToNetworkInterconnectsGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const networkToNetworkInterconnectName = "DefaultNNI"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.networkToNetworkInterconnects.get( - resourceGroupName, - networkFabricName, - networkToNetworkInterconnectName - ); - console.log(result); -} - -async function main() { - networkToNetworkInterconnectsGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkToNetworkInterconnectsListSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkToNetworkInterconnectsListSample.js deleted file mode 100644 index 225b36a32b76..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/networkToNetworkInterconnectsListSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements Network To Network Interconnects list by Network Fabric GET method. - * - * @summary Implements Network To Network Interconnects list by Network Fabric GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_List_MaximumSet_Gen.json - */ -async function networkToNetworkInterconnectsListMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.networkToNetworkInterconnects.list( - resourceGroupName, - networkFabricName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkToNetworkInterconnectsListMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/operationsListSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/operationsListSample.js deleted file mode 100644 index 06068a54948c..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/operationsListSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Returns list of all operations. - * - * @summary Returns list of all operations. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ListOperations.json - */ -async function listOperations() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listOperations(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/package.json b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/package.json deleted file mode 100644 index d91c49f2e114..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@azure-samples/arm-managednetworkfabric-js-beta", - "private": true, - "version": "1.0.0", - "description": " client library samples for JavaScript (Beta)", - "engines": { - "node": ">=14.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/managednetworkfabric/arm-managednetworkfabric" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managednetworkfabric/arm-managednetworkfabric", - "dependencies": { - "@azure/arm-managednetworkfabric": "next", - "dotenv": "latest", - "@azure/identity": "^2.0.1" - } -} diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesCreateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesCreateSample.js deleted file mode 100644 index 46e3d9ba0856..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesCreateSample.js +++ /dev/null @@ -1,98 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements Route Policy PUT method. - * - * @summary Implements Route Policy PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Create_MaximumSet_Gen.json - */ -async function routePoliciesCreateMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgRoutePolicies"; - const routePolicyName = "routePolicyName"; - const body = { - annotation: "annotationValue", - location: "EastUS", - statements: [ - { - action: { - actionType: "Permit", - ipCommunityProperties: { - add: { - ipCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipCommunities/ipCommunityName", - ], - }, - delete: { - ipCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipCommunities/ipCommunityName", - ], - }, - set: { - ipCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipCommunities/ipCommunityName", - ], - }, - }, - ipExtendedCommunityProperties: { - add: { - ipExtendedCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities/ipExtendedCommunityName", - ], - }, - delete: { - ipExtendedCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities/ipExtendedCommunityName", - ], - }, - set: { - ipExtendedCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities/ipExtendedCommunityName", - ], - }, - }, - localPreference: 20, - }, - annotation: "annotationValue", - condition: { - ipCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipCommunities/ipCommunityName", - ], - ipExtendedCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities/ipExtendedCommunityName", - ], - ipPrefixId: - "subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/ipPrefixes/example-ipPrefix", - }, - sequenceNumber: 7, - }, - ], - tags: { key8254: "" }, - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.routePolicies.beginCreateAndWait( - resourceGroupName, - routePolicyName, - body - ); - console.log(result); -} - -async function main() { - routePoliciesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesDeleteSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesDeleteSample.js deleted file mode 100644 index e61d07e806ee..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesDeleteSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements Route Policy DELETE method. - * - * @summary Implements Route Policy DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Delete_MaximumSet_Gen.json - */ -async function routePoliciesDeleteMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgRoutePolicies"; - const routePolicyName = "routePolicyName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.routePolicies.beginDeleteAndWait(resourceGroupName, routePolicyName); - console.log(result); -} - -async function main() { - routePoliciesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesGetSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesGetSample.js deleted file mode 100644 index 33e4db252c57..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesGetSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements Route Policy GET method. - * - * @summary Implements Route Policy GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Get_MaximumSet_Gen.json - */ -async function routePoliciesGetMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgRoutePolicies"; - const routePolicyName = "routePolicyName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.routePolicies.get(resourceGroupName, routePolicyName); - console.log(result); -} - -async function main() { - routePoliciesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesListByResourceGroupSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesListByResourceGroupSample.js deleted file mode 100644 index 22fa96d9e99a..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesListByResourceGroupSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements RoutePolicies list by resource group GET method. - * - * @summary Implements RoutePolicies list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_ListByResourceGroup_MaximumSet_Gen.json - */ -async function routePoliciesListByResourceGroupMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgRoutePolicies"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.routePolicies.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - routePoliciesListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesListBySubscriptionSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesListBySubscriptionSample.js deleted file mode 100644 index 602e3d9ea2fd..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesListBySubscriptionSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Implements RoutePolicies list by subscription GET method. - * - * @summary Implements RoutePolicies list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_ListBySubscription_MaximumSet_Gen.json - */ -async function routePoliciesListBySubscriptionMaximumSetGen() { - const subscriptionId = process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.routePolicies.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - routePoliciesListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesUpdateSample.js b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesUpdateSample.js deleted file mode 100644 index 30aac0559e6b..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/routePoliciesUpdateSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { AzureNetworkFabricManagementServiceAPI } = require("@azure/arm-managednetworkfabric"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to API to update certain properties of the Route Policy resource. - * - * @summary API to update certain properties of the Route Policy resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Update_MaximumSet_Gen.json - */ -async function routePoliciesUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "97D66995-95BA-464A-A250-FB6E25E499A8"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const routePolicyName = "routePolicyName"; - const body = { tags: { key8254: "" } }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId); - const result = await client.routePolicies.beginUpdateAndWait( - resourceGroupName, - routePolicyName, - body - ); - console.log(result); -} - -async function main() { - routePoliciesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/sample.env b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/javascript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/README.md b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/README.md deleted file mode 100644 index 4b161a3dfd55..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/README.md +++ /dev/null @@ -1,311 +0,0 @@ -# client library samples for TypeScript (Beta) - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [accessControlListsCreateSample.ts][accesscontrollistscreatesample] | Implements Access Control List PUT method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Create_MinimumSet_Gen.json | -| [accessControlListsDeleteSample.ts][accesscontrollistsdeletesample] | Implements Access Control List DELETE method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Delete_MinimumSet_Gen.json | -| [accessControlListsGetSample.ts][accesscontrollistsgetsample] | Implements Access Control List GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Get_MinimumSet_Gen.json | -| [accessControlListsListByResourceGroupSample.ts][accesscontrollistslistbyresourcegroupsample] | Implements AccessControlLists list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_ListByResourceGroup_MinimumSet_Gen.json | -| [accessControlListsListBySubscriptionSample.ts][accesscontrollistslistbysubscriptionsample] | Implements AccessControlLists list by subscription GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_ListBySubscription_MinimumSet_Gen.json | -| [accessControlListsUpdateSample.ts][accesscontrollistsupdatesample] | API to update certain properties of the Access Control List resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Update_MinimumSet_Gen.json | -| [externalNetworksClearArpEntriesSample.ts][externalnetworkscleararpentriessample] | clearArpEntries for externalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_clearArpEntries_MaximumSet_Gen.json | -| [externalNetworksClearIpv6NeighborsSample.ts][externalnetworksclearipv6neighborssample] | clearIpv6Neighbors for externalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_clearIpv6Neighbors_MaximumSet_Gen.json | -| [externalNetworksCreateSample.ts][externalnetworkscreatesample] | Creates ExternalNetwork PUT method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Create_MaximumSet_Gen.json | -| [externalNetworksDeleteSample.ts][externalnetworksdeletesample] | Implements ExternalNetworks DELETE method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Delete_MaximumSet_Gen.json | -| [externalNetworksGetSample.ts][externalnetworksgetsample] | Implements ExternalNetworks GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Get_MaximumSet_Gen.json | -| [externalNetworksListSample.ts][externalnetworkslistsample] | Implements External Networks list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_List_MaximumSet_Gen.json | -| [externalNetworksUpdateAdministrativeStateSample.ts][externalnetworksupdateadministrativestatesample] | Executes update operation to enable or disable administrative State for externalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_updateAdministrativeState_MaximumSet_Gen.json | -| [externalNetworksUpdateBfdForBgpAdministrativeStateSample.ts][externalnetworksupdatebfdforbgpadministrativestatesample] | Update BfdForBgp for externalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_updateBfdForBgpAdministrativeState_MaximumSet_Gen.json | -| [externalNetworksUpdateBgpAdministrativeStateSample.ts][externalnetworksupdatebgpadministrativestatesample] | Update BGP for externalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_updateBgpAdministrativeState_MaximumSet_Gen.json | -| [externalNetworksUpdateSample.ts][externalnetworksupdatesample] | API to update certain properties of the ExternalNetworks resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Update_MaximumSet_Gen.json | -| [internalNetworksClearArpEntriesSample.ts][internalnetworkscleararpentriessample] | clearArpEntries for internalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_clearArpEntries_MaximumSet_Gen.json | -| [internalNetworksClearIpv6NeighborsSample.ts][internalnetworksclearipv6neighborssample] | clearIpv6Neighbors for internalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_clearIpv6Neighbors_MaximumSet_Gen.json | -| [internalNetworksCreateSample.ts][internalnetworkscreatesample] | Creates InternalNetwork PUT method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Create_MaximumSet_Gen.json | -| [internalNetworksDeleteSample.ts][internalnetworksdeletesample] | Implements InternalNetworks DELETE method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Delete_MaximumSet_Gen.json | -| [internalNetworksGetSample.ts][internalnetworksgetsample] | Gets a InternalNetworks. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Get_MaximumSet_Gen.json | -| [internalNetworksListSample.ts][internalnetworkslistsample] | Displays InternalNetworks list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_List_MaximumSet_Gen.json | -| [internalNetworksUpdateAdministrativeStateSample.ts][internalnetworksupdateadministrativestatesample] | Update Administrative state of InternalNetworks on resources referred by their resource ids. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateAdministrativeState_MaximumSet_Gen.json | -| [internalNetworksUpdateBfdForBgpAdministrativeStateSample.ts][internalnetworksupdatebfdforbgpadministrativestatesample] | Update BfdForBgp for internalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateBfdForBgpAdministrativeState_MaximumSet_Gen.json | -| [internalNetworksUpdateBfdForStaticRouteAdministrativeStateSample.ts][internalnetworksupdatebfdforstaticrouteadministrativestatesample] | Update BfdForStaticRoutes for internalNetwork. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateBfdForStaticRouteAdministrativeState_MaximumSet_Gen.json | -| [internalNetworksUpdateBgpAdministrativeStateSample.ts][internalnetworksupdatebgpadministrativestatesample] | Update BGP state for internalNetwork. Allowed only on edge devices. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateBgpAdministrativeState_MaximumSet_Gen.json | -| [internalNetworksUpdateSample.ts][internalnetworksupdatesample] | Updates a InternalNetworks. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Update_MaximumSet_Gen.json | -| [ipCommunitiesCreateSample.ts][ipcommunitiescreatesample] | Implements an IP Community PUT method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Create_MaximumSet_Gen.json | -| [ipCommunitiesDeleteSample.ts][ipcommunitiesdeletesample] | Implements IP Community DELETE method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Delete_MaximumSet_Gen.json | -| [ipCommunitiesGetSample.ts][ipcommunitiesgetsample] | Implements an IP Community GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Get_MaximumSet_Gen.json | -| [ipCommunitiesListByResourceGroupSample.ts][ipcommunitieslistbyresourcegroupsample] | Implements IpCommunities list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_ListByResourceGroup_MaximumSet_Gen.json | -| [ipCommunitiesListBySubscriptionSample.ts][ipcommunitieslistbysubscriptionsample] | Implements IpCommunities list by subscription GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_ListBySubscription_MaximumSet_Gen.json | -| [ipCommunitiesUpdateSample.ts][ipcommunitiesupdatesample] | API to update certain properties of the IP Community resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Update_MaximumSet_Gen.json | -| [ipExtendedCommunitiesCreateSample.ts][ipextendedcommunitiescreatesample] | Implements IP Extended Community PUT method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Create_MaximumSet_Gen.json | -| [ipExtendedCommunitiesDeleteSample.ts][ipextendedcommunitiesdeletesample] | Implements IP Extended Community DELETE method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Delete_MaximumSet_Gen.json | -| [ipExtendedCommunitiesGetSample.ts][ipextendedcommunitiesgetsample] | Implements IP Extended Community GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Get_MaximumSet_Gen.json | -| [ipExtendedCommunitiesListByResourceGroupSample.ts][ipextendedcommunitieslistbyresourcegroupsample] | Implements IpExtendedCommunities list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_ListByResourceGroup_MaximumSet_Gen.json | -| [ipExtendedCommunitiesListBySubscriptionSample.ts][ipextendedcommunitieslistbysubscriptionsample] | Implements IpExtendedCommunities list by subscription GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_ListBySubscription_MaximumSet_Gen.json | -| [ipExtendedCommunitiesUpdateSample.ts][ipextendedcommunitiesupdatesample] | API to update certain properties of the IP Extended Community resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Update_MaximumSet_Gen.json | -| [ipPrefixesCreateSample.ts][ipprefixescreatesample] | Implements IP Prefix PUT method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Create_MaximumSet_Gen.json | -| [ipPrefixesDeleteSample.ts][ipprefixesdeletesample] | Implements IP Prefix DELETE method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Delete_MaximumSet_Gen.json | -| [ipPrefixesGetSample.ts][ipprefixesgetsample] | Implements IP Prefix GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Get_MaximumSet_Gen.json | -| [ipPrefixesListByResourceGroupSample.ts][ipprefixeslistbyresourcegroupsample] | Implements IpPrefixes list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_ListByResourceGroup_MaximumSet_Gen.json | -| [ipPrefixesListBySubscriptionSample.ts][ipprefixeslistbysubscriptionsample] | Implements IpPrefixes list by subscription GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_ListBySubscription_MaximumSet_Gen.json | -| [ipPrefixesUpdateSample.ts][ipprefixesupdatesample] | API to update certain properties of the IP Prefix resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Update_MaximumSet_Gen.json | -| [l2IsolationDomainsClearArpTableSample.ts][l2isolationdomainscleararptablesample] | Clears ARP tables for this Isolation Domain. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_clearArpTable_MaximumSet_Gen.json | -| [l2IsolationDomainsClearNeighborTableSample.ts][l2isolationdomainsclearneighbortablesample] | Clears IPv6 neighbors for this Isolation Domain. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_clearNeighborTable_MaximumSet_Gen.json | -| [l2IsolationDomainsCreateSample.ts][l2isolationdomainscreatesample] | Creates layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied on the devices only after the isolation domain is enabled. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Create_MaximumSet_Gen.json | -| [l2IsolationDomainsDeleteSample.ts][l2isolationdomainsdeletesample] | Deletes layer 2 connectivity between compute nodes by managed by named L2 Isolation name. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Delete_MaximumSet_Gen.json | -| [l2IsolationDomainsGetArpEntriesSample.ts][l2isolationdomainsgetarpentriessample] | Clears IPv6 neighbors for this Isolation Domain. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_getArpEntries_MaximumSet_Gen.json | -| [l2IsolationDomainsGetSample.ts][l2isolationdomainsgetsample] | Implements L2 Isolation Domain GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Get_MaximumSet_Gen.json | -| [l2IsolationDomainsListByResourceGroupSample.ts][l2isolationdomainslistbyresourcegroupsample] | Displays L2IsolationDomains list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_ListByResourceGroup_MaximumSet_Gen.json | -| [l2IsolationDomainsListBySubscriptionSample.ts][l2isolationdomainslistbysubscriptionsample] | Displays L2IsolationDomains list by subscription GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_ListBySubscription_MaximumSet_Gen.json | -| [l2IsolationDomainsUpdateAdministrativeStateSample.ts][l2isolationdomainsupdateadministrativestatesample] | Enables isolation domain across the fabric or on specified racks. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_updateAdministrativeState_MaximumSet_Gen.json | -| [l2IsolationDomainsUpdateSample.ts][l2isolationdomainsupdatesample] | API to update certain properties of the L2 Isolation Domain resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Update_MaximumSet_Gen.json | -| [l3IsolationDomainsClearArpTableSample.ts][l3isolationdomainscleararptablesample] | Clears ARP tables for this Isolation Domain. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_clearArpTable_MaximumSet_Gen.json | -| [l3IsolationDomainsClearNeighborTableSample.ts][l3isolationdomainsclearneighbortablesample] | Clears IPv6 neighbor tables for this Isolation Domain. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_clearNeighborTable_MaximumSet_Gen.json | -| [l3IsolationDomainsCreateSample.ts][l3isolationdomainscreatesample] | Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is enabled. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Create_MaximumSet_Gen.json | -| [l3IsolationDomainsDeleteSample.ts][l3isolationdomainsdeletesample] | Deletes layer 3 connectivity between compute nodes by managed by named L3 Isolation name. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Delete_MaximumSet_Gen.json | -| [l3IsolationDomainsGetSample.ts][l3isolationdomainsgetsample] | Retrieves details of this L3 Isolation Domain. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Get_MaximumSet_Gen.json | -| [l3IsolationDomainsListByResourceGroupSample.ts][l3isolationdomainslistbyresourcegroupsample] | Displays L3IsolationDomains list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_ListByResourceGroup_MaximumSet_Gen.json | -| [l3IsolationDomainsListBySubscriptionSample.ts][l3isolationdomainslistbysubscriptionsample] | Displays L3IsolationDomains list by subscription GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_ListBySubscription_MaximumSet_Gen.json | -| [l3IsolationDomainsUpdateAdministrativeStateSample.ts][l3isolationdomainsupdateadministrativestatesample] | Enables racks for this Isolation Domain. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_updateAdministrativeState_MaximumSet_Gen.json | -| [l3IsolationDomainsUpdateOptionBAdministrativeStateSample.ts][l3isolationdomainsupdateoptionbadministrativestatesample] | Update administrative state of option B on CE devices x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_updateOptionBAdministrativeState_MaximumSet_Gen.json | -| [l3IsolationDomainsUpdateSample.ts][l3isolationdomainsupdatesample] | API to update certain properties of the L3 Isolation Domain resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Update_MaximumSet_Gen.json | -| [networkDeviceSkusGetSample.ts][networkdeviceskusgetsample] | Get Network Device SKU details. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDeviceSkus_Get_MaximumSet_Gen.json | -| [networkDeviceSkusListBySubscriptionSample.ts][networkdeviceskuslistbysubscriptionsample] | List Network Device SKUs for the given subscription. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDeviceSkus_ListBySubscription_MaximumSet_Gen.json | -| [networkDevicesCreateSample.ts][networkdevicescreatesample] | Create a Network Device resource x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Create_MaximumSet_Gen.json | -| [networkDevicesDeleteSample.ts][networkdevicesdeletesample] | Delete the Network Device resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Delete_MaximumSet_Gen.json | -| [networkDevicesGenerateSupportPackageSample.ts][networkdevicesgeneratesupportpackagesample] | Generate Support Package for the given Network Device. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_generateSupportPackage_MaximumSet_Gen.json | -| [networkDevicesGetDynamicInterfaceMapsSample.ts][networkdevicesgetdynamicinterfacemapssample] | Get the dynamic interface maps for the given Network Device. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_getDynamicInterfaceMaps_MaximumSet_Gen.json | -| [networkDevicesGetSample.ts][networkdevicesgetsample] | Get the Network Device resource details. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Get_MaximumSet_Gen.json | -| [networkDevicesGetStaticInterfaceMapsSample.ts][networkdevicesgetstaticinterfacemapssample] | Get the static interface maps for the given Network Device. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_getStaticInterfaceMaps_MaximumSet_Gen.json | -| [networkDevicesGetStatusSample.ts][networkdevicesgetstatussample] | Get the running status of the Network Device. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_getStatus_MaximumSet_Gen.json | -| [networkDevicesListByResourceGroupSample.ts][networkdeviceslistbyresourcegroupsample] | List all the Network Device resources in a given resource group. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_ListByResourceGroup_MaximumSet_Gen.json | -| [networkDevicesListBySubscriptionSample.ts][networkdeviceslistbysubscriptionsample] | List all the Network Device resources in a given subscription. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_ListBySubscription_MaximumSet_Gen.json | -| [networkDevicesRebootSample.ts][networkdevicesrebootsample] | Reboot the Network Device. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_reboot_MaximumSet_Gen.json | -| [networkDevicesRestoreConfigSample.ts][networkdevicesrestoreconfigsample] | Restore the configuration of the Network Device resource to last known good configuration. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_restoreConfig_MaximumSet_Gen.json | -| [networkDevicesUpdatePowerCycleSample.ts][networkdevicesupdatepowercyclesample] | Update PDU power cycle of the Network Device. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_updatePowerCycle_MaximumSet_Gen.json | -| [networkDevicesUpdateSample.ts][networkdevicesupdatesample] | Update certain properties of the Network Device resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Update_MaximumSet_Gen.json | -| [networkDevicesUpdateVersionSample.ts][networkdevicesupdateversionsample] | Update the SKU version of the Network Device resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_updateVersion_MaximumSet_Gen.json | -| [networkFabricControllersCreateSample.ts][networkfabriccontrollerscreatesample] | Creates a Network Fabric Controller. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Create_MaximumSet_Gen.json | -| [networkFabricControllersDeleteSample.ts][networkfabriccontrollersdeletesample] | Deletes the Network Fabric Controller resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Delete_MaximumSet_Gen.json | -| [networkFabricControllersDisableWorkloadManagementNetworkSample.ts][networkfabriccontrollersdisableworkloadmanagementnetworksample] | Disables the workloadManagementNetwork (Tenant Network). x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_disableWorkloadManagementNetwork_MaximumSet_Gen.json | -| [networkFabricControllersEnableWorkloadManagementNetworkSample.ts][networkfabriccontrollersenableworkloadmanagementnetworksample] | Enables the workloadManagementNetwork (Tenant Network). x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_enableWorkloadManagementNetwork_MaximumSet_Gen.json | -| [networkFabricControllersGetSample.ts][networkfabriccontrollersgetsample] | Shows the provisioning status of Network Fabric Controller. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Get_MaximumSet_Gen.json | -| [networkFabricControllersListByResourceGroupSample.ts][networkfabriccontrollerslistbyresourcegroupsample] | Lists all the NetworkFabricControllers thats available in the resource group. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_ListByResourceGroup_MaximumSet_Gen.json | -| [networkFabricControllersListBySubscriptionSample.ts][networkfabriccontrollerslistbysubscriptionsample] | Lists all the NetworkFabricControllers by subscription. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_ListBySubscription_MaximumSet_Gen.json | -| [networkFabricControllersUpdateSample.ts][networkfabriccontrollersupdatesample] | Updates are currently not supported for the Network Fabric Controller resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Update_MaximumSet_Gen.json | -| [networkFabricSkusGetSample.ts][networkfabricskusgetsample] | Implements Network Fabric Sku GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricSkus_Get_MaximumSet_Gen.json | -| [networkFabricSkusListBySubscriptionSample.ts][networkfabricskuslistbysubscriptionsample] | Implements NetworkFabricSkus list by subscription GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricSkus_ListBySubscription_MaximumSet_Gen.json | -| [networkFabricsCreateSample.ts][networkfabricscreatesample] | Create Network Fabric resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Create_MaximumSet_Gen.json | -| [networkFabricsDeleteSample.ts][networkfabricsdeletesample] | Delete Network Fabric resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Delete_MaximumSet_Gen.json | -| [networkFabricsDeprovisionSample.ts][networkfabricsdeprovisionsample] | Deprovisions the underlying resources in the given Network Fabric instance. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_deprovision_MaximumSet_Gen.json | -| [networkFabricsGetSample.ts][networkfabricsgetsample] | Get Network Fabric resource details. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Get_MaximumSet_Gen.json | -| [networkFabricsListByResourceGroupSample.ts][networkfabricslistbyresourcegroupsample] | List all the Network Fabric resources in the given resource group. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_ListByResourceGroup_MaximumSet_Gen.json | -| [networkFabricsListBySubscriptionSample.ts][networkfabricslistbysubscriptionsample] | List all the Network Fabric resources in the given subscription. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_ListBySubscription_MaximumSet_Gen.json | -| [networkFabricsProvisionSample.ts][networkfabricsprovisionsample] | Provisions the underlying resources in the given Network Fabric instance. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_provision_MaximumSet_Gen.json | -| [networkFabricsUpdateSample.ts][networkfabricsupdatesample] | Update certain properties of the Network Fabric resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Update_MaximumSet_Gen.json | -| [networkInterfacesCreateSample.ts][networkinterfacescreatesample] | Create a Network Interface resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Create_MaximumSet_Gen.json | -| [networkInterfacesDeleteSample.ts][networkinterfacesdeletesample] | Delete the Network Interface resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Delete_MaximumSet_Gen.json | -| [networkInterfacesGetSample.ts][networkinterfacesgetsample] | Get the Network Interface resource details. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Get_MaximumSet_Gen.json | -| [networkInterfacesGetStatusSample.ts][networkinterfacesgetstatussample] | Get the running status of the Network Interface. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_getStatus_MaximumSet_Gen.json | -| [networkInterfacesListSample.ts][networkinterfaceslistsample] | List all the Network Interface resources in a given resource group. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_List_MaximumSet_Gen.json | -| [networkInterfacesUpdateAdministrativeStateSample.ts][networkinterfacesupdateadministrativestatesample] | Update the admin state of the Network Interface. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_updateAdministrativeState_MaximumSet_Gen.json | -| [networkInterfacesUpdateSample.ts][networkinterfacesupdatesample] | Update certain properties of the Network Interface resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Update_MaximumSet_Gen.json | -| [networkRackSkusGetSample.ts][networkrackskusgetsample] | Get Network Rack SKU resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRackSkus_Get_MaximumSet_Gen.json | -| [networkRackSkusListBySubscriptionSample.ts][networkrackskuslistbysubscriptionsample] | List all Network Rack SKUs in the given subscription. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRackSkus_ListBySubscription_MaximumSet_Gen.json | -| [networkRacksCreateSample.ts][networkrackscreatesample] | Create Network Rack resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Create_MaximumSet_Gen.json | -| [networkRacksDeleteSample.ts][networkracksdeletesample] | Delete Network Rack resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Delete_MaximumSet_Gen.json | -| [networkRacksGetSample.ts][networkracksgetsample] | Get Network Rack resource details. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Get_MaximumSet_Gen.json | -| [networkRacksListByResourceGroupSample.ts][networkrackslistbyresourcegroupsample] | List all Network Rack resources in the given resource group. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_ListByResourceGroup_MaximumSet_Gen.json | -| [networkRacksListBySubscriptionSample.ts][networkrackslistbysubscriptionsample] | List all Network Rack resources in the given subscription x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_ListBySubscription_MaximumSet_Gen.json | -| [networkRacksUpdateSample.ts][networkracksupdatesample] | Update certain properties of the Network Rack resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Update_MaximumSet_Gen.json | -| [networkToNetworkInterconnectsCreateSample.ts][networktonetworkinterconnectscreatesample] | Configuration used to setup CE-PE connectivity PUT Method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_Create_MaximumSet_Gen.json | -| [networkToNetworkInterconnectsDeleteSample.ts][networktonetworkinterconnectsdeletesample] | Implements NetworkToNetworkInterconnects DELETE method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_Delete_MaximumSet_Gen.json | -| [networkToNetworkInterconnectsGetSample.ts][networktonetworkinterconnectsgetsample] | Implements NetworkToNetworkInterconnects GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_Get_MaximumSet_Gen.json | -| [networkToNetworkInterconnectsListSample.ts][networktonetworkinterconnectslistsample] | Implements Network To Network Interconnects list by Network Fabric GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_List_MaximumSet_Gen.json | -| [operationsListSample.ts][operationslistsample] | Returns list of all operations. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ListOperations.json | -| [routePoliciesCreateSample.ts][routepoliciescreatesample] | Implements Route Policy PUT method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Create_MaximumSet_Gen.json | -| [routePoliciesDeleteSample.ts][routepoliciesdeletesample] | Implements Route Policy DELETE method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Delete_MaximumSet_Gen.json | -| [routePoliciesGetSample.ts][routepoliciesgetsample] | Implements Route Policy GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Get_MaximumSet_Gen.json | -| [routePoliciesListByResourceGroupSample.ts][routepolicieslistbyresourcegroupsample] | Implements RoutePolicies list by resource group GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_ListByResourceGroup_MaximumSet_Gen.json | -| [routePoliciesListBySubscriptionSample.ts][routepolicieslistbysubscriptionsample] | Implements RoutePolicies list by subscription GET method. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_ListBySubscription_MaximumSet_Gen.json | -| [routePoliciesUpdateSample.ts][routepoliciesupdatesample] | API to update certain properties of the Route Policy resource. x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Update_MaximumSet_Gen.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/accessControlListsCreateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID="" MANAGEDNETWORKFABRIC_RESOURCE_GROUP="" node dist/accessControlListsCreateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[accesscontrollistscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsCreateSample.ts -[accesscontrollistsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsDeleteSample.ts -[accesscontrollistsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsGetSample.ts -[accesscontrollistslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsListByResourceGroupSample.ts -[accesscontrollistslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsListBySubscriptionSample.ts -[accesscontrollistsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsUpdateSample.ts -[externalnetworkscleararpentriessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksClearArpEntriesSample.ts -[externalnetworksclearipv6neighborssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksClearIpv6NeighborsSample.ts -[externalnetworkscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksCreateSample.ts -[externalnetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksDeleteSample.ts -[externalnetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksGetSample.ts -[externalnetworkslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksListSample.ts -[externalnetworksupdateadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksUpdateAdministrativeStateSample.ts -[externalnetworksupdatebfdforbgpadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksUpdateBfdForBgpAdministrativeStateSample.ts -[externalnetworksupdatebgpadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksUpdateBgpAdministrativeStateSample.ts -[externalnetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksUpdateSample.ts -[internalnetworkscleararpentriessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksClearArpEntriesSample.ts -[internalnetworksclearipv6neighborssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksClearIpv6NeighborsSample.ts -[internalnetworkscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksCreateSample.ts -[internalnetworksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksDeleteSample.ts -[internalnetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksGetSample.ts -[internalnetworkslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksListSample.ts -[internalnetworksupdateadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateAdministrativeStateSample.ts -[internalnetworksupdatebfdforbgpadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateBfdForBgpAdministrativeStateSample.ts -[internalnetworksupdatebfdforstaticrouteadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateBfdForStaticRouteAdministrativeStateSample.ts -[internalnetworksupdatebgpadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateBgpAdministrativeStateSample.ts -[internalnetworksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateSample.ts -[ipcommunitiescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesCreateSample.ts -[ipcommunitiesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesDeleteSample.ts -[ipcommunitiesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesGetSample.ts -[ipcommunitieslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesListByResourceGroupSample.ts -[ipcommunitieslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesListBySubscriptionSample.ts -[ipcommunitiesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesUpdateSample.ts -[ipextendedcommunitiescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesCreateSample.ts -[ipextendedcommunitiesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesDeleteSample.ts -[ipextendedcommunitiesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesGetSample.ts -[ipextendedcommunitieslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesListByResourceGroupSample.ts -[ipextendedcommunitieslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesListBySubscriptionSample.ts -[ipextendedcommunitiesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesUpdateSample.ts -[ipprefixescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesCreateSample.ts -[ipprefixesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesDeleteSample.ts -[ipprefixesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesGetSample.ts -[ipprefixeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesListByResourceGroupSample.ts -[ipprefixeslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesListBySubscriptionSample.ts -[ipprefixesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesUpdateSample.ts -[l2isolationdomainscleararptablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsClearArpTableSample.ts -[l2isolationdomainsclearneighbortablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsClearNeighborTableSample.ts -[l2isolationdomainscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsCreateSample.ts -[l2isolationdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsDeleteSample.ts -[l2isolationdomainsgetarpentriessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsGetArpEntriesSample.ts -[l2isolationdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsGetSample.ts -[l2isolationdomainslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsListByResourceGroupSample.ts -[l2isolationdomainslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsListBySubscriptionSample.ts -[l2isolationdomainsupdateadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsUpdateAdministrativeStateSample.ts -[l2isolationdomainsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsUpdateSample.ts -[l3isolationdomainscleararptablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsClearArpTableSample.ts -[l3isolationdomainsclearneighbortablesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsClearNeighborTableSample.ts -[l3isolationdomainscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsCreateSample.ts -[l3isolationdomainsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsDeleteSample.ts -[l3isolationdomainsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsGetSample.ts -[l3isolationdomainslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsListByResourceGroupSample.ts -[l3isolationdomainslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsListBySubscriptionSample.ts -[l3isolationdomainsupdateadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsUpdateAdministrativeStateSample.ts -[l3isolationdomainsupdateoptionbadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsUpdateOptionBAdministrativeStateSample.ts -[l3isolationdomainsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsUpdateSample.ts -[networkdeviceskusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDeviceSkusGetSample.ts -[networkdeviceskuslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDeviceSkusListBySubscriptionSample.ts -[networkdevicescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesCreateSample.ts -[networkdevicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesDeleteSample.ts -[networkdevicesgeneratesupportpackagesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGenerateSupportPackageSample.ts -[networkdevicesgetdynamicinterfacemapssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGetDynamicInterfaceMapsSample.ts -[networkdevicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGetSample.ts -[networkdevicesgetstaticinterfacemapssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGetStaticInterfaceMapsSample.ts -[networkdevicesgetstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGetStatusSample.ts -[networkdeviceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesListByResourceGroupSample.ts -[networkdeviceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesListBySubscriptionSample.ts -[networkdevicesrebootsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesRebootSample.ts -[networkdevicesrestoreconfigsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesRestoreConfigSample.ts -[networkdevicesupdatepowercyclesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesUpdatePowerCycleSample.ts -[networkdevicesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesUpdateSample.ts -[networkdevicesupdateversionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesUpdateVersionSample.ts -[networkfabriccontrollerscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersCreateSample.ts -[networkfabriccontrollersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersDeleteSample.ts -[networkfabriccontrollersdisableworkloadmanagementnetworksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersDisableWorkloadManagementNetworkSample.ts -[networkfabriccontrollersenableworkloadmanagementnetworksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersEnableWorkloadManagementNetworkSample.ts -[networkfabriccontrollersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersGetSample.ts -[networkfabriccontrollerslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersListByResourceGroupSample.ts -[networkfabriccontrollerslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersListBySubscriptionSample.ts -[networkfabriccontrollersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersUpdateSample.ts -[networkfabricskusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricSkusGetSample.ts -[networkfabricskuslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricSkusListBySubscriptionSample.ts -[networkfabricscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsCreateSample.ts -[networkfabricsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsDeleteSample.ts -[networkfabricsdeprovisionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsDeprovisionSample.ts -[networkfabricsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsGetSample.ts -[networkfabricslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsListByResourceGroupSample.ts -[networkfabricslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsListBySubscriptionSample.ts -[networkfabricsprovisionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsProvisionSample.ts -[networkfabricsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsUpdateSample.ts -[networkinterfacescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesCreateSample.ts -[networkinterfacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesDeleteSample.ts -[networkinterfacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesGetSample.ts -[networkinterfacesgetstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesGetStatusSample.ts -[networkinterfaceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesListSample.ts -[networkinterfacesupdateadministrativestatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesUpdateAdministrativeStateSample.ts -[networkinterfacesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesUpdateSample.ts -[networkrackskusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRackSkusGetSample.ts -[networkrackskuslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRackSkusListBySubscriptionSample.ts -[networkrackscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksCreateSample.ts -[networkracksdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksDeleteSample.ts -[networkracksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksGetSample.ts -[networkrackslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksListByResourceGroupSample.ts -[networkrackslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksListBySubscriptionSample.ts -[networkracksupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksUpdateSample.ts -[networktonetworkinterconnectscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkToNetworkInterconnectsCreateSample.ts -[networktonetworkinterconnectsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkToNetworkInterconnectsDeleteSample.ts -[networktonetworkinterconnectsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkToNetworkInterconnectsGetSample.ts -[networktonetworkinterconnectslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkToNetworkInterconnectsListSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/operationsListSample.ts -[routepoliciescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesCreateSample.ts -[routepoliciesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesDeleteSample.ts -[routepoliciesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesGetSample.ts -[routepolicieslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesListByResourceGroupSample.ts -[routepolicieslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesListBySubscriptionSample.ts -[routepoliciesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesUpdateSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-managednetworkfabric?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managednetworkfabric/arm-managednetworkfabric/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/package.json b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/package.json deleted file mode 100644 index 25aa58da1192..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@azure-samples/arm-managednetworkfabric-ts-beta", - "private": true, - "version": "1.0.0", - "description": " client library samples for TypeScript (Beta)", - "engines": { - "node": ">=14.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/managednetworkfabric/arm-managednetworkfabric" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managednetworkfabric/arm-managednetworkfabric", - "dependencies": { - "@azure/arm-managednetworkfabric": "next", - "dotenv": "latest", - "@azure/identity": "^2.0.1" - }, - "devDependencies": { - "@types/node": "^14.0.0", - "typescript": "~5.0.0", - "rimraf": "latest" - } -} diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/sample.env b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsCreateSample.ts deleted file mode 100644 index 65a9b6d4b2d8..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsCreateSample.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AccessControlList, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements Access Control List PUT method. - * - * @summary Implements Access Control List PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Create_MinimumSet_Gen.json - */ -async function accessControlListsCreateMinimumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const accessControlListName = "aclOne"; - const body: AccessControlList = { - addressFamily: "ipv4", - conditions: [ - { - action: "allow", - destinationAddress: "1.1.1.1", - destinationPort: "21", - sequenceNumber: 3, - sourceAddress: "2.2.2.2", - sourcePort: "65000", - protocol: 6 - } - ], - location: "EastUs" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.accessControlLists.create( - resourceGroupName, - accessControlListName, - body - ); - console.log(result); -} - -async function main() { - accessControlListsCreateMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsDeleteSample.ts deleted file mode 100644 index 646181ff42a8..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements Access Control List DELETE method. - * - * @summary Implements Access Control List DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Delete_MinimumSet_Gen.json - */ -async function accessControlListsDeleteMinimumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "subscriptionId"; - const accessControlListName = "aclOne"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.accessControlLists.delete( - resourceGroupName, - accessControlListName - ); - console.log(result); -} - -async function main() { - accessControlListsDeleteMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsGetSample.ts deleted file mode 100644 index 7c57ae1520a6..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements Access Control List GET method. - * - * @summary Implements Access Control List GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Get_MinimumSet_Gen.json - */ -async function accessControlListsGetMinimumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const accessControlListName = "aclOne"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.accessControlLists.get( - resourceGroupName, - accessControlListName - ); - console.log(result); -} - -async function main() { - accessControlListsGetMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsListByResourceGroupSample.ts deleted file mode 100644 index b1413535da8b..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements AccessControlLists list by resource group GET method. - * - * @summary Implements AccessControlLists list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_ListByResourceGroup_MinimumSet_Gen.json - */ -async function accessControlListsListByResourceGroupMinimumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.accessControlLists.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accessControlListsListByResourceGroupMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsListBySubscriptionSample.ts deleted file mode 100644 index 641a376df61e..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements AccessControlLists list by subscription GET method. - * - * @summary Implements AccessControlLists list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_ListBySubscription_MinimumSet_Gen.json - */ -async function accessControlListsListBySubscriptionMinimumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.accessControlLists.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - accessControlListsListBySubscriptionMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsUpdateSample.ts deleted file mode 100644 index a617cccb7564..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/accessControlListsUpdateSample.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AccessControlListPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to API to update certain properties of the Access Control List resource. - * - * @summary API to update certain properties of the Access Control List resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/AccessControlLists_Update_MinimumSet_Gen.json - */ -async function accessControlListsUpdateMinimumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const accessControlListName = "aclOne"; - const body: AccessControlListPatch = { - addressFamily: "ipv4", - conditions: [ - { - action: "allow", - destinationAddress: "1.1.1.2", - destinationPort: "21", - sequenceNumber: 4, - sourceAddress: "2.2.2.3", - sourcePort: "65000", - protocol: 6 - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.accessControlLists.update( - resourceGroupName, - accessControlListName, - body - ); - console.log(result); -} - -async function main() { - accessControlListsUpdateMinimumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksClearArpEntriesSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksClearArpEntriesSample.ts deleted file mode 100644 index 4df6a52ce248..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksClearArpEntriesSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EnableDisableOnResources, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to clearArpEntries for externalNetwork. - * - * @summary clearArpEntries for externalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_clearArpEntries_MaximumSet_Gen.json - */ -async function externalNetworksClearArpEntriesMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body: EnableDisableOnResources = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.beginClearArpEntriesAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksClearArpEntriesMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksClearIpv6NeighborsSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksClearIpv6NeighborsSample.ts deleted file mode 100644 index 1fbfa382fbbe..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksClearIpv6NeighborsSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EnableDisableOnResources, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to clearIpv6Neighbors for externalNetwork. - * - * @summary clearIpv6Neighbors for externalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_clearIpv6Neighbors_MaximumSet_Gen.json - */ -async function externalNetworksClearIpv6NeighborsMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body: EnableDisableOnResources = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.beginClearIpv6NeighborsAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksClearIpv6NeighborsMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksCreateSample.ts deleted file mode 100644 index 9439f95097c2..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksCreateSample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ExternalNetwork, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates ExternalNetwork PUT method. - * - * @summary Creates ExternalNetwork PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Create_MaximumSet_Gen.json - */ -async function externalNetworksCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body: ExternalNetwork = { - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName", - importRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName", - optionAProperties: { - bfdConfiguration: {}, - mtu: 1500, - peerASN: 65047, - primaryIpv4Prefix: "10.1.1.0/30", - primaryIpv6Prefix: "3FFE:FFFF:0:CD30::a0/126", - secondaryIpv4Prefix: "10.1.1.4/30", - secondaryIpv6Prefix: "3FFE:FFFF:0:CD30::a4/126", - vlanId: 1001 - }, - optionBProperties: { - exportRouteTargets: ["65046:10039"], - importRouteTargets: ["65046:10039"] - }, - peeringOption: "OptionA" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.beginCreateAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksDeleteSample.ts deleted file mode 100644 index 176fd24c77f9..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksDeleteSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements ExternalNetworks DELETE method. - * - * @summary Implements ExternalNetworks DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Delete_MaximumSet_Gen.json - */ -async function externalNetworksDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.beginDeleteAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName - ); - console.log(result); -} - -async function main() { - externalNetworksDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksGetSample.ts deleted file mode 100644 index baf2ed492117..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksGetSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements ExternalNetworks GET method. - * - * @summary Implements ExternalNetworks GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Get_MaximumSet_Gen.json - */ -async function externalNetworksGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.get( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName - ); - console.log(result); -} - -async function main() { - externalNetworksGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksListSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksListSample.ts deleted file mode 100644 index 2d2bee2813d2..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksListSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements External Networks list by resource group GET method. - * - * @summary Implements External Networks list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_List_MaximumSet_Gen.json - */ -async function externalNetworksListMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.externalNetworks.list( - resourceGroupName, - l3IsolationDomainName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - externalNetworksListMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksUpdateAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksUpdateAdministrativeStateSample.ts deleted file mode 100644 index eaca6d1da125..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksUpdateAdministrativeStateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Executes update operation to enable or disable administrative State for externalNetwork. - * - * @summary Executes update operation to enable or disable administrative State for externalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_updateAdministrativeState_MaximumSet_Gen.json - */ -async function externalNetworksUpdateAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.beginUpdateAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksUpdateAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksUpdateBfdForBgpAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksUpdateBfdForBgpAdministrativeStateSample.ts deleted file mode 100644 index dc7332221b70..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksUpdateBfdForBgpAdministrativeStateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update BfdForBgp for externalNetwork. - * - * @summary Update BfdForBgp for externalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_updateBfdForBgpAdministrativeState_MaximumSet_Gen.json - */ -async function externalNetworksUpdateBfdForBgpAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.beginUpdateBfdForBgpAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksUpdateBfdForBgpAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksUpdateBgpAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksUpdateBgpAdministrativeStateSample.ts deleted file mode 100644 index 2ec2c5b55744..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksUpdateBgpAdministrativeStateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update BGP for externalNetwork. - * - * @summary Update BGP for externalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_updateBgpAdministrativeState_MaximumSet_Gen.json - */ -async function externalNetworksUpdateBgpAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.beginUpdateBgpAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksUpdateBgpAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksUpdateSample.ts deleted file mode 100644 index 2d92f020311d..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/externalNetworksUpdateSample.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ExternalNetworkPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to API to update certain properties of the ExternalNetworks resource. - * - * @summary API to update certain properties of the ExternalNetworks resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ExternalNetworks_Update_MaximumSet_Gen.json - */ -async function externalNetworksUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const externalNetworkName = "example-externalnetwork"; - const body: ExternalNetworkPatch = { - annotation: "Lab 1", - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName", - importRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName", - optionAProperties: { - bfdConfiguration: {}, - mtu: 1500, - peerASN: 65047, - primaryIpv4Prefix: "10.1.1.0/30", - primaryIpv6Prefix: "3FFE:FFFF:0:CD30::a0/126", - secondaryIpv4Prefix: "10.1.1.4/30", - secondaryIpv6Prefix: "3FFE:FFFF:0:CD30::a4/126", - vlanId: 1001 - }, - optionBProperties: { - exportRouteTargets: ["65046:10039"], - importRouteTargets: ["65046:10039"] - }, - peeringOption: "OptionA" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.externalNetworks.beginUpdateAndWait( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body - ); - console.log(result); -} - -async function main() { - externalNetworksUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksClearArpEntriesSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksClearArpEntriesSample.ts deleted file mode 100644 index 9929f0865bd3..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksClearArpEntriesSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EnableDisableOnResources, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to clearArpEntries for internalNetwork. - * - * @summary clearArpEntries for internalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_clearArpEntries_MaximumSet_Gen.json - */ -async function internalNetworksClearArpEntriesMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body: EnableDisableOnResources = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginClearArpEntriesAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksClearArpEntriesMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksClearIpv6NeighborsSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksClearIpv6NeighborsSample.ts deleted file mode 100644 index 9f83c8e0338d..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksClearIpv6NeighborsSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EnableDisableOnResources, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to clearIpv6Neighbors for internalNetwork. - * - * @summary clearIpv6Neighbors for internalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_clearIpv6Neighbors_MaximumSet_Gen.json - */ -async function internalNetworksClearIpv6NeighborsMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body: EnableDisableOnResources = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginClearIpv6NeighborsAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksClearIpv6NeighborsMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksCreateSample.ts deleted file mode 100644 index 76b1389ff603..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksCreateSample.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - InternalNetwork, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates InternalNetwork PUT method. - * - * @summary Creates InternalNetwork PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Create_MaximumSet_Gen.json - */ -async function internalNetworksCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body: InternalNetwork = { - bgpConfiguration: { - allowAS: 1, - allowASOverride: "Enable", - bfdConfiguration: {}, - defaultRouteOriginate: "True", - ipv4ListenRangePrefixes: ["10.1.0.0/25"], - ipv4NeighborAddress: [{ address: "10.1.0.0" }], - ipv6ListenRangePrefixes: ["2fff::/66"], - ipv6NeighborAddress: [{ address: "2fff::" }], - peerASN: 6 - }, - connectedIPv4Subnets: [{ prefix: "10.0.0.0/24" }], - connectedIPv6Subnets: [{ prefix: "3FFE:FFFF:0:CD30::a0/29" }], - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName2", - importRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName1", - mtu: 1500, - staticRouteConfiguration: { - bfdConfiguration: {}, - ipv4Routes: [{ nextHop: ["10.0.0.1"], prefix: "10.1.0.0/24" }], - ipv6Routes: [{ nextHop: ["2ffe::1"], prefix: "2fff::/64" }] - }, - vlanId: 501 - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginCreateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksDeleteSample.ts deleted file mode 100644 index d4dbfb1b2438..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksDeleteSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements InternalNetworks DELETE method. - * - * @summary Implements InternalNetworks DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Delete_MaximumSet_Gen.json - */ -async function internalNetworksDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginDeleteAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName - ); - console.log(result); -} - -async function main() { - internalNetworksDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksGetSample.ts deleted file mode 100644 index 88ade242d130..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksGetSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a InternalNetworks. - * - * @summary Gets a InternalNetworks. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Get_MaximumSet_Gen.json - */ -async function internalNetworksGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.get( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName - ); - console.log(result); -} - -async function main() { - internalNetworksGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksListSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksListSample.ts deleted file mode 100644 index 5519245a5e5d..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksListSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Displays InternalNetworks list by resource group GET method. - * - * @summary Displays InternalNetworks list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_List_MaximumSet_Gen.json - */ -async function internalNetworksListMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.internalNetworks.list( - resourceGroupName, - l3IsolationDomainName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - internalNetworksListMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateAdministrativeStateSample.ts deleted file mode 100644 index 28e3711a9ddc..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateAdministrativeStateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update Administrative state of InternalNetworks on resources referred by their resource ids. - * - * @summary Update Administrative state of InternalNetworks on resources referred by their resource ids. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateAdministrativeState_MaximumSet_Gen.json - */ -async function internalNetworksUpdateAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/example-l3domain/internalNetworks/example-internalnetwork" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginUpdateAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksUpdateAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateBfdForBgpAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateBfdForBgpAdministrativeStateSample.ts deleted file mode 100644 index c47a803d8f6d..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateBfdForBgpAdministrativeStateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update BfdForBgp for internalNetwork. - * - * @summary Update BfdForBgp for internalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateBfdForBgpAdministrativeState_MaximumSet_Gen.json - */ -async function internalNetworksUpdateBfdForBgpAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/example-l3domain/internalNetworks/example-internalnetwork" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginUpdateBfdForBgpAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksUpdateBfdForBgpAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateBfdForStaticRouteAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateBfdForStaticRouteAdministrativeStateSample.ts deleted file mode 100644 index c06d00870fdb..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateBfdForStaticRouteAdministrativeStateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update BfdForStaticRoutes for internalNetwork. - * - * @summary Update BfdForStaticRoutes for internalNetwork. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateBfdForStaticRouteAdministrativeState_MaximumSet_Gen.json - */ -async function internalNetworksUpdateBfdForStaticRouteAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/example-l3domain/internalNetworks/example-internalnetwork" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginUpdateBfdForStaticRouteAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksUpdateBfdForStaticRouteAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateBgpAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateBgpAdministrativeStateSample.ts deleted file mode 100644 index 5b9078792d83..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateBgpAdministrativeStateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update BGP state for internalNetwork. Allowed only on edge devices. - * - * @summary Update BGP state for internalNetwork. Allowed only on edge devices. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_updateBgpAdministrativeState_MaximumSet_Gen.json - */ -async function internalNetworksUpdateBgpAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/example-l3domain/internalNetworks/example-internalnetwork" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginUpdateBgpAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksUpdateBgpAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateSample.ts deleted file mode 100644 index ece280392ade..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/internalNetworksUpdateSample.ts +++ /dev/null @@ -1,76 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - InternalNetworkPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates a InternalNetworks. - * - * @summary Updates a InternalNetworks. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/InternalNetworks_Update_MaximumSet_Gen.json - */ -async function internalNetworksUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const internalNetworkName = "example-internalnetwork"; - const body: InternalNetworkPatch = { - bgpConfiguration: { - allowAS: 1, - allowASOverride: "Enable", - bfdConfiguration: {}, - defaultRouteOriginate: "True", - ipv4ListenRangePrefixes: ["10.1.0.0/25"], - ipv4NeighborAddress: [{ address: "10.1.0.0" }], - ipv6ListenRangePrefixes: ["2fff::/66"], - ipv6NeighborAddress: [{ address: "2fff::" }], - peerASN: 6 - }, - connectedIPv4Subnets: [{ prefix: "10.0.0.0/24" }], - connectedIPv6Subnets: [{ prefix: "3FFE:FFFF:0:CD30::a0/29" }], - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName2", - importRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName1", - mtu: 1500, - staticRouteConfiguration: { - bfdConfiguration: {}, - ipv4Routes: [{ nextHop: ["10.0.0.1"], prefix: "10.1.0.0/24" }], - ipv6Routes: [{ nextHop: ["2ffe::1"], prefix: "2fff::/64" }] - } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.internalNetworks.beginUpdateAndWait( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body - ); - console.log(result); -} - -async function main() { - internalNetworksUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesCreateSample.ts deleted file mode 100644 index 64029c2c1b94..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesCreateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - IpCommunity, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements an IP Community PUT method. - * - * @summary Implements an IP Community PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Create_MaximumSet_Gen.json - */ -async function ipCommunitiesCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgIpCommunityLists"; - const ipCommunityName = "example-ipCommunity"; - const body: IpCommunity = { - action: "Permit", - annotation: "annotationValue", - communityMembers: ["1234:5678"], - location: "EastUS", - tags: { key2814: "" }, - wellKnownCommunities: ["Internet", "LocalAS", "NoExport", "GShut"] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipCommunities.beginCreateAndWait( - resourceGroupName, - ipCommunityName, - body - ); - console.log(result); -} - -async function main() { - ipCommunitiesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesDeleteSample.ts deleted file mode 100644 index bf59c2c9e195..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IP Community DELETE method. - * - * @summary Implements IP Community DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Delete_MaximumSet_Gen.json - */ -async function ipCommunitiesDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const ipCommunityName = "IpCommunityList1"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipCommunities.beginDeleteAndWait( - resourceGroupName, - ipCommunityName - ); - console.log(result); -} - -async function main() { - ipCommunitiesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesGetSample.ts deleted file mode 100644 index 945ba2072845..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements an IP Community GET method. - * - * @summary Implements an IP Community GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Get_MaximumSet_Gen.json - */ -async function ipCommunitiesGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const ipCommunityName = "example-ipCommunity"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipCommunities.get( - resourceGroupName, - ipCommunityName - ); - console.log(result); -} - -async function main() { - ipCommunitiesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesListByResourceGroupSample.ts deleted file mode 100644 index 5c0ede5a35f4..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IpCommunities list by resource group GET method. - * - * @summary Implements IpCommunities list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_ListByResourceGroup_MaximumSet_Gen.json - */ -async function ipCommunitiesListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.ipCommunities.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipCommunitiesListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesListBySubscriptionSample.ts deleted file mode 100644 index 464725791299..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IpCommunities list by subscription GET method. - * - * @summary Implements IpCommunities list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_ListBySubscription_MaximumSet_Gen.json - */ -async function ipCommunitiesListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.ipCommunities.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipCommunitiesListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesUpdateSample.ts deleted file mode 100644 index 0b12b6633030..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipCommunitiesUpdateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - IpCommunityPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to API to update certain properties of the IP Community resource. - * - * @summary API to update certain properties of the IP Community resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpCommunities_Update_MaximumSet_Gen.json - */ -async function ipCommunitiesUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const ipCommunityName = "example-ipCommunity"; - const body: IpCommunityPatch = { tags: { key2814: "" } }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipCommunities.beginUpdateAndWait( - resourceGroupName, - ipCommunityName, - body - ); - console.log(result); -} - -async function main() { - ipCommunitiesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesCreateSample.ts deleted file mode 100644 index ba64f36256ca..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesCreateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - IpExtendedCommunity, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IP Extended Community PUT method. - * - * @summary Implements IP Extended Community PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Create_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || - "rgIpExtendedCommunityLists"; - const ipExtendedCommunityName = "example_ipExtendedCommunity"; - const body: IpExtendedCommunity = { - action: "Permit", - annotation: "annotationValue", - location: "EastUs", - routeTargets: ["1234:5678"], - tags: { key5054: "key" } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipExtendedCommunities.beginCreateAndWait( - resourceGroupName, - ipExtendedCommunityName, - body - ); - console.log(result); -} - -async function main() { - ipExtendedCommunitiesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesDeleteSample.ts deleted file mode 100644 index 43e8777f55f7..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesDeleteSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IP Extended Community DELETE method. - * - * @summary Implements IP Extended Community DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Delete_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || - "rgIpExtendedCommunityLists"; - const ipExtendedCommunityName = "example_ipExtendedCommunity"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipExtendedCommunities.beginDeleteAndWait( - resourceGroupName, - ipExtendedCommunityName - ); - console.log(result); -} - -async function main() { - ipExtendedCommunitiesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesGetSample.ts deleted file mode 100644 index c269912fe944..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesGetSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IP Extended Community GET method. - * - * @summary Implements IP Extended Community GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Get_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || - "rgIpExtendedCommunityLists"; - const ipExtendedCommunityName = "example_ipExtendedCommunity"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipExtendedCommunities.get( - resourceGroupName, - ipExtendedCommunityName - ); - console.log(result); -} - -async function main() { - ipExtendedCommunitiesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesListByResourceGroupSample.ts deleted file mode 100644 index 8eb8171f862a..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesListByResourceGroupSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IpExtendedCommunities list by resource group GET method. - * - * @summary Implements IpExtendedCommunities list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_ListByResourceGroup_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || - "rgIpExtendedCommunityLists"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.ipExtendedCommunities.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipExtendedCommunitiesListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesListBySubscriptionSample.ts deleted file mode 100644 index 24f117f8be7a..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IpExtendedCommunities list by subscription GET method. - * - * @summary Implements IpExtendedCommunities list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_ListBySubscription_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.ipExtendedCommunities.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipExtendedCommunitiesListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesUpdateSample.ts deleted file mode 100644 index b58461159e42..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipExtendedCommunitiesUpdateSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - IpExtendedCommunityPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to API to update certain properties of the IP Extended Community resource. - * - * @summary API to update certain properties of the IP Extended Community resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpExtendedCommunities_Update_MaximumSet_Gen.json - */ -async function ipExtendedCommunitiesUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || - "rgIpExtendedCommunityLists"; - const ipExtendedCommunityName = "example_ipExtendedCommunity"; - const body: IpExtendedCommunityPatch = { tags: { key5054: "key1" } }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipExtendedCommunities.beginUpdateAndWait( - resourceGroupName, - ipExtendedCommunityName, - body - ); - console.log(result); -} - -async function main() { - ipExtendedCommunitiesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesCreateSample.ts deleted file mode 100644 index 6c35eb516a57..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesCreateSample.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - IpPrefix, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IP Prefix PUT method. - * - * @summary Implements IP Prefix PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Create_MaximumSet_Gen.json - */ -async function ipPrefixesCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourcegroupname"; - const ipPrefixName = "example-ipPrefix"; - const body: IpPrefix = { - annotation: "annotationValue", - ipPrefixRules: [ - { - action: "Permit", - condition: "EqualTo", - networkPrefix: "1.1.1.0/24", - sequenceNumber: 12, - subnetMaskLength: 28 - } - ], - location: "EastUS", - tags: { key6404: "" } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipPrefixes.beginCreateAndWait( - resourceGroupName, - ipPrefixName, - body - ); - console.log(result); -} - -async function main() { - ipPrefixesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesDeleteSample.ts deleted file mode 100644 index b920867bcc34..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IP Prefix DELETE method. - * - * @summary Implements IP Prefix DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Delete_MaximumSet_Gen.json - */ -async function ipPrefixesDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "xxxxxx"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgIpPrefixLists"; - const ipPrefixName = "example-ipPrefix"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipPrefixes.beginDeleteAndWait( - resourceGroupName, - ipPrefixName - ); - console.log(result); -} - -async function main() { - ipPrefixesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesGetSample.ts deleted file mode 100644 index 647c9b3bb520..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesGetSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IP Prefix GET method. - * - * @summary Implements IP Prefix GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Get_MaximumSet_Gen.json - */ -async function ipPrefixesGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "xxxxxx"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourcegroupname"; - const ipPrefixName = "example-ipPrefix"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipPrefixes.get(resourceGroupName, ipPrefixName); - console.log(result); -} - -async function main() { - ipPrefixesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesListByResourceGroupSample.ts deleted file mode 100644 index 92de13c651ff..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IpPrefixes list by resource group GET method. - * - * @summary Implements IpPrefixes list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_ListByResourceGroup_MaximumSet_Gen.json - */ -async function ipPrefixesListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourcegroupname"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.ipPrefixes.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipPrefixesListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesListBySubscriptionSample.ts deleted file mode 100644 index 614836496a17..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements IpPrefixes list by subscription GET method. - * - * @summary Implements IpPrefixes list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_ListBySubscription_MaximumSet_Gen.json - */ -async function ipPrefixesListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.ipPrefixes.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - ipPrefixesListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesUpdateSample.ts deleted file mode 100644 index 4e34173c6562..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/ipPrefixesUpdateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - IpPrefixPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to API to update certain properties of the IP Prefix resource. - * - * @summary API to update certain properties of the IP Prefix resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/IpPrefixes_Update_MaximumSet_Gen.json - */ -async function ipPrefixesUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourcegroupname"; - const ipPrefixName = "example-ipPrefix"; - const body: IpPrefixPatch = { tags: { key3127: "key" } }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.ipPrefixes.beginUpdateAndWait( - resourceGroupName, - ipPrefixName, - body - ); - console.log(result); -} - -async function main() { - ipPrefixesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsClearArpTableSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsClearArpTableSample.ts deleted file mode 100644 index 7dc3813e82e0..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsClearArpTableSample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EnableDisableOnResources, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Clears ARP tables for this Isolation Domain. - * - * @summary Clears ARP tables for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_clearArpTable_MaximumSet_Gen.json - */ -async function l2IsolationDomainsClearArpTableMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "example-l2domain"; - const body: EnableDisableOnResources = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/example-l2domain" - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l2IsolationDomains.beginClearArpTableAndWait( - resourceGroupName, - l2IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsClearArpTableMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsClearNeighborTableSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsClearNeighborTableSample.ts deleted file mode 100644 index 1f3ea54ecccd..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsClearNeighborTableSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EnableDisableOnResources, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Clears IPv6 neighbors for this Isolation Domain. - * - * @summary Clears IPv6 neighbors for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_clearNeighborTable_MaximumSet_Gen.json - */ -async function l2IsolationDomainsClearNeighborTableMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "qc"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || - "rgL2IsolationDomains"; - const l2IsolationDomainName = "oz"; - const body: EnableDisableOnResources = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/example-l2domain" - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l2IsolationDomains.beginClearNeighborTableAndWait( - resourceGroupName, - l2IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsClearNeighborTableMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsCreateSample.ts deleted file mode 100644 index ffa7fe370a1f..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsCreateSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - L2IsolationDomain, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied on the devices only after the isolation domain is enabled. - * - * @summary Creates layer 2 network connectivity between compute nodes within a rack and across racks.The configuration is applied on the devices only after the isolation domain is enabled. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Create_MaximumSet_Gen.json - */ -async function l2IsolationDomainsCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "example-l2domain"; - const body: L2IsolationDomain = { - location: "eastus", - mtu: 1500, - networkFabricId: - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/networkFabrics/FabricName", - vlanId: 501 - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l2IsolationDomains.beginCreateAndWait( - resourceGroupName, - l2IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsDeleteSample.ts deleted file mode 100644 index 4d5ee372b0f7..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes layer 2 connectivity between compute nodes by managed by named L2 Isolation name. - * - * @summary Deletes layer 2 connectivity between compute nodes by managed by named L2 Isolation name. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Delete_MaximumSet_Gen.json - */ -async function l2IsolationDomainsDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "example-l2domain"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l2IsolationDomains.beginDeleteAndWait( - resourceGroupName, - l2IsolationDomainName - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsGetArpEntriesSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsGetArpEntriesSample.ts deleted file mode 100644 index fecbdb499804..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsGetArpEntriesSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Clears IPv6 neighbors for this Isolation Domain. - * - * @summary Clears IPv6 neighbors for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_getArpEntries_MaximumSet_Gen.json - */ -async function l2IsolationDomainsGetArpEntriesMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "l2IsolationDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l2IsolationDomains.beginGetArpEntriesAndWait( - resourceGroupName, - l2IsolationDomainName - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsGetArpEntriesMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsGetSample.ts deleted file mode 100644 index 6a8a44ad6055..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements L2 Isolation Domain GET method. - * - * @summary Implements L2 Isolation Domain GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Get_MaximumSet_Gen.json - */ -async function l2IsolationDomainsGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "l2IsolationDomainName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l2IsolationDomains.get( - resourceGroupName, - l2IsolationDomainName - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsListByResourceGroupSample.ts deleted file mode 100644 index 108240b275b1..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Displays L2IsolationDomains list by resource group GET method. - * - * @summary Displays L2IsolationDomains list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_ListByResourceGroup_MaximumSet_Gen.json - */ -async function l2IsolationDomainsListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.l2IsolationDomains.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - l2IsolationDomainsListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsListBySubscriptionSample.ts deleted file mode 100644 index 97e959bfcc47..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Displays L2IsolationDomains list by subscription GET method. - * - * @summary Displays L2IsolationDomains list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_ListBySubscription_MaximumSet_Gen.json - */ -async function l2IsolationDomainsListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.l2IsolationDomains.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - l2IsolationDomainsListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsUpdateAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsUpdateAdministrativeStateSample.ts deleted file mode 100644 index 00a246f2c8e6..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsUpdateAdministrativeStateSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Enables isolation domain across the fabric or on specified racks. - * - * @summary Enables isolation domain across the fabric or on specified racks. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_updateAdministrativeState_MaximumSet_Gen.json - */ -async function l2IsolationDomainsUpdateAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "l2IsolationDomainName"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/example-l2domain" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l2IsolationDomains.beginUpdateAdministrativeStateAndWait( - resourceGroupName, - l2IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsUpdateAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsUpdateSample.ts deleted file mode 100644 index 5adc88236519..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l2IsolationDomainsUpdateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - L2IsolationDomainPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to API to update certain properties of the L2 Isolation Domain resource. - * - * @summary API to update certain properties of the L2 Isolation Domain resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L2IsolationDomains_Update_MaximumSet_Gen.json - */ -async function l2IsolationDomainsUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l2IsolationDomainName = "l2IsolationDomainName"; - const body: L2IsolationDomainPatch = { mtu: 9000 }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l2IsolationDomains.beginUpdateAndWait( - resourceGroupName, - l2IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l2IsolationDomainsUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsClearArpTableSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsClearArpTableSample.ts deleted file mode 100644 index 23f87ed4bd05..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsClearArpTableSample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EnableDisableOnResources, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Clears ARP tables for this Isolation Domain. - * - * @summary Clears ARP tables for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_clearArpTable_MaximumSet_Gen.json - */ -async function l3IsolationDomainsClearArpTableMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "l3IsolationDomainName"; - const body: EnableDisableOnResources = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l3IsolationDomains.beginClearArpTableAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsClearArpTableMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsClearNeighborTableSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsClearNeighborTableSample.ts deleted file mode 100644 index f39c5f712094..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsClearNeighborTableSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - EnableDisableOnResources, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Clears IPv6 neighbor tables for this Isolation Domain. - * - * @summary Clears IPv6 neighbor tables for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_clearNeighborTable_MaximumSet_Gen.json - */ -async function l3IsolationDomainsClearNeighborTableMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const body: EnableDisableOnResources = { resourceIds: ["wnaxqikneofcni"] }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l3IsolationDomains.beginClearNeighborTableAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsClearNeighborTableMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsCreateSample.ts deleted file mode 100644 index 84d68e5803f3..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsCreateSample.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - L3IsolationDomain, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is enabled. - * - * @summary Create isolation domain resources for layer 3 connectivity between compute nodes and for communication with external services .This configuration is applied on the devices only after the creation of networks is completed and isolation domain is enabled. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Create_MaximumSet_Gen.json - */ -async function l3IsolationDomainsCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const body: L3IsolationDomain = { - description: "creating L3 isolation domain", - aggregateRouteConfiguration: { - ipv4Routes: [{ prefix: "10.0.0.0/24" }], - ipv6Routes: [{ prefix: "10.0.0.1" }] - }, - connectedSubnetRoutePolicy: { - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName2" - }, - location: "eastus", - networkFabricId: - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/networkFabrics/FabricName", - redistributeConnectedSubnets: "True", - redistributeStaticRoutes: "False" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l3IsolationDomains.beginCreateAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsDeleteSample.ts deleted file mode 100644 index 26f90f79b6a5..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes layer 3 connectivity between compute nodes by managed by named L3 Isolation name. - * - * @summary Deletes layer 3 connectivity between compute nodes by managed by named L3 Isolation name. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Delete_MaximumSet_Gen.json - */ -async function l3IsolationDomainsDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l3IsolationDomains.beginDeleteAndWait( - resourceGroupName, - l3IsolationDomainName - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsGetSample.ts deleted file mode 100644 index ce8ec391cbf0..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieves details of this L3 Isolation Domain. - * - * @summary Retrieves details of this L3 Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Get_MaximumSet_Gen.json - */ -async function l3IsolationDomainsGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l3IsolationDomains.get( - resourceGroupName, - l3IsolationDomainName - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsListByResourceGroupSample.ts deleted file mode 100644 index 1e0bdd0e1e86..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Displays L3IsolationDomains list by resource group GET method. - * - * @summary Displays L3IsolationDomains list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_ListByResourceGroup_MaximumSet_Gen.json - */ -async function l3IsolationDomainsListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.l3IsolationDomains.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - l3IsolationDomainsListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsListBySubscriptionSample.ts deleted file mode 100644 index 7304003d3201..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Displays L3IsolationDomains list by subscription GET method. - * - * @summary Displays L3IsolationDomains list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_ListBySubscription_MaximumSet_Gen.json - */ -async function l3IsolationDomainsListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.l3IsolationDomains.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - l3IsolationDomainsListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsUpdateAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsUpdateAdministrativeStateSample.ts deleted file mode 100644 index 6e39b07b73f4..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsUpdateAdministrativeStateSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Enables racks for this Isolation Domain. - * - * @summary Enables racks for this Isolation Domain. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_updateAdministrativeState_MaximumSet_Gen.json - */ -async function l3IsolationDomainsUpdateAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l3IsolationDomains.beginUpdateAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsUpdateAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsUpdateOptionBAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsUpdateOptionBAdministrativeStateSample.ts deleted file mode 100644 index 3801cebe9844..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsUpdateOptionBAdministrativeStateSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update administrative state of option B on CE devices - * - * @summary Update administrative state of option B on CE devices - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_updateOptionBAdministrativeState_MaximumSet_Gen.json - */ -async function l3IsolationDomainsUpdateOptionBAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const body: UpdateAdministrativeState = { - resourceIds: [ - "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/example-l3domain" - ], - state: "Enable" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l3IsolationDomains.beginUpdateOptionBAdministrativeStateAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsUpdateOptionBAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsUpdateSample.ts deleted file mode 100644 index a682ef5a9759..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/l3IsolationDomainsUpdateSample.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - L3IsolationDomainPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to API to update certain properties of the L3 Isolation Domain resource. - * - * @summary API to update certain properties of the L3 Isolation Domain resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/L3IsolationDomains_Update_MaximumSet_Gen.json - */ -async function l3IsolationDomainsUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const l3IsolationDomainName = "example-l3domain"; - const body: L3IsolationDomainPatch = { - description: "creating L3 isolation domain", - aggregateRouteConfiguration: { - ipv4Routes: [{ prefix: "10.0.0.0/24" }], - ipv6Routes: [{ prefix: "3FFE:FFFF:0:CD30::a0/29" }] - }, - connectedSubnetRoutePolicy: { - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName" - }, - redistributeConnectedSubnets: "True", - redistributeStaticRoutes: "False" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.l3IsolationDomains.beginUpdateAndWait( - resourceGroupName, - l3IsolationDomainName, - body - ); - console.log(result); -} - -async function main() { - l3IsolationDomainsUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDeviceSkusGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDeviceSkusGetSample.ts deleted file mode 100644 index 25b10b369fa9..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDeviceSkusGetSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get Network Device SKU details. - * - * @summary Get Network Device SKU details. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDeviceSkus_Get_MaximumSet_Gen.json - */ -async function networkDeviceSkusGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const networkDeviceSkuName = "DefaultSku"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDeviceSkus.get(networkDeviceSkuName); - console.log(result); -} - -async function main() { - networkDeviceSkusGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDeviceSkusListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDeviceSkusListBySubscriptionSample.ts deleted file mode 100644 index 140e43e72de8..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDeviceSkusListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List Network Device SKUs for the given subscription. - * - * @summary List Network Device SKUs for the given subscription. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDeviceSkus_ListBySubscription_MaximumSet_Gen.json - */ -async function networkDeviceSkusListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkDeviceSkus.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkDeviceSkusListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesCreateSample.ts deleted file mode 100644 index 1c1a46483c47..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesCreateSample.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkDevice, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a Network Device resource - * - * @summary Create a Network Device resource - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Create_MaximumSet_Gen.json - */ -async function networkDevicesCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const body: NetworkDevice = { - annotation: "null", - hostName: "networkDeviceName", - location: "eastus", - networkDeviceRole: "CE", - networkDeviceSku: "DefaultSku", - serialNumber: "Arista;DCS-7280PR3-24;12.05;JPE21330382", - tags: { keyID: "keyValue" } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginCreateAndWait( - resourceGroupName, - networkDeviceName, - body - ); - console.log(result); -} - -async function main() { - networkDevicesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesDeleteSample.ts deleted file mode 100644 index 62efb789906b..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the Network Device resource. - * - * @summary Delete the Network Device resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Delete_MaximumSet_Gen.json - */ -async function networkDevicesDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginDeleteAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGenerateSupportPackageSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGenerateSupportPackageSample.ts deleted file mode 100644 index e76e0dfa7459..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGenerateSupportPackageSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Generate Support Package for the given Network Device. - * - * @summary Generate Support Package for the given Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_generateSupportPackage_MaximumSet_Gen.json - */ -async function networkDevicesGenerateSupportPackageMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginGenerateSupportPackageAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesGenerateSupportPackageMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGetDynamicInterfaceMapsSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGetDynamicInterfaceMapsSample.ts deleted file mode 100644 index 2a76f7c3204c..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGetDynamicInterfaceMapsSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the dynamic interface maps for the given Network Device. - * - * @summary Get the dynamic interface maps for the given Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_getDynamicInterfaceMaps_MaximumSet_Gen.json - */ -async function networkDevicesGetDynamicInterfaceMapsMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginGetDynamicInterfaceMapsAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesGetDynamicInterfaceMapsMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGetSample.ts deleted file mode 100644 index dc1170afb494..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the Network Device resource details. - * - * @summary Get the Network Device resource details. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Get_MaximumSet_Gen.json - */ -async function networkDevicesGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.get( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGetStaticInterfaceMapsSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGetStaticInterfaceMapsSample.ts deleted file mode 100644 index a5582f67c05b..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGetStaticInterfaceMapsSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the static interface maps for the given Network Device. - * - * @summary Get the static interface maps for the given Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_getStaticInterfaceMaps_MaximumSet_Gen.json - */ -async function networkDevicesGetStaticInterfaceMapsMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginGetStaticInterfaceMapsAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesGetStaticInterfaceMapsMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGetStatusSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGetStatusSample.ts deleted file mode 100644 index 2b9586a0f071..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesGetStatusSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the running status of the Network Device. - * - * @summary Get the running status of the Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_getStatus_MaximumSet_Gen.json - */ -async function networkDevicesGetStatusMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginGetStatusAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesGetStatusMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesListByResourceGroupSample.ts deleted file mode 100644 index 45ba84d455dd..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all the Network Device resources in a given resource group. - * - * @summary List all the Network Device resources in a given resource group. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_ListByResourceGroup_MaximumSet_Gen.json - */ -async function networkDevicesListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkDevices.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkDevicesListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesListBySubscriptionSample.ts deleted file mode 100644 index 5aee48d0d618..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all the Network Device resources in a given subscription. - * - * @summary List all the Network Device resources in a given subscription. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_ListBySubscription_MaximumSet_Gen.json - */ -async function networkDevicesListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkDevices.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkDevicesListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesRebootSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesRebootSample.ts deleted file mode 100644 index f03d5ed5c44a..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesRebootSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Reboot the Network Device. - * - * @summary Reboot the Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_reboot_MaximumSet_Gen.json - */ -async function networkDevicesRebootMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginRebootAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesRebootMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesRestoreConfigSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesRestoreConfigSample.ts deleted file mode 100644 index b65594f0d68f..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesRestoreConfigSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restore the configuration of the Network Device resource to last known good configuration. - * - * @summary Restore the configuration of the Network Device resource to last known good configuration. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_restoreConfig_MaximumSet_Gen.json - */ -async function networkDevicesRestoreConfigMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginRestoreConfigAndWait( - resourceGroupName, - networkDeviceName - ); - console.log(result); -} - -async function main() { - networkDevicesRestoreConfigMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesUpdatePowerCycleSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesUpdatePowerCycleSample.ts deleted file mode 100644 index c3cb74f71d2f..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesUpdatePowerCycleSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdatePowerCycleProperties, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update PDU power cycle of the Network Device. - * - * @summary Update PDU power cycle of the Network Device. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_updatePowerCycle_MaximumSet_Gen.json - */ -async function networkDevicesUpdatePowerCycleMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const body: UpdatePowerCycleProperties = { powerEnd: "Primary", state: "On" }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginUpdatePowerCycleAndWait( - resourceGroupName, - networkDeviceName, - body - ); - console.log(result); -} - -async function main() { - networkDevicesUpdatePowerCycleMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesUpdateSample.ts deleted file mode 100644 index a72ab248d10b..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesUpdateSample.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkDevicePatchParameters, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update certain properties of the Network Device resource. - * - * @summary Update certain properties of the Network Device resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_Update_MaximumSet_Gen.json - */ -async function networkDevicesUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const body: NetworkDevicePatchParameters = { - annotation: "null", - hostName: "networkDeviceName", - serialNumber: "Arista;DCS-7280PR3-24;12.05;JPE21330382", - tags: { keyID: "keyValue" } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginUpdateAndWait( - resourceGroupName, - networkDeviceName, - body - ); - console.log(result); -} - -async function main() { - networkDevicesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesUpdateVersionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesUpdateVersionSample.ts deleted file mode 100644 index 06faf9d36499..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkDevicesUpdateVersionSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateVersionProperties, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update the SKU version of the Network Device resource. - * - * @summary Update the SKU version of the Network Device resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkDevices_updateVersion_MaximumSet_Gen.json - */ -async function networkDevicesUpdateVersionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const body: UpdateVersionProperties = { skuVersion: "DefaultSku" }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkDevices.beginUpdateVersionAndWait( - resourceGroupName, - networkDeviceName, - body - ); - console.log(result); -} - -async function main() { - networkDevicesUpdateVersionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersCreateSample.ts deleted file mode 100644 index fbd02b7fe637..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersCreateSample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkFabricController, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates a Network Fabric Controller. - * - * @summary Creates a Network Fabric Controller. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Create_MaximumSet_Gen.json - */ -async function networkFabricControllersCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "NetworkControllerName"; - const body: NetworkFabricController = { - annotation: "lab 1", - infrastructureExpressRouteConnections: [ - { - expressRouteAuthorizationKey: "xxxxxxx", - expressRouteCircuitId: - "/subscriptions/xxxxx/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/expressRouteCircuitName" - } - ], - ipv4AddressSpace: "172.253.0.0/19", - location: "eastus", - managedResourceGroupConfiguration: { - name: "managedResourceGroupName", - location: "eastus" - }, - workloadExpressRouteConnections: [ - { - expressRouteAuthorizationKey: "xxxxx", - expressRouteCircuitId: - "/subscriptions/xxxxx/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/expressRouteCircuitName" - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabricControllers.beginCreateAndWait( - resourceGroupName, - networkFabricControllerName, - body - ); - console.log(result); -} - -async function main() { - networkFabricControllersCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersDeleteSample.ts deleted file mode 100644 index cbb7f32f80e8..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the Network Fabric Controller resource. - * - * @summary Deletes the Network Fabric Controller resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Delete_MaximumSet_Gen.json - */ -async function networkFabricControllersDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "networkFabricControllerName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabricControllers.beginDeleteAndWait( - resourceGroupName, - networkFabricControllerName - ); - console.log(result); -} - -async function main() { - networkFabricControllersDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersDisableWorkloadManagementNetworkSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersDisableWorkloadManagementNetworkSample.ts deleted file mode 100644 index c6743825f461..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersDisableWorkloadManagementNetworkSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Disables the workloadManagementNetwork (Tenant Network). - * - * @summary Disables the workloadManagementNetwork (Tenant Network). - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_disableWorkloadManagementNetwork_MaximumSet_Gen.json - */ -async function networkFabricControllersDisableWorkloadManagementNetworkMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "networkFabricControllerName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabricControllers.beginDisableWorkloadManagementNetworkAndWait( - resourceGroupName, - networkFabricControllerName - ); - console.log(result); -} - -async function main() { - networkFabricControllersDisableWorkloadManagementNetworkMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersEnableWorkloadManagementNetworkSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersEnableWorkloadManagementNetworkSample.ts deleted file mode 100644 index f287132da901..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersEnableWorkloadManagementNetworkSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Enables the workloadManagementNetwork (Tenant Network). - * - * @summary Enables the workloadManagementNetwork (Tenant Network). - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_enableWorkloadManagementNetwork_MaximumSet_Gen.json - */ -async function networkFabricControllersEnableWorkloadManagementNetworkMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "networkFabricControllerName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabricControllers.beginEnableWorkloadManagementNetworkAndWait( - resourceGroupName, - networkFabricControllerName - ); - console.log(result); -} - -async function main() { - networkFabricControllersEnableWorkloadManagementNetworkMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersGetSample.ts deleted file mode 100644 index 2aca418a87e8..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Shows the provisioning status of Network Fabric Controller. - * - * @summary Shows the provisioning status of Network Fabric Controller. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Get_MaximumSet_Gen.json - */ -async function networkFabricControllersGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "networkFabricControllerName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabricControllers.get( - resourceGroupName, - networkFabricControllerName - ); - console.log(result); -} - -async function main() { - networkFabricControllersGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersListByResourceGroupSample.ts deleted file mode 100644 index e58bad52e986..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the NetworkFabricControllers thats available in the resource group. - * - * @summary Lists all the NetworkFabricControllers thats available in the resource group. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_ListByResourceGroup_MaximumSet_Gen.json - */ -async function networkFabricControllersListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkFabricControllers.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkFabricControllersListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersListBySubscriptionSample.ts deleted file mode 100644 index 145d5752dd62..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all the NetworkFabricControllers by subscription. - * - * @summary Lists all the NetworkFabricControllers by subscription. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_ListBySubscription_MaximumSet_Gen.json - */ -async function networkFabricControllersListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkFabricControllers.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkFabricControllersListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersUpdateSample.ts deleted file mode 100644 index c3c8074bc95a..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricControllersUpdateSample.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkFabricControllerPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates are currently not supported for the Network Fabric Controller resource. - * - * @summary Updates are currently not supported for the Network Fabric Controller resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricControllers_Update_MaximumSet_Gen.json - */ -async function networkFabricControllersUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricControllerName = "networkFabricControllerName"; - const body: NetworkFabricControllerPatch = { - workloadExpressRouteConnections: [ - { - expressRouteAuthorizationKey: "xxxxxxx", - expressRouteCircuitId: - "/subscriptions/xxxxx/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/expressRouteCircuitName" - } - ] - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabricControllers.beginUpdateAndWait( - resourceGroupName, - networkFabricControllerName, - body - ); - console.log(result); -} - -async function main() { - networkFabricControllersUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricSkusGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricSkusGetSample.ts deleted file mode 100644 index 65fa3f6a3750..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricSkusGetSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements Network Fabric Sku GET method. - * - * @summary Implements Network Fabric Sku GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricSkus_Get_MaximumSet_Gen.json - */ -async function networkFabricSkusGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const networkFabricSkuName = "networkFabricSkuName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabricSkus.get(networkFabricSkuName); - console.log(result); -} - -async function main() { - networkFabricSkusGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricSkusListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricSkusListBySubscriptionSample.ts deleted file mode 100644 index 18459d90185f..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricSkusListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements NetworkFabricSkus list by subscription GET method. - * - * @summary Implements NetworkFabricSkus list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabricSkus_ListBySubscription_MaximumSet_Gen.json - */ -async function networkFabricSkusListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkFabricSkus.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkFabricSkusListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsCreateSample.ts deleted file mode 100644 index e9b8d01b90ec..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsCreateSample.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkFabric, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create Network Fabric resource. - * - * @summary Create Network Fabric resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Create_MaximumSet_Gen.json - */ -async function networkFabricsCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const body: NetworkFabric = { - annotation: "annotationValue", - fabricASN: 29249, - ipv4Prefix: "10.18.0.0/19", - ipv6Prefix: "3FFE:FFFF:0:CD40::/59", - location: "eastuseuap", - managementNetworkConfiguration: { - infrastructureVpnConfiguration: { - optionAProperties: { - mtu: 5892, - peerASN: 42666, - primaryIpv4Prefix: "20.0.0.12/30", - primaryIpv6Prefix: "3FFE:FFFF:0:CD30::a8/126", - secondaryIpv4Prefix: "20.0.0.13/30", - secondaryIpv6Prefix: "3FFE:FFFF:0:CD30::ac/126", - vlanId: 2724 - }, - optionBProperties: { - exportRouteTargets: ["65046:10039"], - importRouteTargets: ["65046:10039"] - }, - peeringOption: "OptionA" - }, - workloadVpnConfiguration: { - optionAProperties: { - mtu: 5892, - peerASN: 42666, - primaryIpv4Prefix: "10.0.0.14/30", - primaryIpv6Prefix: "2FFE:FFFF:0:CD30::a7/126", - secondaryIpv4Prefix: "10.0.0.15/30", - secondaryIpv6Prefix: "2FFE:FFFF:0:CD30::ac/126", - vlanId: 2724 - }, - optionBProperties: { - exportRouteTargets: ["65046:10050"], - importRouteTargets: ["65046:10050"] - }, - peeringOption: "OptionA" - } - }, - networkFabricControllerId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName", - networkFabricSku: "M4-A400-A100-C16-aa", - rackCount: 4, - serverCountPerRack: 8, - tags: { key6468: "" }, - terminalServerConfiguration: { - password: "xxxx", - primaryIpv4Prefix: "20.0.0.12/30", - primaryIpv6Prefix: "3FFE:FFFF:0:CD30::a8/126", - secondaryIpv4Prefix: "20.0.0.13/30", - secondaryIpv6Prefix: "3FFE:FFFF:0:CD30::ac/126", - serialNumber: "123456", - username: "username" - } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabrics.beginCreateAndWait( - resourceGroupName, - networkFabricName, - body - ); - console.log(result); -} - -async function main() { - networkFabricsCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsDeleteSample.ts deleted file mode 100644 index 4f9e42be2265..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsDeleteSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete Network Fabric resource. - * - * @summary Delete Network Fabric resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Delete_MaximumSet_Gen.json - */ -async function networkFabricsDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || - "70A68989-24C0-4FA7-B1B2-8A2BB6D10CA8"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgNetworkFabrics"; - const networkFabricName = "lrhjxlxlhgvufessdcuetcwnto"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabrics.beginDeleteAndWait( - resourceGroupName, - networkFabricName - ); - console.log(result); -} - -async function main() { - networkFabricsDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsDeprovisionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsDeprovisionSample.ts deleted file mode 100644 index e42ed87e8c19..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsDeprovisionSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deprovisions the underlying resources in the given Network Fabric instance. - * - * @summary Deprovisions the underlying resources in the given Network Fabric instance. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_deprovision_MaximumSet_Gen.json - */ -async function networkFabricsDeprovisionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabrics.beginDeprovisionAndWait( - resourceGroupName, - networkFabricName - ); - console.log(result); -} - -async function main() { - networkFabricsDeprovisionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsGetSample.ts deleted file mode 100644 index 3031cb751985..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get Network Fabric resource details. - * - * @summary Get Network Fabric resource details. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Get_MaximumSet_Gen.json - */ -async function networkFabricsGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabrics.get( - resourceGroupName, - networkFabricName - ); - console.log(result); -} - -async function main() { - networkFabricsGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsListByResourceGroupSample.ts deleted file mode 100644 index ee5530943414..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all the Network Fabric resources in the given resource group. - * - * @summary List all the Network Fabric resources in the given resource group. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_ListByResourceGroup_MaximumSet_Gen.json - */ -async function networkFabricsListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgNetworkFabrics"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkFabrics.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkFabricsListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsListBySubscriptionSample.ts deleted file mode 100644 index 18e6f2db11ad..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all the Network Fabric resources in the given subscription. - * - * @summary List all the Network Fabric resources in the given subscription. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_ListBySubscription_MaximumSet_Gen.json - */ -async function networkFabricsListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkFabrics.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkFabricsListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsProvisionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsProvisionSample.ts deleted file mode 100644 index 5c900ff0157c..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsProvisionSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provisions the underlying resources in the given Network Fabric instance. - * - * @summary Provisions the underlying resources in the given Network Fabric instance. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_provision_MaximumSet_Gen.json - */ -async function networkFabricsProvisionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabrics.beginProvisionAndWait( - resourceGroupName, - networkFabricName - ); - console.log(result); -} - -async function main() { - networkFabricsProvisionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsUpdateSample.ts deleted file mode 100644 index ebfea338b5a5..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkFabricsUpdateSample.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkFabricPatchParameters, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update certain properties of the Network Fabric resource. - * - * @summary Update certain properties of the Network Fabric resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkFabrics_Update_MaximumSet_Gen.json - */ -async function networkFabricsUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const body: NetworkFabricPatchParameters = { - annotation: "annotationValue", - tags: { key1758: "" }, - terminalServerConfiguration: { - password: "xxxxxxx", - serialNumber: "234567", - username: "username" - } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkFabrics.beginUpdateAndWait( - resourceGroupName, - networkFabricName, - body - ); - console.log(result); -} - -async function main() { - networkFabricsUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesCreateSample.ts deleted file mode 100644 index c9ce80ab7fda..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesCreateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkInterface, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a Network Interface resource. - * - * @summary Create a Network Interface resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Create_MaximumSet_Gen.json - */ -async function networkInterfacesCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const body: NetworkInterface = { annotation: "null" }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkInterfaces.beginCreateAndWait( - resourceGroupName, - networkDeviceName, - networkInterfaceName, - body - ); - console.log(result); -} - -async function main() { - networkInterfacesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesDeleteSample.ts deleted file mode 100644 index 9990c342c2b0..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesDeleteSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete the Network Interface resource. - * - * @summary Delete the Network Interface resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Delete_MaximumSet_Gen.json - */ -async function networkInterfacesDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkInterfaces.beginDeleteAndWait( - resourceGroupName, - networkDeviceName, - networkInterfaceName - ); - console.log(result); -} - -async function main() { - networkInterfacesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesGetSample.ts deleted file mode 100644 index 8f4c3f0f03fb..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesGetSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the Network Interface resource details. - * - * @summary Get the Network Interface resource details. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Get_MaximumSet_Gen.json - */ -async function networkInterfacesGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkInterfaces.get( - resourceGroupName, - networkDeviceName, - networkInterfaceName - ); - console.log(result); -} - -async function main() { - networkInterfacesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesGetStatusSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesGetStatusSample.ts deleted file mode 100644 index 12852cb1c6dc..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesGetStatusSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the running status of the Network Interface. - * - * @summary Get the running status of the Network Interface. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_getStatus_MaximumSet_Gen.json - */ -async function networkInterfacesGetStatusMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkInterfaces.beginGetStatusAndWait( - resourceGroupName, - networkDeviceName, - networkInterfaceName - ); - console.log(result); -} - -async function main() { - networkInterfacesGetStatusMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesListSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesListSample.ts deleted file mode 100644 index 68207a212135..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesListSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all the Network Interface resources in a given resource group. - * - * @summary List all the Network Interface resources in a given resource group. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_List_MaximumSet_Gen.json - */ -async function networkInterfacesListMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkInterfaces.list( - resourceGroupName, - networkDeviceName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkInterfacesListMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesUpdateAdministrativeStateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesUpdateAdministrativeStateSample.ts deleted file mode 100644 index edaff88d039e..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesUpdateAdministrativeStateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - UpdateAdministrativeState, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update the admin state of the Network Interface. - * - * @summary Update the admin state of the Network Interface. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_updateAdministrativeState_MaximumSet_Gen.json - */ -async function networkInterfacesUpdateAdministrativeStateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const body: UpdateAdministrativeState = { state: "Enable" }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkInterfaces.beginUpdateAdministrativeStateAndWait( - resourceGroupName, - networkDeviceName, - networkInterfaceName, - body - ); - console.log(result); -} - -async function main() { - networkInterfacesUpdateAdministrativeStateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesUpdateSample.ts deleted file mode 100644 index e68668d7cbf5..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkInterfacesUpdateSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkInterfacePatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update certain properties of the Network Interface resource. - * - * @summary Update certain properties of the Network Interface resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkInterfaces_Update_MaximumSet_Gen.json - */ -async function networkInterfacesUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkDeviceName = "networkDeviceName"; - const networkInterfaceName = "networkInterfaceName"; - const body: NetworkInterfacePatch = { annotation: "null" }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkInterfaces.beginUpdateAndWait( - resourceGroupName, - networkDeviceName, - networkInterfaceName, - body - ); - console.log(result); -} - -async function main() { - networkInterfacesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRackSkusGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRackSkusGetSample.ts deleted file mode 100644 index c661aff6cd5b..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRackSkusGetSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get Network Rack SKU resource. - * - * @summary Get Network Rack SKU resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRackSkus_Get_MaximumSet_Gen.json - */ -async function networkRackSkusGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const networkRackSkuName = "networkRackSkuName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkRackSkus.get(networkRackSkuName); - console.log(result); -} - -async function main() { - networkRackSkusGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRackSkusListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRackSkusListBySubscriptionSample.ts deleted file mode 100644 index a052058bf31c..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRackSkusListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all Network Rack SKUs in the given subscription. - * - * @summary List all Network Rack SKUs in the given subscription. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRackSkus_ListBySubscription_MaximumSet_Gen.json - */ -async function networkRackSkusListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkRackSkus.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkRackSkusListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksCreateSample.ts deleted file mode 100644 index dbf16ef63503..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksCreateSample.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkRack, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create Network Rack resource. - * - * @summary Create Network Rack resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Create_MaximumSet_Gen.json - */ -async function networkRacksCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkRackName = "networkRackName"; - const body: NetworkRack = { - annotation: "null", - location: "eastus", - networkFabricId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/networkFabricName", - networkRackSku: "RackSKU", - tags: { keyID: "keyValue" } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkRacks.beginCreateAndWait( - resourceGroupName, - networkRackName, - body - ); - console.log(result); -} - -async function main() { - networkRacksCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksDeleteSample.ts deleted file mode 100644 index a88d75450d86..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete Network Rack resource. - * - * @summary Delete Network Rack resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Delete_MaximumSet_Gen.json - */ -async function networkRacksDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkRackName = "networkRackName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkRacks.beginDeleteAndWait( - resourceGroupName, - networkRackName - ); - console.log(result); -} - -async function main() { - networkRacksDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksGetSample.ts deleted file mode 100644 index 795bfbb9246e..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get Network Rack resource details. - * - * @summary Get Network Rack resource details. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Get_MaximumSet_Gen.json - */ -async function networkRacksGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkRackName = "networkRackName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkRacks.get( - resourceGroupName, - networkRackName - ); - console.log(result); -} - -async function main() { - networkRacksGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksListByResourceGroupSample.ts deleted file mode 100644 index baa6b16fa171..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all Network Rack resources in the given resource group. - * - * @summary List all Network Rack resources in the given resource group. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_ListByResourceGroup_MaximumSet_Gen.json - */ -async function networkRacksListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkRacks.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkRacksListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksListBySubscriptionSample.ts deleted file mode 100644 index 998b451e0b86..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List all Network Rack resources in the given subscription - * - * @summary List all Network Rack resources in the given subscription - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_ListBySubscription_MaximumSet_Gen.json - */ -async function networkRacksListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkRacks.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkRacksListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksUpdateSample.ts deleted file mode 100644 index 4cfdc3dd4128..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkRacksUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkRackPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update certain properties of the Network Rack resource. - * - * @summary Update certain properties of the Network Rack resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkRacks_Update_MaximumSet_Gen.json - */ -async function networkRacksUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkRackName = "networkRackName"; - const body: NetworkRackPatch = { - properties: {}, - tags: { keyID: "keyValue" } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkRacks.beginUpdateAndWait( - resourceGroupName, - networkRackName, - body - ); - console.log(result); -} - -async function main() { - networkRacksUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkToNetworkInterconnectsCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkToNetworkInterconnectsCreateSample.ts deleted file mode 100644 index b88d188f253f..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkToNetworkInterconnectsCreateSample.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - NetworkToNetworkInterconnect, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Configuration used to setup CE-PE connectivity PUT Method. - * - * @summary Configuration used to setup CE-PE connectivity PUT Method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_Create_MaximumSet_Gen.json - */ -async function networkToNetworkInterconnectsCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const networkToNetworkInterconnectName = "DefaultNNI"; - const body: NetworkToNetworkInterconnect = { - isManagementType: "True", - layer2Configuration: { mtu: 1500, portCount: 10 }, - layer3Configuration: { - exportRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName2", - importRoutePolicyId: - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName1", - peerASN: 50272, - primaryIpv4Prefix: "172.31.0.0/31", - primaryIpv6Prefix: "3FFE:FFFF:0:CD30::a0/126", - secondaryIpv4Prefix: "172.31.0.20/31", - secondaryIpv6Prefix: "3FFE:FFFF:0:CD30::a4/126", - vlanId: 2064 - }, - nniType: "CE", - useOptionB: "False" - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkToNetworkInterconnects.beginCreateAndWait( - resourceGroupName, - networkFabricName, - networkToNetworkInterconnectName, - body - ); - console.log(result); -} - -async function main() { - networkToNetworkInterconnectsCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkToNetworkInterconnectsDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkToNetworkInterconnectsDeleteSample.ts deleted file mode 100644 index 32bb44eb2ec7..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkToNetworkInterconnectsDeleteSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements NetworkToNetworkInterconnects DELETE method. - * - * @summary Implements NetworkToNetworkInterconnects DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_Delete_MaximumSet_Gen.json - */ -async function networkToNetworkInterconnectsDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const networkToNetworkInterconnectName = "DefaultNNI"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkToNetworkInterconnects.beginDeleteAndWait( - resourceGroupName, - networkFabricName, - networkToNetworkInterconnectName - ); - console.log(result); -} - -async function main() { - networkToNetworkInterconnectsDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkToNetworkInterconnectsGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkToNetworkInterconnectsGetSample.ts deleted file mode 100644 index 489bcd62245b..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkToNetworkInterconnectsGetSample.ts +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements NetworkToNetworkInterconnects GET method. - * - * @summary Implements NetworkToNetworkInterconnects GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_Get_MaximumSet_Gen.json - */ -async function networkToNetworkInterconnectsGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const networkToNetworkInterconnectName = "DefaultNNI"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.networkToNetworkInterconnects.get( - resourceGroupName, - networkFabricName, - networkToNetworkInterconnectName - ); - console.log(result); -} - -async function main() { - networkToNetworkInterconnectsGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkToNetworkInterconnectsListSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkToNetworkInterconnectsListSample.ts deleted file mode 100644 index 6970ac8dfe69..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/networkToNetworkInterconnectsListSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements Network To Network Interconnects list by Network Fabric GET method. - * - * @summary Implements Network To Network Interconnects list by Network Fabric GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/NetworkToNetworkInterconnects_List_MaximumSet_Gen.json - */ -async function networkToNetworkInterconnectsListMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const networkFabricName = "FabricName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.networkToNetworkInterconnects.list( - resourceGroupName, - networkFabricName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - networkToNetworkInterconnectsListMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/operationsListSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/operationsListSample.ts deleted file mode 100644 index f6b3764b97f8..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/operationsListSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns list of all operations. - * - * @summary Returns list of all operations. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/ListOperations.json - */ -async function listOperations() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listOperations(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesCreateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesCreateSample.ts deleted file mode 100644 index 3393ce09aef1..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesCreateSample.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RoutePolicy, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements Route Policy PUT method. - * - * @summary Implements Route Policy PUT method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Create_MaximumSet_Gen.json - */ -async function routePoliciesCreateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgRoutePolicies"; - const routePolicyName = "routePolicyName"; - const body: RoutePolicy = { - annotation: "annotationValue", - location: "EastUS", - statements: [ - { - action: { - actionType: "Permit", - ipCommunityProperties: { - add: { - ipCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipCommunities/ipCommunityName" - ] - }, - delete: { - ipCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipCommunities/ipCommunityName" - ] - }, - set: { - ipCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipCommunities/ipCommunityName" - ] - } - }, - ipExtendedCommunityProperties: { - add: { - ipExtendedCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities/ipExtendedCommunityName" - ] - }, - delete: { - ipExtendedCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities/ipExtendedCommunityName" - ] - }, - set: { - ipExtendedCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities/ipExtendedCommunityName" - ] - } - }, - localPreference: 20 - }, - annotation: "annotationValue", - condition: { - ipCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipCommunities/ipCommunityName" - ], - ipExtendedCommunityIds: [ - "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities/ipExtendedCommunityName" - ], - ipPrefixId: - "subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/ipPrefixes/example-ipPrefix" - }, - sequenceNumber: 7 - } - ], - tags: { key8254: "" } - }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.routePolicies.beginCreateAndWait( - resourceGroupName, - routePolicyName, - body - ); - console.log(result); -} - -async function main() { - routePoliciesCreateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesDeleteSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesDeleteSample.ts deleted file mode 100644 index b137e7cafa34..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements Route Policy DELETE method. - * - * @summary Implements Route Policy DELETE method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Delete_MaximumSet_Gen.json - */ -async function routePoliciesDeleteMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgRoutePolicies"; - const routePolicyName = "routePolicyName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.routePolicies.beginDeleteAndWait( - resourceGroupName, - routePolicyName - ); - console.log(result); -} - -async function main() { - routePoliciesDeleteMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesGetSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesGetSample.ts deleted file mode 100644 index ddd2ae32a9f1..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements Route Policy GET method. - * - * @summary Implements Route Policy GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Get_MaximumSet_Gen.json - */ -async function routePoliciesGetMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgRoutePolicies"; - const routePolicyName = "routePolicyName"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.routePolicies.get( - resourceGroupName, - routePolicyName - ); - console.log(result); -} - -async function main() { - routePoliciesGetMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesListByResourceGroupSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesListByResourceGroupSample.ts deleted file mode 100644 index 3525f595b349..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesListByResourceGroupSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements RoutePolicies list by resource group GET method. - * - * @summary Implements RoutePolicies list by resource group GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_ListByResourceGroup_MaximumSet_Gen.json - */ -async function routePoliciesListByResourceGroupMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "rgRoutePolicies"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.routePolicies.listByResourceGroup( - resourceGroupName - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - routePoliciesListByResourceGroupMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesListBySubscriptionSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesListBySubscriptionSample.ts deleted file mode 100644 index 9ad44f193676..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesListBySubscriptionSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AzureNetworkFabricManagementServiceAPI } from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Implements RoutePolicies list by subscription GET method. - * - * @summary Implements RoutePolicies list by subscription GET method. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_ListBySubscription_MaximumSet_Gen.json - */ -async function routePoliciesListBySubscriptionMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || "subscriptionId"; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const resArray = new Array(); - for await (let item of client.routePolicies.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - routePoliciesListBySubscriptionMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesUpdateSample.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesUpdateSample.ts deleted file mode 100644 index f6d665be7318..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/src/routePoliciesUpdateSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RoutePolicyPatch, - AzureNetworkFabricManagementServiceAPI -} from "@azure/arm-managednetworkfabric"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to API to update certain properties of the Route Policy resource. - * - * @summary API to update certain properties of the Route Policy resource. - * x-ms-original-file: specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/examples/RoutePolicies_Update_MaximumSet_Gen.json - */ -async function routePoliciesUpdateMaximumSetGen() { - const subscriptionId = - process.env["MANAGEDNETWORKFABRIC_SUBSCRIPTION_ID"] || - "97D66995-95BA-464A-A250-FB6E25E499A8"; - const resourceGroupName = - process.env["MANAGEDNETWORKFABRIC_RESOURCE_GROUP"] || "resourceGroupName"; - const routePolicyName = "routePolicyName"; - const body: RoutePolicyPatch = { tags: { key8254: "" } }; - const credential = new DefaultAzureCredential(); - const client = new AzureNetworkFabricManagementServiceAPI( - credential, - subscriptionId - ); - const result = await client.routePolicies.beginUpdateAndWait( - resourceGroupName, - routePolicyName, - body - ); - console.log(result); -} - -async function main() { - routePoliciesUpdateMaximumSetGen(); -} - -main().catch(console.error); diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/tsconfig.json b/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/tsconfig.json deleted file mode 100644 index e26ce2a6d8f7..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/samples/v1-beta/typescript/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "module": "commonjs", - "moduleResolution": "node", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "alwaysStrict": true, - "outDir": "dist", - "rootDir": "src" - }, - "include": [ - "src/**.ts" - ] -} diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/azureNetworkFabricManagementServiceAPI.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/azureNetworkFabricManagementServiceAPI.ts index 5e2fb225fcea..f50268cd222e 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/azureNetworkFabricManagementServiceAPI.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/azureNetworkFabricManagementServiceAPI.ts @@ -16,6 +16,8 @@ import { import * as coreAuth from "@azure/core-auth"; import { AccessControlListsImpl, + InternetGatewaysImpl, + InternetGatewayRulesImpl, IpCommunitiesImpl, IpExtendedCommunitiesImpl, IpPrefixesImpl, @@ -23,6 +25,7 @@ import { L3IsolationDomainsImpl, InternalNetworksImpl, ExternalNetworksImpl, + NeighborGroupsImpl, NetworkDeviceSkusImpl, NetworkDevicesImpl, NetworkInterfacesImpl, @@ -30,13 +33,17 @@ import { NetworkFabricSkusImpl, NetworkFabricsImpl, NetworkToNetworkInterconnectsImpl, - NetworkRackSkusImpl, + NetworkPacketBrokersImpl, NetworkRacksImpl, + NetworkTapRulesImpl, + NetworkTapsImpl, OperationsImpl, RoutePoliciesImpl } from "./operations"; import { AccessControlLists, + InternetGateways, + InternetGatewayRules, IpCommunities, IpExtendedCommunities, IpPrefixes, @@ -44,6 +51,7 @@ import { L3IsolationDomains, InternalNetworks, ExternalNetworks, + NeighborGroups, NetworkDeviceSkus, NetworkDevices, NetworkInterfaces, @@ -51,8 +59,10 @@ import { NetworkFabricSkus, NetworkFabrics, NetworkToNetworkInterconnects, - NetworkRackSkus, + NetworkPacketBrokers, NetworkRacks, + NetworkTapRules, + NetworkTaps, Operations, RoutePolicies } from "./operationsInterfaces"; @@ -66,7 +76,7 @@ export class AzureNetworkFabricManagementServiceAPI extends coreClient.ServiceCl /** * Initializes a new instance of the AzureNetworkFabricManagementServiceAPI class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param options The parameter options */ constructor( @@ -90,7 +100,7 @@ export class AzureNetworkFabricManagementServiceAPI extends coreClient.ServiceCl credential: credentials }; - const packageDetails = `azsdk-js-arm-managednetworkfabric/1.0.0-beta.2`; + const packageDetails = `azsdk-js-arm-managednetworkfabric/1.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -143,8 +153,10 @@ export class AzureNetworkFabricManagementServiceAPI extends coreClient.ServiceCl // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-02-01-preview"; + this.apiVersion = options.apiVersion || "2023-06-15"; this.accessControlLists = new AccessControlListsImpl(this); + this.internetGateways = new InternetGatewaysImpl(this); + this.internetGatewayRules = new InternetGatewayRulesImpl(this); this.ipCommunities = new IpCommunitiesImpl(this); this.ipExtendedCommunities = new IpExtendedCommunitiesImpl(this); this.ipPrefixes = new IpPrefixesImpl(this); @@ -152,6 +164,7 @@ export class AzureNetworkFabricManagementServiceAPI extends coreClient.ServiceCl this.l3IsolationDomains = new L3IsolationDomainsImpl(this); this.internalNetworks = new InternalNetworksImpl(this); this.externalNetworks = new ExternalNetworksImpl(this); + this.neighborGroups = new NeighborGroupsImpl(this); this.networkDeviceSkus = new NetworkDeviceSkusImpl(this); this.networkDevices = new NetworkDevicesImpl(this); this.networkInterfaces = new NetworkInterfacesImpl(this); @@ -161,8 +174,10 @@ export class AzureNetworkFabricManagementServiceAPI extends coreClient.ServiceCl this.networkToNetworkInterconnects = new NetworkToNetworkInterconnectsImpl( this ); - this.networkRackSkus = new NetworkRackSkusImpl(this); + this.networkPacketBrokers = new NetworkPacketBrokersImpl(this); this.networkRacks = new NetworkRacksImpl(this); + this.networkTapRules = new NetworkTapRulesImpl(this); + this.networkTaps = new NetworkTapsImpl(this); this.operations = new OperationsImpl(this); this.routePolicies = new RoutePoliciesImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); @@ -197,6 +212,8 @@ export class AzureNetworkFabricManagementServiceAPI extends coreClient.ServiceCl } accessControlLists: AccessControlLists; + internetGateways: InternetGateways; + internetGatewayRules: InternetGatewayRules; ipCommunities: IpCommunities; ipExtendedCommunities: IpExtendedCommunities; ipPrefixes: IpPrefixes; @@ -204,6 +221,7 @@ export class AzureNetworkFabricManagementServiceAPI extends coreClient.ServiceCl l3IsolationDomains: L3IsolationDomains; internalNetworks: InternalNetworks; externalNetworks: ExternalNetworks; + neighborGroups: NeighborGroups; networkDeviceSkus: NetworkDeviceSkus; networkDevices: NetworkDevices; networkInterfaces: NetworkInterfaces; @@ -211,8 +229,10 @@ export class AzureNetworkFabricManagementServiceAPI extends coreClient.ServiceCl networkFabricSkus: NetworkFabricSkus; networkFabrics: NetworkFabrics; networkToNetworkInterconnects: NetworkToNetworkInterconnects; - networkRackSkus: NetworkRackSkus; + networkPacketBrokers: NetworkPacketBrokers; networkRacks: NetworkRacks; + networkTapRules: NetworkTapRules; + networkTaps: NetworkTaps; operations: Operations; routePolicies: RoutePolicies; } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/models/index.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/models/index.ts index a5417afea398..2b8a8e9dd355 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/models/index.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/models/index.ts @@ -14,10 +14,124 @@ export interface AnnotationResource { annotation?: string; } +/** Access Control List Patch Properties defines the patchable resource properties. */ +export interface AccessControlListPatchableProperties { + /** Input method to configure Access Control List. */ + configurationType?: ConfigurationType; + /** Access Control List file URL. */ + aclsUrl?: string; + /** List of match configurations. */ + matchConfigurations?: AccessControlListMatchConfiguration[]; + /** List of dynamic match configurations. */ + dynamicMatchConfigurations?: CommonDynamicMatchConfiguration[]; +} + +/** Defines the match configuration that are supported to filter the traffic. */ +export interface AccessControlListMatchConfiguration { + /** The name of the match configuration. */ + matchConfigurationName?: string; + /** Sequence Number of the match configuration. */ + sequenceNumber?: number; + /** Type of IP Address. IPv4 or IPv6 */ + ipAddressType?: IPAddressType; + /** List of the match conditions. */ + matchConditions?: AccessControlListMatchCondition[]; + /** List of actions that need to be performed for the matched conditions. */ + actions?: AccessControlListAction[]; +} + +/** Port condition that needs to be matched. */ +export interface PortCondition { + /** Port type that needs to be matched. */ + portType?: PortType; + /** Layer4 protocol type that needs to be matched. */ + layer4Protocol: Layer4Protocol; + /** List of the Ports that need to be matched. */ + ports?: string[]; + /** List of the port Group Names that to be matched. */ + portGroupNames?: string[]; +} + +/** Defines the common match conditions of the ACL and Network Tap Rule. */ +export interface CommonMatchConditions { + /** List of the protocols that need to be matched. */ + protocolTypes?: string[]; + /** Vlan match condition that needs to be matched. */ + vlanMatchCondition?: VlanMatchCondition; + /** IP condition that needs to be matched. */ + ipCondition?: IpMatchCondition; +} + +/** The vlan match conditions that needs to be matched. */ +export interface VlanMatchCondition { + /** List of vlans that needs to be matched. */ + vlans?: string[]; + /** List of inner vlans that needs to be matched. */ + innerVlans?: string[]; + /** List of vlan group names that to be matched. */ + vlanGroupNames?: string[]; +} + +/** Defines the condition that can be filtered using the selected IPs. */ +export interface IpMatchCondition { + /** IP Address type. */ + type?: SourceDestinationType; + /** IP Prefix Type. */ + prefixType?: PrefixType; + /** The list of IP Prefixes. */ + ipPrefixValues?: string[]; + /** The List of IP Group Names that need to be matched. */ + ipGroupNames?: string[]; +} + +/** Action that need to performed. */ +export interface AccessControlListAction { + /** Type of actions that can be performed. */ + type?: AclActionType; + /** Name of the counter block to get match count information. */ + counterName?: string; +} + +/** Dynamic match configuration object. */ +export interface CommonDynamicMatchConfiguration { + /** List of IP Groups. */ + ipGroups?: IpGroupProperties[]; + /** List of vlan groups. */ + vlanGroups?: VlanGroupProperties[]; + /** List of the port group. */ + portGroups?: PortGroupProperties[]; +} + +/** IP Group properties. */ +export interface IpGroupProperties { + /** IP Group name. */ + name?: string; + /** IP Address type. */ + ipAddressType?: IPAddressType; + /** List of IP Prefixes. */ + ipPrefixes?: string[]; +} + +/** Vlan group properties. */ +export interface VlanGroupProperties { + /** Vlan group name. */ + name?: string; + /** List of vlans. */ + vlans?: string[]; +} + +/** Port Group properties. */ +export interface PortGroupProperties { + /** The name of the port group. */ + name?: string; + /** List of the ports that needs to be matched. */ + ports?: string[]; +} + /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; @@ -103,55 +217,114 @@ export interface ErrorAdditionalInfo { readonly info?: Record; } -/** The AccessControlList patch resource definition. */ -export interface AccessControlListPatch { +/** Base tracked resource type for PATCH updates. */ +export interface TagsUpdate { /** Resource tags */ tags?: { [propertyName: string]: string }; - /** Switch configuration description. */ - annotation?: string; - /** IP address family. Example: ipv4 | ipv6. */ - addressFamily?: AddressFamily; - /** Access Control List conditions. */ - conditions?: AccessControlListConditionProperties[]; } -/** List of AccessControlLists. */ +/** List of Access Control Lists. */ export interface AccessControlListsListResult { - /** List of AccessControlList resources. */ + /** List of Access Control List resources. */ value?: AccessControlList[]; /** Url to follow for getting next page of resources. */ nextLink?: string; } -/** The IPCommunity patch resource definition. */ -export interface IpCommunityPatch { - /** Resource tags */ - tags?: { [propertyName: string]: string }; +/** Update administrative state on list of resources. */ +export interface EnableDisableOnResources { + /** Network Fabrics or Network Rack resource Id. */ + resourceIds?: string[]; +} + +/** Internet Gateway Patchable Properties defines the patchable properties of the resource. */ +export interface InternetGatewayPatchableProperties { + /** ARM Resource ID of the Internet Gateway Rule. */ + internetGatewayRuleId?: string; +} + +/** List of InternetGateways. */ +export interface InternetGatewaysListResult { + /** Displays list of Internet Gateway resources. */ + value?: InternetGateway[]; + /** Url to follow for getting next page of resources. */ + nextLink?: string; +} + +/** Rules for the InternetGateways */ +export interface RuleProperties { + /** Specify action. */ + action: Action; + /** List of Addresses to be allowed or denied. */ + addressList: string[]; +} + +/** List of Internet Gateway Rules. */ +export interface InternetGatewayRulesListResult { + /** List of Internet Gateway Rule resources. */ + value?: InternetGatewayRule[]; + /** Url to follow for getting next page of resources. */ + nextLink?: string; +} + +/** IP Community patchable properties. */ +export interface IpCommunityPatchableProperties { + /** List of IP Community Rules. */ + ipCommunityRules?: IpCommunityRule[]; +} + +/** IP Community patchable properties. */ +export interface IpCommunityRule { + /** Action to be taken on the configuration. Example: Permit | Deny. */ + action: CommunityActionTypes; + /** Sequence to insert to/delete from existing route. Prefix lists are evaluated starting with the lowest sequence number and continue down the list until a match is made. Once a match is made, the permit or deny statement is applied to that network and the rest of the list is ignored. */ + sequenceNumber: number; + /** Supported well known Community List. */ + wellKnownCommunities?: WellKnownCommunities[]; + /** List the community members of IP Community. */ + communityMembers: string[]; } -/** List of IPCommunities. */ +/** List of IP Communities. */ export interface IpCommunitiesListResult { - /** List of IpCommunity resources. */ + /** List of IP Community resources. */ value?: IpCommunity[]; /** Url to follow for getting next page of resources. */ nextLink?: string; } -/** The IpExtendedCommunities patch resource definition. */ -export interface IpExtendedCommunityPatch { - /** Resource tags */ - tags?: { [propertyName: string]: string }; +/** IP Extended Community patchable properties. */ +export interface IpExtendedCommunityPatchableProperties { + /** List of IP Extended Community Rules. */ + ipExtendedCommunityRules: IpExtendedCommunityRule[]; +} + +/** List of IP Extended Community Rules. */ +export interface IpExtendedCommunityRule { + /** Action to be taken on the configuration. Example: Permit | Deny. */ + action: CommunityActionTypes; + /** Sequence to insert to/delete from existing route. Prefix lists are evaluated starting with the lowest sequence number and continue down the list until a match is made. Once a match is made, the permit or deny statement is applied to that network and the rest of the list is ignored. */ + sequenceNumber: number; + /** Route Target List.The expected formats are ASN(plain):NN >> example 4294967294:50, ASN.ASN:NN >> example 65533.65333:40, IP-address:NN >> example 10.10.10.10:65535. The possible values of ASN,NN are in range of 0-65535, ASN(plain) is in range of 0-4294967295. */ + routeTargets: string[]; } -/** List of IpExtendedCommunities. */ +/** List of IP Extended Communities. */ export interface IpExtendedCommunityListResult { - /** List of IpExtendedCommunities resources. */ + /** List of IP Extended Communities resources. */ value?: IpExtendedCommunity[]; /** Url to follow for getting next page of resources. */ nextLink?: string; } -export interface IpPrefixPropertiesIpPrefixRulesItem { +/** IP Prefix patchable properties. */ +export interface IpPrefixPatchableProperties { + /** The list of IP Prefix Rules. */ + ipPrefixRules?: IpPrefixRule[]; +} + +/** IP Prefix Rule properties. */ +export interface IpPrefixRule { /** Action to be taken on the configuration. Example: Permit | Deny. */ action: CommunityActionTypes; /** Sequence to insert to/delete from existing route. Prefix lists are evaluated starting with the lowest sequence number and continue down the list until a match is made. Once a match is made, the permit or deny statement is applied to that network and the rest of the list is ignored. */ @@ -160,189 +333,162 @@ export interface IpPrefixPropertiesIpPrefixRulesItem { networkPrefix: string; /** Specify prefix-list bounds. */ condition?: Condition; - /** SubnetMaskLength gives the minimum NetworkPrefix length to be matched.Possible values for IPv4 are 1 - 32. Possible values of IPv6 are 1 - 128. */ - subnetMaskLength?: number; -} - -/** The IPPrefix patch resource definition. */ -export interface IpPrefixPatch { - /** Resource tags */ - tags?: { [propertyName: string]: string }; + /** SubnetMaskLength gives the minimum NetworkPrefix length to be matched. Possible values for IPv4 are 1 - 32 . Possible values of IPv6 are 1 - 128. */ + subnetMaskLength?: string; } -/** List of IpPrefixes. */ +/** List of IP Prefixes. */ export interface IpPrefixesListResult { - /** List of IPPrefix resources. */ + /** List of IP Prefix resources. */ value?: IpPrefix[]; /** Url to follow for getting next page of resources. */ nextLink?: string; } -/** The L2IsolationDomain patch resource definition. */ -export interface L2IsolationDomainPatch { - /** Resource tags */ - tags?: { [propertyName: string]: string }; - /** Switch configuration description. */ - annotation?: string; - /** maximum transmission unit. Default value is 1500. */ - mtu?: number; -} - -/** Update administrative state on list of resources. */ -export interface EnableDisableOnResources { - /** Network Fabrics or Network Rack resource Id. */ - resourceIds?: string[]; -} - -/** Show ARP table entry properties */ -export interface ARPProperties { - /** Ipv4 or Ipv6 address */ - address: string; - /** Duration in seconds. */ - age: string; - /** Hardware address. */ - macAddress: string; - /** Layer 2 interface name. */ - interface: string; - /** ARP status */ - state?: string; -} - -/** List of L2IsolationDomains. */ +/** List of L2 Isolation Domains. */ export interface L2IsolationDomainsListResult { - /** Displays list of L2IsolationDomain resources. */ + /** Displays list of L2 Isolation Domain resources. */ value?: L2IsolationDomain[]; /** Url to follow for getting next page of resources. */ nextLink?: string; } -/** L3IsolationDomainPatchProperties define the patch resource properties. */ -export interface L3IsolationDomainPatchProperties { +/** L3 Isolation Domain Patch Properties defines the patchable properties of the resource. */ +export interface L3IsolationDomainPatchableProperties { /** Advertise Connected Subnets. Ex: "True" | "False". */ redistributeConnectedSubnets?: RedistributeConnectedSubnets; /** Advertise Static Routes. Ex: "True" | "False". */ redistributeStaticRoutes?: RedistributeStaticRoutes; - /** List of Ipv4 and Ipv6 route configurations. */ + /** Aggregate route configurations. */ aggregateRouteConfiguration?: AggregateRouteConfiguration; - /** L3 Isolation Domain description. */ - description?: string; /** Connected Subnet RoutePolicy */ - connectedSubnetRoutePolicy?: L3IsolationDomainPatchPropertiesConnectedSubnetRoutePolicy; + connectedSubnetRoutePolicy?: ConnectedSubnetRoutePolicy; } -/** List of IPv4 and IPv6 route configurations. */ +/** List of IPv4 and IPv6 aggregate routes. */ export interface AggregateRouteConfiguration { /** List of IPv4 Route prefixes. */ ipv4Routes?: AggregateRoute[]; - /** List of IPv6 Routes prefixes. */ + /** List of Ipv6Routes prefixes. */ ipv6Routes?: AggregateRoute[]; } -/** Aggregate Route properties. */ +/** aggregateIpv4Route model. */ export interface AggregateRoute { - /** Prefix of the aggregate Route. */ - prefix?: string; + /** IPv4 Prefix of the aggregate Ipv4Route. */ + prefix: string; } -/** Connected Subnet RoutePolicy */ -export interface L3IsolationDomainPatchPropertiesConnectedSubnetRoutePolicy { - /** exportRoutePolicyId value. */ +/** Connected Subnet Route Policy properties. */ +export interface ConnectedSubnetRoutePolicy { + /** ARM Resource ID of the Route Policy. This is used for the backward compatibility. */ exportRoutePolicyId?: string; - /** - * Enabled/Disabled connected subnet route policy. Ex: Enabled | Disabled. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly administrativeState?: EnabledDisabledState; + /** Array of ARM Resource ID of the RoutePolicies. */ + exportRoutePolicy?: L3ExportRoutePolicy; } -/** The L3IsolationDomain patch resource definition. */ -export interface L3IsolationDomainPatch { - /** Resource tags */ - tags?: { [propertyName: string]: string }; - /** Advertise Connected Subnets. Ex: "True" | "False". */ - redistributeConnectedSubnets?: RedistributeConnectedSubnets; - /** Advertise Static Routes. Ex: "True" | "False". */ - redistributeStaticRoutes?: RedistributeStaticRoutes; - /** List of Ipv4 and Ipv6 route configurations. */ - aggregateRouteConfiguration?: AggregateRouteConfiguration; - /** L3 Isolation Domain description. */ - description?: string; - /** Connected Subnet RoutePolicy */ - connectedSubnetRoutePolicy?: L3IsolationDomainPatchPropertiesConnectedSubnetRoutePolicy; +/** Array of ARM Resource ID of the RoutePolicies. */ +export interface L3ExportRoutePolicy { + /** ARM Resource ID of the RoutePolicy. */ + exportIpv4RoutePolicyId?: string; + /** ARM Resource ID of the RoutePolicy. */ + exportIpv6RoutePolicyId?: string; } -/** List of L3IsolationDomains. */ +/** List of L3 Isolation Domains. */ export interface L3IsolationDomainsListResult { - /** List of L3IsolationDomain resources. */ + /** List of L3 Isolation Domain resources. */ value?: L3IsolationDomain[]; /** Url to follow for getting next page of resources. */ nextLink?: string; } -/** The ExternalNetwork patchable properties. */ -export interface InternalNetworkPatchableProperties { - /** Maximum transmission unit. Default value is 1500. */ - mtu?: number; - /** List with object connected IPv4 Subnets. */ - connectedIPv4Subnets?: ConnectedSubnet[]; - /** List with object connected IPv6 Subnets. */ - connectedIPv6Subnets?: ConnectedSubnet[]; - /** Static Route Configuration properties. */ - staticRouteConfiguration?: StaticRouteConfiguration; - /** BGP configuration properties */ - bgpConfiguration?: BgpConfiguration; - /** ARM resource ID of importRoutePolicy. */ - importRoutePolicyId?: string; - /** ARM resource ID of importRoutePolicy. */ - exportRoutePolicyId?: string; -} - -/** staticRouteConfiguration model. */ -export interface StaticRouteConfiguration { - /** BFD configuration properties */ - bfdConfiguration?: BfdConfiguration; - /** List with object IPv4Routes. */ - ipv4Routes?: StaticRouteProperties[]; - /** List with object IPv6Routes. */ - ipv6Routes?: StaticRouteProperties[]; -} - /** BFD configuration properties */ export interface BfdConfiguration { /** * Administrative state of the BfdConfiguration. Example: Enabled | Disabled. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly administrativeState?: EnabledDisabledState; - /** - * interval in milliseconds. Example: 300. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly interval?: number; + readonly administrativeState?: BfdAdministrativeState; + /** Interval in milliseconds. Example: 300. */ + intervalInMilliSeconds?: number; + /** Multiplier for the Bfd Configuration. Example: 5. */ + multiplier?: number; +} + +/** Neighbor Address properties. */ +export interface NeighborAddress { + /** IP Address. */ + address?: string; /** - * Multiplier for the Bfd Configuration. Example: 3. + * Configuration state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly multiplier?: number; + readonly configurationState?: ConfigurationState; } -/** Static Route properties. */ +/** Static Route Configuration properties. */ +export interface StaticRouteConfiguration { + /** BFD configuration properties */ + bfdConfiguration?: BfdConfiguration; + /** List of IPv4 Routes. */ + ipv4Routes?: StaticRouteProperties[]; + /** List of IPv6 Routes. */ + ipv6Routes?: StaticRouteProperties[]; +} + +/** Route Properties. */ export interface StaticRouteProperties { - /** IPv4 | IPv6 Prefix. */ + /** Prefix of the route. */ prefix: string; - /** List of next hop IPv4 | IPv6 addresses. */ + /** List of next hop addresses. */ nextHop: string[]; } -/** Neighbor Address properties. */ -export interface NeighborAddress { - /** IP Address. */ - address?: string; - /** - * OperationalState of the NeighborAddress. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operationalState?: string; +/** Extension property. */ +export interface ExtensionEnumProperty { + /** Extension. Example: NoExtension | NPB. */ + extension?: Extension; +} + +/** The InternalNetwork patchable properties. */ +export interface InternalNetworkPatchableProperties { + /** Maximum transmission unit. Default value is 1500. */ + mtu?: number; + /** List of Connected IPv4 Subnets. */ + connectedIPv4Subnets?: ConnectedSubnet[]; + /** List of connected IPv6 Subnets. */ + connectedIPv6Subnets?: ConnectedSubnet[]; + /** ARM Resource ID of the RoutePolicy. This is used for the backward compatibility. */ + importRoutePolicyId?: string; + /** ARM Resource ID of the RoutePolicy. This is used for the backward compatibility. */ + exportRoutePolicyId?: string; + /** Import Route Policy either IPv4 or IPv6. */ + importRoutePolicy?: ImportRoutePolicy; + /** Export Route Policy either IPv4 or IPv6. */ + exportRoutePolicy?: ExportRoutePolicy; + /** Ingress Acl. ARM resource ID of Access Control Lists. */ + ingressAclId?: string; + /** Egress Acl. ARM resource ID of Access Control Lists. */ + egressAclId?: string; + /** To check whether monitoring of internal network is enabled or not. */ + isMonitoringEnabled?: IsMonitoringEnabled; +} + +/** Import Route Policy either IPv4 or IPv6. */ +export interface ImportRoutePolicy { + /** ARM resource ID of RoutePolicy. */ + importIpv4RoutePolicyId?: string; + /** ARM resource ID of RoutePolicy. */ + importIpv6RoutePolicyId?: string; +} + +/** Export Route Policy either IPv4 or IPv6. */ +export interface ExportRoutePolicy { + /** ARM resource ID of RoutePolicy. */ + exportIpv4RoutePolicyId?: string; + /** ARM resource ID of RoutePolicy. */ + exportIpv6RoutePolicyId?: string; } /** The InternalNetwork patch resource definition. */ @@ -351,87 +497,156 @@ export interface InternalNetworkPatch { annotation?: string; /** Maximum transmission unit. Default value is 1500. */ mtu?: number; - /** List with object connected IPv4 Subnets. */ + /** List of Connected IPv4 Subnets. */ connectedIPv4Subnets?: ConnectedSubnet[]; - /** List with object connected IPv6 Subnets. */ + /** List of connected IPv6 Subnets. */ connectedIPv6Subnets?: ConnectedSubnet[]; - /** Static Route Configuration properties. */ - staticRouteConfiguration?: StaticRouteConfiguration; - /** BGP configuration properties */ - bgpConfiguration?: BgpConfiguration; - /** ARM resource ID of importRoutePolicy. */ + /** ARM Resource ID of the RoutePolicy. This is used for the backward compatibility. */ importRoutePolicyId?: string; - /** ARM resource ID of importRoutePolicy. */ + /** ARM Resource ID of the RoutePolicy. This is used for the backward compatibility. */ exportRoutePolicyId?: string; + /** Import Route Policy either IPv4 or IPv6. */ + importRoutePolicy?: ImportRoutePolicy; + /** Export Route Policy either IPv4 or IPv6. */ + exportRoutePolicy?: ExportRoutePolicy; + /** Ingress Acl. ARM resource ID of Access Control Lists. */ + ingressAclId?: string; + /** Egress Acl. ARM resource ID of Access Control Lists. */ + egressAclId?: string; + /** To check whether monitoring of internal network is enabled or not. */ + isMonitoringEnabled?: IsMonitoringEnabled; + /** BGP configuration properties. */ + bgpConfiguration?: BgpConfiguration; + /** Static Route Configuration properties. */ + staticRouteConfiguration?: StaticRouteConfiguration; } -/** List of InternalNetworks. */ +/** List of Internal Networks. */ export interface InternalNetworksList { - /** List of InternalNetworks resources. */ + /** List of Internal Network resources. */ value?: InternalNetwork[]; /** Url to follow for getting next page of resources. */ nextLink?: string; } /** Option B configuration. */ -export interface OptionBProperties { - /** Route Targets to be applied for incoming routes into CE. */ +export interface L3OptionBProperties { + /** RouteTargets to be applied. This is used for the backward compatibility. */ importRouteTargets?: string[]; - /** Route Targets to be applied for outgoing routes from CE. */ + /** RouteTargets to be applied. This is used for the backward compatibility. */ exportRouteTargets?: string[]; + /** RouteTargets to be applied. */ + routeTargets?: RouteTargetInformation; } -/** Layer 3 primary and secondary ip address prefixes. */ +/** Route Target Configuration. */ +export interface RouteTargetInformation { + /** Route Targets to be applied for incoming routes into CE. */ + importIpv4RouteTargets?: string[]; + /** Route Targets to be applied for incoming routes from CE. */ + importIpv6RouteTargets?: string[]; + /** Route Targets to be applied for outgoing routes into CE. */ + exportIpv4RouteTargets?: string[]; + /** Route Targets to be applied for outgoing routes from CE. */ + exportIpv6RouteTargets?: string[]; +} + +/** Layer 3 primary and secondary IP Address prefixes. */ export interface Layer3IpPrefixProperties { - /** IPv4 Address Prefix of CE-PE interconnect links. Example: 172.31.0.0/31. The values can be specified at the time of creation or can be updated afterwards. Any update to the values post-provisioning may disrupt traffic. The 1st and 3rd IPs are to be configured on CE1 and CE2 for Option B interfaces. The 2nd and 4th IPs are to be configured on PE1 and PE2 for Option B interfaces. */ + /** IPv4 Address Prefix. */ primaryIpv4Prefix?: string; - /** IPv6 Address Prefix of CE-PE interconnect links. Example: 3FFE:FFFF:0:CD30::a0/126. The values can be specified at the time of creation or can be updated afterwards. Any update to the values post-provisioning may disrupt traffic. The 1st and 3rd IPs are to be configured on CE1 and CE2 for Option B interfaces. The 2nd and 4th IPs are to be configured on PE1 and PE2 for Option B interfaces. */ + /** IPv6 Address Prefix. */ primaryIpv6Prefix?: string; - /** Secondary IPv4 Address Prefix of CE-PE interconnect links. Example: 172.31.0.20/31. The values can be specified at the time of creation or can be updated afterwards. Any update to the values post-provisioning may disrupt traffic. The 1st and 3rd IPs are to be configured on CE1 and CE2 for Option B interfaces. The 2nd and 4th IPs are to be configured on PE1 and PE2 for Option B interfaces. */ + /** Secondary IPv4 Address Prefix. */ secondaryIpv4Prefix?: string; - /** Secondary IPv6 Address Prefix of CE-PE interconnect links. Example: 3FFE:FFFF:0:CD30::a4/126. The values can be specified at the time of creation or can be updated afterwards. Any update to the values post-provisioning may disrupt traffic. The 1st and 3rd IPs are to be configured on CE1 and CE2 for Option B interfaces. The 2nd and 4th IPs are to be configured on PE1 and PE2 for Option B interfaces. */ + /** Secondary IPv6 Address Prefix. */ secondaryIpv6Prefix?: string; } +/** Peering optionA properties */ +export interface L3OptionAProperties { + /** MTU to use for option A peering. */ + mtu?: number; + /** Vlan identifier. Example : 501 */ + vlanId?: number; + /** + * Fabric ASN number. Example 65001 + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fabricASN?: number; + /** Peer ASN number.Example : 28 */ + peerASN?: number; + /** BFD configuration properties */ + bfdConfiguration?: BfdConfiguration; + /** Ingress Acl. ARM resource ID of Access Control Lists. */ + ingressAclId?: string; + /** Egress Acl. ARM resource ID of Access Control Lists. */ + egressAclId?: string; +} + +/** The ExternalNetwork patchable properties. */ +export interface ExternalNetworkPatchableProperties { + /** ARM Resource ID of the RoutePolicy. This is used for the backward compatibility. */ + importRoutePolicyId?: string; + /** ARM Resource ID of the RoutePolicy. This is used for the backward compatibility. */ + exportRoutePolicyId?: string; + /** Import Route Policy either IPv4 or IPv6. */ + importRoutePolicy?: ImportRoutePolicy; + /** Export Route Policy either IPv4 or IPv6. */ + exportRoutePolicy?: ExportRoutePolicy; +} + /** The ExternalNetwork patch resource definition. */ export interface ExternalNetworkPatch { /** Switch configuration description. */ annotation?: string; - /** Peering option list. */ - peeringOption?: PeeringOption; - /** option B properties object */ - optionBProperties?: OptionBProperties; - /** option A properties object */ - optionAProperties?: Layer3OptionAProperties; - /** ARM resource ID of importRoutePolicy. */ + /** ARM Resource ID of the RoutePolicy. This is used for the backward compatibility. */ importRoutePolicyId?: string; - /** ARM resource ID of exportRoutePolicy. */ + /** ARM Resource ID of the RoutePolicy. This is used for the backward compatibility. */ exportRoutePolicyId?: string; -} - -/** The ExternalNetwork patchable properties. */ -export interface ExternalNetworkPatchableProperties { + /** Import Route Policy either IPv4 or IPv6. */ + importRoutePolicy?: ImportRoutePolicy; + /** Export Route Policy either IPv4 or IPv6. */ + exportRoutePolicy?: ExportRoutePolicy; /** Peering option list. */ peeringOption?: PeeringOption; /** option B properties object */ - optionBProperties?: OptionBProperties; + optionBProperties?: L3OptionBProperties; /** option A properties object */ - optionAProperties?: Layer3OptionAProperties; - /** ARM resource ID of importRoutePolicy. */ - importRoutePolicyId?: string; - /** ARM resource ID of exportRoutePolicy. */ - exportRoutePolicyId?: string; + optionAProperties?: ExternalNetworkPatchPropertiesOptionAProperties; } -/** List of ExternalNetworks. */ +/** List of External Networks. */ export interface ExternalNetworksList { - /** List of ExternalNetworks resources. */ + /** List of External Network resources. */ value?: ExternalNetwork[]; /** Url to follow for getting next page of resources. */ nextLink?: string; } -/** Network device supported version properties. */ +/** Neighbor Group Patchable Properties defines the patchable properties of the resource. */ +export interface NeighborGroupPatchableProperties { + /** An array of destination IPv4 Addresses or IPv6 Addresses. */ + destination?: NeighborGroupDestination; +} + +/** An array of destination IPv4 Addresses or IPv6 Addresses. */ +export interface NeighborGroupDestination { + /** Array of IPv4 Addresses. */ + ipv4Addresses?: string[]; + /** Array of IPv6 Addresses. */ + ipv6Addresses?: string[]; +} + +/** List of Neighbor Group. */ +export interface NeighborGroupsListResult { + /** List of Neighbor Group resources. */ + value?: NeighborGroup[]; + /** Url to follow for getting next page of resources. */ + nextLink?: string; +} + +/** Supported version details of the network device. */ export interface SupportedVersionProperties { /** Operating system and firmware combined versions. */ version?: string; @@ -439,26 +654,8 @@ export interface SupportedVersionProperties { vendorOsVersion?: string; /** Firmware version. */ vendorFirmwareVersion?: string; - /** If the current version is in use. */ - isCurrent?: IsCurrentVersion; - /** If the current version is a test version. */ - isTest?: IsTestVersion; -} - -/** Network device limits. */ -export interface DeviceLimits { - /** Maximum number of physical interfaces. */ - physicalInterfaceCount?: number; - /** Maximum number of sub-interfaces. */ - maxSubInterfaces?: number; - /** Maximum number of tunnel interfaces. */ - maxTunnelInterfaces?: number; - /** Maximum number of virtual router functions. */ - maxVirtualRouterFunctions?: number; - /** Maximum number of Border Gateway Protocol (BGP) peers. */ - maxBorderGatewayProtocolPeers?: number; - /** Maximum number of Bidirectional Forwarding Detection (BFD) peers. */ - maxBidirectionalForwardingDetectionPeers?: number; + /** If true newly provisioned Fabric will use this device version by default to bootstrap the network devices for the first time. */ + isDefault?: BooleanEnumProperty; } /** Network device interface properties. */ @@ -473,37 +670,25 @@ export interface DeviceInterfaceProperties { /** Supported connector properties. */ export interface SupportedConnectorProperties { - /** Connector type. Example: Optical. */ + /** Type of connector used. Example: Optical. */ connectorType?: string; /** Maximum speed of the connector in Mbps. */ maxSpeedInMbps?: number; } -/** List of NetworkDeviceSkus. */ +/** List of Network Device SKUs. */ export interface NetworkDeviceSkusListResult { - /** List of NetworkDeviceSku resources. */ + /** List of Network Device SKU resources. */ value?: NetworkDeviceSku[]; /** Url to follow for getting next page of resources. */ nextLink?: string; } -/** Network Device updatable properties */ +/** Network Device updatable properties. */ export interface NetworkDevicePatchableProperties { - /** The host Name of the device. */ - hostName?: string; - /** serialNumber of the format Make;Model;HardwareRevisionId;SerialNumber. Example: Arista;DCS-7280DR3-24;12.05;JPE21116969 */ - serialNumber?: string; -} - -/** The NetworkDevicePatchParameters resource definition. */ -export interface NetworkDevicePatchParameters { - /** Azure resource tags that will replace the existing ones. */ - tags?: { [propertyName: string]: string }; - /** Switch configuration description. */ - annotation?: string; - /** The host Name of the device. */ + /** The host name of the device. */ hostName?: string; - /** serialNumber of the format Make;Model;HardwareRevisionId;SerialNumber. Example: Arista;DCS-7280DR3-24;12.05;JPE21116969 */ + /** Serial number of the device. Format of serial Number - Make;Model;HardwareRevisionId;SerialNumber. */ serialNumber?: string; } @@ -529,89 +714,26 @@ export interface NetworkInterfacesList { nextLink?: string; } -/** Generate support package post action properties. */ -export interface UpdateVersionProperties { - /** The supported version defined in network device SKU. */ - skuVersion: string; -} - -/** Generate support package post action properties. */ -export interface SupportPackageProperties { - /** The URL to fetch the generated support package from. */ - supportPackageURL: string; -} - -/** Update power cycle input properties. */ -export interface UpdatePowerCycleProperties { - /** Primary or Secondary power end. */ - powerEnd: PowerEnd; - /** On or Off toggle state. */ - state: State; -} - -/** Get Device status response properties. */ -export interface GetDeviceStatusProperties { - /** Primary or Secondary power end. */ - operationalStatus: OperationalStatus; - /** On or Off power cycle state. */ - powerCycleState: PowerCycleState; - /** The serial number of the device */ - serialNumber: string; -} - -/** Get Device static interface maps as per topology. */ -export interface GetStaticInterfaceMapsPropertiesItem { - /** The interface name. */ - name?: string; - /** The interface description. */ - description?: string; - /** The interface identifier. */ - identifier?: string; - /** The interface type. Example: Ethernet */ - interfaceType?: string; - /** The physical cable connector type. Example: Optical */ - connectorType?: string; - /** Connected to ARM resource or external interface */ - connectedTo?: string; - /** The interface speed. Example: 100 */ - speed?: number; - /** The port channel group id. */ - channelGroupId?: number; +/** Reboot properties. */ +export interface RebootProperties { + /** Type of reboot to be performed. Example: GracefulRebootWithZTP */ + rebootType?: RebootType; } -/** Interface running status properties */ -export interface InterfaceStatus { - /** - * The interface administrative state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly administrativeState?: EnabledDisabledState; - /** The interface operational status. */ - operationalStatus?: string; - /** The physical status. */ - phyStatus?: string; - /** The interface transceiver type. Example: up or down */ - transceiverStatus?: string; - /** Connected to ARM resource or external interface */ - connectedTo?: string; +/** Update version properties. */ +export interface UpdateVersion { + /** Specify the version. */ + version?: string; } -/** InfrastructureServices IP ranges. */ -export interface InfrastructureServices { +/** Network Fabric Controller services. */ +export interface ControllerServices { /** The IPv4 Address space is optional, if the value is not defined at the time of NFC creation, then the default value 10.0.0.0/19 is considered. The IPV4 address subnet is an optional attribute. */ ipv4AddressSpaces?: string[]; /** The IPv6 is not supported right now. */ ipv6AddressSpaces?: string[]; } -/** WorkloadServices IP ranges. */ -export interface WorkloadServices { - /** The IPv4 Address space is optional, if the value is defined at the time of NFC creation, then the default value 10.0.0.0/19 is considered. The IPV4 address subnet is an optional attribute. */ - ipv4AddressSpaces?: string[]; - /** The IPv6 is not supported right now. */ - ipv6AddressSpaces?: string[]; -} - /** Managed Resource Group configuration properties. */ export interface ManagedResourceGroupConfiguration { /** The NFC service will be hosted in a Managed resource group. */ @@ -636,27 +758,17 @@ export interface ExpressRouteConnectionInformation { expressRouteAuthorizationKey: string; } -/** The NetworkFabricControllerPatch payload definition. */ -export interface NetworkFabricControllerPatch { - /** Azure resource tags that will replace the existing ones. */ - tags?: { [propertyName: string]: string }; - /** As part of an update, the Infrastructure ExpressRoute CircuitID should be provided to create and Provision a NFC. This Express route is dedicated for Infrastructure services. (This is a Mandatory attribute) */ - infrastructureExpressRouteConnections?: ExpressRouteConnectionInformation[]; - /** As part of an update, the workload ExpressRoute CircuitID should be provided to create and Provision a NFC. This Express route is dedicated for Workload services. (This is a Mandatory attribute). */ - workloadExpressRouteConnections?: ExpressRouteConnectionInformation[]; -} - -/** List of NetworkFabricControllers. */ +/** List of Network Fabric Controllers. */ export interface NetworkFabricControllersListResult { - /** List of NetworkFabricController resources. */ + /** List of Network Fabric Controller resources. */ value?: NetworkFabricController[]; /** Url to follow for getting next page of resources. */ nextLink?: string; } -/** List of NetworkFabricSkus. */ +/** List of Network Fabric SKUs. */ export interface NetworkFabricSkusListResult { - /** List of NetworkFabricSku resources. */ + /** List of Network Fabric SKU resources. */ value?: NetworkFabricSku[]; /** Url to follow for getting next page of resources. */ nextLink?: string; @@ -673,127 +785,139 @@ export interface TerminalServerPatchableProperties { } /** Configuration to be used to setup the management network. */ -export interface ManagementNetworkConfiguration { - /** Configuration for infrastructure vpn. */ +export interface ManagementNetworkConfigurationProperties { + /** VPN Configuration properties. */ infrastructureVpnConfiguration: VpnConfigurationProperties; - /** Configuration for workload vpn. */ + /** VPN Configuration properties. */ workloadVpnConfiguration: VpnConfigurationProperties; } -/** Configuration for infrastructure vpn. */ +/** Network and credential configuration currently applied on terminal server. */ export interface VpnConfigurationProperties { + /** ARM Resource ID of the Network To Network Interconnect. */ + networkToNetworkInterconnectId?: string; /** - * Indicates configuration state. Example: Enabled | Disabled. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly administrativeState?: EnabledDisabledState; - /** - * Gets the networkToNetworkInterconnectId of the resource. + * Administrative state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly networkToNetworkInterconnectId?: string; + readonly administrativeState?: AdministrativeState; /** Peering option list. */ peeringOption: PeeringOption; /** option B properties */ - optionBProperties?: OptionBPropertiesAutoGenerated; + optionBProperties?: OptionBProperties; /** option A properties */ - optionAProperties?: OptionAProperties; + optionAProperties?: VpnConfigurationPropertiesOptionAProperties; } -/** Option B configuration. */ -export interface OptionBPropertiesAutoGenerated { - /** Route Targets to be applied for incoming routes into CE. */ - importRouteTargets: string[]; - /** Route Targets to be applied for outgoing routes from CE. */ - exportRouteTargets: string[]; +/** Option B configuration to be used for Management VPN. */ +export interface OptionBProperties { + /** Route Targets to be applied for incoming routes into CE. This is for backward compatibility. */ + importRouteTargets?: string[]; + /** Route Targets to be applied for outgoing routes from CE. This is for backward compatibility. */ + exportRouteTargets?: string[]; + /** Route Targets to be applied. */ + routeTargets?: RouteTargetInformation; } -/** BFD Configuration properties. */ -export interface FabricBfdConfiguration { - /** - * interval in seconds. Example: 300. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly interval?: number; - /** - * multiplier. Example: 3. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly multiplier?: number; +/** Peering optionA properties */ +export interface OptionAProperties { + /** MTU to use for option A peering. */ + mtu?: number; + /** Vlan Id.Example : 501 */ + vlanId?: number; + /** Peer ASN number.Example : 28 */ + peerASN?: number; + /** BFD Configuration properties. */ + bfdConfiguration?: BfdConfiguration; } -/** Network Fabric updatable properties */ +/** Network Fabric updatable properties. */ export interface NetworkFabricPatchableProperties { - /** - * List of NetworkRack resource IDs under the Network Fabric. The number of racks allowed depends on the Network Fabric SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly racks?: string[]; - /** - * List of L2IsolationDomain resource IDs under the Network Fabric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly l2IsolationDomains?: string[]; - /** - * List of L3IsolationDomain resource IDs under the Network Fabric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly l3IsolationDomains?: string[]; + /** Number of compute racks associated to Network Fabric. */ + rackCount?: number; + /** Number of servers.Possible values are from 1-16. */ + serverCountPerRack?: number; + /** IPv4Prefix for Management Network. Example: 10.1.0.0/19. */ + ipv4Prefix?: string; + /** IPv6Prefix for Management Network. Example: 3FFE:FFFF:0:CD40::/59. */ + ipv6Prefix?: string; + /** ASN of CE devices for CE/PE connectivity. */ + fabricASN?: number; + /** Network and credentials configuration already applied to terminal server. */ + terminalServerConfiguration?: NetworkFabricPatchablePropertiesTerminalServerConfiguration; + /** Configuration to be used to setup the management network. */ + managementNetworkConfiguration?: ManagementNetworkConfigurationPatchableProperties; } -/** The NetworkFabric resource definition. */ -export interface NetworkFabricPatchParameters { - /** Azure resource tags that will replace the existing ones. */ - tags?: { [propertyName: string]: string }; - /** Switch configuration description. */ - annotation?: string; - /** Network and credentials configuration already applied to terminal server. */ - terminalServerConfiguration?: TerminalServerPatchableProperties; - /** - * List of NetworkRack resource IDs under the Network Fabric. The number of racks allowed depends on the Network Fabric SKU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly racks?: string[]; - /** - * List of L2IsolationDomain resource IDs under the Network Fabric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly l2IsolationDomains?: string[]; - /** - * List of L3IsolationDomain resource IDs under the Network Fabric. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly l3IsolationDomains?: string[]; +/** Configuration to be used to setup the management network. */ +export interface ManagementNetworkConfigurationPatchableProperties { + /** VPN Configuration properties. */ + infrastructureVpnConfiguration?: VpnConfigurationPatchableProperties; + /** VPN Configuration properties. */ + workloadVpnConfiguration?: VpnConfigurationPatchableProperties; } -/** Terminal server patch parameters */ -export interface TerminalServerPatchParameters { - /** Network and credentials configuration already applied to terminal server. */ - terminalServerConfiguration?: TerminalServerPatchableProperties; +/** Network and credential configuration currently applied on terminal server. */ +export interface VpnConfigurationPatchableProperties { + /** ARM Resource ID of the Network To Network Interconnect. */ + networkToNetworkInterconnectId?: string; + /** Peering option list. */ + peeringOption?: PeeringOption; + /** option B properties */ + optionBProperties?: OptionBProperties; + /** option A properties */ + optionAProperties?: VpnConfigurationPatchablePropertiesOptionAProperties; } -/** List of NetworkFabrics. */ +/** List of Network Fabrics. */ export interface NetworkFabricsListResult { - /** List of NetworkFabric resources. */ + /** List of Network Fabric resources. */ value?: NetworkFabric[]; /** Url to follow for getting next page of resources. */ nextLink?: string; } -/** layer2Configuration */ +/** Validation configuration properties. */ +export interface ValidateConfigurationProperties { + /** Validate action that to be performed */ + validateAction?: ValidateAction; +} + +/** Common properties for Layer2 Configuration. */ export interface Layer2Configuration { - /** Number of ports connected between PE/CE. Maximum value depends on FabricSKU. */ - portCount?: number; /** MTU of the packets between PE & CE. */ - mtu: number; - /** - * List of network device interfaces resource IDs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly interfaces?: string[]; + mtu?: number; + /** List of network device interfaces resource IDs. */ + interfaces?: string[]; +} + +/** NPB Static Route Configuration properties. */ +export interface NpbStaticRouteConfiguration { + /** BFD Configuration properties. */ + bfdConfiguration?: BfdConfiguration; + /** List of IPv4 Routes. */ + ipv4Routes?: StaticRouteProperties[]; + /** List of IPv6 Routes. */ + ipv6Routes?: StaticRouteProperties[]; +} + +/** Import Route Policy Configuration. */ +export interface ImportRoutePolicyInformation { + /** Import IPv4 Route Policy Id. */ + importIpv4RoutePolicyId?: string; + /** Import IPv6 Route Policy Id. */ + importIpv6RoutePolicyId?: string; } -/** List of NetworkToNetworkInterconnects. */ +/** Export Route Policy Configuration. */ +export interface ExportRoutePolicyInformation { + /** Export IPv4 Route Policy Id. */ + exportIpv4RoutePolicyId?: string; + /** Export IPv6 Route Policy Id. */ + exportIpv6RoutePolicyId?: string; +} + +/** List of Network To Network Interconnects. */ export interface NetworkToNetworkInterconnectsList { /** List of NetworkToNetworkInterconnects resources. */ value?: NetworkToNetworkInterconnect[]; @@ -801,36 +925,96 @@ export interface NetworkToNetworkInterconnectsList { nextLink?: string; } -/** Network device properties / role for the Network Rack. */ -export interface NetworkDeviceRoleProperties { - /** Name of the associated Network Device SKU. */ - networkDeviceSkuName?: string; - /** Role for the network device. */ - roleType?: NetworkDeviceRackRoleType; - /** Rack slot for the network device. */ - rackSlot?: number; +/** List of NetworkPacketBrokers. */ +export interface NetworkPacketBrokersListResult { + /** List of NetworkPacketBroker resources. */ + value?: NetworkPacketBroker[]; + /** Url to follow for getting next page of resources. */ + nextLink?: string; } -/** List of NetworkRackSkus. */ -export interface NetworkRackSkusListResult { - /** List of NetworkRackSku resources. */ - value?: NetworkRackSku[]; +/** List of Network Racks. */ +export interface NetworkRacksListResult { + /** List of Network Rack resources. */ + value?: NetworkRack[]; /** Url to follow for getting next page of resources. */ nextLink?: string; } -/** The NetworkRack patch resource definition. */ -export interface NetworkRackPatch { - /** Resource properties. */ - properties?: Record; - /** Resource tags */ - tags?: { [propertyName: string]: string }; +/** Network Tap Rule updatable properties. */ +export interface NetworkTapRulePatchableProperties { + /** Input method to configure Network Tap Rule. */ + configurationType?: ConfigurationType; + /** Network Tap Rules file URL. */ + tapRulesUrl?: string; + /** List of match configurations. */ + matchConfigurations?: NetworkTapRuleMatchConfiguration[]; + /** List of dynamic match configurations. */ + dynamicMatchConfigurations?: CommonDynamicMatchConfiguration[]; +} + +/** Defines the match configuration that are supported to filter the traffic. */ +export interface NetworkTapRuleMatchConfiguration { + /** The name of the match configuration. */ + matchConfigurationName?: string; + /** Sequence Number of the match configuration.. */ + sequenceNumber?: number; + /** Type of IP Address. IPv4 or IPv6 */ + ipAddressType?: IPAddressType; + /** List of the match conditions. */ + matchConditions?: NetworkTapRuleMatchCondition[]; + /** List of actions that need to be performed for the matched conditions. */ + actions?: NetworkTapRuleAction[]; +} + +/** Action that need to performed. */ +export interface NetworkTapRuleAction { + /** Type of actions that can be performed. */ + type?: TapRuleActionType; + /** Truncate. 0 indicates do not truncate. */ + truncate?: string; + /** The parameter to enable or disable the timestamp. */ + isTimestampEnabled?: BooleanEnumProperty; + /** Destination Id. The ARM resource Id may be either Network To Network Interconnect or NeighborGroup. */ + destinationId?: string; + /** The name of the match configuration. This is used when Goto type is provided. If Goto type is selected and no match configuration name is provided. It goes to next configuration. */ + matchConfigurationName?: string; +} + +/** List of NetworkTapRules. */ +export interface NetworkTapRulesListResult { + /** List of NetworkTapRule resources. */ + value?: NetworkTapRule[]; + /** Url to follow for getting next page of resources. */ + nextLink?: string; } -/** List of NetworkRacks. */ -export interface NetworkRacksListResult { - /** List of NetworkRack resources. */ - value?: NetworkRack[]; +/** The network tap destination properties. */ +export interface DestinationProperties { + /** Destination name. */ + name?: string; + /** Type of destination. Input can be IsolationDomain or Direct. */ + destinationType?: DestinationType; + /** The destination Id. ARM Resource ID of either NNI or Internal Networks. */ + destinationId?: string; + /** Isolation Domain Properties. */ + isolationDomainProperties?: IsolationDomainProperties; + /** ARM Resource ID of destination Tap Rule that contains match configurations. */ + destinationTapRuleId?: string; +} + +/** Isolation Domain Properties. */ +export interface IsolationDomainProperties { + /** Type of encapsulation. */ + encapsulation?: Encapsulation; + /** List of Neighbor Group IDs. */ + neighborGroupIds?: string[]; +} + +/** List of NetworkTaps. */ +export interface NetworkTapsListResult { + /** List of NetworkTap resources. */ + value?: NetworkTap[]; /** Url to follow for getting next page of resources. */ nextLink?: string; } @@ -899,6 +1083,12 @@ export interface OperationDisplay { readonly description?: string; } +/** Route Policy patchable properties. */ +export interface RoutePolicyPatchableProperties { + /** Route Policy statements. */ + statements?: RoutePolicyStatementProperties[]; +} + /** IP Community ID list properties. */ export interface IpCommunityIdList { /** List of IP Community resource IDs. */ @@ -913,10 +1103,10 @@ export interface IpExtendedCommunityIdList { /** Route policy action properties. */ export interface StatementActionProperties { - /** localPreference of the route policy. */ + /** Local Preference of the route policy. */ localPreference?: number; - /** action. Example: Permit | Deny. */ - actionType: CommunityActionTypes; + /** Action type. Example: Permit | Deny | Continue. */ + actionType: RoutePolicyActionType; /** IP Community Properties. */ ipCommunityProperties?: ActionIpCommunityProperties; /** IP Extended Community Properties. */ @@ -925,46 +1115,40 @@ export interface StatementActionProperties { /** IP Community add operation properties. */ export interface IpCommunityAddOperationProperties { - /** IP Community ID list properties. */ + /** List of IP Community IDs. */ add?: IpCommunityIdList; } /** IP Community delete operation properties. */ export interface IpCommunityDeleteOperationProperties { - /** IP Community ID list properties. */ + /** List of IP Community IDs. */ delete?: IpCommunityIdList; } /** IP Community set operation properties. */ export interface IpCommunitySetOperationProperties { - /** IP Community ID list properties. */ + /** List of IP Community IDs. */ set?: IpCommunityIdList; } /** IP Extended Community add operation properties. */ export interface IpExtendedCommunityAddOperationProperties { - /** IP Extended Community Id list properties. */ + /** List of IP Extended Community IDs. */ add?: IpExtendedCommunityIdList; } /** IP Extended Community delete operation properties. */ export interface IpExtendedCommunityDeleteOperationProperties { - /** IP Extended Community Id list properties. */ + /** List of IP Extended Community IDs. */ delete?: IpExtendedCommunityIdList; } /** IP Extended Community set operation properties. */ export interface IpExtendedCommunitySetOperationProperties { - /** IP Extended Community Id list properties. */ + /** List of IP Extended Community IDs. */ set?: IpExtendedCommunityIdList; } -/** The RoutePolicy patch resource definition. */ -export interface RoutePolicyPatch { - /** Resource tags */ - tags?: { [propertyName: string]: string }; -} - /** List of RoutePolicies. */ export interface RoutePoliciesListResult { /** List of RoutePolicy resources. */ @@ -973,14 +1157,6 @@ export interface RoutePoliciesListResult { nextLink?: string; } -/** ExpressRouteStatus defines the resource properties. */ -export interface ExpressRouteStatusDef { - /** The express route circuit Azure resource ID, must be of type Microsoft.Network/expressRouteCircuits/circuitName. */ - expressRouteCircuitId?: string; - /** Express route connection state for the resource. */ - expressRouteStatus?: ExpressRouteConnectionState; -} - /** The extended location. */ export interface ExtendedLocation { /** The extended location type. */ @@ -989,149 +1165,209 @@ export interface ExtendedLocation { name?: string; } -/** Access Control List condition model. */ -export interface AccessControlListConditionProperties - extends AnnotationResource { - /** sequenceNumber of the Access Control List. */ - sequenceNumber: number; - /** action. Example: allow | deny. */ - action: ConditionActionType; - /** destinationAddress. Example: any | 1.1.1.0/24 | 1.1.10.10 */ - destinationAddress: string; - /** destinationPort. Example: any | 1253 */ - destinationPort: string; - /** sourceAddress. Example: any | 1.1.1.0/24 | 1.1.10.10 */ - sourceAddress: string; - /** sourcePort. Example: any | 1253 */ - sourcePort: string; - /** TCP/IP protocol as defined in the list of IP protocol numbers. Example: 255 (any) | 0 | 1. */ - protocol: number; -} - -/** AccessControlListProperties define the resource properties. */ -export interface AccessControlListProperties extends AnnotationResource { - /** IP address family. Example: ipv4 | ipv6. */ - addressFamily: AddressFamily; - /** Access Control List conditions. */ - conditions: AccessControlListConditionProperties[]; - /** - * Gets the provisioning state of the resource. +/** Access Control List Properties defines the resource properties. */ +export interface AccessControlListProperties + extends AnnotationResource, + AccessControlListPatchableProperties { + /** + * The last synced timestamp. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastSyncedTime?: Date; + /** + * Configuration state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; + /** + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; } -/** AccessControlListPatchProperties define the patchable resource properties. */ -export interface AccessControlListPatchProperties extends AnnotationResource { - /** IP address family. Example: ipv4 | ipv6. */ - addressFamily?: AddressFamily; - /** Access Control List conditions. */ - conditions?: AccessControlListConditionProperties[]; +/** Access Control Lists patch properties. */ +export interface AccessControlListPatchProperties + extends AccessControlListPatchableProperties, + AnnotationResource {} + +/** Internet Gateway Properties defines the properties of the resource. */ +export interface InternetGatewayProperties + extends AnnotationResource, + InternetGatewayPatchableProperties { + /** + * IPv4 Address of Internet Gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ipv4Address?: string; + /** + * Port number of Internet Gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly port?: number; + /** Gateway Type of the resource. */ + type: GatewayType; + /** ARM Resource ID of the Network Fabric Controller. */ + networkFabricControllerId: string; + /** + * Provisioning state of resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; } -/** IpCommunityProperties define the resource properties. */ -export interface IpCommunityProperties extends AnnotationResource { - /** Action to be taken on the configuration. Example: Permit | Deny. */ - action: CommunityActionTypes; - /** Supported well known Community List. */ - wellKnownCommunities?: WellKnownCommunities[]; - /** List the communityMembers of IP Community . */ - communityMembers: string[]; +/** Internet Gateway Rule Properties defines the resource properties. */ +export interface InternetGatewayRuleProperties extends AnnotationResource { + /** Rules for the InternetGateways */ + ruleProperties: RuleProperties; /** - * Gets the provisioning state of the resource. + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * List of Internet Gateway resource Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly internetGatewayIds?: string[]; } -/** IpExtendedCommunityProperties define the resource properties. */ -export interface IpExtendedCommunityProperties extends AnnotationResource { - /** Action to be taken on the configuration. Example: Permit | Deny. */ - action: CommunityActionTypes; - /** Route Target List.The expected formats are ASN(plain):NN >> example 4294967294:50, ASN.ASN:NN >> example 65533.65333:40, IP-address:NN >> example 10.10.10.10:65535. The possible values of ASN,NN are in range of 0-65535, ASN(plain) is in range of 0-4294967295. */ - routeTargets: string[]; +/** IP Community Properties defines the resource properties. */ +export interface IpCommunityProperties + extends AnnotationResource, + IpCommunityPatchableProperties { + /** + * Configuration state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; + /** + * Provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; /** - * Gets the provisioning state of the resource. + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; +} + +/** IP Extended Community Properties defines the resource properties. */ +export interface IpExtendedCommunityProperties + extends AnnotationResource, + IpExtendedCommunityPatchableProperties { + /** + * Configuration state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; + /** + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; } -/** IpPrefixProperties define the resource properties. */ -export interface IpPrefixProperties extends AnnotationResource { - /** IpPrefix contains the list of IP PrefixRules objects. */ - ipPrefixRules: IpPrefixPropertiesIpPrefixRulesItem[]; +/** IP Extended Community patchable properties. */ +export interface IpExtendedCommunityPatchProperties + extends IpExtendedCommunityPatchableProperties, + AnnotationResource {} + +/** IP Prefix Properties defines the properties of the resource. */ +export interface IpPrefixProperties + extends AnnotationResource, + IpPrefixPatchableProperties { + /** + * Configuration state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; /** - * Gets the provisioning state of the resource. + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; } -/** L2IsolationDomainProperties define the resource properties. */ +/** IP Prefix patchable properties. */ +export interface IpPrefixPatchProperties + extends AnnotationResource, + IpPrefixPatchableProperties {} + +/** L2Isolation Domain Properties defines the properties of the resource. */ export interface L2IsolationDomainProperties extends AnnotationResource { - /** Network Fabric ARM resource id. */ + /** ARM Resource ID of the Network Fabric. */ networkFabricId: string; - /** vlanId. Example: 501. */ + /** Vlan Identifier of the Network Fabric. Example: 501. */ vlanId: number; - /** maximum transmission unit. Default value is 1500. */ + /** Maximum transmission unit. Default value is 1500. */ mtu?: number; /** - * List of resources the L2 Isolation Domain is disabled on. Can be either entire NetworkFabric or NetworkRack. + * Configuration state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly disabledOnResources?: string[]; + readonly configurationState?: ConfigurationState; /** - * state. Example: Enabled | Disabled. It indicates administrative state of the isolationDomain, whether it is enabled or disabled. If enabled, the configuration is applied on the devices. If disabled, the configuration is removed from the devices + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly administrativeState?: EnabledDisabledState; + readonly provisioningState?: ProvisioningState; /** - * Gets the provisioning state of the resource. + * Administrative state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly administrativeState?: AdministrativeState; } -/** L2IsolationDomainPatchProperties define the patchable resource properties. */ +/** L2 Isolation Domain Patch Properties defines the patchable properties of the resource. */ export interface L2IsolationDomainPatchProperties extends AnnotationResource { - /** maximum transmission unit. Default value is 1500. */ + /** Maximum transmission unit. Default value is 1500. */ mtu?: number; } -/** L3IsolationDomainProperties define the resource properties. */ +/** L3 Isolation Domain Properties defines the properties of the resource. */ export interface L3IsolationDomainProperties extends AnnotationResource, - L3IsolationDomainPatchProperties { - /** Network Fabric ARM resource id. */ + L3IsolationDomainPatchableProperties { + /** ARM Resource ID of the Network Fabric. */ networkFabricId: string; /** - * List of resources the L3 Isolation Domain is disabled on. Can be either entire NetworkFabric or NetworkRack. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly disabledOnResources?: string[]; - /** - * Administrative state of the IsolationDomain. Example: Enabled | Disabled. + * Configuration state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly administrativeState?: EnabledDisabledState; + readonly configurationState?: ConfigurationState; /** - * List of resources the OptionB is disabled on. Can be either entire NetworkFabric or NetworkRack. + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly optionBDisabledOnResources?: string[]; + readonly provisioningState?: ProvisioningState; /** - * Gets the provisioning state of the resource. + * Administrative state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly administrativeState?: AdministrativeState; } -/** Connected Subnet properties. */ -export interface ConnectedSubnet extends AnnotationResource { - /** Prefix of the connected Subnet. */ - prefix?: string; -} +/** Resource properties. */ +export interface L3IsolationDomainPatchProperties + extends AnnotationResource, + L3IsolationDomainPatchableProperties {} /** BGP configuration properties */ export interface BgpConfiguration extends AnnotationResource { @@ -1149,100 +1385,132 @@ export interface BgpConfiguration extends AnnotationResource { */ readonly fabricASN?: number; /** Peer ASN. Example: 65047. */ - peerASN: number; - /** BGP Ipv4 ListenRange. */ + peerASN?: number; + /** List of BGP IPv4 Listen Range prefixes. */ ipv4ListenRangePrefixes?: string[]; - /** BGP Ipv6 ListenRange. */ + /** List of BGP IPv6 Listen Ranges prefixes. */ ipv6ListenRangePrefixes?: string[]; - /** List with stringified ipv4NeighborAddresses. */ + /** List with stringified IPv4 Neighbor Addresses. */ ipv4NeighborAddress?: NeighborAddress[]; /** List with stringified IPv6 Neighbor Address. */ ipv6NeighborAddress?: NeighborAddress[]; } -/** Internal Network Properties */ +/** Connected Subnet properties. */ +export interface ConnectedSubnet extends AnnotationResource { + /** Prefix of the Connected Subnet. */ + prefix: string; +} + +/** Internal Network Properties defines the properties of the resource. */ export interface InternalNetworkProperties extends AnnotationResource, - InternalNetworkPatchableProperties { - /** - * List of resources the InternalNetwork is disabled on. Can be either entire NetworkFabric or NetworkRack. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly disabledOnResources?: string[]; - /** - * Administrative state of the InternalNetwork. Example: Enabled | Disabled. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly administrativeState?: EnabledDisabledState; - /** - * List of resources the BGP is disabled on. Can be either entire NetworkFabric or NetworkRack. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly bgpDisabledOnResources?: string[]; + InternalNetworkPatchableProperties, + ExtensionEnumProperty { + /** Vlan identifier. Example: 1001. */ + vlanId: number; + /** BGP configuration properties. */ + bgpConfiguration?: InternalNetworkPropertiesBgpConfiguration; + /** Static Route Configuration properties. */ + staticRouteConfiguration?: InternalNetworkPropertiesStaticRouteConfiguration; /** - * List of resources the BFD for BGP is disabled on. Can be either entire NetworkFabric or NetworkRack. + * Configuration state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly bfdDisabledOnResources?: string[]; + readonly configurationState?: ConfigurationState; /** - * List of resources the BFD of StaticRoutes is disabled on. Can be either entire NetworkFabric or NetworkRack. + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly bfdForStaticRoutesDisabledOnResources?: string[]; + readonly provisioningState?: ProvisioningState; /** - * Gets the provisioning state of the resource. + * Administrative state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; - /** Vlan identifier. Example: 1001. */ - vlanId: number; + readonly administrativeState?: AdministrativeState; } /** InternalNetwork Patch properties. */ export interface InternalNetworkPatchProperties extends AnnotationResource, - InternalNetworkPatchableProperties {} + InternalNetworkPatchableProperties { + /** BGP configuration properties. */ + bgpConfiguration?: BgpConfiguration; + /** Static Route Configuration properties. */ + staticRouteConfiguration?: StaticRouteConfiguration; +} /** External Network Properties. */ -export interface ExternalNetworkProperties extends AnnotationResource { +export interface ExternalNetworkProperties + extends AnnotationResource, + ExternalNetworkPatchableProperties { /** * Gets the networkToNetworkInterconnectId of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly networkToNetworkInterconnectId?: string; + /** Peering option list. */ + peeringOption: PeeringOption; + /** option B properties object */ + optionBProperties?: L3OptionBProperties; + /** option A properties object */ + optionAProperties?: ExternalNetworkPropertiesOptionAProperties; /** - * List of resources the externalNetwork is disabled on. Can be either entire NetworkFabric or NetworkRack. + * Configuration state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly disabledOnResources?: string[]; + readonly configurationState?: ConfigurationState; /** - * AdministrativeState of the externalNetwork. Example: Enabled | Disabled. + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly administrativeState?: EnabledDisabledState; + readonly provisioningState?: ProvisioningState; /** - * Gets the provisioning state of the resource. + * Administrative state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly administrativeState?: AdministrativeState; +} + +/** External Network Patch properties. */ +export interface ExternalNetworkPatchProperties + extends AnnotationResource, + ExternalNetworkPatchableProperties { /** Peering option list. */ - peeringOption: PeeringOption; + peeringOption?: PeeringOption; /** option B properties object */ - optionBProperties?: OptionBProperties; + optionBProperties?: L3OptionBProperties; /** option A properties object */ - optionAProperties?: ExternalNetworkPropertiesOptionAProperties; - /** ARM resource ID of importRoutePolicy. */ - importRoutePolicyId?: string; - /** ARM resource ID of exportRoutePolicy. */ - exportRoutePolicyId?: string; + optionAProperties?: ExternalNetworkPatchPropertiesOptionAProperties; } -/** External Network Patch properties. */ -export interface ExternalNetworkPatchProperties +/** Neighbor Group Properties defines the properties of the resource. */ +export interface NeighborGroupProperties + extends AnnotationResource, + NeighborGroupPatchableProperties { + /** + * List of NetworkTap IDs where neighbor group is associated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly networkTapIds?: string[]; + /** + * List of Network Tap Rule IDs where neighbor group is associated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly networkTapRuleIds?: string[]; + /** + * The provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** Neighbor Group Patch properties. */ +export interface NeighborGroupPatchProperties extends AnnotationResource, - ExternalNetworkPatchableProperties {} + NeighborGroupPatchableProperties {} -/** NetworkDeviceProperties define the resource properties. */ +/** Network Device Properties defines the properties of the resource. */ export interface NetworkDeviceProperties extends AnnotationResource, NetworkDevicePatchableProperties { @@ -1252,19 +1520,42 @@ export interface NetworkDeviceProperties */ readonly version?: string; /** Network Device SKU name. */ - networkDeviceSku: string; - /** networkDeviceRole is the device role: Example: CE | ToR. */ - networkDeviceRole: NetworkDeviceRoleTypes; + networkDeviceSku?: string; /** - * Gets the provisioning state of the resource. + * NetworkDeviceRole is the device role: Example: CE | ToR. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly networkDeviceRole?: NetworkDeviceRole; /** * Reference to network rack resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly networkRackId?: string; + /** + * Management IPv4 Address. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly managementIpv4Address?: string; + /** + * Management IPv6 Address. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly managementIpv6Address?: string; + /** + * Configuration state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; + /** + * Provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; } /** Network Device Patch properties. */ @@ -1272,49 +1563,49 @@ export interface NetworkDevicePatchParametersProperties extends AnnotationResource, NetworkDevicePatchableProperties {} -/** NetworkInterfaceProperties define the resource properties. */ +/** Network Interface Properties defines the properties of the resource. */ export interface NetworkInterfaceProperties extends AnnotationResource { /** - * physicalIdentifier of the network interface. + * Physical Identifier of the network interface. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly physicalIdentifier?: string; /** - * administrativeState of the network interface. Example: Enabled | Disabled. + * The ARM resource id of the interface or compute server its connected to. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly administrativeState?: EnabledDisabledState; + readonly connectedTo?: string; /** - * Gets the provisioning state of the resource. + * The Interface Type. Example: Management/Data * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly interfaceType?: InterfaceType; /** - * The arm resource id of the interface or compute server its connected to. + * IPv4Address of the interface. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly connectedTo?: string; + readonly ipv4Address?: string; /** - * The Interface Type. Example: Management/Data + * IPv6Address of the interface. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly interfaceType?: InterfaceType; + readonly ipv6Address?: string; /** - * ipv4Address. + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ipv4Address?: string; + readonly provisioningState?: ProvisioningState; /** - * ipv6Address. + * Administrative state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ipv6Address?: string; + readonly administrativeState?: AdministrativeState; } /** Network Interface Patch properties. */ export interface NetworkInterfacePatchProperties extends AnnotationResource {} -/** NetworkFabricControllerProperties define the resource properties. */ +/** NetworkFabricControllerProperties defines the resource properties. */ export interface NetworkFabricControllerProperties extends AnnotationResource, NetworkFabricControllerPatchableProperties { @@ -1322,12 +1613,12 @@ export interface NetworkFabricControllerProperties * InfrastructureServices IP ranges. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly infrastructureServices?: InfrastructureServices; + readonly infrastructureServices?: ControllerServices; /** * WorkloadServices IP ranges. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly workloadServices?: WorkloadServices; + readonly workloadServices?: ControllerServices; /** Managed Resource Group configuration properties. */ managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; /** @@ -1336,19 +1627,23 @@ export interface NetworkFabricControllerProperties */ readonly networkFabricIds?: string[]; /** - * A workload management network is required for all the tenant (workload) traffic. This traffic is only dedicated for Tenant workloads which are required to access internet or any other MSFT/Public endpoints. + * A workload management network is required for all the tenant (workload) traffic. This traffic is only dedicated for Tenant workloads which are required to access internet or any other MSFT/Public endpoints. This is used for the backward compatibility. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly workloadManagementNetwork?: boolean; - /** IPv4 Network Fabric Controller Address Space. */ - ipv4AddressSpace?: string; - /** IPv6 Network Fabric Controller Address Space. */ - ipv6AddressSpace?: string; + /** A workload management network is required for all the tenant (workload) traffic. This traffic is only dedicated for Tenant workloads which are required to access internet or any other MSFT/Public endpoints. */ + isWorkloadManagementNetworkEnabled?: IsWorkloadManagementNetworkEnabled; /** - * The Operational Status would always be NULL. Look only in to the Provisioning state for the latest status. + * List of tenant InternetGateway resource IDs * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationalState?: NetworkFabricControllerOperationalState; + readonly tenantInternetGatewayIds?: string[]; + /** IPv4 Network Fabric Controller Address Space. */ + ipv4AddressSpace?: string; + /** IPv6 Network Fabric Controller Address Space. */ + ipv6AddressSpace?: string; + /** Network Fabric Controller SKU. */ + nfcSku?: NfcSku; /** * Provides you the latest status of the NFC service, whether it is Accepted, updating, Succeeded or Failed. During this process, the states keep changing based on the status of NFC provisioning. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1356,70 +1651,168 @@ export interface NetworkFabricControllerProperties readonly provisioningState?: ProvisioningState; } -/** NetworkFabricProperties - define the resource properties. */ -export interface NetworkFabricProperties - extends AnnotationResource, - NetworkFabricPatchableProperties { +/** Network Fabric Properties defines the properties of the resource. */ +export interface NetworkFabricProperties extends AnnotationResource { /** Supported Network Fabric SKU.Example: Compute / Aggregate racks. Once the user chooses a particular SKU, only supported racks can be added to the Network Fabric. The SKU determines whether it is a single / multi rack Network Fabric. */ networkFabricSku: string; - /** Number of racks associated to Network Fabric.Possible values are from 2-8. */ - rackCount: number; + /** + * The version of Network Fabric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fabricVersion?: string; + /** + * Array of router IDs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly routerIds?: string[]; + /** Azure resource ID for the NetworkFabricController the NetworkFabric belongs. */ + networkFabricControllerId: string; + /** Number of compute racks associated to Network Fabric. */ + rackCount?: number; /** Number of servers.Possible values are from 1-16. */ serverCountPerRack: number; /** IPv4Prefix for Management Network. Example: 10.1.0.0/19. */ - ipv4Prefix?: string; - /** IPv6Prefix for Management Network. Example: 3FFE:FFFF:0:CD40::/59. */ + ipv4Prefix: string; + /** IPv6Prefix for Management Network. Example: 3FFE:FFFF:0:CD40::/59 */ ipv6Prefix?: string; - /** - * Router Id of CE to be used for MP-BGP between PE and CE - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly routerId?: string; /** ASN of CE devices for CE/PE connectivity. */ fabricASN: number; - /** Azure resource ID for the NetworkFabricController the NetworkFabric belongs. */ - networkFabricControllerId: string; /** Network and credentials configuration currently applied to terminal server. */ terminalServerConfiguration: TerminalServerConfiguration; /** Configuration to be used to setup the management network. */ - managementNetworkConfiguration: ManagementNetworkConfiguration; + managementNetworkConfiguration: ManagementNetworkConfigurationProperties; + /** + * List of NetworkRack resource IDs under the Network Fabric. The number of racks allowed depends on the Network Fabric SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly racks?: string[]; /** - * Gets the operational state of the resource. + * List of L2 Isolation Domain resource IDs under the Network Fabric. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationalState?: NetworkFabricOperationalState; + readonly l2IsolationDomains?: string[]; /** - * Gets the provisioning state of the resource. + * List of L3 Isolation Domain resource IDs under the Network Fabric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly l3IsolationDomains?: string[]; + /** + * Configuration state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; + /** + * Provides you the latest status of the NFC service, whether it is Accepted, updating, Succeeded or Failed. During this process, the states keep changing based on the status of NFC provisioning. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; } /** Network Fabric Patch properties. */ -export interface NetworkFabricPatchParametersProperties +export interface NetworkFabricPatchProperties extends AnnotationResource, - TerminalServerPatchParameters, NetworkFabricPatchableProperties {} -/** NetworkRackProperties define the resource properties. */ +/** Network Rack Properties defines the properties of the resource. */ export interface NetworkRackProperties extends AnnotationResource { /** Network Rack SKU name. */ - networkRackSku: string; - /** Network Fabric ARM resource id. */ + networkRackType?: NetworkRackType; + /** ARM resource ID of the Network Fabric. */ networkFabricId: string; /** - * List of network device ARM resource ids. + * List of network device ARM resource IDs. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly networkDevices?: string[]; /** - * Gets the provisioning state of the resource. + * Provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** Network Tap Rule Properties defines the resource properties. */ +export interface NetworkTapRuleProperties + extends AnnotationResource, + NetworkTapRulePatchableProperties { + /** + * The ARM resource Id of the NetworkTap. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly networkTapId?: string; + /** Polling interval in seconds. */ + pollingIntervalInSeconds?: PollingIntervalInSeconds; + /** + * The last sync timestamp. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastSyncedTime?: Date; + /** + * Configuration state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; + /** + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; +} + +/** Network Tap Rule Patch properties. */ +export interface NetworkTapRulePatchProperties + extends AnnotationResource, + NetworkTapRulePatchableProperties {} + +/** Network Tap Properties defines the properties of the resource. */ +export interface NetworkTapProperties extends AnnotationResource { + /** ARM resource ID of the Network Packet Broker. */ + networkPacketBrokerId: string; + /** + * Source Tap Rule Id. ARM Resource ID of the Network Tap Rule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sourceTapRuleId?: string; + /** List of destinations to send the filter traffic. */ + destinations: NetworkTapPropertiesDestinationsItem[]; + /** Polling type. */ + pollingType?: PollingType; + /** + * Gets the configurations state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; + /** + * Provides you the latest status of the NFC service, whether it is Accepted, updating, Succeeded or Failed. During this process, the states keep changing based on the status of Network Tap provisioning. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. Example -Enabled/Disabled + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; +} + +/** The Network Tap resource patch definition. */ +export interface NetworkTapPatchableParameters extends AnnotationResource { + /** Polling type. */ + pollingType?: PollingType; + /** List of destination properties to send the filter traffic. */ + destinations?: NetworkTapPatchableParametersDestinationsItem[]; } -/** Route Policy Statement properties.. */ +/** Route Policy Statement properties. */ export interface RoutePolicyStatementProperties extends AnnotationResource { /** Sequence to insert to/delete from existing route. */ sequenceNumber: number; @@ -1429,15 +1822,59 @@ export interface RoutePolicyStatementProperties extends AnnotationResource { action: StatementActionProperties; } -/** RoutePolicy Properties define the resource properties. */ -export interface RoutePolicyProperties extends AnnotationResource { - /** Route Policy statements. */ - statements: RoutePolicyStatementProperties[]; +/** RoutePolicyProperties defines the resource properties. */ +export interface RoutePolicyProperties + extends AnnotationResource, + RoutePolicyPatchableProperties { + /** Arm Resource ID of Network Fabric. */ + networkFabricId: string; + /** AddressFamilyType. This parameter decides whether the given ipv4 or ipv6 route policy. */ + addressFamilyType?: AddressFamilyType; /** - * Gets the provisioning state of the resource. + * Configuration state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; + /** + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; +} + +/** Defines the port condition that needs to be matched. */ +export interface AccessControlListPortCondition extends PortCondition { + /** List of protocol flags that needs to be matched. */ + flags?: string[]; +} + +/** Defines the match condition that is supported to filter the traffic. */ +export interface AccessControlListMatchCondition extends CommonMatchConditions { + /** List of ether type values that needs to be matched. */ + etherTypes?: string[]; + /** List of IP fragment packets that needs to be matched. */ + fragments?: string[]; + /** List of IP Lengths that needs to be matched. */ + ipLengths?: string[]; + /** List of TTL [Time To Live] values that needs to be matched. */ + ttlValues?: string[]; + /** List of DSCP Markings that needs to be matched. */ + dscpMarkings?: string[]; + /** Defines the port condition that needs to be matched. */ + portCondition?: AccessControlListPortCondition; +} + +/** Defines the match condition that is supported to filter the traffic. */ +export interface NetworkTapRuleMatchCondition extends CommonMatchConditions { + /** Encapsulation Type. */ + encapsulationType?: EncapsulationType; + /** Defines the port condition that needs to be matched. */ + portCondition?: PortCondition; } /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ @@ -1451,33 +1888,217 @@ export interface TrackedResource extends Resource { /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ export interface ProxyResource extends Resource {} -/** Update administrative state on list of resources. */ -export interface UpdateAdministrativeState extends EnableDisableOnResources { - /** Administrative state. */ - state?: AdministrativeState; +/** Common response for the state updates. */ +export interface CommonPostActionResponseForStateUpdate extends ErrorResponse { + /** + * Gets the configuration state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; } -/** Peering optionA properties */ -export interface Layer3OptionAProperties extends Layer3IpPrefixProperties { - /** MTU to use for option A peering. */ - mtu?: number; - /** Vlan identifier. Example : 501 */ - vlanId?: number; +/** The response of the action validate configuration. */ +export interface ValidateConfigurationResponse extends ErrorResponse { /** - * Fabric ASN number. Example 65001 + * Gets the configuration state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fabricASN?: number; - /** Peer ASN number.Example : 28 */ - peerASN?: number; - /** BFD configuration properties */ - bfdConfiguration?: BfdConfiguration; + readonly configurationState?: ConfigurationState; + /** URL for the details of the response. */ + url?: string; +} + +/** Common response for device updates. */ +export interface CommonPostActionResponseForDeviceUpdate extends ErrorResponse { + /** + * Gets the configuration state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; + /** List of ARM Resource IDs for which the given action applied successfully. */ + successfulDevices?: string[]; + /** List of ARM Resource IDs for which the given action failed to apply. */ + failedDevices?: string[]; +} + +/** The Access Control Lists patch resource definition. */ +export interface AccessControlListPatch extends TagsUpdate { + /** Input method to configure Access Control List. */ + configurationType?: ConfigurationType; + /** Access Control List file URL. */ + aclsUrl?: string; + /** List of match configurations. */ + matchConfigurations?: AccessControlListMatchConfiguration[]; + /** List of dynamic match configurations. */ + dynamicMatchConfigurations?: CommonDynamicMatchConfiguration[]; + /** Switch configuration description. */ + annotation?: string; +} + +/** The Internet Gateway patch resource definition. */ +export interface InternetGatewayPatch extends TagsUpdate { + /** ARM Resource ID of the Internet Gateway Rule. */ + internetGatewayRuleId?: string; +} + +/** The Internet Gateway Rules patch resource definition. */ +export interface InternetGatewayRulePatch extends TagsUpdate {} + +/** The IP Community patch resource definition. */ +export interface IpCommunityPatch extends TagsUpdate { + /** List of IP Community Rules. */ + ipCommunityRules?: IpCommunityRule[]; } +/** The IP Extended Communities patch resource definition. */ +export interface IpExtendedCommunityPatch extends TagsUpdate { + /** List of IP Extended Community Rules. */ + ipExtendedCommunityRules?: IpExtendedCommunityRule[]; + /** Switch configuration description. */ + annotation?: string; +} + +/** The IP Prefix patch resource definition. */ +export interface IpPrefixPatch extends TagsUpdate { + /** Switch configuration description. */ + annotation?: string; + /** The list of IP Prefix Rules. */ + ipPrefixRules?: IpPrefixRule[]; +} + +/** The L2 Isolation Domain patch resource definition. */ +export interface L2IsolationDomainPatch extends TagsUpdate { + /** Switch configuration description. */ + annotation?: string; + /** Maximum transmission unit. Default value is 1500. */ + mtu?: number; +} + +/** The L3 Isolation Domain patch resource definition. */ +export interface L3IsolationDomainPatch extends TagsUpdate { + /** Switch configuration description. */ + annotation?: string; + /** Advertise Connected Subnets. Ex: "True" | "False". */ + redistributeConnectedSubnets?: RedistributeConnectedSubnets; + /** Advertise Static Routes. Ex: "True" | "False". */ + redistributeStaticRoutes?: RedistributeStaticRoutes; + /** Aggregate route configurations. */ + aggregateRouteConfiguration?: AggregateRouteConfiguration; + /** Connected Subnet RoutePolicy */ + connectedSubnetRoutePolicy?: ConnectedSubnetRoutePolicy; +} + +/** The Neighbor Group Patch definition. */ +export interface NeighborGroupPatch extends TagsUpdate { + /** Switch configuration description. */ + annotation?: string; + /** An array of destination IPv4 Addresses or IPv6 Addresses. */ + destination?: NeighborGroupDestination; +} + +/** The Network Device Patch Parameters defines the patch parameters of the resource. */ +export interface NetworkDevicePatchParameters extends TagsUpdate { + /** Switch configuration description. */ + annotation?: string; + /** The host name of the device. */ + hostName?: string; + /** Serial number of the device. Format of serial Number - Make;Model;HardwareRevisionId;SerialNumber. */ + serialNumber?: string; +} + +/** The Network Fabric Controller Patch payload definition. */ +export interface NetworkFabricControllerPatch extends TagsUpdate { + /** As part of an update, the Infrastructure ExpressRoute CircuitID should be provided to create and Provision a NFC. This Express route is dedicated for Infrastructure services. (This is a Mandatory attribute) */ + infrastructureExpressRouteConnections?: ExpressRouteConnectionInformation[]; + /** As part of an update, the workload ExpressRoute CircuitID should be provided to create and Provision a NFC. This Express route is dedicated for Workload services. (This is a Mandatory attribute). */ + workloadExpressRouteConnections?: ExpressRouteConnectionInformation[]; +} + +/** The Network Fabric resource definition. */ +export interface NetworkFabricPatch extends TagsUpdate { + /** Switch configuration description. */ + annotation?: string; + /** Number of compute racks associated to Network Fabric. */ + rackCount?: number; + /** Number of servers.Possible values are from 1-16. */ + serverCountPerRack?: number; + /** IPv4Prefix for Management Network. Example: 10.1.0.0/19. */ + ipv4Prefix?: string; + /** IPv6Prefix for Management Network. Example: 3FFE:FFFF:0:CD40::/59. */ + ipv6Prefix?: string; + /** ASN of CE devices for CE/PE connectivity. */ + fabricASN?: number; + /** Network and credentials configuration already applied to terminal server. */ + terminalServerConfiguration?: NetworkFabricPatchablePropertiesTerminalServerConfiguration; + /** Configuration to be used to setup the management network. */ + managementNetworkConfiguration?: ManagementNetworkConfigurationPatchableProperties; +} + +/** The NetworkPacketBroker patch resource definition. */ +export interface NetworkPacketBrokerPatch extends TagsUpdate {} + +/** The NetworkTapRule resource definition. */ +export interface NetworkTapRulePatch extends TagsUpdate { + /** Switch configuration description. */ + annotation?: string; + /** Input method to configure Network Tap Rule. */ + configurationType?: ConfigurationType; + /** Network Tap Rules file URL. */ + tapRulesUrl?: string; + /** List of match configurations. */ + matchConfigurations?: NetworkTapRuleMatchConfiguration[]; + /** List of dynamic match configurations. */ + dynamicMatchConfigurations?: CommonDynamicMatchConfiguration[]; +} + +/** The NetworkFabric resource definition. */ +export interface NetworkTapPatch extends TagsUpdate { + /** Switch configuration description. */ + annotation?: string; + /** Polling type. */ + pollingType?: PollingType; + /** List of destination properties to send the filter traffic. */ + destinations?: NetworkTapPatchableParametersDestinationsItem[]; +} + +/** The Route Policy patch resource definition. */ +export interface RoutePolicyPatch extends TagsUpdate { + /** Route Policy statements. */ + statements?: RoutePolicyStatementProperties[]; +} + +/** Update administrative state on list of resources. */ +export interface UpdateAdministrativeState extends EnableDisableOnResources { + /** Administrative state. */ + state?: EnableDisableState; +} + +/** Update the administrative state on list of resources. */ +export interface UpdateDeviceAdministrativeState + extends EnableDisableOnResources { + /** Administrative state. */ + state?: DeviceAdministrativeState; +} + +/** Static Route Configuration properties. */ +export interface InternalNetworkPropertiesStaticRouteConfiguration + extends StaticRouteConfiguration, + ExtensionEnumProperty {} + +/** option A properties object */ +export interface ExternalNetworkPropertiesOptionAProperties + extends Layer3IpPrefixProperties, + L3OptionAProperties {} + +/** option A properties object */ +export interface ExternalNetworkPatchPropertiesOptionAProperties + extends Layer3IpPrefixProperties, + L3OptionAProperties {} + /** Network and credentials configuration currently applied to terminal server. */ export interface TerminalServerConfiguration - extends Layer3IpPrefixProperties, - TerminalServerPatchableProperties { + extends TerminalServerPatchableProperties, + Layer3IpPrefixProperties { /** * ARM Resource ID used for the NetworkDevice. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1485,24 +2106,23 @@ export interface TerminalServerConfiguration readonly networkDeviceId?: string; } -/** Peering optionA properties */ -export interface OptionAProperties extends Layer3IpPrefixProperties { - /** MTU to use for option A peering. */ - mtu?: number; - /** Vlan identifier. Example : 501 */ - vlanId?: number; - /** Peer ASN number.Example : 28 */ - peerASN?: number; - /** BFD Configuration properties. */ - bfdConfiguration?: FabricBfdConfiguration; -} +/** option A properties */ +export interface VpnConfigurationPropertiesOptionAProperties + extends OptionAProperties, + Layer3IpPrefixProperties {} -/** layer3Configuration */ -export interface Layer3Configuration extends Layer3IpPrefixProperties { - /** importRoutePolicyId */ - importRoutePolicyId?: string; - /** exportRoutePolicyId */ - exportRoutePolicyId?: string; +/** Network and credentials configuration already applied to terminal server. */ +export interface NetworkFabricPatchablePropertiesTerminalServerConfiguration + extends TerminalServerPatchableProperties, + Layer3IpPrefixProperties {} + +/** option A properties */ +export interface VpnConfigurationPatchablePropertiesOptionAProperties + extends OptionAProperties, + Layer3IpPrefixProperties {} + +/** OptionB Layer3 Configuration properties. */ +export interface OptionBLayer3Configuration extends Layer3IpPrefixProperties { /** ASN of PE devices for CE/PE connectivity.Example : 28 */ peerASN?: number; /** VLAN for CE/PE Layer 3 connectivity.Example : 501 */ @@ -1514,16 +2134,20 @@ export interface Layer3Configuration extends Layer3IpPrefixProperties { readonly fabricASN?: number; } -/** Get Device static interface maps as per topology. */ -export interface GetDynamicInterfaceMapsPropertiesItem extends InterfaceStatus { - /** The interface name. */ - name?: string; -} +/** Destination. */ +export interface NetworkTapPropertiesDestinationsItem + extends DestinationProperties {} + +/** Destination. */ +export interface NetworkTapPatchableParametersDestinationsItem + extends DestinationProperties {} /** Route policy statement condition properties. */ export interface StatementConditionProperties extends IpCommunityIdList, IpExtendedCommunityIdList { + /** Type of the condition used. */ + type?: RoutePolicyConditionType; /** Arm Resource Id of IpPrefix. */ ipPrefixId?: string; } @@ -1540,94 +2164,186 @@ export interface ActionIpExtendedCommunityProperties IpExtendedCommunityDeleteOperationProperties, IpExtendedCommunitySetOperationProperties {} -/** The AccessControlList resource definition. */ +/** BGP configuration properties. */ +export interface InternalNetworkPropertiesBgpConfiguration + extends BgpConfiguration {} + +/** The Access Control List resource definition. */ export interface AccessControlList extends TrackedResource { /** Switch configuration description. */ annotation?: string; - /** IP address family. Example: ipv4 | ipv6. */ - addressFamily: AddressFamily; - /** Access Control List conditions. */ - conditions: AccessControlListConditionProperties[]; + /** Input method to configure Access Control List. */ + configurationType?: ConfigurationType; + /** Access Control List file URL. */ + aclsUrl?: string; + /** List of match configurations. */ + matchConfigurations?: AccessControlListMatchConfiguration[]; + /** List of dynamic match configurations. */ + dynamicMatchConfigurations?: CommonDynamicMatchConfiguration[]; /** - * Gets the provisioning state of the resource. + * The last synced timestamp. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastSyncedTime?: Date; + /** + * Configuration state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; + /** + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; } -/** The IpCommunity resource definition. */ +/** The Internet Gateway resource definition. */ +export interface InternetGateway extends TrackedResource { + /** Switch configuration description. */ + annotation?: string; + /** ARM Resource ID of the Internet Gateway Rule. */ + internetGatewayRuleId?: string; + /** + * IPv4 Address of Internet Gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ipv4Address?: string; + /** + * Port number of Internet Gateway. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly port?: number; + /** Gateway Type of the resource. */ + typePropertiesType: GatewayType; + /** ARM Resource ID of the Network Fabric Controller. */ + networkFabricControllerId: string; + /** + * Provisioning state of resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** The Internet Gateway Rule resource definition. */ +export interface InternetGatewayRule extends TrackedResource { + /** Switch configuration description. */ + annotation?: string; + /** Rules for the InternetGateways */ + ruleProperties: RuleProperties; + /** + * Provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * List of Internet Gateway resource Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly internetGatewayIds?: string[]; +} + +/** The IP Community resource definition. */ export interface IpCommunity extends TrackedResource { /** Switch configuration description. */ annotation?: string; - /** Action to be taken on the configuration. Example: Permit | Deny. */ - action?: CommunityActionTypes; - /** Supported well known Community List. */ - wellKnownCommunities?: WellKnownCommunities[]; - /** List the communityMembers of IP Community . */ - communityMembers?: string[]; + /** List of IP Community Rules. */ + ipCommunityRules?: IpCommunityRule[]; + /** + * Configuration state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; /** - * Gets the provisioning state of the resource. + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; } -/** The IpExtendedCommunity resource definition. */ +/** The IP Extended Community resource definition. */ export interface IpExtendedCommunity extends TrackedResource { /** Switch configuration description. */ annotation?: string; - /** Action to be taken on the configuration. Example: Permit | Deny. */ - action?: CommunityActionTypes; - /** Route Target List.The expected formats are ASN(plain):NN >> example 4294967294:50, ASN.ASN:NN >> example 65533.65333:40, IP-address:NN >> example 10.10.10.10:65535. The possible values of ASN,NN are in range of 0-65535, ASN(plain) is in range of 0-4294967295. */ - routeTargets?: string[]; + /** List of IP Extended Community Rules. */ + ipExtendedCommunityRules: IpExtendedCommunityRule[]; /** - * Gets the provisioning state of the resource. + * Configuration state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; + /** + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; } -/** The IPPrefix resource definition. */ +/** The IP Prefix resource definition. */ export interface IpPrefix extends TrackedResource { /** Switch configuration description. */ annotation?: string; - /** IpPrefix contains the list of IP PrefixRules objects. */ - ipPrefixRules: IpPrefixPropertiesIpPrefixRulesItem[]; + /** The list of IP Prefix Rules. */ + ipPrefixRules?: IpPrefixRule[]; /** - * Gets the provisioning state of the resource. + * Configuration state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; + /** + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; } -/** The L2IsolationDomain resource definition. */ +/** The L2 Isolation Domain resource definition. */ export interface L2IsolationDomain extends TrackedResource { /** Switch configuration description. */ annotation?: string; - /** Network Fabric ARM resource id. */ - networkFabricId?: string; - /** vlanId. Example: 501. */ - vlanId?: number; - /** maximum transmission unit. Default value is 1500. */ + /** ARM Resource ID of the Network Fabric. */ + networkFabricId: string; + /** Vlan Identifier of the Network Fabric. Example: 501. */ + vlanId: number; + /** Maximum transmission unit. Default value is 1500. */ mtu?: number; /** - * List of resources the L2 Isolation Domain is disabled on. Can be either entire NetworkFabric or NetworkRack. + * Configuration state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly disabledOnResources?: string[]; + readonly configurationState?: ConfigurationState; /** - * state. Example: Enabled | Disabled. It indicates administrative state of the isolationDomain, whether it is enabled or disabled. If enabled, the configuration is applied on the devices. If disabled, the configuration is removed from the devices + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly administrativeState?: EnabledDisabledState; + readonly provisioningState?: ProvisioningState; /** - * Gets the provisioning state of the resource. + * Administrative state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly administrativeState?: AdministrativeState; } -/** The L3IsolationDomain resource definition. */ +/** The L3 Isolation Domain resource definition. */ export interface L3IsolationDomain extends TrackedResource { /** Switch configuration description. */ annotation?: string; @@ -1635,43 +2351,59 @@ export interface L3IsolationDomain extends TrackedResource { redistributeConnectedSubnets?: RedistributeConnectedSubnets; /** Advertise Static Routes. Ex: "True" | "False". */ redistributeStaticRoutes?: RedistributeStaticRoutes; - /** List of Ipv4 and Ipv6 route configurations. */ + /** Aggregate route configurations. */ aggregateRouteConfiguration?: AggregateRouteConfiguration; - /** L3 Isolation Domain description. */ - description?: string; /** Connected Subnet RoutePolicy */ - connectedSubnetRoutePolicy?: L3IsolationDomainPatchPropertiesConnectedSubnetRoutePolicy; - /** Network Fabric ARM resource id. */ - networkFabricId?: string; + connectedSubnetRoutePolicy?: ConnectedSubnetRoutePolicy; + /** ARM Resource ID of the Network Fabric. */ + networkFabricId: string; + /** + * Configuration state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; + /** + * Provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; /** - * List of resources the L3 Isolation Domain is disabled on. Can be either entire NetworkFabric or NetworkRack. + * Administrative state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly disabledOnResources?: string[]; + readonly administrativeState?: AdministrativeState; +} + +/** Defines the Neighbor Group. */ +export interface NeighborGroup extends TrackedResource { + /** Switch configuration description. */ + annotation?: string; + /** An array of destination IPv4 Addresses or IPv6 Addresses. */ + destination?: NeighborGroupDestination; /** - * Administrative state of the IsolationDomain. Example: Enabled | Disabled. + * List of NetworkTap IDs where neighbor group is associated. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly administrativeState?: EnabledDisabledState; + readonly networkTapIds?: string[]; /** - * List of resources the OptionB is disabled on. Can be either entire NetworkFabric or NetworkRack. + * List of Network Tap Rule IDs where neighbor group is associated. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly optionBDisabledOnResources?: string[]; + readonly networkTapRuleIds?: string[]; /** - * Gets the provisioning state of the resource. + * The provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; } -/** The NetworkDevice resource definition. */ +/** The Network Device resource definition. */ export interface NetworkDevice extends TrackedResource { /** Switch configuration description. */ annotation?: string; - /** The host Name of the device. */ + /** The host name of the device. */ hostName?: string; - /** serialNumber of the format Make;Model;HardwareRevisionId;SerialNumber. Example: Arista;DCS-7280DR3-24;12.05;JPE21116969 */ + /** Serial number of the device. Format of serial Number - Make;Model;HardwareRevisionId;SerialNumber. */ serialNumber?: string; /** * Current version of the device as defined in SKU. @@ -1680,21 +2412,44 @@ export interface NetworkDevice extends TrackedResource { readonly version?: string; /** Network Device SKU name. */ networkDeviceSku?: string; - /** networkDeviceRole is the device role: Example: CE | ToR. */ - networkDeviceRole?: NetworkDeviceRoleTypes; /** - * Gets the provisioning state of the resource. + * NetworkDeviceRole is the device role: Example: CE | ToR. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly networkDeviceRole?: NetworkDeviceRole; /** * Reference to network rack resource id. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly networkRackId?: string; + /** + * Management IPv4 Address. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly managementIpv4Address?: string; + /** + * Management IPv6 Address. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly managementIpv6Address?: string; + /** + * Configuration state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; + /** + * Provisioning state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; } -/** The NetworkFabricController resource definition. */ +/** The Network Fabric Controller resource definition. */ export interface NetworkFabricController extends TrackedResource { /** Switch configuration description. */ annotation?: string; @@ -1706,112 +2461,230 @@ export interface NetworkFabricController extends TrackedResource { * InfrastructureServices IP ranges. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly infrastructureServices?: InfrastructureServices; + readonly infrastructureServices?: ControllerServices; + /** + * WorkloadServices IP ranges. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly workloadServices?: ControllerServices; + /** Managed Resource Group configuration properties. */ + managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; + /** + * The NF-ID will be an input parameter used by the NF to link and get associated with the parent NFC Service. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly networkFabricIds?: string[]; + /** + * A workload management network is required for all the tenant (workload) traffic. This traffic is only dedicated for Tenant workloads which are required to access internet or any other MSFT/Public endpoints. This is used for the backward compatibility. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly workloadManagementNetwork?: boolean; + /** A workload management network is required for all the tenant (workload) traffic. This traffic is only dedicated for Tenant workloads which are required to access internet or any other MSFT/Public endpoints. */ + isWorkloadManagementNetworkEnabled?: IsWorkloadManagementNetworkEnabled; + /** + * List of tenant InternetGateway resource IDs + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly tenantInternetGatewayIds?: string[]; + /** IPv4 Network Fabric Controller Address Space. */ + ipv4AddressSpace?: string; + /** IPv6 Network Fabric Controller Address Space. */ + ipv6AddressSpace?: string; + /** Network Fabric Controller SKU. */ + nfcSku?: NfcSku; + /** + * Provides you the latest status of the NFC service, whether it is Accepted, updating, Succeeded or Failed. During this process, the states keep changing based on the status of NFC provisioning. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; +} + +/** The Network Fabric resource definition. */ +export interface NetworkFabric extends TrackedResource { + /** Switch configuration description. */ + annotation?: string; + /** Supported Network Fabric SKU.Example: Compute / Aggregate racks. Once the user chooses a particular SKU, only supported racks can be added to the Network Fabric. The SKU determines whether it is a single / multi rack Network Fabric. */ + networkFabricSku: string; + /** + * The version of Network Fabric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fabricVersion?: string; + /** + * Array of router IDs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly routerIds?: string[]; + /** Azure resource ID for the NetworkFabricController the NetworkFabric belongs. */ + networkFabricControllerId: string; + /** Number of compute racks associated to Network Fabric. */ + rackCount?: number; + /** Number of servers.Possible values are from 1-16. */ + serverCountPerRack: number; + /** IPv4Prefix for Management Network. Example: 10.1.0.0/19. */ + ipv4Prefix: string; + /** IPv6Prefix for Management Network. Example: 3FFE:FFFF:0:CD40::/59 */ + ipv6Prefix?: string; + /** ASN of CE devices for CE/PE connectivity. */ + fabricASN: number; + /** Network and credentials configuration currently applied to terminal server. */ + terminalServerConfiguration: TerminalServerConfiguration; + /** Configuration to be used to setup the management network. */ + managementNetworkConfiguration: ManagementNetworkConfigurationProperties; + /** + * List of NetworkRack resource IDs under the Network Fabric. The number of racks allowed depends on the Network Fabric SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly racks?: string[]; + /** + * List of L2 Isolation Domain resource IDs under the Network Fabric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly l2IsolationDomains?: string[]; + /** + * List of L3 Isolation Domain resource IDs under the Network Fabric. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly l3IsolationDomains?: string[]; + /** + * Configuration state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; + /** + * Provides you the latest status of the NFC service, whether it is Accepted, updating, Succeeded or Failed. During this process, the states keep changing based on the status of NFC provisioning. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; +} + +/** The NetworkPacketBroker resource definition. */ +export interface NetworkPacketBroker extends TrackedResource { + /** ARM resource ID of the Network Fabric. */ + networkFabricId: string; /** - * WorkloadServices IP ranges. + * List of ARM resource IDs of Network Devices [NPB]. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly workloadServices?: WorkloadServices; - /** Managed Resource Group configuration properties. */ - managedResourceGroupConfiguration?: ManagedResourceGroupConfiguration; + readonly networkDeviceIds?: string[]; /** - * The NF-ID will be an input parameter used by the NF to link and get associated with the parent NFC Service. + * List of network interfaces across NPB devices that are used to mirror source traffic. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly networkFabricIds?: string[]; + readonly sourceInterfaceIds?: string[]; /** - * A workload management network is required for all the tenant (workload) traffic. This traffic is only dedicated for Tenant workloads which are required to access internet or any other MSFT/Public endpoints. + * List of network Tap IDs configured on NPB. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly workloadManagementNetwork?: boolean; - /** IPv4 Network Fabric Controller Address Space. */ - ipv4AddressSpace?: string; - /** IPv6 Network Fabric Controller Address Space. */ - ipv6AddressSpace?: string; + readonly networkTapIds?: string[]; /** - * The Operational Status would always be NULL. Look only in to the Provisioning state for the latest status. + * List of neighbor group IDs configured on NPB. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationalState?: NetworkFabricControllerOperationalState; + readonly neighborGroupIds?: string[]; /** - * Provides you the latest status of the NFC service, whether it is Accepted, updating, Succeeded or Failed. During this process, the states keep changing based on the status of NFC provisioning. + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; } -/** The NetworkFabric resource definition. */ -export interface NetworkFabric extends TrackedResource { +/** The Network Rack resource definition. */ +export interface NetworkRack extends TrackedResource { /** Switch configuration description. */ annotation?: string; + /** Network Rack SKU name. */ + networkRackType?: NetworkRackType; + /** ARM resource ID of the Network Fabric. */ + networkFabricId: string; /** - * List of NetworkRack resource IDs under the Network Fabric. The number of racks allowed depends on the Network Fabric SKU. + * List of network device ARM resource IDs. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly racks?: string[]; + readonly networkDevices?: string[]; /** - * List of L2IsolationDomain resource IDs under the Network Fabric. + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly l2IsolationDomains?: string[]; + readonly provisioningState?: ProvisioningState; +} + +/** The NetworkTapRule resource definition. */ +export interface NetworkTapRule extends TrackedResource { + /** Switch configuration description. */ + annotation?: string; + /** Input method to configure Network Tap Rule. */ + configurationType?: ConfigurationType; + /** Network Tap Rules file URL. */ + tapRulesUrl?: string; + /** List of match configurations. */ + matchConfigurations?: NetworkTapRuleMatchConfiguration[]; + /** List of dynamic match configurations. */ + dynamicMatchConfigurations?: CommonDynamicMatchConfiguration[]; /** - * List of L3IsolationDomain resource IDs under the Network Fabric. + * The ARM resource Id of the NetworkTap. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly l3IsolationDomains?: string[]; - /** Supported Network Fabric SKU.Example: Compute / Aggregate racks. Once the user chooses a particular SKU, only supported racks can be added to the Network Fabric. The SKU determines whether it is a single / multi rack Network Fabric. */ - networkFabricSku?: string; - /** Number of racks associated to Network Fabric.Possible values are from 2-8. */ - rackCount?: number; - /** Number of servers.Possible values are from 1-16. */ - serverCountPerRack?: number; - /** IPv4Prefix for Management Network. Example: 10.1.0.0/19. */ - ipv4Prefix?: string; - /** IPv6Prefix for Management Network. Example: 3FFE:FFFF:0:CD40::/59. */ - ipv6Prefix?: string; + readonly networkTapId?: string; + /** Polling interval in seconds. */ + pollingIntervalInSeconds?: PollingIntervalInSeconds; /** - * Router Id of CE to be used for MP-BGP between PE and CE + * The last sync timestamp. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly routerId?: string; - /** ASN of CE devices for CE/PE connectivity. */ - fabricASN?: number; - /** Azure resource ID for the NetworkFabricController the NetworkFabric belongs. */ - networkFabricControllerId?: string; - /** Network and credentials configuration currently applied to terminal server. */ - terminalServerConfiguration?: TerminalServerConfiguration; - /** Configuration to be used to setup the management network. */ - managementNetworkConfiguration?: ManagementNetworkConfiguration; + readonly lastSyncedTime?: Date; /** - * Gets the operational state of the resource. + * Configuration state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationalState?: NetworkFabricOperationalState; + readonly configurationState?: ConfigurationState; /** - * Gets the provisioning state of the resource. + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; } -/** The NetworkRack resource definition. */ -export interface NetworkRack extends TrackedResource { +/** The Network Tap resource definition. */ +export interface NetworkTap extends TrackedResource { /** Switch configuration description. */ annotation?: string; - /** Network Rack SKU name. */ - networkRackSku: string; - /** Network Fabric ARM resource id. */ - networkFabricId: string; + /** ARM resource ID of the Network Packet Broker. */ + networkPacketBrokerId: string; /** - * List of network device ARM resource ids. + * Source Tap Rule Id. ARM Resource ID of the Network Tap Rule. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly networkDevices?: string[]; + readonly sourceTapRuleId?: string; + /** List of destinations to send the filter traffic. */ + destinations: NetworkTapPropertiesDestinationsItem[]; + /** Polling type. */ + pollingType?: PollingType; + /** + * Gets the configurations state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; /** - * Gets the provisioning state of the resource. + * Provides you the latest status of the NFC service, whether it is Accepted, updating, Succeeded or Failed. During this process, the states keep changing based on the status of Network Tap provisioning. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. Example -Enabled/Disabled + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; } /** The RoutePolicy resource definition. */ @@ -1819,100 +2692,115 @@ export interface RoutePolicy extends TrackedResource { /** Switch configuration description. */ annotation?: string; /** Route Policy statements. */ - statements: RoutePolicyStatementProperties[]; + statements?: RoutePolicyStatementProperties[]; + /** Arm Resource ID of Network Fabric. */ + networkFabricId: string; + /** AddressFamilyType. This parameter decides whether the given ipv4 or ipv6 route policy. */ + addressFamilyType?: AddressFamilyType; /** - * Gets the provisioning state of the resource. + * Configuration state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly configurationState?: ConfigurationState; + /** + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; } -/** Defines the InternalNetwork item. */ +/** Defines the Internal Network resource. */ export interface InternalNetwork extends ProxyResource { /** Switch configuration description. */ annotation?: string; /** Maximum transmission unit. Default value is 1500. */ mtu?: number; - /** List with object connected IPv4 Subnets. */ + /** List of Connected IPv4 Subnets. */ connectedIPv4Subnets?: ConnectedSubnet[]; - /** List with object connected IPv6 Subnets. */ + /** List of connected IPv6 Subnets. */ connectedIPv6Subnets?: ConnectedSubnet[]; - /** Static Route Configuration properties. */ - staticRouteConfiguration?: StaticRouteConfiguration; - /** BGP configuration properties */ - bgpConfiguration?: BgpConfiguration; - /** ARM resource ID of importRoutePolicy. */ + /** ARM Resource ID of the RoutePolicy. This is used for the backward compatibility. */ importRoutePolicyId?: string; - /** ARM resource ID of importRoutePolicy. */ + /** ARM Resource ID of the RoutePolicy. This is used for the backward compatibility. */ exportRoutePolicyId?: string; + /** Import Route Policy either IPv4 or IPv6. */ + importRoutePolicy?: ImportRoutePolicy; + /** Export Route Policy either IPv4 or IPv6. */ + exportRoutePolicy?: ExportRoutePolicy; + /** Ingress Acl. ARM resource ID of Access Control Lists. */ + ingressAclId?: string; + /** Egress Acl. ARM resource ID of Access Control Lists. */ + egressAclId?: string; + /** To check whether monitoring of internal network is enabled or not. */ + isMonitoringEnabled?: IsMonitoringEnabled; + /** Extension. Example: NoExtension | NPB. */ + extension?: Extension; + /** Vlan identifier. Example: 1001. */ + vlanId: number; + /** BGP configuration properties. */ + bgpConfiguration?: InternalNetworkPropertiesBgpConfiguration; + /** Static Route Configuration properties. */ + staticRouteConfiguration?: InternalNetworkPropertiesStaticRouteConfiguration; /** - * List of resources the InternalNetwork is disabled on. Can be either entire NetworkFabric or NetworkRack. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly disabledOnResources?: string[]; - /** - * Administrative state of the InternalNetwork. Example: Enabled | Disabled. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly administrativeState?: EnabledDisabledState; - /** - * List of resources the BGP is disabled on. Can be either entire NetworkFabric or NetworkRack. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly bgpDisabledOnResources?: string[]; - /** - * List of resources the BFD for BGP is disabled on. Can be either entire NetworkFabric or NetworkRack. + * Configuration state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly bfdDisabledOnResources?: string[]; + readonly configurationState?: ConfigurationState; /** - * List of resources the BFD of StaticRoutes is disabled on. Can be either entire NetworkFabric or NetworkRack. + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly bfdForStaticRoutesDisabledOnResources?: string[]; + readonly provisioningState?: ProvisioningState; /** - * Gets the provisioning state of the resource. + * Administrative state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; - /** Vlan identifier. Example: 1001. */ - vlanId: number; + readonly administrativeState?: AdministrativeState; } -/** Defines the ExternalNetwork item. */ +/** Defines the External Network resource. */ export interface ExternalNetwork extends ProxyResource { /** Switch configuration description. */ annotation?: string; + /** ARM Resource ID of the RoutePolicy. This is used for the backward compatibility. */ + importRoutePolicyId?: string; + /** ARM Resource ID of the RoutePolicy. This is used for the backward compatibility. */ + exportRoutePolicyId?: string; + /** Import Route Policy either IPv4 or IPv6. */ + importRoutePolicy?: ImportRoutePolicy; + /** Export Route Policy either IPv4 or IPv6. */ + exportRoutePolicy?: ExportRoutePolicy; /** * Gets the networkToNetworkInterconnectId of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly networkToNetworkInterconnectId?: string; + /** Peering option list. */ + peeringOption: PeeringOption; + /** option B properties object */ + optionBProperties?: L3OptionBProperties; + /** option A properties object */ + optionAProperties?: ExternalNetworkPropertiesOptionAProperties; /** - * List of resources the externalNetwork is disabled on. Can be either entire NetworkFabric or NetworkRack. + * Configuration state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly disabledOnResources?: string[]; + readonly configurationState?: ConfigurationState; /** - * AdministrativeState of the externalNetwork. Example: Enabled | Disabled. + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly administrativeState?: EnabledDisabledState; + readonly provisioningState?: ProvisioningState; /** - * Gets the provisioning state of the resource. + * Administrative state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; - /** Peering option list. */ - peeringOption: PeeringOption; - /** option B properties object */ - optionBProperties?: OptionBProperties; - /** option A properties object */ - optionAProperties?: ExternalNetworkPropertiesOptionAProperties; - /** ARM resource ID of importRoutePolicy. */ - importRoutePolicyId?: string; - /** ARM resource ID of exportRoutePolicy. */ - exportRoutePolicyId?: string; + readonly administrativeState?: AdministrativeState; } /** The NetworkDeviceSku resource definition. */ @@ -1921,16 +2809,14 @@ export interface NetworkDeviceSku extends ProxyResource { model: string; /** Manufacturer of the network device. */ manufacturer?: string; - /** List of network device interfaces. */ + /** List of supported version details of network device. */ supportedVersions?: SupportedVersionProperties[]; - /** Network device limits. */ - limits?: DeviceLimits; /** Available roles for the network device. */ supportedRoleTypes?: NetworkDeviceRoleName[]; /** List of network device interfaces. */ interfaces?: DeviceInterfaceProperties[]; /** - * Gets the provisioning state of the resource. + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; @@ -1941,119 +2827,196 @@ export interface NetworkInterface extends ProxyResource { /** Switch configuration description. */ annotation?: string; /** - * physicalIdentifier of the network interface. + * Physical Identifier of the network interface. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly physicalIdentifier?: string; /** - * administrativeState of the network interface. Example: Enabled | Disabled. + * The ARM resource id of the interface or compute server its connected to. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly administrativeState?: EnabledDisabledState; + readonly connectedTo?: string; /** - * Gets the provisioning state of the resource. + * The Interface Type. Example: Management/Data * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; + readonly interfaceType?: InterfaceType; /** - * The arm resource id of the interface or compute server its connected to. + * IPv4Address of the interface. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly connectedTo?: string; + readonly ipv4Address?: string; /** - * The Interface Type. Example: Management/Data + * IPv6Address of the interface. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly interfaceType?: InterfaceType; + readonly ipv6Address?: string; /** - * ipv4Address. + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ipv4Address?: string; + readonly provisioningState?: ProvisioningState; /** - * ipv6Address. + * Administrative state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ipv6Address?: string; + readonly administrativeState?: AdministrativeState; } -/** The NetworkFabricSku resource definition. */ +/** The Network Fabric SKU resource definition. */ export interface NetworkFabricSku extends ProxyResource { /** - * Type of Network Fabric Sku. + * Type of Network Fabric SKU. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly typePropertiesType?: string; - /** Maximum number of compute racks available for this Network Fabric SKU. */ + readonly typePropertiesType?: FabricSkuType; + /** Maximum number of compute racks available for this Network Fabric SKU. The value of max count racks is 4 for 4 rack SKU and 8 for 8 rack SKU. */ maxComputeRacks?: number; + /** Maximum number of servers available for this Network Fabric SKU. */ + maximumServerCount?: number; /** - * Minimum supported version. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minSupportedVer?: string; - /** - * Maximum supported version. + * List of supported Network Fabric SKU versions. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly maxSupportedVer?: string; + readonly supportedVersions?: string[]; /** - * The URI gives full details of sku. + * URL providing detailed configuration of the fabric SKU. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly detailsUri?: string; + readonly details?: string; /** - * Gets the provisioning state of the resource. + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; } -/** The NetworkToNetworkInterconnect resource definition. */ +/** The Network To Network Interconnect resource definition. */ export interface NetworkToNetworkInterconnect extends ProxyResource { /** Type of NNI used. Example: CE | NPB */ nniType?: NniType; - /** - * Gets the administrativeState of the resource. Example -Enabled/Disabled - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly administrativeState?: EnabledDisabledState; /** Configuration to use NNI for Infrastructure Management. Example: True/False. */ - isManagementType?: BooleanEnumProperty; - /** Based on this parameter the layer2/layer3 is made as mandatory. Example: True/False */ - useOptionB?: BooleanEnumProperty; - /** Common properties for Layer2Configuration. */ + isManagementType?: IsManagementType; + /** Based on this option layer3 parameters are mandatory. Example: True/False */ + useOptionB: BooleanEnumProperty; + /** Common properties for Layer2 Configuration. */ layer2Configuration?: Layer2Configuration; /** Common properties for Layer3Configuration. */ - layer3Configuration?: Layer3Configuration; + optionBLayer3Configuration?: NetworkToNetworkInterconnectPropertiesOptionBLayer3Configuration; + /** NPB Static Route Configuration properties. */ + npbStaticRouteConfiguration?: NpbStaticRouteConfiguration; + /** Import Route Policy configuration. */ + importRoutePolicy?: ImportRoutePolicyInformation; + /** Export Route Policy configuration. */ + exportRoutePolicy?: ExportRoutePolicyInformation; + /** Egress Acl. ARM resource ID of Access Control Lists. */ + egressAclId?: string; + /** Ingress Acl. ARM resource ID of Access Control Lists. */ + ingressAclId?: string; /** - * Gets the provisioning state of the resource. + * Configuration state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ProvisioningState; -} - -/** The NetworkRackSku resource definition. */ -export interface NetworkRackSku extends ProxyResource { - /** The role of the Network Rack: Aggregate or Compute. */ - roleName: NetworkRackRoleName; - /** Maximum number of servers available for this SKU. */ - maximumServerCount?: number; - /** Maximum number of storage devices available for this SKU. */ - maximumStorageCount?: number; - /** Maximum number of network uplinks available for this SKU. */ - maximumUplinks?: number; - /** List of network device properties / role for the Network Rack. */ - networkDevices?: NetworkDeviceRoleProperties[]; + readonly configurationState?: ConfigurationState; /** - * Gets the provisioning state of the resource. + * Provisioning state of the resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * Administrative state of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly administrativeState?: AdministrativeState; } -/** option A properties object */ -export interface ExternalNetworkPropertiesOptionAProperties - extends Layer3OptionAProperties {} +/** The Network To Network Interconnect resource patch definition. */ +export interface NetworkToNetworkInterconnectPatch extends ProxyResource { + /** Common properties for Layer2Configuration. */ + layer2Configuration?: Layer2Configuration; + /** Common properties for Layer3Configuration. */ + optionBLayer3Configuration?: OptionBLayer3Configuration; + /** NPB Static Route Configuration properties. */ + npbStaticRouteConfiguration?: NpbStaticRouteConfiguration; + /** Import Route Policy information. */ + importRoutePolicy?: ImportRoutePolicyInformation; + /** Export Route Policy information */ + exportRoutePolicy?: ExportRoutePolicyInformation; + /** Egress Acl. ARM resource ID of Access Control Lists. */ + egressAclId?: string; + /** Ingress Acl. ARM resource ID of Access Control Lists. */ + ingressAclId?: string; +} + +/** Common properties for Layer3Configuration. */ +export interface NetworkToNetworkInterconnectPropertiesOptionBLayer3Configuration + extends OptionBLayer3Configuration {} + +/** Defines headers for AccessControlLists_create operation. */ +export interface AccessControlListsCreateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for AccessControlLists_update operation. */ +export interface AccessControlListsUpdateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for AccessControlLists_delete operation. */ +export interface AccessControlListsDeleteHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for AccessControlLists_updateAdministrativeState operation. */ +export interface AccessControlListsUpdateAdministrativeStateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for AccessControlLists_resync operation. */ +export interface AccessControlListsResyncHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for AccessControlLists_validateConfiguration operation. */ +export interface AccessControlListsValidateConfigurationHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for InternetGateways_create operation. */ +export interface InternetGatewaysCreateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for InternetGateways_update operation. */ +export interface InternetGatewaysUpdateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for InternetGatewayRules_create operation. */ +export interface InternetGatewayRulesCreateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + azureAsyncOperation?: string; +} + +/** Defines headers for InternetGatewayRules_update operation. */ +export interface InternetGatewayRulesUpdateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for InternetGatewayRules_delete operation. */ +export interface InternetGatewayRulesDeleteHeaders { + /** Tracking URL for long running operation. */ + azureAsyncOperation?: string; +} /** Defines headers for IpCommunities_create operation. */ export interface IpCommunitiesCreateHeaders { @@ -2063,8 +3026,8 @@ export interface IpCommunitiesCreateHeaders { /** Defines headers for IpCommunities_update operation. */ export interface IpCommunitiesUpdateHeaders { - /** Tracking URL for long running operation. */ - azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for IpCommunities_delete operation. */ @@ -2081,8 +3044,8 @@ export interface IpExtendedCommunitiesCreateHeaders { /** Defines headers for IpExtendedCommunities_update operation. */ export interface IpExtendedCommunitiesUpdateHeaders { - /** Tracking URL for long running operation. */ - azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for IpExtendedCommunities_delete operation. */ @@ -2099,8 +3062,8 @@ export interface IpPrefixesCreateHeaders { /** Defines headers for IpPrefixes_update operation. */ export interface IpPrefixesUpdateHeaders { - /** Tracking URL for long running operation. */ - azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for IpPrefixes_delete operation. */ @@ -2111,38 +3074,32 @@ export interface IpPrefixesDeleteHeaders { /** Defines headers for L2IsolationDomains_update operation. */ export interface L2IsolationDomainsUpdateHeaders { - /** Tracking URL for long running operation. */ - azureAsyncOperation?: string; -} - -/** Defines headers for L2IsolationDomains_updateAdministrativeState operation. */ -export interface L2IsolationDomainsUpdateAdministrativeStateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for L2IsolationDomains_clearArpTable operation. */ -export interface L2IsolationDomainsClearArpTableHeaders { +/** Defines headers for L2IsolationDomains_updateAdministrativeState operation. */ +export interface L2IsolationDomainsUpdateAdministrativeStateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for L2IsolationDomains_clearNeighborTable operation. */ -export interface L2IsolationDomainsClearNeighborTableHeaders { +/** Defines headers for L2IsolationDomains_validateConfiguration operation. */ +export interface L2IsolationDomainsValidateConfigurationHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for L2IsolationDomains_getArpEntries operation. */ -export interface L2IsolationDomainsGetArpEntriesHeaders { +/** Defines headers for L2IsolationDomains_commitConfiguration operation. */ +export interface L2IsolationDomainsCommitConfigurationHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } /** Defines headers for L3IsolationDomains_update operation. */ export interface L3IsolationDomainsUpdateHeaders { - /** Tracking URL for long running operation. */ - azureAsyncOperation?: string; + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } /** Defines headers for L3IsolationDomains_updateAdministrativeState operation. */ @@ -2151,270 +3108,356 @@ export interface L3IsolationDomainsUpdateAdministrativeStateHeaders { location?: string; } -/** Defines headers for L3IsolationDomains_updateOptionBAdministrativeState operation. */ -export interface L3IsolationDomainsUpdateOptionBAdministrativeStateHeaders { +/** Defines headers for L3IsolationDomains_validateConfiguration operation. */ +export interface L3IsolationDomainsValidateConfigurationHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for L3IsolationDomains_commitConfiguration operation. */ +export interface L3IsolationDomainsCommitConfigurationHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for InternalNetworks_update operation. */ +export interface InternalNetworksUpdateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for InternalNetworks_updateAdministrativeState operation. */ +export interface InternalNetworksUpdateAdministrativeStateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for InternalNetworks_updateBgpAdministrativeState operation. */ +export interface InternalNetworksUpdateBgpAdministrativeStateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for InternalNetworks_updateStaticRouteBfdAdministrativeState operation. */ +export interface InternalNetworksUpdateStaticRouteBfdAdministrativeStateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for ExternalNetworks_update operation. */ +export interface ExternalNetworksUpdateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for ExternalNetworks_updateAdministrativeState operation. */ +export interface ExternalNetworksUpdateAdministrativeStateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for ExternalNetworks_updateStaticRouteBfdAdministrativeState operation. */ +export interface ExternalNetworksUpdateStaticRouteBfdAdministrativeStateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for NeighborGroups_update operation. */ +export interface NeighborGroupsUpdateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for NetworkDevices_update operation. */ +export interface NetworkDevicesUpdateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for NetworkDevices_reboot operation. */ +export interface NetworkDevicesRebootHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; +} + +/** Defines headers for NetworkDevices_refreshConfiguration operation. */ +export interface NetworkDevicesRefreshConfigurationHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for L3IsolationDomains_clearArpTable operation. */ -export interface L3IsolationDomainsClearArpTableHeaders { +/** Defines headers for NetworkDevices_updateAdministrativeState operation. */ +export interface NetworkDevicesUpdateAdministrativeStateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for L3IsolationDomains_clearNeighborTable operation. */ -export interface L3IsolationDomainsClearNeighborTableHeaders { +/** Defines headers for NetworkDevices_upgrade operation. */ +export interface NetworkDevicesUpgradeHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for InternalNetworks_updateAdministrativeState operation. */ -export interface InternalNetworksUpdateAdministrativeStateHeaders { +/** Defines headers for NetworkInterfaces_update operation. */ +export interface NetworkInterfacesUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for InternalNetworks_updateBgpAdministrativeState operation. */ -export interface InternalNetworksUpdateBgpAdministrativeStateHeaders { +/** Defines headers for NetworkInterfaces_updateAdministrativeState operation. */ +export interface NetworkInterfacesUpdateAdministrativeStateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for InternalNetworks_updateBfdForBgpAdministrativeState operation. */ -export interface InternalNetworksUpdateBfdForBgpAdministrativeStateHeaders { - /** The URL to retrieve the status of the asynchronous operation. */ +/** Defines headers for NetworkFabricControllers_update operation. */ +export interface NetworkFabricControllersUpdateHeaders { + /** Tracking URL for long running operation. */ location?: string; } -/** Defines headers for InternalNetworks_clearIpv6Neighbors operation. */ -export interface InternalNetworksClearIpv6NeighborsHeaders { - /** The URL to retrieve the status of the asynchronous operation. */ +/** Defines headers for NetworkFabricControllers_delete operation. */ +export interface NetworkFabricControllersDeleteHeaders { + /** Tracking URL for long running operation. */ location?: string; } -/** Defines headers for InternalNetworks_clearArpEntries operation. */ -export interface InternalNetworksClearArpEntriesHeaders { +/** Defines headers for NetworkFabrics_create operation. */ +export interface NetworkFabricsCreateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ - location?: string; + azureAsyncOperation?: string; } -/** Defines headers for InternalNetworks_updateBfdForStaticRouteAdministrativeState operation. */ -export interface InternalNetworksUpdateBfdForStaticRouteAdministrativeStateHeaders { +/** Defines headers for NetworkFabrics_update operation. */ +export interface NetworkFabricsUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for ExternalNetworks_updateAdministrativeState operation. */ -export interface ExternalNetworksUpdateAdministrativeStateHeaders { +/** Defines headers for NetworkFabrics_delete operation. */ +export interface NetworkFabricsDeleteHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for ExternalNetworks_updateBgpAdministrativeState operation. */ -export interface ExternalNetworksUpdateBgpAdministrativeStateHeaders { +/** Defines headers for NetworkFabrics_provision operation. */ +export interface NetworkFabricsProvisionHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for ExternalNetworks_updateBfdForBgpAdministrativeState operation. */ -export interface ExternalNetworksUpdateBfdForBgpAdministrativeStateHeaders { +/** Defines headers for NetworkFabrics_deprovision operation. */ +export interface NetworkFabricsDeprovisionHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for ExternalNetworks_clearIpv6Neighbors operation. */ -export interface ExternalNetworksClearIpv6NeighborsHeaders { +/** Defines headers for NetworkFabrics_upgrade operation. */ +export interface NetworkFabricsUpgradeHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for ExternalNetworks_clearArpEntries operation. */ -export interface ExternalNetworksClearArpEntriesHeaders { +/** Defines headers for NetworkFabrics_refreshConfiguration operation. */ +export interface NetworkFabricsRefreshConfigurationHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkDevices_update operation. */ -export interface NetworkDevicesUpdateHeaders { - /** Tracking URL for long running operation. */ - azureAsyncOperation?: string; +/** Defines headers for NetworkFabrics_updateWorkloadManagementBfdConfiguration operation. */ +export interface NetworkFabricsUpdateWorkloadManagementBfdConfigurationHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } -/** Defines headers for NetworkDevices_reboot operation. */ -export interface NetworkDevicesRebootHeaders { +/** Defines headers for NetworkFabrics_updateInfraManagementBfdConfiguration operation. */ +export interface NetworkFabricsUpdateInfraManagementBfdConfigurationHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkDevices_restoreConfig operation. */ -export interface NetworkDevicesRestoreConfigHeaders { +/** Defines headers for NetworkFabrics_validateConfiguration operation. */ +export interface NetworkFabricsValidateConfigurationHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkDevices_updateVersion operation. */ -export interface NetworkDevicesUpdateVersionHeaders { +/** Defines headers for NetworkFabrics_getTopology operation. */ +export interface NetworkFabricsGetTopologyHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkDevices_generateSupportPackage operation. */ -export interface NetworkDevicesGenerateSupportPackageHeaders { +/** Defines headers for NetworkFabrics_commitConfiguration operation. */ +export interface NetworkFabricsCommitConfigurationHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkDevices_updatePowerCycle operation. */ -export interface NetworkDevicesUpdatePowerCycleHeaders { +/** Defines headers for NetworkToNetworkInterconnects_update operation. */ +export interface NetworkToNetworkInterconnectsUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkDevices_getStatus operation. */ -export interface NetworkDevicesGetStatusHeaders { +/** Defines headers for NetworkToNetworkInterconnects_updateNpbStaticRouteBfdAdministrativeState operation. */ +export interface NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkDevices_getStaticInterfaceMaps operation. */ -export interface NetworkDevicesGetStaticInterfaceMapsHeaders { +/** Defines headers for NetworkToNetworkInterconnects_updateAdministrativeState operation. */ +export interface NetworkToNetworkInterconnectsUpdateAdministrativeStateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkDevices_getDynamicInterfaceMaps operation. */ -export interface NetworkDevicesGetDynamicInterfaceMapsHeaders { +/** Defines headers for NetworkPacketBrokers_update operation. */ +export interface NetworkPacketBrokersUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkInterfaces_getStatus operation. */ -export interface NetworkInterfacesGetStatusHeaders { +/** Defines headers for NetworkRacks_update operation. */ +export interface NetworkRacksUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkInterfaces_updateAdministrativeState operation. */ -export interface NetworkInterfacesUpdateAdministrativeStateHeaders { +/** Defines headers for NetworkTapRules_create operation. */ +export interface NetworkTapRulesCreateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ - location?: string; + azureAsyncOperation?: string; } -/** Defines headers for NetworkFabricControllers_update operation. */ -export interface NetworkFabricControllersUpdateHeaders { - /** Tracking URL for long running operation. */ +/** Defines headers for NetworkTapRules_update operation. */ +export interface NetworkTapRulesUpdateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkFabricControllers_delete operation. */ -export interface NetworkFabricControllersDeleteHeaders { - /** Tracking URL for long running operation. */ +/** Defines headers for NetworkTapRules_delete operation. */ +export interface NetworkTapRulesDeleteHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkFabricControllers_enableWorkloadManagementNetwork operation. */ -export interface NetworkFabricControllersEnableWorkloadManagementNetworkHeaders { +/** Defines headers for NetworkTapRules_updateAdministrativeState operation. */ +export interface NetworkTapRulesUpdateAdministrativeStateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkFabricControllers_disableWorkloadManagementNetwork operation. */ -export interface NetworkFabricControllersDisableWorkloadManagementNetworkHeaders { +/** Defines headers for NetworkTapRules_resync operation. */ +export interface NetworkTapRulesResyncHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkFabrics_create operation. */ -export interface NetworkFabricsCreateHeaders { +/** Defines headers for NetworkTapRules_validateConfiguration operation. */ +export interface NetworkTapRulesValidateConfigurationHeaders { /** The URL to retrieve the status of the asynchronous operation. */ - azureAsyncOperation?: string; + location?: string; } -/** Defines headers for NetworkFabrics_update operation. */ -export interface NetworkFabricsUpdateHeaders { +/** Defines headers for NetworkTaps_update operation. */ +export interface NetworkTapsUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkFabrics_delete operation. */ -export interface NetworkFabricsDeleteHeaders { +/** Defines headers for NetworkTaps_updateAdministrativeState operation. */ +export interface NetworkTapsUpdateAdministrativeStateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkFabrics_provision operation. */ -export interface NetworkFabricsProvisionHeaders { +/** Defines headers for NetworkTaps_resync operation. */ +export interface NetworkTapsResyncHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkFabrics_deprovision operation. */ -export interface NetworkFabricsDeprovisionHeaders { +/** Defines headers for RoutePolicies_update operation. */ +export interface RoutePoliciesUpdateHeaders { /** The URL to retrieve the status of the asynchronous operation. */ location?: string; } -/** Defines headers for NetworkRacks_update operation. */ -export interface NetworkRacksUpdateHeaders { - /** Tracking URL for long running operation. */ - azureAsyncOperation?: string; +/** Defines headers for RoutePolicies_updateAdministrativeState operation. */ +export interface RoutePoliciesUpdateAdministrativeStateHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } -/** Defines headers for RoutePolicies_update operation. */ -export interface RoutePoliciesUpdateHeaders { - /** Tracking URL for long running operation. */ - azureAsyncOperation?: string; +/** Defines headers for RoutePolicies_validateConfiguration operation. */ +export interface RoutePoliciesValidateConfigurationHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } -/** Known values of {@link AddressFamily} that the service accepts. */ -export enum KnownAddressFamily { - /** Ipv4 */ - Ipv4 = "ipv4", - /** Ipv6 */ - Ipv6 = "ipv6" +/** Defines headers for RoutePolicies_commitConfiguration operation. */ +export interface RoutePoliciesCommitConfigurationHeaders { + /** The URL to retrieve the status of the asynchronous operation. */ + location?: string; } -/** - * Defines values for AddressFamily. \ - * {@link KnownAddressFamily} can be used interchangeably with AddressFamily, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ipv4** \ - * **ipv6** - */ -export type AddressFamily = string; - -/** Known values of {@link ConditionActionType} that the service accepts. */ -export enum KnownConditionActionType { - /** Allow */ - Allow = "allow", - /** Deny */ - Deny = "deny" +/** Known values of {@link ConfigurationState} that the service accepts. */ +export enum KnownConfigurationState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Rejected */ + Rejected = "Rejected", + /** Accepted */ + Accepted = "Accepted", + /** Provisioned */ + Provisioned = "Provisioned", + /** ErrorProvisioning */ + ErrorProvisioning = "ErrorProvisioning", + /** Deprovisioning */ + Deprovisioning = "Deprovisioning", + /** Deprovisioned */ + Deprovisioned = "Deprovisioned", + /** ErrorDeprovisioning */ + ErrorDeprovisioning = "ErrorDeprovisioning", + /** DeferredControl */ + DeferredControl = "DeferredControl" } /** - * Defines values for ConditionActionType. \ - * {@link KnownConditionActionType} can be used interchangeably with ConditionActionType, + * Defines values for ConfigurationState. \ + * {@link KnownConfigurationState} can be used interchangeably with ConfigurationState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **allow** \ - * **deny** + * **Succeeded** \ + * **Failed** \ + * **Rejected** \ + * **Accepted** \ + * **Provisioned** \ + * **ErrorProvisioning** \ + * **Deprovisioning** \ + * **Deprovisioned** \ + * **ErrorDeprovisioning** \ + * **DeferredControl** */ -export type ConditionActionType = string; +export type ConfigurationState = string; /** Known values of {@link ProvisioningState} that the service accepts. */ export enum KnownProvisioningState { + /** Accepted */ + Accepted = "Accepted", /** Succeeded */ Succeeded = "Succeeded", /** Updating */ Updating = "Updating", - /** Canceled */ - Canceled = "Canceled", /** Deleting */ Deleting = "Deleting", /** Failed */ - Failed = "Failed" + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled" } /** @@ -2422,14 +3465,168 @@ export enum KnownProvisioningState { * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service + * **Accepted** \ * **Succeeded** \ * **Updating** \ - * **Canceled** \ * **Deleting** \ - * **Failed** + * **Failed** \ + * **Canceled** */ export type ProvisioningState = string; +/** Known values of {@link AdministrativeState} that the service accepts. */ +export enum KnownAdministrativeState { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", + /** MAT */ + MAT = "MAT", + /** RMA */ + RMA = "RMA" +} + +/** + * Defines values for AdministrativeState. \ + * {@link KnownAdministrativeState} can be used interchangeably with AdministrativeState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** \ + * **MAT** \ + * **RMA** + */ +export type AdministrativeState = string; + +/** Known values of {@link ConfigurationType} that the service accepts. */ +export enum KnownConfigurationType { + /** File */ + File = "File", + /** Inline */ + Inline = "Inline" +} + +/** + * Defines values for ConfigurationType. \ + * {@link KnownConfigurationType} can be used interchangeably with ConfigurationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **File** \ + * **Inline** + */ +export type ConfigurationType = string; + +/** Known values of {@link IPAddressType} that the service accepts. */ +export enum KnownIPAddressType { + /** IPv4 */ + IPv4 = "IPv4", + /** IPv6 */ + IPv6 = "IPv6" +} + +/** + * Defines values for IPAddressType. \ + * {@link KnownIPAddressType} can be used interchangeably with IPAddressType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **IPv4** \ + * **IPv6** + */ +export type IPAddressType = string; + +/** Known values of {@link PortType} that the service accepts. */ +export enum KnownPortType { + /** SourcePort */ + SourcePort = "SourcePort", + /** DestinationPort */ + DestinationPort = "DestinationPort" +} + +/** + * Defines values for PortType. \ + * {@link KnownPortType} can be used interchangeably with PortType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SourcePort** \ + * **DestinationPort** + */ +export type PortType = string; + +/** Known values of {@link Layer4Protocol} that the service accepts. */ +export enum KnownLayer4Protocol { + /** TCP */ + TCP = "TCP", + /** UDP */ + UDP = "UDP" +} + +/** + * Defines values for Layer4Protocol. \ + * {@link KnownLayer4Protocol} can be used interchangeably with Layer4Protocol, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TCP** \ + * **UDP** + */ +export type Layer4Protocol = string; + +/** Known values of {@link SourceDestinationType} that the service accepts. */ +export enum KnownSourceDestinationType { + /** SourceIP */ + SourceIP = "SourceIP", + /** DestinationIP */ + DestinationIP = "DestinationIP" +} + +/** + * Defines values for SourceDestinationType. \ + * {@link KnownSourceDestinationType} can be used interchangeably with SourceDestinationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SourceIP** \ + * **DestinationIP** + */ +export type SourceDestinationType = string; + +/** Known values of {@link PrefixType} that the service accepts. */ +export enum KnownPrefixType { + /** Prefix */ + Prefix = "Prefix", + /** LongestPrefix */ + LongestPrefix = "LongestPrefix" +} + +/** + * Defines values for PrefixType. \ + * {@link KnownPrefixType} can be used interchangeably with PrefixType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Prefix** \ + * **LongestPrefix** + */ +export type PrefixType = string; + +/** Known values of {@link AclActionType} that the service accepts. */ +export enum KnownAclActionType { + /** Drop */ + Drop = "Drop", + /** Count */ + Count = "Count", + /** Log */ + Log = "Log" +} + +/** + * Defines values for AclActionType. \ + * {@link KnownAclActionType} can be used interchangeably with AclActionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Drop** \ + * **Count** \ + * **Log** + */ +export type AclActionType = string; + /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { /** User */ @@ -2454,6 +3651,60 @@ export enum KnownCreatedByType { */ export type CreatedByType = string; +/** Known values of {@link EnableDisableState} that the service accepts. */ +export enum KnownEnableDisableState { + /** Enable */ + Enable = "Enable", + /** Disable */ + Disable = "Disable" +} + +/** + * Defines values for EnableDisableState. \ + * {@link KnownEnableDisableState} can be used interchangeably with EnableDisableState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enable** \ + * **Disable** + */ +export type EnableDisableState = string; + +/** Known values of {@link GatewayType} that the service accepts. */ +export enum KnownGatewayType { + /** Infrastructure */ + Infrastructure = "Infrastructure", + /** Workload */ + Workload = "Workload" +} + +/** + * Defines values for GatewayType. \ + * {@link KnownGatewayType} can be used interchangeably with GatewayType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Infrastructure** \ + * **Workload** + */ +export type GatewayType = string; + +/** Known values of {@link Action} that the service accepts. */ +export enum KnownAction { + /** Allow */ + Allow = "Allow", + /** Deny */ + Deny = "Deny" +} + +/** + * Defines values for Action. \ + * {@link KnownAction} can be used interchangeably with Action, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Allow** \ + * **Deny** + */ +export type Action = string; + /** Known values of {@link CommunityActionTypes} that the service accepts. */ export enum KnownCommunityActionTypes { /** Permit */ @@ -2506,7 +3757,9 @@ export enum KnownCondition { /** GreaterThanOrEqualTo */ GreaterThanOrEqualTo = "GreaterThanOrEqualTo", /** LesserThanOrEqualTo */ - LesserThanOrEqualTo = "LesserThanOrEqualTo" + LesserThanOrEqualTo = "LesserThanOrEqualTo", + /** Range */ + Range = "Range" } /** @@ -2516,46 +3769,11 @@ export enum KnownCondition { * ### Known values supported by the service * **EqualTo** \ * **GreaterThanOrEqualTo** \ - * **LesserThanOrEqualTo** + * **LesserThanOrEqualTo** \ + * **Range** */ export type Condition = string; -/** Known values of {@link EnabledDisabledState} that the service accepts. */ -export enum KnownEnabledDisabledState { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" -} - -/** - * Defines values for EnabledDisabledState. \ - * {@link KnownEnabledDisabledState} can be used interchangeably with EnabledDisabledState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type EnabledDisabledState = string; - -/** Known values of {@link AdministrativeState} that the service accepts. */ -export enum KnownAdministrativeState { - /** Enable */ - Enable = "Enable", - /** Disable */ - Disable = "Disable" -} - -/** - * Defines values for AdministrativeState. \ - * {@link KnownAdministrativeState} can be used interchangeably with AdministrativeState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enable** \ - * **Disable** - */ -export type AdministrativeState = string; - /** Known values of {@link RedistributeConnectedSubnets} that the service accepts. */ export enum KnownRedistributeConnectedSubnets { /** True */ @@ -2592,6 +3810,30 @@ export enum KnownRedistributeStaticRoutes { */ export type RedistributeStaticRoutes = string; +/** Known values of {@link BfdAdministrativeState} that the service accepts. */ +export enum KnownBfdAdministrativeState { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", + /** MAT */ + MAT = "MAT", + /** RMA */ + RMA = "RMA" +} + +/** + * Defines values for BfdAdministrativeState. \ + * {@link KnownBfdAdministrativeState} can be used interchangeably with BfdAdministrativeState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** \ + * **MAT** \ + * **RMA** + */ +export type BfdAdministrativeState = string; + /** Known values of {@link BooleanEnumProperty} that the service accepts. */ export enum KnownBooleanEnumProperty { /** True */ @@ -2628,59 +3870,59 @@ export enum KnownAllowASOverride { */ export type AllowASOverride = string; -/** Known values of {@link PeeringOption} that the service accepts. */ -export enum KnownPeeringOption { - /** OptionA */ - OptionA = "OptionA", - /** OptionB */ - OptionB = "OptionB" +/** Known values of {@link Extension} that the service accepts. */ +export enum KnownExtension { + /** NoExtension */ + NoExtension = "NoExtension", + /** NPB */ + NPB = "NPB" } -/** - * Defines values for PeeringOption. \ - * {@link KnownPeeringOption} can be used interchangeably with PeeringOption, +/** + * Defines values for Extension. \ + * {@link KnownExtension} can be used interchangeably with Extension, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **OptionA** \ - * **OptionB** + * **NoExtension** \ + * **NPB** */ -export type PeeringOption = string; +export type Extension = string; -/** Known values of {@link IsCurrentVersion} that the service accepts. */ -export enum KnownIsCurrentVersion { +/** Known values of {@link IsMonitoringEnabled} that the service accepts. */ +export enum KnownIsMonitoringEnabled { /** True */ - True = "true", + True = "True", /** False */ - False = "false" + False = "False" } /** - * Defines values for IsCurrentVersion. \ - * {@link KnownIsCurrentVersion} can be used interchangeably with IsCurrentVersion, + * Defines values for IsMonitoringEnabled. \ + * {@link KnownIsMonitoringEnabled} can be used interchangeably with IsMonitoringEnabled, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **true** \ - * **false** + * **True** \ + * **False** */ -export type IsCurrentVersion = string; +export type IsMonitoringEnabled = string; -/** Known values of {@link IsTestVersion} that the service accepts. */ -export enum KnownIsTestVersion { - /** True */ - True = "true", - /** False */ - False = "false" +/** Known values of {@link PeeringOption} that the service accepts. */ +export enum KnownPeeringOption { + /** OptionA */ + OptionA = "OptionA", + /** OptionB */ + OptionB = "OptionB" } /** - * Defines values for IsTestVersion. \ - * {@link KnownIsTestVersion} can be used interchangeably with IsTestVersion, + * Defines values for PeeringOption. \ + * {@link KnownPeeringOption} can be used interchangeably with PeeringOption, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **true** \ - * **false** + * **OptionA** \ + * **OptionB** */ -export type IsTestVersion = string; +export type PeeringOption = string; /** Known values of {@link NetworkDeviceRoleName} that the service accepts. */ export enum KnownNetworkDeviceRoleName { @@ -2709,8 +3951,8 @@ export enum KnownNetworkDeviceRoleName { */ export type NetworkDeviceRoleName = string; -/** Known values of {@link NetworkDeviceRoleTypes} that the service accepts. */ -export enum KnownNetworkDeviceRoleTypes { +/** Known values of {@link NetworkDeviceRole} that the service accepts. */ +export enum KnownNetworkDeviceRole { /** CE */ CE = "CE", /** ToR */ @@ -2724,8 +3966,8 @@ export enum KnownNetworkDeviceRoleTypes { } /** - * Defines values for NetworkDeviceRoleTypes. \ - * {@link KnownNetworkDeviceRoleTypes} can be used interchangeably with NetworkDeviceRoleTypes, + * Defines values for NetworkDeviceRole. \ + * {@link KnownNetworkDeviceRole} can be used interchangeably with NetworkDeviceRole, * this enum contains the known values that the service supports. * ### Known values supported by the service * **CE** \ @@ -2734,7 +3976,7 @@ export enum KnownNetworkDeviceRoleTypes { * **TS** \ * **Management** */ -export type NetworkDeviceRoleTypes = string; +export type NetworkDeviceRole = string; /** Known values of {@link InterfaceType} that the service accepts. */ export enum KnownInterfaceType { @@ -2754,134 +3996,131 @@ export enum KnownInterfaceType { */ export type InterfaceType = string; -/** Known values of {@link PowerEnd} that the service accepts. */ -export enum KnownPowerEnd { - /** Primary */ - Primary = "Primary", - /** Secondary */ - Secondary = "Secondary" +/** Known values of {@link RebootType} that the service accepts. */ +export enum KnownRebootType { + /** GracefulRebootWithZTP */ + GracefulRebootWithZTP = "GracefulRebootWithZTP", + /** GracefulRebootWithoutZTP */ + GracefulRebootWithoutZTP = "GracefulRebootWithoutZTP", + /** UngracefulRebootWithZTP */ + UngracefulRebootWithZTP = "UngracefulRebootWithZTP", + /** UngracefulRebootWithoutZTP */ + UngracefulRebootWithoutZTP = "UngracefulRebootWithoutZTP" } /** - * Defines values for PowerEnd. \ - * {@link KnownPowerEnd} can be used interchangeably with PowerEnd, + * Defines values for RebootType. \ + * {@link KnownRebootType} can be used interchangeably with RebootType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Primary** \ - * **Secondary** + * **GracefulRebootWithZTP** \ + * **GracefulRebootWithoutZTP** \ + * **UngracefulRebootWithZTP** \ + * **UngracefulRebootWithoutZTP** */ -export type PowerEnd = string; +export type RebootType = string; -/** Known values of {@link State} that the service accepts. */ -export enum KnownState { - /** On */ - On = "On", - /** Off */ - Off = "Off" +/** Known values of {@link DeviceAdministrativeState} that the service accepts. */ +export enum KnownDeviceAdministrativeState { + /** RMA */ + RMA = "RMA", + /** Resync */ + Resync = "Resync", + /** GracefulQuarantine */ + GracefulQuarantine = "GracefulQuarantine", + /** Quarantine */ + Quarantine = "Quarantine" } /** - * Defines values for State. \ - * {@link KnownState} can be used interchangeably with State, + * Defines values for DeviceAdministrativeState. \ + * {@link KnownDeviceAdministrativeState} can be used interchangeably with DeviceAdministrativeState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **On** \ - * **Off** + * **RMA** \ + * **Resync** \ + * **GracefulQuarantine** \ + * **Quarantine** */ -export type State = string; +export type DeviceAdministrativeState = string; -/** Known values of {@link OperationalStatus} that the service accepts. */ -export enum KnownOperationalStatus { - /** Booted */ - Booted = "Booted", - /** BootPrompt */ - BootPrompt = "BootPrompt", - /** Ztp */ - Ztp = "Ztp" +/** Known values of {@link IsWorkloadManagementNetworkEnabled} that the service accepts. */ +export enum KnownIsWorkloadManagementNetworkEnabled { + /** True */ + True = "True", + /** False */ + False = "False" } /** - * Defines values for OperationalStatus. \ - * {@link KnownOperationalStatus} can be used interchangeably with OperationalStatus, + * Defines values for IsWorkloadManagementNetworkEnabled. \ + * {@link KnownIsWorkloadManagementNetworkEnabled} can be used interchangeably with IsWorkloadManagementNetworkEnabled, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Booted** \ - * **BootPrompt** \ - * **Ztp** + * **True** \ + * **False** */ -export type OperationalStatus = string; +export type IsWorkloadManagementNetworkEnabled = string; -/** Known values of {@link PowerCycleState} that the service accepts. */ -export enum KnownPowerCycleState { - /** On */ - On = "On", - /** Off */ - Off = "Off" +/** Known values of {@link NfcSku} that the service accepts. */ +export enum KnownNfcSku { + /** Basic */ + Basic = "Basic", + /** Standard */ + Standard = "Standard", + /** HighPerformance */ + HighPerformance = "HighPerformance" } /** - * Defines values for PowerCycleState. \ - * {@link KnownPowerCycleState} can be used interchangeably with PowerCycleState, + * Defines values for NfcSku. \ + * {@link KnownNfcSku} can be used interchangeably with NfcSku, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **On** \ - * **Off** + * **Basic** \ + * **Standard** \ + * **HighPerformance** */ -export type PowerCycleState = string; +export type NfcSku = string; -/** Known values of {@link NetworkFabricControllerOperationalState} that the service accepts. */ -export enum KnownNetworkFabricControllerOperationalState { - /** Configuring */ - Configuring = "Configuring", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed" +/** Known values of {@link FabricSkuType} that the service accepts. */ +export enum KnownFabricSkuType { + /** SingleRack */ + SingleRack = "SingleRack", + /** MultiRack */ + MultiRack = "MultiRack" } /** - * Defines values for NetworkFabricControllerOperationalState. \ - * {@link KnownNetworkFabricControllerOperationalState} can be used interchangeably with NetworkFabricControllerOperationalState, + * Defines values for FabricSkuType. \ + * {@link KnownFabricSkuType} can be used interchangeably with FabricSkuType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Configuring** \ - * **Succeeded** \ - * **Failed** + * **SingleRack** \ + * **MultiRack** */ -export type NetworkFabricControllerOperationalState = string; +export type FabricSkuType = string; -/** Known values of {@link NetworkFabricOperationalState} that the service accepts. */ -export enum KnownNetworkFabricOperationalState { - /** Provisioning */ - Provisioning = "Provisioning", - /** Provisioned */ - Provisioned = "Provisioned", - /** ErrorProvisioning */ - ErrorProvisioning = "ErrorProvisioning", - /** Deprovisioning */ - Deprovisioning = "Deprovisioning", - /** Deprovisioned */ - Deprovisioned = "Deprovisioned", - /** ErrorDeprovisioning */ - ErrorDeprovisioning = "ErrorDeprovisioning", - /** DeferredControl */ - DeferredControl = "DeferredControl" +/** Known values of {@link ValidateAction} that the service accepts. */ +export enum KnownValidateAction { + /** Cabling */ + Cabling = "Cabling", + /** Configuration */ + Configuration = "Configuration", + /** Connectivity */ + Connectivity = "Connectivity" } /** - * Defines values for NetworkFabricOperationalState. \ - * {@link KnownNetworkFabricOperationalState} can be used interchangeably with NetworkFabricOperationalState, + * Defines values for ValidateAction. \ + * {@link KnownValidateAction} can be used interchangeably with ValidateAction, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Provisioning** \ - * **Provisioned** \ - * **ErrorProvisioning** \ - * **Deprovisioning** \ - * **Deprovisioned** \ - * **ErrorDeprovisioning** \ - * **DeferredControl** + * **Cabling** \ + * **Configuration** \ + * **Connectivity** */ -export type NetworkFabricOperationalState = string; +export type ValidateAction = string; /** Known values of {@link NniType} that the service accepts. */ export enum KnownNniType { @@ -2901,50 +4140,173 @@ export enum KnownNniType { */ export type NniType = string; -/** Known values of {@link NetworkRackRoleName} that the service accepts. */ -export enum KnownNetworkRackRoleName { - /** ComputeRack */ - ComputeRack = "ComputeRack", - /** AggregateRack */ - AggregateRack = "AggregateRack" +/** Known values of {@link IsManagementType} that the service accepts. */ +export enum KnownIsManagementType { + /** True */ + True = "True", + /** False */ + False = "False" } /** - * Defines values for NetworkRackRoleName. \ - * {@link KnownNetworkRackRoleName} can be used interchangeably with NetworkRackRoleName, + * Defines values for IsManagementType. \ + * {@link KnownIsManagementType} can be used interchangeably with IsManagementType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ComputeRack** \ - * **AggregateRack** + * **True** \ + * **False** */ -export type NetworkRackRoleName = string; +export type IsManagementType = string; -/** Known values of {@link NetworkDeviceRackRoleType} that the service accepts. */ -export enum KnownNetworkDeviceRackRoleType { - /** CE */ - CE = "CE", - /** ToR */ - ToR = "ToR", - /** NPB */ - NPB = "NPB", - /** TS */ - TS = "TS", - /** Management */ - Management = "Management" +/** Known values of {@link NetworkRackType} that the service accepts. */ +export enum KnownNetworkRackType { + /** Aggregate */ + Aggregate = "Aggregate", + /** Compute */ + Compute = "Compute", + /** Combined */ + Combined = "Combined" } /** - * Defines values for NetworkDeviceRackRoleType. \ - * {@link KnownNetworkDeviceRackRoleType} can be used interchangeably with NetworkDeviceRackRoleType, + * Defines values for NetworkRackType. \ + * {@link KnownNetworkRackType} can be used interchangeably with NetworkRackType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **CE** \ - * **ToR** \ - * **NPB** \ - * **TS** \ - * **Management** + * **Aggregate** \ + * **Compute** \ + * **Combined** + */ +export type NetworkRackType = string; + +/** Known values of {@link PollingIntervalInSeconds} that the service accepts. */ +export enum KnownPollingIntervalInSeconds { + /** Thirty */ + Thirty = 30, + /** Sixty */ + Sixty = 60, + /** Ninety */ + Ninety = 90, + /** OneHundredTwenty */ + OneHundredTwenty = 120 +} + +/** + * Defines values for PollingIntervalInSeconds. \ + * {@link KnownPollingIntervalInSeconds} can be used interchangeably with PollingIntervalInSeconds, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **30** \ + * **60** \ + * **90** \ + * **120** + */ +export type PollingIntervalInSeconds = number; + +/** Known values of {@link EncapsulationType} that the service accepts. */ +export enum KnownEncapsulationType { + /** None */ + None = "None", + /** GTPv1 */ + GTPv1 = "GTPv1" +} + +/** + * Defines values for EncapsulationType. \ + * {@link KnownEncapsulationType} can be used interchangeably with EncapsulationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **GTPv1** + */ +export type EncapsulationType = string; + +/** Known values of {@link TapRuleActionType} that the service accepts. */ +export enum KnownTapRuleActionType { + /** Drop */ + Drop = "Drop", + /** Count */ + Count = "Count", + /** Log */ + Log = "Log", + /** Replicate */ + Replicate = "Replicate", + /** Goto */ + Goto = "Goto", + /** Redirect */ + Redirect = "Redirect", + /** Mirror */ + Mirror = "Mirror" +} + +/** + * Defines values for TapRuleActionType. \ + * {@link KnownTapRuleActionType} can be used interchangeably with TapRuleActionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Drop** \ + * **Count** \ + * **Log** \ + * **Replicate** \ + * **Goto** \ + * **Redirect** \ + * **Mirror** + */ +export type TapRuleActionType = string; + +/** Known values of {@link DestinationType} that the service accepts. */ +export enum KnownDestinationType { + /** IsolationDomain */ + IsolationDomain = "IsolationDomain", + /** Direct */ + Direct = "Direct" +} + +/** + * Defines values for DestinationType. \ + * {@link KnownDestinationType} can be used interchangeably with DestinationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **IsolationDomain** \ + * **Direct** + */ +export type DestinationType = string; + +/** Known values of {@link Encapsulation} that the service accepts. */ +export enum KnownEncapsulation { + /** None */ + None = "None", + /** GRE */ + GRE = "GRE" +} + +/** + * Defines values for Encapsulation. \ + * {@link KnownEncapsulation} can be used interchangeably with Encapsulation, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **None** \ + * **GRE** + */ +export type Encapsulation = string; + +/** Known values of {@link PollingType} that the service accepts. */ +export enum KnownPollingType { + /** Pull */ + Pull = "Pull", + /** Push */ + Push = "Push" +} + +/** + * Defines values for PollingType. \ + * {@link KnownPollingType} can be used interchangeably with PollingType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Pull** \ + * **Push** */ -export type NetworkDeviceRackRoleType = string; +export type PollingType = string; /** Known values of {@link Origin} that the service accepts. */ export enum KnownOrigin { @@ -2982,154 +4344,308 @@ export enum KnownActionType { */ export type ActionType = string; -/** Known values of {@link ExpressRouteConnectionState} that the service accepts. */ -export enum KnownExpressRouteConnectionState { - /** Connecting */ - Connecting = "Connecting", - /** Connected */ - Connected = "Connected", - /** Disconnected */ - Disconnected = "Disconnected" +/** Known values of {@link AddressFamilyType} that the service accepts. */ +export enum KnownAddressFamilyType { + /** IPv4 */ + IPv4 = "IPv4", + /** IPv6 */ + IPv6 = "IPv6" } /** - * Defines values for ExpressRouteConnectionState. \ - * {@link KnownExpressRouteConnectionState} can be used interchangeably with ExpressRouteConnectionState, + * Defines values for AddressFamilyType. \ + * {@link KnownAddressFamilyType} can be used interchangeably with AddressFamilyType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Connecting** \ - * **Connected** \ - * **Disconnected** + * **IPv4** \ + * **IPv6** */ -export type ExpressRouteConnectionState = string; +export type AddressFamilyType = string; -/** Known values of {@link TerminalServerConnectivityState} that the service accepts. */ -export enum KnownTerminalServerConnectivityState { - /** Ipv4Reachable */ - Ipv4Reachable = "Ipv4Reachable", - /** Ipv4Unreachable */ - Ipv4Unreachable = "Ipv4Unreachable" +/** Known values of {@link RoutePolicyConditionType} that the service accepts. */ +export enum KnownRoutePolicyConditionType { + /** Or */ + Or = "Or", + /** And */ + And = "And" } /** - * Defines values for TerminalServerConnectivityState. \ - * {@link KnownTerminalServerConnectivityState} can be used interchangeably with TerminalServerConnectivityState, + * Defines values for RoutePolicyConditionType. \ + * {@link KnownRoutePolicyConditionType} can be used interchangeably with RoutePolicyConditionType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Ipv4Reachable** \ - * **Ipv4Unreachable** + * **Or** \ + * **And** */ -export type TerminalServerConnectivityState = string; +export type RoutePolicyConditionType = string; -/** Known values of {@link OperationalState} that the service accepts. */ -export enum KnownOperationalState { - /** Configuring */ - Configuring = "Configuring", - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed" +/** Known values of {@link RoutePolicyActionType} that the service accepts. */ +export enum KnownRoutePolicyActionType { + /** Permit */ + Permit = "Permit", + /** Deny */ + Deny = "Deny", + /** Continue */ + Continue = "Continue" } /** - * Defines values for OperationalState. \ - * {@link KnownOperationalState} can be used interchangeably with OperationalState, + * Defines values for RoutePolicyActionType. \ + * {@link KnownRoutePolicyActionType} can be used interchangeably with RoutePolicyActionType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Configuring** \ - * **Succeeded** \ - * **Failed** + * **Permit** \ + * **Deny** \ + * **Continue** */ -export type OperationalState = string; +export type RoutePolicyActionType = string; + +/** Optional parameters. */ +export interface AccessControlListsCreateOptionalParams + 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; +} + +/** Contains response data for the create operation. */ +export type AccessControlListsCreateResponse = AccessControlList; + +/** Optional parameters. */ +export interface AccessControlListsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AccessControlListsGetResponse = AccessControlList; + +/** Optional parameters. */ +export interface AccessControlListsUpdateOptionalParams + 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; +} + +/** Contains response data for the update operation. */ +export type AccessControlListsUpdateResponse = AccessControlList; + +/** Optional parameters. */ +export interface AccessControlListsDeleteOptionalParams + 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; +} + +/** Contains response data for the delete operation. */ +export type AccessControlListsDeleteResponse = AccessControlListsDeleteHeaders; + +/** Optional parameters. */ +export interface AccessControlListsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type AccessControlListsListByResourceGroupResponse = AccessControlListsListResult; + +/** Optional parameters. */ +export interface AccessControlListsListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type AccessControlListsListBySubscriptionResponse = AccessControlListsListResult; + +/** Optional parameters. */ +export interface AccessControlListsUpdateAdministrativeStateOptionalParams + 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; +} + +/** Contains response data for the updateAdministrativeState operation. */ +export type AccessControlListsUpdateAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; + +/** Optional parameters. */ +export interface AccessControlListsResyncOptionalParams + 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; +} + +/** Contains response data for the resync operation. */ +export type AccessControlListsResyncResponse = CommonPostActionResponseForStateUpdate; + +/** Optional parameters. */ +export interface AccessControlListsValidateConfigurationOptionalParams + 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; +} + +/** Contains response data for the validateConfiguration operation. */ +export type AccessControlListsValidateConfigurationResponse = ValidateConfigurationResponse; + +/** Optional parameters. */ +export interface AccessControlListsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type AccessControlListsListByResourceGroupNextResponse = AccessControlListsListResult; + +/** Optional parameters. */ +export interface AccessControlListsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type AccessControlListsListBySubscriptionNextResponse = AccessControlListsListResult; + +/** Optional parameters. */ +export interface InternetGatewaysCreateOptionalParams + 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; +} + +/** Contains response data for the create operation. */ +export type InternetGatewaysCreateResponse = InternetGateway; + +/** Optional parameters. */ +export interface InternetGatewaysGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type InternetGatewaysGetResponse = InternetGateway; + +/** Optional parameters. */ +export interface InternetGatewaysUpdateOptionalParams + 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; +} -/** Known values of {@link ReachabilityState} that the service accepts. */ -export enum KnownReachabilityState { - /** Reachable */ - Reachable = "Reachable", - /** Unreachable */ - Unreachable = "Unreachable" +/** Contains response data for the update operation. */ +export type InternetGatewaysUpdateResponse = InternetGateway; + +/** Optional parameters. */ +export interface InternetGatewaysDeleteOptionalParams + 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; } -/** - * Defines values for ReachabilityState. \ - * {@link KnownReachabilityState} can be used interchangeably with ReachabilityState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Reachable** \ - * **Unreachable** - */ -export type ReachabilityState = string; +/** Optional parameters. */ +export interface InternetGatewaysListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type InternetGatewaysListByResourceGroupResponse = InternetGatewaysListResult; + +/** Optional parameters. */ +export interface InternetGatewaysListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type InternetGatewaysListBySubscriptionResponse = InternetGatewaysListResult; -/** Known values of {@link FailedSucceededState} that the service accepts. */ -export enum KnownFailedSucceededState { - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed" -} +/** Optional parameters. */ +export interface InternetGatewaysListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for FailedSucceededState. \ - * {@link KnownFailedSucceededState} can be used interchangeably with FailedSucceededState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded** \ - * **Failed** - */ -export type FailedSucceededState = string; +/** Contains response data for the listByResourceGroupNext operation. */ +export type InternetGatewaysListByResourceGroupNextResponse = InternetGatewaysListResult; /** Optional parameters. */ -export interface AccessControlListsCreateOptionalParams +export interface InternetGatewaysListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listBySubscriptionNext operation. */ +export type InternetGatewaysListBySubscriptionNextResponse = InternetGatewaysListResult; + +/** Optional parameters. */ +export interface InternetGatewayRulesCreateOptionalParams + 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; +} + /** Contains response data for the create operation. */ -export type AccessControlListsCreateResponse = AccessControlList; +export type InternetGatewayRulesCreateResponse = InternetGatewayRule; /** Optional parameters. */ -export interface AccessControlListsGetOptionalParams +export interface InternetGatewayRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AccessControlListsGetResponse = AccessControlList; +export type InternetGatewayRulesGetResponse = InternetGatewayRule; /** Optional parameters. */ -export interface AccessControlListsUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface InternetGatewayRulesUpdateOptionalParams + 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; +} /** Contains response data for the update operation. */ -export type AccessControlListsUpdateResponse = AccessControlList; +export type InternetGatewayRulesUpdateResponse = InternetGatewayRule; /** Optional parameters. */ -export interface AccessControlListsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface InternetGatewayRulesDeleteOptionalParams + 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; +} + +/** Contains response data for the delete operation. */ +export type InternetGatewayRulesDeleteResponse = InternetGatewayRulesDeleteHeaders; /** Optional parameters. */ -export interface AccessControlListsListByResourceGroupOptionalParams +export interface InternetGatewayRulesListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type AccessControlListsListByResourceGroupResponse = AccessControlListsListResult; +export type InternetGatewayRulesListByResourceGroupResponse = InternetGatewayRulesListResult; /** Optional parameters. */ -export interface AccessControlListsListBySubscriptionOptionalParams +export interface InternetGatewayRulesListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type AccessControlListsListBySubscriptionResponse = AccessControlListsListResult; +export type InternetGatewayRulesListBySubscriptionResponse = InternetGatewayRulesListResult; /** Optional parameters. */ -export interface AccessControlListsListByResourceGroupNextOptionalParams +export interface InternetGatewayRulesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type AccessControlListsListByResourceGroupNextResponse = AccessControlListsListResult; +export type InternetGatewayRulesListByResourceGroupNextResponse = InternetGatewayRulesListResult; /** Optional parameters. */ -export interface AccessControlListsListBySubscriptionNextOptionalParams +export interface InternetGatewayRulesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type AccessControlListsListBySubscriptionNextResponse = AccessControlListsListResult; +export type InternetGatewayRulesListBySubscriptionNextResponse = InternetGatewayRulesListResult; /** Optional parameters. */ export interface IpCommunitiesCreateOptionalParams @@ -3171,6 +4687,9 @@ export interface IpCommunitiesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type IpCommunitiesDeleteResponse = IpCommunitiesDeleteHeaders; + /** Optional parameters. */ export interface IpCommunitiesListByResourceGroupOptionalParams extends coreClient.OperationOptions {} @@ -3239,6 +4758,9 @@ export interface IpExtendedCommunitiesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type IpExtendedCommunitiesDeleteResponse = IpExtendedCommunitiesDeleteHeaders; + /** Optional parameters. */ export interface IpExtendedCommunitiesListByResourceGroupOptionalParams extends coreClient.OperationOptions {} @@ -3307,6 +4829,9 @@ export interface IpPrefixesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type IpPrefixesDeleteResponse = IpPrefixesDeleteHeaders; + /** Optional parameters. */ export interface IpPrefixesListByResourceGroupOptionalParams extends coreClient.OperationOptions {} @@ -3318,25 +4843,233 @@ export type IpPrefixesListByResourceGroupResponse = IpPrefixesListResult; export interface IpPrefixesListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type IpPrefixesListBySubscriptionResponse = IpPrefixesListResult; +/** Contains response data for the listBySubscription operation. */ +export type IpPrefixesListBySubscriptionResponse = IpPrefixesListResult; + +/** Optional parameters. */ +export interface IpPrefixesListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type IpPrefixesListByResourceGroupNextResponse = IpPrefixesListResult; + +/** Optional parameters. */ +export interface IpPrefixesListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type IpPrefixesListBySubscriptionNextResponse = IpPrefixesListResult; + +/** Optional parameters. */ +export interface L2IsolationDomainsCreateOptionalParams + 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; +} + +/** Contains response data for the create operation. */ +export type L2IsolationDomainsCreateResponse = L2IsolationDomain; + +/** Optional parameters. */ +export interface L2IsolationDomainsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type L2IsolationDomainsGetResponse = L2IsolationDomain; + +/** Optional parameters. */ +export interface L2IsolationDomainsUpdateOptionalParams + 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; +} + +/** Contains response data for the update operation. */ +export type L2IsolationDomainsUpdateResponse = L2IsolationDomain; + +/** Optional parameters. */ +export interface L2IsolationDomainsDeleteOptionalParams + 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 L2IsolationDomainsUpdateAdministrativeStateOptionalParams + 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; +} + +/** Contains response data for the updateAdministrativeState operation. */ +export type L2IsolationDomainsUpdateAdministrativeStateResponse = CommonPostActionResponseForDeviceUpdate; + +/** Optional parameters. */ +export interface L2IsolationDomainsValidateConfigurationOptionalParams + 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; +} + +/** Contains response data for the validateConfiguration operation. */ +export type L2IsolationDomainsValidateConfigurationResponse = ValidateConfigurationResponse; + +/** Optional parameters. */ +export interface L2IsolationDomainsCommitConfigurationOptionalParams + 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; +} + +/** Contains response data for the commitConfiguration operation. */ +export type L2IsolationDomainsCommitConfigurationResponse = CommonPostActionResponseForStateUpdate; + +/** Optional parameters. */ +export interface L2IsolationDomainsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type L2IsolationDomainsListByResourceGroupResponse = L2IsolationDomainsListResult; + +/** Optional parameters. */ +export interface L2IsolationDomainsListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type L2IsolationDomainsListBySubscriptionResponse = L2IsolationDomainsListResult; + +/** Optional parameters. */ +export interface L2IsolationDomainsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type L2IsolationDomainsListByResourceGroupNextResponse = L2IsolationDomainsListResult; + +/** Optional parameters. */ +export interface L2IsolationDomainsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type L2IsolationDomainsListBySubscriptionNextResponse = L2IsolationDomainsListResult; + +/** Optional parameters. */ +export interface L3IsolationDomainsCreateOptionalParams + 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; +} + +/** Contains response data for the create operation. */ +export type L3IsolationDomainsCreateResponse = L3IsolationDomain; + +/** Optional parameters. */ +export interface L3IsolationDomainsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type L3IsolationDomainsGetResponse = L3IsolationDomain; + +/** Optional parameters. */ +export interface L3IsolationDomainsUpdateOptionalParams + 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; +} + +/** Contains response data for the update operation. */ +export type L3IsolationDomainsUpdateResponse = L3IsolationDomain; + +/** Optional parameters. */ +export interface L3IsolationDomainsDeleteOptionalParams + 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 L3IsolationDomainsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type L3IsolationDomainsListByResourceGroupResponse = L3IsolationDomainsListResult; + +/** Optional parameters. */ +export interface L3IsolationDomainsListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type L3IsolationDomainsListBySubscriptionResponse = L3IsolationDomainsListResult; + +/** Optional parameters. */ +export interface L3IsolationDomainsUpdateAdministrativeStateOptionalParams + 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; +} + +/** Contains response data for the updateAdministrativeState operation. */ +export type L3IsolationDomainsUpdateAdministrativeStateResponse = CommonPostActionResponseForDeviceUpdate; + +/** Optional parameters. */ +export interface L3IsolationDomainsValidateConfigurationOptionalParams + 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; +} + +/** Contains response data for the validateConfiguration operation. */ +export type L3IsolationDomainsValidateConfigurationResponse = ValidateConfigurationResponse; + +/** Optional parameters. */ +export interface L3IsolationDomainsCommitConfigurationOptionalParams + 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; +} + +/** Contains response data for the commitConfiguration operation. */ +export type L3IsolationDomainsCommitConfigurationResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface IpPrefixesListByResourceGroupNextOptionalParams +export interface L3IsolationDomainsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type IpPrefixesListByResourceGroupNextResponse = IpPrefixesListResult; +export type L3IsolationDomainsListByResourceGroupNextResponse = L3IsolationDomainsListResult; /** Optional parameters. */ -export interface IpPrefixesListBySubscriptionNextOptionalParams +export interface L3IsolationDomainsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type IpPrefixesListBySubscriptionNextResponse = IpPrefixesListResult; +export type L3IsolationDomainsListBySubscriptionNextResponse = L3IsolationDomainsListResult; /** Optional parameters. */ -export interface L2IsolationDomainsCreateOptionalParams +export interface InternalNetworksCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3345,17 +5078,17 @@ export interface L2IsolationDomainsCreateOptionalParams } /** Contains response data for the create operation. */ -export type L2IsolationDomainsCreateResponse = L2IsolationDomain; +export type InternalNetworksCreateResponse = InternalNetwork; /** Optional parameters. */ -export interface L2IsolationDomainsGetOptionalParams +export interface InternalNetworksGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type L2IsolationDomainsGetResponse = L2IsolationDomain; +export type InternalNetworksGetResponse = InternalNetwork; /** Optional parameters. */ -export interface L2IsolationDomainsUpdateOptionalParams +export interface InternalNetworksUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3364,10 +5097,10 @@ export interface L2IsolationDomainsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type L2IsolationDomainsUpdateResponse = L2IsolationDomain; +export type InternalNetworksUpdateResponse = InternalNetwork; /** Optional parameters. */ -export interface L2IsolationDomainsDeleteOptionalParams +export interface InternalNetworksDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3376,19 +5109,14 @@ export interface L2IsolationDomainsDeleteOptionalParams } /** Optional parameters. */ -export interface L2IsolationDomainsUpdateAdministrativeStateOptionalParams - 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; -} +export interface InternalNetworksListByL3IsolationDomainOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the updateAdministrativeState operation. */ -export type L2IsolationDomainsUpdateAdministrativeStateResponse = L2IsolationDomainsUpdateAdministrativeStateHeaders; +/** Contains response data for the listByL3IsolationDomain operation. */ +export type InternalNetworksListByL3IsolationDomainResponse = InternalNetworksList; /** Optional parameters. */ -export interface L2IsolationDomainsClearArpTableOptionalParams +export interface InternalNetworksUpdateAdministrativeStateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3396,11 +5124,11 @@ export interface L2IsolationDomainsClearArpTableOptionalParams resumeFrom?: string; } -/** Contains response data for the clearArpTable operation. */ -export type L2IsolationDomainsClearArpTableResponse = L2IsolationDomainsClearArpTableHeaders; +/** Contains response data for the updateAdministrativeState operation. */ +export type InternalNetworksUpdateAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface L2IsolationDomainsClearNeighborTableOptionalParams +export interface InternalNetworksUpdateBgpAdministrativeStateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3408,11 +5136,11 @@ export interface L2IsolationDomainsClearNeighborTableOptionalParams resumeFrom?: string; } -/** Contains response data for the clearNeighborTable operation. */ -export type L2IsolationDomainsClearNeighborTableResponse = L2IsolationDomainsClearNeighborTableHeaders; +/** Contains response data for the updateBgpAdministrativeState operation. */ +export type InternalNetworksUpdateBgpAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface L2IsolationDomainsGetArpEntriesOptionalParams +export interface InternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3420,41 +5148,18 @@ export interface L2IsolationDomainsGetArpEntriesOptionalParams resumeFrom?: string; } -/** Contains response data for the getArpEntries operation. */ -export type L2IsolationDomainsGetArpEntriesResponse = L2IsolationDomainsGetArpEntriesHeaders & { - [propertyName: string]: ARPProperties; -}; - -/** Optional parameters. */ -export interface L2IsolationDomainsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type L2IsolationDomainsListByResourceGroupResponse = L2IsolationDomainsListResult; - -/** Optional parameters. */ -export interface L2IsolationDomainsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type L2IsolationDomainsListBySubscriptionResponse = L2IsolationDomainsListResult; - -/** Optional parameters. */ -export interface L2IsolationDomainsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type L2IsolationDomainsListByResourceGroupNextResponse = L2IsolationDomainsListResult; +/** Contains response data for the updateStaticRouteBfdAdministrativeState operation. */ +export type InternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface L2IsolationDomainsListBySubscriptionNextOptionalParams +export interface InternalNetworksListByL3IsolationDomainNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type L2IsolationDomainsListBySubscriptionNextResponse = L2IsolationDomainsListResult; +/** Contains response data for the listByL3IsolationDomainNext operation. */ +export type InternalNetworksListByL3IsolationDomainNextResponse = InternalNetworksList; /** Optional parameters. */ -export interface L3IsolationDomainsCreateOptionalParams +export interface ExternalNetworksCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3463,17 +5168,17 @@ export interface L3IsolationDomainsCreateOptionalParams } /** Contains response data for the create operation. */ -export type L3IsolationDomainsCreateResponse = L3IsolationDomain; +export type ExternalNetworksCreateResponse = ExternalNetwork; /** Optional parameters. */ -export interface L3IsolationDomainsGetOptionalParams +export interface ExternalNetworksGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type L3IsolationDomainsGetResponse = L3IsolationDomain; +export type ExternalNetworksGetResponse = ExternalNetwork; /** Optional parameters. */ -export interface L3IsolationDomainsUpdateOptionalParams +export interface ExternalNetworksUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3482,10 +5187,10 @@ export interface L3IsolationDomainsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type L3IsolationDomainsUpdateResponse = L3IsolationDomain; +export type ExternalNetworksUpdateResponse = ExternalNetwork; /** Optional parameters. */ -export interface L3IsolationDomainsDeleteOptionalParams +export interface ExternalNetworksDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3494,21 +5199,26 @@ export interface L3IsolationDomainsDeleteOptionalParams } /** Optional parameters. */ -export interface L3IsolationDomainsListByResourceGroupOptionalParams +export interface ExternalNetworksListByL3IsolationDomainOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type L3IsolationDomainsListByResourceGroupResponse = L3IsolationDomainsListResult; +/** Contains response data for the listByL3IsolationDomain operation. */ +export type ExternalNetworksListByL3IsolationDomainResponse = ExternalNetworksList; /** Optional parameters. */ -export interface L3IsolationDomainsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} +export interface ExternalNetworksUpdateAdministrativeStateOptionalParams + 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; +} -/** Contains response data for the listBySubscription operation. */ -export type L3IsolationDomainsListBySubscriptionResponse = L3IsolationDomainsListResult; +/** Contains response data for the updateAdministrativeState operation. */ +export type ExternalNetworksUpdateAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface L3IsolationDomainsUpdateAdministrativeStateOptionalParams +export interface ExternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3516,11 +5226,18 @@ export interface L3IsolationDomainsUpdateAdministrativeStateOptionalParams resumeFrom?: string; } -/** Contains response data for the updateAdministrativeState operation. */ -export type L3IsolationDomainsUpdateAdministrativeStateResponse = L3IsolationDomainsUpdateAdministrativeStateHeaders; +/** Contains response data for the updateStaticRouteBfdAdministrativeState operation. */ +export type ExternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; + +/** Optional parameters. */ +export interface ExternalNetworksListByL3IsolationDomainNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByL3IsolationDomainNext operation. */ +export type ExternalNetworksListByL3IsolationDomainNextResponse = ExternalNetworksList; /** Optional parameters. */ -export interface L3IsolationDomainsUpdateOptionBAdministrativeStateOptionalParams +export interface NeighborGroupsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3528,11 +5245,18 @@ export interface L3IsolationDomainsUpdateOptionBAdministrativeStateOptionalParam resumeFrom?: string; } -/** Contains response data for the updateOptionBAdministrativeState operation. */ -export type L3IsolationDomainsUpdateOptionBAdministrativeStateResponse = L3IsolationDomainsUpdateOptionBAdministrativeStateHeaders; +/** Contains response data for the create operation. */ +export type NeighborGroupsCreateResponse = NeighborGroup; + +/** Optional parameters. */ +export interface NeighborGroupsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type NeighborGroupsGetResponse = NeighborGroup; /** Optional parameters. */ -export interface L3IsolationDomainsClearArpTableOptionalParams +export interface NeighborGroupsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3540,11 +5264,11 @@ export interface L3IsolationDomainsClearArpTableOptionalParams resumeFrom?: string; } -/** Contains response data for the clearArpTable operation. */ -export type L3IsolationDomainsClearArpTableResponse = L3IsolationDomainsClearArpTableHeaders; +/** Contains response data for the update operation. */ +export type NeighborGroupsUpdateResponse = NeighborGroup; /** Optional parameters. */ -export interface L3IsolationDomainsClearNeighborTableOptionalParams +export interface NeighborGroupsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3552,25 +5276,57 @@ export interface L3IsolationDomainsClearNeighborTableOptionalParams resumeFrom?: string; } -/** Contains response data for the clearNeighborTable operation. */ -export type L3IsolationDomainsClearNeighborTableResponse = L3IsolationDomainsClearNeighborTableHeaders; +/** Optional parameters. */ +export interface NeighborGroupsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type NeighborGroupsListByResourceGroupResponse = NeighborGroupsListResult; /** Optional parameters. */ -export interface L3IsolationDomainsListByResourceGroupNextOptionalParams +export interface NeighborGroupsListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type NeighborGroupsListBySubscriptionResponse = NeighborGroupsListResult; + +/** Optional parameters. */ +export interface NeighborGroupsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type L3IsolationDomainsListByResourceGroupNextResponse = L3IsolationDomainsListResult; +export type NeighborGroupsListByResourceGroupNextResponse = NeighborGroupsListResult; /** Optional parameters. */ -export interface L3IsolationDomainsListBySubscriptionNextOptionalParams +export interface NeighborGroupsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type L3IsolationDomainsListBySubscriptionNextResponse = L3IsolationDomainsListResult; +export type NeighborGroupsListBySubscriptionNextResponse = NeighborGroupsListResult; /** Optional parameters. */ -export interface InternalNetworksCreateOptionalParams +export interface NetworkDeviceSkusGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type NetworkDeviceSkusGetResponse = NetworkDeviceSku; + +/** Optional parameters. */ +export interface NetworkDeviceSkusListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type NetworkDeviceSkusListBySubscriptionResponse = NetworkDeviceSkusListResult; + +/** Optional parameters. */ +export interface NetworkDeviceSkusListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type NetworkDeviceSkusListBySubscriptionNextResponse = NetworkDeviceSkusListResult; + +/** Optional parameters. */ +export interface NetworkDevicesCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3579,17 +5335,17 @@ export interface InternalNetworksCreateOptionalParams } /** Contains response data for the create operation. */ -export type InternalNetworksCreateResponse = InternalNetwork; +export type NetworkDevicesCreateResponse = NetworkDevice; /** Optional parameters. */ -export interface InternalNetworksGetOptionalParams +export interface NetworkDevicesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type InternalNetworksGetResponse = InternalNetwork; +export type NetworkDevicesGetResponse = NetworkDevice; /** Optional parameters. */ -export interface InternalNetworksUpdateOptionalParams +export interface NetworkDevicesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3598,10 +5354,10 @@ export interface InternalNetworksUpdateOptionalParams } /** Contains response data for the update operation. */ -export type InternalNetworksUpdateResponse = InternalNetwork; +export type NetworkDevicesUpdateResponse = NetworkDevice; /** Optional parameters. */ -export interface InternalNetworksDeleteOptionalParams +export interface NetworkDevicesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3610,26 +5366,21 @@ export interface InternalNetworksDeleteOptionalParams } /** Optional parameters. */ -export interface InternalNetworksListOptionalParams +export interface NetworkDevicesListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type InternalNetworksListResponse = InternalNetworksList; +/** Contains response data for the listByResourceGroup operation. */ +export type NetworkDevicesListByResourceGroupResponse = NetworkDevicesListResult; /** Optional parameters. */ -export interface InternalNetworksUpdateAdministrativeStateOptionalParams - 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; -} +export interface NetworkDevicesListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the updateAdministrativeState operation. */ -export type InternalNetworksUpdateAdministrativeStateResponse = InternalNetworksUpdateAdministrativeStateHeaders; +/** Contains response data for the listBySubscription operation. */ +export type NetworkDevicesListBySubscriptionResponse = NetworkDevicesListResult; /** Optional parameters. */ -export interface InternalNetworksUpdateBgpAdministrativeStateOptionalParams +export interface NetworkDevicesRebootOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3637,11 +5388,11 @@ export interface InternalNetworksUpdateBgpAdministrativeStateOptionalParams resumeFrom?: string; } -/** Contains response data for the updateBgpAdministrativeState operation. */ -export type InternalNetworksUpdateBgpAdministrativeStateResponse = InternalNetworksUpdateBgpAdministrativeStateHeaders; +/** Contains response data for the reboot operation. */ +export type NetworkDevicesRebootResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface InternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams +export interface NetworkDevicesRefreshConfigurationOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3649,11 +5400,11 @@ export interface InternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParam resumeFrom?: string; } -/** Contains response data for the updateBfdForBgpAdministrativeState operation. */ -export type InternalNetworksUpdateBfdForBgpAdministrativeStateResponse = InternalNetworksUpdateBfdForBgpAdministrativeStateHeaders; +/** Contains response data for the refreshConfiguration operation. */ +export type NetworkDevicesRefreshConfigurationResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface InternalNetworksClearIpv6NeighborsOptionalParams +export interface NetworkDevicesUpdateAdministrativeStateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3661,11 +5412,11 @@ export interface InternalNetworksClearIpv6NeighborsOptionalParams resumeFrom?: string; } -/** Contains response data for the clearIpv6Neighbors operation. */ -export type InternalNetworksClearIpv6NeighborsResponse = InternalNetworksClearIpv6NeighborsHeaders; +/** Contains response data for the updateAdministrativeState operation. */ +export type NetworkDevicesUpdateAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface InternalNetworksClearArpEntriesOptionalParams +export interface NetworkDevicesUpgradeOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3673,30 +5424,25 @@ export interface InternalNetworksClearArpEntriesOptionalParams resumeFrom?: string; } -/** Contains response data for the clearArpEntries operation. */ -export type InternalNetworksClearArpEntriesResponse = InternalNetworksClearArpEntriesHeaders; +/** Contains response data for the upgrade operation. */ +export type NetworkDevicesUpgradeResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface InternalNetworksUpdateBfdForStaticRouteAdministrativeStateOptionalParams - 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; -} +export interface NetworkDevicesListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the updateBfdForStaticRouteAdministrativeState operation. */ -export type InternalNetworksUpdateBfdForStaticRouteAdministrativeStateResponse = InternalNetworksUpdateBfdForStaticRouteAdministrativeStateHeaders; +/** Contains response data for the listByResourceGroupNext operation. */ +export type NetworkDevicesListByResourceGroupNextResponse = NetworkDevicesListResult; /** Optional parameters. */ -export interface InternalNetworksListNextOptionalParams +export interface NetworkDevicesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type InternalNetworksListNextResponse = InternalNetworksList; +/** Contains response data for the listBySubscriptionNext operation. */ +export type NetworkDevicesListBySubscriptionNextResponse = NetworkDevicesListResult; /** Optional parameters. */ -export interface ExternalNetworksCreateOptionalParams +export interface NetworkInterfacesCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3705,17 +5451,17 @@ export interface ExternalNetworksCreateOptionalParams } /** Contains response data for the create operation. */ -export type ExternalNetworksCreateResponse = ExternalNetwork; +export type NetworkInterfacesCreateResponse = NetworkInterface; /** Optional parameters. */ -export interface ExternalNetworksGetOptionalParams +export interface NetworkInterfacesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExternalNetworksGetResponse = ExternalNetwork; +export type NetworkInterfacesGetResponse = NetworkInterface; /** Optional parameters. */ -export interface ExternalNetworksUpdateOptionalParams +export interface NetworkInterfacesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3724,10 +5470,10 @@ export interface ExternalNetworksUpdateOptionalParams } /** Contains response data for the update operation. */ -export type ExternalNetworksUpdateResponse = ExternalNetwork; +export type NetworkInterfacesUpdateResponse = NetworkInterface; /** Optional parameters. */ -export interface ExternalNetworksDeleteOptionalParams +export interface NetworkInterfacesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3736,14 +5482,14 @@ export interface ExternalNetworksDeleteOptionalParams } /** Optional parameters. */ -export interface ExternalNetworksListOptionalParams +export interface NetworkInterfacesListByNetworkDeviceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ExternalNetworksListResponse = ExternalNetworksList; +/** Contains response data for the listByNetworkDevice operation. */ +export type NetworkInterfacesListByNetworkDeviceResponse = NetworkInterfacesList; /** Optional parameters. */ -export interface ExternalNetworksUpdateAdministrativeStateOptionalParams +export interface NetworkInterfacesUpdateAdministrativeStateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3752,22 +5498,17 @@ export interface ExternalNetworksUpdateAdministrativeStateOptionalParams } /** Contains response data for the updateAdministrativeState operation. */ -export type ExternalNetworksUpdateAdministrativeStateResponse = ExternalNetworksUpdateAdministrativeStateHeaders; +export type NetworkInterfacesUpdateAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface ExternalNetworksUpdateBgpAdministrativeStateOptionalParams - 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; -} +export interface NetworkInterfacesListByNetworkDeviceNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the updateBgpAdministrativeState operation. */ -export type ExternalNetworksUpdateBgpAdministrativeStateResponse = ExternalNetworksUpdateBgpAdministrativeStateHeaders; +/** Contains response data for the listByNetworkDeviceNext operation. */ +export type NetworkInterfacesListByNetworkDeviceNextResponse = NetworkInterfacesList; /** Optional parameters. */ -export interface ExternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams +export interface NetworkFabricControllersCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3775,11 +5516,18 @@ export interface ExternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParam resumeFrom?: string; } -/** Contains response data for the updateBfdForBgpAdministrativeState operation. */ -export type ExternalNetworksUpdateBfdForBgpAdministrativeStateResponse = ExternalNetworksUpdateBfdForBgpAdministrativeStateHeaders; +/** Contains response data for the create operation. */ +export type NetworkFabricControllersCreateResponse = NetworkFabricController; + +/** Optional parameters. */ +export interface NetworkFabricControllersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type NetworkFabricControllersGetResponse = NetworkFabricController; /** Optional parameters. */ -export interface ExternalNetworksClearIpv6NeighborsOptionalParams +export interface NetworkFabricControllersUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3787,11 +5535,11 @@ export interface ExternalNetworksClearIpv6NeighborsOptionalParams resumeFrom?: string; } -/** Contains response data for the clearIpv6Neighbors operation. */ -export type ExternalNetworksClearIpv6NeighborsResponse = ExternalNetworksClearIpv6NeighborsHeaders; +/** Contains response data for the update operation. */ +export type NetworkFabricControllersUpdateResponse = NetworkFabricController; /** Optional parameters. */ -export interface ExternalNetworksClearArpEntriesOptionalParams +export interface NetworkFabricControllersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3799,39 +5547,60 @@ export interface ExternalNetworksClearArpEntriesOptionalParams resumeFrom?: string; } -/** Contains response data for the clearArpEntries operation. */ -export type ExternalNetworksClearArpEntriesResponse = ExternalNetworksClearArpEntriesHeaders; +/** Contains response data for the delete operation. */ +export type NetworkFabricControllersDeleteResponse = NetworkFabricControllersDeleteHeaders; /** Optional parameters. */ -export interface ExternalNetworksListNextOptionalParams +export interface NetworkFabricControllersListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ExternalNetworksListNextResponse = ExternalNetworksList; +/** Contains response data for the listByResourceGroup operation. */ +export type NetworkFabricControllersListByResourceGroupResponse = NetworkFabricControllersListResult; /** Optional parameters. */ -export interface NetworkDeviceSkusGetOptionalParams +export interface NetworkFabricControllersListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type NetworkFabricControllersListBySubscriptionResponse = NetworkFabricControllersListResult; + +/** Optional parameters. */ +export interface NetworkFabricControllersListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type NetworkFabricControllersListByResourceGroupNextResponse = NetworkFabricControllersListResult; + +/** Optional parameters. */ +export interface NetworkFabricControllersListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type NetworkFabricControllersListBySubscriptionNextResponse = NetworkFabricControllersListResult; + +/** Optional parameters. */ +export interface NetworkFabricSkusGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type NetworkDeviceSkusGetResponse = NetworkDeviceSku; +export type NetworkFabricSkusGetResponse = NetworkFabricSku; /** Optional parameters. */ -export interface NetworkDeviceSkusListBySubscriptionOptionalParams +export interface NetworkFabricSkusListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type NetworkDeviceSkusListBySubscriptionResponse = NetworkDeviceSkusListResult; +export type NetworkFabricSkusListBySubscriptionResponse = NetworkFabricSkusListResult; /** Optional parameters. */ -export interface NetworkDeviceSkusListBySubscriptionNextOptionalParams +export interface NetworkFabricSkusListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type NetworkDeviceSkusListBySubscriptionNextResponse = NetworkDeviceSkusListResult; +export type NetworkFabricSkusListBySubscriptionNextResponse = NetworkFabricSkusListResult; /** Optional parameters. */ -export interface NetworkDevicesCreateOptionalParams +export interface NetworkFabricsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3840,17 +5609,17 @@ export interface NetworkDevicesCreateOptionalParams } /** Contains response data for the create operation. */ -export type NetworkDevicesCreateResponse = NetworkDevice; +export type NetworkFabricsCreateResponse = NetworkFabric; /** Optional parameters. */ -export interface NetworkDevicesGetOptionalParams +export interface NetworkFabricsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type NetworkDevicesGetResponse = NetworkDevice; +export type NetworkFabricsGetResponse = NetworkFabric; /** Optional parameters. */ -export interface NetworkDevicesUpdateOptionalParams +export interface NetworkFabricsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3859,10 +5628,10 @@ export interface NetworkDevicesUpdateOptionalParams } /** Contains response data for the update operation. */ -export type NetworkDevicesUpdateResponse = NetworkDevice; +export type NetworkFabricsUpdateResponse = NetworkFabric; /** Optional parameters. */ -export interface NetworkDevicesDeleteOptionalParams +export interface NetworkFabricsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3870,22 +5639,25 @@ export interface NetworkDevicesDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type NetworkFabricsDeleteResponse = NetworkFabricsDeleteHeaders; + /** Optional parameters. */ -export interface NetworkDevicesListByResourceGroupOptionalParams +export interface NetworkFabricsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type NetworkDevicesListByResourceGroupResponse = NetworkDevicesListResult; +export type NetworkFabricsListByResourceGroupResponse = NetworkFabricsListResult; /** Optional parameters. */ -export interface NetworkDevicesListBySubscriptionOptionalParams +export interface NetworkFabricsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type NetworkDevicesListBySubscriptionResponse = NetworkDevicesListResult; +export type NetworkFabricsListBySubscriptionResponse = NetworkFabricsListResult; /** Optional parameters. */ -export interface NetworkDevicesRebootOptionalParams +export interface NetworkFabricsProvisionOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3893,11 +5665,11 @@ export interface NetworkDevicesRebootOptionalParams resumeFrom?: string; } -/** Contains response data for the reboot operation. */ -export type NetworkDevicesRebootResponse = NetworkDevicesRebootHeaders; +/** Contains response data for the provision operation. */ +export type NetworkFabricsProvisionResponse = CommonPostActionResponseForDeviceUpdate; /** Optional parameters. */ -export interface NetworkDevicesRestoreConfigOptionalParams +export interface NetworkFabricsDeprovisionOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3905,11 +5677,11 @@ export interface NetworkDevicesRestoreConfigOptionalParams resumeFrom?: string; } -/** Contains response data for the restoreConfig operation. */ -export type NetworkDevicesRestoreConfigResponse = NetworkDevicesRestoreConfigHeaders; +/** Contains response data for the deprovision operation. */ +export type NetworkFabricsDeprovisionResponse = CommonPostActionResponseForDeviceUpdate; /** Optional parameters. */ -export interface NetworkDevicesUpdateVersionOptionalParams +export interface NetworkFabricsUpgradeOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3917,11 +5689,11 @@ export interface NetworkDevicesUpdateVersionOptionalParams resumeFrom?: string; } -/** Contains response data for the updateVersion operation. */ -export type NetworkDevicesUpdateVersionResponse = NetworkDevicesUpdateVersionHeaders; +/** Contains response data for the upgrade operation. */ +export type NetworkFabricsUpgradeResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface NetworkDevicesGenerateSupportPackageOptionalParams +export interface NetworkFabricsRefreshConfigurationOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3929,12 +5701,11 @@ export interface NetworkDevicesGenerateSupportPackageOptionalParams resumeFrom?: string; } -/** Contains response data for the generateSupportPackage operation. */ -export type NetworkDevicesGenerateSupportPackageResponse = NetworkDevicesGenerateSupportPackageHeaders & - SupportPackageProperties; +/** Contains response data for the refreshConfiguration operation. */ +export type NetworkFabricsRefreshConfigurationResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface NetworkDevicesUpdatePowerCycleOptionalParams +export interface NetworkFabricsUpdateWorkloadManagementBfdConfigurationOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3942,11 +5713,11 @@ export interface NetworkDevicesUpdatePowerCycleOptionalParams resumeFrom?: string; } -/** Contains response data for the updatePowerCycle operation. */ -export type NetworkDevicesUpdatePowerCycleResponse = NetworkDevicesUpdatePowerCycleHeaders; +/** Contains response data for the updateWorkloadManagementBfdConfiguration operation. */ +export type NetworkFabricsUpdateWorkloadManagementBfdConfigurationResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface NetworkDevicesGetStatusOptionalParams +export interface NetworkFabricsUpdateInfraManagementBfdConfigurationOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3954,12 +5725,11 @@ export interface NetworkDevicesGetStatusOptionalParams resumeFrom?: string; } -/** Contains response data for the getStatus operation. */ -export type NetworkDevicesGetStatusResponse = NetworkDevicesGetStatusHeaders & - GetDeviceStatusProperties; +/** Contains response data for the updateInfraManagementBfdConfiguration operation. */ +export type NetworkFabricsUpdateInfraManagementBfdConfigurationResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface NetworkDevicesGetStaticInterfaceMapsOptionalParams +export interface NetworkFabricsValidateConfigurationOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3967,12 +5737,11 @@ export interface NetworkDevicesGetStaticInterfaceMapsOptionalParams resumeFrom?: string; } -/** Contains response data for the getStaticInterfaceMaps operation. */ -export type NetworkDevicesGetStaticInterfaceMapsResponse = NetworkDevicesGetStaticInterfaceMapsHeaders & - GetStaticInterfaceMapsPropertiesItem[]; +/** Contains response data for the validateConfiguration operation. */ +export type NetworkFabricsValidateConfigurationResponse = ValidateConfigurationResponse; /** Optional parameters. */ -export interface NetworkDevicesGetDynamicInterfaceMapsOptionalParams +export interface NetworkFabricsGetTopologyOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3980,26 +5749,37 @@ export interface NetworkDevicesGetDynamicInterfaceMapsOptionalParams resumeFrom?: string; } -/** Contains response data for the getDynamicInterfaceMaps operation. */ -export type NetworkDevicesGetDynamicInterfaceMapsResponse = NetworkDevicesGetDynamicInterfaceMapsHeaders & - GetDynamicInterfaceMapsPropertiesItem[]; +/** Contains response data for the getTopology operation. */ +export type NetworkFabricsGetTopologyResponse = ValidateConfigurationResponse; /** Optional parameters. */ -export interface NetworkDevicesListByResourceGroupNextOptionalParams +export interface NetworkFabricsCommitConfigurationOptionalParams + 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; +} + +/** Contains response data for the commitConfiguration operation. */ +export type NetworkFabricsCommitConfigurationResponse = CommonPostActionResponseForStateUpdate; + +/** Optional parameters. */ +export interface NetworkFabricsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type NetworkDevicesListByResourceGroupNextResponse = NetworkDevicesListResult; +export type NetworkFabricsListByResourceGroupNextResponse = NetworkFabricsListResult; /** Optional parameters. */ -export interface NetworkDevicesListBySubscriptionNextOptionalParams +export interface NetworkFabricsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type NetworkDevicesListBySubscriptionNextResponse = NetworkDevicesListResult; +export type NetworkFabricsListBySubscriptionNextResponse = NetworkFabricsListResult; /** Optional parameters. */ -export interface NetworkInterfacesCreateOptionalParams +export interface NetworkToNetworkInterconnectsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4008,17 +5788,17 @@ export interface NetworkInterfacesCreateOptionalParams } /** Contains response data for the create operation. */ -export type NetworkInterfacesCreateResponse = NetworkInterface; +export type NetworkToNetworkInterconnectsCreateResponse = NetworkToNetworkInterconnect; /** Optional parameters. */ -export interface NetworkInterfacesGetOptionalParams +export interface NetworkToNetworkInterconnectsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type NetworkInterfacesGetResponse = NetworkInterface; +export type NetworkToNetworkInterconnectsGetResponse = NetworkToNetworkInterconnect; /** Optional parameters. */ -export interface NetworkInterfacesUpdateOptionalParams +export interface NetworkToNetworkInterconnectsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4027,10 +5807,10 @@ export interface NetworkInterfacesUpdateOptionalParams } /** Contains response data for the update operation. */ -export type NetworkInterfacesUpdateResponse = NetworkInterface; +export type NetworkToNetworkInterconnectsUpdateResponse = NetworkToNetworkInterconnect; /** Optional parameters. */ -export interface NetworkInterfacesDeleteOptionalParams +export interface NetworkToNetworkInterconnectsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4039,14 +5819,14 @@ export interface NetworkInterfacesDeleteOptionalParams } /** Optional parameters. */ -export interface NetworkInterfacesListOptionalParams +export interface NetworkToNetworkInterconnectsListByNetworkFabricOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type NetworkInterfacesListResponse = NetworkInterfacesList; +/** Contains response data for the listByNetworkFabric operation. */ +export type NetworkToNetworkInterconnectsListByNetworkFabricResponse = NetworkToNetworkInterconnectsList; /** Optional parameters. */ -export interface NetworkInterfacesGetStatusOptionalParams +export interface NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4054,12 +5834,11 @@ export interface NetworkInterfacesGetStatusOptionalParams resumeFrom?: string; } -/** Contains response data for the getStatus operation. */ -export type NetworkInterfacesGetStatusResponse = NetworkInterfacesGetStatusHeaders & - InterfaceStatus; +/** Contains response data for the updateNpbStaticRouteBfdAdministrativeState operation. */ +export type NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface NetworkInterfacesUpdateAdministrativeStateOptionalParams +export interface NetworkToNetworkInterconnectsUpdateAdministrativeStateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4068,17 +5847,17 @@ export interface NetworkInterfacesUpdateAdministrativeStateOptionalParams } /** Contains response data for the updateAdministrativeState operation. */ -export type NetworkInterfacesUpdateAdministrativeStateResponse = NetworkInterfacesUpdateAdministrativeStateHeaders; +export type NetworkToNetworkInterconnectsUpdateAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface NetworkInterfacesListNextOptionalParams +export interface NetworkToNetworkInterconnectsListByNetworkFabricNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type NetworkInterfacesListNextResponse = NetworkInterfacesList; +/** Contains response data for the listByNetworkFabricNext operation. */ +export type NetworkToNetworkInterconnectsListByNetworkFabricNextResponse = NetworkToNetworkInterconnectsList; /** Optional parameters. */ -export interface NetworkFabricControllersCreateOptionalParams +export interface NetworkPacketBrokersCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4087,17 +5866,17 @@ export interface NetworkFabricControllersCreateOptionalParams } /** Contains response data for the create operation. */ -export type NetworkFabricControllersCreateResponse = NetworkFabricController; +export type NetworkPacketBrokersCreateResponse = NetworkPacketBroker; /** Optional parameters. */ -export interface NetworkFabricControllersGetOptionalParams +export interface NetworkPacketBrokersGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type NetworkFabricControllersGetResponse = NetworkFabricController; +export type NetworkPacketBrokersGetResponse = NetworkPacketBroker; /** Optional parameters. */ -export interface NetworkFabricControllersUpdateOptionalParams +export interface NetworkPacketBrokersUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4106,10 +5885,10 @@ export interface NetworkFabricControllersUpdateOptionalParams } /** Contains response data for the update operation. */ -export type NetworkFabricControllersUpdateResponse = NetworkFabricController; +export type NetworkPacketBrokersUpdateResponse = NetworkPacketBroker; /** Optional parameters. */ -export interface NetworkFabricControllersDeleteOptionalParams +export interface NetworkPacketBrokersDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4118,21 +5897,35 @@ export interface NetworkFabricControllersDeleteOptionalParams } /** Optional parameters. */ -export interface NetworkFabricControllersListByResourceGroupOptionalParams +export interface NetworkPacketBrokersListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type NetworkFabricControllersListByResourceGroupResponse = NetworkFabricControllersListResult; +export type NetworkPacketBrokersListByResourceGroupResponse = NetworkPacketBrokersListResult; /** Optional parameters. */ -export interface NetworkFabricControllersListBySubscriptionOptionalParams +export interface NetworkPacketBrokersListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type NetworkFabricControllersListBySubscriptionResponse = NetworkFabricControllersListResult; +export type NetworkPacketBrokersListBySubscriptionResponse = NetworkPacketBrokersListResult; + +/** Optional parameters. */ +export interface NetworkPacketBrokersListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type NetworkPacketBrokersListByResourceGroupNextResponse = NetworkPacketBrokersListResult; + +/** Optional parameters. */ +export interface NetworkPacketBrokersListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type NetworkPacketBrokersListBySubscriptionNextResponse = NetworkPacketBrokersListResult; /** Optional parameters. */ -export interface NetworkFabricControllersEnableWorkloadManagementNetworkOptionalParams +export interface NetworkRacksCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4140,11 +5933,18 @@ export interface NetworkFabricControllersEnableWorkloadManagementNetworkOptional resumeFrom?: string; } -/** Contains response data for the enableWorkloadManagementNetwork operation. */ -export type NetworkFabricControllersEnableWorkloadManagementNetworkResponse = NetworkFabricControllersEnableWorkloadManagementNetworkHeaders; +/** Contains response data for the create operation. */ +export type NetworkRacksCreateResponse = NetworkRack; + +/** Optional parameters. */ +export interface NetworkRacksGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type NetworkRacksGetResponse = NetworkRack; /** Optional parameters. */ -export interface NetworkFabricControllersDisableWorkloadManagementNetworkOptionalParams +export interface NetworkRacksUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4152,46 +5952,48 @@ export interface NetworkFabricControllersDisableWorkloadManagementNetworkOptiona resumeFrom?: string; } -/** Contains response data for the disableWorkloadManagementNetwork operation. */ -export type NetworkFabricControllersDisableWorkloadManagementNetworkResponse = NetworkFabricControllersDisableWorkloadManagementNetworkHeaders; +/** Contains response data for the update operation. */ +export type NetworkRacksUpdateResponse = NetworkRack; /** Optional parameters. */ -export interface NetworkFabricControllersListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type NetworkFabricControllersListByResourceGroupNextResponse = NetworkFabricControllersListResult; +export interface NetworkRacksDeleteOptionalParams + 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 NetworkFabricControllersListBySubscriptionNextOptionalParams +export interface NetworkRacksListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type NetworkFabricControllersListBySubscriptionNextResponse = NetworkFabricControllersListResult; +/** Contains response data for the listByResourceGroup operation. */ +export type NetworkRacksListByResourceGroupResponse = NetworkRacksListResult; /** Optional parameters. */ -export interface NetworkFabricSkusGetOptionalParams +export interface NetworkRacksListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type NetworkFabricSkusGetResponse = NetworkFabricSku; +/** Contains response data for the listBySubscription operation. */ +export type NetworkRacksListBySubscriptionResponse = NetworkRacksListResult; /** Optional parameters. */ -export interface NetworkFabricSkusListBySubscriptionOptionalParams +export interface NetworkRacksListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type NetworkFabricSkusListBySubscriptionResponse = NetworkFabricSkusListResult; +/** Contains response data for the listByResourceGroupNext operation. */ +export type NetworkRacksListByResourceGroupNextResponse = NetworkRacksListResult; /** Optional parameters. */ -export interface NetworkFabricSkusListBySubscriptionNextOptionalParams +export interface NetworkRacksListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type NetworkFabricSkusListBySubscriptionNextResponse = NetworkFabricSkusListResult; +export type NetworkRacksListBySubscriptionNextResponse = NetworkRacksListResult; /** Optional parameters. */ -export interface NetworkFabricsCreateOptionalParams +export interface NetworkTapRulesCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4200,17 +6002,17 @@ export interface NetworkFabricsCreateOptionalParams } /** Contains response data for the create operation. */ -export type NetworkFabricsCreateResponse = NetworkFabric; +export type NetworkTapRulesCreateResponse = NetworkTapRule; /** Optional parameters. */ -export interface NetworkFabricsGetOptionalParams +export interface NetworkTapRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type NetworkFabricsGetResponse = NetworkFabric; +export type NetworkTapRulesGetResponse = NetworkTapRule; /** Optional parameters. */ -export interface NetworkFabricsUpdateOptionalParams +export interface NetworkTapRulesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4219,10 +6021,10 @@ export interface NetworkFabricsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type NetworkFabricsUpdateResponse = NetworkFabric; +export type NetworkTapRulesUpdateResponse = NetworkTapRule; /** Optional parameters. */ -export interface NetworkFabricsDeleteOptionalParams +export interface NetworkTapRulesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4230,22 +6032,25 @@ export interface NetworkFabricsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type NetworkTapRulesDeleteResponse = NetworkTapRulesDeleteHeaders; + /** Optional parameters. */ -export interface NetworkFabricsListByResourceGroupOptionalParams +export interface NetworkTapRulesListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type NetworkFabricsListByResourceGroupResponse = NetworkFabricsListResult; +export type NetworkTapRulesListByResourceGroupResponse = NetworkTapRulesListResult; /** Optional parameters. */ -export interface NetworkFabricsListBySubscriptionOptionalParams +export interface NetworkTapRulesListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type NetworkFabricsListBySubscriptionResponse = NetworkFabricsListResult; +export type NetworkTapRulesListBySubscriptionResponse = NetworkTapRulesListResult; /** Optional parameters. */ -export interface NetworkFabricsProvisionOptionalParams +export interface NetworkTapRulesUpdateAdministrativeStateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4253,11 +6058,11 @@ export interface NetworkFabricsProvisionOptionalParams resumeFrom?: string; } -/** Contains response data for the provision operation. */ -export type NetworkFabricsProvisionResponse = NetworkFabricsProvisionHeaders; +/** Contains response data for the updateAdministrativeState operation. */ +export type NetworkTapRulesUpdateAdministrativeStateResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface NetworkFabricsDeprovisionOptionalParams +export interface NetworkTapRulesResyncOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4265,25 +6070,37 @@ export interface NetworkFabricsDeprovisionOptionalParams resumeFrom?: string; } -/** Contains response data for the deprovision operation. */ -export type NetworkFabricsDeprovisionResponse = NetworkFabricsDeprovisionHeaders; +/** Contains response data for the resync operation. */ +export type NetworkTapRulesResyncResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface NetworkFabricsListByResourceGroupNextOptionalParams +export interface NetworkTapRulesValidateConfigurationOptionalParams + 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; +} + +/** Contains response data for the validateConfiguration operation. */ +export type NetworkTapRulesValidateConfigurationResponse = ValidateConfigurationResponse; + +/** Optional parameters. */ +export interface NetworkTapRulesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type NetworkFabricsListByResourceGroupNextResponse = NetworkFabricsListResult; +export type NetworkTapRulesListByResourceGroupNextResponse = NetworkTapRulesListResult; /** Optional parameters. */ -export interface NetworkFabricsListBySubscriptionNextOptionalParams +export interface NetworkTapRulesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type NetworkFabricsListBySubscriptionNextResponse = NetworkFabricsListResult; +export type NetworkTapRulesListBySubscriptionNextResponse = NetworkTapRulesListResult; /** Optional parameters. */ -export interface NetworkToNetworkInterconnectsCreateOptionalParams +export interface NetworkTapsCreateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4292,17 +6109,17 @@ export interface NetworkToNetworkInterconnectsCreateOptionalParams } /** Contains response data for the create operation. */ -export type NetworkToNetworkInterconnectsCreateResponse = NetworkToNetworkInterconnect; +export type NetworkTapsCreateResponse = NetworkTap; /** Optional parameters. */ -export interface NetworkToNetworkInterconnectsGetOptionalParams +export interface NetworkTapsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type NetworkToNetworkInterconnectsGetResponse = NetworkToNetworkInterconnect; +export type NetworkTapsGetResponse = NetworkTap; /** Optional parameters. */ -export interface NetworkToNetworkInterconnectsDeleteOptionalParams +export interface NetworkTapsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4310,43 +6127,11 @@ export interface NetworkToNetworkInterconnectsDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface NetworkToNetworkInterconnectsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type NetworkToNetworkInterconnectsListResponse = NetworkToNetworkInterconnectsList; - -/** Optional parameters. */ -export interface NetworkToNetworkInterconnectsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type NetworkToNetworkInterconnectsListNextResponse = NetworkToNetworkInterconnectsList; - -/** Optional parameters. */ -export interface NetworkRackSkusGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type NetworkRackSkusGetResponse = NetworkRackSku; - -/** Optional parameters. */ -export interface NetworkRackSkusListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type NetworkRackSkusListBySubscriptionResponse = NetworkRackSkusListResult; - -/** Optional parameters. */ -export interface NetworkRackSkusListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscriptionNext operation. */ -export type NetworkRackSkusListBySubscriptionNextResponse = NetworkRackSkusListResult; +/** Contains response data for the update operation. */ +export type NetworkTapsUpdateResponse = NetworkTap; /** Optional parameters. */ -export interface NetworkRacksCreateOptionalParams +export interface NetworkTapsDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4354,18 +6139,22 @@ export interface NetworkRacksCreateOptionalParams resumeFrom?: string; } -/** Contains response data for the create operation. */ -export type NetworkRacksCreateResponse = NetworkRack; +/** Optional parameters. */ +export interface NetworkTapsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type NetworkTapsListByResourceGroupResponse = NetworkTapsListResult; /** Optional parameters. */ -export interface NetworkRacksGetOptionalParams +export interface NetworkTapsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type NetworkRacksGetResponse = NetworkRack; +/** Contains response data for the listBySubscription operation. */ +export type NetworkTapsListBySubscriptionResponse = NetworkTapsListResult; /** Optional parameters. */ -export interface NetworkRacksUpdateOptionalParams +export interface NetworkTapsUpdateAdministrativeStateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4373,11 +6162,11 @@ export interface NetworkRacksUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type NetworkRacksUpdateResponse = NetworkRack; +/** Contains response data for the updateAdministrativeState operation. */ +export type NetworkTapsUpdateAdministrativeStateResponse = CommonPostActionResponseForDeviceUpdate; /** Optional parameters. */ -export interface NetworkRacksDeleteOptionalParams +export interface NetworkTapsResyncOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -4385,33 +6174,22 @@ export interface NetworkRacksDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface NetworkRacksListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type NetworkRacksListByResourceGroupResponse = NetworkRacksListResult; - -/** Optional parameters. */ -export interface NetworkRacksListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type NetworkRacksListBySubscriptionResponse = NetworkRacksListResult; +/** Contains response data for the resync operation. */ +export type NetworkTapsResyncResponse = CommonPostActionResponseForStateUpdate; /** Optional parameters. */ -export interface NetworkRacksListByResourceGroupNextOptionalParams +export interface NetworkTapsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type NetworkRacksListByResourceGroupNextResponse = NetworkRacksListResult; +export type NetworkTapsListByResourceGroupNextResponse = NetworkTapsListResult; /** Optional parameters. */ -export interface NetworkRacksListBySubscriptionNextOptionalParams +export interface NetworkTapsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type NetworkRacksListBySubscriptionNextResponse = NetworkRacksListResult; +export type NetworkTapsListBySubscriptionNextResponse = NetworkTapsListResult; /** Optional parameters. */ export interface OperationsListOptionalParams @@ -4481,6 +6259,42 @@ export interface RoutePoliciesListBySubscriptionOptionalParams /** Contains response data for the listBySubscription operation. */ export type RoutePoliciesListBySubscriptionResponse = RoutePoliciesListResult; +/** Optional parameters. */ +export interface RoutePoliciesUpdateAdministrativeStateOptionalParams + 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; +} + +/** Contains response data for the updateAdministrativeState operation. */ +export type RoutePoliciesUpdateAdministrativeStateResponse = CommonPostActionResponseForDeviceUpdate; + +/** Optional parameters. */ +export interface RoutePoliciesValidateConfigurationOptionalParams + 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; +} + +/** Contains response data for the validateConfiguration operation. */ +export type RoutePoliciesValidateConfigurationResponse = ValidateConfigurationResponse; + +/** Optional parameters. */ +export interface RoutePoliciesCommitConfigurationOptionalParams + 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; +} + +/** Contains response data for the commitConfiguration operation. */ +export type RoutePoliciesCommitConfigurationResponse = CommonPostActionResponseForStateUpdate; + /** Optional parameters. */ export interface RoutePoliciesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/models/mappers.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/models/mappers.ts index 77e2c2f89373..71322aab8c48 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/models/mappers.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/models/mappers.ts @@ -23,152 +23,172 @@ export const AnnotationResource: coreClient.CompositeMapper = { } }; -export const Resource: coreClient.CompositeMapper = { +export const AccessControlListPatchableProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Resource", + className: "AccessControlListPatchableProperties", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + configurationType: { + serializedName: "configurationType", type: { name: "String" } }, - name: { - serializedName: "name", - readOnly: true, + aclsUrl: { + constraints: { + MinLength: 1 + }, + serializedName: "aclsUrl", type: { name: "String" } }, - type: { - serializedName: "type", - readOnly: true, + matchConfigurations: { + constraints: { + MinItems: 1 + }, + serializedName: "matchConfigurations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessControlListMatchConfiguration" + } + } } }, - systemData: { - serializedName: "systemData", + dynamicMatchConfigurations: { + constraints: { + MinItems: 1 + }, + serializedName: "dynamicMatchConfigurations", type: { - name: "Composite", - className: "SystemData" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CommonDynamicMatchConfiguration" + } + } } } } } }; -export const SystemData: coreClient.CompositeMapper = { +export const AccessControlListMatchConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "AccessControlListMatchConfiguration", modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", + matchConfigurationName: { + constraints: { + MinLength: 1 + }, + serializedName: "matchConfigurationName", type: { name: "String" } }, - createdAt: { - serializedName: "createdAt", + sequenceNumber: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 1 + }, + serializedName: "sequenceNumber", type: { - name: "DateTime" + name: "Number" } }, - lastModifiedBy: { - serializedName: "lastModifiedBy", + ipAddressType: { + serializedName: "ipAddressType", type: { name: "String" } }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + matchConditions: { + constraints: { + MinItems: 1 + }, + serializedName: "matchConditions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessControlListMatchCondition" + } + } } }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - error: { - serializedName: "error", + actions: { + constraints: { + MinItems: 1 + }, + serializedName: "actions", type: { - name: "Composite", - className: "ErrorDetail" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessControlListAction" + } + } } } } } }; -export const ErrorDetail: coreClient.CompositeMapper = { +export const PortCondition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorDetail", + className: "PortCondition", modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String" - } - }, - message: { - serializedName: "message", - readOnly: true, + portType: { + serializedName: "portType", type: { name: "String" } }, - target: { - serializedName: "target", - readOnly: true, + layer4Protocol: { + serializedName: "layer4Protocol", + required: true, type: { name: "String" } }, - details: { - serializedName: "details", - readOnly: true, + ports: { + constraints: { + MinItems: 1 + }, + serializedName: "ports", type: { name: "Sequence", element: { + constraints: { + MinLength: 1 + }, type: { - name: "Composite", - className: "ErrorDetail" + name: "String" } } } }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, + portGroupNames: { + constraints: { + MinItems: 1 + }, + serializedName: "portGroupNames", type: { name: "Sequence", element: { + constraints: { + MinLength: 1 + }, type: { - name: "Composite", - className: "ErrorAdditionalInfo" + name: "String" } } } @@ -177,62 +197,98 @@ export const ErrorDetail: coreClient.CompositeMapper = { } }; -export const ErrorAdditionalInfo: coreClient.CompositeMapper = { +export const CommonMatchConditions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorAdditionalInfo", + className: "CommonMatchConditions", modelProperties: { - type: { - serializedName: "type", - readOnly: true, + protocolTypes: { + constraints: { + MinItems: 1 + }, + serializedName: "protocolTypes", type: { - name: "String" + name: "Sequence", + element: { + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } } }, - info: { - serializedName: "info", - readOnly: true, + vlanMatchCondition: { + serializedName: "vlanMatchCondition", type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "Composite", + className: "VlanMatchCondition" + } + }, + ipCondition: { + serializedName: "ipCondition", + type: { + name: "Composite", + className: "IpMatchCondition" } } } } }; -export const AccessControlListPatch: coreClient.CompositeMapper = { +export const VlanMatchCondition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccessControlListPatch", + className: "VlanMatchCondition", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - annotation: { - serializedName: "properties.annotation", + vlans: { + constraints: { + MinItems: 1 + }, + serializedName: "vlans", type: { - name: "String" + name: "Sequence", + element: { + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } } }, - addressFamily: { - serializedName: "properties.addressFamily", + innerVlans: { + constraints: { + MinItems: 1 + }, + serializedName: "innerVlans", type: { - name: "String" + name: "Sequence", + element: { + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } } }, - conditions: { - serializedName: "properties.conditions", + vlanGroupNames: { + constraints: { + MinItems: 1 + }, + serializedName: "vlanGroupNames", type: { name: "Sequence", element: { + constraints: { + MinLength: 1 + }, type: { - name: "Composite", - className: "AccessControlListConditionProperties" + name: "String" } } } @@ -241,399 +297,396 @@ export const AccessControlListPatch: coreClient.CompositeMapper = { } }; -export const AccessControlListsListResult: coreClient.CompositeMapper = { +export const IpMatchCondition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccessControlListsListResult", + className: "IpMatchCondition", modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", + type: { + name: "String" + } + }, + prefixType: { + serializedName: "prefixType", + type: { + name: "String" + } + }, + ipPrefixValues: { + constraints: { + MinItems: 1 + }, + serializedName: "ipPrefixValues", type: { name: "Sequence", element: { + constraints: { + MinLength: 1 + }, type: { - name: "Composite", - className: "AccessControlList" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + ipGroupNames: { + constraints: { + MinItems: 1 + }, + serializedName: "ipGroupNames", type: { - name: "String" + name: "Sequence", + element: { + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } } } } } }; -export const IpCommunityPatch: coreClient.CompositeMapper = { +export const AccessControlListAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpCommunityPatch", + className: "AccessControlListAction", modelProperties: { - tags: { - serializedName: "tags", + type: { + serializedName: "type", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" + } + }, + counterName: { + constraints: { + MinLength: 1 + }, + serializedName: "counterName", + type: { + name: "String" } } } } }; -export const IpCommunitiesListResult: coreClient.CompositeMapper = { +export const CommonDynamicMatchConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpCommunitiesListResult", + className: "CommonDynamicMatchConfiguration", modelProperties: { - value: { - serializedName: "value", + ipGroups: { + constraints: { + MinItems: 1 + }, + serializedName: "ipGroups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IpCommunity" + className: "IpGroupProperties" } } } }, - nextLink: { - serializedName: "nextLink", + vlanGroups: { + constraints: { + MinItems: 1 + }, + serializedName: "vlanGroups", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VlanGroupProperties" + } + } } - } - } - } -}; - -export const IpExtendedCommunityPatch: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IpExtendedCommunityPatch", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const IpExtendedCommunityListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IpExtendedCommunityListResult", - modelProperties: { - value: { - serializedName: "value", + }, + portGroups: { + constraints: { + MinItems: 1 + }, + serializedName: "portGroups", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IpExtendedCommunity" + className: "PortGroupProperties" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const IpPrefixPropertiesIpPrefixRulesItem: coreClient.CompositeMapper = { +export const IpGroupProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpPrefixPropertiesIpPrefixRulesItem", + className: "IpGroupProperties", modelProperties: { - action: { - serializedName: "action", - required: true, - type: { - name: "String" - } - }, - sequenceNumber: { + name: { constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 1 + MinLength: 1 }, - serializedName: "sequenceNumber", - required: true, - type: { - name: "Number" - } - }, - networkPrefix: { - serializedName: "networkPrefix", - required: true, + serializedName: "name", type: { name: "String" } }, - condition: { - serializedName: "condition", + ipAddressType: { + serializedName: "ipAddressType", type: { name: "String" } }, - subnetMaskLength: { + ipPrefixes: { constraints: { - InclusiveMaximum: 128, - InclusiveMinimum: 1 + MinItems: 1 }, - serializedName: "subnetMaskLength", + serializedName: "ipPrefixes", type: { - name: "Number" + name: "Sequence", + element: { + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } } } } } }; -export const IpPrefixPatch: coreClient.CompositeMapper = { +export const VlanGroupProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpPrefixPatch", + className: "VlanGroupProperties", modelProperties: { - tags: { - serializedName: "tags", + name: { + constraints: { + MinLength: 1 + }, + serializedName: "name", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" + } + }, + vlans: { + constraints: { + MinItems: 1 + }, + serializedName: "vlans", + type: { + name: "Sequence", + element: { + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } } } } } }; -export const IpPrefixesListResult: coreClient.CompositeMapper = { +export const PortGroupProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpPrefixesListResult", + className: "PortGroupProperties", modelProperties: { - value: { - serializedName: "value", + name: { + constraints: { + MinLength: 1 + }, + serializedName: "name", + type: { + name: "String" + } + }, + ports: { + constraints: { + MinItems: 1 + }, + serializedName: "ports", type: { name: "Sequence", element: { + constraints: { + MinLength: 1 + }, type: { - name: "Composite", - className: "IpPrefix" + name: "String" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const L2IsolationDomainPatch: coreClient.CompositeMapper = { +export const Resource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L2IsolationDomainPatch", + className: "Resource", modelProperties: { - tags: { - serializedName: "tags", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - annotation: { - serializedName: "properties.annotation", + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - mtu: { - serializedName: "properties.mtu", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const EnableDisableOnResources: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EnableDisableOnResources", - modelProperties: { - resourceIds: { - serializedName: "resourceIds", + }, + systemData: { + serializedName: "systemData", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "SystemData" } } } } }; -export const ARPProperties: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ARPProperties", + className: "SystemData", modelProperties: { - address: { - serializedName: "address", - required: true, + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - age: { - serializedName: "age", - required: true, + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - macAddress: { - serializedName: "macAddress", - required: true, + createdAt: { + serializedName: "createdAt", type: { - name: "String" + name: "DateTime" } }, - interface: { - serializedName: "interface", - required: true, + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - state: { - serializedName: "state", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } } } } }; -export const L2IsolationDomainsListResult: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L2IsolationDomainsListResult", + className: "ErrorResponse", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "L2IsolationDomain" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + error: { + serializedName: "error", type: { - name: "String" + name: "Composite", + className: "ErrorDetail" } } } } }; -export const L3IsolationDomainPatchProperties: coreClient.CompositeMapper = { +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L3IsolationDomainPatchProperties", + className: "ErrorDetail", modelProperties: { - redistributeConnectedSubnets: { - defaultValue: "True", - serializedName: "redistributeConnectedSubnets", + code: { + serializedName: "code", + readOnly: true, type: { name: "String" } }, - redistributeStaticRoutes: { - defaultValue: "False", - serializedName: "redistributeStaticRoutes", + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } }, - aggregateRouteConfiguration: { - serializedName: "aggregateRouteConfiguration", - type: { - name: "Composite", - className: "AggregateRouteConfiguration" - } - }, - description: { - serializedName: "description", + target: { + serializedName: "target", + readOnly: true, type: { name: "String" } }, - connectedSubnetRoutePolicy: { - serializedName: "connectedSubnetRoutePolicy", - type: { - name: "Composite", - className: - "L3IsolationDomainPatchPropertiesConnectedSubnetRoutePolicy" - } - } - } - } -}; - -export const AggregateRouteConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AggregateRouteConfiguration", - modelProperties: { - ipv4Routes: { - serializedName: "ipv4Routes", + details: { + serializedName: "details", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AggregateRoute" + className: "ErrorDetail" } } } }, - ipv6Routes: { - serializedName: "ipv6Routes", + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AggregateRoute" + className: "ErrorAdditionalInfo" } } } @@ -642,47 +695,34 @@ export const AggregateRouteConfiguration: coreClient.CompositeMapper = { } }; -export const AggregateRoute: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AggregateRoute", - modelProperties: { - prefix: { - serializedName: "prefix", - type: { - name: "String" - } - } - } - } -}; - -export const L3IsolationDomainPatchPropertiesConnectedSubnetRoutePolicy: coreClient.CompositeMapper = { +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L3IsolationDomainPatchPropertiesConnectedSubnetRoutePolicy", + className: "ErrorAdditionalInfo", modelProperties: { - exportRoutePolicyId: { - serializedName: "exportRoutePolicyId", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - administrativeState: { - serializedName: "administrativeState", + info: { + serializedName: "info", readOnly: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } } } } }; -export const L3IsolationDomainPatch: coreClient.CompositeMapper = { +export const TagsUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L3IsolationDomainPatch", + className: "TagsUpdate", modelProperties: { tags: { serializedName: "tags", @@ -690,50 +730,15 @@ export const L3IsolationDomainPatch: coreClient.CompositeMapper = { name: "Dictionary", value: { type: { name: "String" } } } - }, - redistributeConnectedSubnets: { - defaultValue: "True", - serializedName: "properties.redistributeConnectedSubnets", - type: { - name: "String" - } - }, - redistributeStaticRoutes: { - defaultValue: "False", - serializedName: "properties.redistributeStaticRoutes", - type: { - name: "String" - } - }, - aggregateRouteConfiguration: { - serializedName: "properties.aggregateRouteConfiguration", - type: { - name: "Composite", - className: "AggregateRouteConfiguration" - } - }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - connectedSubnetRoutePolicy: { - serializedName: "properties.connectedSubnetRoutePolicy", - type: { - name: "Composite", - className: - "L3IsolationDomainPatchPropertiesConnectedSubnetRoutePolicy" - } } } } }; -export const L3IsolationDomainsListResult: coreClient.CompositeMapper = { +export const AccessControlListsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L3IsolationDomainsListResult", + className: "AccessControlListsListResult", modelProperties: { value: { serializedName: "value", @@ -742,7 +747,7 @@ export const L3IsolationDomainsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "L3IsolationDomain" + className: "AccessControlList" } } } @@ -757,68 +762,33 @@ export const L3IsolationDomainsListResult: coreClient.CompositeMapper = { } }; -export const InternalNetworkPatchableProperties: coreClient.CompositeMapper = { +export const EnableDisableOnResources: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InternalNetworkPatchableProperties", + className: "EnableDisableOnResources", modelProperties: { - mtu: { - defaultValue: 1500, - constraints: { - InclusiveMaximum: 9000, - InclusiveMinimum: 1500 - }, - serializedName: "mtu", - type: { - name: "Number" - } - }, - connectedIPv4Subnets: { - serializedName: "connectedIPv4Subnets", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectedSubnet" - } - } - } - }, - connectedIPv6Subnets: { - serializedName: "connectedIPv6Subnets", + resourceIds: { + serializedName: "resourceIds", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ConnectedSubnet" + name: "String" } } } - }, - staticRouteConfiguration: { - serializedName: "staticRouteConfiguration", - type: { - name: "Composite", - className: "StaticRouteConfiguration" - } - }, - bgpConfiguration: { - serializedName: "bgpConfiguration", - type: { - name: "Composite", - className: "BgpConfiguration" - } - }, - importRoutePolicyId: { - serializedName: "importRoutePolicyId", - type: { - name: "String" - } - }, - exportRoutePolicyId: { - serializedName: "exportRoutePolicyId", + } + } + } +}; + +export const InternetGatewayPatchableProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InternetGatewayPatchableProperties", + modelProperties: { + internetGatewayRuleId: { + serializedName: "internetGatewayRuleId", type: { name: "String" } @@ -827,206 +797,178 @@ export const InternalNetworkPatchableProperties: coreClient.CompositeMapper = { } }; -export const StaticRouteConfiguration: coreClient.CompositeMapper = { +export const InternetGatewaysListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StaticRouteConfiguration", + className: "InternetGatewaysListResult", modelProperties: { - bfdConfiguration: { - serializedName: "bfdConfiguration", - type: { - name: "Composite", - className: "BfdConfiguration" - } - }, - ipv4Routes: { - serializedName: "ipv4Routes", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "StaticRouteProperties" + className: "InternetGateway" } } } }, - ipv6Routes: { - serializedName: "ipv6Routes", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "StaticRouteProperties" - } - } + name: "String" } } } } }; -export const BfdConfiguration: coreClient.CompositeMapper = { +export const RuleProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BfdConfiguration", + className: "RuleProperties", modelProperties: { - administrativeState: { - serializedName: "administrativeState", - readOnly: true, + action: { + serializedName: "action", + required: true, type: { name: "String" } }, - interval: { - serializedName: "interval", - readOnly: true, - type: { - name: "Number" - } - }, - multiplier: { - serializedName: "multiplier", - readOnly: true, + addressList: { + constraints: { + MinItems: 1 + }, + serializedName: "addressList", + required: true, type: { - name: "Number" + name: "Sequence", + element: { + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } } } } } }; -export const StaticRouteProperties: coreClient.CompositeMapper = { +export const InternetGatewayRulesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StaticRouteProperties", + className: "InternetGatewayRulesListResult", modelProperties: { - prefix: { - serializedName: "prefix", - required: true, - type: { - name: "String" - } - }, - nextHop: { - serializedName: "nextHop", - required: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "InternetGatewayRule" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const NeighborAddress: coreClient.CompositeMapper = { +export const IpCommunityPatchableProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NeighborAddress", + className: "IpCommunityPatchableProperties", modelProperties: { - address: { - serializedName: "address", - type: { - name: "String" - } - }, - operationalState: { - serializedName: "operationalState", - readOnly: true, + ipCommunityRules: { + serializedName: "ipCommunityRules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpCommunityRule" + } + } } } } } }; -export const InternalNetworkPatch: coreClient.CompositeMapper = { +export const IpCommunityRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InternalNetworkPatch", + className: "IpCommunityRule", modelProperties: { - annotation: { - serializedName: "properties.annotation", + action: { + serializedName: "action", + required: true, type: { name: "String" } }, - mtu: { - defaultValue: 1500, + sequenceNumber: { constraints: { - InclusiveMaximum: 9000, - InclusiveMinimum: 1500 + InclusiveMaximum: 4294967295, + InclusiveMinimum: 1 }, - serializedName: "properties.mtu", + serializedName: "sequenceNumber", + required: true, type: { name: "Number" } }, - connectedIPv4Subnets: { - serializedName: "properties.connectedIPv4Subnets", + wellKnownCommunities: { + constraints: { + UniqueItems: true + }, + serializedName: "wellKnownCommunities", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ConnectedSubnet" + name: "String" } } } }, - connectedIPv6Subnets: { - serializedName: "properties.connectedIPv6Subnets", + communityMembers: { + constraints: { + MinItems: 1 + }, + serializedName: "communityMembers", + required: true, type: { name: "Sequence", element: { + constraints: { + MinLength: 1 + }, type: { - name: "Composite", - className: "ConnectedSubnet" + name: "String" } } } - }, - staticRouteConfiguration: { - serializedName: "properties.staticRouteConfiguration", - type: { - name: "Composite", - className: "StaticRouteConfiguration" - } - }, - bgpConfiguration: { - serializedName: "properties.bgpConfiguration", - type: { - name: "Composite", - className: "BgpConfiguration" - } - }, - importRoutePolicyId: { - serializedName: "properties.importRoutePolicyId", - type: { - name: "String" - } - }, - exportRoutePolicyId: { - serializedName: "properties.exportRoutePolicyId", - type: { - name: "String" - } } } } }; -export const InternalNetworksList: coreClient.CompositeMapper = { +export const IpCommunitiesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InternalNetworksList", + className: "IpCommunitiesListResult", modelProperties: { value: { serializedName: "value", @@ -1035,7 +977,7 @@ export const InternalNetworksList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InternalNetwork" + className: "IpCommunity" } } } @@ -1050,27 +992,63 @@ export const InternalNetworksList: coreClient.CompositeMapper = { } }; -export const OptionBProperties: coreClient.CompositeMapper = { +export const IpExtendedCommunityPatchableProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OptionBProperties", + className: "IpExtendedCommunityPatchableProperties", modelProperties: { - importRouteTargets: { - serializedName: "importRouteTargets", + ipExtendedCommunityRules: { + serializedName: "ipExtendedCommunityRules", + required: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "IpExtendedCommunityRule" } } } + } + } + } +}; + +export const IpExtendedCommunityRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpExtendedCommunityRule", + modelProperties: { + action: { + serializedName: "action", + required: true, + type: { + name: "String" + } }, - exportRouteTargets: { - serializedName: "exportRouteTargets", + sequenceNumber: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 1 + }, + serializedName: "sequenceNumber", + required: true, + type: { + name: "Number" + } + }, + routeTargets: { + constraints: { + MinItems: 1 + }, + serializedName: "routeTargets", + required: true, type: { name: "Sequence", element: { + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -1081,31 +1059,25 @@ export const OptionBProperties: coreClient.CompositeMapper = { } }; -export const Layer3IpPrefixProperties: coreClient.CompositeMapper = { +export const IpExtendedCommunityListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Layer3IpPrefixProperties", + className: "IpExtendedCommunityListResult", modelProperties: { - primaryIpv4Prefix: { - serializedName: "primaryIpv4Prefix", - type: { - name: "String" - } - }, - primaryIpv6Prefix: { - serializedName: "primaryIpv6Prefix", - type: { - name: "String" - } - }, - secondaryIpv4Prefix: { - serializedName: "secondaryIpv4Prefix", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpExtendedCommunity" + } + } } }, - secondaryIpv6Prefix: { - serializedName: "secondaryIpv6Prefix", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -1114,45 +1086,65 @@ export const Layer3IpPrefixProperties: coreClient.CompositeMapper = { } }; -export const ExternalNetworkPatch: coreClient.CompositeMapper = { +export const IpPrefixPatchableProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalNetworkPatch", + className: "IpPrefixPatchableProperties", modelProperties: { - annotation: { - serializedName: "properties.annotation", + ipPrefixRules: { + serializedName: "ipPrefixRules", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpPrefixRule" + } + } } - }, - peeringOption: { - serializedName: "properties.peeringOption", + } + } + } +}; + +export const IpPrefixRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpPrefixRule", + modelProperties: { + action: { + serializedName: "action", + required: true, type: { name: "String" } }, - optionBProperties: { - serializedName: "properties.optionBProperties", + sequenceNumber: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 1 + }, + serializedName: "sequenceNumber", + required: true, type: { - name: "Composite", - className: "OptionBProperties" + name: "Number" } }, - optionAProperties: { - serializedName: "properties.optionAProperties", + networkPrefix: { + serializedName: "networkPrefix", + required: true, type: { - name: "Composite", - className: "Layer3OptionAProperties" + name: "String" } }, - importRoutePolicyId: { - serializedName: "properties.importRoutePolicyId", + condition: { + serializedName: "condition", type: { name: "String" } }, - exportRoutePolicyId: { - serializedName: "properties.exportRoutePolicyId", + subnetMaskLength: { + serializedName: "subnetMaskLength", type: { name: "String" } @@ -1161,39 +1153,25 @@ export const ExternalNetworkPatch: coreClient.CompositeMapper = { } }; -export const ExternalNetworkPatchableProperties: coreClient.CompositeMapper = { +export const IpPrefixesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalNetworkPatchableProperties", + className: "IpPrefixesListResult", modelProperties: { - peeringOption: { - serializedName: "peeringOption", - type: { - name: "String" - } - }, - optionBProperties: { - serializedName: "optionBProperties", - type: { - name: "Composite", - className: "OptionBProperties" - } - }, - optionAProperties: { - serializedName: "optionAProperties", - type: { - name: "Composite", - className: "Layer3OptionAProperties" - } - }, - importRoutePolicyId: { - serializedName: "importRoutePolicyId", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpPrefix" + } + } } }, - exportRoutePolicyId: { - serializedName: "exportRoutePolicyId", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -1202,10 +1180,10 @@ export const ExternalNetworkPatchableProperties: coreClient.CompositeMapper = { } }; -export const ExternalNetworksList: coreClient.CompositeMapper = { +export const L2IsolationDomainsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalNetworksList", + className: "L2IsolationDomainsListResult", modelProperties: { value: { serializedName: "value", @@ -1214,7 +1192,7 @@ export const ExternalNetworksList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ExternalNetwork" + className: "L2IsolationDomain" } } } @@ -1229,148 +1207,148 @@ export const ExternalNetworksList: coreClient.CompositeMapper = { } }; -export const SupportedVersionProperties: coreClient.CompositeMapper = { +export const L3IsolationDomainPatchableProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SupportedVersionProperties", + className: "L3IsolationDomainPatchableProperties", modelProperties: { - version: { - serializedName: "version", - type: { - name: "String" - } - }, - vendorOsVersion: { - serializedName: "vendorOsVersion", + redistributeConnectedSubnets: { + defaultValue: "True", + serializedName: "redistributeConnectedSubnets", type: { name: "String" } }, - vendorFirmwareVersion: { - serializedName: "vendorFirmwareVersion", + redistributeStaticRoutes: { + defaultValue: "False", + serializedName: "redistributeStaticRoutes", type: { name: "String" } }, - isCurrent: { - serializedName: "isCurrent", + aggregateRouteConfiguration: { + serializedName: "aggregateRouteConfiguration", type: { - name: "String" + name: "Composite", + className: "AggregateRouteConfiguration" } }, - isTest: { - serializedName: "isTest", + connectedSubnetRoutePolicy: { + serializedName: "connectedSubnetRoutePolicy", type: { - name: "String" + name: "Composite", + className: "ConnectedSubnetRoutePolicy" } } } } }; -export const DeviceLimits: coreClient.CompositeMapper = { +export const AggregateRouteConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeviceLimits", + className: "AggregateRouteConfiguration", modelProperties: { - physicalInterfaceCount: { - serializedName: "physicalInterfaceCount", + ipv4Routes: { + constraints: { + MinItems: 1 + }, + serializedName: "ipv4Routes", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AggregateRoute" + } + } } }, - maxSubInterfaces: { - serializedName: "maxSubInterfaces", - type: { - name: "Number" - } - }, - maxTunnelInterfaces: { - serializedName: "maxTunnelInterfaces", - type: { - name: "Number" - } - }, - maxVirtualRouterFunctions: { - serializedName: "maxVirtualRouterFunctions", - type: { - name: "Number" - } - }, - maxBorderGatewayProtocolPeers: { - serializedName: "maxBorderGatewayProtocolPeers", - type: { - name: "Number" - } - }, - maxBidirectionalForwardingDetectionPeers: { - serializedName: "maxBidirectionalForwardingDetectionPeers", + ipv6Routes: { + constraints: { + MinItems: 1 + }, + serializedName: "ipv6Routes", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AggregateRoute" + } + } } } } } }; -export const DeviceInterfaceProperties: coreClient.CompositeMapper = { +export const AggregateRoute: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeviceInterfaceProperties", + className: "AggregateRoute", modelProperties: { - identifier: { - serializedName: "identifier", + prefix: { + constraints: { + MinLength: 1 + }, + serializedName: "prefix", + required: true, type: { name: "String" } - }, - interfaceType: { - serializedName: "interfaceType", + } + } + } +}; + +export const ConnectedSubnetRoutePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectedSubnetRoutePolicy", + modelProperties: { + exportRoutePolicyId: { + serializedName: "exportRoutePolicyId", type: { name: "String" } }, - supportedConnectorTypes: { - serializedName: "supportedConnectorTypes", + exportRoutePolicy: { + serializedName: "exportRoutePolicy", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SupportedConnectorProperties" - } - } + name: "Composite", + className: "L3ExportRoutePolicy" } } } } }; -export const SupportedConnectorProperties: coreClient.CompositeMapper = { +export const L3ExportRoutePolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SupportedConnectorProperties", + className: "L3ExportRoutePolicy", modelProperties: { - connectorType: { - serializedName: "connectorType", + exportIpv4RoutePolicyId: { + serializedName: "exportIpv4RoutePolicyId", type: { name: "String" } }, - maxSpeedInMbps: { - serializedName: "maxSpeedInMbps", + exportIpv6RoutePolicyId: { + serializedName: "exportIpv6RoutePolicyId", type: { - name: "Number" + name: "String" } } } } }; -export const NetworkDeviceSkusListResult: coreClient.CompositeMapper = { +export const L3IsolationDomainsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkDeviceSkusListResult", + className: "L3IsolationDomainsListResult", modelProperties: { value: { serializedName: "value", @@ -1379,7 +1357,7 @@ export const NetworkDeviceSkusListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkDeviceSku" + className: "L3IsolationDomain" } } } @@ -1394,53 +1372,54 @@ export const NetworkDeviceSkusListResult: coreClient.CompositeMapper = { } }; -export const NetworkDevicePatchableProperties: coreClient.CompositeMapper = { +export const BfdConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkDevicePatchableProperties", + className: "BfdConfiguration", modelProperties: { - hostName: { - serializedName: "hostName", + administrativeState: { + defaultValue: "Disabled", + serializedName: "administrativeState", + readOnly: true, type: { name: "String" } }, - serialNumber: { - serializedName: "serialNumber", + intervalInMilliSeconds: { + defaultValue: 300, + serializedName: "intervalInMilliSeconds", type: { - name: "String" + name: "Number" + } + }, + multiplier: { + defaultValue: 5, + serializedName: "multiplier", + type: { + name: "Number" } } } } }; -export const NetworkDevicePatchParameters: coreClient.CompositeMapper = { +export const NeighborAddress: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkDevicePatchParameters", + className: "NeighborAddress", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - }, - annotation: { - serializedName: "properties.annotation", - type: { - name: "String" - } - }, - hostName: { - serializedName: "properties.hostName", + address: { + constraints: { + MinLength: 1 + }, + serializedName: "address", type: { name: "String" } }, - serialNumber: { - serializedName: "properties.serialNumber", + configurationState: { + serializedName: "configurationState", + readOnly: true, type: { name: "String" } @@ -1449,83 +1428,97 @@ export const NetworkDevicePatchParameters: coreClient.CompositeMapper = { } }; -export const NetworkDevicesListResult: coreClient.CompositeMapper = { +export const StaticRouteConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkDevicesListResult", + className: "StaticRouteConfiguration", modelProperties: { - value: { - serializedName: "value", + bfdConfiguration: { + serializedName: "bfdConfiguration", + type: { + name: "Composite", + className: "BfdConfiguration" + } + }, + ipv4Routes: { + constraints: { + MinItems: 1 + }, + serializedName: "ipv4Routes", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NetworkDevice" + className: "StaticRouteProperties" } } } }, - nextLink: { - serializedName: "nextLink", + ipv6Routes: { + constraints: { + MinItems: 1 + }, + serializedName: "ipv6Routes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StaticRouteProperties" + } + } } } } } }; -export const NetworkInterfacePatch: coreClient.CompositeMapper = { +export const StaticRouteProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkInterfacePatch", + className: "StaticRouteProperties", modelProperties: { - annotation: { - serializedName: "properties.annotation", + prefix: { + constraints: { + MinLength: 1 + }, + serializedName: "prefix", + required: true, type: { name: "String" } - } - } - } -}; - -export const NetworkInterfacesList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkInterfacesList", - modelProperties: { - value: { - serializedName: "value", + }, + nextHop: { + constraints: { + MinItems: 1 + }, + serializedName: "nextHop", + required: true, type: { name: "Sequence", element: { + constraints: { + MinLength: 1 + }, type: { - name: "Composite", - className: "NetworkInterface" + name: "String" } } } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } } } } }; -export const UpdateVersionProperties: coreClient.CompositeMapper = { +export const ExtensionEnumProperty: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateVersionProperties", + className: "ExtensionEnumProperty", modelProperties: { - skuVersion: { - serializedName: "skuVersion", - required: true, + extension: { + defaultValue: "NoExtension", + serializedName: "extension", type: { name: "String" } @@ -1534,210 +1527,292 @@ export const UpdateVersionProperties: coreClient.CompositeMapper = { } }; -export const SupportPackageProperties: coreClient.CompositeMapper = { +export const InternalNetworkPatchableProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SupportPackageProperties", + className: "InternalNetworkPatchableProperties", modelProperties: { - supportPackageURL: { - serializedName: "supportPackageURL", - required: true, + mtu: { + defaultValue: 1500, + constraints: { + InclusiveMaximum: 9200, + InclusiveMinimum: 64 + }, + serializedName: "mtu", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const UpdatePowerCycleProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdatePowerCycleProperties", - modelProperties: { - powerEnd: { - serializedName: "powerEnd", - required: true, + }, + connectedIPv4Subnets: { + constraints: { + MinItems: 1 + }, + serializedName: "connectedIPv4Subnets", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectedSubnet" + } + } } }, - state: { - serializedName: "state", - required: true, + connectedIPv6Subnets: { + constraints: { + MinItems: 1 + }, + serializedName: "connectedIPv6Subnets", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectedSubnet" + } + } } - } - } - } -}; - -export const GetDeviceStatusProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GetDeviceStatusProperties", - modelProperties: { - operationalStatus: { - serializedName: "operationalStatus", - required: true, + }, + importRoutePolicyId: { + serializedName: "importRoutePolicyId", type: { name: "String" } }, - powerCycleState: { - serializedName: "powerCycleState", - required: true, + exportRoutePolicyId: { + serializedName: "exportRoutePolicyId", type: { name: "String" } }, - serialNumber: { - serializedName: "serialNumber", - required: true, + importRoutePolicy: { + serializedName: "importRoutePolicy", type: { - name: "String" + name: "Composite", + className: "ImportRoutePolicy" } - } - } - } -}; - -export const GetStaticInterfaceMapsPropertiesItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GetStaticInterfaceMapsPropertiesItem", - modelProperties: { - name: { - serializedName: "name", + }, + exportRoutePolicy: { + serializedName: "exportRoutePolicy", type: { - name: "String" + name: "Composite", + className: "ExportRoutePolicy" } }, - description: { - serializedName: "description", + ingressAclId: { + serializedName: "ingressAclId", type: { name: "String" } }, - identifier: { - serializedName: "identifier", + egressAclId: { + serializedName: "egressAclId", type: { name: "String" } }, - interfaceType: { - serializedName: "interfaceType", + isMonitoringEnabled: { + defaultValue: "False", + serializedName: "isMonitoringEnabled", type: { name: "String" } - }, - connectorType: { - serializedName: "connectorType", + } + } + } +}; + +export const ImportRoutePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImportRoutePolicy", + modelProperties: { + importIpv4RoutePolicyId: { + serializedName: "importIpv4RoutePolicyId", type: { name: "String" } }, - connectedTo: { - serializedName: "connectedTo", + importIpv6RoutePolicyId: { + serializedName: "importIpv6RoutePolicyId", type: { name: "String" } - }, - speed: { - serializedName: "speed", + } + } + } +}; + +export const ExportRoutePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExportRoutePolicy", + modelProperties: { + exportIpv4RoutePolicyId: { + serializedName: "exportIpv4RoutePolicyId", type: { - name: "Number" + name: "String" } }, - channelGroupId: { - serializedName: "channelGroupId", + exportIpv6RoutePolicyId: { + serializedName: "exportIpv6RoutePolicyId", type: { - name: "Number" + name: "String" } } } } }; -export const InterfaceStatus: coreClient.CompositeMapper = { +export const InternalNetworkPatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InterfaceStatus", + className: "InternalNetworkPatch", modelProperties: { - administrativeState: { - serializedName: "administrativeState", - readOnly: true, + annotation: { + serializedName: "properties.annotation", + type: { + name: "String" + } + }, + mtu: { + defaultValue: 1500, + constraints: { + InclusiveMaximum: 9200, + InclusiveMinimum: 64 + }, + serializedName: "properties.mtu", + type: { + name: "Number" + } + }, + connectedIPv4Subnets: { + constraints: { + MinItems: 1 + }, + serializedName: "properties.connectedIPv4Subnets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectedSubnet" + } + } + } + }, + connectedIPv6Subnets: { + constraints: { + MinItems: 1 + }, + serializedName: "properties.connectedIPv6Subnets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectedSubnet" + } + } + } + }, + importRoutePolicyId: { + serializedName: "properties.importRoutePolicyId", type: { name: "String" } }, - operationalStatus: { - serializedName: "operationalStatus", + exportRoutePolicyId: { + serializedName: "properties.exportRoutePolicyId", type: { name: "String" } }, - phyStatus: { - serializedName: "phyStatus", + importRoutePolicy: { + serializedName: "properties.importRoutePolicy", + type: { + name: "Composite", + className: "ImportRoutePolicy" + } + }, + exportRoutePolicy: { + serializedName: "properties.exportRoutePolicy", + type: { + name: "Composite", + className: "ExportRoutePolicy" + } + }, + ingressAclId: { + serializedName: "properties.ingressAclId", type: { name: "String" } }, - transceiverStatus: { - serializedName: "transceiverStatus", + egressAclId: { + serializedName: "properties.egressAclId", type: { name: "String" } }, - connectedTo: { - serializedName: "connectedTo", + isMonitoringEnabled: { + defaultValue: "False", + serializedName: "properties.isMonitoringEnabled", type: { name: "String" } + }, + bgpConfiguration: { + serializedName: "properties.bgpConfiguration", + type: { + name: "Composite", + className: "BgpConfiguration" + } + }, + staticRouteConfiguration: { + serializedName: "properties.staticRouteConfiguration", + type: { + name: "Composite", + className: "StaticRouteConfiguration" + } } } } }; -export const InfrastructureServices: coreClient.CompositeMapper = { +export const InternalNetworksList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InfrastructureServices", + className: "InternalNetworksList", modelProperties: { - ipv4AddressSpaces: { - serializedName: "ipv4AddressSpaces", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "InternalNetwork" } } } }, - ipv6AddressSpaces: { - serializedName: "ipv6AddressSpaces", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const WorkloadServices: coreClient.CompositeMapper = { +export const L3OptionBProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkloadServices", + className: "L3OptionBProperties", modelProperties: { - ipv4AddressSpaces: { - serializedName: "ipv4AddressSpaces", + importRouteTargets: { + serializedName: "importRouteTargets", type: { name: "Sequence", element: { @@ -1747,8 +1822,8 @@ export const WorkloadServices: coreClient.CompositeMapper = { } } }, - ipv6AddressSpaces: { - serializedName: "ipv6AddressSpaces", + exportRouteTargets: { + serializedName: "exportRouteTargets", type: { name: "Sequence", element: { @@ -1757,57 +1832,87 @@ export const WorkloadServices: coreClient.CompositeMapper = { } } } + }, + routeTargets: { + serializedName: "routeTargets", + type: { + name: "Composite", + className: "RouteTargetInformation" + } } } } }; -export const ManagedResourceGroupConfiguration: coreClient.CompositeMapper = { +export const RouteTargetInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ManagedResourceGroupConfiguration", + className: "RouteTargetInformation", modelProperties: { - name: { - serializedName: "name", + importIpv4RouteTargets: { + constraints: { + MinItems: 1 + }, + serializedName: "importIpv4RouteTargets", type: { - name: "String" + name: "Sequence", + element: { + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } } }, - location: { - serializedName: "location", + importIpv6RouteTargets: { + constraints: { + MinItems: 1 + }, + serializedName: "importIpv6RouteTargets", type: { - name: "String" + name: "Sequence", + element: { + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } } - } - } - } -}; - -export const NetworkFabricControllerPatchableProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkFabricControllerPatchableProperties", - modelProperties: { - infrastructureExpressRouteConnections: { - serializedName: "infrastructureExpressRouteConnections", + }, + exportIpv4RouteTargets: { + constraints: { + MinItems: 1 + }, + serializedName: "exportIpv4RouteTargets", type: { name: "Sequence", element: { + constraints: { + MinLength: 1 + }, type: { - name: "Composite", - className: "ExpressRouteConnectionInformation" + name: "String" } } } }, - workloadExpressRouteConnections: { - serializedName: "workloadExpressRouteConnections", + exportIpv6RouteTargets: { + constraints: { + MinItems: 1 + }, + serializedName: "exportIpv6RouteTargets", type: { name: "Sequence", element: { + constraints: { + MinLength: 1 + }, type: { - name: "Composite", - className: "ExpressRouteConnectionInformation" + name: "String" } } } @@ -1816,21 +1921,31 @@ export const NetworkFabricControllerPatchableProperties: coreClient.CompositeMap } }; -export const ExpressRouteConnectionInformation: coreClient.CompositeMapper = { +export const Layer3IpPrefixProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExpressRouteConnectionInformation", + className: "Layer3IpPrefixProperties", modelProperties: { - expressRouteCircuitId: { - serializedName: "expressRouteCircuitId", - required: true, + primaryIpv4Prefix: { + serializedName: "primaryIpv4Prefix", type: { name: "String" } }, - expressRouteAuthorizationKey: { - serializedName: "expressRouteAuthorizationKey", - required: true, + primaryIpv6Prefix: { + serializedName: "primaryIpv6Prefix", + type: { + name: "String" + } + }, + secondaryIpv4Prefix: { + serializedName: "secondaryIpv4Prefix", + type: { + name: "String" + } + }, + secondaryIpv6Prefix: { + serializedName: "secondaryIpv6Prefix", type: { name: "String" } @@ -1839,92 +1954,68 @@ export const ExpressRouteConnectionInformation: coreClient.CompositeMapper = { } }; -export const NetworkFabricControllerPatch: coreClient.CompositeMapper = { +export const L3OptionAProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkFabricControllerPatch", + className: "L3OptionAProperties", modelProperties: { - tags: { - serializedName: "tags", + mtu: { + defaultValue: 1500, + constraints: { + InclusiveMaximum: 9200, + InclusiveMinimum: 64 + }, + serializedName: "mtu", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Number" } }, - infrastructureExpressRouteConnections: { - serializedName: "properties.infrastructureExpressRouteConnections", + vlanId: { + constraints: { + InclusiveMaximum: 4094, + InclusiveMinimum: 501 + }, + serializedName: "vlanId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExpressRouteConnectionInformation" - } - } + name: "Number" } }, - workloadExpressRouteConnections: { - serializedName: "properties.workloadExpressRouteConnections", + fabricASN: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 1 + }, + serializedName: "fabricASN", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExpressRouteConnectionInformation" - } - } + name: "Number" } - } - } - } -}; - -export const NetworkFabricControllersListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkFabricControllersListResult", - modelProperties: { - value: { - serializedName: "value", + }, + peerASN: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 1 + }, + serializedName: "peerASN", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkFabricController" - } - } + name: "Number" } }, - nextLink: { - serializedName: "nextLink", + bfdConfiguration: { + serializedName: "bfdConfiguration", type: { - name: "String" + name: "Composite", + className: "BfdConfiguration" } - } - } - } -}; - -export const NetworkFabricSkusListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkFabricSkusListResult", - modelProperties: { - value: { - serializedName: "value", + }, + ingressAclId: { + serializedName: "ingressAclId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkFabricSku" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + egressAclId: { + serializedName: "egressAclId", type: { name: "String" } @@ -1933,258 +2024,273 @@ export const NetworkFabricSkusListResult: coreClient.CompositeMapper = { } }; -export const TerminalServerPatchableProperties: coreClient.CompositeMapper = { +export const ExternalNetworkPatchableProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TerminalServerPatchableProperties", + className: "ExternalNetworkPatchableProperties", modelProperties: { - username: { - serializedName: "username", + importRoutePolicyId: { + serializedName: "importRoutePolicyId", type: { name: "String" } }, - password: { - serializedName: "password", + exportRoutePolicyId: { + serializedName: "exportRoutePolicyId", type: { name: "String" } }, - serialNumber: { - serializedName: "serialNumber", - type: { - name: "String" - } - } - } - } -}; - -export const ManagementNetworkConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagementNetworkConfiguration", - modelProperties: { - infrastructureVpnConfiguration: { - serializedName: "infrastructureVpnConfiguration", + importRoutePolicy: { + serializedName: "importRoutePolicy", type: { name: "Composite", - className: "VpnConfigurationProperties" + className: "ImportRoutePolicy" } }, - workloadVpnConfiguration: { - serializedName: "workloadVpnConfiguration", + exportRoutePolicy: { + serializedName: "exportRoutePolicy", type: { name: "Composite", - className: "VpnConfigurationProperties" + className: "ExportRoutePolicy" } } } } }; -export const VpnConfigurationProperties: coreClient.CompositeMapper = { +export const ExternalNetworkPatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VpnConfigurationProperties", + className: "ExternalNetworkPatch", modelProperties: { - administrativeState: { - serializedName: "administrativeState", - readOnly: true, + annotation: { + serializedName: "properties.annotation", type: { name: "String" } }, - networkToNetworkInterconnectId: { - serializedName: "networkToNetworkInterconnectId", - readOnly: true, + importRoutePolicyId: { + serializedName: "properties.importRoutePolicyId", + type: { + name: "String" + } + }, + exportRoutePolicyId: { + serializedName: "properties.exportRoutePolicyId", type: { name: "String" } }, + importRoutePolicy: { + serializedName: "properties.importRoutePolicy", + type: { + name: "Composite", + className: "ImportRoutePolicy" + } + }, + exportRoutePolicy: { + serializedName: "properties.exportRoutePolicy", + type: { + name: "Composite", + className: "ExportRoutePolicy" + } + }, peeringOption: { - serializedName: "peeringOption", - required: true, + serializedName: "properties.peeringOption", type: { name: "String" } }, optionBProperties: { - serializedName: "optionBProperties", + serializedName: "properties.optionBProperties", type: { name: "Composite", - className: "OptionBPropertiesAutoGenerated" + className: "L3OptionBProperties" } }, optionAProperties: { - serializedName: "optionAProperties", + serializedName: "properties.optionAProperties", type: { name: "Composite", - className: "OptionAProperties" + className: "ExternalNetworkPatchPropertiesOptionAProperties" } } } } }; -export const OptionBPropertiesAutoGenerated: coreClient.CompositeMapper = { +export const ExternalNetworksList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OptionBPropertiesAutoGenerated", + className: "ExternalNetworksList", modelProperties: { - importRouteTargets: { - serializedName: "importRouteTargets", - required: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ExternalNetwork" } } } }, - exportRouteTargets: { - serializedName: "exportRouteTargets", - required: true, + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const FabricBfdConfiguration: coreClient.CompositeMapper = { +export const NeighborGroupPatchableProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FabricBfdConfiguration", + className: "NeighborGroupPatchableProperties", modelProperties: { - interval: { - serializedName: "interval", - readOnly: true, - type: { - name: "Number" - } - }, - multiplier: { - serializedName: "multiplier", - readOnly: true, + destination: { + serializedName: "destination", type: { - name: "Number" + name: "Composite", + className: "NeighborGroupDestination" } } } } }; -export const NetworkFabricPatchableProperties: coreClient.CompositeMapper = { +export const NeighborGroupDestination: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkFabricPatchableProperties", + className: "NeighborGroupDestination", modelProperties: { - racks: { - serializedName: "racks", - readOnly: true, + ipv4Addresses: { + constraints: { + MaxItems: 16 + }, + serializedName: "ipv4Addresses", type: { name: "Sequence", element: { + constraints: { + MinLength: 1 + }, type: { name: "String" } } } }, - l2IsolationDomains: { - serializedName: "l2IsolationDomains", - readOnly: true, + ipv6Addresses: { + constraints: { + MaxItems: 16 + }, + serializedName: "ipv6Addresses", type: { name: "Sequence", element: { + constraints: { + MinLength: 1 + }, type: { name: "String" } } } - }, - l3IsolationDomains: { - serializedName: "l3IsolationDomains", - readOnly: true, + } + } + } +}; + +export const NeighborGroupsListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NeighborGroupsListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "NeighborGroup" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const NetworkFabricPatchParameters: coreClient.CompositeMapper = { +export const SupportedVersionProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkFabricPatchParameters", + className: "SupportedVersionProperties", modelProperties: { - tags: { - serializedName: "tags", + version: { + serializedName: "version", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - annotation: { - serializedName: "properties.annotation", + vendorOsVersion: { + serializedName: "vendorOsVersion", type: { name: "String" } }, - terminalServerConfiguration: { - serializedName: "properties.terminalServerConfiguration", + vendorFirmwareVersion: { + serializedName: "vendorFirmwareVersion", type: { - name: "Composite", - className: "TerminalServerPatchableProperties" + name: "String" } }, - racks: { - serializedName: "properties.racks", - readOnly: true, + isDefault: { + serializedName: "isDefault", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - l2IsolationDomains: { - serializedName: "properties.l2IsolationDomains", - readOnly: true, + } + } + } +}; + +export const DeviceInterfaceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeviceInterfaceProperties", + modelProperties: { + identifier: { + serializedName: "identifier", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - l3IsolationDomains: { - serializedName: "properties.l3IsolationDomains", - readOnly: true, + interfaceType: { + serializedName: "interfaceType", + type: { + name: "String" + } + }, + supportedConnectorTypes: { + serializedName: "supportedConnectorTypes", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "SupportedConnectorProperties" } } } @@ -2193,26 +2299,31 @@ export const NetworkFabricPatchParameters: coreClient.CompositeMapper = { } }; -export const TerminalServerPatchParameters: coreClient.CompositeMapper = { +export const SupportedConnectorProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TerminalServerPatchParameters", + className: "SupportedConnectorProperties", modelProperties: { - terminalServerConfiguration: { - serializedName: "terminalServerConfiguration", + connectorType: { + serializedName: "connectorType", type: { - name: "Composite", - className: "TerminalServerPatchableProperties" + name: "String" + } + }, + maxSpeedInMbps: { + serializedName: "maxSpeedInMbps", + type: { + name: "Number" } } } } }; -export const NetworkFabricsListResult: coreClient.CompositeMapper = { +export const NetworkDeviceSkusListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkFabricsListResult", + className: "NetworkDeviceSkusListResult", modelProperties: { value: { serializedName: "value", @@ -2221,7 +2332,7 @@ export const NetworkFabricsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkFabric" + className: "NetworkDeviceSku" } } } @@ -2236,49 +2347,37 @@ export const NetworkFabricsListResult: coreClient.CompositeMapper = { } }; -export const Layer2Configuration: coreClient.CompositeMapper = { +export const NetworkDevicePatchableProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Layer2Configuration", + className: "NetworkDevicePatchableProperties", modelProperties: { - portCount: { - serializedName: "portCount", - type: { - name: "Number" - } - }, - mtu: { - defaultValue: 1500, + hostName: { constraints: { - InclusiveMaximum: 9000, - InclusiveMinimum: 1500 + MinLength: 1 }, - serializedName: "mtu", - required: true, + serializedName: "hostName", type: { - name: "Number" + name: "String" } }, - interfaces: { - serializedName: "interfaces", - readOnly: true, + serialNumber: { + constraints: { + MinLength: 1 + }, + serializedName: "serialNumber", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const NetworkToNetworkInterconnectsList: coreClient.CompositeMapper = { +export const NetworkDevicesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkToNetworkInterconnectsList", + className: "NetworkDevicesListResult", modelProperties: { value: { serializedName: "value", @@ -2287,7 +2386,7 @@ export const NetworkToNetworkInterconnectsList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkToNetworkInterconnect" + className: "NetworkDevice" } } } @@ -2302,37 +2401,25 @@ export const NetworkToNetworkInterconnectsList: coreClient.CompositeMapper = { } }; -export const NetworkDeviceRoleProperties: coreClient.CompositeMapper = { +export const NetworkInterfacePatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkDeviceRoleProperties", + className: "NetworkInterfacePatch", modelProperties: { - networkDeviceSkuName: { - serializedName: "networkDeviceSkuName", - type: { - name: "String" - } - }, - roleType: { - serializedName: "roleType", + annotation: { + serializedName: "properties.annotation", type: { name: "String" } - }, - rackSlot: { - serializedName: "rackSlot", - type: { - name: "Number" - } } } } }; -export const NetworkRackSkusListResult: coreClient.CompositeMapper = { +export const NetworkInterfacesList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkRackSkusListResult", + className: "NetworkInterfacesList", modelProperties: { value: { serializedName: "value", @@ -2341,7 +2428,7 @@ export const NetworkRackSkusListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkRackSku" + className: "NetworkInterface" } } } @@ -2356,48 +2443,28 @@ export const NetworkRackSkusListResult: coreClient.CompositeMapper = { } }; -export const NetworkRackPatch: coreClient.CompositeMapper = { +export const RebootProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkRackPatch", + className: "RebootProperties", modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Dictionary", - value: { type: { name: "any" } } - } - }, - tags: { - serializedName: "tags", + rebootType: { + serializedName: "rebootType", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } } } } }; -export const NetworkRacksListResult: coreClient.CompositeMapper = { +export const UpdateVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkRacksListResult", + className: "UpdateVersion", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkRack" - } - } - } - }, - nextLink: { - serializedName: "nextLink", + version: { + serializedName: "version", type: { name: "String" } @@ -2406,71 +2473,50 @@ export const NetworkRacksListResult: coreClient.CompositeMapper = { } }; -export const OperationListResult: coreClient.CompositeMapper = { +export const ControllerServices: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "ControllerServices", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + ipv4AddressSpaces: { + serializedName: "ipv4AddressSpaces", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "Operation" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + ipv6AddressSpaces: { + serializedName: "ipv6AddressSpaces", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const Operation: coreClient.CompositeMapper = { +export const ManagedResourceGroupConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "ManagedResourceGroupConfiguration", modelProperties: { name: { serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - isDataAction: { - serializedName: "isDataAction", - readOnly: true, - type: { - name: "Boolean" - } - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - }, - origin: { - serializedName: "origin", - readOnly: true, type: { name: "String" } }, - actionType: { - serializedName: "actionType", - readOnly: true, + location: { + serializedName: "location", type: { name: "String" } @@ -2479,35 +2525,54 @@ export const Operation: coreClient.CompositeMapper = { } }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const NetworkFabricControllerPatchableProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "NetworkFabricControllerPatchableProperties", modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, + infrastructureExpressRouteConnections: { + serializedName: "infrastructureExpressRouteConnections", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteConnectionInformation" + } + } } }, - resource: { - serializedName: "resource", - readOnly: true, + workloadExpressRouteConnections: { + serializedName: "workloadExpressRouteConnections", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteConnectionInformation" + } + } } - }, - operation: { - serializedName: "operation", - readOnly: true, + } + } + } +}; + +export const ExpressRouteConnectionInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRouteConnectionInformation", + modelProperties: { + expressRouteCircuitId: { + serializedName: "expressRouteCircuitId", + required: true, type: { name: "String" } }, - description: { - serializedName: "description", - readOnly: true, + expressRouteAuthorizationKey: { + serializedName: "expressRouteAuthorizationKey", + required: true, type: { name: "String" } @@ -2516,355 +2581,396 @@ export const OperationDisplay: coreClient.CompositeMapper = { } }; -export const IpCommunityIdList: coreClient.CompositeMapper = { +export const NetworkFabricControllersListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpCommunityIdList", + className: "NetworkFabricControllersListResult", modelProperties: { - ipCommunityIds: { - serializedName: "ipCommunityIds", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "NetworkFabricController" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const IpExtendedCommunityIdList: coreClient.CompositeMapper = { +export const NetworkFabricSkusListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpExtendedCommunityIdList", + className: "NetworkFabricSkusListResult", modelProperties: { - ipExtendedCommunityIds: { - serializedName: "ipExtendedCommunityIds", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "NetworkFabricSku" } } } - } - } - } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } }; -export const StatementActionProperties: coreClient.CompositeMapper = { +export const TerminalServerPatchableProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StatementActionProperties", + className: "TerminalServerPatchableProperties", modelProperties: { - localPreference: { + username: { constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 0 + MinLength: 1 }, - serializedName: "localPreference", - type: { - name: "Number" - } - }, - actionType: { - serializedName: "actionType", - required: true, + serializedName: "username", type: { name: "String" } }, - ipCommunityProperties: { - serializedName: "ipCommunityProperties", + password: { + constraints: { + MinLength: 1 + }, + serializedName: "password", type: { - name: "Composite", - className: "ActionIpCommunityProperties" + name: "String" } }, - ipExtendedCommunityProperties: { - serializedName: "ipExtendedCommunityProperties", + serialNumber: { + constraints: { + MinLength: 1 + }, + serializedName: "serialNumber", type: { - name: "Composite", - className: "ActionIpExtendedCommunityProperties" + name: "String" } } } } }; -export const IpCommunityAddOperationProperties: coreClient.CompositeMapper = { +export const ManagementNetworkConfigurationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpCommunityAddOperationProperties", + className: "ManagementNetworkConfigurationProperties", modelProperties: { - add: { - serializedName: "add", + infrastructureVpnConfiguration: { + serializedName: "infrastructureVpnConfiguration", type: { name: "Composite", - className: "IpCommunityIdList" + className: "VpnConfigurationProperties" } - } - } - } -}; - -export const IpCommunityDeleteOperationProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IpCommunityDeleteOperationProperties", - modelProperties: { - delete: { - serializedName: "delete", + }, + workloadVpnConfiguration: { + serializedName: "workloadVpnConfiguration", type: { name: "Composite", - className: "IpCommunityIdList" + className: "VpnConfigurationProperties" } } } } }; -export const IpCommunitySetOperationProperties: coreClient.CompositeMapper = { +export const VpnConfigurationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpCommunitySetOperationProperties", + className: "VpnConfigurationProperties", modelProperties: { - set: { - serializedName: "set", + networkToNetworkInterconnectId: { + serializedName: "networkToNetworkInterconnectId", type: { - name: "Composite", - className: "IpCommunityIdList" + name: "String" } - } - } - } -}; - -export const IpExtendedCommunityAddOperationProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IpExtendedCommunityAddOperationProperties", - modelProperties: { - add: { - serializedName: "add", + }, + administrativeState: { + serializedName: "administrativeState", + readOnly: true, type: { - name: "Composite", - className: "IpExtendedCommunityIdList" + name: "String" } - } - } - } -}; - -export const IpExtendedCommunityDeleteOperationProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IpExtendedCommunityDeleteOperationProperties", - modelProperties: { - delete: { - serializedName: "delete", + }, + peeringOption: { + serializedName: "peeringOption", + required: true, + type: { + name: "String" + } + }, + optionBProperties: { + serializedName: "optionBProperties", type: { name: "Composite", - className: "IpExtendedCommunityIdList" + className: "OptionBProperties" } - } - } - } -}; - -export const IpExtendedCommunitySetOperationProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IpExtendedCommunitySetOperationProperties", - modelProperties: { - set: { - serializedName: "set", + }, + optionAProperties: { + serializedName: "optionAProperties", type: { name: "Composite", - className: "IpExtendedCommunityIdList" + className: "VpnConfigurationPropertiesOptionAProperties" } } } } }; -export const RoutePolicyPatch: coreClient.CompositeMapper = { +export const OptionBProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoutePolicyPatch", + className: "OptionBProperties", modelProperties: { - tags: { - serializedName: "tags", + importRouteTargets: { + serializedName: "importRouteTargets", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "Sequence", + element: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const RoutePoliciesListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoutePoliciesListResult", - modelProperties: { - value: { - serializedName: "value", + }, + exportRouteTargets: { + serializedName: "exportRouteTargets", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RoutePolicy" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + routeTargets: { + serializedName: "routeTargets", type: { - name: "String" + name: "Composite", + className: "RouteTargetInformation" } } } } }; -export const ExpressRouteStatusDef: coreClient.CompositeMapper = { +export const OptionAProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExpressRouteStatusDef", + className: "OptionAProperties", modelProperties: { - expressRouteCircuitId: { - serializedName: "expressRouteCircuitId", + mtu: { + defaultValue: 1500, + constraints: { + InclusiveMaximum: 9200, + InclusiveMinimum: 64 + }, + serializedName: "mtu", type: { - name: "String" + name: "Number" } }, - expressRouteStatus: { - serializedName: "expressRouteStatus", + vlanId: { + constraints: { + InclusiveMaximum: 4094, + InclusiveMinimum: 501 + }, + serializedName: "vlanId", type: { - name: "String" + name: "Number" } - } - } - } -}; - -export const ExtendedLocation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExtendedLocation", - modelProperties: { - type: { - serializedName: "type", + }, + peerASN: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 1 + }, + serializedName: "peerASN", type: { - name: "String" + name: "Number" } }, - name: { - serializedName: "name", + bfdConfiguration: { + serializedName: "bfdConfiguration", type: { - name: "String" + name: "Composite", + className: "BfdConfiguration" } } } } }; -export const AccessControlListConditionProperties: coreClient.CompositeMapper = { +export const NetworkFabricPatchableProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccessControlListConditionProperties", + className: "NetworkFabricPatchableProperties", modelProperties: { - ...AnnotationResource.type.modelProperties, - sequenceNumber: { - serializedName: "sequenceNumber", - required: true, + rackCount: { + constraints: { + InclusiveMaximum: 8, + InclusiveMinimum: 1 + }, + serializedName: "rackCount", type: { name: "Number" } }, - action: { - serializedName: "action", - required: true, + serverCountPerRack: { + constraints: { + InclusiveMaximum: 16, + InclusiveMinimum: 1 + }, + serializedName: "serverCountPerRack", type: { - name: "String" + name: "Number" } }, - destinationAddress: { - serializedName: "destinationAddress", - required: true, + ipv4Prefix: { + constraints: { + MinLength: 1 + }, + serializedName: "ipv4Prefix", type: { name: "String" } }, - destinationPort: { - serializedName: "destinationPort", - required: true, - type: { - name: "String" + ipv6Prefix: { + constraints: { + MinLength: 1 + }, + serializedName: "ipv6Prefix", + type: { + name: "String" } }, - sourceAddress: { - serializedName: "sourceAddress", - required: true, + fabricASN: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 1 + }, + serializedName: "fabricASN", type: { - name: "String" + name: "Number" } }, - sourcePort: { - serializedName: "sourcePort", - required: true, + terminalServerConfiguration: { + serializedName: "terminalServerConfiguration", type: { - name: "String" + name: "Composite", + className: + "NetworkFabricPatchablePropertiesTerminalServerConfiguration" } }, - protocol: { - serializedName: "protocol", - required: true, + managementNetworkConfiguration: { + serializedName: "managementNetworkConfiguration", type: { - name: "Number" + name: "Composite", + className: "ManagementNetworkConfigurationPatchableProperties" } } } } }; -export const AccessControlListProperties: coreClient.CompositeMapper = { +export const ManagementNetworkConfigurationPatchableProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccessControlListProperties", + className: "ManagementNetworkConfigurationPatchableProperties", modelProperties: { - ...AnnotationResource.type.modelProperties, - addressFamily: { - serializedName: "addressFamily", - required: true, + infrastructureVpnConfiguration: { + serializedName: "infrastructureVpnConfiguration", + type: { + name: "Composite", + className: "VpnConfigurationPatchableProperties" + } + }, + workloadVpnConfiguration: { + serializedName: "workloadVpnConfiguration", + type: { + name: "Composite", + className: "VpnConfigurationPatchableProperties" + } + } + } + } +}; + +export const VpnConfigurationPatchableProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnConfigurationPatchableProperties", + modelProperties: { + networkToNetworkInterconnectId: { + serializedName: "networkToNetworkInterconnectId", type: { name: "String" } }, - conditions: { - serializedName: "conditions", - required: true, + peeringOption: { + serializedName: "peeringOption", + type: { + name: "String" + } + }, + optionBProperties: { + serializedName: "optionBProperties", + type: { + name: "Composite", + className: "OptionBProperties" + } + }, + optionAProperties: { + serializedName: "optionAProperties", + type: { + name: "Composite", + className: "VpnConfigurationPatchablePropertiesOptionAProperties" + } + } + } + } +}; + +export const NetworkFabricsListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkFabricsListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AccessControlListConditionProperties" + className: "NetworkFabric" } } } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -2873,26 +2979,47 @@ export const AccessControlListProperties: coreClient.CompositeMapper = { } }; -export const AccessControlListPatchProperties: coreClient.CompositeMapper = { +export const ValidateConfigurationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccessControlListPatchProperties", + className: "ValidateConfigurationProperties", modelProperties: { - ...AnnotationResource.type.modelProperties, - addressFamily: { - serializedName: "addressFamily", + validateAction: { + serializedName: "validateAction", type: { name: "String" } + } + } + } +}; + +export const Layer2Configuration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Layer2Configuration", + modelProperties: { + mtu: { + defaultValue: 1500, + constraints: { + InclusiveMaximum: 9200, + InclusiveMinimum: 64 + }, + serializedName: "mtu", + type: { + name: "Number" + } }, - conditions: { - serializedName: "conditions", + interfaces: { + constraints: { + MinItems: 1 + }, + serializedName: "interfaces", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AccessControlListConditionProperties" + name: "String" } } } @@ -2901,48 +3028,65 @@ export const AccessControlListPatchProperties: coreClient.CompositeMapper = { } }; -export const IpCommunityProperties: coreClient.CompositeMapper = { +export const NpbStaticRouteConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpCommunityProperties", + className: "NpbStaticRouteConfiguration", modelProperties: { - ...AnnotationResource.type.modelProperties, - action: { - serializedName: "action", - required: true, + bfdConfiguration: { + serializedName: "bfdConfiguration", type: { - name: "String" + name: "Composite", + className: "BfdConfiguration" } }, - wellKnownCommunities: { + ipv4Routes: { constraints: { - UniqueItems: true + MinItems: 1 }, - serializedName: "wellKnownCommunities", + serializedName: "ipv4Routes", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "StaticRouteProperties" } } } }, - communityMembers: { - serializedName: "communityMembers", - required: true, + ipv6Routes: { + constraints: { + MinItems: 1 + }, + serializedName: "ipv6Routes", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "StaticRouteProperties" } } } + } + } + } +}; + +export const ImportRoutePolicyInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ImportRoutePolicyInformation", + modelProperties: { + importIpv4RoutePolicyId: { + serializedName: "importIpv4RoutePolicyId", + type: { + name: "String" + } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + importIpv6RoutePolicyId: { + serializedName: "importIpv6RoutePolicyId", type: { name: "String" } @@ -2951,34 +3095,46 @@ export const IpCommunityProperties: coreClient.CompositeMapper = { } }; -export const IpExtendedCommunityProperties: coreClient.CompositeMapper = { +export const ExportRoutePolicyInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpExtendedCommunityProperties", + className: "ExportRoutePolicyInformation", modelProperties: { - ...AnnotationResource.type.modelProperties, - action: { - serializedName: "action", - required: true, + exportIpv4RoutePolicyId: { + serializedName: "exportIpv4RoutePolicyId", type: { name: "String" } }, - routeTargets: { - serializedName: "routeTargets", - required: true, + exportIpv6RoutePolicyId: { + serializedName: "exportIpv6RoutePolicyId", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkToNetworkInterconnectsList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkToNetworkInterconnectsList", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "NetworkToNetworkInterconnect" } } } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -2987,28 +3143,25 @@ export const IpExtendedCommunityProperties: coreClient.CompositeMapper = { } }; -export const IpPrefixProperties: coreClient.CompositeMapper = { +export const NetworkPacketBrokersListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpPrefixProperties", + className: "NetworkPacketBrokersListResult", modelProperties: { - ...AnnotationResource.type.modelProperties, - ipPrefixRules: { - serializedName: "ipPrefixRules", - required: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IpPrefixPropertiesIpPrefixRulesItem" + className: "NetworkPacketBroker" } } } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -3017,54 +3170,25 @@ export const IpPrefixProperties: coreClient.CompositeMapper = { } }; -export const L2IsolationDomainProperties: coreClient.CompositeMapper = { +export const NetworkRacksListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L2IsolationDomainProperties", + className: "NetworkRacksListResult", modelProperties: { - ...AnnotationResource.type.modelProperties, - networkFabricId: { - serializedName: "networkFabricId", - required: true, - type: { - name: "String" - } - }, - vlanId: { - serializedName: "vlanId", - required: true, - type: { - name: "Number" - } - }, - mtu: { - serializedName: "mtu", - type: { - name: "Number" - } - }, - disabledOnResources: { - serializedName: "disabledOnResources", - readOnly: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "NetworkRack" } } } }, - administrativeState: { - serializedName: "administrativeState", - readOnly: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -3073,190 +3197,116 @@ export const L2IsolationDomainProperties: coreClient.CompositeMapper = { } }; -export const L2IsolationDomainPatchProperties: coreClient.CompositeMapper = { +export const NetworkTapRulePatchableProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L2IsolationDomainPatchProperties", + className: "NetworkTapRulePatchableProperties", modelProperties: { - ...AnnotationResource.type.modelProperties, - mtu: { - serializedName: "mtu", + configurationType: { + serializedName: "configurationType", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const L3IsolationDomainProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "L3IsolationDomainProperties", - modelProperties: { - ...AnnotationResource.type.modelProperties, - ...L3IsolationDomainPatchProperties.type.modelProperties, - networkFabricId: { - serializedName: "networkFabricId", - required: true, + }, + tapRulesUrl: { + constraints: { + MinLength: 1 + }, + serializedName: "tapRulesUrl", type: { name: "String" } }, - disabledOnResources: { - serializedName: "disabledOnResources", - readOnly: true, + matchConfigurations: { + constraints: { + MinItems: 1 + }, + serializedName: "matchConfigurations", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "NetworkTapRuleMatchConfiguration" } } } }, - administrativeState: { - serializedName: "administrativeState", - readOnly: true, - type: { - name: "String" - } - }, - optionBDisabledOnResources: { - serializedName: "optionBDisabledOnResources", - readOnly: true, + dynamicMatchConfigurations: { + constraints: { + MinItems: 1 + }, + serializedName: "dynamicMatchConfigurations", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "CommonDynamicMatchConfiguration" } } } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const ConnectedSubnet: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConnectedSubnet", - modelProperties: { - ...AnnotationResource.type.modelProperties, - prefix: { - serializedName: "prefix", - type: { - name: "String" - } } } } }; -export const BgpConfiguration: coreClient.CompositeMapper = { +export const NetworkTapRuleMatchConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BgpConfiguration", + className: "NetworkTapRuleMatchConfiguration", modelProperties: { - ...AnnotationResource.type.modelProperties, - bfdConfiguration: { - serializedName: "bfdConfiguration", - type: { - name: "Composite", - className: "BfdConfiguration" - } - }, - defaultRouteOriginate: { - serializedName: "defaultRouteOriginate", - type: { - name: "String" - } - }, - allowAS: { - defaultValue: 2, + matchConfigurationName: { constraints: { - InclusiveMaximum: 10, - InclusiveMinimum: 0 + MinLength: 1 }, - serializedName: "allowAS", - type: { - name: "Number" - } - }, - allowASOverride: { - serializedName: "allowASOverride", + serializedName: "matchConfigurationName", type: { name: "String" } }, - fabricASN: { - serializedName: "fabricASN", - readOnly: true, - type: { - name: "Number" - } - }, - peerASN: { + sequenceNumber: { constraints: { - InclusiveMaximum: 65535, + InclusiveMaximum: 4294967295, InclusiveMinimum: 1 }, - serializedName: "peerASN", - required: true, + serializedName: "sequenceNumber", type: { name: "Number" } }, - ipv4ListenRangePrefixes: { - serializedName: "ipv4ListenRangePrefixes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - ipv6ListenRangePrefixes: { - serializedName: "ipv6ListenRangePrefixes", + ipAddressType: { + serializedName: "ipAddressType", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - ipv4NeighborAddress: { - serializedName: "ipv4NeighborAddress", + matchConditions: { + constraints: { + MinItems: 1 + }, + serializedName: "matchConditions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NeighborAddress" + className: "NetworkTapRuleMatchCondition" } } } }, - ipv6NeighborAddress: { - serializedName: "ipv6NeighborAddress", + actions: { + constraints: { + MinItems: 1 + }, + serializedName: "actions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NeighborAddress" + className: "NetworkTapRuleAction" } } } @@ -3265,169 +3315,113 @@ export const BgpConfiguration: coreClient.CompositeMapper = { } }; -export const InternalNetworkProperties: coreClient.CompositeMapper = { +export const NetworkTapRuleAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InternalNetworkProperties", + className: "NetworkTapRuleAction", modelProperties: { - ...AnnotationResource.type.modelProperties, - ...InternalNetworkPatchableProperties.type.modelProperties, - disabledOnResources: { - serializedName: "disabledOnResources", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - administrativeState: { - serializedName: "administrativeState", - readOnly: true, + type: { + serializedName: "type", type: { name: "String" } }, - bgpDisabledOnResources: { - serializedName: "bgpDisabledOnResources", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - bfdDisabledOnResources: { - serializedName: "bfdDisabledOnResources", - readOnly: true, + truncate: { + constraints: { + MinLength: 1 + }, + serializedName: "truncate", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - bfdForStaticRoutesDisabledOnResources: { - serializedName: "bfdForStaticRoutesDisabledOnResources", - readOnly: true, + isTimestampEnabled: { + serializedName: "isTimestampEnabled", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + destinationId: { + serializedName: "destinationId", type: { name: "String" } }, - vlanId: { + matchConfigurationName: { constraints: { - InclusiveMaximum: 4095, - InclusiveMinimum: 100 + MinLength: 1 }, - serializedName: "vlanId", - required: true, + serializedName: "matchConfigurationName", type: { - name: "Number" + name: "String" } } } } }; -export const InternalNetworkPatchProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InternalNetworkPatchProperties", - modelProperties: { - ...AnnotationResource.type.modelProperties, - ...InternalNetworkPatchableProperties.type.modelProperties - } - } -}; - -export const ExternalNetworkProperties: coreClient.CompositeMapper = { +export const NetworkTapRulesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalNetworkProperties", + className: "NetworkTapRulesListResult", modelProperties: { - ...AnnotationResource.type.modelProperties, - networkToNetworkInterconnectId: { - serializedName: "networkToNetworkInterconnectId", - readOnly: true, - type: { - name: "String" - } - }, - disabledOnResources: { - serializedName: "disabledOnResources", - readOnly: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "NetworkTapRule" } } } }, - administrativeState: { - serializedName: "administrativeState", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + } + } + } +}; + +export const DestinationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DestinationProperties", + modelProperties: { + name: { + constraints: { + MinLength: 1 + }, + serializedName: "name", type: { name: "String" } }, - peeringOption: { - serializedName: "peeringOption", - required: true, + destinationType: { + serializedName: "destinationType", type: { name: "String" } }, - optionBProperties: { - serializedName: "optionBProperties", + destinationId: { + serializedName: "destinationId", type: { - name: "Composite", - className: "OptionBProperties" + name: "String" } }, - optionAProperties: { - serializedName: "optionAProperties", + isolationDomainProperties: { + serializedName: "isolationDomainProperties", type: { name: "Composite", - className: "ExternalNetworkPropertiesOptionAProperties" - } - }, - importRoutePolicyId: { - serializedName: "importRoutePolicyId", - type: { - name: "String" + className: "IsolationDomainProperties" } }, - exportRoutePolicyId: { - serializedName: "exportRoutePolicyId", + destinationTapRuleId: { + serializedName: "destinationTapRuleId", type: { name: "String" } @@ -3436,55 +3430,51 @@ export const ExternalNetworkProperties: coreClient.CompositeMapper = { } }; -export const ExternalNetworkPatchProperties: coreClient.CompositeMapper = { +export const IsolationDomainProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalNetworkPatchProperties", + className: "IsolationDomainProperties", modelProperties: { - ...AnnotationResource.type.modelProperties, - ...ExternalNetworkPatchableProperties.type.modelProperties - } - } -}; - -export const NetworkDeviceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkDeviceProperties", - modelProperties: { - ...AnnotationResource.type.modelProperties, - ...NetworkDevicePatchableProperties.type.modelProperties, - version: { - serializedName: "version", - readOnly: true, - type: { - name: "String" - } - }, - networkDeviceSku: { - serializedName: "networkDeviceSku", - required: true, + encapsulation: { + serializedName: "encapsulation", type: { name: "String" } }, - networkDeviceRole: { - serializedName: "networkDeviceRole", - required: true, + neighborGroupIds: { + serializedName: "neighborGroupIds", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + } + } + } +}; + +export const NetworkTapsListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkTapsListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTap" + } + } } }, - networkRackId: { - serializedName: "networkRackId", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -3493,67 +3483,107 @@ export const NetworkDeviceProperties: coreClient.CompositeMapper = { } }; -export const NetworkDevicePatchParametersProperties: coreClient.CompositeMapper = { +export const OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkDevicePatchParametersProperties", + className: "OperationListResult", modelProperties: { - ...AnnotationResource.type.modelProperties, - ...NetworkDevicePatchableProperties.type.modelProperties + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } } } }; -export const NetworkInterfaceProperties: coreClient.CompositeMapper = { +export const Operation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkInterfaceProperties", + className: "Operation", modelProperties: { - ...AnnotationResource.type.modelProperties, - physicalIdentifier: { - serializedName: "physicalIdentifier", + name: { + serializedName: "name", readOnly: true, type: { name: "String" } }, - administrativeState: { - serializedName: "administrativeState", + isDataAction: { + serializedName: "isDataAction", readOnly: true, type: { - name: "String" + name: "Boolean" } }, - provisioningState: { - serializedName: "provisioningState", + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + }, + origin: { + serializedName: "origin", readOnly: true, type: { name: "String" } }, - connectedTo: { - serializedName: "connectedTo", + actionType: { + serializedName: "actionType", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", readOnly: true, type: { name: "String" } }, - interfaceType: { - serializedName: "interfaceType", + resource: { + serializedName: "resource", readOnly: true, type: { name: "String" } }, - ipv4Address: { - serializedName: "ipv4Address", + operation: { + serializedName: "operation", readOnly: true, type: { name: "String" } }, - ipv6Address: { - serializedName: "ipv6Address", + description: { + serializedName: "description", readOnly: true, type: { name: "String" @@ -3563,47 +3593,34 @@ export const NetworkInterfaceProperties: coreClient.CompositeMapper = { } }; -export const NetworkInterfacePatchProperties: coreClient.CompositeMapper = { +export const RoutePolicyPatchableProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkInterfacePatchProperties", + className: "RoutePolicyPatchableProperties", modelProperties: { - ...AnnotationResource.type.modelProperties + statements: { + serializedName: "statements", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoutePolicyStatementProperties" + } + } + } + } } } }; -export const NetworkFabricControllerProperties: coreClient.CompositeMapper = { +export const IpCommunityIdList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkFabricControllerProperties", + className: "IpCommunityIdList", modelProperties: { - ...AnnotationResource.type.modelProperties, - ...NetworkFabricControllerPatchableProperties.type.modelProperties, - infrastructureServices: { - serializedName: "infrastructureServices", - type: { - name: "Composite", - className: "InfrastructureServices" - } - }, - workloadServices: { - serializedName: "workloadServices", - type: { - name: "Composite", - className: "WorkloadServices" - } - }, - managedResourceGroupConfiguration: { - serializedName: "managedResourceGroupConfiguration", - type: { - name: "Composite", - className: "ManagedResourceGroupConfiguration" - } - }, - networkFabricIds: { - serializedName: "networkFabricIds", - readOnly: true, + ipCommunityIds: { + serializedName: "ipCommunityIds", type: { name: "Sequence", element: { @@ -3612,141 +3629,2787 @@ export const NetworkFabricControllerProperties: coreClient.CompositeMapper = { } } } - }, - workloadManagementNetwork: { - defaultValue: true, - serializedName: "workloadManagementNetwork", - readOnly: true, + } + } + } +}; + +export const IpExtendedCommunityIdList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpExtendedCommunityIdList", + modelProperties: { + ipExtendedCommunityIds: { + serializedName: "ipExtendedCommunityIds", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - ipv4AddressSpace: { - serializedName: "ipv4AddressSpace", + } + } + } +}; + +export const StatementActionProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StatementActionProperties", + modelProperties: { + localPreference: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 0 + }, + serializedName: "localPreference", type: { - name: "String" + name: "Number" } }, - ipv6AddressSpace: { - serializedName: "ipv6AddressSpace", + actionType: { + serializedName: "actionType", + required: true, type: { name: "String" } }, - operationalState: { - serializedName: "operationalState", - readOnly: true, + ipCommunityProperties: { + serializedName: "ipCommunityProperties", type: { - name: "String" + name: "Composite", + className: "ActionIpCommunityProperties" } }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + ipExtendedCommunityProperties: { + serializedName: "ipExtendedCommunityProperties", type: { - name: "String" + name: "Composite", + className: "ActionIpExtendedCommunityProperties" } } } } }; -export const NetworkFabricProperties: coreClient.CompositeMapper = { +export const IpCommunityAddOperationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkFabricProperties", + className: "IpCommunityAddOperationProperties", modelProperties: { - ...AnnotationResource.type.modelProperties, - ...NetworkFabricPatchableProperties.type.modelProperties, - networkFabricSku: { - serializedName: "networkFabricSku", - required: true, + add: { + serializedName: "add", type: { - name: "String" + name: "Composite", + className: "IpCommunityIdList" } - }, + } + } + } +}; + +export const IpCommunityDeleteOperationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpCommunityDeleteOperationProperties", + modelProperties: { + delete: { + serializedName: "delete", + type: { + name: "Composite", + className: "IpCommunityIdList" + } + } + } + } +}; + +export const IpCommunitySetOperationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpCommunitySetOperationProperties", + modelProperties: { + set: { + serializedName: "set", + type: { + name: "Composite", + className: "IpCommunityIdList" + } + } + } + } +}; + +export const IpExtendedCommunityAddOperationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpExtendedCommunityAddOperationProperties", + modelProperties: { + add: { + serializedName: "add", + type: { + name: "Composite", + className: "IpExtendedCommunityIdList" + } + } + } + } +}; + +export const IpExtendedCommunityDeleteOperationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpExtendedCommunityDeleteOperationProperties", + modelProperties: { + delete: { + serializedName: "delete", + type: { + name: "Composite", + className: "IpExtendedCommunityIdList" + } + } + } + } +}; + +export const IpExtendedCommunitySetOperationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpExtendedCommunitySetOperationProperties", + modelProperties: { + set: { + serializedName: "set", + type: { + name: "Composite", + className: "IpExtendedCommunityIdList" + } + } + } + } +}; + +export const RoutePoliciesListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoutePoliciesListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoutePolicy" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ExtendedLocation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExtendedLocation", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const AccessControlListProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccessControlListProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...AccessControlListPatchableProperties.type.modelProperties, + lastSyncedTime: { + serializedName: "lastSyncedTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + configurationState: { + serializedName: "configurationState", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + administrativeState: { + serializedName: "administrativeState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const AccessControlListPatchProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccessControlListPatchProperties", + modelProperties: { + ...AccessControlListPatchableProperties.type.modelProperties, + ...AnnotationResource.type.modelProperties + } + } +}; + +export const InternetGatewayProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InternetGatewayProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...InternetGatewayPatchableProperties.type.modelProperties, + ipv4Address: { + serializedName: "ipv4Address", + readOnly: true, + type: { + name: "String" + } + }, + port: { + serializedName: "port", + readOnly: true, + type: { + name: "Number" + } + }, + type: { + serializedName: "type", + required: true, + type: { + name: "String" + } + }, + networkFabricControllerId: { + serializedName: "networkFabricControllerId", + required: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const InternetGatewayRuleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InternetGatewayRuleProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ruleProperties: { + serializedName: "ruleProperties", + type: { + name: "Composite", + className: "RuleProperties" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + internetGatewayIds: { + serializedName: "internetGatewayIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const IpCommunityProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpCommunityProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...IpCommunityPatchableProperties.type.modelProperties, + configurationState: { + serializedName: "configurationState", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + administrativeState: { + serializedName: "administrativeState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const IpExtendedCommunityProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpExtendedCommunityProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...IpExtendedCommunityPatchableProperties.type.modelProperties, + configurationState: { + serializedName: "configurationState", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + administrativeState: { + serializedName: "administrativeState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const IpExtendedCommunityPatchProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpExtendedCommunityPatchProperties", + modelProperties: { + ...IpExtendedCommunityPatchableProperties.type.modelProperties, + ...AnnotationResource.type.modelProperties + } + } +}; + +export const IpPrefixProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpPrefixProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...IpPrefixPatchableProperties.type.modelProperties, + configurationState: { + serializedName: "configurationState", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + administrativeState: { + serializedName: "administrativeState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const IpPrefixPatchProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpPrefixPatchProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...IpPrefixPatchableProperties.type.modelProperties + } + } +}; + +export const L2IsolationDomainProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "L2IsolationDomainProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + networkFabricId: { + serializedName: "networkFabricId", + required: true, + type: { + name: "String" + } + }, + vlanId: { + constraints: { + InclusiveMaximum: 4094, + InclusiveMinimum: 100 + }, + serializedName: "vlanId", + required: true, + type: { + name: "Number" + } + }, + mtu: { + defaultValue: 1500, + constraints: { + InclusiveMaximum: 9200, + InclusiveMinimum: 64 + }, + serializedName: "mtu", + type: { + name: "Number" + } + }, + configurationState: { + serializedName: "configurationState", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + administrativeState: { + serializedName: "administrativeState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const L2IsolationDomainPatchProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "L2IsolationDomainPatchProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + mtu: { + defaultValue: 1500, + constraints: { + InclusiveMaximum: 9200, + InclusiveMinimum: 64 + }, + serializedName: "mtu", + type: { + name: "Number" + } + } + } + } +}; + +export const L3IsolationDomainProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "L3IsolationDomainProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...L3IsolationDomainPatchableProperties.type.modelProperties, + networkFabricId: { + serializedName: "networkFabricId", + required: true, + type: { + name: "String" + } + }, + configurationState: { + serializedName: "configurationState", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + administrativeState: { + serializedName: "administrativeState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const L3IsolationDomainPatchProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "L3IsolationDomainPatchProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...L3IsolationDomainPatchableProperties.type.modelProperties + } + } +}; + +export const BgpConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BgpConfiguration", + modelProperties: { + ...AnnotationResource.type.modelProperties, + bfdConfiguration: { + serializedName: "bfdConfiguration", + type: { + name: "Composite", + className: "BfdConfiguration" + } + }, + defaultRouteOriginate: { + serializedName: "defaultRouteOriginate", + type: { + name: "String" + } + }, + allowAS: { + defaultValue: 2, + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 0 + }, + serializedName: "allowAS", + type: { + name: "Number" + } + }, + allowASOverride: { + serializedName: "allowASOverride", + type: { + name: "String" + } + }, + fabricASN: { + serializedName: "fabricASN", + readOnly: true, + type: { + name: "Number" + } + }, + peerASN: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 1 + }, + serializedName: "peerASN", + type: { + name: "Number" + } + }, + ipv4ListenRangePrefixes: { + constraints: { + MinItems: 1 + }, + serializedName: "ipv4ListenRangePrefixes", + type: { + name: "Sequence", + element: { + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } + } + }, + ipv6ListenRangePrefixes: { + constraints: { + MinItems: 1 + }, + serializedName: "ipv6ListenRangePrefixes", + type: { + name: "Sequence", + element: { + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } + } + }, + ipv4NeighborAddress: { + constraints: { + MinItems: 1 + }, + serializedName: "ipv4NeighborAddress", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NeighborAddress" + } + } + } + }, + ipv6NeighborAddress: { + constraints: { + MinItems: 1 + }, + serializedName: "ipv6NeighborAddress", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NeighborAddress" + } + } + } + } + } + } +}; + +export const ConnectedSubnet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectedSubnet", + modelProperties: { + ...AnnotationResource.type.modelProperties, + prefix: { + constraints: { + MinLength: 1 + }, + serializedName: "prefix", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const InternalNetworkProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InternalNetworkProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...InternalNetworkPatchableProperties.type.modelProperties, + ...ExtensionEnumProperty.type.modelProperties, + vlanId: { + constraints: { + InclusiveMaximum: 4094, + InclusiveMinimum: 100 + }, + serializedName: "vlanId", + required: true, + type: { + name: "Number" + } + }, + bgpConfiguration: { + serializedName: "bgpConfiguration", + type: { + name: "Composite", + className: "InternalNetworkPropertiesBgpConfiguration" + } + }, + staticRouteConfiguration: { + serializedName: "staticRouteConfiguration", + type: { + name: "Composite", + className: "InternalNetworkPropertiesStaticRouteConfiguration" + } + }, + configurationState: { + serializedName: "configurationState", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + administrativeState: { + serializedName: "administrativeState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const InternalNetworkPatchProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InternalNetworkPatchProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...InternalNetworkPatchableProperties.type.modelProperties, + bgpConfiguration: { + serializedName: "bgpConfiguration", + type: { + name: "Composite", + className: "BgpConfiguration" + } + }, + staticRouteConfiguration: { + serializedName: "staticRouteConfiguration", + type: { + name: "Composite", + className: "StaticRouteConfiguration" + } + } + } + } +}; + +export const ExternalNetworkProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExternalNetworkProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...ExternalNetworkPatchableProperties.type.modelProperties, + networkToNetworkInterconnectId: { + serializedName: "networkToNetworkInterconnectId", + readOnly: true, + type: { + name: "String" + } + }, + peeringOption: { + serializedName: "peeringOption", + required: true, + type: { + name: "String" + } + }, + optionBProperties: { + serializedName: "optionBProperties", + type: { + name: "Composite", + className: "L3OptionBProperties" + } + }, + optionAProperties: { + serializedName: "optionAProperties", + type: { + name: "Composite", + className: "ExternalNetworkPropertiesOptionAProperties" + } + }, + configurationState: { + serializedName: "configurationState", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + administrativeState: { + serializedName: "administrativeState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ExternalNetworkPatchProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExternalNetworkPatchProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...ExternalNetworkPatchableProperties.type.modelProperties, + peeringOption: { + serializedName: "peeringOption", + type: { + name: "String" + } + }, + optionBProperties: { + serializedName: "optionBProperties", + type: { + name: "Composite", + className: "L3OptionBProperties" + } + }, + optionAProperties: { + serializedName: "optionAProperties", + type: { + name: "Composite", + className: "ExternalNetworkPatchPropertiesOptionAProperties" + } + } + } + } +}; + +export const NeighborGroupProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NeighborGroupProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...NeighborGroupPatchableProperties.type.modelProperties, + networkTapIds: { + serializedName: "networkTapIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + networkTapRuleIds: { + serializedName: "networkTapRuleIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const NeighborGroupPatchProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NeighborGroupPatchProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...NeighborGroupPatchableProperties.type.modelProperties + } + } +}; + +export const NetworkDeviceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkDeviceProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...NetworkDevicePatchableProperties.type.modelProperties, + version: { + serializedName: "version", + readOnly: true, + type: { + name: "String" + } + }, + networkDeviceSku: { + serializedName: "networkDeviceSku", + type: { + name: "String" + } + }, + networkDeviceRole: { + serializedName: "networkDeviceRole", + readOnly: true, + type: { + name: "String" + } + }, + networkRackId: { + serializedName: "networkRackId", + readOnly: true, + type: { + name: "String" + } + }, + managementIpv4Address: { + serializedName: "managementIpv4Address", + readOnly: true, + type: { + name: "String" + } + }, + managementIpv6Address: { + serializedName: "managementIpv6Address", + readOnly: true, + type: { + name: "String" + } + }, + configurationState: { + serializedName: "configurationState", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + administrativeState: { + serializedName: "administrativeState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const NetworkDevicePatchParametersProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkDevicePatchParametersProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...NetworkDevicePatchableProperties.type.modelProperties + } + } +}; + +export const NetworkInterfaceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkInterfaceProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + physicalIdentifier: { + serializedName: "physicalIdentifier", + readOnly: true, + type: { + name: "String" + } + }, + connectedTo: { + serializedName: "connectedTo", + readOnly: true, + type: { + name: "String" + } + }, + interfaceType: { + serializedName: "interfaceType", + readOnly: true, + type: { + name: "String" + } + }, + ipv4Address: { + serializedName: "ipv4Address", + readOnly: true, + type: { + name: "String" + } + }, + ipv6Address: { + serializedName: "ipv6Address", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + administrativeState: { + serializedName: "administrativeState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const NetworkInterfacePatchProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkInterfacePatchProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties + } + } +}; + +export const NetworkFabricControllerProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkFabricControllerProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...NetworkFabricControllerPatchableProperties.type.modelProperties, + infrastructureServices: { + serializedName: "infrastructureServices", + type: { + name: "Composite", + className: "ControllerServices" + } + }, + workloadServices: { + serializedName: "workloadServices", + type: { + name: "Composite", + className: "ControllerServices" + } + }, + managedResourceGroupConfiguration: { + serializedName: "managedResourceGroupConfiguration", + type: { + name: "Composite", + className: "ManagedResourceGroupConfiguration" + } + }, + networkFabricIds: { + serializedName: "networkFabricIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + workloadManagementNetwork: { + defaultValue: true, + serializedName: "workloadManagementNetwork", + readOnly: true, + type: { + name: "Boolean" + } + }, + isWorkloadManagementNetworkEnabled: { + defaultValue: "True", + serializedName: "isWorkloadManagementNetworkEnabled", + type: { + name: "String" + } + }, + tenantInternetGatewayIds: { + serializedName: "tenantInternetGatewayIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + ipv4AddressSpace: { + defaultValue: "10.0.0.0/19", + constraints: { + MinLength: 1 + }, + serializedName: "ipv4AddressSpace", + type: { + name: "String" + } + }, + ipv6AddressSpace: { + defaultValue: "FC00::/59", + constraints: { + MinLength: 1 + }, + serializedName: "ipv6AddressSpace", + type: { + name: "String" + } + }, + nfcSku: { + defaultValue: "Standard", + serializedName: "nfcSku", + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const NetworkFabricProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkFabricProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + networkFabricSku: { + constraints: { + MinLength: 1 + }, + serializedName: "networkFabricSku", + required: true, + type: { + name: "String" + } + }, + fabricVersion: { + serializedName: "fabricVersion", + readOnly: true, + type: { + name: "String" + } + }, + routerIds: { + serializedName: "routerIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + networkFabricControllerId: { + serializedName: "networkFabricControllerId", + required: true, + type: { + name: "String" + } + }, + rackCount: { + constraints: { + InclusiveMaximum: 8, + InclusiveMinimum: 1 + }, + serializedName: "rackCount", + type: { + name: "Number" + } + }, + serverCountPerRack: { + constraints: { + InclusiveMaximum: 16, + InclusiveMinimum: 1 + }, + serializedName: "serverCountPerRack", + required: true, + type: { + name: "Number" + } + }, + ipv4Prefix: { + constraints: { + MinLength: 1 + }, + serializedName: "ipv4Prefix", + required: true, + type: { + name: "String" + } + }, + ipv6Prefix: { + constraints: { + MinLength: 1 + }, + serializedName: "ipv6Prefix", + type: { + name: "String" + } + }, + fabricASN: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 1 + }, + serializedName: "fabricASN", + required: true, + type: { + name: "Number" + } + }, + terminalServerConfiguration: { + serializedName: "terminalServerConfiguration", + type: { + name: "Composite", + className: "TerminalServerConfiguration" + } + }, + managementNetworkConfiguration: { + serializedName: "managementNetworkConfiguration", + type: { + name: "Composite", + className: "ManagementNetworkConfigurationProperties" + } + }, + racks: { + serializedName: "racks", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + l2IsolationDomains: { + serializedName: "l2IsolationDomains", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + l3IsolationDomains: { + serializedName: "l3IsolationDomains", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + configurationState: { + serializedName: "configurationState", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + administrativeState: { + serializedName: "administrativeState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const NetworkFabricPatchProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkFabricPatchProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...NetworkFabricPatchableProperties.type.modelProperties + } + } +}; + +export const NetworkRackProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkRackProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + networkRackType: { + serializedName: "networkRackType", + type: { + name: "String" + } + }, + networkFabricId: { + serializedName: "networkFabricId", + required: true, + type: { + name: "String" + } + }, + networkDevices: { + serializedName: "networkDevices", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const NetworkTapRuleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkTapRuleProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...NetworkTapRulePatchableProperties.type.modelProperties, + networkTapId: { + serializedName: "networkTapId", + readOnly: true, + type: { + name: "String" + } + }, + pollingIntervalInSeconds: { + defaultValue: 30, + serializedName: "pollingIntervalInSeconds", + type: { + name: "Number" + } + }, + lastSyncedTime: { + serializedName: "lastSyncedTime", + readOnly: true, + type: { + name: "DateTime" + } + }, + configurationState: { + serializedName: "configurationState", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + administrativeState: { + serializedName: "administrativeState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const NetworkTapRulePatchProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkTapRulePatchProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...NetworkTapRulePatchableProperties.type.modelProperties + } + } +}; + +export const NetworkTapProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkTapProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + networkPacketBrokerId: { + serializedName: "networkPacketBrokerId", + required: true, + type: { + name: "String" + } + }, + sourceTapRuleId: { + serializedName: "sourceTapRuleId", + readOnly: true, + type: { + name: "String" + } + }, + destinations: { + constraints: { + MinItems: 1 + }, + serializedName: "destinations", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTapPropertiesDestinationsItem" + } + } + } + }, + pollingType: { + serializedName: "pollingType", + type: { + name: "String" + } + }, + configurationState: { + serializedName: "configurationState", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + administrativeState: { + serializedName: "administrativeState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const NetworkTapPatchableParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkTapPatchableParameters", + modelProperties: { + ...AnnotationResource.type.modelProperties, + pollingType: { + serializedName: "pollingType", + type: { + name: "String" + } + }, + destinations: { + serializedName: "destinations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTapPatchableParametersDestinationsItem" + } + } + } + } + } + } +}; + +export const RoutePolicyStatementProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoutePolicyStatementProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + sequenceNumber: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 1 + }, + serializedName: "sequenceNumber", + required: true, + type: { + name: "Number" + } + }, + condition: { + serializedName: "condition", + type: { + name: "Composite", + className: "StatementConditionProperties" + } + }, + action: { + serializedName: "action", + type: { + name: "Composite", + className: "StatementActionProperties" + } + } + } + } +}; + +export const RoutePolicyProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoutePolicyProperties", + modelProperties: { + ...AnnotationResource.type.modelProperties, + ...RoutePolicyPatchableProperties.type.modelProperties, + networkFabricId: { + serializedName: "networkFabricId", + required: true, + type: { + name: "String" + } + }, + addressFamilyType: { + defaultValue: "IPv4", + serializedName: "addressFamilyType", + type: { + name: "String" + } + }, + configurationState: { + serializedName: "configurationState", + readOnly: true, + type: { + name: "String" + } + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + administrativeState: { + serializedName: "administrativeState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const AccessControlListPortCondition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccessControlListPortCondition", + modelProperties: { + ...PortCondition.type.modelProperties, + flags: { + serializedName: "flags", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const AccessControlListMatchCondition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccessControlListMatchCondition", + modelProperties: { + ...CommonMatchConditions.type.modelProperties, + etherTypes: { + constraints: { + MinItems: 1 + }, + serializedName: "etherTypes", + type: { + name: "Sequence", + element: { + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } + } + }, + fragments: { + constraints: { + MinItems: 1 + }, + serializedName: "fragments", + type: { + name: "Sequence", + element: { + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } + } + }, + ipLengths: { + constraints: { + MinItems: 1 + }, + serializedName: "ipLengths", + type: { + name: "Sequence", + element: { + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } + } + }, + ttlValues: { + constraints: { + MinItems: 1 + }, + serializedName: "ttlValues", + type: { + name: "Sequence", + element: { + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } + } + }, + dscpMarkings: { + constraints: { + MinItems: 1 + }, + serializedName: "dscpMarkings", + type: { + name: "Sequence", + element: { + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } + } + }, + portCondition: { + serializedName: "portCondition", + type: { + name: "Composite", + className: "AccessControlListPortCondition" + } + } + } + } +}; + +export const NetworkTapRuleMatchCondition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkTapRuleMatchCondition", + modelProperties: { + ...CommonMatchConditions.type.modelProperties, + encapsulationType: { + defaultValue: "None", + serializedName: "encapsulationType", + type: { + name: "String" + } + }, + portCondition: { + serializedName: "portCondition", + type: { + name: "Composite", + className: "PortCondition" + } + } + } + } +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + location: { + serializedName: "location", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + +export const CommonPostActionResponseForStateUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CommonPostActionResponseForStateUpdate", + modelProperties: { + ...ErrorResponse.type.modelProperties, + configurationState: { + serializedName: "configurationState", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ValidateConfigurationResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ValidateConfigurationResponse", + modelProperties: { + ...ErrorResponse.type.modelProperties, + configurationState: { + serializedName: "configurationState", + readOnly: true, + type: { + name: "String" + } + }, + url: { + serializedName: "url", + type: { + name: "String" + } + } + } + } +}; + +export const CommonPostActionResponseForDeviceUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CommonPostActionResponseForDeviceUpdate", + modelProperties: { + ...ErrorResponse.type.modelProperties, + configurationState: { + serializedName: "configurationState", + readOnly: true, + type: { + name: "String" + } + }, + successfulDevices: { + serializedName: "successfulDevices", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + failedDevices: { + serializedName: "failedDevices", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const AccessControlListPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccessControlListPatch", + modelProperties: { + ...TagsUpdate.type.modelProperties, + configurationType: { + serializedName: "properties.configurationType", + type: { + name: "String" + } + }, + aclsUrl: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.aclsUrl", + type: { + name: "String" + } + }, + matchConfigurations: { + constraints: { + MinItems: 1 + }, + serializedName: "properties.matchConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessControlListMatchConfiguration" + } + } + } + }, + dynamicMatchConfigurations: { + constraints: { + MinItems: 1 + }, + serializedName: "properties.dynamicMatchConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CommonDynamicMatchConfiguration" + } + } + } + }, + annotation: { + serializedName: "properties.annotation", + type: { + name: "String" + } + } + } + } +}; + +export const InternetGatewayPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InternetGatewayPatch", + modelProperties: { + ...TagsUpdate.type.modelProperties, + internetGatewayRuleId: { + serializedName: "properties.internetGatewayRuleId", + type: { + name: "String" + } + } + } + } +}; + +export const InternetGatewayRulePatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InternetGatewayRulePatch", + modelProperties: { + ...TagsUpdate.type.modelProperties + } + } +}; + +export const IpCommunityPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpCommunityPatch", + modelProperties: { + ...TagsUpdate.type.modelProperties, + ipCommunityRules: { + serializedName: "properties.ipCommunityRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpCommunityRule" + } + } + } + } + } + } +}; + +export const IpExtendedCommunityPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpExtendedCommunityPatch", + modelProperties: { + ...TagsUpdate.type.modelProperties, + ipExtendedCommunityRules: { + serializedName: "properties.ipExtendedCommunityRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpExtendedCommunityRule" + } + } + } + }, + annotation: { + serializedName: "properties.annotation", + type: { + name: "String" + } + } + } + } +}; + +export const IpPrefixPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IpPrefixPatch", + modelProperties: { + ...TagsUpdate.type.modelProperties, + annotation: { + serializedName: "properties.annotation", + type: { + name: "String" + } + }, + ipPrefixRules: { + serializedName: "properties.ipPrefixRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpPrefixRule" + } + } + } + } + } + } +}; + +export const L2IsolationDomainPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "L2IsolationDomainPatch", + modelProperties: { + ...TagsUpdate.type.modelProperties, + annotation: { + serializedName: "properties.annotation", + type: { + name: "String" + } + }, + mtu: { + defaultValue: 1500, + constraints: { + InclusiveMaximum: 9200, + InclusiveMinimum: 64 + }, + serializedName: "properties.mtu", + type: { + name: "Number" + } + } + } + } +}; + +export const L3IsolationDomainPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "L3IsolationDomainPatch", + modelProperties: { + ...TagsUpdate.type.modelProperties, + annotation: { + serializedName: "properties.annotation", + type: { + name: "String" + } + }, + redistributeConnectedSubnets: { + defaultValue: "True", + serializedName: "properties.redistributeConnectedSubnets", + type: { + name: "String" + } + }, + redistributeStaticRoutes: { + defaultValue: "False", + serializedName: "properties.redistributeStaticRoutes", + type: { + name: "String" + } + }, + aggregateRouteConfiguration: { + serializedName: "properties.aggregateRouteConfiguration", + type: { + name: "Composite", + className: "AggregateRouteConfiguration" + } + }, + connectedSubnetRoutePolicy: { + serializedName: "properties.connectedSubnetRoutePolicy", + type: { + name: "Composite", + className: "ConnectedSubnetRoutePolicy" + } + } + } + } +}; + +export const NeighborGroupPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NeighborGroupPatch", + modelProperties: { + ...TagsUpdate.type.modelProperties, + annotation: { + serializedName: "properties.annotation", + type: { + name: "String" + } + }, + destination: { + serializedName: "properties.destination", + type: { + name: "Composite", + className: "NeighborGroupDestination" + } + } + } + } +}; + +export const NetworkDevicePatchParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkDevicePatchParameters", + modelProperties: { + ...TagsUpdate.type.modelProperties, + annotation: { + serializedName: "properties.annotation", + type: { + name: "String" + } + }, + hostName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.hostName", + type: { + name: "String" + } + }, + serialNumber: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.serialNumber", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkFabricControllerPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkFabricControllerPatch", + modelProperties: { + ...TagsUpdate.type.modelProperties, + infrastructureExpressRouteConnections: { + serializedName: "properties.infrastructureExpressRouteConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteConnectionInformation" + } + } + } + }, + workloadExpressRouteConnections: { + serializedName: "properties.workloadExpressRouteConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteConnectionInformation" + } + } + } + } + } + } +}; + +export const NetworkFabricPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkFabricPatch", + modelProperties: { + ...TagsUpdate.type.modelProperties, + annotation: { + serializedName: "properties.annotation", + type: { + name: "String" + } + }, rackCount: { constraints: { - InclusiveMaximum: 8, - InclusiveMinimum: 2 + InclusiveMaximum: 8, + InclusiveMinimum: 1 + }, + serializedName: "properties.rackCount", + type: { + name: "Number" + } + }, + serverCountPerRack: { + constraints: { + InclusiveMaximum: 16, + InclusiveMinimum: 1 + }, + serializedName: "properties.serverCountPerRack", + type: { + name: "Number" + } + }, + ipv4Prefix: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.ipv4Prefix", + type: { + name: "String" + } + }, + ipv6Prefix: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.ipv6Prefix", + type: { + name: "String" + } + }, + fabricASN: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 1 + }, + serializedName: "properties.fabricASN", + type: { + name: "Number" + } + }, + terminalServerConfiguration: { + serializedName: "properties.terminalServerConfiguration", + type: { + name: "Composite", + className: + "NetworkFabricPatchablePropertiesTerminalServerConfiguration" + } + }, + managementNetworkConfiguration: { + serializedName: "properties.managementNetworkConfiguration", + type: { + name: "Composite", + className: "ManagementNetworkConfigurationPatchableProperties" + } + } + } + } +}; + +export const NetworkPacketBrokerPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkPacketBrokerPatch", + modelProperties: { + ...TagsUpdate.type.modelProperties + } + } +}; + +export const NetworkTapRulePatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkTapRulePatch", + modelProperties: { + ...TagsUpdate.type.modelProperties, + annotation: { + serializedName: "properties.annotation", + type: { + name: "String" + } + }, + configurationType: { + serializedName: "properties.configurationType", + type: { + name: "String" + } + }, + tapRulesUrl: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.tapRulesUrl", + type: { + name: "String" + } + }, + matchConfigurations: { + constraints: { + MinItems: 1 + }, + serializedName: "properties.matchConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTapRuleMatchConfiguration" + } + } + } + }, + dynamicMatchConfigurations: { + constraints: { + MinItems: 1 + }, + serializedName: "properties.dynamicMatchConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CommonDynamicMatchConfiguration" + } + } + } + } + } + } +}; + +export const NetworkTapPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkTapPatch", + modelProperties: { + ...TagsUpdate.type.modelProperties, + annotation: { + serializedName: "properties.annotation", + type: { + name: "String" + } + }, + pollingType: { + serializedName: "properties.pollingType", + type: { + name: "String" + } + }, + destinations: { + serializedName: "properties.destinations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTapPatchableParametersDestinationsItem" + } + } + } + } + } + } +}; + +export const RoutePolicyPatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoutePolicyPatch", + modelProperties: { + ...TagsUpdate.type.modelProperties, + statements: { + serializedName: "properties.statements", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoutePolicyStatementProperties" + } + } + } + } + } + } +}; + +export const UpdateAdministrativeState: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateAdministrativeState", + modelProperties: { + ...EnableDisableOnResources.type.modelProperties, + state: { + serializedName: "state", + type: { + name: "String" + } + } + } + } +}; + +export const UpdateDeviceAdministrativeState: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateDeviceAdministrativeState", + modelProperties: { + ...EnableDisableOnResources.type.modelProperties, + state: { + serializedName: "state", + type: { + name: "String" + } + } + } + } +}; + +export const InternalNetworkPropertiesStaticRouteConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InternalNetworkPropertiesStaticRouteConfiguration", + modelProperties: { + ...StaticRouteConfiguration.type.modelProperties, + ...ExtensionEnumProperty.type.modelProperties + } + } +}; + +export const ExternalNetworkPropertiesOptionAProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExternalNetworkPropertiesOptionAProperties", + modelProperties: { + ...Layer3IpPrefixProperties.type.modelProperties, + ...L3OptionAProperties.type.modelProperties + } + } +}; + +export const ExternalNetworkPatchPropertiesOptionAProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExternalNetworkPatchPropertiesOptionAProperties", + modelProperties: { + ...Layer3IpPrefixProperties.type.modelProperties, + ...L3OptionAProperties.type.modelProperties + } + } +}; + +export const TerminalServerConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TerminalServerConfiguration", + modelProperties: { + ...TerminalServerPatchableProperties.type.modelProperties, + ...Layer3IpPrefixProperties.type.modelProperties, + networkDeviceId: { + serializedName: "networkDeviceId", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const VpnConfigurationPropertiesOptionAProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnConfigurationPropertiesOptionAProperties", + modelProperties: { + ...OptionAProperties.type.modelProperties, + ...Layer3IpPrefixProperties.type.modelProperties + } + } +}; + +export const NetworkFabricPatchablePropertiesTerminalServerConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkFabricPatchablePropertiesTerminalServerConfiguration", + modelProperties: { + ...TerminalServerPatchableProperties.type.modelProperties, + ...Layer3IpPrefixProperties.type.modelProperties + } + } +}; + +export const VpnConfigurationPatchablePropertiesOptionAProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VpnConfigurationPatchablePropertiesOptionAProperties", + modelProperties: { + ...OptionAProperties.type.modelProperties, + ...Layer3IpPrefixProperties.type.modelProperties + } + } +}; + +export const OptionBLayer3Configuration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OptionBLayer3Configuration", + modelProperties: { + ...Layer3IpPrefixProperties.type.modelProperties, + peerASN: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 1 }, - serializedName: "rackCount", - required: true, + serializedName: "peerASN", type: { name: "Number" } }, - serverCountPerRack: { + vlanId: { constraints: { - InclusiveMaximum: 16, - InclusiveMinimum: 1 + InclusiveMaximum: 4094, + InclusiveMinimum: 100 }, - serializedName: "serverCountPerRack", - required: true, + serializedName: "vlanId", type: { name: "Number" } }, - ipv4Prefix: { - serializedName: "ipv4Prefix", + fabricASN: { + serializedName: "fabricASN", + readOnly: true, + type: { + name: "Number" + } + } + } + } +}; + +export const NetworkTapPropertiesDestinationsItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkTapPropertiesDestinationsItem", + modelProperties: { + ...DestinationProperties.type.modelProperties + } + } +}; + +export const NetworkTapPatchableParametersDestinationsItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkTapPatchableParametersDestinationsItem", + modelProperties: { + ...DestinationProperties.type.modelProperties + } + } +}; + +export const StatementConditionProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StatementConditionProperties", + modelProperties: { + ...IpCommunityIdList.type.modelProperties, + ...IpExtendedCommunityIdList.type.modelProperties, + type: { + defaultValue: "Or", + serializedName: "type", type: { name: "String" } }, - ipv6Prefix: { - serializedName: "ipv6Prefix", + ipPrefixId: { + serializedName: "ipPrefixId", + type: { + name: "String" + } + } + } + } +}; + +export const ActionIpCommunityProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ActionIpCommunityProperties", + modelProperties: { + ...IpCommunityAddOperationProperties.type.modelProperties, + ...IpCommunityDeleteOperationProperties.type.modelProperties, + ...IpCommunitySetOperationProperties.type.modelProperties + } + } +}; + +export const ActionIpExtendedCommunityProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ActionIpExtendedCommunityProperties", + modelProperties: { + ...IpExtendedCommunityAddOperationProperties.type.modelProperties, + ...IpExtendedCommunityDeleteOperationProperties.type.modelProperties, + ...IpExtendedCommunitySetOperationProperties.type.modelProperties + } + } +}; + +export const InternalNetworkPropertiesBgpConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InternalNetworkPropertiesBgpConfiguration", + modelProperties: { + ...BgpConfiguration.type.modelProperties + } + } +}; + +export const AccessControlList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccessControlList", + modelProperties: { + ...TrackedResource.type.modelProperties, + annotation: { + serializedName: "properties.annotation", type: { name: "String" } }, - routerId: { - serializedName: "routerId", - readOnly: true, + configurationType: { + serializedName: "properties.configurationType", type: { name: "String" } }, - fabricASN: { + aclsUrl: { constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 + MinLength: 1 }, - serializedName: "fabricASN", - required: true, + serializedName: "properties.aclsUrl", type: { - name: "Number" + name: "String" } }, - networkFabricControllerId: { - serializedName: "networkFabricControllerId", - required: true, + matchConfigurations: { + constraints: { + MinItems: 1 + }, + serializedName: "properties.matchConfigurations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessControlListMatchConfiguration" + } + } } }, - terminalServerConfiguration: { - serializedName: "terminalServerConfiguration", + dynamicMatchConfigurations: { + constraints: { + MinItems: 1 + }, + serializedName: "properties.dynamicMatchConfigurations", type: { - name: "Composite", - className: "TerminalServerConfiguration" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CommonDynamicMatchConfiguration" + } + } } }, - managementNetworkConfiguration: { - serializedName: "managementNetworkConfiguration", + lastSyncedTime: { + serializedName: "properties.lastSyncedTime", + readOnly: true, type: { - name: "Composite", - className: "ManagementNetworkConfiguration" + name: "DateTime" } }, - operationalState: { - serializedName: "operationalState", + configurationState: { + serializedName: "properties.configurationState", readOnly: true, type: { name: "String" } }, provisioningState: { - serializedName: "provisioningState", + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + administrativeState: { + serializedName: "properties.administrativeState", readOnly: true, type: { name: "String" @@ -3756,52 +6419,54 @@ export const NetworkFabricProperties: coreClient.CompositeMapper = { } }; -export const NetworkFabricPatchParametersProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkFabricPatchParametersProperties", - modelProperties: { - ...AnnotationResource.type.modelProperties, - ...TerminalServerPatchParameters.type.modelProperties, - ...NetworkFabricPatchableProperties.type.modelProperties - } - } -}; - -export const NetworkRackProperties: coreClient.CompositeMapper = { +export const InternetGateway: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkRackProperties", + className: "InternetGateway", modelProperties: { - ...AnnotationResource.type.modelProperties, - networkRackSku: { - serializedName: "networkRackSku", - required: true, + ...TrackedResource.type.modelProperties, + annotation: { + serializedName: "properties.annotation", type: { name: "String" } }, - networkFabricId: { - serializedName: "networkFabricId", - required: true, + internetGatewayRuleId: { + serializedName: "properties.internetGatewayRuleId", type: { name: "String" } }, - networkDevices: { - serializedName: "networkDevices", + ipv4Address: { + serializedName: "properties.ipv4Address", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + }, + port: { + serializedName: "properties.port", + readOnly: true, + type: { + name: "Number" + } + }, + typePropertiesType: { + serializedName: "properties.type", + required: true, + type: { + name: "String" + } + }, + networkFabricControllerId: { + serializedName: "properties.networkFabricControllerId", + required: true, + type: { + name: "String" } }, provisioningState: { - serializedName: "provisioningState", + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" @@ -3811,113 +6476,89 @@ export const NetworkRackProperties: coreClient.CompositeMapper = { } }; -export const RoutePolicyStatementProperties: coreClient.CompositeMapper = { +export const InternetGatewayRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoutePolicyStatementProperties", + className: "InternetGatewayRule", modelProperties: { - ...AnnotationResource.type.modelProperties, - sequenceNumber: { - constraints: { - InclusiveMaximum: 4294967295, - InclusiveMinimum: 1 - }, - serializedName: "sequenceNumber", - required: true, + ...TrackedResource.type.modelProperties, + annotation: { + serializedName: "properties.annotation", type: { - name: "Number" + name: "String" } }, - condition: { - serializedName: "condition", + ruleProperties: { + serializedName: "properties.ruleProperties", type: { name: "Composite", - className: "StatementConditionProperties" + className: "RuleProperties" } }, - action: { - serializedName: "action", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Composite", - className: "StatementActionProperties" + name: "String" + } + }, + internetGatewayIds: { + serializedName: "properties.internetGatewayIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const RoutePolicyProperties: coreClient.CompositeMapper = { +export const IpCommunity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoutePolicyProperties", + className: "IpCommunity", modelProperties: { - ...AnnotationResource.type.modelProperties, - statements: { - serializedName: "statements", - required: true, + ...TrackedResource.type.modelProperties, + annotation: { + serializedName: "properties.annotation", + type: { + name: "String" + } + }, + ipCommunityRules: { + serializedName: "properties.ipCommunityRules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RoutePolicyStatementProperties" + className: "IpCommunityRule" } } } }, - provisioningState: { - serializedName: "provisioningState", + configurationState: { + serializedName: "properties.configurationState", readOnly: true, type: { name: "String" } - } - } - } -}; - -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } }, - location: { - serializedName: "location", - required: true, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - -export const UpdateAdministrativeState: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateAdministrativeState", - modelProperties: { - ...EnableDisableOnResources.type.modelProperties, - state: { - serializedName: "state", + }, + administrativeState: { + serializedName: "properties.administrativeState", + readOnly: true, type: { name: "String" } @@ -3926,209 +6567,163 @@ export const UpdateAdministrativeState: coreClient.CompositeMapper = { } }; -export const Layer3OptionAProperties: coreClient.CompositeMapper = { +export const IpExtendedCommunity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Layer3OptionAProperties", + className: "IpExtendedCommunity", modelProperties: { - ...Layer3IpPrefixProperties.type.modelProperties, - mtu: { - defaultValue: 1500, - constraints: { - InclusiveMaximum: 9000, - InclusiveMinimum: 1500 - }, - serializedName: "mtu", + ...TrackedResource.type.modelProperties, + annotation: { + serializedName: "properties.annotation", type: { - name: "Number" + name: "String" } }, - vlanId: { - constraints: { - InclusiveMaximum: 4095, - InclusiveMinimum: 501 - }, - serializedName: "vlanId", + ipExtendedCommunityRules: { + serializedName: "properties.ipExtendedCommunityRules", + required: true, type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpExtendedCommunityRule" + } + } } }, - fabricASN: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "fabricASN", + configurationState: { + serializedName: "properties.configurationState", readOnly: true, type: { - name: "Number" + name: "String" } }, - peerASN: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "peerASN", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Number" + name: "String" } }, - bfdConfiguration: { - serializedName: "bfdConfiguration", + administrativeState: { + serializedName: "properties.administrativeState", + readOnly: true, type: { - name: "Composite", - className: "BfdConfiguration" + name: "String" } } } } }; -export const TerminalServerConfiguration: coreClient.CompositeMapper = { +export const IpPrefix: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TerminalServerConfiguration", + className: "IpPrefix", modelProperties: { - ...Layer3IpPrefixProperties.type.modelProperties, - ...TerminalServerPatchableProperties.type.modelProperties, - networkDeviceId: { - serializedName: "networkDeviceId", - readOnly: true, + ...TrackedResource.type.modelProperties, + annotation: { + serializedName: "properties.annotation", type: { name: "String" } - } - } - } -}; - -export const OptionAProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OptionAProperties", - modelProperties: { - ...Layer3IpPrefixProperties.type.modelProperties, - mtu: { - defaultValue: 1500, - constraints: { - InclusiveMaximum: 9000, - InclusiveMinimum: 1500 - }, - serializedName: "mtu", + }, + ipPrefixRules: { + serializedName: "properties.ipPrefixRules", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IpPrefixRule" + } + } } }, - vlanId: { - constraints: { - InclusiveMaximum: 4095, - InclusiveMinimum: 501 - }, - serializedName: "vlanId", + configurationState: { + serializedName: "properties.configurationState", + readOnly: true, type: { - name: "Number" + name: "String" } }, - peerASN: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "peerASN", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Number" + name: "String" } }, - bfdConfiguration: { - serializedName: "bfdConfiguration", + administrativeState: { + serializedName: "properties.administrativeState", + readOnly: true, type: { - name: "Composite", - className: "FabricBfdConfiguration" + name: "String" } } } } }; -export const Layer3Configuration: coreClient.CompositeMapper = { +export const L2IsolationDomain: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Layer3Configuration", + className: "L2IsolationDomain", modelProperties: { - ...Layer3IpPrefixProperties.type.modelProperties, - importRoutePolicyId: { - serializedName: "importRoutePolicyId", + ...TrackedResource.type.modelProperties, + annotation: { + serializedName: "properties.annotation", type: { name: "String" } }, - exportRoutePolicyId: { - serializedName: "exportRoutePolicyId", + networkFabricId: { + serializedName: "properties.networkFabricId", + required: true, type: { name: "String" } }, - peerASN: { + vlanId: { constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 + InclusiveMaximum: 4094, + InclusiveMinimum: 100 }, - serializedName: "peerASN", + serializedName: "properties.vlanId", + required: true, type: { name: "Number" } }, - vlanId: { + mtu: { + defaultValue: 1500, constraints: { - InclusiveMaximum: 4095, - InclusiveMinimum: 501 + InclusiveMaximum: 9200, + InclusiveMinimum: 64 }, - serializedName: "vlanId", + serializedName: "properties.mtu", type: { name: "Number" } }, - fabricASN: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "fabricASN", + configurationState: { + serializedName: "properties.configurationState", readOnly: true, type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const GetDynamicInterfaceMapsPropertiesItem: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GetDynamicInterfaceMapsPropertiesItem", - modelProperties: { - ...InterfaceStatus.type.modelProperties, - name: { - serializedName: "name", + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const StatementConditionProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StatementConditionProperties", - modelProperties: { - ...IpCommunityIdList.type.modelProperties, - ...IpExtendedCommunityIdList.type.modelProperties, - ipPrefixId: { - serializedName: "ipPrefixId", + }, + administrativeState: { + serializedName: "properties.administrativeState", + readOnly: true, type: { name: "String" } @@ -4137,34 +6732,10 @@ export const StatementConditionProperties: coreClient.CompositeMapper = { } }; -export const ActionIpCommunityProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ActionIpCommunityProperties", - modelProperties: { - ...IpCommunityAddOperationProperties.type.modelProperties, - ...IpCommunityDeleteOperationProperties.type.modelProperties, - ...IpCommunitySetOperationProperties.type.modelProperties - } - } -}; - -export const ActionIpExtendedCommunityProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ActionIpExtendedCommunityProperties", - modelProperties: { - ...IpExtendedCommunityAddOperationProperties.type.modelProperties, - ...IpExtendedCommunityDeleteOperationProperties.type.modelProperties, - ...IpExtendedCommunitySetOperationProperties.type.modelProperties - } - } -}; - -export const AccessControlList: coreClient.CompositeMapper = { +export const L3IsolationDomain: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccessControlList", + className: "L3IsolationDomain", modelProperties: { ...TrackedResource.type.modelProperties, annotation: { @@ -4173,24 +6744,46 @@ export const AccessControlList: coreClient.CompositeMapper = { name: "String" } }, - addressFamily: { - serializedName: "properties.addressFamily", - required: true, + redistributeConnectedSubnets: { + defaultValue: "True", + serializedName: "properties.redistributeConnectedSubnets", + type: { + name: "String" + } + }, + redistributeStaticRoutes: { + defaultValue: "False", + serializedName: "properties.redistributeStaticRoutes", type: { name: "String" } }, - conditions: { - serializedName: "properties.conditions", + aggregateRouteConfiguration: { + serializedName: "properties.aggregateRouteConfiguration", + type: { + name: "Composite", + className: "AggregateRouteConfiguration" + } + }, + connectedSubnetRoutePolicy: { + serializedName: "properties.connectedSubnetRoutePolicy", + type: { + name: "Composite", + className: "ConnectedSubnetRoutePolicy" + } + }, + networkFabricId: { + serializedName: "properties.networkFabricId", required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AccessControlListConditionProperties" - } - } + name: "String" + } + }, + configurationState: { + serializedName: "properties.configurationState", + readOnly: true, + type: { + name: "String" } }, provisioningState: { @@ -4199,15 +6792,22 @@ export const AccessControlList: coreClient.CompositeMapper = { type: { name: "String" } + }, + administrativeState: { + serializedName: "properties.administrativeState", + readOnly: true, + type: { + name: "String" + } } } } }; -export const IpCommunity: coreClient.CompositeMapper = { +export const NeighborGroup: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpCommunity", + className: "NeighborGroup", modelProperties: { ...TrackedResource.type.modelProperties, annotation: { @@ -4216,17 +6816,16 @@ export const IpCommunity: coreClient.CompositeMapper = { name: "String" } }, - action: { - serializedName: "properties.action", + destination: { + serializedName: "properties.destination", type: { - name: "String" + name: "Composite", + className: "NeighborGroupDestination" } }, - wellKnownCommunities: { - constraints: { - UniqueItems: true - }, - serializedName: "properties.wellKnownCommunities", + networkTapIds: { + serializedName: "properties.networkTapIds", + readOnly: true, type: { name: "Sequence", element: { @@ -4236,8 +6835,9 @@ export const IpCommunity: coreClient.CompositeMapper = { } } }, - communityMembers: { - serializedName: "properties.communityMembers", + networkTapRuleIds: { + serializedName: "properties.networkTapRuleIds", + readOnly: true, type: { name: "Sequence", element: { @@ -4258,10 +6858,10 @@ export const IpCommunity: coreClient.CompositeMapper = { } }; -export const IpExtendedCommunity: coreClient.CompositeMapper = { +export const NetworkDevice: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpExtendedCommunity", + className: "NetworkDevice", modelProperties: { ...TrackedResource.type.modelProperties, annotation: { @@ -4270,21 +6870,70 @@ export const IpExtendedCommunity: coreClient.CompositeMapper = { name: "String" } }, - action: { - serializedName: "properties.action", + hostName: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.hostName", type: { name: "String" } }, - routeTargets: { - serializedName: "properties.routeTargets", + serialNumber: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.serialNumber", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + }, + version: { + serializedName: "properties.version", + readOnly: true, + type: { + name: "String" + } + }, + networkDeviceSku: { + serializedName: "properties.networkDeviceSku", + type: { + name: "String" + } + }, + networkDeviceRole: { + serializedName: "properties.networkDeviceRole", + readOnly: true, + type: { + name: "String" + } + }, + networkRackId: { + serializedName: "properties.networkRackId", + readOnly: true, + type: { + name: "String" + } + }, + managementIpv4Address: { + serializedName: "properties.managementIpv4Address", + readOnly: true, + type: { + name: "String" + } + }, + managementIpv6Address: { + serializedName: "properties.managementIpv6Address", + readOnly: true, + type: { + name: "String" + } + }, + configurationState: { + serializedName: "properties.configurationState", + readOnly: true, + type: { + name: "String" } }, provisioningState: { @@ -4293,15 +6942,22 @@ export const IpExtendedCommunity: coreClient.CompositeMapper = { type: { name: "String" } + }, + administrativeState: { + serializedName: "properties.administrativeState", + readOnly: true, + type: { + name: "String" + } } } } }; -export const IpPrefix: coreClient.CompositeMapper = { +export const NetworkFabricController: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IpPrefix", + className: "NetworkFabricController", modelProperties: { ...TrackedResource.type.modelProperties, annotation: { @@ -4310,19 +6966,117 @@ export const IpPrefix: coreClient.CompositeMapper = { name: "String" } }, - ipPrefixRules: { - serializedName: "properties.ipPrefixRules", - required: true, + infrastructureExpressRouteConnections: { + serializedName: "properties.infrastructureExpressRouteConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressRouteConnectionInformation" + } + } + } + }, + workloadExpressRouteConnections: { + serializedName: "properties.workloadExpressRouteConnections", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IpPrefixPropertiesIpPrefixRulesItem" + className: "ExpressRouteConnectionInformation" + } + } + } + }, + infrastructureServices: { + serializedName: "properties.infrastructureServices", + type: { + name: "Composite", + className: "ControllerServices" + } + }, + workloadServices: { + serializedName: "properties.workloadServices", + type: { + name: "Composite", + className: "ControllerServices" + } + }, + managedResourceGroupConfiguration: { + serializedName: "properties.managedResourceGroupConfiguration", + type: { + name: "Composite", + className: "ManagedResourceGroupConfiguration" + } + }, + networkFabricIds: { + serializedName: "properties.networkFabricIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + workloadManagementNetwork: { + defaultValue: true, + serializedName: "properties.workloadManagementNetwork", + readOnly: true, + type: { + name: "Boolean" + } + }, + isWorkloadManagementNetworkEnabled: { + defaultValue: "True", + serializedName: "properties.isWorkloadManagementNetworkEnabled", + type: { + name: "String" + } + }, + tenantInternetGatewayIds: { + serializedName: "properties.tenantInternetGatewayIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" } } } }, + ipv4AddressSpace: { + defaultValue: "10.0.0.0/19", + constraints: { + MinLength: 1 + }, + serializedName: "properties.ipv4AddressSpace", + type: { + name: "String" + } + }, + ipv6AddressSpace: { + defaultValue: "FC00::/59", + constraints: { + MinLength: 1 + }, + serializedName: "properties.ipv6AddressSpace", + type: { + name: "String" + } + }, + nfcSku: { + defaultValue: "Standard", + serializedName: "properties.nfcSku", + type: { + name: "String" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -4334,10 +7088,10 @@ export const IpPrefix: coreClient.CompositeMapper = { } }; -export const L2IsolationDomain: coreClient.CompositeMapper = { +export const NetworkFabric: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L2IsolationDomain", + className: "NetworkFabric", modelProperties: { ...TrackedResource.type.modelProperties, annotation: { @@ -4346,26 +7100,25 @@ export const L2IsolationDomain: coreClient.CompositeMapper = { name: "String" } }, - networkFabricId: { - serializedName: "properties.networkFabricId", + networkFabricSku: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.networkFabricSku", + required: true, type: { name: "String" } }, - vlanId: { - serializedName: "properties.vlanId", - type: { - name: "Number" - } - }, - mtu: { - serializedName: "properties.mtu", + fabricVersion: { + serializedName: "properties.fabricVersion", + readOnly: true, type: { - name: "Number" + name: "String" } }, - disabledOnResources: { - serializedName: "properties.disabledOnResources", + routerIds: { + serializedName: "properties.routerIds", readOnly: true, type: { name: "Sequence", @@ -4373,82 +7126,83 @@ export const L2IsolationDomain: coreClient.CompositeMapper = { type: { name: "String" } - } - } - }, - administrativeState: { - serializedName: "properties.administrativeState", - readOnly: true, - type: { - name: "String" + } } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + networkFabricControllerId: { + serializedName: "properties.networkFabricControllerId", + required: true, type: { name: "String" } - } - } - } -}; - -export const L3IsolationDomain: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "L3IsolationDomain", - modelProperties: { - ...TrackedResource.type.modelProperties, - annotation: { - serializedName: "properties.annotation", + }, + rackCount: { + constraints: { + InclusiveMaximum: 8, + InclusiveMinimum: 1 + }, + serializedName: "properties.rackCount", type: { - name: "String" + name: "Number" } }, - redistributeConnectedSubnets: { - defaultValue: "True", - serializedName: "properties.redistributeConnectedSubnets", + serverCountPerRack: { + constraints: { + InclusiveMaximum: 16, + InclusiveMinimum: 1 + }, + serializedName: "properties.serverCountPerRack", + required: true, type: { - name: "String" + name: "Number" } }, - redistributeStaticRoutes: { - defaultValue: "False", - serializedName: "properties.redistributeStaticRoutes", + ipv4Prefix: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.ipv4Prefix", + required: true, type: { name: "String" } }, - aggregateRouteConfiguration: { - serializedName: "properties.aggregateRouteConfiguration", + ipv6Prefix: { + constraints: { + MinLength: 1 + }, + serializedName: "properties.ipv6Prefix", type: { - name: "Composite", - className: "AggregateRouteConfiguration" + name: "String" } }, - description: { - serializedName: "properties.description", + fabricASN: { + constraints: { + InclusiveMaximum: 4294967295, + InclusiveMinimum: 1 + }, + serializedName: "properties.fabricASN", + required: true, type: { - name: "String" + name: "Number" } }, - connectedSubnetRoutePolicy: { - serializedName: "properties.connectedSubnetRoutePolicy", + terminalServerConfiguration: { + serializedName: "properties.terminalServerConfiguration", type: { name: "Composite", - className: - "L3IsolationDomainPatchPropertiesConnectedSubnetRoutePolicy" + className: "TerminalServerConfiguration" } }, - networkFabricId: { - serializedName: "properties.networkFabricId", + managementNetworkConfiguration: { + serializedName: "properties.managementNetworkConfiguration", type: { - name: "String" + name: "Composite", + className: "ManagementNetworkConfigurationProperties" } }, - disabledOnResources: { - serializedName: "properties.disabledOnResources", + racks: { + serializedName: "properties.racks", readOnly: true, type: { name: "Sequence", @@ -4459,15 +7213,8 @@ export const L3IsolationDomain: coreClient.CompositeMapper = { } } }, - administrativeState: { - serializedName: "properties.administrativeState", - readOnly: true, - type: { - name: "String" - } - }, - optionBDisabledOnResources: { - serializedName: "properties.optionBDisabledOnResources", + l2IsolationDomains: { + serializedName: "properties.l2IsolationDomains", readOnly: true, type: { name: "Sequence", @@ -4478,60 +7225,25 @@ export const L3IsolationDomain: coreClient.CompositeMapper = { } } }, - provisioningState: { - serializedName: "properties.provisioningState", + l3IsolationDomains: { + serializedName: "properties.l3IsolationDomains", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const NetworkDevice: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkDevice", - modelProperties: { - ...TrackedResource.type.modelProperties, - annotation: { - serializedName: "properties.annotation", - type: { - name: "String" - } - }, - hostName: { - serializedName: "properties.hostName", - type: { - name: "String" - } - }, - serialNumber: { - serializedName: "properties.serialNumber", - type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - version: { - serializedName: "properties.version", + configurationState: { + serializedName: "properties.configurationState", readOnly: true, type: { name: "String" } }, - networkDeviceSku: { - serializedName: "properties.networkDeviceSku", - type: { - name: "String" - } - }, - networkDeviceRole: { - serializedName: "properties.networkDeviceRole", - type: { - name: "String" - } - }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -4539,8 +7251,8 @@ export const NetworkDevice: coreClient.CompositeMapper = { name: "String" } }, - networkRackId: { - serializedName: "properties.networkRackId", + administrativeState: { + serializedName: "properties.administrativeState", readOnly: true, type: { name: "String" @@ -4550,65 +7262,45 @@ export const NetworkDevice: coreClient.CompositeMapper = { } }; -export const NetworkFabricController: coreClient.CompositeMapper = { +export const NetworkPacketBroker: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkFabricController", + className: "NetworkPacketBroker", modelProperties: { ...TrackedResource.type.modelProperties, - annotation: { - serializedName: "properties.annotation", + networkFabricId: { + serializedName: "properties.networkFabricId", + required: true, type: { name: "String" } }, - infrastructureExpressRouteConnections: { - serializedName: "properties.infrastructureExpressRouteConnections", + networkDeviceIds: { + serializedName: "properties.networkDeviceIds", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ExpressRouteConnectionInformation" + name: "String" } } } }, - workloadExpressRouteConnections: { - serializedName: "properties.workloadExpressRouteConnections", + sourceInterfaceIds: { + serializedName: "properties.sourceInterfaceIds", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ExpressRouteConnectionInformation" + name: "String" } } } }, - infrastructureServices: { - serializedName: "properties.infrastructureServices", - type: { - name: "Composite", - className: "InfrastructureServices" - } - }, - workloadServices: { - serializedName: "properties.workloadServices", - type: { - name: "Composite", - className: "WorkloadServices" - } - }, - managedResourceGroupConfiguration: { - serializedName: "properties.managedResourceGroupConfiguration", - type: { - name: "Composite", - className: "ManagedResourceGroupConfiguration" - } - }, - networkFabricIds: { - serializedName: "properties.networkFabricIds", + networkTapIds: { + serializedName: "properties.networkTapIds", readOnly: true, type: { name: "Sequence", @@ -4619,31 +7311,16 @@ export const NetworkFabricController: coreClient.CompositeMapper = { } } }, - workloadManagementNetwork: { - defaultValue: true, - serializedName: "properties.workloadManagementNetwork", - readOnly: true, - type: { - name: "Boolean" - } - }, - ipv4AddressSpace: { - serializedName: "properties.ipv4AddressSpace", - type: { - name: "String" - } - }, - ipv6AddressSpace: { - serializedName: "properties.ipv6AddressSpace", - type: { - name: "String" - } - }, - operationalState: { - serializedName: "properties.operationalState", + neighborGroupIds: { + serializedName: "properties.neighborGroupIds", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, provisioningState: { @@ -4657,10 +7334,10 @@ export const NetworkFabricController: coreClient.CompositeMapper = { } }; -export const NetworkFabric: coreClient.CompositeMapper = { +export const NetworkRack: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkFabric", + className: "NetworkRack", modelProperties: { ...TrackedResource.type.modelProperties, annotation: { @@ -4669,20 +7346,21 @@ export const NetworkFabric: coreClient.CompositeMapper = { name: "String" } }, - racks: { - serializedName: "properties.racks", - readOnly: true, + networkRackType: { + serializedName: "properties.networkRackType", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - l2IsolationDomains: { - serializedName: "properties.l2IsolationDomains", + networkFabricId: { + serializedName: "properties.networkFabricId", + required: true, + type: { + name: "String" + } + }, + networkDevices: { + serializedName: "properties.networkDevices", readOnly: true, type: { name: "Sequence", @@ -4693,102 +7371,111 @@ export const NetworkFabric: coreClient.CompositeMapper = { } } }, - l3IsolationDomains: { - serializedName: "properties.l3IsolationDomains", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + } + } + } +}; + +export const NetworkTapRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkTapRule", + modelProperties: { + ...TrackedResource.type.modelProperties, + annotation: { + serializedName: "properties.annotation", + type: { + name: "String" } }, - networkFabricSku: { - serializedName: "properties.networkFabricSku", + configurationType: { + serializedName: "properties.configurationType", type: { name: "String" } }, - rackCount: { + tapRulesUrl: { constraints: { - InclusiveMaximum: 8, - InclusiveMinimum: 2 + MinLength: 1 }, - serializedName: "properties.rackCount", + serializedName: "properties.tapRulesUrl", type: { - name: "Number" + name: "String" } }, - serverCountPerRack: { + matchConfigurations: { constraints: { - InclusiveMaximum: 16, - InclusiveMinimum: 1 + MinItems: 1 }, - serializedName: "properties.serverCountPerRack", - type: { - name: "Number" - } - }, - ipv4Prefix: { - serializedName: "properties.ipv4Prefix", + serializedName: "properties.matchConfigurations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkTapRuleMatchConfiguration" + } + } } }, - ipv6Prefix: { - serializedName: "properties.ipv6Prefix", + dynamicMatchConfigurations: { + constraints: { + MinItems: 1 + }, + serializedName: "properties.dynamicMatchConfigurations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CommonDynamicMatchConfiguration" + } + } } }, - routerId: { - serializedName: "properties.routerId", + networkTapId: { + serializedName: "properties.networkTapId", readOnly: true, type: { name: "String" } }, - fabricASN: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1 - }, - serializedName: "properties.fabricASN", + pollingIntervalInSeconds: { + defaultValue: 30, + serializedName: "properties.pollingIntervalInSeconds", type: { name: "Number" } }, - networkFabricControllerId: { - serializedName: "properties.networkFabricControllerId", - type: { - name: "String" - } - }, - terminalServerConfiguration: { - serializedName: "properties.terminalServerConfiguration", + lastSyncedTime: { + serializedName: "properties.lastSyncedTime", + readOnly: true, type: { - name: "Composite", - className: "TerminalServerConfiguration" + name: "DateTime" } }, - managementNetworkConfiguration: { - serializedName: "properties.managementNetworkConfiguration", + configurationState: { + serializedName: "properties.configurationState", + readOnly: true, type: { - name: "Composite", - className: "ManagementNetworkConfiguration" + name: "String" } }, - operationalState: { - serializedName: "properties.operationalState", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + administrativeState: { + serializedName: "properties.administrativeState", readOnly: true, type: { name: "String" @@ -4798,10 +7485,10 @@ export const NetworkFabric: coreClient.CompositeMapper = { } }; -export const NetworkRack: coreClient.CompositeMapper = { +export const NetworkTap: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkRack", + className: "NetworkTap", modelProperties: { ...TrackedResource.type.modelProperties, annotation: { @@ -4810,38 +7497,62 @@ export const NetworkRack: coreClient.CompositeMapper = { name: "String" } }, - networkRackSku: { - serializedName: "properties.networkRackSku", + networkPacketBrokerId: { + serializedName: "properties.networkPacketBrokerId", required: true, type: { name: "String" } }, - networkFabricId: { - serializedName: "properties.networkFabricId", - required: true, + sourceTapRuleId: { + serializedName: "properties.sourceTapRuleId", + readOnly: true, type: { name: "String" } }, - networkDevices: { - serializedName: "properties.networkDevices", - readOnly: true, + destinations: { + constraints: { + MinItems: 1 + }, + serializedName: "properties.destinations", + required: true, type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "NetworkTapPropertiesDestinationsItem" } } } }, + pollingType: { + serializedName: "properties.pollingType", + type: { + name: "String" + } + }, + configurationState: { + serializedName: "properties.configurationState", + readOnly: true, + type: { + name: "String" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } + }, + administrativeState: { + serializedName: "properties.administrativeState", + readOnly: true, + type: { + name: "String" + } } } } @@ -4861,7 +7572,6 @@ export const RoutePolicy: coreClient.CompositeMapper = { }, statements: { serializedName: "properties.statements", - required: true, type: { name: "Sequence", element: { @@ -4872,12 +7582,40 @@ export const RoutePolicy: coreClient.CompositeMapper = { } } }, + networkFabricId: { + serializedName: "properties.networkFabricId", + required: true, + type: { + name: "String" + } + }, + addressFamilyType: { + defaultValue: "IPv4", + serializedName: "properties.addressFamilyType", + type: { + name: "String" + } + }, + configurationState: { + serializedName: "properties.configurationState", + readOnly: true, + type: { + name: "String" + } + }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } + }, + administrativeState: { + serializedName: "properties.administrativeState", + readOnly: true, + type: { + name: "String" + } } } } @@ -4898,8 +7636,8 @@ export const InternalNetwork: coreClient.CompositeMapper = { mtu: { defaultValue: 1500, constraints: { - InclusiveMaximum: 9000, - InclusiveMinimum: 1500 + InclusiveMaximum: 9200, + InclusiveMinimum: 64 }, serializedName: "properties.mtu", type: { @@ -4907,6 +7645,9 @@ export const InternalNetwork: coreClient.CompositeMapper = { } }, connectedIPv4Subnets: { + constraints: { + MinItems: 1 + }, serializedName: "properties.connectedIPv4Subnets", type: { name: "Sequence", @@ -4919,6 +7660,9 @@ export const InternalNetwork: coreClient.CompositeMapper = { } }, connectedIPv6Subnets: { + constraints: { + MinItems: 1 + }, serializedName: "properties.connectedIPv6Subnets", type: { name: "Sequence", @@ -4930,85 +7674,88 @@ export const InternalNetwork: coreClient.CompositeMapper = { } } }, - staticRouteConfiguration: { - serializedName: "properties.staticRouteConfiguration", + importRoutePolicyId: { + serializedName: "properties.importRoutePolicyId", + type: { + name: "String" + } + }, + exportRoutePolicyId: { + serializedName: "properties.exportRoutePolicyId", + type: { + name: "String" + } + }, + importRoutePolicy: { + serializedName: "properties.importRoutePolicy", type: { name: "Composite", - className: "StaticRouteConfiguration" + className: "ImportRoutePolicy" } }, - bgpConfiguration: { - serializedName: "properties.bgpConfiguration", + exportRoutePolicy: { + serializedName: "properties.exportRoutePolicy", type: { name: "Composite", - className: "BgpConfiguration" + className: "ExportRoutePolicy" } }, - importRoutePolicyId: { - serializedName: "properties.importRoutePolicyId", + ingressAclId: { + serializedName: "properties.ingressAclId", type: { name: "String" } }, - exportRoutePolicyId: { - serializedName: "properties.exportRoutePolicyId", + egressAclId: { + serializedName: "properties.egressAclId", type: { name: "String" } }, - disabledOnResources: { - serializedName: "properties.disabledOnResources", - readOnly: true, + isMonitoringEnabled: { + defaultValue: "False", + serializedName: "properties.isMonitoringEnabled", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - administrativeState: { - serializedName: "properties.administrativeState", - readOnly: true, + extension: { + defaultValue: "NoExtension", + serializedName: "properties.extension", type: { name: "String" } }, - bgpDisabledOnResources: { - serializedName: "properties.bgpDisabledOnResources", - readOnly: true, + vlanId: { + constraints: { + InclusiveMaximum: 4094, + InclusiveMinimum: 100 + }, + serializedName: "properties.vlanId", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - bfdDisabledOnResources: { - serializedName: "properties.bfdDisabledOnResources", - readOnly: true, + bgpConfiguration: { + serializedName: "properties.bgpConfiguration", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "InternalNetworkPropertiesBgpConfiguration" + } + }, + staticRouteConfiguration: { + serializedName: "properties.staticRouteConfiguration", + type: { + name: "Composite", + className: "InternalNetworkPropertiesStaticRouteConfiguration" } }, - bfdForStaticRoutesDisabledOnResources: { - serializedName: "properties.bfdForStaticRoutesDisabledOnResources", + configurationState: { + serializedName: "properties.configurationState", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, provisioningState: { @@ -5018,15 +7765,11 @@ export const InternalNetwork: coreClient.CompositeMapper = { name: "String" } }, - vlanId: { - constraints: { - InclusiveMaximum: 4095, - InclusiveMinimum: 100 - }, - serializedName: "properties.vlanId", - required: true, + administrativeState: { + serializedName: "properties.administrativeState", + readOnly: true, type: { - name: "Number" + name: "String" } } } @@ -5045,34 +7788,34 @@ export const ExternalNetwork: coreClient.CompositeMapper = { name: "String" } }, - networkToNetworkInterconnectId: { - serializedName: "properties.networkToNetworkInterconnectId", - readOnly: true, + importRoutePolicyId: { + serializedName: "properties.importRoutePolicyId", type: { name: "String" } }, - disabledOnResources: { - serializedName: "properties.disabledOnResources", - readOnly: true, + exportRoutePolicyId: { + serializedName: "properties.exportRoutePolicyId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - administrativeState: { - serializedName: "properties.administrativeState", - readOnly: true, + importRoutePolicy: { + serializedName: "properties.importRoutePolicy", type: { - name: "String" + name: "Composite", + className: "ImportRoutePolicy" } }, - provisioningState: { - serializedName: "properties.provisioningState", + exportRoutePolicy: { + serializedName: "properties.exportRoutePolicy", + type: { + name: "Composite", + className: "ExportRoutePolicy" + } + }, + networkToNetworkInterconnectId: { + serializedName: "properties.networkToNetworkInterconnectId", readOnly: true, type: { name: "String" @@ -5089,7 +7832,7 @@ export const ExternalNetwork: coreClient.CompositeMapper = { serializedName: "properties.optionBProperties", type: { name: "Composite", - className: "OptionBProperties" + className: "L3OptionBProperties" } }, optionAProperties: { @@ -5099,14 +7842,23 @@ export const ExternalNetwork: coreClient.CompositeMapper = { className: "ExternalNetworkPropertiesOptionAProperties" } }, - importRoutePolicyId: { - serializedName: "properties.importRoutePolicyId", + configurationState: { + serializedName: "properties.configurationState", + readOnly: true, type: { name: "String" } }, - exportRoutePolicyId: { - serializedName: "properties.exportRoutePolicyId", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String" + } + }, + administrativeState: { + serializedName: "properties.administrativeState", + readOnly: true, type: { name: "String" } @@ -5146,13 +7898,6 @@ export const NetworkDeviceSku: coreClient.CompositeMapper = { } } }, - limits: { - serializedName: "properties.limits", - type: { - name: "Composite", - className: "DeviceLimits" - } - }, supportedRoleTypes: { serializedName: "properties.supportedRoleTypes", type: { @@ -5206,43 +7951,43 @@ export const NetworkInterface: coreClient.CompositeMapper = { name: "String" } }, - administrativeState: { - serializedName: "properties.administrativeState", + connectedTo: { + serializedName: "properties.connectedTo", readOnly: true, type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + interfaceType: { + serializedName: "properties.interfaceType", readOnly: true, type: { name: "String" } }, - connectedTo: { - serializedName: "properties.connectedTo", + ipv4Address: { + serializedName: "properties.ipv4Address", readOnly: true, type: { name: "String" } }, - interfaceType: { - serializedName: "properties.interfaceType", + ipv6Address: { + serializedName: "properties.ipv6Address", readOnly: true, type: { name: "String" } }, - ipv4Address: { - serializedName: "properties.ipv4Address", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String" } }, - ipv6Address: { - serializedName: "properties.ipv6Address", + administrativeState: { + serializedName: "properties.administrativeState", readOnly: true, type: { name: "String" @@ -5271,22 +8016,26 @@ export const NetworkFabricSku: coreClient.CompositeMapper = { name: "Number" } }, - minSupportedVer: { - serializedName: "properties.minSupportedVer", - readOnly: true, + maximumServerCount: { + serializedName: "properties.maximumServerCount", type: { - name: "String" + name: "Number" } }, - maxSupportedVer: { - serializedName: "properties.maxSupportedVer", + supportedVersions: { + serializedName: "properties.supportedVersions", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - detailsUri: { - serializedName: "properties.detailsUri", + details: { + serializedName: "properties.details", readOnly: true, type: { name: "String" @@ -5316,14 +8065,8 @@ export const NetworkToNetworkInterconnect: coreClient.CompositeMapper = { name: "String" } }, - administrativeState: { - serializedName: "properties.administrativeState", - readOnly: true, - type: { - name: "String" - } - }, isManagementType: { + defaultValue: "True", serializedName: "properties.isManagementType", type: { name: "String" @@ -5331,6 +8074,7 @@ export const NetworkToNetworkInterconnect: coreClient.CompositeMapper = { }, useOptionB: { serializedName: "properties.useOptionB", + required: true, type: { name: "String" } @@ -5342,11 +8086,52 @@ export const NetworkToNetworkInterconnect: coreClient.CompositeMapper = { className: "Layer2Configuration" } }, - layer3Configuration: { - serializedName: "properties.layer3Configuration", + optionBLayer3Configuration: { + serializedName: "properties.optionBLayer3Configuration", + type: { + name: "Composite", + className: + "NetworkToNetworkInterconnectPropertiesOptionBLayer3Configuration" + } + }, + npbStaticRouteConfiguration: { + serializedName: "properties.npbStaticRouteConfiguration", + type: { + name: "Composite", + className: "NpbStaticRouteConfiguration" + } + }, + importRoutePolicy: { + serializedName: "properties.importRoutePolicy", + type: { + name: "Composite", + className: "ImportRoutePolicyInformation" + } + }, + exportRoutePolicy: { + serializedName: "properties.exportRoutePolicy", type: { name: "Composite", - className: "Layer3Configuration" + className: "ExportRoutePolicyInformation" + } + }, + egressAclId: { + serializedName: "properties.egressAclId", + type: { + name: "String" + } + }, + ingressAclId: { + serializedName: "properties.ingressAclId", + type: { + name: "String" + } + }, + configurationState: { + serializedName: "properties.configurationState", + readOnly: true, + type: { + name: "String" } }, provisioningState: { @@ -5355,57 +8140,67 @@ export const NetworkToNetworkInterconnect: coreClient.CompositeMapper = { type: { name: "String" } + }, + administrativeState: { + serializedName: "properties.administrativeState", + readOnly: true, + type: { + name: "String" + } } } } }; -export const NetworkRackSku: coreClient.CompositeMapper = { +export const NetworkToNetworkInterconnectPatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkRackSku", + className: "NetworkToNetworkInterconnectPatch", modelProperties: { ...ProxyResource.type.modelProperties, - roleName: { - serializedName: "properties.roleName", - required: true, + layer2Configuration: { + serializedName: "properties.layer2Configuration", type: { - name: "String" + name: "Composite", + className: "Layer2Configuration" } }, - maximumServerCount: { - serializedName: "properties.maximumServerCount", + optionBLayer3Configuration: { + serializedName: "properties.optionBLayer3Configuration", type: { - name: "Number" + name: "Composite", + className: "OptionBLayer3Configuration" } }, - maximumStorageCount: { - serializedName: "properties.maximumStorageCount", + npbStaticRouteConfiguration: { + serializedName: "properties.npbStaticRouteConfiguration", type: { - name: "Number" + name: "Composite", + className: "NpbStaticRouteConfiguration" } }, - maximumUplinks: { - serializedName: "properties.maximumUplinks", + importRoutePolicy: { + serializedName: "properties.importRoutePolicy", type: { - name: "Number" + name: "Composite", + className: "ImportRoutePolicyInformation" } }, - networkDevices: { - serializedName: "properties.networkDevices", + exportRoutePolicy: { + serializedName: "properties.exportRoutePolicy", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkDeviceRoleProperties" - } - } + name: "Composite", + className: "ExportRoutePolicyInformation" } }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + egressAclId: { + serializedName: "properties.egressAclId", + type: { + name: "String" + } + }, + ingressAclId: { + serializedName: "properties.ingressAclId", type: { name: "String" } @@ -5414,12 +8209,178 @@ export const NetworkRackSku: coreClient.CompositeMapper = { } }; -export const ExternalNetworkPropertiesOptionAProperties: coreClient.CompositeMapper = { +export const NetworkToNetworkInterconnectPropertiesOptionBLayer3Configuration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalNetworkPropertiesOptionAProperties", + className: + "NetworkToNetworkInterconnectPropertiesOptionBLayer3Configuration", + modelProperties: { + ...OptionBLayer3Configuration.type.modelProperties + } + } +}; + +export const AccessControlListsCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccessControlListsCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const AccessControlListsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccessControlListsUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const AccessControlListsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccessControlListsDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const AccessControlListsUpdateAdministrativeStateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccessControlListsUpdateAdministrativeStateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const AccessControlListsResyncHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccessControlListsResyncHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const AccessControlListsValidateConfigurationHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccessControlListsValidateConfigurationHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const InternetGatewaysCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InternetGatewaysCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const InternetGatewaysUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InternetGatewaysUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const InternetGatewayRulesCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InternetGatewayRulesCreateHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } + } + } +}; + +export const InternetGatewayRulesUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InternetGatewayRulesUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const InternetGatewayRulesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InternetGatewayRulesDeleteHeaders", modelProperties: { - ...Layer3OptionAProperties.type.modelProperties + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String" + } + } } } }; @@ -5444,8 +8405,8 @@ export const IpCommunitiesUpdateHeaders: coreClient.CompositeMapper = { name: "Composite", className: "IpCommunitiesUpdateHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String" } @@ -5489,8 +8450,8 @@ export const IpExtendedCommunitiesUpdateHeaders: coreClient.CompositeMapper = { name: "Composite", className: "IpExtendedCommunitiesUpdateHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String" } @@ -5534,8 +8495,8 @@ export const IpPrefixesUpdateHeaders: coreClient.CompositeMapper = { name: "Composite", className: "IpPrefixesUpdateHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String" } @@ -5564,8 +8525,8 @@ export const L2IsolationDomainsUpdateHeaders: coreClient.CompositeMapper = { name: "Composite", className: "L2IsolationDomainsUpdateHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String" } @@ -5589,10 +8550,10 @@ export const L2IsolationDomainsUpdateAdministrativeStateHeaders: coreClient.Comp } }; -export const L2IsolationDomainsClearArpTableHeaders: coreClient.CompositeMapper = { +export const L2IsolationDomainsValidateConfigurationHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L2IsolationDomainsClearArpTableHeaders", + className: "L2IsolationDomainsValidateConfigurationHeaders", modelProperties: { location: { serializedName: "location", @@ -5604,10 +8565,10 @@ export const L2IsolationDomainsClearArpTableHeaders: coreClient.CompositeMapper } }; -export const L2IsolationDomainsClearNeighborTableHeaders: coreClient.CompositeMapper = { +export const L2IsolationDomainsCommitConfigurationHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L2IsolationDomainsClearNeighborTableHeaders", + className: "L2IsolationDomainsCommitConfigurationHeaders", modelProperties: { location: { serializedName: "location", @@ -5619,10 +8580,10 @@ export const L2IsolationDomainsClearNeighborTableHeaders: coreClient.CompositeMa } }; -export const L2IsolationDomainsGetArpEntriesHeaders: coreClient.CompositeMapper = { +export const L3IsolationDomainsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L2IsolationDomainsGetArpEntriesHeaders", + className: "L3IsolationDomainsUpdateHeaders", modelProperties: { location: { serializedName: "location", @@ -5634,13 +8595,13 @@ export const L2IsolationDomainsGetArpEntriesHeaders: coreClient.CompositeMapper } }; -export const L3IsolationDomainsUpdateHeaders: coreClient.CompositeMapper = { +export const L3IsolationDomainsUpdateAdministrativeStateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L3IsolationDomainsUpdateHeaders", + className: "L3IsolationDomainsUpdateAdministrativeStateHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", type: { name: "String" } @@ -5649,10 +8610,10 @@ export const L3IsolationDomainsUpdateHeaders: coreClient.CompositeMapper = { } }; -export const L3IsolationDomainsUpdateAdministrativeStateHeaders: coreClient.CompositeMapper = { +export const L3IsolationDomainsValidateConfigurationHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L3IsolationDomainsUpdateAdministrativeStateHeaders", + className: "L3IsolationDomainsValidateConfigurationHeaders", modelProperties: { location: { serializedName: "location", @@ -5664,10 +8625,10 @@ export const L3IsolationDomainsUpdateAdministrativeStateHeaders: coreClient.Comp } }; -export const L3IsolationDomainsUpdateOptionBAdministrativeStateHeaders: coreClient.CompositeMapper = { +export const L3IsolationDomainsCommitConfigurationHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L3IsolationDomainsUpdateOptionBAdministrativeStateHeaders", + className: "L3IsolationDomainsCommitConfigurationHeaders", modelProperties: { location: { serializedName: "location", @@ -5679,10 +8640,10 @@ export const L3IsolationDomainsUpdateOptionBAdministrativeStateHeaders: coreClie } }; -export const L3IsolationDomainsClearArpTableHeaders: coreClient.CompositeMapper = { +export const InternalNetworksUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L3IsolationDomainsClearArpTableHeaders", + className: "InternalNetworksUpdateHeaders", modelProperties: { location: { serializedName: "location", @@ -5694,10 +8655,10 @@ export const L3IsolationDomainsClearArpTableHeaders: coreClient.CompositeMapper } }; -export const L3IsolationDomainsClearNeighborTableHeaders: coreClient.CompositeMapper = { +export const InternalNetworksUpdateAdministrativeStateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "L3IsolationDomainsClearNeighborTableHeaders", + className: "InternalNetworksUpdateAdministrativeStateHeaders", modelProperties: { location: { serializedName: "location", @@ -5709,10 +8670,10 @@ export const L3IsolationDomainsClearNeighborTableHeaders: coreClient.CompositeMa } }; -export const InternalNetworksUpdateAdministrativeStateHeaders: coreClient.CompositeMapper = { +export const InternalNetworksUpdateBgpAdministrativeStateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InternalNetworksUpdateAdministrativeStateHeaders", + className: "InternalNetworksUpdateBgpAdministrativeStateHeaders", modelProperties: { location: { serializedName: "location", @@ -5724,10 +8685,10 @@ export const InternalNetworksUpdateAdministrativeStateHeaders: coreClient.Compos } }; -export const InternalNetworksUpdateBgpAdministrativeStateHeaders: coreClient.CompositeMapper = { +export const InternalNetworksUpdateStaticRouteBfdAdministrativeStateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InternalNetworksUpdateBgpAdministrativeStateHeaders", + className: "InternalNetworksUpdateStaticRouteBfdAdministrativeStateHeaders", modelProperties: { location: { serializedName: "location", @@ -5739,10 +8700,10 @@ export const InternalNetworksUpdateBgpAdministrativeStateHeaders: coreClient.Com } }; -export const InternalNetworksUpdateBfdForBgpAdministrativeStateHeaders: coreClient.CompositeMapper = { +export const ExternalNetworksUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InternalNetworksUpdateBfdForBgpAdministrativeStateHeaders", + className: "ExternalNetworksUpdateHeaders", modelProperties: { location: { serializedName: "location", @@ -5754,10 +8715,10 @@ export const InternalNetworksUpdateBfdForBgpAdministrativeStateHeaders: coreClie } }; -export const InternalNetworksClearIpv6NeighborsHeaders: coreClient.CompositeMapper = { +export const ExternalNetworksUpdateAdministrativeStateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InternalNetworksClearIpv6NeighborsHeaders", + className: "ExternalNetworksUpdateAdministrativeStateHeaders", modelProperties: { location: { serializedName: "location", @@ -5769,10 +8730,10 @@ export const InternalNetworksClearIpv6NeighborsHeaders: coreClient.CompositeMapp } }; -export const InternalNetworksClearArpEntriesHeaders: coreClient.CompositeMapper = { +export const ExternalNetworksUpdateStaticRouteBfdAdministrativeStateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InternalNetworksClearArpEntriesHeaders", + className: "ExternalNetworksUpdateStaticRouteBfdAdministrativeStateHeaders", modelProperties: { location: { serializedName: "location", @@ -5784,11 +8745,10 @@ export const InternalNetworksClearArpEntriesHeaders: coreClient.CompositeMapper } }; -export const InternalNetworksUpdateBfdForStaticRouteAdministrativeStateHeaders: coreClient.CompositeMapper = { +export const NeighborGroupsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "InternalNetworksUpdateBfdForStaticRouteAdministrativeStateHeaders", + className: "NeighborGroupsUpdateHeaders", modelProperties: { location: { serializedName: "location", @@ -5800,10 +8760,10 @@ export const InternalNetworksUpdateBfdForStaticRouteAdministrativeStateHeaders: } }; -export const ExternalNetworksUpdateAdministrativeStateHeaders: coreClient.CompositeMapper = { +export const NetworkDevicesUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalNetworksUpdateAdministrativeStateHeaders", + className: "NetworkDevicesUpdateHeaders", modelProperties: { location: { serializedName: "location", @@ -5815,10 +8775,10 @@ export const ExternalNetworksUpdateAdministrativeStateHeaders: coreClient.Compos } }; -export const ExternalNetworksUpdateBgpAdministrativeStateHeaders: coreClient.CompositeMapper = { +export const NetworkDevicesRebootHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalNetworksUpdateBgpAdministrativeStateHeaders", + className: "NetworkDevicesRebootHeaders", modelProperties: { location: { serializedName: "location", @@ -5830,10 +8790,10 @@ export const ExternalNetworksUpdateBgpAdministrativeStateHeaders: coreClient.Com } }; -export const ExternalNetworksUpdateBfdForBgpAdministrativeStateHeaders: coreClient.CompositeMapper = { +export const NetworkDevicesRefreshConfigurationHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalNetworksUpdateBfdForBgpAdministrativeStateHeaders", + className: "NetworkDevicesRefreshConfigurationHeaders", modelProperties: { location: { serializedName: "location", @@ -5845,10 +8805,10 @@ export const ExternalNetworksUpdateBfdForBgpAdministrativeStateHeaders: coreClie } }; -export const ExternalNetworksClearIpv6NeighborsHeaders: coreClient.CompositeMapper = { +export const NetworkDevicesUpdateAdministrativeStateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalNetworksClearIpv6NeighborsHeaders", + className: "NetworkDevicesUpdateAdministrativeStateHeaders", modelProperties: { location: { serializedName: "location", @@ -5860,10 +8820,10 @@ export const ExternalNetworksClearIpv6NeighborsHeaders: coreClient.CompositeMapp } }; -export const ExternalNetworksClearArpEntriesHeaders: coreClient.CompositeMapper = { +export const NetworkDevicesUpgradeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalNetworksClearArpEntriesHeaders", + className: "NetworkDevicesUpgradeHeaders", modelProperties: { location: { serializedName: "location", @@ -5875,10 +8835,70 @@ export const ExternalNetworksClearArpEntriesHeaders: coreClient.CompositeMapper } }; -export const NetworkDevicesUpdateHeaders: coreClient.CompositeMapper = { +export const NetworkInterfacesUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkDevicesUpdateHeaders", + className: "NetworkInterfacesUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkInterfacesUpdateAdministrativeStateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkInterfacesUpdateAdministrativeStateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkFabricControllersUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkFabricControllersUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkFabricControllersDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkFabricControllersDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkFabricsCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkFabricsCreateHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -5890,10 +8910,10 @@ export const NetworkDevicesUpdateHeaders: coreClient.CompositeMapper = { } }; -export const NetworkDevicesRebootHeaders: coreClient.CompositeMapper = { +export const NetworkFabricsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkDevicesRebootHeaders", + className: "NetworkFabricsUpdateHeaders", modelProperties: { location: { serializedName: "location", @@ -5905,10 +8925,10 @@ export const NetworkDevicesRebootHeaders: coreClient.CompositeMapper = { } }; -export const NetworkDevicesRestoreConfigHeaders: coreClient.CompositeMapper = { +export const NetworkFabricsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkDevicesRestoreConfigHeaders", + className: "NetworkFabricsDeleteHeaders", modelProperties: { location: { serializedName: "location", @@ -5920,10 +8940,10 @@ export const NetworkDevicesRestoreConfigHeaders: coreClient.CompositeMapper = { } }; -export const NetworkDevicesUpdateVersionHeaders: coreClient.CompositeMapper = { +export const NetworkFabricsProvisionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkDevicesUpdateVersionHeaders", + className: "NetworkFabricsProvisionHeaders", modelProperties: { location: { serializedName: "location", @@ -5935,10 +8955,10 @@ export const NetworkDevicesUpdateVersionHeaders: coreClient.CompositeMapper = { } }; -export const NetworkDevicesGenerateSupportPackageHeaders: coreClient.CompositeMapper = { +export const NetworkFabricsDeprovisionHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkDevicesGenerateSupportPackageHeaders", + className: "NetworkFabricsDeprovisionHeaders", modelProperties: { location: { serializedName: "location", @@ -5950,10 +8970,10 @@ export const NetworkDevicesGenerateSupportPackageHeaders: coreClient.CompositeMa } }; -export const NetworkDevicesUpdatePowerCycleHeaders: coreClient.CompositeMapper = { +export const NetworkFabricsUpgradeHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkDevicesUpdatePowerCycleHeaders", + className: "NetworkFabricsUpgradeHeaders", modelProperties: { location: { serializedName: "location", @@ -5965,10 +8985,10 @@ export const NetworkDevicesUpdatePowerCycleHeaders: coreClient.CompositeMapper = } }; -export const NetworkDevicesGetStatusHeaders: coreClient.CompositeMapper = { +export const NetworkFabricsRefreshConfigurationHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkDevicesGetStatusHeaders", + className: "NetworkFabricsRefreshConfigurationHeaders", modelProperties: { location: { serializedName: "location", @@ -5980,10 +9000,10 @@ export const NetworkDevicesGetStatusHeaders: coreClient.CompositeMapper = { } }; -export const NetworkDevicesGetStaticInterfaceMapsHeaders: coreClient.CompositeMapper = { +export const NetworkFabricsUpdateWorkloadManagementBfdConfigurationHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkDevicesGetStaticInterfaceMapsHeaders", + className: "NetworkFabricsUpdateWorkloadManagementBfdConfigurationHeaders", modelProperties: { location: { serializedName: "location", @@ -5995,10 +9015,10 @@ export const NetworkDevicesGetStaticInterfaceMapsHeaders: coreClient.CompositeMa } }; -export const NetworkDevicesGetDynamicInterfaceMapsHeaders: coreClient.CompositeMapper = { +export const NetworkFabricsUpdateInfraManagementBfdConfigurationHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkDevicesGetDynamicInterfaceMapsHeaders", + className: "NetworkFabricsUpdateInfraManagementBfdConfigurationHeaders", modelProperties: { location: { serializedName: "location", @@ -6010,10 +9030,10 @@ export const NetworkDevicesGetDynamicInterfaceMapsHeaders: coreClient.CompositeM } }; -export const NetworkInterfacesGetStatusHeaders: coreClient.CompositeMapper = { +export const NetworkFabricsValidateConfigurationHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkInterfacesGetStatusHeaders", + className: "NetworkFabricsValidateConfigurationHeaders", modelProperties: { location: { serializedName: "location", @@ -6025,10 +9045,10 @@ export const NetworkInterfacesGetStatusHeaders: coreClient.CompositeMapper = { } }; -export const NetworkInterfacesUpdateAdministrativeStateHeaders: coreClient.CompositeMapper = { +export const NetworkFabricsGetTopologyHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkInterfacesUpdateAdministrativeStateHeaders", + className: "NetworkFabricsGetTopologyHeaders", modelProperties: { location: { serializedName: "location", @@ -6040,10 +9060,10 @@ export const NetworkInterfacesUpdateAdministrativeStateHeaders: coreClient.Compo } }; -export const NetworkFabricControllersUpdateHeaders: coreClient.CompositeMapper = { +export const NetworkFabricsCommitConfigurationHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkFabricControllersUpdateHeaders", + className: "NetworkFabricsCommitConfigurationHeaders", modelProperties: { location: { serializedName: "location", @@ -6055,10 +9075,10 @@ export const NetworkFabricControllersUpdateHeaders: coreClient.CompositeMapper = } }; -export const NetworkFabricControllersDeleteHeaders: coreClient.CompositeMapper = { +export const NetworkToNetworkInterconnectsUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkFabricControllersDeleteHeaders", + className: "NetworkToNetworkInterconnectsUpdateHeaders", modelProperties: { location: { serializedName: "location", @@ -6070,10 +9090,11 @@ export const NetworkFabricControllersDeleteHeaders: coreClient.CompositeMapper = } }; -export const NetworkFabricControllersEnableWorkloadManagementNetworkHeaders: coreClient.CompositeMapper = { +export const NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkFabricControllersEnableWorkloadManagementNetworkHeaders", + className: + "NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateHeaders", modelProperties: { location: { serializedName: "location", @@ -6085,11 +9106,10 @@ export const NetworkFabricControllersEnableWorkloadManagementNetworkHeaders: cor } }; -export const NetworkFabricControllersDisableWorkloadManagementNetworkHeaders: coreClient.CompositeMapper = { +export const NetworkToNetworkInterconnectsUpdateAdministrativeStateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "NetworkFabricControllersDisableWorkloadManagementNetworkHeaders", + className: "NetworkToNetworkInterconnectsUpdateAdministrativeStateHeaders", modelProperties: { location: { serializedName: "location", @@ -6101,10 +9121,40 @@ export const NetworkFabricControllersDisableWorkloadManagementNetworkHeaders: co } }; -export const NetworkFabricsCreateHeaders: coreClient.CompositeMapper = { +export const NetworkPacketBrokersUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkFabricsCreateHeaders", + className: "NetworkPacketBrokersUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkRacksUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkRacksUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkTapRulesCreateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkTapRulesCreateHeaders", modelProperties: { azureAsyncOperation: { serializedName: "azure-asyncoperation", @@ -6116,10 +9166,10 @@ export const NetworkFabricsCreateHeaders: coreClient.CompositeMapper = { } }; -export const NetworkFabricsUpdateHeaders: coreClient.CompositeMapper = { +export const NetworkTapRulesUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkFabricsUpdateHeaders", + className: "NetworkTapRulesUpdateHeaders", modelProperties: { location: { serializedName: "location", @@ -6131,10 +9181,10 @@ export const NetworkFabricsUpdateHeaders: coreClient.CompositeMapper = { } }; -export const NetworkFabricsDeleteHeaders: coreClient.CompositeMapper = { +export const NetworkTapRulesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkFabricsDeleteHeaders", + className: "NetworkTapRulesDeleteHeaders", modelProperties: { location: { serializedName: "location", @@ -6146,10 +9196,10 @@ export const NetworkFabricsDeleteHeaders: coreClient.CompositeMapper = { } }; -export const NetworkFabricsProvisionHeaders: coreClient.CompositeMapper = { +export const NetworkTapRulesUpdateAdministrativeStateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkFabricsProvisionHeaders", + className: "NetworkTapRulesUpdateAdministrativeStateHeaders", modelProperties: { location: { serializedName: "location", @@ -6161,10 +9211,10 @@ export const NetworkFabricsProvisionHeaders: coreClient.CompositeMapper = { } }; -export const NetworkFabricsDeprovisionHeaders: coreClient.CompositeMapper = { +export const NetworkTapRulesResyncHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkFabricsDeprovisionHeaders", + className: "NetworkTapRulesResyncHeaders", modelProperties: { location: { serializedName: "location", @@ -6176,13 +9226,58 @@ export const NetworkFabricsDeprovisionHeaders: coreClient.CompositeMapper = { } }; -export const NetworkRacksUpdateHeaders: coreClient.CompositeMapper = { +export const NetworkTapRulesValidateConfigurationHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkRacksUpdateHeaders", + className: "NetworkTapRulesValidateConfigurationHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkTapsUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkTapsUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkTapsUpdateAdministrativeStateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkTapsUpdateAdministrativeStateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const NetworkTapsResyncHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkTapsResyncHeaders", + modelProperties: { + location: { + serializedName: "location", type: { name: "String" } @@ -6196,8 +9291,53 @@ export const RoutePoliciesUpdateHeaders: coreClient.CompositeMapper = { name: "Composite", className: "RoutePoliciesUpdateHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const RoutePoliciesUpdateAdministrativeStateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoutePoliciesUpdateAdministrativeStateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const RoutePoliciesValidateConfigurationHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoutePoliciesValidateConfigurationHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const RoutePoliciesCommitConfigurationHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RoutePoliciesCommitConfigurationHeaders", + modelProperties: { + location: { + serializedName: "location", type: { name: "String" } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/models/parameters.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/models/parameters.ts index eebb1610bcfc..846e7e7f26e0 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/models/parameters.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/models/parameters.ts @@ -14,6 +14,11 @@ import { import { AccessControlList as AccessControlListMapper, AccessControlListPatch as AccessControlListPatchMapper, + UpdateAdministrativeState as UpdateAdministrativeStateMapper, + InternetGateway as InternetGatewayMapper, + InternetGatewayPatch as InternetGatewayPatchMapper, + InternetGatewayRule as InternetGatewayRuleMapper, + InternetGatewayRulePatch as InternetGatewayRulePatchMapper, IpCommunity as IpCommunityMapper, IpCommunityPatch as IpCommunityPatchMapper, IpExtendedCommunity as IpExtendedCommunityMapper, @@ -22,27 +27,36 @@ import { IpPrefixPatch as IpPrefixPatchMapper, L2IsolationDomain as L2IsolationDomainMapper, L2IsolationDomainPatch as L2IsolationDomainPatchMapper, - UpdateAdministrativeState as UpdateAdministrativeStateMapper, - EnableDisableOnResources as EnableDisableOnResourcesMapper, L3IsolationDomain as L3IsolationDomainMapper, L3IsolationDomainPatch as L3IsolationDomainPatchMapper, InternalNetwork as InternalNetworkMapper, InternalNetworkPatch as InternalNetworkPatchMapper, ExternalNetwork as ExternalNetworkMapper, ExternalNetworkPatch as ExternalNetworkPatchMapper, + NeighborGroup as NeighborGroupMapper, + NeighborGroupPatch as NeighborGroupPatchMapper, NetworkDevice as NetworkDeviceMapper, NetworkDevicePatchParameters as NetworkDevicePatchParametersMapper, - UpdateVersionProperties as UpdateVersionPropertiesMapper, - UpdatePowerCycleProperties as UpdatePowerCyclePropertiesMapper, + RebootProperties as RebootPropertiesMapper, + UpdateDeviceAdministrativeState as UpdateDeviceAdministrativeStateMapper, + UpdateVersion as UpdateVersionMapper, NetworkInterface as NetworkInterfaceMapper, NetworkInterfacePatch as NetworkInterfacePatchMapper, NetworkFabricController as NetworkFabricControllerMapper, NetworkFabricControllerPatch as NetworkFabricControllerPatchMapper, NetworkFabric as NetworkFabricMapper, - NetworkFabricPatchParameters as NetworkFabricPatchParametersMapper, + NetworkFabricPatch as NetworkFabricPatchMapper, + ValidateConfigurationProperties as ValidateConfigurationPropertiesMapper, NetworkToNetworkInterconnect as NetworkToNetworkInterconnectMapper, + NetworkToNetworkInterconnectPatch as NetworkToNetworkInterconnectPatchMapper, + NetworkPacketBroker as NetworkPacketBrokerMapper, + NetworkPacketBrokerPatch as NetworkPacketBrokerPatchMapper, NetworkRack as NetworkRackMapper, - NetworkRackPatch as NetworkRackPatchMapper, + TagsUpdate as TagsUpdateMapper, + NetworkTapRule as NetworkTapRuleMapper, + NetworkTapRulePatch as NetworkTapRulePatchMapper, + NetworkTap as NetworkTapMapper, + NetworkTapPatch as NetworkTapPatchMapper, RoutePolicy as RoutePolicyMapper, RoutePolicyPatch as RoutePolicyPatchMapper } from "../models/mappers"; @@ -91,13 +105,10 @@ export const $host: OperationURLParameter = { export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { - constraints: { - MinLength: 1 - }, serializedName: "subscriptionId", required: true, type: { - name: "String" + name: "Uuid" } } }; @@ -120,7 +131,7 @@ export const resourceGroupName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-02-01-preview", + defaultValue: "2023-06-15", isConstant: true, serializedName: "api-version", type: { @@ -145,6 +156,11 @@ export const body1: OperationParameter = { mapper: AccessControlListPatchMapper }; +export const body2: OperationParameter = { + parameterPath: "body", + mapper: UpdateAdministrativeStateMapper +}; + export const nextLink: OperationURLParameter = { parameterPath: "nextLink", mapper: { @@ -157,7 +173,49 @@ export const nextLink: OperationURLParameter = { skipEncoding: true }; -export const body2: OperationParameter = { +export const body3: OperationParameter = { + parameterPath: "body", + mapper: InternetGatewayMapper +}; + +export const internetGatewayName: OperationURLParameter = { + parameterPath: "internetGatewayName", + mapper: { + serializedName: "internetGatewayName", + required: true, + type: { + name: "String" + } + } +}; + +export const body4: OperationParameter = { + parameterPath: "body", + mapper: InternetGatewayPatchMapper +}; + +export const body5: OperationParameter = { + parameterPath: "body", + mapper: InternetGatewayRuleMapper +}; + +export const internetGatewayRuleName: OperationURLParameter = { + parameterPath: "internetGatewayRuleName", + mapper: { + serializedName: "internetGatewayRuleName", + required: true, + type: { + name: "String" + } + } +}; + +export const body6: OperationParameter = { + parameterPath: "body", + mapper: InternetGatewayRulePatchMapper +}; + +export const body7: OperationParameter = { parameterPath: "body", mapper: IpCommunityMapper }; @@ -173,12 +231,12 @@ export const ipCommunityName: OperationURLParameter = { } }; -export const body3: OperationParameter = { +export const body8: OperationParameter = { parameterPath: "body", mapper: IpCommunityPatchMapper }; -export const body4: OperationParameter = { +export const body9: OperationParameter = { parameterPath: "body", mapper: IpExtendedCommunityMapper }; @@ -194,12 +252,12 @@ export const ipExtendedCommunityName: OperationURLParameter = { } }; -export const body5: OperationParameter = { +export const body10: OperationParameter = { parameterPath: "body", mapper: IpExtendedCommunityPatchMapper }; -export const body6: OperationParameter = { +export const body11: OperationParameter = { parameterPath: "body", mapper: IpPrefixMapper }; @@ -215,12 +273,12 @@ export const ipPrefixName: OperationURLParameter = { } }; -export const body7: OperationParameter = { +export const body12: OperationParameter = { parameterPath: "body", mapper: IpPrefixPatchMapper }; -export const body8: OperationParameter = { +export const body13: OperationParameter = { parameterPath: "body", mapper: L2IsolationDomainMapper }; @@ -236,22 +294,12 @@ export const l2IsolationDomainName: OperationURLParameter = { } }; -export const body9: OperationParameter = { +export const body14: OperationParameter = { parameterPath: "body", mapper: L2IsolationDomainPatchMapper }; -export const body10: OperationParameter = { - parameterPath: "body", - mapper: UpdateAdministrativeStateMapper -}; - -export const body11: OperationParameter = { - parameterPath: "body", - mapper: EnableDisableOnResourcesMapper -}; - -export const body12: OperationParameter = { +export const body15: OperationParameter = { parameterPath: "body", mapper: L3IsolationDomainMapper }; @@ -267,12 +315,12 @@ export const l3IsolationDomainName: OperationURLParameter = { } }; -export const body13: OperationParameter = { +export const body16: OperationParameter = { parameterPath: "body", mapper: L3IsolationDomainPatchMapper }; -export const body14: OperationParameter = { +export const body17: OperationParameter = { parameterPath: "body", mapper: InternalNetworkMapper }; @@ -288,12 +336,12 @@ export const internalNetworkName: OperationURLParameter = { } }; -export const body15: OperationParameter = { +export const body18: OperationParameter = { parameterPath: "body", mapper: InternalNetworkPatchMapper }; -export const body16: OperationParameter = { +export const body19: OperationParameter = { parameterPath: "body", mapper: ExternalNetworkMapper }; @@ -309,11 +357,32 @@ export const externalNetworkName: OperationURLParameter = { } }; -export const body17: OperationParameter = { +export const body20: OperationParameter = { parameterPath: "body", mapper: ExternalNetworkPatchMapper }; +export const body21: OperationParameter = { + parameterPath: "body", + mapper: NeighborGroupMapper +}; + +export const neighborGroupName: OperationURLParameter = { + parameterPath: "neighborGroupName", + mapper: { + serializedName: "neighborGroupName", + required: true, + type: { + name: "String" + } + } +}; + +export const body22: OperationParameter = { + parameterPath: "body", + mapper: NeighborGroupPatchMapper +}; + export const networkDeviceSkuName: OperationURLParameter = { parameterPath: "networkDeviceSkuName", mapper: { @@ -325,7 +394,7 @@ export const networkDeviceSkuName: OperationURLParameter = { } }; -export const body18: OperationParameter = { +export const body23: OperationParameter = { parameterPath: "body", mapper: NetworkDeviceMapper }; @@ -341,22 +410,27 @@ export const networkDeviceName: OperationURLParameter = { } }; -export const body19: OperationParameter = { +export const body24: OperationParameter = { parameterPath: "body", mapper: NetworkDevicePatchParametersMapper }; -export const body20: OperationParameter = { +export const body25: OperationParameter = { parameterPath: "body", - mapper: UpdateVersionPropertiesMapper + mapper: RebootPropertiesMapper }; -export const body21: OperationParameter = { +export const body26: OperationParameter = { parameterPath: "body", - mapper: UpdatePowerCyclePropertiesMapper + mapper: UpdateDeviceAdministrativeStateMapper }; -export const body22: OperationParameter = { +export const body27: OperationParameter = { + parameterPath: "body", + mapper: UpdateVersionMapper +}; + +export const body28: OperationParameter = { parameterPath: "body", mapper: NetworkInterfaceMapper }; @@ -372,12 +446,12 @@ export const networkInterfaceName: OperationURLParameter = { } }; -export const body23: OperationParameter = { +export const body29: OperationParameter = { parameterPath: "body", mapper: NetworkInterfacePatchMapper }; -export const body24: OperationParameter = { +export const body30: OperationParameter = { parameterPath: "body", mapper: NetworkFabricControllerMapper }; @@ -393,7 +467,7 @@ export const networkFabricControllerName: OperationURLParameter = { } }; -export const body25: OperationParameter = { +export const body31: OperationParameter = { parameterPath: "body", mapper: NetworkFabricControllerPatchMapper }; @@ -409,7 +483,7 @@ export const networkFabricSkuName: OperationURLParameter = { } }; -export const body26: OperationParameter = { +export const body32: OperationParameter = { parameterPath: "body", mapper: NetworkFabricMapper }; @@ -425,12 +499,17 @@ export const networkFabricName: OperationURLParameter = { } }; -export const body27: OperationParameter = { +export const body33: OperationParameter = { parameterPath: "body", - mapper: NetworkFabricPatchParametersMapper + mapper: NetworkFabricPatchMapper }; -export const body28: OperationParameter = { +export const body34: OperationParameter = { + parameterPath: "body", + mapper: ValidateConfigurationPropertiesMapper +}; + +export const body35: OperationParameter = { parameterPath: "body", mapper: NetworkToNetworkInterconnectMapper }; @@ -446,10 +525,20 @@ export const networkToNetworkInterconnectName: OperationURLParameter = { } }; -export const networkRackSkuName: OperationURLParameter = { - parameterPath: "networkRackSkuName", +export const body36: OperationParameter = { + parameterPath: "body", + mapper: NetworkToNetworkInterconnectPatchMapper +}; + +export const body37: OperationParameter = { + parameterPath: "body", + mapper: NetworkPacketBrokerMapper +}; + +export const networkPacketBrokerName: OperationURLParameter = { + parameterPath: "networkPacketBrokerName", mapper: { - serializedName: "networkRackSkuName", + serializedName: "networkPacketBrokerName", required: true, type: { name: "String" @@ -457,7 +546,12 @@ export const networkRackSkuName: OperationURLParameter = { } }; -export const body29: OperationParameter = { +export const body38: OperationParameter = { + parameterPath: "body", + mapper: NetworkPacketBrokerPatchMapper +}; + +export const body39: OperationParameter = { parameterPath: "body", mapper: NetworkRackMapper }; @@ -473,12 +567,54 @@ export const networkRackName: OperationURLParameter = { } }; -export const body30: OperationParameter = { +export const body40: OperationParameter = { parameterPath: "body", - mapper: NetworkRackPatchMapper + mapper: TagsUpdateMapper }; -export const body31: OperationParameter = { +export const body41: OperationParameter = { + parameterPath: "body", + mapper: NetworkTapRuleMapper +}; + +export const networkTapRuleName: OperationURLParameter = { + parameterPath: "networkTapRuleName", + mapper: { + serializedName: "networkTapRuleName", + required: true, + type: { + name: "String" + } + } +}; + +export const body42: OperationParameter = { + parameterPath: "body", + mapper: NetworkTapRulePatchMapper +}; + +export const body43: OperationParameter = { + parameterPath: "body", + mapper: NetworkTapMapper +}; + +export const networkTapName: OperationURLParameter = { + parameterPath: "networkTapName", + mapper: { + serializedName: "networkTapName", + required: true, + type: { + name: "String" + } + } +}; + +export const body44: OperationParameter = { + parameterPath: "body", + mapper: NetworkTapPatchMapper +}; + +export const body45: OperationParameter = { parameterPath: "body", mapper: RoutePolicyMapper }; @@ -494,7 +630,7 @@ export const routePolicyName: OperationURLParameter = { } }; -export const body32: OperationParameter = { +export const body46: OperationParameter = { parameterPath: "body", mapper: RoutePolicyPatchMapper }; diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/accessControlLists.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/accessControlLists.ts index be503edfe657..3fbf556b7d5d 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/accessControlLists.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/accessControlLists.ts @@ -13,6 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { AzureNetworkFabricManagementServiceAPI } from "../azureNetworkFabricManagementServiceAPI"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { AccessControlList, AccessControlListsListByResourceGroupNextOptionalParams, @@ -29,6 +35,14 @@ import { AccessControlListsUpdateOptionalParams, AccessControlListsUpdateResponse, AccessControlListsDeleteOptionalParams, + AccessControlListsDeleteResponse, + UpdateAdministrativeState, + AccessControlListsUpdateAdministrativeStateOptionalParams, + AccessControlListsUpdateAdministrativeStateResponse, + AccessControlListsResyncOptionalParams, + AccessControlListsResyncResponse, + AccessControlListsValidateConfigurationOptionalParams, + AccessControlListsValidateConfigurationResponse, AccessControlListsListByResourceGroupNextResponse, AccessControlListsListBySubscriptionNextResponse } from "../models"; @@ -172,26 +186,103 @@ export class AccessControlListsImpl implements AccessControlLists { /** * Implements Access Control List PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accessControlListName Name of the Access Control List + * @param accessControlListName Name of the Access Control List. * @param body Request payload. * @param options The options parameters. */ - create( + async beginCreate( + resourceGroupName: string, + accessControlListName: string, + body: AccessControlList, + options?: AccessControlListsCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AccessControlListsCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, accessControlListName, body, options }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + AccessControlListsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Implements Access Control List PUT method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. + * @param body Request payload. + * @param options The options parameters. + */ + async beginCreateAndWait( resourceGroupName: string, accessControlListName: string, body: AccessControlList, options?: AccessControlListsCreateOptionalParams ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accessControlListName, body, options }, - createOperationSpec + const poller = await this.beginCreate( + resourceGroupName, + accessControlListName, + body, + options ); + return poller.pollUntilDone(); } /** * Implements Access Control List GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accessControlListName Name of the Access Control List + * @param accessControlListName Name of the Access Control List. * @param options The options parameters. */ get( @@ -208,37 +299,188 @@ export class AccessControlListsImpl implements AccessControlLists { /** * API to update certain properties of the Access Control List resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accessControlListName Name of the Access Control List + * @param accessControlListName Name of the Access Control List. + * @param body Access Control List properties to update. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + accessControlListName: string, + body: AccessControlListPatch, + options?: AccessControlListsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AccessControlListsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, accessControlListName, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + AccessControlListsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * API to update certain properties of the Access Control List resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. * @param body Access Control List properties to update. * @param options The options parameters. */ - update( + async beginUpdateAndWait( resourceGroupName: string, accessControlListName: string, body: AccessControlListPatch, options?: AccessControlListsUpdateOptionalParams ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accessControlListName, body, options }, - updateOperationSpec + const poller = await this.beginUpdate( + resourceGroupName, + accessControlListName, + body, + options ); + return poller.pollUntilDone(); } /** * Implements Access Control List DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accessControlListName Name of the Access Control List + * @param accessControlListName Name of the Access Control List. * @param options The options parameters. */ - delete( + async beginDelete( resourceGroupName: string, accessControlListName: string, options?: AccessControlListsDeleteOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, accessControlListName, options }, - deleteOperationSpec + ): Promise< + SimplePollerLike< + OperationState, + AccessControlListsDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, accessControlListName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller< + AccessControlListsDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Implements Access Control List DELETE method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + accessControlListName: string, + options?: AccessControlListsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + accessControlListName, + options ); + return poller.pollUntilDone(); } /** @@ -269,6 +511,284 @@ export class AccessControlListsImpl implements AccessControlLists { ); } + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. + * @param body Request payload. + * @param options The options parameters. + */ + async beginUpdateAdministrativeState( + resourceGroupName: string, + accessControlListName: string, + body: UpdateAdministrativeState, + options?: AccessControlListsUpdateAdministrativeStateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AccessControlListsUpdateAdministrativeStateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, accessControlListName, body, options }, + spec: updateAdministrativeStateOperationSpec + }); + const poller = await createHttpPoller< + AccessControlListsUpdateAdministrativeStateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. + * @param body Request payload. + * @param options The options parameters. + */ + async beginUpdateAdministrativeStateAndWait( + resourceGroupName: string, + accessControlListName: string, + body: UpdateAdministrativeState, + options?: AccessControlListsUpdateAdministrativeStateOptionalParams + ): Promise { + const poller = await this.beginUpdateAdministrativeState( + resourceGroupName, + accessControlListName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. + * @param options The options parameters. + */ + async beginResync( + resourceGroupName: string, + accessControlListName: string, + options?: AccessControlListsResyncOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AccessControlListsResyncResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, accessControlListName, options }, + spec: resyncOperationSpec + }); + const poller = await createHttpPoller< + AccessControlListsResyncResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. + * @param options The options parameters. + */ + async beginResyncAndWait( + resourceGroupName: string, + accessControlListName: string, + options?: AccessControlListsResyncOptionalParams + ): Promise { + const poller = await this.beginResync( + resourceGroupName, + accessControlListName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. + * @param options The options parameters. + */ + async beginValidateConfiguration( + resourceGroupName: string, + accessControlListName: string, + options?: AccessControlListsValidateConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AccessControlListsValidateConfigurationResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, accessControlListName, options }, + spec: validateConfigurationOperationSpec + }); + const poller = await createHttpPoller< + AccessControlListsValidateConfigurationResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. + * @param options The options parameters. + */ + async beginValidateConfigurationAndWait( + resourceGroupName: string, + accessControlListName: string, + options?: AccessControlListsValidateConfigurationOptionalParams + ): Promise { + const poller = await this.beginValidateConfiguration( + resourceGroupName, + accessControlListName, + options + ); + return poller.pollUntilDone(); + } + /** * ListByResourceGroupNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -312,6 +832,15 @@ const createOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.AccessControlList }, + 201: { + bodyMapper: Mappers.AccessControlList + }, + 202: { + bodyMapper: Mappers.AccessControlList + }, + 204: { + bodyMapper: Mappers.AccessControlList + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -358,6 +887,15 @@ const updateOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.AccessControlList }, + 201: { + bodyMapper: Mappers.AccessControlList + }, + 202: { + bodyMapper: Mappers.AccessControlList + }, + 204: { + bodyMapper: Mappers.AccessControlList + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -379,8 +917,18 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/accessControlLists/{accessControlListName}", httpMethod: "DELETE", responses: { - 200: {}, - 204: {}, + 200: { + headersMapper: Mappers.AccessControlListsDeleteHeaders + }, + 201: { + headersMapper: Mappers.AccessControlListsDeleteHeaders + }, + 202: { + headersMapper: Mappers.AccessControlListsDeleteHeaders + }, + 204: { + headersMapper: Mappers.AccessControlListsDeleteHeaders + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -433,6 +981,101 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const updateAdministrativeStateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/accessControlLists/{accessControlListName}/updateAdministrativeState", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 201: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 202: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 204: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accessControlListName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const resyncOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/accessControlLists/{accessControlListName}/resync", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 201: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 202: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 204: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accessControlListName + ], + headerParameters: [Parameters.accept], + serializer +}; +const validateConfigurationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/accessControlLists/{accessControlListName}/validateConfiguration", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + 201: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + 202: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + 204: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accessControlListName + ], + headerParameters: [Parameters.accept], + serializer +}; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/externalNetworks.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/externalNetworks.ts index 1b8436ea5ee3..f293a085e8a0 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/externalNetworks.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/externalNetworks.ts @@ -21,9 +21,9 @@ import { import { createLroSpec } from "../lroImpl"; import { ExternalNetwork, - ExternalNetworksListNextOptionalParams, - ExternalNetworksListOptionalParams, - ExternalNetworksListResponse, + ExternalNetworksListByL3IsolationDomainNextOptionalParams, + ExternalNetworksListByL3IsolationDomainOptionalParams, + ExternalNetworksListByL3IsolationDomainResponse, ExternalNetworksCreateOptionalParams, ExternalNetworksCreateResponse, ExternalNetworksGetOptionalParams, @@ -35,16 +35,9 @@ import { UpdateAdministrativeState, ExternalNetworksUpdateAdministrativeStateOptionalParams, ExternalNetworksUpdateAdministrativeStateResponse, - ExternalNetworksUpdateBgpAdministrativeStateOptionalParams, - ExternalNetworksUpdateBgpAdministrativeStateResponse, - ExternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams, - ExternalNetworksUpdateBfdForBgpAdministrativeStateResponse, - EnableDisableOnResources, - ExternalNetworksClearIpv6NeighborsOptionalParams, - ExternalNetworksClearIpv6NeighborsResponse, - ExternalNetworksClearArpEntriesOptionalParams, - ExternalNetworksClearArpEntriesResponse, - ExternalNetworksListNextResponse + ExternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams, + ExternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse, + ExternalNetworksListByL3IsolationDomainNextResponse } from "../models"; /// @@ -63,15 +56,15 @@ export class ExternalNetworksImpl implements ExternalNetworks { /** * Implements External Networks list by resource group GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ - public list( + public listByL3IsolationDomain( resourceGroupName: string, l3IsolationDomainName: string, - options?: ExternalNetworksListOptionalParams + options?: ExternalNetworksListByL3IsolationDomainOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( + const iter = this.listByL3IsolationDomainPagingAll( resourceGroupName, l3IsolationDomainName, options @@ -87,7 +80,7 @@ export class ExternalNetworksImpl implements ExternalNetworks { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( + return this.listByL3IsolationDomainPagingPage( resourceGroupName, l3IsolationDomainName, options, @@ -97,16 +90,16 @@ export class ExternalNetworksImpl implements ExternalNetworks { }; } - private async *listPagingPage( + private async *listByL3IsolationDomainPagingPage( resourceGroupName: string, l3IsolationDomainName: string, - options?: ExternalNetworksListOptionalParams, + options?: ExternalNetworksListByL3IsolationDomainOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: ExternalNetworksListResponse; + let result: ExternalNetworksListByL3IsolationDomainResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( + result = await this._listByL3IsolationDomain( resourceGroupName, l3IsolationDomainName, options @@ -117,7 +110,7 @@ export class ExternalNetworksImpl implements ExternalNetworks { yield page; } while (continuationToken) { - result = await this._listNext( + result = await this._listByL3IsolationDomainNext( resourceGroupName, l3IsolationDomainName, continuationToken, @@ -130,12 +123,12 @@ export class ExternalNetworksImpl implements ExternalNetworks { } } - private async *listPagingAll( + private async *listByL3IsolationDomainPagingAll( resourceGroupName: string, l3IsolationDomainName: string, - options?: ExternalNetworksListOptionalParams + options?: ExternalNetworksListByL3IsolationDomainOptionalParams ): AsyncIterableIterator { - for await (const page of this.listPagingPage( + for await (const page of this.listByL3IsolationDomainPagingPage( resourceGroupName, l3IsolationDomainName, options @@ -147,8 +140,8 @@ export class ExternalNetworksImpl implements ExternalNetworks { /** * Creates ExternalNetwork PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param externalNetworkName Name of the ExternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param body Request payload. * @param options The options parameters. */ @@ -229,8 +222,8 @@ export class ExternalNetworksImpl implements ExternalNetworks { /** * Creates ExternalNetwork PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param externalNetworkName Name of the ExternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param body Request payload. * @param options The options parameters. */ @@ -254,8 +247,8 @@ export class ExternalNetworksImpl implements ExternalNetworks { /** * Implements ExternalNetworks GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param externalNetworkName Name of the ExternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param options The options parameters. */ get( @@ -278,8 +271,8 @@ export class ExternalNetworksImpl implements ExternalNetworks { /** * API to update certain properties of the ExternalNetworks resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param externalNetworkName Name of the ExternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param body ExternalNetwork properties to update. Only annotations are supported. * @param options The options parameters. */ @@ -351,7 +344,7 @@ export class ExternalNetworksImpl implements ExternalNetworks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -360,8 +353,8 @@ export class ExternalNetworksImpl implements ExternalNetworks { /** * API to update certain properties of the ExternalNetworks resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param externalNetworkName Name of the ExternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param body ExternalNetwork properties to update. Only annotations are supported. * @param options The options parameters. */ @@ -385,8 +378,8 @@ export class ExternalNetworksImpl implements ExternalNetworks { /** * Implements ExternalNetworks DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param externalNetworkName Name of the ExternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param options The options parameters. */ async beginDelete( @@ -456,8 +449,8 @@ export class ExternalNetworksImpl implements ExternalNetworks { /** * Implements ExternalNetworks DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param externalNetworkName Name of the ExternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param options The options parameters. */ async beginDeleteAndWait( @@ -478,25 +471,25 @@ export class ExternalNetworksImpl implements ExternalNetworks { /** * Implements External Networks list by resource group GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ - private _list( + private _listByL3IsolationDomain( resourceGroupName: string, l3IsolationDomainName: string, - options?: ExternalNetworksListOptionalParams - ): Promise { + options?: ExternalNetworksListByL3IsolationDomainOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, l3IsolationDomainName, options }, - listOperationSpec + listByL3IsolationDomainOperationSpec ); } /** * Executes update operation to enable or disable administrative State for externalNetwork. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param body Request payload. * @param options The options parameters. */ @@ -577,8 +570,8 @@ export class ExternalNetworksImpl implements ExternalNetworks { /** * Executes update operation to enable or disable administrative State for externalNetwork. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param body Request payload. * @param options The options parameters. */ @@ -600,138 +593,31 @@ export class ExternalNetworksImpl implements ExternalNetworks { } /** - * Update BGP for externalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - async beginUpdateBgpAdministrativeState( - resourceGroupName: string, - l3IsolationDomainName: string, - externalNetworkName: string, - body: UpdateAdministrativeState, - options?: ExternalNetworksUpdateBgpAdministrativeStateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - ExternalNetworksUpdateBgpAdministrativeStateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body, - options - }, - spec: updateBgpAdministrativeStateOperationSpec - }); - const poller = await createHttpPoller< - ExternalNetworksUpdateBgpAdministrativeStateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Update BGP for externalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - async beginUpdateBgpAdministrativeStateAndWait( - resourceGroupName: string, - l3IsolationDomainName: string, - externalNetworkName: string, - body: UpdateAdministrativeState, - options?: ExternalNetworksUpdateBgpAdministrativeStateOptionalParams - ): Promise { - const poller = await this.beginUpdateBgpAdministrativeState( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * Update BfdForBgp for externalNetwork. + * Update Static Route BFD for external Network. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param body Request payload. * @param options The options parameters. */ - async beginUpdateBfdForBgpAdministrativeState( + async beginUpdateStaticRouteBfdAdministrativeState( resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: UpdateAdministrativeState, - options?: ExternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams + options?: ExternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams ): Promise< SimplePollerLike< OperationState< - ExternalNetworksUpdateBfdForBgpAdministrativeStateResponse + ExternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse >, - ExternalNetworksUpdateBfdForBgpAdministrativeStateResponse + ExternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -776,11 +662,13 @@ export class ExternalNetworksImpl implements ExternalNetworks { body, options }, - spec: updateBfdForBgpAdministrativeStateOperationSpec + spec: updateStaticRouteBfdAdministrativeStateOperationSpec }); const poller = await createHttpPoller< - ExternalNetworksUpdateBfdForBgpAdministrativeStateResponse, - OperationState + ExternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse, + OperationState< + ExternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse + > >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -791,21 +679,21 @@ export class ExternalNetworksImpl implements ExternalNetworks { } /** - * Update BfdForBgp for externalNetwork. + * Update Static Route BFD for external Network. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param body Request payload. * @param options The options parameters. */ - async beginUpdateBfdForBgpAdministrativeStateAndWait( + async beginUpdateStaticRouteBfdAdministrativeStateAndWait( resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: UpdateAdministrativeState, - options?: ExternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams - ): Promise { - const poller = await this.beginUpdateBfdForBgpAdministrativeState( + options?: ExternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams + ): Promise { + const poller = await this.beginUpdateStaticRouteBfdAdministrativeState( resourceGroupName, l3IsolationDomainName, externalNetworkName, @@ -816,235 +704,22 @@ export class ExternalNetworksImpl implements ExternalNetworks { } /** - * clearIpv6Neighbors for externalNetwork. + * ListByL3IsolationDomainNext * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. - * @param body Request payload. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param nextLink The nextLink from the previous successful call to the ListByL3IsolationDomain + * method. * @param options The options parameters. */ - async beginClearIpv6Neighbors( - resourceGroupName: string, - l3IsolationDomainName: string, - externalNetworkName: string, - body: EnableDisableOnResources, - options?: ExternalNetworksClearIpv6NeighborsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - ExternalNetworksClearIpv6NeighborsResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body, - options - }, - spec: clearIpv6NeighborsOperationSpec - }); - const poller = await createHttpPoller< - ExternalNetworksClearIpv6NeighborsResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * clearIpv6Neighbors for externalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - async beginClearIpv6NeighborsAndWait( - resourceGroupName: string, - l3IsolationDomainName: string, - externalNetworkName: string, - body: EnableDisableOnResources, - options?: ExternalNetworksClearIpv6NeighborsOptionalParams - ): Promise { - const poller = await this.beginClearIpv6Neighbors( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * clearArpEntries for externalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - async beginClearArpEntries( - resourceGroupName: string, - l3IsolationDomainName: string, - externalNetworkName: string, - body: EnableDisableOnResources, - options?: ExternalNetworksClearArpEntriesOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - ExternalNetworksClearArpEntriesResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body, - options - }, - spec: clearArpEntriesOperationSpec - }); - const poller = await createHttpPoller< - ExternalNetworksClearArpEntriesResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * clearArpEntries for externalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - async beginClearArpEntriesAndWait( - resourceGroupName: string, - l3IsolationDomainName: string, - externalNetworkName: string, - body: EnableDisableOnResources, - options?: ExternalNetworksClearArpEntriesOptionalParams - ): Promise { - const poller = await this.beginClearArpEntries( - resourceGroupName, - l3IsolationDomainName, - externalNetworkName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * ListNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( + private _listByL3IsolationDomainNext( resourceGroupName: string, l3IsolationDomainName: string, nextLink: string, - options?: ExternalNetworksListNextOptionalParams - ): Promise { + options?: ExternalNetworksListByL3IsolationDomainNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, l3IsolationDomainName, nextLink, options }, - listNextOperationSpec + listByL3IsolationDomainNextOperationSpec ); } } @@ -1072,7 +747,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body16, + requestBody: Parameters.body19, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1129,7 +804,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body17, + requestBody: Parameters.body20, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1166,7 +841,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listOperationSpec: coreClient.OperationSpec = { +const listByL3IsolationDomainOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks", httpMethod: "GET", @@ -1194,128 +869,22 @@ const updateAdministrativeStateOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.ExternalNetworksUpdateAdministrativeStateHeaders - }, - 201: { - headersMapper: Mappers.ExternalNetworksUpdateAdministrativeStateHeaders - }, - 202: { - headersMapper: Mappers.ExternalNetworksUpdateAdministrativeStateHeaders - }, - 204: { - headersMapper: Mappers.ExternalNetworksUpdateAdministrativeStateHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body10, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.l3IsolationDomainName, - Parameters.externalNetworkName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const updateBgpAdministrativeStateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks/{externalNetworkName}/updateBgpAdministrativeState", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.ExternalNetworksUpdateBgpAdministrativeStateHeaders - }, - 201: { - headersMapper: Mappers.ExternalNetworksUpdateBgpAdministrativeStateHeaders - }, - 202: { - headersMapper: Mappers.ExternalNetworksUpdateBgpAdministrativeStateHeaders - }, - 204: { - headersMapper: Mappers.ExternalNetworksUpdateBgpAdministrativeStateHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body10, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.l3IsolationDomainName, - Parameters.externalNetworkName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const updateBfdForBgpAdministrativeStateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks/{externalNetworkName}/updateBfdForBgpAdministrativeState", - httpMethod: "POST", - responses: { - 200: { - headersMapper: - Mappers.ExternalNetworksUpdateBfdForBgpAdministrativeStateHeaders - }, - 201: { - headersMapper: - Mappers.ExternalNetworksUpdateBfdForBgpAdministrativeStateHeaders - }, - 202: { - headersMapper: - Mappers.ExternalNetworksUpdateBfdForBgpAdministrativeStateHeaders - }, - 204: { - headersMapper: - Mappers.ExternalNetworksUpdateBfdForBgpAdministrativeStateHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body10, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.l3IsolationDomainName, - Parameters.externalNetworkName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const clearIpv6NeighborsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks/{externalNetworkName}/clearIpv6Neighbors", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.ExternalNetworksClearIpv6NeighborsHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 201: { - headersMapper: Mappers.ExternalNetworksClearIpv6NeighborsHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 202: { - headersMapper: Mappers.ExternalNetworksClearIpv6NeighborsHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 204: { - headersMapper: Mappers.ExternalNetworksClearIpv6NeighborsHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body11, + requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1328,28 +897,28 @@ const clearIpv6NeighborsOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const clearArpEntriesOperationSpec: coreClient.OperationSpec = { +const updateStaticRouteBfdAdministrativeStateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks/{externalNetworkName}/clearArpEntries", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks/{externalNetworkName}/updateStaticRouteBfdAdministrativeState", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.ExternalNetworksClearArpEntriesHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 201: { - headersMapper: Mappers.ExternalNetworksClearArpEntriesHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 202: { - headersMapper: Mappers.ExternalNetworksClearArpEntriesHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 204: { - headersMapper: Mappers.ExternalNetworksClearArpEntriesHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body11, + requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1362,7 +931,7 @@ const clearArpEntriesOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const listNextOperationSpec: coreClient.OperationSpec = { +const listByL3IsolationDomainNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/index.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/index.ts index 44f8aef51253..ea192b8cd132 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/index.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/index.ts @@ -7,6 +7,8 @@ */ export * from "./accessControlLists"; +export * from "./internetGateways"; +export * from "./internetGatewayRules"; export * from "./ipCommunities"; export * from "./ipExtendedCommunities"; export * from "./ipPrefixes"; @@ -14,6 +16,7 @@ export * from "./l2IsolationDomains"; export * from "./l3IsolationDomains"; export * from "./internalNetworks"; export * from "./externalNetworks"; +export * from "./neighborGroups"; export * from "./networkDeviceSkus"; export * from "./networkDevices"; export * from "./networkInterfaces"; @@ -21,7 +24,9 @@ export * from "./networkFabricControllers"; export * from "./networkFabricSkus"; export * from "./networkFabrics"; export * from "./networkToNetworkInterconnects"; -export * from "./networkRackSkus"; +export * from "./networkPacketBrokers"; export * from "./networkRacks"; +export * from "./networkTapRules"; +export * from "./networkTaps"; export * from "./operations"; export * from "./routePolicies"; diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/internalNetworks.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/internalNetworks.ts index e1fcb542e0aa..4101260a0bd9 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/internalNetworks.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/internalNetworks.ts @@ -21,9 +21,9 @@ import { import { createLroSpec } from "../lroImpl"; import { InternalNetwork, - InternalNetworksListNextOptionalParams, - InternalNetworksListOptionalParams, - InternalNetworksListResponse, + InternalNetworksListByL3IsolationDomainNextOptionalParams, + InternalNetworksListByL3IsolationDomainOptionalParams, + InternalNetworksListByL3IsolationDomainResponse, InternalNetworksCreateOptionalParams, InternalNetworksCreateResponse, InternalNetworksGetOptionalParams, @@ -37,16 +37,9 @@ import { InternalNetworksUpdateAdministrativeStateResponse, InternalNetworksUpdateBgpAdministrativeStateOptionalParams, InternalNetworksUpdateBgpAdministrativeStateResponse, - InternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams, - InternalNetworksUpdateBfdForBgpAdministrativeStateResponse, - EnableDisableOnResources, - InternalNetworksClearIpv6NeighborsOptionalParams, - InternalNetworksClearIpv6NeighborsResponse, - InternalNetworksClearArpEntriesOptionalParams, - InternalNetworksClearArpEntriesResponse, - InternalNetworksUpdateBfdForStaticRouteAdministrativeStateOptionalParams, - InternalNetworksUpdateBfdForStaticRouteAdministrativeStateResponse, - InternalNetworksListNextResponse + InternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams, + InternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse, + InternalNetworksListByL3IsolationDomainNextResponse } from "../models"; /// @@ -65,15 +58,15 @@ export class InternalNetworksImpl implements InternalNetworks { /** * Displays InternalNetworks list by resource group GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ - public list( + public listByL3IsolationDomain( resourceGroupName: string, l3IsolationDomainName: string, - options?: InternalNetworksListOptionalParams + options?: InternalNetworksListByL3IsolationDomainOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( + const iter = this.listByL3IsolationDomainPagingAll( resourceGroupName, l3IsolationDomainName, options @@ -89,7 +82,7 @@ export class InternalNetworksImpl implements InternalNetworks { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( + return this.listByL3IsolationDomainPagingPage( resourceGroupName, l3IsolationDomainName, options, @@ -99,16 +92,16 @@ export class InternalNetworksImpl implements InternalNetworks { }; } - private async *listPagingPage( + private async *listByL3IsolationDomainPagingPage( resourceGroupName: string, l3IsolationDomainName: string, - options?: InternalNetworksListOptionalParams, + options?: InternalNetworksListByL3IsolationDomainOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: InternalNetworksListResponse; + let result: InternalNetworksListByL3IsolationDomainResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( + result = await this._listByL3IsolationDomain( resourceGroupName, l3IsolationDomainName, options @@ -119,7 +112,7 @@ export class InternalNetworksImpl implements InternalNetworks { yield page; } while (continuationToken) { - result = await this._listNext( + result = await this._listByL3IsolationDomainNext( resourceGroupName, l3IsolationDomainName, continuationToken, @@ -132,12 +125,12 @@ export class InternalNetworksImpl implements InternalNetworks { } } - private async *listPagingAll( + private async *listByL3IsolationDomainPagingAll( resourceGroupName: string, l3IsolationDomainName: string, - options?: InternalNetworksListOptionalParams + options?: InternalNetworksListByL3IsolationDomainOptionalParams ): AsyncIterableIterator { - for await (const page of this.listPagingPage( + for await (const page of this.listByL3IsolationDomainPagingPage( resourceGroupName, l3IsolationDomainName, options @@ -149,8 +142,8 @@ export class InternalNetworksImpl implements InternalNetworks { /** * Creates InternalNetwork PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param internalNetworkName Name of the InternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body Request payload. * @param options The options parameters. */ @@ -231,8 +224,8 @@ export class InternalNetworksImpl implements InternalNetworks { /** * Creates InternalNetwork PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param internalNetworkName Name of the InternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body Request payload. * @param options The options parameters. */ @@ -256,8 +249,8 @@ export class InternalNetworksImpl implements InternalNetworks { /** * Gets a InternalNetworks. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param internalNetworkName Name of the InternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param options The options parameters. */ get( @@ -280,8 +273,8 @@ export class InternalNetworksImpl implements InternalNetworks { /** * Updates a InternalNetworks. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param internalNetworkName Name of the InternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body InternalNetwork properties to update. Only annotations are supported. * @param options The options parameters. */ @@ -353,7 +346,7 @@ export class InternalNetworksImpl implements InternalNetworks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -362,8 +355,8 @@ export class InternalNetworksImpl implements InternalNetworks { /** * Updates a InternalNetworks. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param internalNetworkName Name of the InternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body InternalNetwork properties to update. Only annotations are supported. * @param options The options parameters. */ @@ -387,8 +380,8 @@ export class InternalNetworksImpl implements InternalNetworks { /** * Implements InternalNetworks DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param internalNetworkName Name of the InternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param options The options parameters. */ async beginDelete( @@ -458,8 +451,8 @@ export class InternalNetworksImpl implements InternalNetworks { /** * Implements InternalNetworks DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param internalNetworkName Name of the InternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param options The options parameters. */ async beginDeleteAndWait( @@ -480,25 +473,25 @@ export class InternalNetworksImpl implements InternalNetworks { /** * Displays InternalNetworks list by resource group GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ - private _list( + private _listByL3IsolationDomain( resourceGroupName: string, l3IsolationDomainName: string, - options?: InternalNetworksListOptionalParams - ): Promise { + options?: InternalNetworksListByL3IsolationDomainOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, l3IsolationDomainName, options }, - listOperationSpec + listByL3IsolationDomainOperationSpec ); } /** * Update Administrative state of InternalNetworks on resources referred by their resource ids. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body Request payload. * @param options The options parameters. */ @@ -579,8 +572,8 @@ export class InternalNetworksImpl implements InternalNetworks { /** * Update Administrative state of InternalNetworks on resources referred by their resource ids. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body Request payload. * @param options The options parameters. */ @@ -604,8 +597,8 @@ export class InternalNetworksImpl implements InternalNetworks { /** * Update BGP state for internalNetwork. Allowed only on edge devices. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body Request payload. * @param options The options parameters. */ @@ -686,8 +679,8 @@ export class InternalNetworksImpl implements InternalNetworks { /** * Update BGP state for internalNetwork. Allowed only on edge devices. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body Request payload. * @param options The options parameters. */ @@ -709,354 +702,31 @@ export class InternalNetworksImpl implements InternalNetworks { } /** - * Update BfdForBgp for internalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - async beginUpdateBfdForBgpAdministrativeState( - resourceGroupName: string, - l3IsolationDomainName: string, - internalNetworkName: string, - body: UpdateAdministrativeState, - options?: InternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - InternalNetworksUpdateBfdForBgpAdministrativeStateResponse - >, - InternalNetworksUpdateBfdForBgpAdministrativeStateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body, - options - }, - spec: updateBfdForBgpAdministrativeStateOperationSpec - }); - const poller = await createHttpPoller< - InternalNetworksUpdateBfdForBgpAdministrativeStateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Update BfdForBgp for internalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - async beginUpdateBfdForBgpAdministrativeStateAndWait( - resourceGroupName: string, - l3IsolationDomainName: string, - internalNetworkName: string, - body: UpdateAdministrativeState, - options?: InternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams - ): Promise { - const poller = await this.beginUpdateBfdForBgpAdministrativeState( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * clearIpv6Neighbors for internalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - async beginClearIpv6Neighbors( - resourceGroupName: string, - l3IsolationDomainName: string, - internalNetworkName: string, - body: EnableDisableOnResources, - options?: InternalNetworksClearIpv6NeighborsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - InternalNetworksClearIpv6NeighborsResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body, - options - }, - spec: clearIpv6NeighborsOperationSpec - }); - const poller = await createHttpPoller< - InternalNetworksClearIpv6NeighborsResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * clearIpv6Neighbors for internalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - async beginClearIpv6NeighborsAndWait( - resourceGroupName: string, - l3IsolationDomainName: string, - internalNetworkName: string, - body: EnableDisableOnResources, - options?: InternalNetworksClearIpv6NeighborsOptionalParams - ): Promise { - const poller = await this.beginClearIpv6Neighbors( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * clearArpEntries for internalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - async beginClearArpEntries( - resourceGroupName: string, - l3IsolationDomainName: string, - internalNetworkName: string, - body: EnableDisableOnResources, - options?: InternalNetworksClearArpEntriesOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - InternalNetworksClearArpEntriesResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body, - options - }, - spec: clearArpEntriesOperationSpec - }); - const poller = await createHttpPoller< - InternalNetworksClearArpEntriesResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * clearArpEntries for internalNetwork. + * Update Static Route BFD administrative state for internalNetwork. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body Request payload. * @param options The options parameters. */ - async beginClearArpEntriesAndWait( - resourceGroupName: string, - l3IsolationDomainName: string, - internalNetworkName: string, - body: EnableDisableOnResources, - options?: InternalNetworksClearArpEntriesOptionalParams - ): Promise { - const poller = await this.beginClearArpEntries( - resourceGroupName, - l3IsolationDomainName, - internalNetworkName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * Update BfdForStaticRoutes for internalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - async beginUpdateBfdForStaticRouteAdministrativeState( + async beginUpdateStaticRouteBfdAdministrativeState( resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: UpdateAdministrativeState, - options?: InternalNetworksUpdateBfdForStaticRouteAdministrativeStateOptionalParams + options?: InternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams ): Promise< SimplePollerLike< OperationState< - InternalNetworksUpdateBfdForStaticRouteAdministrativeStateResponse + InternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse >, - InternalNetworksUpdateBfdForStaticRouteAdministrativeStateResponse + InternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -1101,12 +771,12 @@ export class InternalNetworksImpl implements InternalNetworks { body, options }, - spec: updateBfdForStaticRouteAdministrativeStateOperationSpec + spec: updateStaticRouteBfdAdministrativeStateOperationSpec }); const poller = await createHttpPoller< - InternalNetworksUpdateBfdForStaticRouteAdministrativeStateResponse, + InternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse, OperationState< - InternalNetworksUpdateBfdForStaticRouteAdministrativeStateResponse + InternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse > >(lro, { restoreFrom: options?.resumeFrom, @@ -1118,23 +788,21 @@ export class InternalNetworksImpl implements InternalNetworks { } /** - * Update BfdForStaticRoutes for internalNetwork. + * Update Static Route BFD administrative state for internalNetwork. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body Request payload. * @param options The options parameters. */ - async beginUpdateBfdForStaticRouteAdministrativeStateAndWait( + async beginUpdateStaticRouteBfdAdministrativeStateAndWait( resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: UpdateAdministrativeState, - options?: InternalNetworksUpdateBfdForStaticRouteAdministrativeStateOptionalParams - ): Promise< - InternalNetworksUpdateBfdForStaticRouteAdministrativeStateResponse - > { - const poller = await this.beginUpdateBfdForStaticRouteAdministrativeState( + options?: InternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams + ): Promise { + const poller = await this.beginUpdateStaticRouteBfdAdministrativeState( resourceGroupName, l3IsolationDomainName, internalNetworkName, @@ -1145,21 +813,22 @@ export class InternalNetworksImpl implements InternalNetworks { } /** - * ListNext + * ListByL3IsolationDomainNext * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param nextLink The nextLink from the previous successful call to the List method. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param nextLink The nextLink from the previous successful call to the ListByL3IsolationDomain + * method. * @param options The options parameters. */ - private _listNext( + private _listByL3IsolationDomainNext( resourceGroupName: string, l3IsolationDomainName: string, nextLink: string, - options?: InternalNetworksListNextOptionalParams - ): Promise { + options?: InternalNetworksListByL3IsolationDomainNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, l3IsolationDomainName, nextLink, options }, - listNextOperationSpec + listByL3IsolationDomainNextOperationSpec ); } } @@ -1187,7 +856,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body14, + requestBody: Parameters.body17, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1244,7 +913,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body15, + requestBody: Parameters.body18, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1281,7 +950,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listOperationSpec: coreClient.OperationSpec = { +const listByL3IsolationDomainOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks", httpMethod: "GET", @@ -1309,22 +978,22 @@ const updateAdministrativeStateOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.InternalNetworksUpdateAdministrativeStateHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 201: { - headersMapper: Mappers.InternalNetworksUpdateAdministrativeStateHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 202: { - headersMapper: Mappers.InternalNetworksUpdateAdministrativeStateHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 204: { - headersMapper: Mappers.InternalNetworksUpdateAdministrativeStateHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body10, + requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1343,128 +1012,22 @@ const updateBgpAdministrativeStateOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.InternalNetworksUpdateBgpAdministrativeStateHeaders - }, - 201: { - headersMapper: Mappers.InternalNetworksUpdateBgpAdministrativeStateHeaders - }, - 202: { - headersMapper: Mappers.InternalNetworksUpdateBgpAdministrativeStateHeaders - }, - 204: { - headersMapper: Mappers.InternalNetworksUpdateBgpAdministrativeStateHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body10, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.l3IsolationDomainName, - Parameters.internalNetworkName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const updateBfdForBgpAdministrativeStateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}/updateBfdForBgpAdministrativeState", - httpMethod: "POST", - responses: { - 200: { - headersMapper: - Mappers.InternalNetworksUpdateBfdForBgpAdministrativeStateHeaders - }, - 201: { - headersMapper: - Mappers.InternalNetworksUpdateBfdForBgpAdministrativeStateHeaders - }, - 202: { - headersMapper: - Mappers.InternalNetworksUpdateBfdForBgpAdministrativeStateHeaders - }, - 204: { - headersMapper: - Mappers.InternalNetworksUpdateBfdForBgpAdministrativeStateHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body10, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.l3IsolationDomainName, - Parameters.internalNetworkName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const clearIpv6NeighborsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}/clearIpv6Neighbors", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.InternalNetworksClearIpv6NeighborsHeaders - }, - 201: { - headersMapper: Mappers.InternalNetworksClearIpv6NeighborsHeaders - }, - 202: { - headersMapper: Mappers.InternalNetworksClearIpv6NeighborsHeaders - }, - 204: { - headersMapper: Mappers.InternalNetworksClearIpv6NeighborsHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body11, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.l3IsolationDomainName, - Parameters.internalNetworkName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const clearArpEntriesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}/clearArpEntries", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.InternalNetworksClearArpEntriesHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 201: { - headersMapper: Mappers.InternalNetworksClearArpEntriesHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 202: { - headersMapper: Mappers.InternalNetworksClearArpEntriesHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 204: { - headersMapper: Mappers.InternalNetworksClearArpEntriesHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body11, + requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1477,32 +1040,28 @@ const clearArpEntriesOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const updateBfdForStaticRouteAdministrativeStateOperationSpec: coreClient.OperationSpec = { +const updateStaticRouteBfdAdministrativeStateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}/updateBfdForStaticRouteAdministrativeState", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}/updateStaticRouteBfdAdministrativeState", httpMethod: "POST", responses: { 200: { - headersMapper: - Mappers.InternalNetworksUpdateBfdForStaticRouteAdministrativeStateHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 201: { - headersMapper: - Mappers.InternalNetworksUpdateBfdForStaticRouteAdministrativeStateHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 202: { - headersMapper: - Mappers.InternalNetworksUpdateBfdForStaticRouteAdministrativeStateHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 204: { - headersMapper: - Mappers.InternalNetworksUpdateBfdForStaticRouteAdministrativeStateHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body10, + requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1515,7 +1074,7 @@ const updateBfdForStaticRouteAdministrativeStateOperationSpec: coreClient.Operat mediaType: "json", serializer }; -const listNextOperationSpec: coreClient.OperationSpec = { +const listByL3IsolationDomainNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/internetGatewayRules.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/internetGatewayRules.ts new file mode 100644 index 000000000000..aae596fd3cd5 --- /dev/null +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/internetGatewayRules.ts @@ -0,0 +1,737 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { InternetGatewayRules } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureNetworkFabricManagementServiceAPI } from "../azureNetworkFabricManagementServiceAPI"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + InternetGatewayRule, + InternetGatewayRulesListByResourceGroupNextOptionalParams, + InternetGatewayRulesListByResourceGroupOptionalParams, + InternetGatewayRulesListByResourceGroupResponse, + InternetGatewayRulesListBySubscriptionNextOptionalParams, + InternetGatewayRulesListBySubscriptionOptionalParams, + InternetGatewayRulesListBySubscriptionResponse, + InternetGatewayRulesCreateOptionalParams, + InternetGatewayRulesCreateResponse, + InternetGatewayRulesGetOptionalParams, + InternetGatewayRulesGetResponse, + InternetGatewayRulePatch, + InternetGatewayRulesUpdateOptionalParams, + InternetGatewayRulesUpdateResponse, + InternetGatewayRulesDeleteOptionalParams, + InternetGatewayRulesDeleteResponse, + InternetGatewayRulesListByResourceGroupNextResponse, + InternetGatewayRulesListBySubscriptionNextResponse +} from "../models"; + +/// +/** Class containing InternetGatewayRules operations. */ +export class InternetGatewayRulesImpl implements InternetGatewayRules { + private readonly client: AzureNetworkFabricManagementServiceAPI; + + /** + * Initialize a new instance of the class InternetGatewayRules class. + * @param client Reference to the service client + */ + constructor(client: AzureNetworkFabricManagementServiceAPI) { + this.client = client; + } + + /** + * Implements Internet Gateway Rules list by resource group GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listByResourceGroup( + resourceGroupName: string, + options?: InternetGatewayRulesListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); + } + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: InternetGatewayRulesListByResourceGroupOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: InternetGatewayRulesListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: InternetGatewayRulesListByResourceGroupOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * List all Internet Gateway rules in the given subscription. + * @param options The options parameters. + */ + public listBySubscription( + options?: InternetGatewayRulesListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: InternetGatewayRulesListBySubscriptionOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: InternetGatewayRulesListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySubscriptionPagingAll( + options?: InternetGatewayRulesListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * Creates an Internet Gateway rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayRuleName Name of the Internet Gateway rule. + * @param body Request payload. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + internetGatewayRuleName: string, + body: InternetGatewayRule, + options?: InternetGatewayRulesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InternetGatewayRulesCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, internetGatewayRuleName, body, options }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + InternetGatewayRulesCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates an Internet Gateway rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayRuleName Name of the Internet Gateway rule. + * @param body Request payload. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + internetGatewayRuleName: string, + body: InternetGatewayRule, + options?: InternetGatewayRulesCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + internetGatewayRuleName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Gets an Internet Gateway Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayRuleName Name of the Internet Gateway rule. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + internetGatewayRuleName: string, + options?: InternetGatewayRulesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, internetGatewayRuleName, options }, + getOperationSpec + ); + } + + /** + * API to update certain properties of the Internet Gateway Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayRuleName Name of the Internet Gateway rule. + * @param body Internet Gateway Rule properties to update. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + internetGatewayRuleName: string, + body: InternetGatewayRulePatch, + options?: InternetGatewayRulesUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InternetGatewayRulesUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, internetGatewayRuleName, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + InternetGatewayRulesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * API to update certain properties of the Internet Gateway Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayRuleName Name of the Internet Gateway rule. + * @param body Internet Gateway Rule properties to update. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + internetGatewayRuleName: string, + body: InternetGatewayRulePatch, + options?: InternetGatewayRulesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + internetGatewayRuleName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Implements Internet Gateway Rules DELETE method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayRuleName Name of the Internet Gateway rule. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + internetGatewayRuleName: string, + options?: InternetGatewayRulesDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InternetGatewayRulesDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, internetGatewayRuleName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller< + InternetGatewayRulesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Implements Internet Gateway Rules DELETE method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayRuleName Name of the Internet Gateway rule. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + internetGatewayRuleName: string, + options?: InternetGatewayRulesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + internetGatewayRuleName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Implements Internet Gateway Rules list by resource group GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: InternetGatewayRulesListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + + /** + * List all Internet Gateway rules in the given subscription. + * @param options The options parameters. + */ + private _listBySubscription( + options?: InternetGatewayRulesListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: InternetGatewayRulesListByResourceGroupNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: InternetGatewayRulesListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/{internetGatewayRuleName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.InternetGatewayRule + }, + 201: { + bodyMapper: Mappers.InternetGatewayRule + }, + 202: { + bodyMapper: Mappers.InternetGatewayRule + }, + 204: { + bodyMapper: Mappers.InternetGatewayRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body5, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.internetGatewayRuleName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/{internetGatewayRuleName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InternetGatewayRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.internetGatewayRuleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/{internetGatewayRuleName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.InternetGatewayRule + }, + 201: { + bodyMapper: Mappers.InternetGatewayRule + }, + 202: { + bodyMapper: Mappers.InternetGatewayRule + }, + 204: { + bodyMapper: Mappers.InternetGatewayRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body6, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.internetGatewayRuleName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules/{internetGatewayRuleName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.InternetGatewayRulesDeleteHeaders + }, + 201: { + headersMapper: Mappers.InternetGatewayRulesDeleteHeaders + }, + 202: { + headersMapper: Mappers.InternetGatewayRulesDeleteHeaders + }, + 204: { + headersMapper: Mappers.InternetGatewayRulesDeleteHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.internetGatewayRuleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InternetGatewayRulesListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/internetGatewayRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InternetGatewayRulesListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InternetGatewayRulesListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InternetGatewayRulesListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/internetGateways.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/internetGateways.ts new file mode 100644 index 000000000000..1fdc36628356 --- /dev/null +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/internetGateways.ts @@ -0,0 +1,720 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { InternetGateways } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureNetworkFabricManagementServiceAPI } from "../azureNetworkFabricManagementServiceAPI"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + InternetGateway, + InternetGatewaysListByResourceGroupNextOptionalParams, + InternetGatewaysListByResourceGroupOptionalParams, + InternetGatewaysListByResourceGroupResponse, + InternetGatewaysListBySubscriptionNextOptionalParams, + InternetGatewaysListBySubscriptionOptionalParams, + InternetGatewaysListBySubscriptionResponse, + InternetGatewaysCreateOptionalParams, + InternetGatewaysCreateResponse, + InternetGatewaysGetOptionalParams, + InternetGatewaysGetResponse, + InternetGatewayPatch, + InternetGatewaysUpdateOptionalParams, + InternetGatewaysUpdateResponse, + InternetGatewaysDeleteOptionalParams, + InternetGatewaysListByResourceGroupNextResponse, + InternetGatewaysListBySubscriptionNextResponse +} from "../models"; + +/// +/** Class containing InternetGateways operations. */ +export class InternetGatewaysImpl implements InternetGateways { + private readonly client: AzureNetworkFabricManagementServiceAPI; + + /** + * Initialize a new instance of the class InternetGateways class. + * @param client Reference to the service client + */ + constructor(client: AzureNetworkFabricManagementServiceAPI) { + this.client = client; + } + + /** + * Displays Internet Gateways list by resource group GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listByResourceGroup( + resourceGroupName: string, + options?: InternetGatewaysListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); + } + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: InternetGatewaysListByResourceGroupOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: InternetGatewaysListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: InternetGatewaysListByResourceGroupOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * Displays Internet Gateways list by subscription GET method. + * @param options The options parameters. + */ + public listBySubscription( + options?: InternetGatewaysListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: InternetGatewaysListBySubscriptionOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: InternetGatewaysListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySubscriptionPagingAll( + options?: InternetGatewaysListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * Creates a Network Fabric Service Internet Gateway resource instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayName Name of the Internet Gateway. + * @param body Request payload. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + internetGatewayName: string, + body: InternetGateway, + options?: InternetGatewaysCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InternetGatewaysCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, internetGatewayName, body, options }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + InternetGatewaysCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates a Network Fabric Service Internet Gateway resource instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayName Name of the Internet Gateway. + * @param body Request payload. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + internetGatewayName: string, + body: InternetGateway, + options?: InternetGatewaysCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + internetGatewayName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Implements Gateway GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayName Name of the Internet Gateway. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + internetGatewayName: string, + options?: InternetGatewaysGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, internetGatewayName, options }, + getOperationSpec + ); + } + + /** + * Execute patch on Network Fabric Service Internet Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayName Name of the Internet Gateway. + * @param body API to update certain properties of the L2 Isolation Domain resource.. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + internetGatewayName: string, + body: InternetGatewayPatch, + options?: InternetGatewaysUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InternetGatewaysUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, internetGatewayName, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + InternetGatewaysUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Execute patch on Network Fabric Service Internet Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayName Name of the Internet Gateway. + * @param body API to update certain properties of the L2 Isolation Domain resource.. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + internetGatewayName: string, + body: InternetGatewayPatch, + options?: InternetGatewaysUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + internetGatewayName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Execute a delete on Network Fabric Service Internet Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayName Name of the Internet Gateway. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + internetGatewayName: string, + options?: InternetGatewaysDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, internetGatewayName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Execute a delete on Network Fabric Service Internet Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayName Name of the Internet Gateway. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + internetGatewayName: string, + options?: InternetGatewaysDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + internetGatewayName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Displays Internet Gateways list by resource group GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: InternetGatewaysListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + + /** + * Displays Internet Gateways list by subscription GET method. + * @param options The options parameters. + */ + private _listBySubscription( + options?: InternetGatewaysListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: InternetGatewaysListByResourceGroupNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: InternetGatewaysListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGateways/{internetGatewayName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.InternetGateway + }, + 201: { + bodyMapper: Mappers.InternetGateway + }, + 202: { + bodyMapper: Mappers.InternetGateway + }, + 204: { + bodyMapper: Mappers.InternetGateway + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.internetGatewayName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGateways/{internetGatewayName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InternetGateway + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.internetGatewayName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGateways/{internetGatewayName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.InternetGateway + }, + 201: { + bodyMapper: Mappers.InternetGateway + }, + 202: { + bodyMapper: Mappers.InternetGateway + }, + 204: { + bodyMapper: Mappers.InternetGateway + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.internetGatewayName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGateways/{internetGatewayName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.internetGatewayName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/internetGateways", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InternetGatewaysListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/internetGateways", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InternetGatewaysListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InternetGatewaysListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.InternetGatewaysListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/ipCommunities.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/ipCommunities.ts index 13df0c08af46..cbb691808575 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/ipCommunities.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/ipCommunities.ts @@ -35,6 +35,7 @@ import { IpCommunitiesUpdateOptionalParams, IpCommunitiesUpdateResponse, IpCommunitiesDeleteOptionalParams, + IpCommunitiesDeleteResponse, IpCommunitiesListByResourceGroupNextResponse, IpCommunitiesListBySubscriptionNextResponse } from "../models"; @@ -53,7 +54,7 @@ export class IpCommunitiesImpl implements IpCommunities { } /** - * Implements IpCommunities list by resource group GET method. + * Implements IP Communities list by resource group GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ @@ -122,7 +123,7 @@ export class IpCommunitiesImpl implements IpCommunities { } /** - * Implements IpCommunities list by subscription GET method. + * Implements IP Communities list by subscription GET method. * @param options The options parameters. */ public listBySubscription( @@ -178,7 +179,7 @@ export class IpCommunitiesImpl implements IpCommunities { /** * Implements an IP Community PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipCommunityName Name of the IP Community + * @param ipCommunityName Name of the IP Community. * @param body Request payload. * @param options The options parameters. */ @@ -252,7 +253,7 @@ export class IpCommunitiesImpl implements IpCommunities { /** * Implements an IP Community PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipCommunityName Name of the IP Community + * @param ipCommunityName Name of the IP Community. * @param body Request payload. * @param options The options parameters. */ @@ -291,7 +292,7 @@ export class IpCommunitiesImpl implements IpCommunities { /** * API to update certain properties of the IP Community resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipCommunityName Name of the IP Community + * @param ipCommunityName Name of the IP Community. * @param body IP Community properties to update. * @param options The options parameters. */ @@ -365,7 +366,7 @@ export class IpCommunitiesImpl implements IpCommunities { /** * API to update certain properties of the IP Community resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipCommunityName Name of the IP Community + * @param ipCommunityName Name of the IP Community. * @param body IP Community properties to update. * @param options The options parameters. */ @@ -394,11 +395,16 @@ export class IpCommunitiesImpl implements IpCommunities { resourceGroupName: string, ipCommunityName: string, options?: IpCommunitiesDeleteOptionalParams - ): Promise, void>> { + ): Promise< + SimplePollerLike< + OperationState, + IpCommunitiesDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -439,7 +445,10 @@ export class IpCommunitiesImpl implements IpCommunities { args: { resourceGroupName, ipCommunityName, options }, spec: deleteOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + IpCommunitiesDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location" @@ -458,7 +467,7 @@ export class IpCommunitiesImpl implements IpCommunities { resourceGroupName: string, ipCommunityName: string, options?: IpCommunitiesDeleteOptionalParams - ): Promise { + ): Promise { const poller = await this.beginDelete( resourceGroupName, ipCommunityName, @@ -468,7 +477,7 @@ export class IpCommunitiesImpl implements IpCommunities { } /** - * Implements IpCommunities list by resource group GET method. + * Implements IP Communities list by resource group GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ @@ -483,7 +492,7 @@ export class IpCommunitiesImpl implements IpCommunities { } /** - * Implements IpCommunities list by subscription GET method. + * Implements IP Communities list by subscription GET method. * @param options The options parameters. */ private _listBySubscription( @@ -551,7 +560,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body2, + requestBody: Parameters.body7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -606,7 +615,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body3, + requestBody: Parameters.body8, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -623,10 +632,18 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/ipCommunities/{ipCommunityName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + headersMapper: Mappers.IpCommunitiesDeleteHeaders + }, + 201: { + headersMapper: Mappers.IpCommunitiesDeleteHeaders + }, + 202: { + headersMapper: Mappers.IpCommunitiesDeleteHeaders + }, + 204: { + headersMapper: Mappers.IpCommunitiesDeleteHeaders + }, default: { bodyMapper: Mappers.ErrorResponse } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/ipExtendedCommunities.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/ipExtendedCommunities.ts index afd453c03abf..0371f9c58811 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/ipExtendedCommunities.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/ipExtendedCommunities.ts @@ -35,6 +35,7 @@ import { IpExtendedCommunitiesUpdateOptionalParams, IpExtendedCommunitiesUpdateResponse, IpExtendedCommunitiesDeleteOptionalParams, + IpExtendedCommunitiesDeleteResponse, IpExtendedCommunitiesListByResourceGroupNextResponse, IpExtendedCommunitiesListBySubscriptionNextResponse } from "../models"; @@ -178,7 +179,7 @@ export class IpExtendedCommunitiesImpl implements IpExtendedCommunities { /** * Implements IP Extended Community PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipExtendedCommunityName Name of the IP Extended Community + * @param ipExtendedCommunityName Name of the IP Extended Community. * @param body Request payload. * @param options The options parameters. */ @@ -252,7 +253,7 @@ export class IpExtendedCommunitiesImpl implements IpExtendedCommunities { /** * Implements IP Extended Community PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipExtendedCommunityName Name of the IP Extended Community + * @param ipExtendedCommunityName Name of the IP Extended Community. * @param body Request payload. * @param options The options parameters. */ @@ -274,7 +275,7 @@ export class IpExtendedCommunitiesImpl implements IpExtendedCommunities { /** * Implements IP Extended Community GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipExtendedCommunityName Name of the IP Extended Community + * @param ipExtendedCommunityName Name of the IP Extended Community. * @param options The options parameters. */ get( @@ -291,7 +292,7 @@ export class IpExtendedCommunitiesImpl implements IpExtendedCommunities { /** * API to update certain properties of the IP Extended Community resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipExtendedCommunityName Name of the IP Extended Community + * @param ipExtendedCommunityName Name of the IP Extended Community. * @param body IP Extended Community properties to update. * @param options The options parameters. */ @@ -365,7 +366,7 @@ export class IpExtendedCommunitiesImpl implements IpExtendedCommunities { /** * API to update certain properties of the IP Extended Community resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipExtendedCommunityName Name of the IP Extended Community + * @param ipExtendedCommunityName Name of the IP Extended Community. * @param body IP Extended Community properties to update. * @param options The options parameters. */ @@ -387,18 +388,23 @@ export class IpExtendedCommunitiesImpl implements IpExtendedCommunities { /** * Implements IP Extended Community DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipExtendedCommunityName Name of the IP Extended Community + * @param ipExtendedCommunityName Name of the IP Extended Community. * @param options The options parameters. */ async beginDelete( resourceGroupName: string, ipExtendedCommunityName: string, options?: IpExtendedCommunitiesDeleteOptionalParams - ): Promise, void>> { + ): Promise< + SimplePollerLike< + OperationState, + IpExtendedCommunitiesDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -439,7 +445,10 @@ export class IpExtendedCommunitiesImpl implements IpExtendedCommunities { args: { resourceGroupName, ipExtendedCommunityName, options }, spec: deleteOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + IpExtendedCommunitiesDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location" @@ -451,14 +460,14 @@ export class IpExtendedCommunitiesImpl implements IpExtendedCommunities { /** * Implements IP Extended Community DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipExtendedCommunityName Name of the IP Extended Community + * @param ipExtendedCommunityName Name of the IP Extended Community. * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, ipExtendedCommunityName: string, options?: IpExtendedCommunitiesDeleteOptionalParams - ): Promise { + ): Promise { const poller = await this.beginDelete( resourceGroupName, ipExtendedCommunityName, @@ -551,7 +560,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body4, + requestBody: Parameters.body9, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -606,7 +615,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body5, + requestBody: Parameters.body10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -623,10 +632,18 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/ipExtendedCommunities/{ipExtendedCommunityName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + headersMapper: Mappers.IpExtendedCommunitiesDeleteHeaders + }, + 201: { + headersMapper: Mappers.IpExtendedCommunitiesDeleteHeaders + }, + 202: { + headersMapper: Mappers.IpExtendedCommunitiesDeleteHeaders + }, + 204: { + headersMapper: Mappers.IpExtendedCommunitiesDeleteHeaders + }, default: { bodyMapper: Mappers.ErrorResponse } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/ipPrefixes.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/ipPrefixes.ts index bb3a55fead49..ec123524739e 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/ipPrefixes.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/ipPrefixes.ts @@ -35,6 +35,7 @@ import { IpPrefixesUpdateOptionalParams, IpPrefixesUpdateResponse, IpPrefixesDeleteOptionalParams, + IpPrefixesDeleteResponse, IpPrefixesListByResourceGroupNextResponse, IpPrefixesListBySubscriptionNextResponse } from "../models"; @@ -178,7 +179,7 @@ export class IpPrefixesImpl implements IpPrefixes { /** * Implements IP Prefix PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipPrefixName Name of the IP Prefix + * @param ipPrefixName Name of the IP Prefix. * @param body Request payload. * @param options The options parameters. */ @@ -252,7 +253,7 @@ export class IpPrefixesImpl implements IpPrefixes { /** * Implements IP Prefix PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipPrefixName Name of the IP Prefix + * @param ipPrefixName Name of the IP Prefix. * @param body Request payload. * @param options The options parameters. */ @@ -274,7 +275,7 @@ export class IpPrefixesImpl implements IpPrefixes { /** * Implements IP Prefix GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipPrefixName Name of the IP Prefix + * @param ipPrefixName Name of the IP Prefix. * @param options The options parameters. */ get( @@ -291,7 +292,7 @@ export class IpPrefixesImpl implements IpPrefixes { /** * API to update certain properties of the IP Prefix resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipPrefixName Name of the IP Prefix + * @param ipPrefixName Name of the IP Prefix. * @param body IP Prefix properties to update. * @param options The options parameters. */ @@ -365,7 +366,7 @@ export class IpPrefixesImpl implements IpPrefixes { /** * API to update certain properties of the IP Prefix resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipPrefixName Name of the IP Prefix + * @param ipPrefixName Name of the IP Prefix. * @param body IP Prefix properties to update. * @param options The options parameters. */ @@ -387,18 +388,23 @@ export class IpPrefixesImpl implements IpPrefixes { /** * Implements IP Prefix DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipPrefixName Name of the IP Prefix + * @param ipPrefixName Name of the IP Prefix. * @param options The options parameters. */ async beginDelete( resourceGroupName: string, ipPrefixName: string, options?: IpPrefixesDeleteOptionalParams - ): Promise, void>> { + ): Promise< + SimplePollerLike< + OperationState, + IpPrefixesDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -439,7 +445,10 @@ export class IpPrefixesImpl implements IpPrefixes { args: { resourceGroupName, ipPrefixName, options }, spec: deleteOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + IpPrefixesDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location" @@ -451,14 +460,14 @@ export class IpPrefixesImpl implements IpPrefixes { /** * Implements IP Prefix DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipPrefixName Name of the IP Prefix + * @param ipPrefixName Name of the IP Prefix. * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, ipPrefixName: string, options?: IpPrefixesDeleteOptionalParams - ): Promise { + ): Promise { const poller = await this.beginDelete( resourceGroupName, ipPrefixName, @@ -551,7 +560,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body6, + requestBody: Parameters.body11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -606,7 +615,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body7, + requestBody: Parameters.body12, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -623,10 +632,18 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/ipPrefixes/{ipPrefixName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + headersMapper: Mappers.IpPrefixesDeleteHeaders + }, + 201: { + headersMapper: Mappers.IpPrefixesDeleteHeaders + }, + 202: { + headersMapper: Mappers.IpPrefixesDeleteHeaders + }, + 204: { + headersMapper: Mappers.IpPrefixesDeleteHeaders + }, default: { bodyMapper: Mappers.ErrorResponse } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/l2IsolationDomains.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/l2IsolationDomains.ts index b994a1ea0052..36401369bdc4 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/l2IsolationDomains.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/l2IsolationDomains.ts @@ -38,13 +38,10 @@ import { UpdateAdministrativeState, L2IsolationDomainsUpdateAdministrativeStateOptionalParams, L2IsolationDomainsUpdateAdministrativeStateResponse, - EnableDisableOnResources, - L2IsolationDomainsClearArpTableOptionalParams, - L2IsolationDomainsClearArpTableResponse, - L2IsolationDomainsClearNeighborTableOptionalParams, - L2IsolationDomainsClearNeighborTableResponse, - L2IsolationDomainsGetArpEntriesOptionalParams, - L2IsolationDomainsGetArpEntriesResponse, + L2IsolationDomainsValidateConfigurationOptionalParams, + L2IsolationDomainsValidateConfigurationResponse, + L2IsolationDomainsCommitConfigurationOptionalParams, + L2IsolationDomainsCommitConfigurationResponse, L2IsolationDomainsListByResourceGroupNextResponse, L2IsolationDomainsListBySubscriptionNextResponse } from "../models"; @@ -189,7 +186,7 @@ export class L2IsolationDomainsImpl implements L2IsolationDomains { * Creates layer 2 network connectivity between compute nodes within a rack and across racks.The * configuration is applied on the devices only after the isolation domain is enabled. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2 Isolation Domain + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param body Request payload. * @param options The options parameters. */ @@ -264,7 +261,7 @@ export class L2IsolationDomainsImpl implements L2IsolationDomains { * Creates layer 2 network connectivity between compute nodes within a rack and across racks.The * configuration is applied on the devices only after the isolation domain is enabled. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2 Isolation Domain + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param body Request payload. * @param options The options parameters. */ @@ -286,7 +283,7 @@ export class L2IsolationDomainsImpl implements L2IsolationDomains { /** * Implements L2 Isolation Domain GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2 Isolation Domain + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param options The options parameters. */ get( @@ -303,7 +300,7 @@ export class L2IsolationDomainsImpl implements L2IsolationDomains { /** * API to update certain properties of the L2 Isolation Domain resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2 Isolation Domain + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param body API to update certain properties of the L2 Isolation Domain resource.. * @param options The options parameters. */ @@ -377,7 +374,7 @@ export class L2IsolationDomainsImpl implements L2IsolationDomains { /** * API to update certain properties of the L2 Isolation Domain resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2 Isolation Domain + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param body API to update certain properties of the L2 Isolation Domain resource.. * @param options The options parameters. */ @@ -399,7 +396,7 @@ export class L2IsolationDomainsImpl implements L2IsolationDomains { /** * Deletes layer 2 connectivity between compute nodes by managed by named L2 Isolation name. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2 Isolation Domain + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param options The options parameters. */ async beginDelete( @@ -463,7 +460,7 @@ export class L2IsolationDomainsImpl implements L2IsolationDomains { /** * Deletes layer 2 connectivity between compute nodes by managed by named L2 Isolation name. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2 Isolation Domain + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param options The options parameters. */ async beginDeleteAndWait( @@ -482,7 +479,7 @@ export class L2IsolationDomainsImpl implements L2IsolationDomains { /** * Enables isolation domain across the fabric or on specified racks. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2IsolationDomain. + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param body Request payload. * @param options The options parameters. */ @@ -556,7 +553,7 @@ export class L2IsolationDomainsImpl implements L2IsolationDomains { /** * Enables isolation domain across the fabric or on specified racks. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2IsolationDomain. + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param body Request payload. * @param options The options parameters. */ @@ -576,123 +573,25 @@ export class L2IsolationDomainsImpl implements L2IsolationDomains { } /** - * Clears ARP tables for this Isolation Domain. + * Validates the configuration of the resources. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2IsolationDomain. - * @param body Request payload. - * @param options The options parameters. - */ - async beginClearArpTable( - resourceGroupName: string, - l2IsolationDomainName: string, - body: EnableDisableOnResources, - options?: L2IsolationDomainsClearArpTableOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - L2IsolationDomainsClearArpTableResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, l2IsolationDomainName, body, options }, - spec: clearArpTableOperationSpec - }); - const poller = await createHttpPoller< - L2IsolationDomainsClearArpTableResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Clears ARP tables for this Isolation Domain. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2IsolationDomain. - * @param body Request payload. - * @param options The options parameters. - */ - async beginClearArpTableAndWait( - resourceGroupName: string, - l2IsolationDomainName: string, - body: EnableDisableOnResources, - options?: L2IsolationDomainsClearArpTableOptionalParams - ): Promise { - const poller = await this.beginClearArpTable( - resourceGroupName, - l2IsolationDomainName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * Clears IPv6 neighbors for this Isolation Domain. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2IsolationDomain. - * @param body Request payload. + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param options The options parameters. */ - async beginClearNeighborTable( + async beginValidateConfiguration( resourceGroupName: string, l2IsolationDomainName: string, - body: EnableDisableOnResources, - options?: L2IsolationDomainsClearNeighborTableOptionalParams + options?: L2IsolationDomainsValidateConfigurationOptionalParams ): Promise< SimplePollerLike< - OperationState, - L2IsolationDomainsClearNeighborTableResponse + OperationState, + L2IsolationDomainsValidateConfigurationResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -730,12 +629,12 @@ export class L2IsolationDomainsImpl implements L2IsolationDomains { const lro = createLroSpec({ sendOperationFn, - args: { resourceGroupName, l2IsolationDomainName, body, options }, - spec: clearNeighborTableOperationSpec + args: { resourceGroupName, l2IsolationDomainName, options }, + spec: validateConfigurationOperationSpec }); const poller = await createHttpPoller< - L2IsolationDomainsClearNeighborTableResponse, - OperationState + L2IsolationDomainsValidateConfigurationResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -746,47 +645,44 @@ export class L2IsolationDomainsImpl implements L2IsolationDomains { } /** - * Clears IPv6 neighbors for this Isolation Domain. + * Validates the configuration of the resources. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2IsolationDomain. - * @param body Request payload. + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param options The options parameters. */ - async beginClearNeighborTableAndWait( + async beginValidateConfigurationAndWait( resourceGroupName: string, l2IsolationDomainName: string, - body: EnableDisableOnResources, - options?: L2IsolationDomainsClearNeighborTableOptionalParams - ): Promise { - const poller = await this.beginClearNeighborTable( + options?: L2IsolationDomainsValidateConfigurationOptionalParams + ): Promise { + const poller = await this.beginValidateConfiguration( resourceGroupName, l2IsolationDomainName, - body, options ); return poller.pollUntilDone(); } /** - * Clears IPv6 neighbors for this Isolation Domain. + * Commits the configuration of the given resources. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2IsolationDomain. + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param options The options parameters. */ - async beginGetArpEntries( + async beginCommitConfiguration( resourceGroupName: string, l2IsolationDomainName: string, - options?: L2IsolationDomainsGetArpEntriesOptionalParams + options?: L2IsolationDomainsCommitConfigurationOptionalParams ): Promise< SimplePollerLike< - OperationState, - L2IsolationDomainsGetArpEntriesResponse + OperationState, + L2IsolationDomainsCommitConfigurationResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -825,11 +721,11 @@ export class L2IsolationDomainsImpl implements L2IsolationDomains { const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, l2IsolationDomainName, options }, - spec: getArpEntriesOperationSpec + spec: commitConfigurationOperationSpec }); const poller = await createHttpPoller< - L2IsolationDomainsGetArpEntriesResponse, - OperationState + L2IsolationDomainsCommitConfigurationResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -840,17 +736,17 @@ export class L2IsolationDomainsImpl implements L2IsolationDomains { } /** - * Clears IPv6 neighbors for this Isolation Domain. + * Commits the configuration of the given resources. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2IsolationDomain. + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param options The options parameters. */ - async beginGetArpEntriesAndWait( + async beginCommitConfigurationAndWait( resourceGroupName: string, l2IsolationDomainName: string, - options?: L2IsolationDomainsGetArpEntriesOptionalParams - ): Promise { - const poller = await this.beginGetArpEntries( + options?: L2IsolationDomainsCommitConfigurationOptionalParams + ): Promise { + const poller = await this.beginCommitConfiguration( resourceGroupName, l2IsolationDomainName, options @@ -942,7 +838,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body8, + requestBody: Parameters.body13, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -997,7 +893,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body9, + requestBody: Parameters.body14, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1038,55 +934,22 @@ const updateAdministrativeStateOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.L2IsolationDomainsUpdateAdministrativeStateHeaders - }, - 201: { - headersMapper: Mappers.L2IsolationDomainsUpdateAdministrativeStateHeaders - }, - 202: { - headersMapper: Mappers.L2IsolationDomainsUpdateAdministrativeStateHeaders - }, - 204: { - headersMapper: Mappers.L2IsolationDomainsUpdateAdministrativeStateHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body10, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.l2IsolationDomainName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const clearArpTableOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/{l2IsolationDomainName}/clearArpTable", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.L2IsolationDomainsClearArpTableHeaders + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate }, 201: { - headersMapper: Mappers.L2IsolationDomainsClearArpTableHeaders + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate }, 202: { - headersMapper: Mappers.L2IsolationDomainsClearArpTableHeaders + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate }, 204: { - headersMapper: Mappers.L2IsolationDomainsClearArpTableHeaders + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body11, + requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1098,28 +961,27 @@ const clearArpTableOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const clearNeighborTableOperationSpec: coreClient.OperationSpec = { +const validateConfigurationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/{l2IsolationDomainName}/clearNeighborTable", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/{l2IsolationDomainName}/validateConfiguration", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.L2IsolationDomainsClearNeighborTableHeaders + bodyMapper: Mappers.ValidateConfigurationResponse }, 201: { - headersMapper: Mappers.L2IsolationDomainsClearNeighborTableHeaders + bodyMapper: Mappers.ValidateConfigurationResponse }, 202: { - headersMapper: Mappers.L2IsolationDomainsClearNeighborTableHeaders + bodyMapper: Mappers.ValidateConfigurationResponse }, 204: { - headersMapper: Mappers.L2IsolationDomainsClearNeighborTableHeaders + bodyMapper: Mappers.ValidateConfigurationResponse }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1127,50 +989,25 @@ const clearNeighborTableOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.l2IsolationDomainName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const getArpEntriesOperationSpec: coreClient.OperationSpec = { +const commitConfigurationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/{l2IsolationDomainName}/getArpEntries", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/{l2IsolationDomainName}/commitConfiguration", httpMethod: "POST", responses: { 200: { - bodyMapper: { - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "ARPProperties" } } - } - }, - headersMapper: Mappers.L2IsolationDomainsGetArpEntriesHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 201: { - bodyMapper: { - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "ARPProperties" } } - } - }, - headersMapper: Mappers.L2IsolationDomainsGetArpEntriesHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 202: { - bodyMapper: { - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "ARPProperties" } } - } - }, - headersMapper: Mappers.L2IsolationDomainsGetArpEntriesHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 204: { - bodyMapper: { - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "ARPProperties" } } - } - }, - headersMapper: Mappers.L2IsolationDomainsGetArpEntriesHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/l3IsolationDomains.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/l3IsolationDomains.ts index 108208630119..9d3fa4964c7a 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/l3IsolationDomains.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/l3IsolationDomains.ts @@ -38,13 +38,10 @@ import { UpdateAdministrativeState, L3IsolationDomainsUpdateAdministrativeStateOptionalParams, L3IsolationDomainsUpdateAdministrativeStateResponse, - L3IsolationDomainsUpdateOptionBAdministrativeStateOptionalParams, - L3IsolationDomainsUpdateOptionBAdministrativeStateResponse, - EnableDisableOnResources, - L3IsolationDomainsClearArpTableOptionalParams, - L3IsolationDomainsClearArpTableResponse, - L3IsolationDomainsClearNeighborTableOptionalParams, - L3IsolationDomainsClearNeighborTableResponse, + L3IsolationDomainsValidateConfigurationOptionalParams, + L3IsolationDomainsValidateConfigurationResponse, + L3IsolationDomainsCommitConfigurationOptionalParams, + L3IsolationDomainsCommitConfigurationResponse, L3IsolationDomainsListByResourceGroupNextResponse, L3IsolationDomainsListBySubscriptionNextResponse } from "../models"; @@ -190,7 +187,7 @@ export class L3IsolationDomainsImpl implements L3IsolationDomains { * communication with external services .This configuration is applied on the devices only after the * creation of networks is completed and isolation domain is enabled. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3 Isolation Domain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param body Request payload. * @param options The options parameters. */ @@ -266,7 +263,7 @@ export class L3IsolationDomainsImpl implements L3IsolationDomains { * communication with external services .This configuration is applied on the devices only after the * creation of networks is completed and isolation domain is enabled. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3 Isolation Domain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param body Request payload. * @param options The options parameters. */ @@ -288,7 +285,7 @@ export class L3IsolationDomainsImpl implements L3IsolationDomains { /** * Retrieves details of this L3 Isolation Domain. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3 Isolation Domain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ get( @@ -305,7 +302,7 @@ export class L3IsolationDomainsImpl implements L3IsolationDomains { /** * API to update certain properties of the L3 Isolation Domain resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3 Isolation Domain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param body API to update certain properties of the L3 Isolation Domain resource. * @param options The options parameters. */ @@ -379,7 +376,7 @@ export class L3IsolationDomainsImpl implements L3IsolationDomains { /** * API to update certain properties of the L3 Isolation Domain resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3 Isolation Domain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param body API to update certain properties of the L3 Isolation Domain resource. * @param options The options parameters. */ @@ -401,7 +398,7 @@ export class L3IsolationDomainsImpl implements L3IsolationDomains { /** * Deletes layer 3 connectivity between compute nodes by managed by named L3 Isolation name. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3 Isolation Domain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ async beginDelete( @@ -465,7 +462,7 @@ export class L3IsolationDomainsImpl implements L3IsolationDomains { /** * Deletes layer 3 connectivity between compute nodes by managed by named L3 Isolation name. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3 Isolation Domain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ async beginDeleteAndWait( @@ -512,7 +509,7 @@ export class L3IsolationDomainsImpl implements L3IsolationDomains { /** * Enables racks for this Isolation Domain. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param body Request payload. * @param options The options parameters. */ @@ -586,7 +583,7 @@ export class L3IsolationDomainsImpl implements L3IsolationDomains { /** * Enables racks for this Isolation Domain. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param body Request payload. * @param options The options parameters. */ @@ -606,125 +603,25 @@ export class L3IsolationDomainsImpl implements L3IsolationDomains { } /** - * Update administrative state of option B on CE devices + * Validates the configuration of the resources. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param body Request payload. - * @param options The options parameters. - */ - async beginUpdateOptionBAdministrativeState( - resourceGroupName: string, - l3IsolationDomainName: string, - body: UpdateAdministrativeState, - options?: L3IsolationDomainsUpdateOptionBAdministrativeStateOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - L3IsolationDomainsUpdateOptionBAdministrativeStateResponse - >, - L3IsolationDomainsUpdateOptionBAdministrativeStateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, l3IsolationDomainName, body, options }, - spec: updateOptionBAdministrativeStateOperationSpec - }); - const poller = await createHttpPoller< - L3IsolationDomainsUpdateOptionBAdministrativeStateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Update administrative state of option B on CE devices - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param body Request payload. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ - async beginUpdateOptionBAdministrativeStateAndWait( + async beginValidateConfiguration( resourceGroupName: string, l3IsolationDomainName: string, - body: UpdateAdministrativeState, - options?: L3IsolationDomainsUpdateOptionBAdministrativeStateOptionalParams - ): Promise { - const poller = await this.beginUpdateOptionBAdministrativeState( - resourceGroupName, - l3IsolationDomainName, - body, - options - ); - return poller.pollUntilDone(); - } - - /** - * Clears ARP tables for this Isolation Domain. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param body Request payload. - * @param options The options parameters. - */ - async beginClearArpTable( - resourceGroupName: string, - l3IsolationDomainName: string, - body: EnableDisableOnResources, - options?: L3IsolationDomainsClearArpTableOptionalParams + options?: L3IsolationDomainsValidateConfigurationOptionalParams ): Promise< SimplePollerLike< - OperationState, - L3IsolationDomainsClearArpTableResponse + OperationState, + L3IsolationDomainsValidateConfigurationResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -762,12 +659,12 @@ export class L3IsolationDomainsImpl implements L3IsolationDomains { const lro = createLroSpec({ sendOperationFn, - args: { resourceGroupName, l3IsolationDomainName, body, options }, - spec: clearArpTableOperationSpec + args: { resourceGroupName, l3IsolationDomainName, options }, + spec: validateConfigurationOperationSpec }); const poller = await createHttpPoller< - L3IsolationDomainsClearArpTableResponse, - OperationState + L3IsolationDomainsValidateConfigurationResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -778,49 +675,44 @@ export class L3IsolationDomainsImpl implements L3IsolationDomains { } /** - * Clears ARP tables for this Isolation Domain. + * Validates the configuration of the resources. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param body Request payload. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ - async beginClearArpTableAndWait( + async beginValidateConfigurationAndWait( resourceGroupName: string, l3IsolationDomainName: string, - body: EnableDisableOnResources, - options?: L3IsolationDomainsClearArpTableOptionalParams - ): Promise { - const poller = await this.beginClearArpTable( + options?: L3IsolationDomainsValidateConfigurationOptionalParams + ): Promise { + const poller = await this.beginValidateConfiguration( resourceGroupName, l3IsolationDomainName, - body, options ); return poller.pollUntilDone(); } /** - * Clears IPv6 neighbor tables for this Isolation Domain. + * Commits the configuration of the given resources. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param body Request payload. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ - async beginClearNeighborTable( + async beginCommitConfiguration( resourceGroupName: string, l3IsolationDomainName: string, - body: EnableDisableOnResources, - options?: L3IsolationDomainsClearNeighborTableOptionalParams + options?: L3IsolationDomainsCommitConfigurationOptionalParams ): Promise< SimplePollerLike< - OperationState, - L3IsolationDomainsClearNeighborTableResponse + OperationState, + L3IsolationDomainsCommitConfigurationResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -858,12 +750,12 @@ export class L3IsolationDomainsImpl implements L3IsolationDomains { const lro = createLroSpec({ sendOperationFn, - args: { resourceGroupName, l3IsolationDomainName, body, options }, - spec: clearNeighborTableOperationSpec + args: { resourceGroupName, l3IsolationDomainName, options }, + spec: commitConfigurationOperationSpec }); const poller = await createHttpPoller< - L3IsolationDomainsClearNeighborTableResponse, - OperationState + L3IsolationDomainsCommitConfigurationResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -874,22 +766,19 @@ export class L3IsolationDomainsImpl implements L3IsolationDomains { } /** - * Clears IPv6 neighbor tables for this Isolation Domain. + * Commits the configuration of the given resources. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param body Request payload. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ - async beginClearNeighborTableAndWait( + async beginCommitConfigurationAndWait( resourceGroupName: string, l3IsolationDomainName: string, - body: EnableDisableOnResources, - options?: L3IsolationDomainsClearNeighborTableOptionalParams - ): Promise { - const poller = await this.beginClearNeighborTable( + options?: L3IsolationDomainsCommitConfigurationOptionalParams + ): Promise { + const poller = await this.beginCommitConfiguration( resourceGroupName, l3IsolationDomainName, - body, options ); return poller.pollUntilDone(); @@ -951,7 +840,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body12, + requestBody: Parameters.body15, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1006,7 +895,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body13, + requestBody: Parameters.body16, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1085,22 +974,22 @@ const updateAdministrativeStateOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.L3IsolationDomainsUpdateAdministrativeStateHeaders + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate }, 201: { - headersMapper: Mappers.L3IsolationDomainsUpdateAdministrativeStateHeaders + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate }, 202: { - headersMapper: Mappers.L3IsolationDomainsUpdateAdministrativeStateHeaders + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate }, 204: { - headersMapper: Mappers.L3IsolationDomainsUpdateAdministrativeStateHeaders + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body10, + requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1112,32 +1001,27 @@ const updateAdministrativeStateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const updateOptionBAdministrativeStateOperationSpec: coreClient.OperationSpec = { +const validateConfigurationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/updateOptionBAdministrativeState", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/validateConfiguration", httpMethod: "POST", responses: { 200: { - headersMapper: - Mappers.L3IsolationDomainsUpdateOptionBAdministrativeStateHeaders + bodyMapper: Mappers.ValidateConfigurationResponse }, 201: { - headersMapper: - Mappers.L3IsolationDomainsUpdateOptionBAdministrativeStateHeaders + bodyMapper: Mappers.ValidateConfigurationResponse }, 202: { - headersMapper: - Mappers.L3IsolationDomainsUpdateOptionBAdministrativeStateHeaders + bodyMapper: Mappers.ValidateConfigurationResponse }, 204: { - headersMapper: - Mappers.L3IsolationDomainsUpdateOptionBAdministrativeStateHeaders + bodyMapper: Mappers.ValidateConfigurationResponse }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body10, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1145,65 +1029,30 @@ const updateOptionBAdministrativeStateOperationSpec: coreClient.OperationSpec = Parameters.resourceGroupName, Parameters.l3IsolationDomainName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", - serializer -}; -const clearArpTableOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/clearArpTable", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.L3IsolationDomainsClearArpTableHeaders - }, - 201: { - headersMapper: Mappers.L3IsolationDomainsClearArpTableHeaders - }, - 202: { - headersMapper: Mappers.L3IsolationDomainsClearArpTableHeaders - }, - 204: { - headersMapper: Mappers.L3IsolationDomainsClearArpTableHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body11, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.l3IsolationDomainName - ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; -const clearNeighborTableOperationSpec: coreClient.OperationSpec = { +const commitConfigurationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/clearNeighborTable", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/commitConfiguration", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.L3IsolationDomainsClearNeighborTableHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 201: { - headersMapper: Mappers.L3IsolationDomainsClearNeighborTableHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 202: { - headersMapper: Mappers.L3IsolationDomainsClearNeighborTableHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 204: { - headersMapper: Mappers.L3IsolationDomainsClearNeighborTableHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body11, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1211,8 +1060,7 @@ const clearNeighborTableOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.l3IsolationDomainName ], - headerParameters: [Parameters.contentType, Parameters.accept], - mediaType: "json", + headerParameters: [Parameters.accept], serializer }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/neighborGroups.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/neighborGroups.ts new file mode 100644 index 000000000000..ceab888ab104 --- /dev/null +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/neighborGroups.ts @@ -0,0 +1,720 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { NeighborGroups } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureNetworkFabricManagementServiceAPI } from "../azureNetworkFabricManagementServiceAPI"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + NeighborGroup, + NeighborGroupsListByResourceGroupNextOptionalParams, + NeighborGroupsListByResourceGroupOptionalParams, + NeighborGroupsListByResourceGroupResponse, + NeighborGroupsListBySubscriptionNextOptionalParams, + NeighborGroupsListBySubscriptionOptionalParams, + NeighborGroupsListBySubscriptionResponse, + NeighborGroupsCreateOptionalParams, + NeighborGroupsCreateResponse, + NeighborGroupsGetOptionalParams, + NeighborGroupsGetResponse, + NeighborGroupPatch, + NeighborGroupsUpdateOptionalParams, + NeighborGroupsUpdateResponse, + NeighborGroupsDeleteOptionalParams, + NeighborGroupsListByResourceGroupNextResponse, + NeighborGroupsListBySubscriptionNextResponse +} from "../models"; + +/// +/** Class containing NeighborGroups operations. */ +export class NeighborGroupsImpl implements NeighborGroups { + private readonly client: AzureNetworkFabricManagementServiceAPI; + + /** + * Initialize a new instance of the class NeighborGroups class. + * @param client Reference to the service client + */ + constructor(client: AzureNetworkFabricManagementServiceAPI) { + this.client = client; + } + + /** + * Displays NeighborGroups list by resource group GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listByResourceGroup( + resourceGroupName: string, + options?: NeighborGroupsListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); + } + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: NeighborGroupsListByResourceGroupOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: NeighborGroupsListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: NeighborGroupsListByResourceGroupOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * Displays NeighborGroups list by subscription GET method. + * @param options The options parameters. + */ + public listBySubscription( + options?: NeighborGroupsListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: NeighborGroupsListBySubscriptionOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: NeighborGroupsListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySubscriptionPagingAll( + options?: NeighborGroupsListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * Implements the Neighbor Group PUT method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param neighborGroupName Name of the Neighbor Group. + * @param body Request payload. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + neighborGroupName: string, + body: NeighborGroup, + options?: NeighborGroupsCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NeighborGroupsCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, neighborGroupName, body, options }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + NeighborGroupsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Implements the Neighbor Group PUT method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param neighborGroupName Name of the Neighbor Group. + * @param body Request payload. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + neighborGroupName: string, + body: NeighborGroup, + options?: NeighborGroupsCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + neighborGroupName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Gets the Neighbor Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param neighborGroupName Name of the Neighbor Group. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + neighborGroupName: string, + options?: NeighborGroupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, neighborGroupName, options }, + getOperationSpec + ); + } + + /** + * Updates the Neighbor Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param neighborGroupName Name of the Neighbor Group. + * @param body Neighbor Group properties to update. Only annotations are supported. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + neighborGroupName: string, + body: NeighborGroupPatch, + options?: NeighborGroupsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NeighborGroupsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, neighborGroupName, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + NeighborGroupsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Updates the Neighbor Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param neighborGroupName Name of the Neighbor Group. + * @param body Neighbor Group properties to update. Only annotations are supported. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + neighborGroupName: string, + body: NeighborGroupPatch, + options?: NeighborGroupsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + neighborGroupName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Implements Neighbor Group DELETE method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param neighborGroupName Name of the Neighbor Group. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + neighborGroupName: string, + options?: NeighborGroupsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, neighborGroupName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Implements Neighbor Group DELETE method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param neighborGroupName Name of the Neighbor Group. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + neighborGroupName: string, + options?: NeighborGroupsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + neighborGroupName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Displays NeighborGroups list by resource group GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: NeighborGroupsListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + + /** + * Displays NeighborGroups list by subscription GET method. + * @param options The options parameters. + */ + private _listBySubscription( + options?: NeighborGroupsListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: NeighborGroupsListByResourceGroupNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: NeighborGroupsListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/neighborGroups/{neighborGroupName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NeighborGroup + }, + 201: { + bodyMapper: Mappers.NeighborGroup + }, + 202: { + bodyMapper: Mappers.NeighborGroup + }, + 204: { + bodyMapper: Mappers.NeighborGroup + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body21, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.neighborGroupName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/neighborGroups/{neighborGroupName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NeighborGroup + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.neighborGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/neighborGroups/{neighborGroupName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.NeighborGroup + }, + 201: { + bodyMapper: Mappers.NeighborGroup + }, + 202: { + bodyMapper: Mappers.NeighborGroup + }, + 204: { + bodyMapper: Mappers.NeighborGroup + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body22, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.neighborGroupName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/neighborGroups/{neighborGroupName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.neighborGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/neighborGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NeighborGroupsListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/neighborGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NeighborGroupsListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NeighborGroupsListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NeighborGroupsListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkDeviceSkus.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkDeviceSkus.ts index ff1d69d67e19..f006ffcea2b3 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkDeviceSkus.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkDeviceSkus.ts @@ -91,8 +91,8 @@ export class NetworkDeviceSkusImpl implements NetworkDeviceSkus { } /** - * Get Network Device SKU details. - * @param networkDeviceSkuName Name of the Network Device Sku + * Get a Network Device SKU details. + * @param networkDeviceSkuName Name of the Network Device SKU. * @param options The options parameters. */ get( diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkDevices.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkDevices.ts index 684aadbf1158..21aac8c1c8f6 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkDevices.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkDevices.ts @@ -35,24 +35,17 @@ import { NetworkDevicesUpdateOptionalParams, NetworkDevicesUpdateResponse, NetworkDevicesDeleteOptionalParams, + RebootProperties, NetworkDevicesRebootOptionalParams, NetworkDevicesRebootResponse, - NetworkDevicesRestoreConfigOptionalParams, - NetworkDevicesRestoreConfigResponse, - UpdateVersionProperties, - NetworkDevicesUpdateVersionOptionalParams, - NetworkDevicesUpdateVersionResponse, - NetworkDevicesGenerateSupportPackageOptionalParams, - NetworkDevicesGenerateSupportPackageResponse, - UpdatePowerCycleProperties, - NetworkDevicesUpdatePowerCycleOptionalParams, - NetworkDevicesUpdatePowerCycleResponse, - NetworkDevicesGetStatusOptionalParams, - NetworkDevicesGetStatusResponse, - NetworkDevicesGetStaticInterfaceMapsOptionalParams, - NetworkDevicesGetStaticInterfaceMapsResponse, - NetworkDevicesGetDynamicInterfaceMapsOptionalParams, - NetworkDevicesGetDynamicInterfaceMapsResponse, + NetworkDevicesRefreshConfigurationOptionalParams, + NetworkDevicesRefreshConfigurationResponse, + UpdateDeviceAdministrativeState, + NetworkDevicesUpdateAdministrativeStateOptionalParams, + NetworkDevicesUpdateAdministrativeStateResponse, + UpdateVersion, + NetworkDevicesUpgradeOptionalParams, + NetworkDevicesUpgradeResponse, NetworkDevicesListByResourceGroupNextResponse, NetworkDevicesListBySubscriptionNextResponse } from "../models"; @@ -196,7 +189,7 @@ export class NetworkDevicesImpl implements NetworkDevices { /** * Create a Network Device resource * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the Network Device + * @param networkDeviceName Name of the Network Device. * @param body Request payload. * @param options The options parameters. */ @@ -270,7 +263,7 @@ export class NetworkDevicesImpl implements NetworkDevices { /** * Create a Network Device resource * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the Network Device + * @param networkDeviceName Name of the Network Device. * @param body Request payload. * @param options The options parameters. */ @@ -290,9 +283,9 @@ export class NetworkDevicesImpl implements NetworkDevices { } /** - * Get the Network Device resource details. + * Gets the Network Device resource details. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the Network Device + * @param networkDeviceName Name of the Network Device. * @param options The options parameters. */ get( @@ -309,7 +302,7 @@ export class NetworkDevicesImpl implements NetworkDevices { /** * Update certain properties of the Network Device resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the Network Device + * @param networkDeviceName Name of the Network Device. * @param body Network Device properties to update. * @param options The options parameters. */ @@ -383,7 +376,7 @@ export class NetworkDevicesImpl implements NetworkDevices { /** * Update certain properties of the Network Device resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the Network Device + * @param networkDeviceName Name of the Network Device. * @param body Network Device properties to update. * @param options The options parameters. */ @@ -405,7 +398,7 @@ export class NetworkDevicesImpl implements NetworkDevices { /** * Delete the Network Device resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the Network Device + * @param networkDeviceName Name of the Network Device. * @param options The options parameters. */ async beginDelete( @@ -469,7 +462,7 @@ export class NetworkDevicesImpl implements NetworkDevices { /** * Delete the Network Device resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the Network Device + * @param networkDeviceName Name of the Network Device. * @param options The options parameters. */ async beginDeleteAndWait( @@ -516,12 +509,14 @@ export class NetworkDevicesImpl implements NetworkDevices { /** * Reboot the Network Device. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. + * @param body Request payload. * @param options The options parameters. */ async beginReboot( resourceGroupName: string, networkDeviceName: string, + body: RebootProperties, options?: NetworkDevicesRebootOptionalParams ): Promise< SimplePollerLike< @@ -570,7 +565,7 @@ export class NetworkDevicesImpl implements NetworkDevices { const lro = createLroSpec({ sendOperationFn, - args: { resourceGroupName, networkDeviceName, options }, + args: { resourceGroupName, networkDeviceName, body, options }, spec: rebootOperationSpec }); const poller = await createHttpPoller< @@ -588,42 +583,45 @@ export class NetworkDevicesImpl implements NetworkDevices { /** * Reboot the Network Device. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. + * @param body Request payload. * @param options The options parameters. */ async beginRebootAndWait( resourceGroupName: string, networkDeviceName: string, + body: RebootProperties, options?: NetworkDevicesRebootOptionalParams ): Promise { const poller = await this.beginReboot( resourceGroupName, networkDeviceName, + body, options ); return poller.pollUntilDone(); } /** - * Restore the configuration of the Network Device resource to last known good configuration. + * Refreshes the configuration the Network Device. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. * @param options The options parameters. */ - async beginRestoreConfig( + async beginRefreshConfiguration( resourceGroupName: string, networkDeviceName: string, - options?: NetworkDevicesRestoreConfigOptionalParams + options?: NetworkDevicesRefreshConfigurationOptionalParams ): Promise< SimplePollerLike< - OperationState, - NetworkDevicesRestoreConfigResponse + OperationState, + NetworkDevicesRefreshConfigurationResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -662,11 +660,11 @@ export class NetworkDevicesImpl implements NetworkDevices { const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, networkDeviceName, options }, - spec: restoreConfigOperationSpec + spec: refreshConfigurationOperationSpec }); const poller = await createHttpPoller< - NetworkDevicesRestoreConfigResponse, - OperationState + NetworkDevicesRefreshConfigurationResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -677,17 +675,17 @@ export class NetworkDevicesImpl implements NetworkDevices { } /** - * Restore the configuration of the Network Device resource to last known good configuration. + * Refreshes the configuration the Network Device. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. * @param options The options parameters. */ - async beginRestoreConfigAndWait( + async beginRefreshConfigurationAndWait( resourceGroupName: string, networkDeviceName: string, - options?: NetworkDevicesRestoreConfigOptionalParams - ): Promise { - const poller = await this.beginRestoreConfig( + options?: NetworkDevicesRefreshConfigurationOptionalParams + ): Promise { + const poller = await this.beginRefreshConfiguration( resourceGroupName, networkDeviceName, options @@ -696,27 +694,27 @@ export class NetworkDevicesImpl implements NetworkDevices { } /** - * Update the SKU version of the Network Device resource. + * Updates the Administrative state of the Network Device. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. * @param body Request payload. * @param options The options parameters. */ - async beginUpdateVersion( + async beginUpdateAdministrativeState( resourceGroupName: string, networkDeviceName: string, - body: UpdateVersionProperties, - options?: NetworkDevicesUpdateVersionOptionalParams + body: UpdateDeviceAdministrativeState, + options?: NetworkDevicesUpdateAdministrativeStateOptionalParams ): Promise< SimplePollerLike< - OperationState, - NetworkDevicesUpdateVersionResponse + OperationState, + NetworkDevicesUpdateAdministrativeStateResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -755,11 +753,11 @@ export class NetworkDevicesImpl implements NetworkDevices { const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, networkDeviceName, body, options }, - spec: updateVersionOperationSpec + spec: updateAdministrativeStateOperationSpec }); const poller = await createHttpPoller< - NetworkDevicesUpdateVersionResponse, - OperationState + NetworkDevicesUpdateAdministrativeStateResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -770,19 +768,19 @@ export class NetworkDevicesImpl implements NetworkDevices { } /** - * Update the SKU version of the Network Device resource. + * Updates the Administrative state of the Network Device. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. * @param body Request payload. * @param options The options parameters. */ - async beginUpdateVersionAndWait( + async beginUpdateAdministrativeStateAndWait( resourceGroupName: string, networkDeviceName: string, - body: UpdateVersionProperties, - options?: NetworkDevicesUpdateVersionOptionalParams - ): Promise { - const poller = await this.beginUpdateVersion( + body: UpdateDeviceAdministrativeState, + options?: NetworkDevicesUpdateAdministrativeStateOptionalParams + ): Promise { + const poller = await this.beginUpdateAdministrativeState( resourceGroupName, networkDeviceName, body, @@ -792,118 +790,27 @@ export class NetworkDevicesImpl implements NetworkDevices { } /** - * Generate Support Package for the given Network Device. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param options The options parameters. - */ - async beginGenerateSupportPackage( - resourceGroupName: string, - networkDeviceName: string, - options?: NetworkDevicesGenerateSupportPackageOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - NetworkDevicesGenerateSupportPackageResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, networkDeviceName, options }, - spec: generateSupportPackageOperationSpec - }); - const poller = await createHttpPoller< - NetworkDevicesGenerateSupportPackageResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Generate Support Package for the given Network Device. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param options The options parameters. - */ - async beginGenerateSupportPackageAndWait( - resourceGroupName: string, - networkDeviceName: string, - options?: NetworkDevicesGenerateSupportPackageOptionalParams - ): Promise { - const poller = await this.beginGenerateSupportPackage( - resourceGroupName, - networkDeviceName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Update PDU power cycle of the Network Device. + * Upgrades the version of the Network Device. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. * @param body Request payload. * @param options The options parameters. */ - async beginUpdatePowerCycle( + async beginUpgrade( resourceGroupName: string, networkDeviceName: string, - body: UpdatePowerCycleProperties, - options?: NetworkDevicesUpdatePowerCycleOptionalParams + body: UpdateVersion, + options?: NetworkDevicesUpgradeOptionalParams ): Promise< SimplePollerLike< - OperationState, - NetworkDevicesUpdatePowerCycleResponse + OperationState, + NetworkDevicesUpgradeResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -942,11 +849,11 @@ export class NetworkDevicesImpl implements NetworkDevices { const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, networkDeviceName, body, options }, - spec: updatePowerCycleOperationSpec + spec: upgradeOperationSpec }); const poller = await createHttpPoller< - NetworkDevicesUpdatePowerCycleResponse, - OperationState + NetworkDevicesUpgradeResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -957,19 +864,19 @@ export class NetworkDevicesImpl implements NetworkDevices { } /** - * Update PDU power cycle of the Network Device. + * Upgrades the version of the Network Device. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. * @param body Request payload. * @param options The options parameters. */ - async beginUpdatePowerCycleAndWait( + async beginUpgradeAndWait( resourceGroupName: string, networkDeviceName: string, - body: UpdatePowerCycleProperties, - options?: NetworkDevicesUpdatePowerCycleOptionalParams - ): Promise { - const poller = await this.beginUpdatePowerCycle( + body: UpdateVersion, + options?: NetworkDevicesUpgradeOptionalParams + ): Promise { + const poller = await this.beginUpgrade( resourceGroupName, networkDeviceName, body, @@ -978,279 +885,6 @@ export class NetworkDevicesImpl implements NetworkDevices { return poller.pollUntilDone(); } - /** - * Get the running status of the Network Device. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param options The options parameters. - */ - async beginGetStatus( - resourceGroupName: string, - networkDeviceName: string, - options?: NetworkDevicesGetStatusOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - NetworkDevicesGetStatusResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, networkDeviceName, options }, - spec: getStatusOperationSpec - }); - const poller = await createHttpPoller< - NetworkDevicesGetStatusResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Get the running status of the Network Device. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param options The options parameters. - */ - async beginGetStatusAndWait( - resourceGroupName: string, - networkDeviceName: string, - options?: NetworkDevicesGetStatusOptionalParams - ): Promise { - const poller = await this.beginGetStatus( - resourceGroupName, - networkDeviceName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Get the static interface maps for the given Network Device. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param options The options parameters. - */ - async beginGetStaticInterfaceMaps( - resourceGroupName: string, - networkDeviceName: string, - options?: NetworkDevicesGetStaticInterfaceMapsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - NetworkDevicesGetStaticInterfaceMapsResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, networkDeviceName, options }, - spec: getStaticInterfaceMapsOperationSpec - }); - const poller = await createHttpPoller< - NetworkDevicesGetStaticInterfaceMapsResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Get the static interface maps for the given Network Device. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param options The options parameters. - */ - async beginGetStaticInterfaceMapsAndWait( - resourceGroupName: string, - networkDeviceName: string, - options?: NetworkDevicesGetStaticInterfaceMapsOptionalParams - ): Promise { - const poller = await this.beginGetStaticInterfaceMaps( - resourceGroupName, - networkDeviceName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Get the dynamic interface maps for the given Network Device. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param options The options parameters. - */ - async beginGetDynamicInterfaceMaps( - resourceGroupName: string, - networkDeviceName: string, - options?: NetworkDevicesGetDynamicInterfaceMapsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - NetworkDevicesGetDynamicInterfaceMapsResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, networkDeviceName, options }, - spec: getDynamicInterfaceMapsOperationSpec - }); - const poller = await createHttpPoller< - NetworkDevicesGetDynamicInterfaceMapsResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Get the dynamic interface maps for the given Network Device. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param options The options parameters. - */ - async beginGetDynamicInterfaceMapsAndWait( - resourceGroupName: string, - networkDeviceName: string, - options?: NetworkDevicesGetDynamicInterfaceMapsOptionalParams - ): Promise { - const poller = await this.beginGetDynamicInterfaceMaps( - resourceGroupName, - networkDeviceName, - options - ); - return poller.pollUntilDone(); - } - /** * ListByResourceGroupNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1307,7 +941,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body18, + requestBody: Parameters.body23, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1362,7 +996,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body19, + requestBody: Parameters.body24, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1441,84 +1075,22 @@ const rebootOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.NetworkDevicesRebootHeaders - }, - 201: { - headersMapper: Mappers.NetworkDevicesRebootHeaders - }, - 202: { - headersMapper: Mappers.NetworkDevicesRebootHeaders - }, - 204: { - headersMapper: Mappers.NetworkDevicesRebootHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.networkDeviceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const restoreConfigOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/restoreConfig", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.NetworkDevicesRestoreConfigHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 201: { - headersMapper: Mappers.NetworkDevicesRestoreConfigHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 202: { - headersMapper: Mappers.NetworkDevicesRestoreConfigHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 204: { - headersMapper: Mappers.NetworkDevicesRestoreConfigHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, default: { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.networkDeviceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const updateVersionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/updateVersion", - httpMethod: "POST", - responses: { - 200: { - headersMapper: Mappers.NetworkDevicesUpdateVersionHeaders - }, - 201: { - headersMapper: Mappers.NetworkDevicesUpdateVersionHeaders - }, - 202: { - headersMapper: Mappers.NetworkDevicesUpdateVersionHeaders - }, - 204: { - headersMapper: Mappers.NetworkDevicesUpdateVersionHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - requestBody: Parameters.body20, + requestBody: Parameters.body25, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1530,26 +1102,22 @@ const updateVersionOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const generateSupportPackageOperationSpec: coreClient.OperationSpec = { +const refreshConfigurationOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/generateSupportPackage", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/refreshConfiguration", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SupportPackageProperties, - headersMapper: Mappers.NetworkDevicesGenerateSupportPackageHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 201: { - bodyMapper: Mappers.SupportPackageProperties, - headersMapper: Mappers.NetworkDevicesGenerateSupportPackageHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 202: { - bodyMapper: Mappers.SupportPackageProperties, - headersMapper: Mappers.NetworkDevicesGenerateSupportPackageHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 204: { - bodyMapper: Mappers.SupportPackageProperties, - headersMapper: Mappers.NetworkDevicesGenerateSupportPackageHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, default: { bodyMapper: Mappers.ErrorResponse @@ -1565,28 +1133,28 @@ const generateSupportPackageOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const updatePowerCycleOperationSpec: coreClient.OperationSpec = { +const updateAdministrativeStateOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/updatePowerCycle", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/updateAdministrativeState", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.NetworkDevicesUpdatePowerCycleHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 201: { - headersMapper: Mappers.NetworkDevicesUpdatePowerCycleHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 202: { - headersMapper: Mappers.NetworkDevicesUpdatePowerCycleHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 204: { - headersMapper: Mappers.NetworkDevicesUpdatePowerCycleHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body21, + requestBody: Parameters.body26, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1598,106 +1166,28 @@ const updatePowerCycleOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const getStatusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/getStatus", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.GetDeviceStatusProperties, - headersMapper: Mappers.NetworkDevicesGetStatusHeaders - }, - 201: { - bodyMapper: Mappers.GetDeviceStatusProperties, - headersMapper: Mappers.NetworkDevicesGetStatusHeaders - }, - 202: { - bodyMapper: Mappers.GetDeviceStatusProperties, - headersMapper: Mappers.NetworkDevicesGetStatusHeaders - }, - 204: { - bodyMapper: Mappers.GetDeviceStatusProperties, - headersMapper: Mappers.NetworkDevicesGetStatusHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.networkDeviceName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getStaticInterfaceMapsOperationSpec: coreClient.OperationSpec = { +const upgradeOperationSpec: coreClient.OperationSpec = { path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/getStaticInterfaceMaps", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/upgrade", httpMethod: "POST", responses: { 200: { - bodyMapper: { - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GetStaticInterfaceMapsPropertiesItem" - } - } - } - }, - headersMapper: Mappers.NetworkDevicesGetStaticInterfaceMapsHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 201: { - bodyMapper: { - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GetStaticInterfaceMapsPropertiesItem" - } - } - } - }, - headersMapper: Mappers.NetworkDevicesGetStaticInterfaceMapsHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 202: { - bodyMapper: { - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GetStaticInterfaceMapsPropertiesItem" - } - } - } - }, - headersMapper: Mappers.NetworkDevicesGetStaticInterfaceMapsHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 204: { - bodyMapper: { - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GetStaticInterfaceMapsPropertiesItem" - } - } - } - }, - headersMapper: Mappers.NetworkDevicesGetStaticInterfaceMapsHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, default: { bodyMapper: Mappers.ErrorResponse } }, + requestBody: Parameters.body27, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1705,82 +1195,8 @@ const getStaticInterfaceMapsOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.networkDeviceName ], - headerParameters: [Parameters.accept], - serializer -}; -const getDynamicInterfaceMapsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/getDynamicInterfaceMaps", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: { - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GetDynamicInterfaceMapsPropertiesItem" - } - } - } - }, - headersMapper: Mappers.NetworkDevicesGetDynamicInterfaceMapsHeaders - }, - 201: { - bodyMapper: { - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GetDynamicInterfaceMapsPropertiesItem" - } - } - } - }, - headersMapper: Mappers.NetworkDevicesGetDynamicInterfaceMapsHeaders - }, - 202: { - bodyMapper: { - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GetDynamicInterfaceMapsPropertiesItem" - } - } - } - }, - headersMapper: Mappers.NetworkDevicesGetDynamicInterfaceMapsHeaders - }, - 204: { - bodyMapper: { - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GetDynamicInterfaceMapsPropertiesItem" - } - } - } - }, - headersMapper: Mappers.NetworkDevicesGetDynamicInterfaceMapsHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.networkDeviceName - ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", serializer }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkFabricControllers.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkFabricControllers.ts index 0c3a735f4129..db896968adc7 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkFabricControllers.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkFabricControllers.ts @@ -35,10 +35,7 @@ import { NetworkFabricControllersUpdateOptionalParams, NetworkFabricControllersUpdateResponse, NetworkFabricControllersDeleteOptionalParams, - NetworkFabricControllersEnableWorkloadManagementNetworkOptionalParams, - NetworkFabricControllersEnableWorkloadManagementNetworkResponse, - NetworkFabricControllersDisableWorkloadManagementNetworkOptionalParams, - NetworkFabricControllersDisableWorkloadManagementNetworkResponse, + NetworkFabricControllersDeleteResponse, NetworkFabricControllersListByResourceGroupNextResponse, NetworkFabricControllersListBySubscriptionNextResponse } from "../models"; @@ -182,7 +179,7 @@ export class NetworkFabricControllersImpl implements NetworkFabricControllers { /** * Creates a Network Fabric Controller. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the Network Fabric Controller + * @param networkFabricControllerName Name of the Network Fabric Controller. * @param body Request payload. * @param options The options parameters. */ @@ -256,7 +253,7 @@ export class NetworkFabricControllersImpl implements NetworkFabricControllers { /** * Creates a Network Fabric Controller. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the Network Fabric Controller + * @param networkFabricControllerName Name of the Network Fabric Controller. * @param body Request payload. * @param options The options parameters. */ @@ -278,7 +275,7 @@ export class NetworkFabricControllersImpl implements NetworkFabricControllers { /** * Shows the provisioning status of Network Fabric Controller. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the Network Fabric Controller + * @param networkFabricControllerName Name of the Network Fabric Controller. * @param options The options parameters. */ get( @@ -295,7 +292,7 @@ export class NetworkFabricControllersImpl implements NetworkFabricControllers { /** * Updates are currently not supported for the Network Fabric Controller resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the Network Fabric Controller + * @param networkFabricControllerName Name of the Network Fabric Controller. * @param body Network Fabric Controller properties to update. * @param options The options parameters. */ @@ -369,7 +366,7 @@ export class NetworkFabricControllersImpl implements NetworkFabricControllers { /** * Updates are currently not supported for the Network Fabric Controller resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the Network Fabric Controller + * @param networkFabricControllerName Name of the Network Fabric Controller. * @param body Network Fabric Controller properties to update. * @param options The options parameters. */ @@ -391,18 +388,23 @@ export class NetworkFabricControllersImpl implements NetworkFabricControllers { /** * Deletes the Network Fabric Controller resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the Network Fabric Controller + * @param networkFabricControllerName Name of the Network Fabric Controller. * @param options The options parameters. */ async beginDelete( resourceGroupName: string, networkFabricControllerName: string, options?: NetworkFabricControllersDeleteOptionalParams - ): Promise, void>> { + ): Promise< + SimplePollerLike< + OperationState, + NetworkFabricControllersDeleteResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -443,7 +445,10 @@ export class NetworkFabricControllersImpl implements NetworkFabricControllers { args: { resourceGroupName, networkFabricControllerName, options }, spec: deleteOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + NetworkFabricControllersDeleteResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location" @@ -455,14 +460,14 @@ export class NetworkFabricControllersImpl implements NetworkFabricControllers { /** * Deletes the Network Fabric Controller resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the Network Fabric Controller + * @param networkFabricControllerName Name of the Network Fabric Controller. * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, networkFabricControllerName: string, options?: NetworkFabricControllersDeleteOptionalParams - ): Promise { + ): Promise { const poller = await this.beginDelete( resourceGroupName, networkFabricControllerName, @@ -499,196 +504,6 @@ export class NetworkFabricControllersImpl implements NetworkFabricControllers { ); } - /** - * Enables the workloadManagementNetwork (Tenant Network). - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the networkFabricController. - * @param options The options parameters. - */ - async beginEnableWorkloadManagementNetwork( - resourceGroupName: string, - networkFabricControllerName: string, - options?: NetworkFabricControllersEnableWorkloadManagementNetworkOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - NetworkFabricControllersEnableWorkloadManagementNetworkResponse - >, - NetworkFabricControllersEnableWorkloadManagementNetworkResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, networkFabricControllerName, options }, - spec: enableWorkloadManagementNetworkOperationSpec - }); - const poller = await createHttpPoller< - NetworkFabricControllersEnableWorkloadManagementNetworkResponse, - OperationState< - NetworkFabricControllersEnableWorkloadManagementNetworkResponse - > - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Enables the workloadManagementNetwork (Tenant Network). - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the networkFabricController. - * @param options The options parameters. - */ - async beginEnableWorkloadManagementNetworkAndWait( - resourceGroupName: string, - networkFabricControllerName: string, - options?: NetworkFabricControllersEnableWorkloadManagementNetworkOptionalParams - ): Promise { - const poller = await this.beginEnableWorkloadManagementNetwork( - resourceGroupName, - networkFabricControllerName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Disables the workloadManagementNetwork (Tenant Network). - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the networkFabricController. - * @param options The options parameters. - */ - async beginDisableWorkloadManagementNetwork( - resourceGroupName: string, - networkFabricControllerName: string, - options?: NetworkFabricControllersDisableWorkloadManagementNetworkOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - NetworkFabricControllersDisableWorkloadManagementNetworkResponse - >, - NetworkFabricControllersDisableWorkloadManagementNetworkResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, networkFabricControllerName, options }, - spec: disableWorkloadManagementNetworkOperationSpec - }); - const poller = await createHttpPoller< - NetworkFabricControllersDisableWorkloadManagementNetworkResponse, - OperationState< - NetworkFabricControllersDisableWorkloadManagementNetworkResponse - > - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Disables the workloadManagementNetwork (Tenant Network). - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the networkFabricController. - * @param options The options parameters. - */ - async beginDisableWorkloadManagementNetworkAndWait( - resourceGroupName: string, - networkFabricControllerName: string, - options?: NetworkFabricControllersDisableWorkloadManagementNetworkOptionalParams - ): Promise { - const poller = await this.beginDisableWorkloadManagementNetwork( - resourceGroupName, - networkFabricControllerName, - options - ); - return poller.pollUntilDone(); - } - /** * ListByResourceGroupNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -745,7 +560,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body24, + requestBody: Parameters.body30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -800,7 +615,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body25, + requestBody: Parameters.body31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -817,10 +632,18 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/{networkFabricControllerName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + headersMapper: Mappers.NetworkFabricControllersDeleteHeaders + }, + 201: { + headersMapper: Mappers.NetworkFabricControllersDeleteHeaders + }, + 202: { + headersMapper: Mappers.NetworkFabricControllersDeleteHeaders + }, + 204: { + headersMapper: Mappers.NetworkFabricControllersDeleteHeaders + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -873,76 +696,6 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const enableWorkloadManagementNetworkOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/{networkFabricControllerName}/enableWorkloadManagementNetwork", - httpMethod: "POST", - responses: { - 200: { - headersMapper: - Mappers.NetworkFabricControllersEnableWorkloadManagementNetworkHeaders - }, - 201: { - headersMapper: - Mappers.NetworkFabricControllersEnableWorkloadManagementNetworkHeaders - }, - 202: { - headersMapper: - Mappers.NetworkFabricControllersEnableWorkloadManagementNetworkHeaders - }, - 204: { - headersMapper: - Mappers.NetworkFabricControllersEnableWorkloadManagementNetworkHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.networkFabricControllerName - ], - headerParameters: [Parameters.accept], - serializer -}; -const disableWorkloadManagementNetworkOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/{networkFabricControllerName}/disableWorkloadManagementNetwork", - httpMethod: "POST", - responses: { - 200: { - headersMapper: - Mappers.NetworkFabricControllersDisableWorkloadManagementNetworkHeaders - }, - 201: { - headersMapper: - Mappers.NetworkFabricControllersDisableWorkloadManagementNetworkHeaders - }, - 202: { - headersMapper: - Mappers.NetworkFabricControllersDisableWorkloadManagementNetworkHeaders - }, - 204: { - headersMapper: - Mappers.NetworkFabricControllersDisableWorkloadManagementNetworkHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.networkFabricControllerName - ], - headerParameters: [Parameters.accept], - serializer -}; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkFabricSkus.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkFabricSkus.ts index 0eefde1e002d..62ff4d8516f6 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkFabricSkus.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkFabricSkus.ts @@ -37,7 +37,7 @@ export class NetworkFabricSkusImpl implements NetworkFabricSkus { } /** - * Implements NetworkFabricSkus list by subscription GET method. + * Implements Network Fabric SKUs list by subscription GET method. * @param options The options parameters. */ public listBySubscription( @@ -91,8 +91,8 @@ export class NetworkFabricSkusImpl implements NetworkFabricSkus { } /** - * Implements Network Fabric Sku GET method. - * @param networkFabricSkuName Name of the Network Fabric Sku + * Implements Network Fabric SKU GET method. + * @param networkFabricSkuName Name of the Network Fabric SKU. * @param options The options parameters. */ get( @@ -106,7 +106,7 @@ export class NetworkFabricSkusImpl implements NetworkFabricSkus { } /** - * Implements NetworkFabricSkus list by subscription GET method. + * Implements Network Fabric SKUs list by subscription GET method. * @param options The options parameters. */ private _listBySubscription( diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkFabrics.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkFabrics.ts index cbbdc78c3e7e..7b0f2ee433c4 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkFabrics.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkFabrics.ts @@ -31,14 +31,32 @@ import { NetworkFabricsCreateResponse, NetworkFabricsGetOptionalParams, NetworkFabricsGetResponse, - NetworkFabricPatchParameters, + NetworkFabricPatch, NetworkFabricsUpdateOptionalParams, NetworkFabricsUpdateResponse, NetworkFabricsDeleteOptionalParams, + NetworkFabricsDeleteResponse, NetworkFabricsProvisionOptionalParams, NetworkFabricsProvisionResponse, NetworkFabricsDeprovisionOptionalParams, NetworkFabricsDeprovisionResponse, + UpdateVersion, + NetworkFabricsUpgradeOptionalParams, + NetworkFabricsUpgradeResponse, + NetworkFabricsRefreshConfigurationOptionalParams, + NetworkFabricsRefreshConfigurationResponse, + UpdateAdministrativeState, + NetworkFabricsUpdateWorkloadManagementBfdConfigurationOptionalParams, + NetworkFabricsUpdateWorkloadManagementBfdConfigurationResponse, + NetworkFabricsUpdateInfraManagementBfdConfigurationOptionalParams, + NetworkFabricsUpdateInfraManagementBfdConfigurationResponse, + ValidateConfigurationProperties, + NetworkFabricsValidateConfigurationOptionalParams, + NetworkFabricsValidateConfigurationResponse, + NetworkFabricsGetTopologyOptionalParams, + NetworkFabricsGetTopologyResponse, + NetworkFabricsCommitConfigurationOptionalParams, + NetworkFabricsCommitConfigurationResponse, NetworkFabricsListByResourceGroupNextResponse, NetworkFabricsListBySubscriptionNextResponse } from "../models"; @@ -182,7 +200,7 @@ export class NetworkFabricsImpl implements NetworkFabrics { /** * Create Network Fabric resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the Network Fabric + * @param networkFabricName Name of the Network Fabric. * @param body Request payload. * @param options The options parameters. */ @@ -256,7 +274,7 @@ export class NetworkFabricsImpl implements NetworkFabrics { /** * Create Network Fabric resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the Network Fabric + * @param networkFabricName Name of the Network Fabric. * @param body Request payload. * @param options The options parameters. */ @@ -278,7 +296,7 @@ export class NetworkFabricsImpl implements NetworkFabrics { /** * Get Network Fabric resource details. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the Network Fabric + * @param networkFabricName Name of the Network Fabric. * @param options The options parameters. */ get( @@ -295,14 +313,14 @@ export class NetworkFabricsImpl implements NetworkFabrics { /** * Update certain properties of the Network Fabric resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the Network Fabric + * @param networkFabricName Name of the Network Fabric. * @param body Network Fabric properties to update. * @param options The options parameters. */ async beginUpdate( resourceGroupName: string, networkFabricName: string, - body: NetworkFabricPatchParameters, + body: NetworkFabricPatch, options?: NetworkFabricsUpdateOptionalParams ): Promise< SimplePollerLike< @@ -369,14 +387,14 @@ export class NetworkFabricsImpl implements NetworkFabrics { /** * Update certain properties of the Network Fabric resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the Network Fabric + * @param networkFabricName Name of the Network Fabric. * @param body Network Fabric properties to update. * @param options The options parameters. */ async beginUpdateAndWait( resourceGroupName: string, networkFabricName: string, - body: NetworkFabricPatchParameters, + body: NetworkFabricPatch, options?: NetworkFabricsUpdateOptionalParams ): Promise { const poller = await this.beginUpdate( @@ -391,18 +409,717 @@ export class NetworkFabricsImpl implements NetworkFabrics { /** * Delete Network Fabric resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the Network Fabric + * @param networkFabricName Name of the Network Fabric. * @param options The options parameters. */ async beginDelete( resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsDeleteOptionalParams - ): Promise, void>> { + ): Promise< + SimplePollerLike< + OperationState, + NetworkFabricsDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkFabricName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller< + NetworkFabricsDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete Network Fabric resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + networkFabricName: string, + options?: NetworkFabricsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + networkFabricName, + options + ); + return poller.pollUntilDone(); + } + + /** + * List all the Network Fabric resources in the given resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: NetworkFabricsListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + + /** + * List all the Network Fabric resources in the given subscription. + * @param options The options parameters. + */ + private _listBySubscription( + options?: NetworkFabricsListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * Provisions the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param options The options parameters. + */ + async beginProvision( + resourceGroupName: string, + networkFabricName: string, + options?: NetworkFabricsProvisionOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkFabricsProvisionResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkFabricName, options }, + spec: provisionOperationSpec + }); + const poller = await createHttpPoller< + NetworkFabricsProvisionResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Provisions the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param options The options parameters. + */ + async beginProvisionAndWait( + resourceGroupName: string, + networkFabricName: string, + options?: NetworkFabricsProvisionOptionalParams + ): Promise { + const poller = await this.beginProvision( + resourceGroupName, + networkFabricName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deprovisions the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param options The options parameters. + */ + async beginDeprovision( + resourceGroupName: string, + networkFabricName: string, + options?: NetworkFabricsDeprovisionOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkFabricsDeprovisionResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkFabricName, options }, + spec: deprovisionOperationSpec + }); + const poller = await createHttpPoller< + NetworkFabricsDeprovisionResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deprovisions the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param options The options parameters. + */ + async beginDeprovisionAndWait( + resourceGroupName: string, + networkFabricName: string, + options?: NetworkFabricsDeprovisionOptionalParams + ): Promise { + const poller = await this.beginDeprovision( + resourceGroupName, + networkFabricName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Upgrades the version of the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param body Network Fabric properties to update. + * @param options The options parameters. + */ + async beginUpgrade( + resourceGroupName: string, + networkFabricName: string, + body: UpdateVersion, + options?: NetworkFabricsUpgradeOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkFabricsUpgradeResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkFabricName, body, options }, + spec: upgradeOperationSpec + }); + const poller = await createHttpPoller< + NetworkFabricsUpgradeResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Upgrades the version of the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param body Network Fabric properties to update. + * @param options The options parameters. + */ + async beginUpgradeAndWait( + resourceGroupName: string, + networkFabricName: string, + body: UpdateVersion, + options?: NetworkFabricsUpgradeOptionalParams + ): Promise { + const poller = await this.beginUpgrade( + resourceGroupName, + networkFabricName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Refreshes the configuration of the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param options The options parameters. + */ + async beginRefreshConfiguration( + resourceGroupName: string, + networkFabricName: string, + options?: NetworkFabricsRefreshConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkFabricsRefreshConfigurationResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkFabricName, options }, + spec: refreshConfigurationOperationSpec + }); + const poller = await createHttpPoller< + NetworkFabricsRefreshConfigurationResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Refreshes the configuration of the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param options The options parameters. + */ + async beginRefreshConfigurationAndWait( + resourceGroupName: string, + networkFabricName: string, + options?: NetworkFabricsRefreshConfigurationOptionalParams + ): Promise { + const poller = await this.beginRefreshConfiguration( + resourceGroupName, + networkFabricName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates the Workload Management BFD Configuration of the underlying resources in the given Network + * Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param body Request payload. + * @param options The options parameters. + */ + async beginUpdateWorkloadManagementBfdConfiguration( + resourceGroupName: string, + networkFabricName: string, + body: UpdateAdministrativeState, + options?: NetworkFabricsUpdateWorkloadManagementBfdConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState< + NetworkFabricsUpdateWorkloadManagementBfdConfigurationResponse + >, + NetworkFabricsUpdateWorkloadManagementBfdConfigurationResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkFabricName, body, options }, + spec: updateWorkloadManagementBfdConfigurationOperationSpec + }); + const poller = await createHttpPoller< + NetworkFabricsUpdateWorkloadManagementBfdConfigurationResponse, + OperationState< + NetworkFabricsUpdateWorkloadManagementBfdConfigurationResponse + > + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Updates the Workload Management BFD Configuration of the underlying resources in the given Network + * Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param body Request payload. + * @param options The options parameters. + */ + async beginUpdateWorkloadManagementBfdConfigurationAndWait( + resourceGroupName: string, + networkFabricName: string, + body: UpdateAdministrativeState, + options?: NetworkFabricsUpdateWorkloadManagementBfdConfigurationOptionalParams + ): Promise { + const poller = await this.beginUpdateWorkloadManagementBfdConfiguration( + resourceGroupName, + networkFabricName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates the Infra Management BFD Configuration of the underlying resources in the given Network + * Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param body Request payload. + * @param options The options parameters. + */ + async beginUpdateInfraManagementBfdConfiguration( + resourceGroupName: string, + networkFabricName: string, + body: UpdateAdministrativeState, + options?: NetworkFabricsUpdateInfraManagementBfdConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState< + NetworkFabricsUpdateInfraManagementBfdConfigurationResponse + >, + NetworkFabricsUpdateInfraManagementBfdConfigurationResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkFabricName, body, options }, + spec: updateInfraManagementBfdConfigurationOperationSpec + }); + const poller = await createHttpPoller< + NetworkFabricsUpdateInfraManagementBfdConfigurationResponse, + OperationState< + NetworkFabricsUpdateInfraManagementBfdConfigurationResponse + > + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Updates the Infra Management BFD Configuration of the underlying resources in the given Network + * Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param body Request payload. + * @param options The options parameters. + */ + async beginUpdateInfraManagementBfdConfigurationAndWait( + resourceGroupName: string, + networkFabricName: string, + body: UpdateAdministrativeState, + options?: NetworkFabricsUpdateInfraManagementBfdConfigurationOptionalParams + ): Promise { + const poller = await this.beginUpdateInfraManagementBfdConfiguration( + resourceGroupName, + networkFabricName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Validates the configuration of the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param body Validate configuration properties. + * @param options The options parameters. + */ + async beginValidateConfiguration( + resourceGroupName: string, + networkFabricName: string, + body: ValidateConfigurationProperties, + options?: NetworkFabricsValidateConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkFabricsValidateConfigurationResponse + > + > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -440,10 +1157,13 @@ export class NetworkFabricsImpl implements NetworkFabrics { const lro = createLroSpec({ sendOperationFn, - args: { resourceGroupName, networkFabricName, options }, - spec: deleteOperationSpec + args: { resourceGroupName, networkFabricName, body, options }, + spec: validateConfigurationOperationSpec }); - const poller = await createHttpPoller>(lro, { + const poller = await createHttpPoller< + NetworkFabricsValidateConfigurationResponse, + OperationState + >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, resourceLocationConfig: "location" @@ -453,72 +1173,47 @@ export class NetworkFabricsImpl implements NetworkFabrics { } /** - * Delete Network Fabric resource. + * Validates the configuration of the underlying resources in the given Network Fabric instance. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the Network Fabric + * @param networkFabricName Name of the Network Fabric. + * @param body Validate configuration properties. * @param options The options parameters. */ - async beginDeleteAndWait( + async beginValidateConfigurationAndWait( resourceGroupName: string, networkFabricName: string, - options?: NetworkFabricsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( + body: ValidateConfigurationProperties, + options?: NetworkFabricsValidateConfigurationOptionalParams + ): Promise { + const poller = await this.beginValidateConfiguration( resourceGroupName, networkFabricName, + body, options ); return poller.pollUntilDone(); } /** - * List all the Network Fabric resources in the given resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - private _listByResourceGroup( - resourceGroupName: string, - options?: NetworkFabricsListByResourceGroupOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec - ); - } - - /** - * List all the Network Fabric resources in the given subscription. - * @param options The options parameters. - */ - private _listBySubscription( - options?: NetworkFabricsListBySubscriptionOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec - ); - } - - /** - * Provisions the underlying resources in the given Network Fabric instance. + * Gets Topology of the underlying resources in the given Network Fabric instance. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. + * @param networkFabricName Name of the Network Fabric. * @param options The options parameters. */ - async beginProvision( + async beginGetTopology( resourceGroupName: string, networkFabricName: string, - options?: NetworkFabricsProvisionOptionalParams + options?: NetworkFabricsGetTopologyOptionalParams ): Promise< SimplePollerLike< - OperationState, - NetworkFabricsProvisionResponse + OperationState, + NetworkFabricsGetTopologyResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -557,11 +1252,11 @@ export class NetworkFabricsImpl implements NetworkFabrics { const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, networkFabricName, options }, - spec: provisionOperationSpec + spec: getTopologyOperationSpec }); const poller = await createHttpPoller< - NetworkFabricsProvisionResponse, - OperationState + NetworkFabricsGetTopologyResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -572,17 +1267,17 @@ export class NetworkFabricsImpl implements NetworkFabrics { } /** - * Provisions the underlying resources in the given Network Fabric instance. + * Gets Topology of the underlying resources in the given Network Fabric instance. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. + * @param networkFabricName Name of the Network Fabric. * @param options The options parameters. */ - async beginProvisionAndWait( + async beginGetTopologyAndWait( resourceGroupName: string, networkFabricName: string, - options?: NetworkFabricsProvisionOptionalParams - ): Promise { - const poller = await this.beginProvision( + options?: NetworkFabricsGetTopologyOptionalParams + ): Promise { + const poller = await this.beginGetTopology( resourceGroupName, networkFabricName, options @@ -591,25 +1286,25 @@ export class NetworkFabricsImpl implements NetworkFabrics { } /** - * Deprovisions the underlying resources in the given Network Fabric instance. + * Atomic update of the given Network Fabric instance. Sync update of NFA resources at Fabric level. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. + * @param networkFabricName Name of the Network Fabric. * @param options The options parameters. */ - async beginDeprovision( + async beginCommitConfiguration( resourceGroupName: string, networkFabricName: string, - options?: NetworkFabricsDeprovisionOptionalParams + options?: NetworkFabricsCommitConfigurationOptionalParams ): Promise< SimplePollerLike< - OperationState, - NetworkFabricsDeprovisionResponse + OperationState, + NetworkFabricsCommitConfigurationResponse > > { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec - ): Promise => { + ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( @@ -648,11 +1343,11 @@ export class NetworkFabricsImpl implements NetworkFabrics { const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, networkFabricName, options }, - spec: deprovisionOperationSpec + spec: commitConfigurationOperationSpec }); const poller = await createHttpPoller< - NetworkFabricsDeprovisionResponse, - OperationState + NetworkFabricsCommitConfigurationResponse, + OperationState >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, @@ -663,17 +1358,17 @@ export class NetworkFabricsImpl implements NetworkFabrics { } /** - * Deprovisions the underlying resources in the given Network Fabric instance. + * Atomic update of the given Network Fabric instance. Sync update of NFA resources at Fabric level. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. + * @param networkFabricName Name of the Network Fabric. * @param options The options parameters. */ - async beginDeprovisionAndWait( + async beginCommitConfigurationAndWait( resourceGroupName: string, networkFabricName: string, - options?: NetworkFabricsDeprovisionOptionalParams - ): Promise { - const poller = await this.beginDeprovision( + options?: NetworkFabricsCommitConfigurationOptionalParams + ): Promise { + const poller = await this.beginCommitConfiguration( resourceGroupName, networkFabricName, options @@ -737,7 +1432,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body26, + requestBody: Parameters.body32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -792,7 +1487,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body27, + requestBody: Parameters.body33, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -809,10 +1504,18 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}", httpMethod: "DELETE", responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, + 200: { + headersMapper: Mappers.NetworkFabricsDeleteHeaders + }, + 201: { + headersMapper: Mappers.NetworkFabricsDeleteHeaders + }, + 202: { + headersMapper: Mappers.NetworkFabricsDeleteHeaders + }, + 204: { + headersMapper: Mappers.NetworkFabricsDeleteHeaders + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -871,16 +1574,16 @@ const provisionOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.NetworkFabricsProvisionHeaders + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate }, 201: { - headersMapper: Mappers.NetworkFabricsProvisionHeaders + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate }, 202: { - headersMapper: Mappers.NetworkFabricsProvisionHeaders + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate }, 204: { - headersMapper: Mappers.NetworkFabricsProvisionHeaders + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate }, default: { bodyMapper: Mappers.ErrorResponse @@ -902,16 +1605,241 @@ const deprovisionOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.NetworkFabricsDeprovisionHeaders + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate + }, + 201: { + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate + }, + 202: { + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate + }, + 204: { + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkFabricName + ], + headerParameters: [Parameters.accept], + serializer +}; +const upgradeOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}/upgrade", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 201: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 202: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 204: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body27, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkFabricName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const refreshConfigurationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}/refreshConfiguration", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 201: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 202: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 204: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkFabricName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateWorkloadManagementBfdConfigurationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}/updateWorkloadManagementBfdConfiguration", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 201: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 202: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 204: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkFabricName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const updateInfraManagementBfdConfigurationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}/updateInfraManagementBfdConfiguration", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 201: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 202: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 204: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkFabricName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const validateConfigurationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}/validateConfiguration", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + 201: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + 202: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + 204: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body34, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkFabricName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const getTopologyOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}/getTopology", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + 201: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + 202: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + 204: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkFabricName + ], + headerParameters: [Parameters.accept], + serializer +}; +const commitConfigurationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}/commitConfiguration", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 201: { - headersMapper: Mappers.NetworkFabricsDeprovisionHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 202: { - headersMapper: Mappers.NetworkFabricsDeprovisionHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 204: { - headersMapper: Mappers.NetworkFabricsDeprovisionHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkInterfaces.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkInterfaces.ts index 24b0df4ff505..67b75b492641 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkInterfaces.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkInterfaces.ts @@ -21,9 +21,9 @@ import { import { createLroSpec } from "../lroImpl"; import { NetworkInterface, - NetworkInterfacesListNextOptionalParams, - NetworkInterfacesListOptionalParams, - NetworkInterfacesListResponse, + NetworkInterfacesListByNetworkDeviceNextOptionalParams, + NetworkInterfacesListByNetworkDeviceOptionalParams, + NetworkInterfacesListByNetworkDeviceResponse, NetworkInterfacesCreateOptionalParams, NetworkInterfacesCreateResponse, NetworkInterfacesGetOptionalParams, @@ -32,12 +32,10 @@ import { NetworkInterfacesUpdateOptionalParams, NetworkInterfacesUpdateResponse, NetworkInterfacesDeleteOptionalParams, - NetworkInterfacesGetStatusOptionalParams, - NetworkInterfacesGetStatusResponse, UpdateAdministrativeState, NetworkInterfacesUpdateAdministrativeStateOptionalParams, NetworkInterfacesUpdateAdministrativeStateResponse, - NetworkInterfacesListNextResponse + NetworkInterfacesListByNetworkDeviceNextResponse } from "../models"; /// @@ -56,15 +54,15 @@ export class NetworkInterfacesImpl implements NetworkInterfaces { /** * List all the Network Interface resources in a given resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. * @param options The options parameters. */ - public list( + public listByNetworkDevice( resourceGroupName: string, networkDeviceName: string, - options?: NetworkInterfacesListOptionalParams + options?: NetworkInterfacesListByNetworkDeviceOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( + const iter = this.listByNetworkDevicePagingAll( resourceGroupName, networkDeviceName, options @@ -80,7 +78,7 @@ export class NetworkInterfacesImpl implements NetworkInterfaces { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( + return this.listByNetworkDevicePagingPage( resourceGroupName, networkDeviceName, options, @@ -90,23 +88,27 @@ export class NetworkInterfacesImpl implements NetworkInterfaces { }; } - private async *listPagingPage( + private async *listByNetworkDevicePagingPage( resourceGroupName: string, networkDeviceName: string, - options?: NetworkInterfacesListOptionalParams, + options?: NetworkInterfacesListByNetworkDeviceOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: NetworkInterfacesListResponse; + let result: NetworkInterfacesListByNetworkDeviceResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceGroupName, networkDeviceName, options); + result = await this._listByNetworkDevice( + resourceGroupName, + networkDeviceName, + options + ); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listNext( + result = await this._listByNetworkDeviceNext( resourceGroupName, networkDeviceName, continuationToken, @@ -119,12 +121,12 @@ export class NetworkInterfacesImpl implements NetworkInterfaces { } } - private async *listPagingAll( + private async *listByNetworkDevicePagingAll( resourceGroupName: string, networkDeviceName: string, - options?: NetworkInterfacesListOptionalParams + options?: NetworkInterfacesListByNetworkDeviceOptionalParams ): AsyncIterableIterator { - for await (const page of this.listPagingPage( + for await (const page of this.listByNetworkDevicePagingPage( resourceGroupName, networkDeviceName, options @@ -136,8 +138,8 @@ export class NetworkInterfacesImpl implements NetworkInterfaces { /** * Create a Network Interface resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice - * @param networkInterfaceName Name of the NetworkInterface + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param body Request payload. * @param options The options parameters. */ @@ -218,8 +220,8 @@ export class NetworkInterfacesImpl implements NetworkInterfaces { /** * Create a Network Interface resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice - * @param networkInterfaceName Name of the NetworkInterface + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param body Request payload. * @param options The options parameters. */ @@ -243,8 +245,8 @@ export class NetworkInterfacesImpl implements NetworkInterfaces { /** * Get the Network Interface resource details. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice - * @param networkInterfaceName Name of the NetworkInterfaceName + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param options The options parameters. */ get( @@ -262,8 +264,8 @@ export class NetworkInterfacesImpl implements NetworkInterfaces { /** * Update certain properties of the Network Interface resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice - * @param networkInterfaceName Name of the NetworkInterfaceName + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param body NetworkInterface properties to update. Only tags are supported. * @param options The options parameters. */ @@ -335,7 +337,7 @@ export class NetworkInterfacesImpl implements NetworkInterfaces { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "location" }); await poller.poll(); return poller; @@ -344,8 +346,8 @@ export class NetworkInterfacesImpl implements NetworkInterfaces { /** * Update certain properties of the Network Interface resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice - * @param networkInterfaceName Name of the NetworkInterfaceName + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param body NetworkInterface properties to update. Only tags are supported. * @param options The options parameters. */ @@ -369,8 +371,8 @@ export class NetworkInterfacesImpl implements NetworkInterfaces { /** * Delete the Network Interface resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice - * @param networkInterfaceName Name of the NetworkInterfaceName + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param options The options parameters. */ async beginDelete( @@ -440,8 +442,8 @@ export class NetworkInterfacesImpl implements NetworkInterfaces { /** * Delete the Network Interface resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice - * @param networkInterfaceName Name of the NetworkInterfaceName + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param options The options parameters. */ async beginDeleteAndWait( @@ -462,126 +464,25 @@ export class NetworkInterfacesImpl implements NetworkInterfaces { /** * List all the Network Interface resources in a given resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. * @param options The options parameters. */ - private _list( + private _listByNetworkDevice( resourceGroupName: string, networkDeviceName: string, - options?: NetworkInterfacesListOptionalParams - ): Promise { + options?: NetworkInterfacesListByNetworkDeviceOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, networkDeviceName, options }, - listOperationSpec + listByNetworkDeviceOperationSpec ); } - /** - * Get the running status of the Network Interface. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param networkInterfaceName Name of the NetworkInterface - * @param options The options parameters. - */ - async beginGetStatus( - resourceGroupName: string, - networkDeviceName: string, - networkInterfaceName: string, - options?: NetworkInterfacesGetStatusOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - NetworkInterfacesGetStatusResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - networkDeviceName, - networkInterfaceName, - options - }, - spec: getStatusOperationSpec - }); - const poller = await createHttpPoller< - NetworkInterfacesGetStatusResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Get the running status of the Network Interface. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param networkInterfaceName Name of the NetworkInterface - * @param options The options parameters. - */ - async beginGetStatusAndWait( - resourceGroupName: string, - networkDeviceName: string, - networkInterfaceName: string, - options?: NetworkInterfacesGetStatusOptionalParams - ): Promise { - const poller = await this.beginGetStatus( - resourceGroupName, - networkDeviceName, - networkInterfaceName, - options - ); - return poller.pollUntilDone(); - } - /** * Update the admin state of the Network Interface. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param networkInterfaceName Name of the NetworkInterface + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param body Request payload. * @param options The options parameters. */ @@ -662,8 +563,8 @@ export class NetworkInterfacesImpl implements NetworkInterfaces { /** * Update the admin state of the Network Interface. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param networkInterfaceName Name of the NetworkInterface + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param body Request payload. * @param options The options parameters. */ @@ -685,21 +586,21 @@ export class NetworkInterfacesImpl implements NetworkInterfaces { } /** - * ListNext + * ListByNetworkDeviceNext * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param nextLink The nextLink from the previous successful call to the List method. + * @param networkDeviceName Name of the Network Device. + * @param nextLink The nextLink from the previous successful call to the ListByNetworkDevice method. * @param options The options parameters. */ - private _listNext( + private _listByNetworkDeviceNext( resourceGroupName: string, networkDeviceName: string, nextLink: string, - options?: NetworkInterfacesListNextOptionalParams - ): Promise { + options?: NetworkInterfacesListByNetworkDeviceNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, networkDeviceName, nextLink, options }, - listNextOperationSpec + listByNetworkDeviceNextOperationSpec ); } } @@ -727,7 +628,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body22, + requestBody: Parameters.body28, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -784,7 +685,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body23, + requestBody: Parameters.body29, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -821,7 +722,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listOperationSpec: coreClient.OperationSpec = { +const listByNetworkDeviceOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces", httpMethod: "GET", @@ -843,64 +744,28 @@ const listOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const getStatusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}/getStatus", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.InterfaceStatus, - headersMapper: Mappers.NetworkInterfacesGetStatusHeaders - }, - 201: { - bodyMapper: Mappers.InterfaceStatus, - headersMapper: Mappers.NetworkInterfacesGetStatusHeaders - }, - 202: { - bodyMapper: Mappers.InterfaceStatus, - headersMapper: Mappers.NetworkInterfacesGetStatusHeaders - }, - 204: { - bodyMapper: Mappers.InterfaceStatus, - headersMapper: Mappers.NetworkInterfacesGetStatusHeaders - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.networkDeviceName, - Parameters.networkInterfaceName - ], - headerParameters: [Parameters.accept], - serializer -}; const updateAdministrativeStateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkDevices/{networkDeviceName}/networkInterfaces/{networkInterfaceName}/updateAdministrativeState", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.NetworkInterfacesUpdateAdministrativeStateHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 201: { - headersMapper: Mappers.NetworkInterfacesUpdateAdministrativeStateHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 202: { - headersMapper: Mappers.NetworkInterfacesUpdateAdministrativeStateHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, 204: { - headersMapper: Mappers.NetworkInterfacesUpdateAdministrativeStateHeaders + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate }, default: { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body10, + requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -913,7 +778,7 @@ const updateAdministrativeStateOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const listNextOperationSpec: coreClient.OperationSpec = { +const listByNetworkDeviceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkPacketBrokers.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkPacketBrokers.ts new file mode 100644 index 000000000000..2bcdf4404743 --- /dev/null +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkPacketBrokers.ts @@ -0,0 +1,720 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { NetworkPacketBrokers } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureNetworkFabricManagementServiceAPI } from "../azureNetworkFabricManagementServiceAPI"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + NetworkPacketBroker, + NetworkPacketBrokersListByResourceGroupNextOptionalParams, + NetworkPacketBrokersListByResourceGroupOptionalParams, + NetworkPacketBrokersListByResourceGroupResponse, + NetworkPacketBrokersListBySubscriptionNextOptionalParams, + NetworkPacketBrokersListBySubscriptionOptionalParams, + NetworkPacketBrokersListBySubscriptionResponse, + NetworkPacketBrokersCreateOptionalParams, + NetworkPacketBrokersCreateResponse, + NetworkPacketBrokersGetOptionalParams, + NetworkPacketBrokersGetResponse, + NetworkPacketBrokerPatch, + NetworkPacketBrokersUpdateOptionalParams, + NetworkPacketBrokersUpdateResponse, + NetworkPacketBrokersDeleteOptionalParams, + NetworkPacketBrokersListByResourceGroupNextResponse, + NetworkPacketBrokersListBySubscriptionNextResponse +} from "../models"; + +/// +/** Class containing NetworkPacketBrokers operations. */ +export class NetworkPacketBrokersImpl implements NetworkPacketBrokers { + private readonly client: AzureNetworkFabricManagementServiceAPI; + + /** + * Initialize a new instance of the class NetworkPacketBrokers class. + * @param client Reference to the service client + */ + constructor(client: AzureNetworkFabricManagementServiceAPI) { + this.client = client; + } + + /** + * Displays NetworkPacketBrokers list by resource group GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listByResourceGroup( + resourceGroupName: string, + options?: NetworkPacketBrokersListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); + } + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: NetworkPacketBrokersListByResourceGroupOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: NetworkPacketBrokersListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: NetworkPacketBrokersListByResourceGroupOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * Displays Network Packet Brokers list by subscription GET method. + * @param options The options parameters. + */ + public listBySubscription( + options?: NetworkPacketBrokersListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: NetworkPacketBrokersListBySubscriptionOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: NetworkPacketBrokersListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySubscriptionPagingAll( + options?: NetworkPacketBrokersListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * Creates a Network Packet Broker. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkPacketBrokerName Name of the Network Packet Broker. + * @param body Request payload. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + networkPacketBrokerName: string, + body: NetworkPacketBroker, + options?: NetworkPacketBrokersCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkPacketBrokersCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkPacketBrokerName, body, options }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + NetworkPacketBrokersCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates a Network Packet Broker. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkPacketBrokerName Name of the Network Packet Broker. + * @param body Request payload. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + networkPacketBrokerName: string, + body: NetworkPacketBroker, + options?: NetworkPacketBrokersCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + networkPacketBrokerName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Retrieves details of this Network Packet Broker. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkPacketBrokerName Name of the Network Packet Broker. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkPacketBrokerName: string, + options?: NetworkPacketBrokersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkPacketBrokerName, options }, + getOperationSpec + ); + } + + /** + * API to update certain properties of the Network Packet Broker resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkPacketBrokerName Name of the Network Packet Broker. + * @param body Network Packet Broker properties to update. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + networkPacketBrokerName: string, + body: NetworkPacketBrokerPatch, + options?: NetworkPacketBrokersUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkPacketBrokersUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkPacketBrokerName, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + NetworkPacketBrokersUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * API to update certain properties of the Network Packet Broker resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkPacketBrokerName Name of the Network Packet Broker. + * @param body Network Packet Broker properties to update. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + networkPacketBrokerName: string, + body: NetworkPacketBrokerPatch, + options?: NetworkPacketBrokersUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + networkPacketBrokerName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes Network Packet Broker. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkPacketBrokerName Name of the Network Packet Broker. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + networkPacketBrokerName: string, + options?: NetworkPacketBrokersDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkPacketBrokerName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes Network Packet Broker. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkPacketBrokerName Name of the Network Packet Broker. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + networkPacketBrokerName: string, + options?: NetworkPacketBrokersDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + networkPacketBrokerName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Displays NetworkPacketBrokers list by resource group GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: NetworkPacketBrokersListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + + /** + * Displays Network Packet Brokers list by subscription GET method. + * @param options The options parameters. + */ + private _listBySubscription( + options?: NetworkPacketBrokersListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: NetworkPacketBrokersListByResourceGroupNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: NetworkPacketBrokersListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers/{networkPacketBrokerName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NetworkPacketBroker + }, + 201: { + bodyMapper: Mappers.NetworkPacketBroker + }, + 202: { + bodyMapper: Mappers.NetworkPacketBroker + }, + 204: { + bodyMapper: Mappers.NetworkPacketBroker + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body37, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkPacketBrokerName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers/{networkPacketBrokerName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkPacketBroker + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkPacketBrokerName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers/{networkPacketBrokerName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.NetworkPacketBroker + }, + 201: { + bodyMapper: Mappers.NetworkPacketBroker + }, + 202: { + bodyMapper: Mappers.NetworkPacketBroker + }, + 204: { + bodyMapper: Mappers.NetworkPacketBroker + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body38, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkPacketBrokerName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers/{networkPacketBrokerName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkPacketBrokerName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkPacketBrokersListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/networkPacketBrokers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkPacketBrokersListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkPacketBrokersListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkPacketBrokersListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkRackSkus.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkRackSkus.ts deleted file mode 100644 index 7457145d69ac..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkRackSkus.ts +++ /dev/null @@ -1,195 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { NetworkRackSkus } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { AzureNetworkFabricManagementServiceAPI } from "../azureNetworkFabricManagementServiceAPI"; -import { - NetworkRackSku, - NetworkRackSkusListBySubscriptionNextOptionalParams, - NetworkRackSkusListBySubscriptionOptionalParams, - NetworkRackSkusListBySubscriptionResponse, - NetworkRackSkusGetOptionalParams, - NetworkRackSkusGetResponse, - NetworkRackSkusListBySubscriptionNextResponse -} from "../models"; - -/// -/** Class containing NetworkRackSkus operations. */ -export class NetworkRackSkusImpl implements NetworkRackSkus { - private readonly client: AzureNetworkFabricManagementServiceAPI; - - /** - * Initialize a new instance of the class NetworkRackSkus class. - * @param client Reference to the service client - */ - constructor(client: AzureNetworkFabricManagementServiceAPI) { - this.client = client; - } - - /** - * List all Network Rack SKUs in the given subscription. - * @param options The options parameters. - */ - public listBySubscription( - options?: NetworkRackSkusListBySubscriptionOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listBySubscriptionPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listBySubscriptionPagingPage(options, settings); - } - }; - } - - private async *listBySubscriptionPagingPage( - options?: NetworkRackSkusListBySubscriptionOptionalParams, - settings?: PageSettings - ): AsyncIterableIterator { - let result: NetworkRackSkusListBySubscriptionResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listBySubscription(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listBySubscriptionNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listBySubscriptionPagingAll( - options?: NetworkRackSkusListBySubscriptionOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listBySubscriptionPagingPage(options)) { - yield* page; - } - } - - /** - * Get Network Rack SKU resource. - * @param networkRackSkuName Name of the Network Rack Sku - * @param options The options parameters. - */ - get( - networkRackSkuName: string, - options?: NetworkRackSkusGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { networkRackSkuName, options }, - getOperationSpec - ); - } - - /** - * List all Network Rack SKUs in the given subscription. - * @param options The options parameters. - */ - private _listBySubscription( - options?: NetworkRackSkusListBySubscriptionOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec - ); - } - - /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - private _listBySubscriptionNext( - nextLink: string, - options?: NetworkRackSkusListBySubscriptionNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listBySubscriptionNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/networkRackSkus/{networkRackSkuName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NetworkRackSku - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.networkRackSkuName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/networkRackSkus", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NetworkRackSkusListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.NetworkRackSkusListResult - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkRacks.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkRacks.ts index d5b9180ada1d..2410af06b09c 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkRacks.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkRacks.ts @@ -31,7 +31,7 @@ import { NetworkRacksCreateResponse, NetworkRacksGetOptionalParams, NetworkRacksGetResponse, - NetworkRackPatch, + TagsUpdate, NetworkRacksUpdateOptionalParams, NetworkRacksUpdateResponse, NetworkRacksDeleteOptionalParams, @@ -178,7 +178,7 @@ export class NetworkRacksImpl implements NetworkRacks { /** * Create Network Rack resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkRackName Name of the Network Rack + * @param networkRackName Name of the Network Rack. * @param body Request payload. * @param options The options parameters. */ @@ -252,7 +252,7 @@ export class NetworkRacksImpl implements NetworkRacks { /** * Create Network Rack resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkRackName Name of the Network Rack + * @param networkRackName Name of the Network Rack. * @param body Request payload. * @param options The options parameters. */ @@ -274,7 +274,7 @@ export class NetworkRacksImpl implements NetworkRacks { /** * Get Network Rack resource details. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkRackName Name of the Network Rack + * @param networkRackName Name of the Network Rack. * @param options The options parameters. */ get( @@ -291,14 +291,14 @@ export class NetworkRacksImpl implements NetworkRacks { /** * Update certain properties of the Network Rack resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkRackName Name of the Network Rack + * @param networkRackName Name of the Network Rack. * @param body Network Rack properties to update. * @param options The options parameters. */ async beginUpdate( resourceGroupName: string, networkRackName: string, - body: NetworkRackPatch, + body: TagsUpdate, options?: NetworkRacksUpdateOptionalParams ): Promise< SimplePollerLike< @@ -365,14 +365,14 @@ export class NetworkRacksImpl implements NetworkRacks { /** * Update certain properties of the Network Rack resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkRackName Name of the Network Rack + * @param networkRackName Name of the Network Rack. * @param body Network Rack properties to update. * @param options The options parameters. */ async beginUpdateAndWait( resourceGroupName: string, networkRackName: string, - body: NetworkRackPatch, + body: TagsUpdate, options?: NetworkRacksUpdateOptionalParams ): Promise { const poller = await this.beginUpdate( @@ -387,7 +387,7 @@ export class NetworkRacksImpl implements NetworkRacks { /** * Delete Network Rack resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkRackName Name of the Network Rack + * @param networkRackName Name of the Network Rack. * @param options The options parameters. */ async beginDelete( @@ -451,7 +451,7 @@ export class NetworkRacksImpl implements NetworkRacks { /** * Delete Network Rack resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkRackName Name of the Network Rack + * @param networkRackName Name of the Network Rack. * @param options The options parameters. */ async beginDeleteAndWait( @@ -551,7 +551,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body29, + requestBody: Parameters.body39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -606,7 +606,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body30, + requestBody: Parameters.body40, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkTapRules.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkTapRules.ts new file mode 100644 index 000000000000..266f704daa1a --- /dev/null +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkTapRules.ts @@ -0,0 +1,1117 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { NetworkTapRules } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureNetworkFabricManagementServiceAPI } from "../azureNetworkFabricManagementServiceAPI"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + NetworkTapRule, + NetworkTapRulesListByResourceGroupNextOptionalParams, + NetworkTapRulesListByResourceGroupOptionalParams, + NetworkTapRulesListByResourceGroupResponse, + NetworkTapRulesListBySubscriptionNextOptionalParams, + NetworkTapRulesListBySubscriptionOptionalParams, + NetworkTapRulesListBySubscriptionResponse, + NetworkTapRulesCreateOptionalParams, + NetworkTapRulesCreateResponse, + NetworkTapRulesGetOptionalParams, + NetworkTapRulesGetResponse, + NetworkTapRulePatch, + NetworkTapRulesUpdateOptionalParams, + NetworkTapRulesUpdateResponse, + NetworkTapRulesDeleteOptionalParams, + NetworkTapRulesDeleteResponse, + UpdateAdministrativeState, + NetworkTapRulesUpdateAdministrativeStateOptionalParams, + NetworkTapRulesUpdateAdministrativeStateResponse, + NetworkTapRulesResyncOptionalParams, + NetworkTapRulesResyncResponse, + NetworkTapRulesValidateConfigurationOptionalParams, + NetworkTapRulesValidateConfigurationResponse, + NetworkTapRulesListByResourceGroupNextResponse, + NetworkTapRulesListBySubscriptionNextResponse +} from "../models"; + +/// +/** Class containing NetworkTapRules operations. */ +export class NetworkTapRulesImpl implements NetworkTapRules { + private readonly client: AzureNetworkFabricManagementServiceAPI; + + /** + * Initialize a new instance of the class NetworkTapRules class. + * @param client Reference to the service client + */ + constructor(client: AzureNetworkFabricManagementServiceAPI) { + this.client = client; + } + + /** + * List all the Network Tap Rule resources in the given resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listByResourceGroup( + resourceGroupName: string, + options?: NetworkTapRulesListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); + } + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: NetworkTapRulesListByResourceGroupOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: NetworkTapRulesListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: NetworkTapRulesListByResourceGroupOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * List all the Network Tap Rule resources in the given subscription. + * @param options The options parameters. + */ + public listBySubscription( + options?: NetworkTapRulesListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: NetworkTapRulesListBySubscriptionOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: NetworkTapRulesListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySubscriptionPagingAll( + options?: NetworkTapRulesListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * Create Network Tap Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param body Request payload. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + networkTapRuleName: string, + body: NetworkTapRule, + options?: NetworkTapRulesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapRulesCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkTapRuleName, body, options }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + NetworkTapRulesCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Create Network Tap Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param body Request payload. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + networkTapRuleName: string, + body: NetworkTapRule, + options?: NetworkTapRulesCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + networkTapRuleName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Get Network Tap Rule resource details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkTapRuleName: string, + options?: NetworkTapRulesGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkTapRuleName, options }, + getOperationSpec + ); + } + + /** + * Update certain properties of the Network Tap Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param body Network Tap Rule properties to update. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + networkTapRuleName: string, + body: NetworkTapRulePatch, + options?: NetworkTapRulesUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapRulesUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkTapRuleName, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + NetworkTapRulesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Update certain properties of the Network Tap Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param body Network Tap Rule properties to update. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + networkTapRuleName: string, + body: NetworkTapRulePatch, + options?: NetworkTapRulesUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + networkTapRuleName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Delete Network Tap Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + networkTapRuleName: string, + options?: NetworkTapRulesDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapRulesDeleteResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkTapRuleName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller< + NetworkTapRulesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Delete Network Tap Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + networkTapRuleName: string, + options?: NetworkTapRulesDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + networkTapRuleName, + options + ); + return poller.pollUntilDone(); + } + + /** + * List all the Network Tap Rule resources in the given resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: NetworkTapRulesListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + + /** + * List all the Network Tap Rule resources in the given subscription. + * @param options The options parameters. + */ + private _listBySubscription( + options?: NetworkTapRulesListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param body Request payload. + * @param options The options parameters. + */ + async beginUpdateAdministrativeState( + resourceGroupName: string, + networkTapRuleName: string, + body: UpdateAdministrativeState, + options?: NetworkTapRulesUpdateAdministrativeStateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapRulesUpdateAdministrativeStateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkTapRuleName, body, options }, + spec: updateAdministrativeStateOperationSpec + }); + const poller = await createHttpPoller< + NetworkTapRulesUpdateAdministrativeStateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param body Request payload. + * @param options The options parameters. + */ + async beginUpdateAdministrativeStateAndWait( + resourceGroupName: string, + networkTapRuleName: string, + body: UpdateAdministrativeState, + options?: NetworkTapRulesUpdateAdministrativeStateOptionalParams + ): Promise { + const poller = await this.beginUpdateAdministrativeState( + resourceGroupName, + networkTapRuleName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param options The options parameters. + */ + async beginResync( + resourceGroupName: string, + networkTapRuleName: string, + options?: NetworkTapRulesResyncOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapRulesResyncResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkTapRuleName, options }, + spec: resyncOperationSpec + }); + const poller = await createHttpPoller< + NetworkTapRulesResyncResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param options The options parameters. + */ + async beginResyncAndWait( + resourceGroupName: string, + networkTapRuleName: string, + options?: NetworkTapRulesResyncOptionalParams + ): Promise { + const poller = await this.beginResync( + resourceGroupName, + networkTapRuleName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param options The options parameters. + */ + async beginValidateConfiguration( + resourceGroupName: string, + networkTapRuleName: string, + options?: NetworkTapRulesValidateConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapRulesValidateConfigurationResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkTapRuleName, options }, + spec: validateConfigurationOperationSpec + }); + const poller = await createHttpPoller< + NetworkTapRulesValidateConfigurationResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param options The options parameters. + */ + async beginValidateConfigurationAndWait( + resourceGroupName: string, + networkTapRuleName: string, + options?: NetworkTapRulesValidateConfigurationOptionalParams + ): Promise { + const poller = await this.beginValidateConfiguration( + resourceGroupName, + networkTapRuleName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: NetworkTapRulesListByResourceGroupNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: NetworkTapRulesListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTapRules/{networkTapRuleName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NetworkTapRule + }, + 201: { + bodyMapper: Mappers.NetworkTapRule + }, + 202: { + bodyMapper: Mappers.NetworkTapRule + }, + 204: { + bodyMapper: Mappers.NetworkTapRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body41, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkTapRuleName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTapRules/{networkTapRuleName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkTapRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkTapRuleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTapRules/{networkTapRuleName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.NetworkTapRule + }, + 201: { + bodyMapper: Mappers.NetworkTapRule + }, + 202: { + bodyMapper: Mappers.NetworkTapRule + }, + 204: { + bodyMapper: Mappers.NetworkTapRule + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body42, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkTapRuleName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTapRules/{networkTapRuleName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.NetworkTapRulesDeleteHeaders + }, + 201: { + headersMapper: Mappers.NetworkTapRulesDeleteHeaders + }, + 202: { + headersMapper: Mappers.NetworkTapRulesDeleteHeaders + }, + 204: { + headersMapper: Mappers.NetworkTapRulesDeleteHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkTapRuleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTapRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkTapRulesListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/networkTapRules", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkTapRulesListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const updateAdministrativeStateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTapRules/{networkTapRuleName}/updateAdministrativeState", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 201: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 202: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 204: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkTapRuleName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const resyncOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTapRules/{networkTapRuleName}/resync", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 201: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 202: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 204: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkTapRuleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const validateConfigurationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTapRules/{networkTapRuleName}/validateConfiguration", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + 201: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + 202: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + 204: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkTapRuleName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkTapRulesListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkTapRulesListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkTaps.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkTaps.ts new file mode 100644 index 000000000000..33f545f5ab8a --- /dev/null +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkTaps.ts @@ -0,0 +1,976 @@ +/* + * 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 { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { NetworkTaps } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureNetworkFabricManagementServiceAPI } from "../azureNetworkFabricManagementServiceAPI"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + NetworkTap, + NetworkTapsListByResourceGroupNextOptionalParams, + NetworkTapsListByResourceGroupOptionalParams, + NetworkTapsListByResourceGroupResponse, + NetworkTapsListBySubscriptionNextOptionalParams, + NetworkTapsListBySubscriptionOptionalParams, + NetworkTapsListBySubscriptionResponse, + NetworkTapsCreateOptionalParams, + NetworkTapsCreateResponse, + NetworkTapsGetOptionalParams, + NetworkTapsGetResponse, + NetworkTapPatch, + NetworkTapsUpdateOptionalParams, + NetworkTapsUpdateResponse, + NetworkTapsDeleteOptionalParams, + UpdateAdministrativeState, + NetworkTapsUpdateAdministrativeStateOptionalParams, + NetworkTapsUpdateAdministrativeStateResponse, + NetworkTapsResyncOptionalParams, + NetworkTapsResyncResponse, + NetworkTapsListByResourceGroupNextResponse, + NetworkTapsListBySubscriptionNextResponse +} from "../models"; + +/// +/** Class containing NetworkTaps operations. */ +export class NetworkTapsImpl implements NetworkTaps { + private readonly client: AzureNetworkFabricManagementServiceAPI; + + /** + * Initialize a new instance of the class NetworkTaps class. + * @param client Reference to the service client + */ + constructor(client: AzureNetworkFabricManagementServiceAPI) { + this.client = client; + } + + /** + * Displays Network Taps list by resource group GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public listByResourceGroup( + resourceGroupName: string, + options?: NetworkTapsListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByResourceGroupPagingPage( + resourceGroupName, + options, + settings + ); + } + }; + } + + private async *listByResourceGroupPagingPage( + resourceGroupName: string, + options?: NetworkTapsListByResourceGroupOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: NetworkTapsListByResourceGroupResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByResourceGroup(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByResourceGroupNext( + resourceGroupName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByResourceGroupPagingAll( + resourceGroupName: string, + options?: NetworkTapsListByResourceGroupOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByResourceGroupPagingPage( + resourceGroupName, + options + )) { + yield* page; + } + } + + /** + * Displays Network Taps list by subscription GET method. + * @param options The options parameters. + */ + public listBySubscription( + options?: NetworkTapsListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listBySubscriptionPagingPage(options, settings); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: NetworkTapsListBySubscriptionOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: NetworkTapsListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySubscriptionPagingAll( + options?: NetworkTapsListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * Creates a Network Tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param body Request payload. + * @param options The options parameters. + */ + async beginCreate( + resourceGroupName: string, + networkTapName: string, + body: NetworkTap, + options?: NetworkTapsCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapsCreateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkTapName, body, options }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + NetworkTapsCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates a Network Tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param body Request payload. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceGroupName: string, + networkTapName: string, + body: NetworkTap, + options?: NetworkTapsCreateOptionalParams + ): Promise { + const poller = await this.beginCreate( + resourceGroupName, + networkTapName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Retrieves details of this Network Tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkTapName: string, + options?: NetworkTapsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkTapName, options }, + getOperationSpec + ); + } + + /** + * API to update certain properties of the Network Tap resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param body Network Tap properties to update. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + networkTapName: string, + body: NetworkTapPatch, + options?: NetworkTapsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkTapName, body, options }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + NetworkTapsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * API to update certain properties of the Network Tap resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param body Network Tap properties to update. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + networkTapName: string, + body: NetworkTapPatch, + options?: NetworkTapsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + networkTapName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes Network Tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + networkTapName: string, + options?: NetworkTapsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkTapName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Deletes Network Tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + networkTapName: string, + options?: NetworkTapsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + networkTapName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Displays Network Taps list by resource group GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _listByResourceGroup( + resourceGroupName: string, + options?: NetworkTapsListByResourceGroupOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listByResourceGroupOperationSpec + ); + } + + /** + * Displays Network Taps list by subscription GET method. + * @param options The options parameters. + */ + private _listBySubscription( + options?: NetworkTapsListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param body Request payload. + * @param options The options parameters. + */ + async beginUpdateAdministrativeState( + resourceGroupName: string, + networkTapName: string, + body: UpdateAdministrativeState, + options?: NetworkTapsUpdateAdministrativeStateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapsUpdateAdministrativeStateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkTapName, body, options }, + spec: updateAdministrativeStateOperationSpec + }); + const poller = await createHttpPoller< + NetworkTapsUpdateAdministrativeStateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param body Request payload. + * @param options The options parameters. + */ + async beginUpdateAdministrativeStateAndWait( + resourceGroupName: string, + networkTapName: string, + body: UpdateAdministrativeState, + options?: NetworkTapsUpdateAdministrativeStateOptionalParams + ): Promise { + const poller = await this.beginUpdateAdministrativeState( + resourceGroupName, + networkTapName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param options The options parameters. + */ + async beginResync( + resourceGroupName: string, + networkTapName: string, + options?: NetworkTapsResyncOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapsResyncResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, networkTapName, options }, + spec: resyncOperationSpec + }); + const poller = await createHttpPoller< + NetworkTapsResyncResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param options The options parameters. + */ + async beginResyncAndWait( + resourceGroupName: string, + networkTapName: string, + options?: NetworkTapsResyncOptionalParams + ): Promise { + const poller = await this.beginResync( + resourceGroupName, + networkTapName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: NetworkTapsListByResourceGroupNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: NetworkTapsListBySubscriptionNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps/{networkTapName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NetworkTap + }, + 201: { + bodyMapper: Mappers.NetworkTap + }, + 202: { + bodyMapper: Mappers.NetworkTap + }, + 204: { + bodyMapper: Mappers.NetworkTap + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body43, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkTapName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps/{networkTapName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkTap + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkTapName + ], + headerParameters: [Parameters.accept], + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps/{networkTapName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.NetworkTap + }, + 201: { + bodyMapper: Mappers.NetworkTap + }, + 202: { + bodyMapper: Mappers.NetworkTap + }, + 204: { + bodyMapper: Mappers.NetworkTap + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body44, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkTapName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps/{networkTapName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkTapName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkTapsListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/networkTaps", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkTapsListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const updateAdministrativeStateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps/{networkTapName}/updateAdministrativeState", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate + }, + 201: { + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate + }, + 202: { + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate + }, + 204: { + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkTapName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const resyncOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkTaps/{networkTapName}/resync", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 201: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 202: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 204: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkTapName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkTapsListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkTapsListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkToNetworkInterconnects.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkToNetworkInterconnects.ts index 222b71033a53..65b05fd631e2 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkToNetworkInterconnects.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/networkToNetworkInterconnects.ts @@ -21,15 +21,23 @@ import { import { createLroSpec } from "../lroImpl"; import { NetworkToNetworkInterconnect, - NetworkToNetworkInterconnectsListNextOptionalParams, - NetworkToNetworkInterconnectsListOptionalParams, - NetworkToNetworkInterconnectsListResponse, + NetworkToNetworkInterconnectsListByNetworkFabricNextOptionalParams, + NetworkToNetworkInterconnectsListByNetworkFabricOptionalParams, + NetworkToNetworkInterconnectsListByNetworkFabricResponse, NetworkToNetworkInterconnectsCreateOptionalParams, NetworkToNetworkInterconnectsCreateResponse, NetworkToNetworkInterconnectsGetOptionalParams, NetworkToNetworkInterconnectsGetResponse, + NetworkToNetworkInterconnectPatch, + NetworkToNetworkInterconnectsUpdateOptionalParams, + NetworkToNetworkInterconnectsUpdateResponse, NetworkToNetworkInterconnectsDeleteOptionalParams, - NetworkToNetworkInterconnectsListNextResponse + UpdateAdministrativeState, + NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateOptionalParams, + NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateResponse, + NetworkToNetworkInterconnectsUpdateAdministrativeStateOptionalParams, + NetworkToNetworkInterconnectsUpdateAdministrativeStateResponse, + NetworkToNetworkInterconnectsListByNetworkFabricNextResponse } from "../models"; /// @@ -49,15 +57,15 @@ export class NetworkToNetworkInterconnectsImpl /** * Implements Network To Network Interconnects list by Network Fabric GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. + * @param networkFabricName Name of the Network Fabric. * @param options The options parameters. */ - public list( + public listByNetworkFabric( resourceGroupName: string, networkFabricName: string, - options?: NetworkToNetworkInterconnectsListOptionalParams + options?: NetworkToNetworkInterconnectsListByNetworkFabricOptionalParams ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( + const iter = this.listByNetworkFabricPagingAll( resourceGroupName, networkFabricName, options @@ -73,7 +81,7 @@ export class NetworkToNetworkInterconnectsImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( + return this.listByNetworkFabricPagingPage( resourceGroupName, networkFabricName, options, @@ -83,23 +91,27 @@ export class NetworkToNetworkInterconnectsImpl }; } - private async *listPagingPage( + private async *listByNetworkFabricPagingPage( resourceGroupName: string, networkFabricName: string, - options?: NetworkToNetworkInterconnectsListOptionalParams, + options?: NetworkToNetworkInterconnectsListByNetworkFabricOptionalParams, settings?: PageSettings ): AsyncIterableIterator { - let result: NetworkToNetworkInterconnectsListResponse; + let result: NetworkToNetworkInterconnectsListByNetworkFabricResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list(resourceGroupName, networkFabricName, options); + result = await this._listByNetworkFabric( + resourceGroupName, + networkFabricName, + options + ); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); yield page; } while (continuationToken) { - result = await this._listNext( + result = await this._listByNetworkFabricNext( resourceGroupName, networkFabricName, continuationToken, @@ -112,12 +124,12 @@ export class NetworkToNetworkInterconnectsImpl } } - private async *listPagingAll( + private async *listByNetworkFabricPagingAll( resourceGroupName: string, networkFabricName: string, - options?: NetworkToNetworkInterconnectsListOptionalParams + options?: NetworkToNetworkInterconnectsListByNetworkFabricOptionalParams ): AsyncIterableIterator { - for await (const page of this.listPagingPage( + for await (const page of this.listByNetworkFabricPagingPage( resourceGroupName, networkFabricName, options @@ -129,8 +141,8 @@ export class NetworkToNetworkInterconnectsImpl /** * Configuration used to setup CE-PE connectivity PUT Method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. - * @param networkToNetworkInterconnectName Name of the NetworkToNetworkInterconnectName + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. * @param body Request payload. * @param options The options parameters. */ @@ -211,8 +223,8 @@ export class NetworkToNetworkInterconnectsImpl /** * Configuration used to setup CE-PE connectivity PUT Method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. - * @param networkToNetworkInterconnectName Name of the NetworkToNetworkInterconnectName + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. * @param body Request payload. * @param options The options parameters. */ @@ -236,8 +248,8 @@ export class NetworkToNetworkInterconnectsImpl /** * Implements NetworkToNetworkInterconnects GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. - * @param networkToNetworkInterconnectName Name of the NetworkToNetworkInterconnect + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. * @param options The options parameters. */ get( @@ -257,11 +269,118 @@ export class NetworkToNetworkInterconnectsImpl ); } + /** + * Update certain properties of the Network To NetworkInterconnects resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. + * @param body Network to Network Interconnect properties to update. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + networkFabricName: string, + networkToNetworkInterconnectName: string, + body: NetworkToNetworkInterconnectPatch, + options?: NetworkToNetworkInterconnectsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkToNetworkInterconnectsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + networkFabricName, + networkToNetworkInterconnectName, + body, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + NetworkToNetworkInterconnectsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Update certain properties of the Network To NetworkInterconnects resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. + * @param body Network to Network Interconnect properties to update. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + networkFabricName: string, + networkToNetworkInterconnectName: string, + body: NetworkToNetworkInterconnectPatch, + options?: NetworkToNetworkInterconnectsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + networkFabricName, + networkToNetworkInterconnectName, + body, + options + ); + return poller.pollUntilDone(); + } + /** * Implements NetworkToNetworkInterconnects DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. - * @param networkToNetworkInterconnectName Name of the NetworkToNetworkInterconnectName + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. * @param options The options parameters. */ async beginDelete( @@ -331,8 +450,8 @@ export class NetworkToNetworkInterconnectsImpl /** * Implements NetworkToNetworkInterconnects DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. - * @param networkToNetworkInterconnectName Name of the NetworkToNetworkInterconnectName + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. * @param options The options parameters. */ async beginDeleteAndWait( @@ -353,36 +472,260 @@ export class NetworkToNetworkInterconnectsImpl /** * Implements Network To Network Interconnects list by Network Fabric GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. + * @param networkFabricName Name of the Network Fabric. * @param options The options parameters. */ - private _list( + private _listByNetworkFabric( resourceGroupName: string, networkFabricName: string, - options?: NetworkToNetworkInterconnectsListOptionalParams - ): Promise { + options?: NetworkToNetworkInterconnectsListByNetworkFabricOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, networkFabricName, options }, - listOperationSpec + listByNetworkFabricOperationSpec + ); + } + + /** + * Updates the NPB Static Route BFD Administrative State. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. + * @param body Request payload. + * @param options The options parameters. + */ + async beginUpdateNpbStaticRouteBfdAdministrativeState( + resourceGroupName: string, + networkFabricName: string, + networkToNetworkInterconnectName: string, + body: UpdateAdministrativeState, + options?: NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateOptionalParams + ): Promise< + SimplePollerLike< + OperationState< + NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateResponse + >, + NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + networkFabricName, + networkToNetworkInterconnectName, + body, + options + }, + spec: updateNpbStaticRouteBfdAdministrativeStateOperationSpec + }); + const poller = await createHttpPoller< + NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateResponse, + OperationState< + NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateResponse + > + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Updates the NPB Static Route BFD Administrative State. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. + * @param body Request payload. + * @param options The options parameters. + */ + async beginUpdateNpbStaticRouteBfdAdministrativeStateAndWait( + resourceGroupName: string, + networkFabricName: string, + networkToNetworkInterconnectName: string, + body: UpdateAdministrativeState, + options?: NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateOptionalParams + ): Promise< + NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateResponse + > { + const poller = await this.beginUpdateNpbStaticRouteBfdAdministrativeState( + resourceGroupName, + networkFabricName, + networkToNetworkInterconnectName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates the Admin State. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. + * @param body Request payload. + * @param options The options parameters. + */ + async beginUpdateAdministrativeState( + resourceGroupName: string, + networkFabricName: string, + networkToNetworkInterconnectName: string, + body: UpdateAdministrativeState, + options?: NetworkToNetworkInterconnectsUpdateAdministrativeStateOptionalParams + ): Promise< + SimplePollerLike< + OperationState< + NetworkToNetworkInterconnectsUpdateAdministrativeStateResponse + >, + NetworkToNetworkInterconnectsUpdateAdministrativeStateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + networkFabricName, + networkToNetworkInterconnectName, + body, + options + }, + spec: updateAdministrativeStateOperationSpec + }); + const poller = await createHttpPoller< + NetworkToNetworkInterconnectsUpdateAdministrativeStateResponse, + OperationState< + NetworkToNetworkInterconnectsUpdateAdministrativeStateResponse + > + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Updates the Admin State. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. + * @param body Request payload. + * @param options The options parameters. + */ + async beginUpdateAdministrativeStateAndWait( + resourceGroupName: string, + networkFabricName: string, + networkToNetworkInterconnectName: string, + body: UpdateAdministrativeState, + options?: NetworkToNetworkInterconnectsUpdateAdministrativeStateOptionalParams + ): Promise { + const poller = await this.beginUpdateAdministrativeState( + resourceGroupName, + networkFabricName, + networkToNetworkInterconnectName, + body, + options ); + return poller.pollUntilDone(); } /** - * ListNext + * ListByNetworkFabricNext * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. - * @param nextLink The nextLink from the previous successful call to the List method. + * @param networkFabricName Name of the Network Fabric. + * @param nextLink The nextLink from the previous successful call to the ListByNetworkFabric method. * @param options The options parameters. */ - private _listNext( + private _listByNetworkFabricNext( resourceGroupName: string, networkFabricName: string, nextLink: string, - options?: NetworkToNetworkInterconnectsListNextOptionalParams - ): Promise { + options?: NetworkToNetworkInterconnectsListByNetworkFabricNextOptionalParams + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, networkFabricName, nextLink, options }, - listNextOperationSpec + listByNetworkFabricNextOperationSpec ); } } @@ -410,7 +753,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body28, + requestBody: Parameters.body35, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -446,6 +789,40 @@ const getOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}/networkToNetworkInterconnects/{networkToNetworkInterconnectName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.NetworkToNetworkInterconnect + }, + 201: { + bodyMapper: Mappers.NetworkToNetworkInterconnect + }, + 202: { + bodyMapper: Mappers.NetworkToNetworkInterconnect + }, + 204: { + bodyMapper: Mappers.NetworkToNetworkInterconnect + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body36, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkFabricName, + Parameters.networkToNetworkInterconnectName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}/networkToNetworkInterconnects/{networkToNetworkInterconnectName}", @@ -470,7 +847,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listOperationSpec: coreClient.OperationSpec = { +const listByNetworkFabricOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}/networkToNetworkInterconnects", httpMethod: "GET", @@ -492,7 +869,75 @@ const listOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listNextOperationSpec: coreClient.OperationSpec = { +const updateNpbStaticRouteBfdAdministrativeStateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}/networkToNetworkInterconnects/{networkToNetworkInterconnectName}/updateNpbStaticRouteBfdAdministrativeState", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 201: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 202: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 204: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkFabricName, + Parameters.networkToNetworkInterconnectName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const updateAdministrativeStateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/networkFabrics/{networkFabricName}/networkToNetworkInterconnects/{networkToNetworkInterconnectName}/updateAdministrativeState", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 201: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 202: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 204: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkFabricName, + Parameters.networkToNetworkInterconnectName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const listByNetworkFabricNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/routePolicies.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/routePolicies.ts index 91202919526a..786498bb3a1e 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/routePolicies.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operations/routePolicies.ts @@ -35,6 +35,13 @@ import { RoutePoliciesUpdateOptionalParams, RoutePoliciesUpdateResponse, RoutePoliciesDeleteOptionalParams, + UpdateAdministrativeState, + RoutePoliciesUpdateAdministrativeStateOptionalParams, + RoutePoliciesUpdateAdministrativeStateResponse, + RoutePoliciesValidateConfigurationOptionalParams, + RoutePoliciesValidateConfigurationResponse, + RoutePoliciesCommitConfigurationOptionalParams, + RoutePoliciesCommitConfigurationResponse, RoutePoliciesListByResourceGroupNextResponse, RoutePoliciesListBySubscriptionNextResponse } from "../models"; @@ -178,7 +185,7 @@ export class RoutePoliciesImpl implements RoutePolicies { /** * Implements Route Policy PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param routePolicyName Name of the Route Policy + * @param routePolicyName Name of the Route Policy. * @param body Request payload. * @param options The options parameters. */ @@ -252,7 +259,7 @@ export class RoutePoliciesImpl implements RoutePolicies { /** * Implements Route Policy PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param routePolicyName Name of the Route Policy + * @param routePolicyName Name of the Route Policy. * @param body Request payload. * @param options The options parameters. */ @@ -274,7 +281,7 @@ export class RoutePoliciesImpl implements RoutePolicies { /** * Implements Route Policy GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param routePolicyName Name of the Route Policy + * @param routePolicyName Name of the Route Policy. * @param options The options parameters. */ get( @@ -291,7 +298,7 @@ export class RoutePoliciesImpl implements RoutePolicies { /** * API to update certain properties of the Route Policy resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param routePolicyName Name of the Route Policy + * @param routePolicyName Name of the Route Policy. * @param body Route Policy properties to update. * @param options The options parameters. */ @@ -365,7 +372,7 @@ export class RoutePoliciesImpl implements RoutePolicies { /** * API to update certain properties of the Route Policy resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param routePolicyName Name of the Route Policy + * @param routePolicyName Name of the Route Policy. * @param body Route Policy properties to update. * @param options The options parameters. */ @@ -387,7 +394,7 @@ export class RoutePoliciesImpl implements RoutePolicies { /** * Implements Route Policy DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param routePolicyName Name of the Route Policy + * @param routePolicyName Name of the Route Policy. * @param options The options parameters. */ async beginDelete( @@ -451,7 +458,7 @@ export class RoutePoliciesImpl implements RoutePolicies { /** * Implements Route Policy DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param routePolicyName Name of the Route Policy + * @param routePolicyName Name of the Route Policy. * @param options The options parameters. */ async beginDeleteAndWait( @@ -495,6 +502,284 @@ export class RoutePoliciesImpl implements RoutePolicies { ); } + /** + * Updated the admin state for this Route Policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routePolicyName Name of the Route Policy. + * @param body Request payload. + * @param options The options parameters. + */ + async beginUpdateAdministrativeState( + resourceGroupName: string, + routePolicyName: string, + body: UpdateAdministrativeState, + options?: RoutePoliciesUpdateAdministrativeStateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RoutePoliciesUpdateAdministrativeStateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, routePolicyName, body, options }, + spec: updateAdministrativeStateOperationSpec + }); + const poller = await createHttpPoller< + RoutePoliciesUpdateAdministrativeStateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Updated the admin state for this Route Policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routePolicyName Name of the Route Policy. + * @param body Request payload. + * @param options The options parameters. + */ + async beginUpdateAdministrativeStateAndWait( + resourceGroupName: string, + routePolicyName: string, + body: UpdateAdministrativeState, + options?: RoutePoliciesUpdateAdministrativeStateOptionalParams + ): Promise { + const poller = await this.beginUpdateAdministrativeState( + resourceGroupName, + routePolicyName, + body, + options + ); + return poller.pollUntilDone(); + } + + /** + * Validates the configuration of the resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routePolicyName Name of the Route Policy. + * @param options The options parameters. + */ + async beginValidateConfiguration( + resourceGroupName: string, + routePolicyName: string, + options?: RoutePoliciesValidateConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RoutePoliciesValidateConfigurationResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, routePolicyName, options }, + spec: validateConfigurationOperationSpec + }); + const poller = await createHttpPoller< + RoutePoliciesValidateConfigurationResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Validates the configuration of the resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routePolicyName Name of the Route Policy. + * @param options The options parameters. + */ + async beginValidateConfigurationAndWait( + resourceGroupName: string, + routePolicyName: string, + options?: RoutePoliciesValidateConfigurationOptionalParams + ): Promise { + const poller = await this.beginValidateConfiguration( + resourceGroupName, + routePolicyName, + options + ); + return poller.pollUntilDone(); + } + + /** + * Commits the configuration of the given resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routePolicyName Name of the Route Policy. + * @param options The options parameters. + */ + async beginCommitConfiguration( + resourceGroupName: string, + routePolicyName: string, + options?: RoutePoliciesCommitConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RoutePoliciesCommitConfigurationResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, routePolicyName, options }, + spec: commitConfigurationOperationSpec + }); + const poller = await createHttpPoller< + RoutePoliciesCommitConfigurationResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location" + }); + await poller.poll(); + return poller; + } + + /** + * Commits the configuration of the given resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routePolicyName Name of the Route Policy. + * @param options The options parameters. + */ + async beginCommitConfigurationAndWait( + resourceGroupName: string, + routePolicyName: string, + options?: RoutePoliciesCommitConfigurationOptionalParams + ): Promise { + const poller = await this.beginCommitConfiguration( + resourceGroupName, + routePolicyName, + options + ); + return poller.pollUntilDone(); + } + /** * ListByResourceGroupNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -551,7 +836,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body31, + requestBody: Parameters.body45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -606,7 +891,7 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.body32, + requestBody: Parameters.body46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -679,6 +964,101 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; +const updateAdministrativeStateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/routePolicies/{routePolicyName}/updateAdministrativeState", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate + }, + 201: { + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate + }, + 202: { + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate + }, + 204: { + bodyMapper: Mappers.CommonPostActionResponseForDeviceUpdate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.routePolicyName + ], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer +}; +const validateConfigurationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/routePolicies/{routePolicyName}/validateConfiguration", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + 201: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + 202: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + 204: { + bodyMapper: Mappers.ValidateConfigurationResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.routePolicyName + ], + headerParameters: [Parameters.accept], + serializer +}; +const commitConfigurationOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/routePolicies/{routePolicyName}/commitConfiguration", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 201: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 202: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + 204: { + bodyMapper: Mappers.CommonPostActionResponseForStateUpdate + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.routePolicyName + ], + headerParameters: [Parameters.accept], + serializer +}; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/accessControlLists.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/accessControlLists.ts index dfb2a908ae3b..f62d89c5e8ef 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/accessControlLists.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/accessControlLists.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { AccessControlList, AccessControlListsListByResourceGroupOptionalParams, @@ -18,7 +19,15 @@ import { AccessControlListPatch, AccessControlListsUpdateOptionalParams, AccessControlListsUpdateResponse, - AccessControlListsDeleteOptionalParams + AccessControlListsDeleteOptionalParams, + AccessControlListsDeleteResponse, + UpdateAdministrativeState, + AccessControlListsUpdateAdministrativeStateOptionalParams, + AccessControlListsUpdateAdministrativeStateResponse, + AccessControlListsResyncOptionalParams, + AccessControlListsResyncResponse, + AccessControlListsValidateConfigurationOptionalParams, + AccessControlListsValidateConfigurationResponse } from "../models"; /// @@ -43,11 +52,29 @@ export interface AccessControlLists { /** * Implements Access Control List PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accessControlListName Name of the Access Control List + * @param accessControlListName Name of the Access Control List. * @param body Request payload. * @param options The options parameters. */ - create( + beginCreate( + resourceGroupName: string, + accessControlListName: string, + body: AccessControlList, + options?: AccessControlListsCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AccessControlListsCreateResponse + > + >; + /** + * Implements Access Control List PUT method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. + * @param body Request payload. + * @param options The options parameters. + */ + beginCreateAndWait( resourceGroupName: string, accessControlListName: string, body: AccessControlList, @@ -56,7 +83,7 @@ export interface AccessControlLists { /** * Implements Access Control List GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accessControlListName Name of the Access Control List + * @param accessControlListName Name of the Access Control List. * @param options The options parameters. */ get( @@ -67,11 +94,29 @@ export interface AccessControlLists { /** * API to update certain properties of the Access Control List resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accessControlListName Name of the Access Control List + * @param accessControlListName Name of the Access Control List. * @param body Access Control List properties to update. * @param options The options parameters. */ - update( + beginUpdate( + resourceGroupName: string, + accessControlListName: string, + body: AccessControlListPatch, + options?: AccessControlListsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AccessControlListsUpdateResponse + > + >; + /** + * API to update certain properties of the Access Control List resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. + * @param body Access Control List properties to update. + * @param options The options parameters. + */ + beginUpdateAndWait( resourceGroupName: string, accessControlListName: string, body: AccessControlListPatch, @@ -80,12 +125,113 @@ export interface AccessControlLists { /** * Implements Access Control List DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accessControlListName Name of the Access Control List + * @param accessControlListName Name of the Access Control List. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + accessControlListName: string, + options?: AccessControlListsDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AccessControlListsDeleteResponse + > + >; + /** + * Implements Access Control List DELETE method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. * @param options The options parameters. */ - delete( + beginDeleteAndWait( resourceGroupName: string, accessControlListName: string, options?: AccessControlListsDeleteOptionalParams - ): Promise; + ): Promise; + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. + * @param body Request payload. + * @param options The options parameters. + */ + beginUpdateAdministrativeState( + resourceGroupName: string, + accessControlListName: string, + body: UpdateAdministrativeState, + options?: AccessControlListsUpdateAdministrativeStateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AccessControlListsUpdateAdministrativeStateResponse + > + >; + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. + * @param body Request payload. + * @param options The options parameters. + */ + beginUpdateAdministrativeStateAndWait( + resourceGroupName: string, + accessControlListName: string, + body: UpdateAdministrativeState, + options?: AccessControlListsUpdateAdministrativeStateOptionalParams + ): Promise; + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. + * @param options The options parameters. + */ + beginResync( + resourceGroupName: string, + accessControlListName: string, + options?: AccessControlListsResyncOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AccessControlListsResyncResponse + > + >; + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. + * @param options The options parameters. + */ + beginResyncAndWait( + resourceGroupName: string, + accessControlListName: string, + options?: AccessControlListsResyncOptionalParams + ): Promise; + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. + * @param options The options parameters. + */ + beginValidateConfiguration( + resourceGroupName: string, + accessControlListName: string, + options?: AccessControlListsValidateConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AccessControlListsValidateConfigurationResponse + > + >; + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accessControlListName Name of the Access Control List. + * @param options The options parameters. + */ + beginValidateConfigurationAndWait( + resourceGroupName: string, + accessControlListName: string, + options?: AccessControlListsValidateConfigurationOptionalParams + ): Promise; } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/externalNetworks.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/externalNetworks.ts index 13f55ffb9403..26d71e03d0d8 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/externalNetworks.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/externalNetworks.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { ExternalNetwork, - ExternalNetworksListOptionalParams, + ExternalNetworksListByL3IsolationDomainOptionalParams, ExternalNetworksCreateOptionalParams, ExternalNetworksCreateResponse, ExternalNetworksGetOptionalParams, @@ -22,15 +22,8 @@ import { UpdateAdministrativeState, ExternalNetworksUpdateAdministrativeStateOptionalParams, ExternalNetworksUpdateAdministrativeStateResponse, - ExternalNetworksUpdateBgpAdministrativeStateOptionalParams, - ExternalNetworksUpdateBgpAdministrativeStateResponse, - ExternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams, - ExternalNetworksUpdateBfdForBgpAdministrativeStateResponse, - EnableDisableOnResources, - ExternalNetworksClearIpv6NeighborsOptionalParams, - ExternalNetworksClearIpv6NeighborsResponse, - ExternalNetworksClearArpEntriesOptionalParams, - ExternalNetworksClearArpEntriesResponse + ExternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams, + ExternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse } from "../models"; /// @@ -39,19 +32,19 @@ export interface ExternalNetworks { /** * Implements External Networks list by resource group GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ - list( + listByL3IsolationDomain( resourceGroupName: string, l3IsolationDomainName: string, - options?: ExternalNetworksListOptionalParams + options?: ExternalNetworksListByL3IsolationDomainOptionalParams ): PagedAsyncIterableIterator; /** * Creates ExternalNetwork PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param externalNetworkName Name of the ExternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param body Request payload. * @param options The options parameters. */ @@ -70,8 +63,8 @@ export interface ExternalNetworks { /** * Creates ExternalNetwork PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param externalNetworkName Name of the ExternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param body Request payload. * @param options The options parameters. */ @@ -85,8 +78,8 @@ export interface ExternalNetworks { /** * Implements ExternalNetworks GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param externalNetworkName Name of the ExternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param options The options parameters. */ get( @@ -98,8 +91,8 @@ export interface ExternalNetworks { /** * API to update certain properties of the ExternalNetworks resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param externalNetworkName Name of the ExternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param body ExternalNetwork properties to update. Only annotations are supported. * @param options The options parameters. */ @@ -118,8 +111,8 @@ export interface ExternalNetworks { /** * API to update certain properties of the ExternalNetworks resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param externalNetworkName Name of the ExternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param body ExternalNetwork properties to update. Only annotations are supported. * @param options The options parameters. */ @@ -133,8 +126,8 @@ export interface ExternalNetworks { /** * Implements ExternalNetworks DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param externalNetworkName Name of the ExternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param options The options parameters. */ beginDelete( @@ -146,8 +139,8 @@ export interface ExternalNetworks { /** * Implements ExternalNetworks DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param externalNetworkName Name of the ExternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param options The options parameters. */ beginDeleteAndWait( @@ -159,8 +152,8 @@ export interface ExternalNetworks { /** * Executes update operation to enable or disable administrative State for externalNetwork. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param body Request payload. * @param options The options parameters. */ @@ -179,8 +172,8 @@ export interface ExternalNetworks { /** * Executes update operation to enable or disable administrative State for externalNetwork. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param body Request payload. * @param options The options parameters. */ @@ -192,145 +185,40 @@ export interface ExternalNetworks { options?: ExternalNetworksUpdateAdministrativeStateOptionalParams ): Promise; /** - * Update BGP for externalNetwork. + * Update Static Route BFD for external Network. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param body Request payload. * @param options The options parameters. */ - beginUpdateBgpAdministrativeState( + beginUpdateStaticRouteBfdAdministrativeState( resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: UpdateAdministrativeState, - options?: ExternalNetworksUpdateBgpAdministrativeStateOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - ExternalNetworksUpdateBgpAdministrativeStateResponse - > - >; - /** - * Update BGP for externalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - beginUpdateBgpAdministrativeStateAndWait( - resourceGroupName: string, - l3IsolationDomainName: string, - externalNetworkName: string, - body: UpdateAdministrativeState, - options?: ExternalNetworksUpdateBgpAdministrativeStateOptionalParams - ): Promise; - /** - * Update BfdForBgp for externalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - beginUpdateBfdForBgpAdministrativeState( - resourceGroupName: string, - l3IsolationDomainName: string, - externalNetworkName: string, - body: UpdateAdministrativeState, - options?: ExternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams + options?: ExternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams ): Promise< SimplePollerLike< OperationState< - ExternalNetworksUpdateBfdForBgpAdministrativeStateResponse + ExternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse >, - ExternalNetworksUpdateBfdForBgpAdministrativeStateResponse + ExternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse > >; /** - * Update BfdForBgp for externalNetwork. + * Update Static Route BFD for external Network. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param externalNetworkName Name of the External Network. * @param body Request payload. * @param options The options parameters. */ - beginUpdateBfdForBgpAdministrativeStateAndWait( + beginUpdateStaticRouteBfdAdministrativeStateAndWait( resourceGroupName: string, l3IsolationDomainName: string, externalNetworkName: string, body: UpdateAdministrativeState, - options?: ExternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams - ): Promise; - /** - * clearIpv6Neighbors for externalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - beginClearIpv6Neighbors( - resourceGroupName: string, - l3IsolationDomainName: string, - externalNetworkName: string, - body: EnableDisableOnResources, - options?: ExternalNetworksClearIpv6NeighborsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - ExternalNetworksClearIpv6NeighborsResponse - > - >; - /** - * clearIpv6Neighbors for externalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - beginClearIpv6NeighborsAndWait( - resourceGroupName: string, - l3IsolationDomainName: string, - externalNetworkName: string, - body: EnableDisableOnResources, - options?: ExternalNetworksClearIpv6NeighborsOptionalParams - ): Promise; - /** - * clearArpEntries for externalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - beginClearArpEntries( - resourceGroupName: string, - l3IsolationDomainName: string, - externalNetworkName: string, - body: EnableDisableOnResources, - options?: ExternalNetworksClearArpEntriesOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - ExternalNetworksClearArpEntriesResponse - > - >; - /** - * clearArpEntries for externalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param externalNetworkName Name of the ExternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - beginClearArpEntriesAndWait( - resourceGroupName: string, - l3IsolationDomainName: string, - externalNetworkName: string, - body: EnableDisableOnResources, - options?: ExternalNetworksClearArpEntriesOptionalParams - ): Promise; + options?: ExternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams + ): Promise; } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/index.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/index.ts index 44f8aef51253..ea192b8cd132 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/index.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/index.ts @@ -7,6 +7,8 @@ */ export * from "./accessControlLists"; +export * from "./internetGateways"; +export * from "./internetGatewayRules"; export * from "./ipCommunities"; export * from "./ipExtendedCommunities"; export * from "./ipPrefixes"; @@ -14,6 +16,7 @@ export * from "./l2IsolationDomains"; export * from "./l3IsolationDomains"; export * from "./internalNetworks"; export * from "./externalNetworks"; +export * from "./neighborGroups"; export * from "./networkDeviceSkus"; export * from "./networkDevices"; export * from "./networkInterfaces"; @@ -21,7 +24,9 @@ export * from "./networkFabricControllers"; export * from "./networkFabricSkus"; export * from "./networkFabrics"; export * from "./networkToNetworkInterconnects"; -export * from "./networkRackSkus"; +export * from "./networkPacketBrokers"; export * from "./networkRacks"; +export * from "./networkTapRules"; +export * from "./networkTaps"; export * from "./operations"; export * from "./routePolicies"; diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/internalNetworks.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/internalNetworks.ts index 44ee067c66b5..7ac4953cd439 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/internalNetworks.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/internalNetworks.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { InternalNetwork, - InternalNetworksListOptionalParams, + InternalNetworksListByL3IsolationDomainOptionalParams, InternalNetworksCreateOptionalParams, InternalNetworksCreateResponse, InternalNetworksGetOptionalParams, @@ -24,15 +24,8 @@ import { InternalNetworksUpdateAdministrativeStateResponse, InternalNetworksUpdateBgpAdministrativeStateOptionalParams, InternalNetworksUpdateBgpAdministrativeStateResponse, - InternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams, - InternalNetworksUpdateBfdForBgpAdministrativeStateResponse, - EnableDisableOnResources, - InternalNetworksClearIpv6NeighborsOptionalParams, - InternalNetworksClearIpv6NeighborsResponse, - InternalNetworksClearArpEntriesOptionalParams, - InternalNetworksClearArpEntriesResponse, - InternalNetworksUpdateBfdForStaticRouteAdministrativeStateOptionalParams, - InternalNetworksUpdateBfdForStaticRouteAdministrativeStateResponse + InternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams, + InternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse } from "../models"; /// @@ -41,19 +34,19 @@ export interface InternalNetworks { /** * Displays InternalNetworks list by resource group GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ - list( + listByL3IsolationDomain( resourceGroupName: string, l3IsolationDomainName: string, - options?: InternalNetworksListOptionalParams + options?: InternalNetworksListByL3IsolationDomainOptionalParams ): PagedAsyncIterableIterator; /** * Creates InternalNetwork PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param internalNetworkName Name of the InternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body Request payload. * @param options The options parameters. */ @@ -72,8 +65,8 @@ export interface InternalNetworks { /** * Creates InternalNetwork PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param internalNetworkName Name of the InternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body Request payload. * @param options The options parameters. */ @@ -87,8 +80,8 @@ export interface InternalNetworks { /** * Gets a InternalNetworks. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param internalNetworkName Name of the InternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param options The options parameters. */ get( @@ -100,8 +93,8 @@ export interface InternalNetworks { /** * Updates a InternalNetworks. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param internalNetworkName Name of the InternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body InternalNetwork properties to update. Only annotations are supported. * @param options The options parameters. */ @@ -120,8 +113,8 @@ export interface InternalNetworks { /** * Updates a InternalNetworks. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param internalNetworkName Name of the InternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body InternalNetwork properties to update. Only annotations are supported. * @param options The options parameters. */ @@ -135,8 +128,8 @@ export interface InternalNetworks { /** * Implements InternalNetworks DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param internalNetworkName Name of the InternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param options The options parameters. */ beginDelete( @@ -148,8 +141,8 @@ export interface InternalNetworks { /** * Implements InternalNetworks DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain - * @param internalNetworkName Name of the InternalNetwork + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param options The options parameters. */ beginDeleteAndWait( @@ -161,8 +154,8 @@ export interface InternalNetworks { /** * Update Administrative state of InternalNetworks on resources referred by their resource ids. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body Request payload. * @param options The options parameters. */ @@ -181,8 +174,8 @@ export interface InternalNetworks { /** * Update Administrative state of InternalNetworks on resources referred by their resource ids. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body Request payload. * @param options The options parameters. */ @@ -196,8 +189,8 @@ export interface InternalNetworks { /** * Update BGP state for internalNetwork. Allowed only on edge devices. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body Request payload. * @param options The options parameters. */ @@ -216,8 +209,8 @@ export interface InternalNetworks { /** * Update BGP state for internalNetwork. Allowed only on edge devices. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body Request payload. * @param options The options parameters. */ @@ -229,149 +222,40 @@ export interface InternalNetworks { options?: InternalNetworksUpdateBgpAdministrativeStateOptionalParams ): Promise; /** - * Update BfdForBgp for internalNetwork. + * Update Static Route BFD administrative state for internalNetwork. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body Request payload. * @param options The options parameters. */ - beginUpdateBfdForBgpAdministrativeState( + beginUpdateStaticRouteBfdAdministrativeState( resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: UpdateAdministrativeState, - options?: InternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams + options?: InternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams ): Promise< SimplePollerLike< OperationState< - InternalNetworksUpdateBfdForBgpAdministrativeStateResponse + InternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse >, - InternalNetworksUpdateBfdForBgpAdministrativeStateResponse + InternalNetworksUpdateStaticRouteBfdAdministrativeStateResponse > >; /** - * Update BfdForBgp for internalNetwork. + * Update Static Route BFD administrative state for internalNetwork. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. + * @param internalNetworkName Name of the Internal Network. * @param body Request payload. * @param options The options parameters. */ - beginUpdateBfdForBgpAdministrativeStateAndWait( + beginUpdateStaticRouteBfdAdministrativeStateAndWait( resourceGroupName: string, l3IsolationDomainName: string, internalNetworkName: string, body: UpdateAdministrativeState, - options?: InternalNetworksUpdateBfdForBgpAdministrativeStateOptionalParams - ): Promise; - /** - * clearIpv6Neighbors for internalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - beginClearIpv6Neighbors( - resourceGroupName: string, - l3IsolationDomainName: string, - internalNetworkName: string, - body: EnableDisableOnResources, - options?: InternalNetworksClearIpv6NeighborsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - InternalNetworksClearIpv6NeighborsResponse - > - >; - /** - * clearIpv6Neighbors for internalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - beginClearIpv6NeighborsAndWait( - resourceGroupName: string, - l3IsolationDomainName: string, - internalNetworkName: string, - body: EnableDisableOnResources, - options?: InternalNetworksClearIpv6NeighborsOptionalParams - ): Promise; - /** - * clearArpEntries for internalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - beginClearArpEntries( - resourceGroupName: string, - l3IsolationDomainName: string, - internalNetworkName: string, - body: EnableDisableOnResources, - options?: InternalNetworksClearArpEntriesOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - InternalNetworksClearArpEntriesResponse - > - >; - /** - * clearArpEntries for internalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - beginClearArpEntriesAndWait( - resourceGroupName: string, - l3IsolationDomainName: string, - internalNetworkName: string, - body: EnableDisableOnResources, - options?: InternalNetworksClearArpEntriesOptionalParams - ): Promise; - /** - * Update BfdForStaticRoutes for internalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - beginUpdateBfdForStaticRouteAdministrativeState( - resourceGroupName: string, - l3IsolationDomainName: string, - internalNetworkName: string, - body: UpdateAdministrativeState, - options?: InternalNetworksUpdateBfdForStaticRouteAdministrativeStateOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - InternalNetworksUpdateBfdForStaticRouteAdministrativeStateResponse - >, - InternalNetworksUpdateBfdForStaticRouteAdministrativeStateResponse - > - >; - /** - * Update BfdForStaticRoutes for internalNetwork. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param internalNetworkName Name of the InternalNetwork. - * @param body Request payload. - * @param options The options parameters. - */ - beginUpdateBfdForStaticRouteAdministrativeStateAndWait( - resourceGroupName: string, - l3IsolationDomainName: string, - internalNetworkName: string, - body: UpdateAdministrativeState, - options?: InternalNetworksUpdateBfdForStaticRouteAdministrativeStateOptionalParams - ): Promise< - InternalNetworksUpdateBfdForStaticRouteAdministrativeStateResponse - >; + options?: InternalNetworksUpdateStaticRouteBfdAdministrativeStateOptionalParams + ): Promise; } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/internetGatewayRules.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/internetGatewayRules.ts new file mode 100644 index 000000000000..bad78f5d0712 --- /dev/null +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/internetGatewayRules.ts @@ -0,0 +1,145 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + InternetGatewayRule, + InternetGatewayRulesListByResourceGroupOptionalParams, + InternetGatewayRulesListBySubscriptionOptionalParams, + InternetGatewayRulesCreateOptionalParams, + InternetGatewayRulesCreateResponse, + InternetGatewayRulesGetOptionalParams, + InternetGatewayRulesGetResponse, + InternetGatewayRulePatch, + InternetGatewayRulesUpdateOptionalParams, + InternetGatewayRulesUpdateResponse, + InternetGatewayRulesDeleteOptionalParams, + InternetGatewayRulesDeleteResponse +} from "../models"; + +/// +/** Interface representing a InternetGatewayRules. */ +export interface InternetGatewayRules { + /** + * Implements Internet Gateway Rules list by resource group GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: InternetGatewayRulesListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; + /** + * List all Internet Gateway rules in the given subscription. + * @param options The options parameters. + */ + listBySubscription( + options?: InternetGatewayRulesListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * Creates an Internet Gateway rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayRuleName Name of the Internet Gateway rule. + * @param body Request payload. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + internetGatewayRuleName: string, + body: InternetGatewayRule, + options?: InternetGatewayRulesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InternetGatewayRulesCreateResponse + > + >; + /** + * Creates an Internet Gateway rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayRuleName Name of the Internet Gateway rule. + * @param body Request payload. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + internetGatewayRuleName: string, + body: InternetGatewayRule, + options?: InternetGatewayRulesCreateOptionalParams + ): Promise; + /** + * Gets an Internet Gateway Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayRuleName Name of the Internet Gateway rule. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + internetGatewayRuleName: string, + options?: InternetGatewayRulesGetOptionalParams + ): Promise; + /** + * API to update certain properties of the Internet Gateway Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayRuleName Name of the Internet Gateway rule. + * @param body Internet Gateway Rule properties to update. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + internetGatewayRuleName: string, + body: InternetGatewayRulePatch, + options?: InternetGatewayRulesUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InternetGatewayRulesUpdateResponse + > + >; + /** + * API to update certain properties of the Internet Gateway Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayRuleName Name of the Internet Gateway rule. + * @param body Internet Gateway Rule properties to update. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + internetGatewayRuleName: string, + body: InternetGatewayRulePatch, + options?: InternetGatewayRulesUpdateOptionalParams + ): Promise; + /** + * Implements Internet Gateway Rules DELETE method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayRuleName Name of the Internet Gateway rule. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + internetGatewayRuleName: string, + options?: InternetGatewayRulesDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InternetGatewayRulesDeleteResponse + > + >; + /** + * Implements Internet Gateway Rules DELETE method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayRuleName Name of the Internet Gateway rule. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + internetGatewayRuleName: string, + options?: InternetGatewayRulesDeleteOptionalParams + ): Promise; +} diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/internetGateways.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/internetGateways.ts new file mode 100644 index 000000000000..6eb4b1665e3b --- /dev/null +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/internetGateways.ts @@ -0,0 +1,139 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + InternetGateway, + InternetGatewaysListByResourceGroupOptionalParams, + InternetGatewaysListBySubscriptionOptionalParams, + InternetGatewaysCreateOptionalParams, + InternetGatewaysCreateResponse, + InternetGatewaysGetOptionalParams, + InternetGatewaysGetResponse, + InternetGatewayPatch, + InternetGatewaysUpdateOptionalParams, + InternetGatewaysUpdateResponse, + InternetGatewaysDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a InternetGateways. */ +export interface InternetGateways { + /** + * Displays Internet Gateways list by resource group GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: InternetGatewaysListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; + /** + * Displays Internet Gateways list by subscription GET method. + * @param options The options parameters. + */ + listBySubscription( + options?: InternetGatewaysListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * Creates a Network Fabric Service Internet Gateway resource instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayName Name of the Internet Gateway. + * @param body Request payload. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + internetGatewayName: string, + body: InternetGateway, + options?: InternetGatewaysCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InternetGatewaysCreateResponse + > + >; + /** + * Creates a Network Fabric Service Internet Gateway resource instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayName Name of the Internet Gateway. + * @param body Request payload. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + internetGatewayName: string, + body: InternetGateway, + options?: InternetGatewaysCreateOptionalParams + ): Promise; + /** + * Implements Gateway GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayName Name of the Internet Gateway. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + internetGatewayName: string, + options?: InternetGatewaysGetOptionalParams + ): Promise; + /** + * Execute patch on Network Fabric Service Internet Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayName Name of the Internet Gateway. + * @param body API to update certain properties of the L2 Isolation Domain resource.. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + internetGatewayName: string, + body: InternetGatewayPatch, + options?: InternetGatewaysUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + InternetGatewaysUpdateResponse + > + >; + /** + * Execute patch on Network Fabric Service Internet Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayName Name of the Internet Gateway. + * @param body API to update certain properties of the L2 Isolation Domain resource.. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + internetGatewayName: string, + body: InternetGatewayPatch, + options?: InternetGatewaysUpdateOptionalParams + ): Promise; + /** + * Execute a delete on Network Fabric Service Internet Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayName Name of the Internet Gateway. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + internetGatewayName: string, + options?: InternetGatewaysDeleteOptionalParams + ): Promise, void>>; + /** + * Execute a delete on Network Fabric Service Internet Gateway. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param internetGatewayName Name of the Internet Gateway. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + internetGatewayName: string, + options?: InternetGatewaysDeleteOptionalParams + ): Promise; +} diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/ipCommunities.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/ipCommunities.ts index 667cd331da82..1799a6660cff 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/ipCommunities.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/ipCommunities.ts @@ -19,14 +19,15 @@ import { IpCommunityPatch, IpCommunitiesUpdateOptionalParams, IpCommunitiesUpdateResponse, - IpCommunitiesDeleteOptionalParams + IpCommunitiesDeleteOptionalParams, + IpCommunitiesDeleteResponse } from "../models"; /// /** Interface representing a IpCommunities. */ export interface IpCommunities { /** - * Implements IpCommunities list by resource group GET method. + * Implements IP Communities list by resource group GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ @@ -35,7 +36,7 @@ export interface IpCommunities { options?: IpCommunitiesListByResourceGroupOptionalParams ): PagedAsyncIterableIterator; /** - * Implements IpCommunities list by subscription GET method. + * Implements IP Communities list by subscription GET method. * @param options The options parameters. */ listBySubscription( @@ -44,7 +45,7 @@ export interface IpCommunities { /** * Implements an IP Community PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipCommunityName Name of the IP Community + * @param ipCommunityName Name of the IP Community. * @param body Request payload. * @param options The options parameters. */ @@ -62,7 +63,7 @@ export interface IpCommunities { /** * Implements an IP Community PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipCommunityName Name of the IP Community + * @param ipCommunityName Name of the IP Community. * @param body Request payload. * @param options The options parameters. */ @@ -86,7 +87,7 @@ export interface IpCommunities { /** * API to update certain properties of the IP Community resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipCommunityName Name of the IP Community + * @param ipCommunityName Name of the IP Community. * @param body IP Community properties to update. * @param options The options parameters. */ @@ -104,7 +105,7 @@ export interface IpCommunities { /** * API to update certain properties of the IP Community resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipCommunityName Name of the IP Community + * @param ipCommunityName Name of the IP Community. * @param body IP Community properties to update. * @param options The options parameters. */ @@ -124,7 +125,12 @@ export interface IpCommunities { resourceGroupName: string, ipCommunityName: string, options?: IpCommunitiesDeleteOptionalParams - ): Promise, void>>; + ): Promise< + SimplePollerLike< + OperationState, + IpCommunitiesDeleteResponse + > + >; /** * Implements IP Community DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -135,5 +141,5 @@ export interface IpCommunities { resourceGroupName: string, ipCommunityName: string, options?: IpCommunitiesDeleteOptionalParams - ): Promise; + ): Promise; } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/ipExtendedCommunities.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/ipExtendedCommunities.ts index 08b24cbaf9c3..9cf77cdc913c 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/ipExtendedCommunities.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/ipExtendedCommunities.ts @@ -19,7 +19,8 @@ import { IpExtendedCommunityPatch, IpExtendedCommunitiesUpdateOptionalParams, IpExtendedCommunitiesUpdateResponse, - IpExtendedCommunitiesDeleteOptionalParams + IpExtendedCommunitiesDeleteOptionalParams, + IpExtendedCommunitiesDeleteResponse } from "../models"; /// @@ -44,7 +45,7 @@ export interface IpExtendedCommunities { /** * Implements IP Extended Community PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipExtendedCommunityName Name of the IP Extended Community + * @param ipExtendedCommunityName Name of the IP Extended Community. * @param body Request payload. * @param options The options parameters. */ @@ -62,7 +63,7 @@ export interface IpExtendedCommunities { /** * Implements IP Extended Community PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipExtendedCommunityName Name of the IP Extended Community + * @param ipExtendedCommunityName Name of the IP Extended Community. * @param body Request payload. * @param options The options parameters. */ @@ -75,7 +76,7 @@ export interface IpExtendedCommunities { /** * Implements IP Extended Community GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipExtendedCommunityName Name of the IP Extended Community + * @param ipExtendedCommunityName Name of the IP Extended Community. * @param options The options parameters. */ get( @@ -86,7 +87,7 @@ export interface IpExtendedCommunities { /** * API to update certain properties of the IP Extended Community resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipExtendedCommunityName Name of the IP Extended Community + * @param ipExtendedCommunityName Name of the IP Extended Community. * @param body IP Extended Community properties to update. * @param options The options parameters. */ @@ -104,7 +105,7 @@ export interface IpExtendedCommunities { /** * API to update certain properties of the IP Extended Community resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipExtendedCommunityName Name of the IP Extended Community + * @param ipExtendedCommunityName Name of the IP Extended Community. * @param body IP Extended Community properties to update. * @param options The options parameters. */ @@ -117,23 +118,28 @@ export interface IpExtendedCommunities { /** * Implements IP Extended Community DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipExtendedCommunityName Name of the IP Extended Community + * @param ipExtendedCommunityName Name of the IP Extended Community. * @param options The options parameters. */ beginDelete( resourceGroupName: string, ipExtendedCommunityName: string, options?: IpExtendedCommunitiesDeleteOptionalParams - ): Promise, void>>; + ): Promise< + SimplePollerLike< + OperationState, + IpExtendedCommunitiesDeleteResponse + > + >; /** * Implements IP Extended Community DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipExtendedCommunityName Name of the IP Extended Community + * @param ipExtendedCommunityName Name of the IP Extended Community. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, ipExtendedCommunityName: string, options?: IpExtendedCommunitiesDeleteOptionalParams - ): Promise; + ): Promise; } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/ipPrefixes.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/ipPrefixes.ts index f6befd14f062..d644bffb926f 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/ipPrefixes.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/ipPrefixes.ts @@ -19,7 +19,8 @@ import { IpPrefixPatch, IpPrefixesUpdateOptionalParams, IpPrefixesUpdateResponse, - IpPrefixesDeleteOptionalParams + IpPrefixesDeleteOptionalParams, + IpPrefixesDeleteResponse } from "../models"; /// @@ -44,7 +45,7 @@ export interface IpPrefixes { /** * Implements IP Prefix PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipPrefixName Name of the IP Prefix + * @param ipPrefixName Name of the IP Prefix. * @param body Request payload. * @param options The options parameters. */ @@ -62,7 +63,7 @@ export interface IpPrefixes { /** * Implements IP Prefix PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipPrefixName Name of the IP Prefix + * @param ipPrefixName Name of the IP Prefix. * @param body Request payload. * @param options The options parameters. */ @@ -75,7 +76,7 @@ export interface IpPrefixes { /** * Implements IP Prefix GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipPrefixName Name of the IP Prefix + * @param ipPrefixName Name of the IP Prefix. * @param options The options parameters. */ get( @@ -86,7 +87,7 @@ export interface IpPrefixes { /** * API to update certain properties of the IP Prefix resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipPrefixName Name of the IP Prefix + * @param ipPrefixName Name of the IP Prefix. * @param body IP Prefix properties to update. * @param options The options parameters. */ @@ -104,7 +105,7 @@ export interface IpPrefixes { /** * API to update certain properties of the IP Prefix resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipPrefixName Name of the IP Prefix + * @param ipPrefixName Name of the IP Prefix. * @param body IP Prefix properties to update. * @param options The options parameters. */ @@ -117,23 +118,28 @@ export interface IpPrefixes { /** * Implements IP Prefix DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipPrefixName Name of the IP Prefix + * @param ipPrefixName Name of the IP Prefix. * @param options The options parameters. */ beginDelete( resourceGroupName: string, ipPrefixName: string, options?: IpPrefixesDeleteOptionalParams - ): Promise, void>>; + ): Promise< + SimplePollerLike< + OperationState, + IpPrefixesDeleteResponse + > + >; /** * Implements IP Prefix DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param ipPrefixName Name of the IP Prefix + * @param ipPrefixName Name of the IP Prefix. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, ipPrefixName: string, options?: IpPrefixesDeleteOptionalParams - ): Promise; + ): Promise; } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/l2IsolationDomains.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/l2IsolationDomains.ts index 102e8bfc1dbd..c27013b8f677 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/l2IsolationDomains.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/l2IsolationDomains.ts @@ -23,13 +23,10 @@ import { UpdateAdministrativeState, L2IsolationDomainsUpdateAdministrativeStateOptionalParams, L2IsolationDomainsUpdateAdministrativeStateResponse, - EnableDisableOnResources, - L2IsolationDomainsClearArpTableOptionalParams, - L2IsolationDomainsClearArpTableResponse, - L2IsolationDomainsClearNeighborTableOptionalParams, - L2IsolationDomainsClearNeighborTableResponse, - L2IsolationDomainsGetArpEntriesOptionalParams, - L2IsolationDomainsGetArpEntriesResponse + L2IsolationDomainsValidateConfigurationOptionalParams, + L2IsolationDomainsValidateConfigurationResponse, + L2IsolationDomainsCommitConfigurationOptionalParams, + L2IsolationDomainsCommitConfigurationResponse } from "../models"; /// @@ -55,7 +52,7 @@ export interface L2IsolationDomains { * Creates layer 2 network connectivity between compute nodes within a rack and across racks.The * configuration is applied on the devices only after the isolation domain is enabled. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2 Isolation Domain + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param body Request payload. * @param options The options parameters. */ @@ -74,7 +71,7 @@ export interface L2IsolationDomains { * Creates layer 2 network connectivity between compute nodes within a rack and across racks.The * configuration is applied on the devices only after the isolation domain is enabled. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2 Isolation Domain + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param body Request payload. * @param options The options parameters. */ @@ -87,7 +84,7 @@ export interface L2IsolationDomains { /** * Implements L2 Isolation Domain GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2 Isolation Domain + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param options The options parameters. */ get( @@ -98,7 +95,7 @@ export interface L2IsolationDomains { /** * API to update certain properties of the L2 Isolation Domain resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2 Isolation Domain + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param body API to update certain properties of the L2 Isolation Domain resource.. * @param options The options parameters. */ @@ -116,7 +113,7 @@ export interface L2IsolationDomains { /** * API to update certain properties of the L2 Isolation Domain resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2 Isolation Domain + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param body API to update certain properties of the L2 Isolation Domain resource.. * @param options The options parameters. */ @@ -129,7 +126,7 @@ export interface L2IsolationDomains { /** * Deletes layer 2 connectivity between compute nodes by managed by named L2 Isolation name. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2 Isolation Domain + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param options The options parameters. */ beginDelete( @@ -140,7 +137,7 @@ export interface L2IsolationDomains { /** * Deletes layer 2 connectivity between compute nodes by managed by named L2 Isolation name. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2 Isolation Domain + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param options The options parameters. */ beginDeleteAndWait( @@ -151,7 +148,7 @@ export interface L2IsolationDomains { /** * Enables isolation domain across the fabric or on specified racks. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2IsolationDomain. + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param body Request payload. * @param options The options parameters. */ @@ -169,7 +166,7 @@ export interface L2IsolationDomains { /** * Enables isolation domain across the fabric or on specified racks. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2IsolationDomain. + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param body Request payload. * @param options The options parameters. */ @@ -180,92 +177,57 @@ export interface L2IsolationDomains { options?: L2IsolationDomainsUpdateAdministrativeStateOptionalParams ): Promise; /** - * Clears ARP tables for this Isolation Domain. + * Validates the configuration of the resources. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2IsolationDomain. - * @param body Request payload. - * @param options The options parameters. - */ - beginClearArpTable( - resourceGroupName: string, - l2IsolationDomainName: string, - body: EnableDisableOnResources, - options?: L2IsolationDomainsClearArpTableOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - L2IsolationDomainsClearArpTableResponse - > - >; - /** - * Clears ARP tables for this Isolation Domain. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2IsolationDomain. - * @param body Request payload. - * @param options The options parameters. - */ - beginClearArpTableAndWait( - resourceGroupName: string, - l2IsolationDomainName: string, - body: EnableDisableOnResources, - options?: L2IsolationDomainsClearArpTableOptionalParams - ): Promise; - /** - * Clears IPv6 neighbors for this Isolation Domain. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2IsolationDomain. - * @param body Request payload. + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param options The options parameters. */ - beginClearNeighborTable( + beginValidateConfiguration( resourceGroupName: string, l2IsolationDomainName: string, - body: EnableDisableOnResources, - options?: L2IsolationDomainsClearNeighborTableOptionalParams + options?: L2IsolationDomainsValidateConfigurationOptionalParams ): Promise< SimplePollerLike< - OperationState, - L2IsolationDomainsClearNeighborTableResponse + OperationState, + L2IsolationDomainsValidateConfigurationResponse > >; /** - * Clears IPv6 neighbors for this Isolation Domain. + * Validates the configuration of the resources. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2IsolationDomain. - * @param body Request payload. + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param options The options parameters. */ - beginClearNeighborTableAndWait( + beginValidateConfigurationAndWait( resourceGroupName: string, l2IsolationDomainName: string, - body: EnableDisableOnResources, - options?: L2IsolationDomainsClearNeighborTableOptionalParams - ): Promise; + options?: L2IsolationDomainsValidateConfigurationOptionalParams + ): Promise; /** - * Clears IPv6 neighbors for this Isolation Domain. + * Commits the configuration of the given resources. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2IsolationDomain. + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param options The options parameters. */ - beginGetArpEntries( + beginCommitConfiguration( resourceGroupName: string, l2IsolationDomainName: string, - options?: L2IsolationDomainsGetArpEntriesOptionalParams + options?: L2IsolationDomainsCommitConfigurationOptionalParams ): Promise< SimplePollerLike< - OperationState, - L2IsolationDomainsGetArpEntriesResponse + OperationState, + L2IsolationDomainsCommitConfigurationResponse > >; /** - * Clears IPv6 neighbors for this Isolation Domain. + * Commits the configuration of the given resources. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l2IsolationDomainName Name of the L2IsolationDomain. + * @param l2IsolationDomainName Name of the L2 Isolation Domain. * @param options The options parameters. */ - beginGetArpEntriesAndWait( + beginCommitConfigurationAndWait( resourceGroupName: string, l2IsolationDomainName: string, - options?: L2IsolationDomainsGetArpEntriesOptionalParams - ): Promise; + options?: L2IsolationDomainsCommitConfigurationOptionalParams + ): Promise; } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/l3IsolationDomains.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/l3IsolationDomains.ts index a79aa073d73b..0179c6aeab0f 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/l3IsolationDomains.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/l3IsolationDomains.ts @@ -23,13 +23,10 @@ import { UpdateAdministrativeState, L3IsolationDomainsUpdateAdministrativeStateOptionalParams, L3IsolationDomainsUpdateAdministrativeStateResponse, - L3IsolationDomainsUpdateOptionBAdministrativeStateOptionalParams, - L3IsolationDomainsUpdateOptionBAdministrativeStateResponse, - EnableDisableOnResources, - L3IsolationDomainsClearArpTableOptionalParams, - L3IsolationDomainsClearArpTableResponse, - L3IsolationDomainsClearNeighborTableOptionalParams, - L3IsolationDomainsClearNeighborTableResponse + L3IsolationDomainsValidateConfigurationOptionalParams, + L3IsolationDomainsValidateConfigurationResponse, + L3IsolationDomainsCommitConfigurationOptionalParams, + L3IsolationDomainsCommitConfigurationResponse } from "../models"; /// @@ -56,7 +53,7 @@ export interface L3IsolationDomains { * communication with external services .This configuration is applied on the devices only after the * creation of networks is completed and isolation domain is enabled. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3 Isolation Domain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param body Request payload. * @param options The options parameters. */ @@ -76,7 +73,7 @@ export interface L3IsolationDomains { * communication with external services .This configuration is applied on the devices only after the * creation of networks is completed and isolation domain is enabled. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3 Isolation Domain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param body Request payload. * @param options The options parameters. */ @@ -89,7 +86,7 @@ export interface L3IsolationDomains { /** * Retrieves details of this L3 Isolation Domain. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3 Isolation Domain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ get( @@ -100,7 +97,7 @@ export interface L3IsolationDomains { /** * API to update certain properties of the L3 Isolation Domain resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3 Isolation Domain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param body API to update certain properties of the L3 Isolation Domain resource. * @param options The options parameters. */ @@ -118,7 +115,7 @@ export interface L3IsolationDomains { /** * API to update certain properties of the L3 Isolation Domain resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3 Isolation Domain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param body API to update certain properties of the L3 Isolation Domain resource. * @param options The options parameters. */ @@ -131,7 +128,7 @@ export interface L3IsolationDomains { /** * Deletes layer 3 connectivity between compute nodes by managed by named L3 Isolation name. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3 Isolation Domain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ beginDelete( @@ -142,7 +139,7 @@ export interface L3IsolationDomains { /** * Deletes layer 3 connectivity between compute nodes by managed by named L3 Isolation name. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3 Isolation Domain + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ beginDeleteAndWait( @@ -153,7 +150,7 @@ export interface L3IsolationDomains { /** * Enables racks for this Isolation Domain. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param body Request payload. * @param options The options parameters. */ @@ -171,7 +168,7 @@ export interface L3IsolationDomains { /** * Enables racks for this Isolation Domain. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param body Request payload. * @param options The options parameters. */ @@ -182,98 +179,57 @@ export interface L3IsolationDomains { options?: L3IsolationDomainsUpdateAdministrativeStateOptionalParams ): Promise; /** - * Update administrative state of option B on CE devices + * Validates the configuration of the resources. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param body Request payload. - * @param options The options parameters. - */ - beginUpdateOptionBAdministrativeState( - resourceGroupName: string, - l3IsolationDomainName: string, - body: UpdateAdministrativeState, - options?: L3IsolationDomainsUpdateOptionBAdministrativeStateOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - L3IsolationDomainsUpdateOptionBAdministrativeStateResponse - >, - L3IsolationDomainsUpdateOptionBAdministrativeStateResponse - > - >; - /** - * Update administrative state of option B on CE devices - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param body Request payload. - * @param options The options parameters. - */ - beginUpdateOptionBAdministrativeStateAndWait( - resourceGroupName: string, - l3IsolationDomainName: string, - body: UpdateAdministrativeState, - options?: L3IsolationDomainsUpdateOptionBAdministrativeStateOptionalParams - ): Promise; - /** - * Clears ARP tables for this Isolation Domain. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param body Request payload. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ - beginClearArpTable( + beginValidateConfiguration( resourceGroupName: string, l3IsolationDomainName: string, - body: EnableDisableOnResources, - options?: L3IsolationDomainsClearArpTableOptionalParams + options?: L3IsolationDomainsValidateConfigurationOptionalParams ): Promise< SimplePollerLike< - OperationState, - L3IsolationDomainsClearArpTableResponse + OperationState, + L3IsolationDomainsValidateConfigurationResponse > >; /** - * Clears ARP tables for this Isolation Domain. + * Validates the configuration of the resources. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param body Request payload. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ - beginClearArpTableAndWait( + beginValidateConfigurationAndWait( resourceGroupName: string, l3IsolationDomainName: string, - body: EnableDisableOnResources, - options?: L3IsolationDomainsClearArpTableOptionalParams - ): Promise; + options?: L3IsolationDomainsValidateConfigurationOptionalParams + ): Promise; /** - * Clears IPv6 neighbor tables for this Isolation Domain. + * Commits the configuration of the given resources. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param body Request payload. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ - beginClearNeighborTable( + beginCommitConfiguration( resourceGroupName: string, l3IsolationDomainName: string, - body: EnableDisableOnResources, - options?: L3IsolationDomainsClearNeighborTableOptionalParams + options?: L3IsolationDomainsCommitConfigurationOptionalParams ): Promise< SimplePollerLike< - OperationState, - L3IsolationDomainsClearNeighborTableResponse + OperationState, + L3IsolationDomainsCommitConfigurationResponse > >; /** - * Clears IPv6 neighbor tables for this Isolation Domain. + * Commits the configuration of the given resources. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param l3IsolationDomainName Name of the L3IsolationDomain. - * @param body Request payload. + * @param l3IsolationDomainName Name of the L3 Isolation Domain. * @param options The options parameters. */ - beginClearNeighborTableAndWait( + beginCommitConfigurationAndWait( resourceGroupName: string, l3IsolationDomainName: string, - body: EnableDisableOnResources, - options?: L3IsolationDomainsClearNeighborTableOptionalParams - ): Promise; + options?: L3IsolationDomainsCommitConfigurationOptionalParams + ): Promise; } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/neighborGroups.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/neighborGroups.ts new file mode 100644 index 000000000000..c69561f5bbc5 --- /dev/null +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/neighborGroups.ts @@ -0,0 +1,139 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + NeighborGroup, + NeighborGroupsListByResourceGroupOptionalParams, + NeighborGroupsListBySubscriptionOptionalParams, + NeighborGroupsCreateOptionalParams, + NeighborGroupsCreateResponse, + NeighborGroupsGetOptionalParams, + NeighborGroupsGetResponse, + NeighborGroupPatch, + NeighborGroupsUpdateOptionalParams, + NeighborGroupsUpdateResponse, + NeighborGroupsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a NeighborGroups. */ +export interface NeighborGroups { + /** + * Displays NeighborGroups list by resource group GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: NeighborGroupsListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; + /** + * Displays NeighborGroups list by subscription GET method. + * @param options The options parameters. + */ + listBySubscription( + options?: NeighborGroupsListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * Implements the Neighbor Group PUT method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param neighborGroupName Name of the Neighbor Group. + * @param body Request payload. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + neighborGroupName: string, + body: NeighborGroup, + options?: NeighborGroupsCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NeighborGroupsCreateResponse + > + >; + /** + * Implements the Neighbor Group PUT method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param neighborGroupName Name of the Neighbor Group. + * @param body Request payload. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + neighborGroupName: string, + body: NeighborGroup, + options?: NeighborGroupsCreateOptionalParams + ): Promise; + /** + * Gets the Neighbor Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param neighborGroupName Name of the Neighbor Group. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + neighborGroupName: string, + options?: NeighborGroupsGetOptionalParams + ): Promise; + /** + * Updates the Neighbor Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param neighborGroupName Name of the Neighbor Group. + * @param body Neighbor Group properties to update. Only annotations are supported. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + neighborGroupName: string, + body: NeighborGroupPatch, + options?: NeighborGroupsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NeighborGroupsUpdateResponse + > + >; + /** + * Updates the Neighbor Group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param neighborGroupName Name of the Neighbor Group. + * @param body Neighbor Group properties to update. Only annotations are supported. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + neighborGroupName: string, + body: NeighborGroupPatch, + options?: NeighborGroupsUpdateOptionalParams + ): Promise; + /** + * Implements Neighbor Group DELETE method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param neighborGroupName Name of the Neighbor Group. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + neighborGroupName: string, + options?: NeighborGroupsDeleteOptionalParams + ): Promise, void>>; + /** + * Implements Neighbor Group DELETE method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param neighborGroupName Name of the Neighbor Group. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + neighborGroupName: string, + options?: NeighborGroupsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkDeviceSkus.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkDeviceSkus.ts index c5c30b3aebf9..5e734dbcde6c 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkDeviceSkus.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkDeviceSkus.ts @@ -25,8 +25,8 @@ export interface NetworkDeviceSkus { options?: NetworkDeviceSkusListBySubscriptionOptionalParams ): PagedAsyncIterableIterator; /** - * Get Network Device SKU details. - * @param networkDeviceSkuName Name of the Network Device Sku + * Get a Network Device SKU details. + * @param networkDeviceSkuName Name of the Network Device SKU. * @param options The options parameters. */ get( diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkDevices.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkDevices.ts index faf463258416..d837756eeb0a 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkDevices.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkDevices.ts @@ -20,24 +20,17 @@ import { NetworkDevicesUpdateOptionalParams, NetworkDevicesUpdateResponse, NetworkDevicesDeleteOptionalParams, + RebootProperties, NetworkDevicesRebootOptionalParams, NetworkDevicesRebootResponse, - NetworkDevicesRestoreConfigOptionalParams, - NetworkDevicesRestoreConfigResponse, - UpdateVersionProperties, - NetworkDevicesUpdateVersionOptionalParams, - NetworkDevicesUpdateVersionResponse, - NetworkDevicesGenerateSupportPackageOptionalParams, - NetworkDevicesGenerateSupportPackageResponse, - UpdatePowerCycleProperties, - NetworkDevicesUpdatePowerCycleOptionalParams, - NetworkDevicesUpdatePowerCycleResponse, - NetworkDevicesGetStatusOptionalParams, - NetworkDevicesGetStatusResponse, - NetworkDevicesGetStaticInterfaceMapsOptionalParams, - NetworkDevicesGetStaticInterfaceMapsResponse, - NetworkDevicesGetDynamicInterfaceMapsOptionalParams, - NetworkDevicesGetDynamicInterfaceMapsResponse + NetworkDevicesRefreshConfigurationOptionalParams, + NetworkDevicesRefreshConfigurationResponse, + UpdateDeviceAdministrativeState, + NetworkDevicesUpdateAdministrativeStateOptionalParams, + NetworkDevicesUpdateAdministrativeStateResponse, + UpdateVersion, + NetworkDevicesUpgradeOptionalParams, + NetworkDevicesUpgradeResponse } from "../models"; /// @@ -62,7 +55,7 @@ export interface NetworkDevices { /** * Create a Network Device resource * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the Network Device + * @param networkDeviceName Name of the Network Device. * @param body Request payload. * @param options The options parameters. */ @@ -80,7 +73,7 @@ export interface NetworkDevices { /** * Create a Network Device resource * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the Network Device + * @param networkDeviceName Name of the Network Device. * @param body Request payload. * @param options The options parameters. */ @@ -91,9 +84,9 @@ export interface NetworkDevices { options?: NetworkDevicesCreateOptionalParams ): Promise; /** - * Get the Network Device resource details. + * Gets the Network Device resource details. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the Network Device + * @param networkDeviceName Name of the Network Device. * @param options The options parameters. */ get( @@ -104,7 +97,7 @@ export interface NetworkDevices { /** * Update certain properties of the Network Device resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the Network Device + * @param networkDeviceName Name of the Network Device. * @param body Network Device properties to update. * @param options The options parameters. */ @@ -122,7 +115,7 @@ export interface NetworkDevices { /** * Update certain properties of the Network Device resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the Network Device + * @param networkDeviceName Name of the Network Device. * @param body Network Device properties to update. * @param options The options parameters. */ @@ -135,7 +128,7 @@ export interface NetworkDevices { /** * Delete the Network Device resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the Network Device + * @param networkDeviceName Name of the Network Device. * @param options The options parameters. */ beginDelete( @@ -146,7 +139,7 @@ export interface NetworkDevices { /** * Delete the Network Device resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the Network Device + * @param networkDeviceName Name of the Network Device. * @param options The options parameters. */ beginDeleteAndWait( @@ -157,12 +150,14 @@ export interface NetworkDevices { /** * Reboot the Network Device. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. + * @param body Request payload. * @param options The options parameters. */ beginReboot( resourceGroupName: string, networkDeviceName: string, + body: RebootProperties, options?: NetworkDevicesRebootOptionalParams ): Promise< SimplePollerLike< @@ -173,209 +168,103 @@ export interface NetworkDevices { /** * Reboot the Network Device. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. + * @param body Request payload. * @param options The options parameters. */ beginRebootAndWait( resourceGroupName: string, networkDeviceName: string, + body: RebootProperties, options?: NetworkDevicesRebootOptionalParams ): Promise; /** - * Restore the configuration of the Network Device resource to last known good configuration. + * Refreshes the configuration the Network Device. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. * @param options The options parameters. */ - beginRestoreConfig( + beginRefreshConfiguration( resourceGroupName: string, networkDeviceName: string, - options?: NetworkDevicesRestoreConfigOptionalParams + options?: NetworkDevicesRefreshConfigurationOptionalParams ): Promise< SimplePollerLike< - OperationState, - NetworkDevicesRestoreConfigResponse + OperationState, + NetworkDevicesRefreshConfigurationResponse > >; /** - * Restore the configuration of the Network Device resource to last known good configuration. + * Refreshes the configuration the Network Device. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. * @param options The options parameters. */ - beginRestoreConfigAndWait( + beginRefreshConfigurationAndWait( resourceGroupName: string, networkDeviceName: string, - options?: NetworkDevicesRestoreConfigOptionalParams - ): Promise; + options?: NetworkDevicesRefreshConfigurationOptionalParams + ): Promise; /** - * Update the SKU version of the Network Device resource. + * Updates the Administrative state of the Network Device. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. * @param body Request payload. * @param options The options parameters. */ - beginUpdateVersion( + beginUpdateAdministrativeState( resourceGroupName: string, networkDeviceName: string, - body: UpdateVersionProperties, - options?: NetworkDevicesUpdateVersionOptionalParams + body: UpdateDeviceAdministrativeState, + options?: NetworkDevicesUpdateAdministrativeStateOptionalParams ): Promise< SimplePollerLike< - OperationState, - NetworkDevicesUpdateVersionResponse + OperationState, + NetworkDevicesUpdateAdministrativeStateResponse > >; /** - * Update the SKU version of the Network Device resource. + * Updates the Administrative state of the Network Device. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. * @param body Request payload. * @param options The options parameters. */ - beginUpdateVersionAndWait( + beginUpdateAdministrativeStateAndWait( resourceGroupName: string, networkDeviceName: string, - body: UpdateVersionProperties, - options?: NetworkDevicesUpdateVersionOptionalParams - ): Promise; + body: UpdateDeviceAdministrativeState, + options?: NetworkDevicesUpdateAdministrativeStateOptionalParams + ): Promise; /** - * Generate Support Package for the given Network Device. + * Upgrades the version of the Network Device. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param options The options parameters. - */ - beginGenerateSupportPackage( - resourceGroupName: string, - networkDeviceName: string, - options?: NetworkDevicesGenerateSupportPackageOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - NetworkDevicesGenerateSupportPackageResponse - > - >; - /** - * Generate Support Package for the given Network Device. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param options The options parameters. - */ - beginGenerateSupportPackageAndWait( - resourceGroupName: string, - networkDeviceName: string, - options?: NetworkDevicesGenerateSupportPackageOptionalParams - ): Promise; - /** - * Update PDU power cycle of the Network Device. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. * @param body Request payload. * @param options The options parameters. */ - beginUpdatePowerCycle( + beginUpgrade( resourceGroupName: string, networkDeviceName: string, - body: UpdatePowerCycleProperties, - options?: NetworkDevicesUpdatePowerCycleOptionalParams + body: UpdateVersion, + options?: NetworkDevicesUpgradeOptionalParams ): Promise< SimplePollerLike< - OperationState, - NetworkDevicesUpdatePowerCycleResponse + OperationState, + NetworkDevicesUpgradeResponse > >; /** - * Update PDU power cycle of the Network Device. + * Upgrades the version of the Network Device. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. * @param body Request payload. * @param options The options parameters. */ - beginUpdatePowerCycleAndWait( - resourceGroupName: string, - networkDeviceName: string, - body: UpdatePowerCycleProperties, - options?: NetworkDevicesUpdatePowerCycleOptionalParams - ): Promise; - /** - * Get the running status of the Network Device. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param options The options parameters. - */ - beginGetStatus( - resourceGroupName: string, - networkDeviceName: string, - options?: NetworkDevicesGetStatusOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - NetworkDevicesGetStatusResponse - > - >; - /** - * Get the running status of the Network Device. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param options The options parameters. - */ - beginGetStatusAndWait( - resourceGroupName: string, - networkDeviceName: string, - options?: NetworkDevicesGetStatusOptionalParams - ): Promise; - /** - * Get the static interface maps for the given Network Device. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param options The options parameters. - */ - beginGetStaticInterfaceMaps( - resourceGroupName: string, - networkDeviceName: string, - options?: NetworkDevicesGetStaticInterfaceMapsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - NetworkDevicesGetStaticInterfaceMapsResponse - > - >; - /** - * Get the static interface maps for the given Network Device. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param options The options parameters. - */ - beginGetStaticInterfaceMapsAndWait( - resourceGroupName: string, - networkDeviceName: string, - options?: NetworkDevicesGetStaticInterfaceMapsOptionalParams - ): Promise; - /** - * Get the dynamic interface maps for the given Network Device. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param options The options parameters. - */ - beginGetDynamicInterfaceMaps( - resourceGroupName: string, - networkDeviceName: string, - options?: NetworkDevicesGetDynamicInterfaceMapsOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - NetworkDevicesGetDynamicInterfaceMapsResponse - > - >; - /** - * Get the dynamic interface maps for the given Network Device. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param options The options parameters. - */ - beginGetDynamicInterfaceMapsAndWait( + beginUpgradeAndWait( resourceGroupName: string, networkDeviceName: string, - options?: NetworkDevicesGetDynamicInterfaceMapsOptionalParams - ): Promise; + body: UpdateVersion, + options?: NetworkDevicesUpgradeOptionalParams + ): Promise; } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkFabricControllers.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkFabricControllers.ts index 51322dc6b1bb..6289fa01a661 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkFabricControllers.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkFabricControllers.ts @@ -20,10 +20,7 @@ import { NetworkFabricControllersUpdateOptionalParams, NetworkFabricControllersUpdateResponse, NetworkFabricControllersDeleteOptionalParams, - NetworkFabricControllersEnableWorkloadManagementNetworkOptionalParams, - NetworkFabricControllersEnableWorkloadManagementNetworkResponse, - NetworkFabricControllersDisableWorkloadManagementNetworkOptionalParams, - NetworkFabricControllersDisableWorkloadManagementNetworkResponse + NetworkFabricControllersDeleteResponse } from "../models"; /// @@ -48,7 +45,7 @@ export interface NetworkFabricControllers { /** * Creates a Network Fabric Controller. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the Network Fabric Controller + * @param networkFabricControllerName Name of the Network Fabric Controller. * @param body Request payload. * @param options The options parameters. */ @@ -66,7 +63,7 @@ export interface NetworkFabricControllers { /** * Creates a Network Fabric Controller. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the Network Fabric Controller + * @param networkFabricControllerName Name of the Network Fabric Controller. * @param body Request payload. * @param options The options parameters. */ @@ -79,7 +76,7 @@ export interface NetworkFabricControllers { /** * Shows the provisioning status of Network Fabric Controller. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the Network Fabric Controller + * @param networkFabricControllerName Name of the Network Fabric Controller. * @param options The options parameters. */ get( @@ -90,7 +87,7 @@ export interface NetworkFabricControllers { /** * Updates are currently not supported for the Network Fabric Controller resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the Network Fabric Controller + * @param networkFabricControllerName Name of the Network Fabric Controller. * @param body Network Fabric Controller properties to update. * @param options The options parameters. */ @@ -108,7 +105,7 @@ export interface NetworkFabricControllers { /** * Updates are currently not supported for the Network Fabric Controller resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the Network Fabric Controller + * @param networkFabricControllerName Name of the Network Fabric Controller. * @param body Network Fabric Controller properties to update. * @param options The options parameters. */ @@ -121,81 +118,28 @@ export interface NetworkFabricControllers { /** * Deletes the Network Fabric Controller resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the Network Fabric Controller + * @param networkFabricControllerName Name of the Network Fabric Controller. * @param options The options parameters. */ beginDelete( resourceGroupName: string, networkFabricControllerName: string, options?: NetworkFabricControllersDeleteOptionalParams - ): Promise, void>>; - /** - * Deletes the Network Fabric Controller resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the Network Fabric Controller - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - networkFabricControllerName: string, - options?: NetworkFabricControllersDeleteOptionalParams - ): Promise; - /** - * Enables the workloadManagementNetwork (Tenant Network). - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the networkFabricController. - * @param options The options parameters. - */ - beginEnableWorkloadManagementNetwork( - resourceGroupName: string, - networkFabricControllerName: string, - options?: NetworkFabricControllersEnableWorkloadManagementNetworkOptionalParams - ): Promise< - SimplePollerLike< - OperationState< - NetworkFabricControllersEnableWorkloadManagementNetworkResponse - >, - NetworkFabricControllersEnableWorkloadManagementNetworkResponse - > - >; - /** - * Enables the workloadManagementNetwork (Tenant Network). - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the networkFabricController. - * @param options The options parameters. - */ - beginEnableWorkloadManagementNetworkAndWait( - resourceGroupName: string, - networkFabricControllerName: string, - options?: NetworkFabricControllersEnableWorkloadManagementNetworkOptionalParams - ): Promise; - /** - * Disables the workloadManagementNetwork (Tenant Network). - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the networkFabricController. - * @param options The options parameters. - */ - beginDisableWorkloadManagementNetwork( - resourceGroupName: string, - networkFabricControllerName: string, - options?: NetworkFabricControllersDisableWorkloadManagementNetworkOptionalParams ): Promise< SimplePollerLike< - OperationState< - NetworkFabricControllersDisableWorkloadManagementNetworkResponse - >, - NetworkFabricControllersDisableWorkloadManagementNetworkResponse + OperationState, + NetworkFabricControllersDeleteResponse > >; /** - * Disables the workloadManagementNetwork (Tenant Network). + * Deletes the Network Fabric Controller resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricControllerName Name of the networkFabricController. + * @param networkFabricControllerName Name of the Network Fabric Controller. * @param options The options parameters. */ - beginDisableWorkloadManagementNetworkAndWait( + beginDeleteAndWait( resourceGroupName: string, networkFabricControllerName: string, - options?: NetworkFabricControllersDisableWorkloadManagementNetworkOptionalParams - ): Promise; + options?: NetworkFabricControllersDeleteOptionalParams + ): Promise; } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkFabricSkus.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkFabricSkus.ts index 83c6b82c4fe5..58c2cd777706 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkFabricSkus.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkFabricSkus.ts @@ -18,15 +18,15 @@ import { /** Interface representing a NetworkFabricSkus. */ export interface NetworkFabricSkus { /** - * Implements NetworkFabricSkus list by subscription GET method. + * Implements Network Fabric SKUs list by subscription GET method. * @param options The options parameters. */ listBySubscription( options?: NetworkFabricSkusListBySubscriptionOptionalParams ): PagedAsyncIterableIterator; /** - * Implements Network Fabric Sku GET method. - * @param networkFabricSkuName Name of the Network Fabric Sku + * Implements Network Fabric SKU GET method. + * @param networkFabricSkuName Name of the Network Fabric SKU. * @param options The options parameters. */ get( diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkFabrics.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkFabrics.ts index a480a06f3a9f..7b78083a993b 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkFabrics.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkFabrics.ts @@ -16,14 +16,32 @@ import { NetworkFabricsCreateResponse, NetworkFabricsGetOptionalParams, NetworkFabricsGetResponse, - NetworkFabricPatchParameters, + NetworkFabricPatch, NetworkFabricsUpdateOptionalParams, NetworkFabricsUpdateResponse, NetworkFabricsDeleteOptionalParams, + NetworkFabricsDeleteResponse, NetworkFabricsProvisionOptionalParams, NetworkFabricsProvisionResponse, NetworkFabricsDeprovisionOptionalParams, - NetworkFabricsDeprovisionResponse + NetworkFabricsDeprovisionResponse, + UpdateVersion, + NetworkFabricsUpgradeOptionalParams, + NetworkFabricsUpgradeResponse, + NetworkFabricsRefreshConfigurationOptionalParams, + NetworkFabricsRefreshConfigurationResponse, + UpdateAdministrativeState, + NetworkFabricsUpdateWorkloadManagementBfdConfigurationOptionalParams, + NetworkFabricsUpdateWorkloadManagementBfdConfigurationResponse, + NetworkFabricsUpdateInfraManagementBfdConfigurationOptionalParams, + NetworkFabricsUpdateInfraManagementBfdConfigurationResponse, + ValidateConfigurationProperties, + NetworkFabricsValidateConfigurationOptionalParams, + NetworkFabricsValidateConfigurationResponse, + NetworkFabricsGetTopologyOptionalParams, + NetworkFabricsGetTopologyResponse, + NetworkFabricsCommitConfigurationOptionalParams, + NetworkFabricsCommitConfigurationResponse } from "../models"; /// @@ -48,7 +66,7 @@ export interface NetworkFabrics { /** * Create Network Fabric resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the Network Fabric + * @param networkFabricName Name of the Network Fabric. * @param body Request payload. * @param options The options parameters. */ @@ -66,7 +84,7 @@ export interface NetworkFabrics { /** * Create Network Fabric resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the Network Fabric + * @param networkFabricName Name of the Network Fabric. * @param body Request payload. * @param options The options parameters. */ @@ -79,7 +97,7 @@ export interface NetworkFabrics { /** * Get Network Fabric resource details. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the Network Fabric + * @param networkFabricName Name of the Network Fabric. * @param options The options parameters. */ get( @@ -90,14 +108,14 @@ export interface NetworkFabrics { /** * Update certain properties of the Network Fabric resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the Network Fabric + * @param networkFabricName Name of the Network Fabric. * @param body Network Fabric properties to update. * @param options The options parameters. */ beginUpdate( resourceGroupName: string, networkFabricName: string, - body: NetworkFabricPatchParameters, + body: NetworkFabricPatch, options?: NetworkFabricsUpdateOptionalParams ): Promise< SimplePollerLike< @@ -108,42 +126,47 @@ export interface NetworkFabrics { /** * Update certain properties of the Network Fabric resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the Network Fabric + * @param networkFabricName Name of the Network Fabric. * @param body Network Fabric properties to update. * @param options The options parameters. */ beginUpdateAndWait( resourceGroupName: string, networkFabricName: string, - body: NetworkFabricPatchParameters, + body: NetworkFabricPatch, options?: NetworkFabricsUpdateOptionalParams ): Promise; /** * Delete Network Fabric resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the Network Fabric + * @param networkFabricName Name of the Network Fabric. * @param options The options parameters. */ beginDelete( resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsDeleteOptionalParams - ): Promise, void>>; + ): Promise< + SimplePollerLike< + OperationState, + NetworkFabricsDeleteResponse + > + >; /** * Delete Network Fabric resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the Network Fabric + * @param networkFabricName Name of the Network Fabric. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, networkFabricName: string, options?: NetworkFabricsDeleteOptionalParams - ): Promise; + ): Promise; /** * Provisions the underlying resources in the given Network Fabric instance. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. + * @param networkFabricName Name of the Network Fabric. * @param options The options parameters. */ beginProvision( @@ -159,7 +182,7 @@ export interface NetworkFabrics { /** * Provisions the underlying resources in the given Network Fabric instance. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. + * @param networkFabricName Name of the Network Fabric. * @param options The options parameters. */ beginProvisionAndWait( @@ -170,7 +193,7 @@ export interface NetworkFabrics { /** * Deprovisions the underlying resources in the given Network Fabric instance. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. + * @param networkFabricName Name of the Network Fabric. * @param options The options parameters. */ beginDeprovision( @@ -186,7 +209,7 @@ export interface NetworkFabrics { /** * Deprovisions the underlying resources in the given Network Fabric instance. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. + * @param networkFabricName Name of the Network Fabric. * @param options The options parameters. */ beginDeprovisionAndWait( @@ -194,4 +217,217 @@ export interface NetworkFabrics { networkFabricName: string, options?: NetworkFabricsDeprovisionOptionalParams ): Promise; + /** + * Upgrades the version of the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param body Network Fabric properties to update. + * @param options The options parameters. + */ + beginUpgrade( + resourceGroupName: string, + networkFabricName: string, + body: UpdateVersion, + options?: NetworkFabricsUpgradeOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkFabricsUpgradeResponse + > + >; + /** + * Upgrades the version of the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param body Network Fabric properties to update. + * @param options The options parameters. + */ + beginUpgradeAndWait( + resourceGroupName: string, + networkFabricName: string, + body: UpdateVersion, + options?: NetworkFabricsUpgradeOptionalParams + ): Promise; + /** + * Refreshes the configuration of the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param options The options parameters. + */ + beginRefreshConfiguration( + resourceGroupName: string, + networkFabricName: string, + options?: NetworkFabricsRefreshConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkFabricsRefreshConfigurationResponse + > + >; + /** + * Refreshes the configuration of the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param options The options parameters. + */ + beginRefreshConfigurationAndWait( + resourceGroupName: string, + networkFabricName: string, + options?: NetworkFabricsRefreshConfigurationOptionalParams + ): Promise; + /** + * Updates the Workload Management BFD Configuration of the underlying resources in the given Network + * Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param body Request payload. + * @param options The options parameters. + */ + beginUpdateWorkloadManagementBfdConfiguration( + resourceGroupName: string, + networkFabricName: string, + body: UpdateAdministrativeState, + options?: NetworkFabricsUpdateWorkloadManagementBfdConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState< + NetworkFabricsUpdateWorkloadManagementBfdConfigurationResponse + >, + NetworkFabricsUpdateWorkloadManagementBfdConfigurationResponse + > + >; + /** + * Updates the Workload Management BFD Configuration of the underlying resources in the given Network + * Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param body Request payload. + * @param options The options parameters. + */ + beginUpdateWorkloadManagementBfdConfigurationAndWait( + resourceGroupName: string, + networkFabricName: string, + body: UpdateAdministrativeState, + options?: NetworkFabricsUpdateWorkloadManagementBfdConfigurationOptionalParams + ): Promise; + /** + * Updates the Infra Management BFD Configuration of the underlying resources in the given Network + * Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param body Request payload. + * @param options The options parameters. + */ + beginUpdateInfraManagementBfdConfiguration( + resourceGroupName: string, + networkFabricName: string, + body: UpdateAdministrativeState, + options?: NetworkFabricsUpdateInfraManagementBfdConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState< + NetworkFabricsUpdateInfraManagementBfdConfigurationResponse + >, + NetworkFabricsUpdateInfraManagementBfdConfigurationResponse + > + >; + /** + * Updates the Infra Management BFD Configuration of the underlying resources in the given Network + * Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param body Request payload. + * @param options The options parameters. + */ + beginUpdateInfraManagementBfdConfigurationAndWait( + resourceGroupName: string, + networkFabricName: string, + body: UpdateAdministrativeState, + options?: NetworkFabricsUpdateInfraManagementBfdConfigurationOptionalParams + ): Promise; + /** + * Validates the configuration of the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param body Validate configuration properties. + * @param options The options parameters. + */ + beginValidateConfiguration( + resourceGroupName: string, + networkFabricName: string, + body: ValidateConfigurationProperties, + options?: NetworkFabricsValidateConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkFabricsValidateConfigurationResponse + > + >; + /** + * Validates the configuration of the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param body Validate configuration properties. + * @param options The options parameters. + */ + beginValidateConfigurationAndWait( + resourceGroupName: string, + networkFabricName: string, + body: ValidateConfigurationProperties, + options?: NetworkFabricsValidateConfigurationOptionalParams + ): Promise; + /** + * Gets Topology of the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param options The options parameters. + */ + beginGetTopology( + resourceGroupName: string, + networkFabricName: string, + options?: NetworkFabricsGetTopologyOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkFabricsGetTopologyResponse + > + >; + /** + * Gets Topology of the underlying resources in the given Network Fabric instance. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param options The options parameters. + */ + beginGetTopologyAndWait( + resourceGroupName: string, + networkFabricName: string, + options?: NetworkFabricsGetTopologyOptionalParams + ): Promise; + /** + * Atomic update of the given Network Fabric instance. Sync update of NFA resources at Fabric level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param options The options parameters. + */ + beginCommitConfiguration( + resourceGroupName: string, + networkFabricName: string, + options?: NetworkFabricsCommitConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkFabricsCommitConfigurationResponse + > + >; + /** + * Atomic update of the given Network Fabric instance. Sync update of NFA resources at Fabric level. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param options The options parameters. + */ + beginCommitConfigurationAndWait( + resourceGroupName: string, + networkFabricName: string, + options?: NetworkFabricsCommitConfigurationOptionalParams + ): Promise; } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkInterfaces.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkInterfaces.ts index 970e8779d4a4..59df40541298 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkInterfaces.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkInterfaces.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { NetworkInterface, - NetworkInterfacesListOptionalParams, + NetworkInterfacesListByNetworkDeviceOptionalParams, NetworkInterfacesCreateOptionalParams, NetworkInterfacesCreateResponse, NetworkInterfacesGetOptionalParams, @@ -19,8 +19,6 @@ import { NetworkInterfacesUpdateOptionalParams, NetworkInterfacesUpdateResponse, NetworkInterfacesDeleteOptionalParams, - NetworkInterfacesGetStatusOptionalParams, - NetworkInterfacesGetStatusResponse, UpdateAdministrativeState, NetworkInterfacesUpdateAdministrativeStateOptionalParams, NetworkInterfacesUpdateAdministrativeStateResponse @@ -32,19 +30,19 @@ export interface NetworkInterfaces { /** * List all the Network Interface resources in a given resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. + * @param networkDeviceName Name of the Network Device. * @param options The options parameters. */ - list( + listByNetworkDevice( resourceGroupName: string, networkDeviceName: string, - options?: NetworkInterfacesListOptionalParams + options?: NetworkInterfacesListByNetworkDeviceOptionalParams ): PagedAsyncIterableIterator; /** * Create a Network Interface resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice - * @param networkInterfaceName Name of the NetworkInterface + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param body Request payload. * @param options The options parameters. */ @@ -63,8 +61,8 @@ export interface NetworkInterfaces { /** * Create a Network Interface resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice - * @param networkInterfaceName Name of the NetworkInterface + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param body Request payload. * @param options The options parameters. */ @@ -78,8 +76,8 @@ export interface NetworkInterfaces { /** * Get the Network Interface resource details. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice - * @param networkInterfaceName Name of the NetworkInterfaceName + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param options The options parameters. */ get( @@ -91,8 +89,8 @@ export interface NetworkInterfaces { /** * Update certain properties of the Network Interface resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice - * @param networkInterfaceName Name of the NetworkInterfaceName + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param body NetworkInterface properties to update. Only tags are supported. * @param options The options parameters. */ @@ -111,8 +109,8 @@ export interface NetworkInterfaces { /** * Update certain properties of the Network Interface resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice - * @param networkInterfaceName Name of the NetworkInterfaceName + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param body NetworkInterface properties to update. Only tags are supported. * @param options The options parameters. */ @@ -126,8 +124,8 @@ export interface NetworkInterfaces { /** * Delete the Network Interface resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice - * @param networkInterfaceName Name of the NetworkInterfaceName + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param options The options parameters. */ beginDelete( @@ -139,8 +137,8 @@ export interface NetworkInterfaces { /** * Delete the Network Interface resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice - * @param networkInterfaceName Name of the NetworkInterfaceName + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param options The options parameters. */ beginDeleteAndWait( @@ -149,42 +147,11 @@ export interface NetworkInterfaces { networkInterfaceName: string, options?: NetworkInterfacesDeleteOptionalParams ): Promise; - /** - * Get the running status of the Network Interface. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param networkInterfaceName Name of the NetworkInterface - * @param options The options parameters. - */ - beginGetStatus( - resourceGroupName: string, - networkDeviceName: string, - networkInterfaceName: string, - options?: NetworkInterfacesGetStatusOptionalParams - ): Promise< - SimplePollerLike< - OperationState, - NetworkInterfacesGetStatusResponse - > - >; - /** - * Get the running status of the Network Interface. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param networkInterfaceName Name of the NetworkInterface - * @param options The options parameters. - */ - beginGetStatusAndWait( - resourceGroupName: string, - networkDeviceName: string, - networkInterfaceName: string, - options?: NetworkInterfacesGetStatusOptionalParams - ): Promise; /** * Update the admin state of the Network Interface. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param networkInterfaceName Name of the NetworkInterface + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param body Request payload. * @param options The options parameters. */ @@ -203,8 +170,8 @@ export interface NetworkInterfaces { /** * Update the admin state of the Network Interface. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkDeviceName Name of the NetworkDevice. - * @param networkInterfaceName Name of the NetworkInterface + * @param networkDeviceName Name of the Network Device. + * @param networkInterfaceName Name of the Network Interface. * @param body Request payload. * @param options The options parameters. */ diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkPacketBrokers.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkPacketBrokers.ts new file mode 100644 index 000000000000..4fb8cbf33869 --- /dev/null +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkPacketBrokers.ts @@ -0,0 +1,139 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + NetworkPacketBroker, + NetworkPacketBrokersListByResourceGroupOptionalParams, + NetworkPacketBrokersListBySubscriptionOptionalParams, + NetworkPacketBrokersCreateOptionalParams, + NetworkPacketBrokersCreateResponse, + NetworkPacketBrokersGetOptionalParams, + NetworkPacketBrokersGetResponse, + NetworkPacketBrokerPatch, + NetworkPacketBrokersUpdateOptionalParams, + NetworkPacketBrokersUpdateResponse, + NetworkPacketBrokersDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a NetworkPacketBrokers. */ +export interface NetworkPacketBrokers { + /** + * Displays NetworkPacketBrokers list by resource group GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: NetworkPacketBrokersListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; + /** + * Displays Network Packet Brokers list by subscription GET method. + * @param options The options parameters. + */ + listBySubscription( + options?: NetworkPacketBrokersListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * Creates a Network Packet Broker. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkPacketBrokerName Name of the Network Packet Broker. + * @param body Request payload. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + networkPacketBrokerName: string, + body: NetworkPacketBroker, + options?: NetworkPacketBrokersCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkPacketBrokersCreateResponse + > + >; + /** + * Creates a Network Packet Broker. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkPacketBrokerName Name of the Network Packet Broker. + * @param body Request payload. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + networkPacketBrokerName: string, + body: NetworkPacketBroker, + options?: NetworkPacketBrokersCreateOptionalParams + ): Promise; + /** + * Retrieves details of this Network Packet Broker. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkPacketBrokerName Name of the Network Packet Broker. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkPacketBrokerName: string, + options?: NetworkPacketBrokersGetOptionalParams + ): Promise; + /** + * API to update certain properties of the Network Packet Broker resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkPacketBrokerName Name of the Network Packet Broker. + * @param body Network Packet Broker properties to update. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + networkPacketBrokerName: string, + body: NetworkPacketBrokerPatch, + options?: NetworkPacketBrokersUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkPacketBrokersUpdateResponse + > + >; + /** + * API to update certain properties of the Network Packet Broker resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkPacketBrokerName Name of the Network Packet Broker. + * @param body Network Packet Broker properties to update. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + networkPacketBrokerName: string, + body: NetworkPacketBrokerPatch, + options?: NetworkPacketBrokersUpdateOptionalParams + ): Promise; + /** + * Deletes Network Packet Broker. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkPacketBrokerName Name of the Network Packet Broker. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + networkPacketBrokerName: string, + options?: NetworkPacketBrokersDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes Network Packet Broker. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkPacketBrokerName Name of the Network Packet Broker. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + networkPacketBrokerName: string, + options?: NetworkPacketBrokersDeleteOptionalParams + ): Promise; +} diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkRackSkus.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkRackSkus.ts deleted file mode 100644 index 2e79a20c28d7..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkRackSkus.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - NetworkRackSku, - NetworkRackSkusListBySubscriptionOptionalParams, - NetworkRackSkusGetOptionalParams, - NetworkRackSkusGetResponse -} from "../models"; - -/// -/** Interface representing a NetworkRackSkus. */ -export interface NetworkRackSkus { - /** - * List all Network Rack SKUs in the given subscription. - * @param options The options parameters. - */ - listBySubscription( - options?: NetworkRackSkusListBySubscriptionOptionalParams - ): PagedAsyncIterableIterator; - /** - * Get Network Rack SKU resource. - * @param networkRackSkuName Name of the Network Rack Sku - * @param options The options parameters. - */ - get( - networkRackSkuName: string, - options?: NetworkRackSkusGetOptionalParams - ): Promise; -} diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkRacks.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkRacks.ts index 988e0fa5de51..404528539bd3 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkRacks.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkRacks.ts @@ -16,7 +16,7 @@ import { NetworkRacksCreateResponse, NetworkRacksGetOptionalParams, NetworkRacksGetResponse, - NetworkRackPatch, + TagsUpdate, NetworkRacksUpdateOptionalParams, NetworkRacksUpdateResponse, NetworkRacksDeleteOptionalParams @@ -44,7 +44,7 @@ export interface NetworkRacks { /** * Create Network Rack resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkRackName Name of the Network Rack + * @param networkRackName Name of the Network Rack. * @param body Request payload. * @param options The options parameters. */ @@ -62,7 +62,7 @@ export interface NetworkRacks { /** * Create Network Rack resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkRackName Name of the Network Rack + * @param networkRackName Name of the Network Rack. * @param body Request payload. * @param options The options parameters. */ @@ -75,7 +75,7 @@ export interface NetworkRacks { /** * Get Network Rack resource details. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkRackName Name of the Network Rack + * @param networkRackName Name of the Network Rack. * @param options The options parameters. */ get( @@ -86,14 +86,14 @@ export interface NetworkRacks { /** * Update certain properties of the Network Rack resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkRackName Name of the Network Rack + * @param networkRackName Name of the Network Rack. * @param body Network Rack properties to update. * @param options The options parameters. */ beginUpdate( resourceGroupName: string, networkRackName: string, - body: NetworkRackPatch, + body: TagsUpdate, options?: NetworkRacksUpdateOptionalParams ): Promise< SimplePollerLike< @@ -104,20 +104,20 @@ export interface NetworkRacks { /** * Update certain properties of the Network Rack resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkRackName Name of the Network Rack + * @param networkRackName Name of the Network Rack. * @param body Network Rack properties to update. * @param options The options parameters. */ beginUpdateAndWait( resourceGroupName: string, networkRackName: string, - body: NetworkRackPatch, + body: TagsUpdate, options?: NetworkRacksUpdateOptionalParams ): Promise; /** * Delete Network Rack resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkRackName Name of the Network Rack + * @param networkRackName Name of the Network Rack. * @param options The options parameters. */ beginDelete( @@ -128,7 +128,7 @@ export interface NetworkRacks { /** * Delete Network Rack resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkRackName Name of the Network Rack + * @param networkRackName Name of the Network Rack. * @param options The options parameters. */ beginDeleteAndWait( diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkTapRules.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkTapRules.ts new file mode 100644 index 000000000000..fd502ebf17ec --- /dev/null +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkTapRules.ts @@ -0,0 +1,237 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + NetworkTapRule, + NetworkTapRulesListByResourceGroupOptionalParams, + NetworkTapRulesListBySubscriptionOptionalParams, + NetworkTapRulesCreateOptionalParams, + NetworkTapRulesCreateResponse, + NetworkTapRulesGetOptionalParams, + NetworkTapRulesGetResponse, + NetworkTapRulePatch, + NetworkTapRulesUpdateOptionalParams, + NetworkTapRulesUpdateResponse, + NetworkTapRulesDeleteOptionalParams, + NetworkTapRulesDeleteResponse, + UpdateAdministrativeState, + NetworkTapRulesUpdateAdministrativeStateOptionalParams, + NetworkTapRulesUpdateAdministrativeStateResponse, + NetworkTapRulesResyncOptionalParams, + NetworkTapRulesResyncResponse, + NetworkTapRulesValidateConfigurationOptionalParams, + NetworkTapRulesValidateConfigurationResponse +} from "../models"; + +/// +/** Interface representing a NetworkTapRules. */ +export interface NetworkTapRules { + /** + * List all the Network Tap Rule resources in the given resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: NetworkTapRulesListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; + /** + * List all the Network Tap Rule resources in the given subscription. + * @param options The options parameters. + */ + listBySubscription( + options?: NetworkTapRulesListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * Create Network Tap Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param body Request payload. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + networkTapRuleName: string, + body: NetworkTapRule, + options?: NetworkTapRulesCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapRulesCreateResponse + > + >; + /** + * Create Network Tap Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param body Request payload. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + networkTapRuleName: string, + body: NetworkTapRule, + options?: NetworkTapRulesCreateOptionalParams + ): Promise; + /** + * Get Network Tap Rule resource details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkTapRuleName: string, + options?: NetworkTapRulesGetOptionalParams + ): Promise; + /** + * Update certain properties of the Network Tap Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param body Network Tap Rule properties to update. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + networkTapRuleName: string, + body: NetworkTapRulePatch, + options?: NetworkTapRulesUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapRulesUpdateResponse + > + >; + /** + * Update certain properties of the Network Tap Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param body Network Tap Rule properties to update. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + networkTapRuleName: string, + body: NetworkTapRulePatch, + options?: NetworkTapRulesUpdateOptionalParams + ): Promise; + /** + * Delete Network Tap Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + networkTapRuleName: string, + options?: NetworkTapRulesDeleteOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapRulesDeleteResponse + > + >; + /** + * Delete Network Tap Rule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + networkTapRuleName: string, + options?: NetworkTapRulesDeleteOptionalParams + ): Promise; + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param body Request payload. + * @param options The options parameters. + */ + beginUpdateAdministrativeState( + resourceGroupName: string, + networkTapRuleName: string, + body: UpdateAdministrativeState, + options?: NetworkTapRulesUpdateAdministrativeStateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapRulesUpdateAdministrativeStateResponse + > + >; + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param body Request payload. + * @param options The options parameters. + */ + beginUpdateAdministrativeStateAndWait( + resourceGroupName: string, + networkTapRuleName: string, + body: UpdateAdministrativeState, + options?: NetworkTapRulesUpdateAdministrativeStateOptionalParams + ): Promise; + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param options The options parameters. + */ + beginResync( + resourceGroupName: string, + networkTapRuleName: string, + options?: NetworkTapRulesResyncOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapRulesResyncResponse + > + >; + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param options The options parameters. + */ + beginResyncAndWait( + resourceGroupName: string, + networkTapRuleName: string, + options?: NetworkTapRulesResyncOptionalParams + ): Promise; + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param options The options parameters. + */ + beginValidateConfiguration( + resourceGroupName: string, + networkTapRuleName: string, + options?: NetworkTapRulesValidateConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapRulesValidateConfigurationResponse + > + >; + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapRuleName Name of the Network Tap Rule. + * @param options The options parameters. + */ + beginValidateConfigurationAndWait( + resourceGroupName: string, + networkTapRuleName: string, + options?: NetworkTapRulesValidateConfigurationOptionalParams + ): Promise; +} diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkTaps.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkTaps.ts new file mode 100644 index 000000000000..b6a9df360575 --- /dev/null +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkTaps.ts @@ -0,0 +1,202 @@ +/* + * 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 { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + NetworkTap, + NetworkTapsListByResourceGroupOptionalParams, + NetworkTapsListBySubscriptionOptionalParams, + NetworkTapsCreateOptionalParams, + NetworkTapsCreateResponse, + NetworkTapsGetOptionalParams, + NetworkTapsGetResponse, + NetworkTapPatch, + NetworkTapsUpdateOptionalParams, + NetworkTapsUpdateResponse, + NetworkTapsDeleteOptionalParams, + UpdateAdministrativeState, + NetworkTapsUpdateAdministrativeStateOptionalParams, + NetworkTapsUpdateAdministrativeStateResponse, + NetworkTapsResyncOptionalParams, + NetworkTapsResyncResponse +} from "../models"; + +/// +/** Interface representing a NetworkTaps. */ +export interface NetworkTaps { + /** + * Displays Network Taps list by resource group GET method. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + listByResourceGroup( + resourceGroupName: string, + options?: NetworkTapsListByResourceGroupOptionalParams + ): PagedAsyncIterableIterator; + /** + * Displays Network Taps list by subscription GET method. + * @param options The options parameters. + */ + listBySubscription( + options?: NetworkTapsListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * Creates a Network Tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param body Request payload. + * @param options The options parameters. + */ + beginCreate( + resourceGroupName: string, + networkTapName: string, + body: NetworkTap, + options?: NetworkTapsCreateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapsCreateResponse + > + >; + /** + * Creates a Network Tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param body Request payload. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceGroupName: string, + networkTapName: string, + body: NetworkTap, + options?: NetworkTapsCreateOptionalParams + ): Promise; + /** + * Retrieves details of this Network Tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkTapName: string, + options?: NetworkTapsGetOptionalParams + ): Promise; + /** + * API to update certain properties of the Network Tap resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param body Network Tap properties to update. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + networkTapName: string, + body: NetworkTapPatch, + options?: NetworkTapsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapsUpdateResponse + > + >; + /** + * API to update certain properties of the Network Tap resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param body Network Tap properties to update. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + networkTapName: string, + body: NetworkTapPatch, + options?: NetworkTapsUpdateOptionalParams + ): Promise; + /** + * Deletes Network Tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + networkTapName: string, + options?: NetworkTapsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes Network Tap. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + networkTapName: string, + options?: NetworkTapsDeleteOptionalParams + ): Promise; + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param body Request payload. + * @param options The options parameters. + */ + beginUpdateAdministrativeState( + resourceGroupName: string, + networkTapName: string, + body: UpdateAdministrativeState, + options?: NetworkTapsUpdateAdministrativeStateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapsUpdateAdministrativeStateResponse + > + >; + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param body Request payload. + * @param options The options parameters. + */ + beginUpdateAdministrativeStateAndWait( + resourceGroupName: string, + networkTapName: string, + body: UpdateAdministrativeState, + options?: NetworkTapsUpdateAdministrativeStateOptionalParams + ): Promise; + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param options The options parameters. + */ + beginResync( + resourceGroupName: string, + networkTapName: string, + options?: NetworkTapsResyncOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkTapsResyncResponse + > + >; + /** + * Implements the operation to the underlying resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkTapName Name of the Network Tap. + * @param options The options parameters. + */ + beginResyncAndWait( + resourceGroupName: string, + networkTapName: string, + options?: NetworkTapsResyncOptionalParams + ): Promise; +} diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkToNetworkInterconnects.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkToNetworkInterconnects.ts index 8903d2a51c2f..c4fcdc77a9e7 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkToNetworkInterconnects.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/networkToNetworkInterconnects.ts @@ -10,12 +10,20 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { NetworkToNetworkInterconnect, - NetworkToNetworkInterconnectsListOptionalParams, + NetworkToNetworkInterconnectsListByNetworkFabricOptionalParams, NetworkToNetworkInterconnectsCreateOptionalParams, NetworkToNetworkInterconnectsCreateResponse, NetworkToNetworkInterconnectsGetOptionalParams, NetworkToNetworkInterconnectsGetResponse, - NetworkToNetworkInterconnectsDeleteOptionalParams + NetworkToNetworkInterconnectPatch, + NetworkToNetworkInterconnectsUpdateOptionalParams, + NetworkToNetworkInterconnectsUpdateResponse, + NetworkToNetworkInterconnectsDeleteOptionalParams, + UpdateAdministrativeState, + NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateOptionalParams, + NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateResponse, + NetworkToNetworkInterconnectsUpdateAdministrativeStateOptionalParams, + NetworkToNetworkInterconnectsUpdateAdministrativeStateResponse } from "../models"; /// @@ -24,19 +32,19 @@ export interface NetworkToNetworkInterconnects { /** * Implements Network To Network Interconnects list by Network Fabric GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. + * @param networkFabricName Name of the Network Fabric. * @param options The options parameters. */ - list( + listByNetworkFabric( resourceGroupName: string, networkFabricName: string, - options?: NetworkToNetworkInterconnectsListOptionalParams + options?: NetworkToNetworkInterconnectsListByNetworkFabricOptionalParams ): PagedAsyncIterableIterator; /** * Configuration used to setup CE-PE connectivity PUT Method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. - * @param networkToNetworkInterconnectName Name of the NetworkToNetworkInterconnectName + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. * @param body Request payload. * @param options The options parameters. */ @@ -55,8 +63,8 @@ export interface NetworkToNetworkInterconnects { /** * Configuration used to setup CE-PE connectivity PUT Method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. - * @param networkToNetworkInterconnectName Name of the NetworkToNetworkInterconnectName + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. * @param body Request payload. * @param options The options parameters. */ @@ -70,8 +78,8 @@ export interface NetworkToNetworkInterconnects { /** * Implements NetworkToNetworkInterconnects GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. - * @param networkToNetworkInterconnectName Name of the NetworkToNetworkInterconnect + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. * @param options The options parameters. */ get( @@ -80,11 +88,46 @@ export interface NetworkToNetworkInterconnects { networkToNetworkInterconnectName: string, options?: NetworkToNetworkInterconnectsGetOptionalParams ): Promise; + /** + * Update certain properties of the Network To NetworkInterconnects resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. + * @param body Network to Network Interconnect properties to update. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + networkFabricName: string, + networkToNetworkInterconnectName: string, + body: NetworkToNetworkInterconnectPatch, + options?: NetworkToNetworkInterconnectsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + NetworkToNetworkInterconnectsUpdateResponse + > + >; + /** + * Update certain properties of the Network To NetworkInterconnects resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. + * @param body Network to Network Interconnect properties to update. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + networkFabricName: string, + networkToNetworkInterconnectName: string, + body: NetworkToNetworkInterconnectPatch, + options?: NetworkToNetworkInterconnectsUpdateOptionalParams + ): Promise; /** * Implements NetworkToNetworkInterconnects DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. - * @param networkToNetworkInterconnectName Name of the NetworkToNetworkInterconnectName + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. * @param options The options parameters. */ beginDelete( @@ -96,8 +139,8 @@ export interface NetworkToNetworkInterconnects { /** * Implements NetworkToNetworkInterconnects DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param networkFabricName Name of the NetworkFabric. - * @param networkToNetworkInterconnectName Name of the NetworkToNetworkInterconnectName + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. * @param options The options parameters. */ beginDeleteAndWait( @@ -106,4 +149,80 @@ export interface NetworkToNetworkInterconnects { networkToNetworkInterconnectName: string, options?: NetworkToNetworkInterconnectsDeleteOptionalParams ): Promise; + /** + * Updates the NPB Static Route BFD Administrative State. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. + * @param body Request payload. + * @param options The options parameters. + */ + beginUpdateNpbStaticRouteBfdAdministrativeState( + resourceGroupName: string, + networkFabricName: string, + networkToNetworkInterconnectName: string, + body: UpdateAdministrativeState, + options?: NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateOptionalParams + ): Promise< + SimplePollerLike< + OperationState< + NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateResponse + >, + NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateResponse + > + >; + /** + * Updates the NPB Static Route BFD Administrative State. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. + * @param body Request payload. + * @param options The options parameters. + */ + beginUpdateNpbStaticRouteBfdAdministrativeStateAndWait( + resourceGroupName: string, + networkFabricName: string, + networkToNetworkInterconnectName: string, + body: UpdateAdministrativeState, + options?: NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateOptionalParams + ): Promise< + NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateResponse + >; + /** + * Updates the Admin State. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. + * @param body Request payload. + * @param options The options parameters. + */ + beginUpdateAdministrativeState( + resourceGroupName: string, + networkFabricName: string, + networkToNetworkInterconnectName: string, + body: UpdateAdministrativeState, + options?: NetworkToNetworkInterconnectsUpdateAdministrativeStateOptionalParams + ): Promise< + SimplePollerLike< + OperationState< + NetworkToNetworkInterconnectsUpdateAdministrativeStateResponse + >, + NetworkToNetworkInterconnectsUpdateAdministrativeStateResponse + > + >; + /** + * Updates the Admin State. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkFabricName Name of the Network Fabric. + * @param networkToNetworkInterconnectName Name of the Network to Network Interconnect. + * @param body Request payload. + * @param options The options parameters. + */ + beginUpdateAdministrativeStateAndWait( + resourceGroupName: string, + networkFabricName: string, + networkToNetworkInterconnectName: string, + body: UpdateAdministrativeState, + options?: NetworkToNetworkInterconnectsUpdateAdministrativeStateOptionalParams + ): Promise; } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/routePolicies.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/routePolicies.ts index edaf18fd9e3c..39c6d4727444 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/routePolicies.ts +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/src/operationsInterfaces/routePolicies.ts @@ -19,7 +19,14 @@ import { RoutePolicyPatch, RoutePoliciesUpdateOptionalParams, RoutePoliciesUpdateResponse, - RoutePoliciesDeleteOptionalParams + RoutePoliciesDeleteOptionalParams, + UpdateAdministrativeState, + RoutePoliciesUpdateAdministrativeStateOptionalParams, + RoutePoliciesUpdateAdministrativeStateResponse, + RoutePoliciesValidateConfigurationOptionalParams, + RoutePoliciesValidateConfigurationResponse, + RoutePoliciesCommitConfigurationOptionalParams, + RoutePoliciesCommitConfigurationResponse } from "../models"; /// @@ -44,7 +51,7 @@ export interface RoutePolicies { /** * Implements Route Policy PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param routePolicyName Name of the Route Policy + * @param routePolicyName Name of the Route Policy. * @param body Request payload. * @param options The options parameters. */ @@ -62,7 +69,7 @@ export interface RoutePolicies { /** * Implements Route Policy PUT method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param routePolicyName Name of the Route Policy + * @param routePolicyName Name of the Route Policy. * @param body Request payload. * @param options The options parameters. */ @@ -75,7 +82,7 @@ export interface RoutePolicies { /** * Implements Route Policy GET method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param routePolicyName Name of the Route Policy + * @param routePolicyName Name of the Route Policy. * @param options The options parameters. */ get( @@ -86,7 +93,7 @@ export interface RoutePolicies { /** * API to update certain properties of the Route Policy resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param routePolicyName Name of the Route Policy + * @param routePolicyName Name of the Route Policy. * @param body Route Policy properties to update. * @param options The options parameters. */ @@ -104,7 +111,7 @@ export interface RoutePolicies { /** * API to update certain properties of the Route Policy resource. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param routePolicyName Name of the Route Policy + * @param routePolicyName Name of the Route Policy. * @param body Route Policy properties to update. * @param options The options parameters. */ @@ -117,7 +124,7 @@ export interface RoutePolicies { /** * Implements Route Policy DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param routePolicyName Name of the Route Policy + * @param routePolicyName Name of the Route Policy. * @param options The options parameters. */ beginDelete( @@ -128,7 +135,7 @@ export interface RoutePolicies { /** * Implements Route Policy DELETE method. * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param routePolicyName Name of the Route Policy + * @param routePolicyName Name of the Route Policy. * @param options The options parameters. */ beginDeleteAndWait( @@ -136,4 +143,89 @@ export interface RoutePolicies { routePolicyName: string, options?: RoutePoliciesDeleteOptionalParams ): Promise; + /** + * Updated the admin state for this Route Policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routePolicyName Name of the Route Policy. + * @param body Request payload. + * @param options The options parameters. + */ + beginUpdateAdministrativeState( + resourceGroupName: string, + routePolicyName: string, + body: UpdateAdministrativeState, + options?: RoutePoliciesUpdateAdministrativeStateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RoutePoliciesUpdateAdministrativeStateResponse + > + >; + /** + * Updated the admin state for this Route Policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routePolicyName Name of the Route Policy. + * @param body Request payload. + * @param options The options parameters. + */ + beginUpdateAdministrativeStateAndWait( + resourceGroupName: string, + routePolicyName: string, + body: UpdateAdministrativeState, + options?: RoutePoliciesUpdateAdministrativeStateOptionalParams + ): Promise; + /** + * Validates the configuration of the resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routePolicyName Name of the Route Policy. + * @param options The options parameters. + */ + beginValidateConfiguration( + resourceGroupName: string, + routePolicyName: string, + options?: RoutePoliciesValidateConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RoutePoliciesValidateConfigurationResponse + > + >; + /** + * Validates the configuration of the resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routePolicyName Name of the Route Policy. + * @param options The options parameters. + */ + beginValidateConfigurationAndWait( + resourceGroupName: string, + routePolicyName: string, + options?: RoutePoliciesValidateConfigurationOptionalParams + ): Promise; + /** + * Commits the configuration of the given resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routePolicyName Name of the Route Policy. + * @param options The options parameters. + */ + beginCommitConfiguration( + resourceGroupName: string, + routePolicyName: string, + options?: RoutePoliciesCommitConfigurationOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + RoutePoliciesCommitConfigurationResponse + > + >; + /** + * Commits the configuration of the given resources. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param routePolicyName Name of the Route Policy. + * @param options The options parameters. + */ + beginCommitConfigurationAndWait( + resourceGroupName: string, + routePolicyName: string, + options?: RoutePoliciesCommitConfigurationOptionalParams + ): Promise; } diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/test/managednetworkfabric_operations_test.spec.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/test/managednetworkfabric_operations_test.spec.ts deleted file mode 100644 index 2c99c1b3747e..000000000000 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/test/managednetworkfabric_operations_test.spec.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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 { - env, - Recorder, - RecorderStartOptions, - delay, - isPlaybackMode, -} from "@azure-tools/test-recorder"; -import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; -import { Context } from "mocha"; -import { AzureNetworkFabricManagementServiceAPI } from "../src/azureNetworkFabricManagementServiceAPI"; - -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 -}; - -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; - -describe("managednetworkfabric test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: AzureNetworkFabricManagementServiceAPI; - let location: string; - let resourceGroup: string; - let resourcename: string; - - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); - await recorder.start(recorderOptions); - subscriptionId = env.SUBSCRIPTION_ID || ''; - // This is an example of how the environment variables are used - const credential = createTestCredential(); - client = new AzureNetworkFabricManagementServiceAPI(credential, subscriptionId, recorder.configureClientOptions({})); - location = "eastus"; - resourceGroup = "myjstest"; - resourcename = "resourcetest"; - - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it.skip("accessControlLists create test", async function () { - const res = await client.accessControlLists.create( - resourceGroup, - resourcename, - { - addressFamily: "ipv4", - conditions: [ - { - action: "allow", - destinationAddress: "1.1.1.1", - destinationPort: "21", - sequenceNumber: 3, - sourceAddress: "2.2.2.2", - sourcePort: "65000", - protocol: 6 - } - ], - location - }); - assert.equal(res.name, resourcename); - }); - - it.skip("accessControlLists get test", async function () { - const res = await client.accessControlLists.get(resourceGroup, - resourcename); - assert.equal(res.name, resourcename); - }); - - it.skip("accessControlLists list test", async function () { - const resArray = new Array(); - for await (let item of client.accessControlLists.listByResourceGroup(resourceGroup)) { - resArray.push(item); - } - assert.equal(resArray.length, 1); - }); - - it.skip("accessControlLists delete test", async function () { - const resArray = new Array(); - const res = await client.accessControlLists.delete(resourceGroup, resourcename - ) - for await (let item of client.accessControlLists.listByResourceGroup(resourceGroup)) { - resArray.push(item); - } - assert.equal(resArray.length, 0); - }); - - it("operation list test", async function () { - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - assert.notEqual(resArray.length, 0); - }); -}) diff --git a/sdk/managednetworkfabric/arm-managednetworkfabric/test/sampleTest.ts b/sdk/managednetworkfabric/arm-managednetworkfabric/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/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/managednetworkfabric/arm-managednetworkfabric/tsconfig.json b/sdk/managednetworkfabric/arm-managednetworkfabric/tsconfig.json index 37656d71185f..3e6ae96443f3 100644 --- a/sdk/managednetworkfabric/arm-managednetworkfabric/tsconfig.json +++ b/sdk/managednetworkfabric/arm-managednetworkfabric/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-managednetworkfabric": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"