From 94957931e0cf6d0c08fdfa7d4bc03be4523f7c61 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 18 Nov 2024 02:36:18 +0000 Subject: [PATCH] CodeGen from PR 31527 in Azure/azure-rest-api-specs Merge 6d3e3f138bef146d09e2a331b92e8c517032fbcb into e838027e88cca634c1545e744630de9262a6e72a --- common/config/rush/pnpm-lock.yaml | 9 +- .../arm-azurestackhci/CHANGELOG.md | 590 +- .../arm-azurestackhci/_meta.json | 10 +- .../arm-azurestackhci/package.json | 69 +- .../review/arm-azurestackhci.api.md | 2809 ++++++--- .../arm-azurestackhci/sample.env | 5 +- .../src/azureStackHCIClient.ts | 52 +- .../arm-azurestackhci/src/models/index.ts | 3075 +++++---- .../arm-azurestackhci/src/models/mappers.ts | 5522 +++++++++++------ .../src/models/parameters.ts | 217 +- .../src/operations/clusters.ts | 260 - .../src/operations/edgeDevices.ts | 12 +- .../src/operations/galleryImagesOperations.ts | 724 +++ .../src/operations/guestAgentOperations.ts | 294 + .../src/operations/guestAgents.ts | 167 + .../hybridIdentityMetadataOperations.ts | 203 + .../arm-azurestackhci/src/operations/index.ts | 10 + .../operations/logicalNetworksOperations.ts | 725 +++ .../marketplaceGalleryImagesOperations.ts | 736 +++ .../operations/networkInterfacesOperations.ts | 736 +++ .../operations/storageContainersOperations.ts | 736 +++ .../operations/virtualHardDisksOperations.ts | 736 +++ .../src/operations/virtualMachineInstances.ts | 896 +++ .../src/operationsInterfaces/clusters.ts | 68 - .../src/operationsInterfaces/edgeDevices.ts | 8 +- .../galleryImagesOperations.ts | 149 + .../guestAgentOperations.ts | 81 + .../src/operationsInterfaces/guestAgents.ts | 25 + .../hybridIdentityMetadataOperations.ts | 40 + .../src/operationsInterfaces/index.ts | 10 + .../logicalNetworksOperations.ts | 148 + .../marketplaceGalleryImagesOperations.ts | 149 + .../networkInterfacesOperations.ts | 149 + .../storageContainersOperations.ts | 149 + .../virtualHardDisksOperations.ts | 149 + .../virtualMachineInstances.ts | 214 + .../arm-azurestackhci/test/sampleTest.ts | 43 + .../arm-azurestackhci/tsconfig.json | 12 +- 38 files changed, 15561 insertions(+), 4426 deletions(-) create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operations/galleryImagesOperations.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operations/guestAgentOperations.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operations/guestAgents.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operations/hybridIdentityMetadataOperations.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operations/logicalNetworksOperations.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operations/marketplaceGalleryImagesOperations.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operations/networkInterfacesOperations.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operations/storageContainersOperations.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operations/virtualHardDisksOperations.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operations/virtualMachineInstances.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/galleryImagesOperations.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/guestAgentOperations.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/guestAgents.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/hybridIdentityMetadataOperations.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/logicalNetworksOperations.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/marketplaceGalleryImagesOperations.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/networkInterfacesOperations.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/storageContainersOperations.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/virtualHardDisksOperations.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/virtualMachineInstances.ts create mode 100644 sdk/azurestackhci/arm-azurestackhci/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index e2ac4a887b9b..1abe494f3bec 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -13317,7 +13317,7 @@ packages: dev: false file:projects/arm-azurestackhci.tgz: - resolution: {integrity: sha512-xLo7zCcLoXhktrVjbHdIzHW5DQa6ojH4kFBwj/Xi3ARgtXvxIyJBzT2YIIY2i/fzHS4OaWIPnmwWT4FYZwMB0Q==, tarball: file:projects/arm-azurestackhci.tgz} + resolution: {integrity: sha512-AOj5pk516r+ba/WDeb01st+Vego2SK5s+EizTaM7x0MaHLrciLUYPiwY0eH0A2PS3KEZhWlw40VbIdjoplStlw==, tarball: file:projects/arm-azurestackhci.tgz} name: '@rush-temp/arm-azurestackhci' version: 0.0.0 dependencies: @@ -13325,16 +13325,19 @@ packages: '@azure-tools/test-recorder': 3.5.2 '@azure/abort-controller': 1.1.0 '@azure/core-lro': 2.7.2 + '@microsoft/api-extractor': 7.47.11(@types/node@18.19.64) '@types/chai': 4.3.20 '@types/mocha': 10.0.9 '@types/node': 18.19.64 chai: 4.3.10 + cross-env: 7.0.3 dotenv: 16.4.5 mocha: 10.8.2 ts-node: 10.9.2(@types/node@18.19.64)(typescript@5.6.3) tslib: 2.8.1 tsx: 4.19.2 typescript: 5.6.3 + uglify-js: 3.19.3 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' @@ -15416,7 +15419,7 @@ packages: dev: false file:projects/arm-hybridcompute.tgz: - resolution: {integrity: sha512-+DX7eIMt7WAbn6AD+QZpjVyoMuXdNpGH452FuoUH2UvFhOBtlZD3B5y8bwW/oE8d3E/u2eZ3B4N2cAFV32bgbw==, tarball: file:projects/arm-hybridcompute.tgz} + resolution: {integrity: sha512-IxFMCCeH0D2P6u+4Vwi9ROrWBKeO0DJEfs2jxyfJnrGNMrRKAWfplx0QVZY6ETK5Thjlm3myTMffxO2BT5PBiA==, tarball: file:projects/arm-hybridcompute.tgz} name: '@rush-temp/arm-hybridcompute' version: 0.0.0 dependencies: @@ -19240,7 +19243,7 @@ packages: dev: false file:projects/communication-job-router.tgz: - resolution: {integrity: sha512-xPt7oEFIEnDcZHXkEsgPlaOBwbjSF6dQq4uDtXsp/yeslQgiTdGNnO5bUMfuqpTTiiwSsXCyCKEy2FmmrcRHLw==, tarball: file:projects/communication-job-router.tgz} + resolution: {integrity: sha512-2asWr03USbfs287ufZkj8sgX94e8AIkX8BU9mVvBxqPp+5NwM8F2I2OeKa/ZRb9z7dcawliux8IwyB2kNGIEAg==, tarball: file:projects/communication-job-router.tgz} name: '@rush-temp/communication-job-router' version: 0.0.0 dependencies: diff --git a/sdk/azurestackhci/arm-azurestackhci/CHANGELOG.md b/sdk/azurestackhci/arm-azurestackhci/CHANGELOG.md index 854bfa6033a2..4d449924f2f8 100644 --- a/sdk/azurestackhci/arm-azurestackhci/CHANGELOG.md +++ b/sdk/azurestackhci/arm-azurestackhci/CHANGELOG.md @@ -1,15 +1,591 @@ # Release History - -## 4.0.0-beta.3 (Unreleased) - + +## 4.0.0 (2024-11-18) + ### Features Added + - Added operation group DeploymentSettings + - Added operation group EdgeDevices + - Added operation group GalleryImagesOperations + - Added operation group GuestAgentOperations + - Added operation group GuestAgents + - Added operation group HybridIdentityMetadataOperations + - Added operation group LogicalNetworksOperations + - Added operation group MarketplaceGalleryImagesOperations + - Added operation group NetworkInterfacesOperations + - Added operation group Offers + - Added operation group Publishers + - Added operation group SecuritySettings + - Added operation group Skus + - Added operation group StorageContainersOperations + - Added operation group UpdateRuns + - Added operation group Updates + - Added operation group UpdateSummariesOperations + - Added operation group VirtualHardDisksOperations + - Added operation group VirtualMachineInstances + - Added operation ArcSettings.beginInitializeDisableProcess + - Added operation ArcSettings.beginInitializeDisableProcessAndWait + - Added operation ArcSettings.consentAndInstallDefaultExtensions + - Added operation Clusters.beginExtendSoftwareAssuranceBenefit + - Added operation Clusters.beginExtendSoftwareAssuranceBenefitAndWait + - Added operation Extensions.beginUpgrade + - Added operation Extensions.beginUpgradeAndWait + - Added Interface AdapterPropertyOverrides + - Added Interface ArcSettingsConsentAndInstallDefaultExtensionsOptionalParams + - Added Interface ArcSettingsInitializeDisableProcessOptionalParams + - Added Interface ClustersExtendSoftwareAssuranceBenefitOptionalParams + - Added Interface DefaultExtensionDetails + - Added Interface DeploymentCluster + - Added Interface DeploymentConfiguration + - Added Interface DeploymentData + - Added Interface DeploymentSecuritySettings + - Added Interface DeploymentSetting + - Added Interface DeploymentSettingListResult + - Added Interface DeploymentSettingsCreateOrUpdateHeaders + - Added Interface DeploymentSettingsCreateOrUpdateOptionalParams + - Added Interface DeploymentSettingsDeleteHeaders + - Added Interface DeploymentSettingsDeleteOptionalParams + - Added Interface DeploymentSettingsGetOptionalParams + - Added Interface DeploymentSettingsListByClustersNextOptionalParams + - Added Interface DeploymentSettingsListByClustersOptionalParams + - Added Interface DeploymentStatus + - Added Interface DeploymentStep + - Added Interface DeviceConfiguration + - Added Interface EdgeDevice + - Added Interface EdgeDeviceListResult + - Added Interface EdgeDevicesCreateOrUpdateHeaders + - Added Interface EdgeDevicesCreateOrUpdateOptionalParams + - Added Interface EdgeDevicesDeleteHeaders + - Added Interface EdgeDevicesDeleteOptionalParams + - Added Interface EdgeDevicesGetOptionalParams + - Added Interface EdgeDevicesListNextOptionalParams + - Added Interface EdgeDevicesListOptionalParams + - Added Interface EdgeDevicesValidateHeaders + - Added Interface EdgeDevicesValidateOptionalParams + - Added Interface ExtendedLocation + - Added Interface ExtensionInstanceView + - Added Interface ExtensionInstanceViewStatus + - Added Interface ExtensionPatch + - Added Interface ExtensionPatchParameters + - Added Interface ExtensionsUpgradeOptionalParams + - Added Interface ExtensionUpgradeParameters + - Added Interface GalleryDiskImage + - Added Interface GalleryImageIdentifier + - Added Interface GalleryImages + - Added Interface GalleryImagesCreateOrUpdateOptionalParams + - Added Interface GalleryImagesDeleteHeaders + - Added Interface GalleryImagesDeleteOptionalParams + - Added Interface GalleryImagesGetOptionalParams + - Added Interface GalleryImagesListAllNextOptionalParams + - Added Interface GalleryImagesListAllOptionalParams + - Added Interface GalleryImagesListNextOptionalParams + - Added Interface GalleryImagesListOptionalParams + - Added Interface GalleryImagesListResult + - Added Interface GalleryImageStatus + - Added Interface GalleryImageStatusDownloadStatus + - Added Interface GalleryImageStatusProvisioningStatus + - Added Interface GalleryImagesUpdateHeaders + - Added Interface GalleryImagesUpdateOptionalParams + - Added Interface GalleryImagesUpdateRequest + - Added Interface GalleryImageVersion + - Added Interface GalleryImageVersionStorageProfile + - Added Interface GalleryOSDiskImage + - Added Interface GuestAgent + - Added Interface GuestAgentCreateOptionalParams + - Added Interface GuestAgentDeleteHeaders + - Added Interface GuestAgentDeleteOptionalParams + - Added Interface GuestAgentGetOptionalParams + - Added Interface GuestAgentInstallStatus + - Added Interface GuestAgentList + - Added Interface GuestAgentsListNextOptionalParams + - Added Interface GuestAgentsListOptionalParams + - Added Interface GuestCredential + - Added Interface HardwareProfileUpdate + - Added Interface HostNetwork + - Added Interface HttpProxyConfiguration + - Added Interface HybridIdentityMetadata + - Added Interface HybridIdentityMetadataGetOptionalParams + - Added Interface HybridIdentityMetadataList + - Added Interface HybridIdentityMetadataListNextOptionalParams + - Added Interface HybridIdentityMetadataListOptionalParams + - Added Interface Identity + - Added Interface InfrastructureNetwork + - Added Interface InstanceViewStatus + - Added Interface Intents + - Added Interface InterfaceDNSSettings + - Added Interface IPConfiguration + - Added Interface IPConfigurationProperties + - Added Interface IPConfigurationPropertiesSubnet + - Added Interface IPPool + - Added Interface IPPoolInfo + - Added Interface IpPools + - Added Interface IsolatedVmAttestationConfiguration + - Added Interface LogicalNetworkPropertiesDhcpOptions + - Added Interface LogicalNetworks + - Added Interface LogicalNetworksCreateOrUpdateOptionalParams + - Added Interface LogicalNetworksDeleteHeaders + - Added Interface LogicalNetworksDeleteOptionalParams + - Added Interface LogicalNetworksGetOptionalParams + - Added Interface LogicalNetworksListAllNextOptionalParams + - Added Interface LogicalNetworksListAllOptionalParams + - Added Interface LogicalNetworksListNextOptionalParams + - Added Interface LogicalNetworksListOptionalParams + - Added Interface LogicalNetworksListResult + - Added Interface LogicalNetworkStatus + - Added Interface LogicalNetworkStatusProvisioningStatus + - Added Interface LogicalNetworksUpdateHeaders + - Added Interface LogicalNetworksUpdateOptionalParams + - Added Interface LogicalNetworksUpdateRequest + - Added Interface MarketplaceGalleryImages + - Added Interface MarketplaceGalleryImagesCreateOrUpdateOptionalParams + - Added Interface MarketplaceGalleryImagesDeleteHeaders + - Added Interface MarketplaceGalleryImagesDeleteOptionalParams + - Added Interface MarketplaceGalleryImagesGetOptionalParams + - Added Interface MarketplaceGalleryImagesListAllNextOptionalParams + - Added Interface MarketplaceGalleryImagesListAllOptionalParams + - Added Interface MarketplaceGalleryImagesListNextOptionalParams + - Added Interface MarketplaceGalleryImagesListOptionalParams + - Added Interface MarketplaceGalleryImagesListResult + - Added Interface MarketplaceGalleryImageStatus + - Added Interface MarketplaceGalleryImageStatusDownloadStatus + - Added Interface MarketplaceGalleryImageStatusProvisioningStatus + - Added Interface MarketplaceGalleryImagesUpdateHeaders + - Added Interface MarketplaceGalleryImagesUpdateOptionalParams + - Added Interface MarketplaceGalleryImagesUpdateRequest + - Added Interface NetworkInterfaces + - Added Interface NetworkInterfacesCreateOrUpdateOptionalParams + - Added Interface NetworkInterfacesDeleteHeaders + - Added Interface NetworkInterfacesDeleteOptionalParams + - Added Interface NetworkInterfacesGetOptionalParams + - Added Interface NetworkInterfacesListAllNextOptionalParams + - Added Interface NetworkInterfacesListAllOptionalParams + - Added Interface NetworkInterfacesListNextOptionalParams + - Added Interface NetworkInterfacesListOptionalParams + - Added Interface NetworkInterfacesListResult + - Added Interface NetworkInterfaceStatus + - Added Interface NetworkInterfaceStatusProvisioningStatus + - Added Interface NetworkInterfacesUpdateHeaders + - Added Interface NetworkInterfacesUpdateOptionalParams + - Added Interface NetworkInterfacesUpdateRequest + - Added Interface NetworkProfileUpdate + - Added Interface NetworkProfileUpdateNetworkInterfacesItem + - Added Interface NicDetail + - Added Interface Observability + - Added Interface Offer + - Added Interface OfferList + - Added Interface OffersGetOptionalParams + - Added Interface OffersListByClusterNextOptionalParams + - Added Interface OffersListByClusterOptionalParams + - Added Interface OffersListByPublisherNextOptionalParams + - Added Interface OffersListByPublisherOptionalParams + - Added Interface OptionalServices + - Added Interface OsProfileUpdate + - Added Interface OsProfileUpdateLinuxConfiguration + - Added Interface OsProfileUpdateWindowsConfiguration + - Added Interface PackageVersionInfo + - Added Interface PhysicalNodes + - Added Interface PrecheckResult + - Added Interface PrecheckResultTags + - Added Interface Publisher + - Added Interface PublisherList + - Added Interface PublishersGetOptionalParams + - Added Interface PublishersListByClusterNextOptionalParams + - Added Interface PublishersListByClusterOptionalParams + - Added Interface QosPolicyOverrides + - Added Interface ReportedProperties + - Added Interface Route + - Added Interface RouteTable + - Added Interface ScaleUnits + - Added Interface SecurityComplianceStatus + - Added Interface SecuritySetting + - Added Interface SecuritySettingListResult + - Added Interface SecuritySettingsCreateOrUpdateHeaders + - Added Interface SecuritySettingsCreateOrUpdateOptionalParams + - Added Interface SecuritySettingsDeleteHeaders + - Added Interface SecuritySettingsDeleteOptionalParams + - Added Interface SecuritySettingsGetOptionalParams + - Added Interface SecuritySettingsListByClustersNextOptionalParams + - Added Interface SecuritySettingsListByClustersOptionalParams + - Added Interface ServiceConfiguration + - Added Interface Sku + - Added Interface SkuList + - Added Interface SkuMappings + - Added Interface SkusGetOptionalParams + - Added Interface SkusListByOfferNextOptionalParams + - Added Interface SkusListByOfferOptionalParams + - Added Interface SoftwareAssuranceChangeRequest + - Added Interface SoftwareAssuranceChangeRequestProperties + - Added Interface SoftwareAssuranceProperties + - Added Interface SshConfiguration + - Added Interface SshPublicKey + - Added Interface Step + - Added Interface Storage_2 + - Added Interface StorageContainers + - Added Interface StorageContainersCreateOrUpdateOptionalParams + - Added Interface StorageContainersDeleteHeaders + - Added Interface StorageContainersDeleteOptionalParams + - Added Interface StorageContainersGetOptionalParams + - Added Interface StorageContainersListAllNextOptionalParams + - Added Interface StorageContainersListAllOptionalParams + - Added Interface StorageContainersListNextOptionalParams + - Added Interface StorageContainersListOptionalParams + - Added Interface StorageContainersListResult + - Added Interface StorageContainerStatus + - Added Interface StorageContainerStatusProvisioningStatus + - Added Interface StorageContainersUpdateHeaders + - Added Interface StorageContainersUpdateOptionalParams + - Added Interface StorageContainersUpdateRequest + - Added Interface StorageNetworks + - Added Interface StorageProfileUpdate + - Added Interface StorageProfileUpdateDataDisksItem + - Added Interface Subnet + - Added Interface SubnetPropertiesFormatIpConfigurationReferencesItem + - Added Interface SystemData + - Added Interface Update + - Added Interface UpdateList + - Added Interface UpdatePrerequisite + - Added Interface UpdateRun + - Added Interface UpdateRunList + - Added Interface UpdateRunsDeleteHeaders + - Added Interface UpdateRunsDeleteOptionalParams + - Added Interface UpdateRunsGetOptionalParams + - Added Interface UpdateRunsListNextOptionalParams + - Added Interface UpdateRunsListOptionalParams + - Added Interface UpdateRunsPutOptionalParams + - Added Interface UpdatesDeleteHeaders + - Added Interface UpdatesDeleteOptionalParams + - Added Interface UpdatesGetOptionalParams + - Added Interface UpdatesListNextOptionalParams + - Added Interface UpdatesListOptionalParams + - Added Interface UpdatesPostHeaders + - Added Interface UpdatesPostOptionalParams + - Added Interface UpdatesPutOptionalParams + - Added Interface UpdateSummaries + - Added Interface UpdateSummariesDeleteHeaders + - Added Interface UpdateSummariesDeleteOptionalParams + - Added Interface UpdateSummariesGetOptionalParams + - Added Interface UpdateSummariesList + - Added Interface UpdateSummariesListNextOptionalParams + - Added Interface UpdateSummariesListOptionalParams + - Added Interface UpdateSummariesPutOptionalParams + - Added Interface UserAssignedIdentity + - Added Interface ValidateRequest + - Added Interface ValidateResponse + - Added Interface ValidationStatus + - Added Interface VirtualHardDisks + - Added Interface VirtualHardDisksCreateOrUpdateOptionalParams + - Added Interface VirtualHardDisksDeleteHeaders + - Added Interface VirtualHardDisksDeleteOptionalParams + - Added Interface VirtualHardDisksGetOptionalParams + - Added Interface VirtualHardDisksListAllNextOptionalParams + - Added Interface VirtualHardDisksListAllOptionalParams + - Added Interface VirtualHardDisksListNextOptionalParams + - Added Interface VirtualHardDisksListOptionalParams + - Added Interface VirtualHardDisksListResult + - Added Interface VirtualHardDiskStatus + - Added Interface VirtualHardDiskStatusProvisioningStatus + - Added Interface VirtualHardDisksUpdateHeaders + - Added Interface VirtualHardDisksUpdateOptionalParams + - Added Interface VirtualHardDisksUpdateRequest + - Added Interface VirtualMachineConfigAgentInstanceView + - Added Interface VirtualMachineInstance + - Added Interface VirtualMachineInstanceListResult + - Added Interface VirtualMachineInstancePropertiesHardwareProfile + - Added Interface VirtualMachineInstancePropertiesHardwareProfileDynamicMemoryConfig + - Added Interface VirtualMachineInstancePropertiesNetworkProfile + - Added Interface VirtualMachineInstancePropertiesNetworkProfileNetworkInterfacesItem + - Added Interface VirtualMachineInstancePropertiesOsProfile + - Added Interface VirtualMachineInstancePropertiesOsProfileLinuxConfiguration + - Added Interface VirtualMachineInstancePropertiesOsProfileWindowsConfiguration + - Added Interface VirtualMachineInstancePropertiesSecurityProfile + - Added Interface VirtualMachineInstancePropertiesSecurityProfileUefiSettings + - Added Interface VirtualMachineInstancePropertiesStorageProfile + - Added Interface VirtualMachineInstancePropertiesStorageProfileDataDisksItem + - Added Interface VirtualMachineInstancePropertiesStorageProfileImageReference + - Added Interface VirtualMachineInstancePropertiesStorageProfileOsDisk + - Added Interface VirtualMachineInstancesCreateOrUpdateOptionalParams + - Added Interface VirtualMachineInstancesDeleteHeaders + - Added Interface VirtualMachineInstancesDeleteOptionalParams + - Added Interface VirtualMachineInstancesGetOptionalParams + - Added Interface VirtualMachineInstancesListNextOptionalParams + - Added Interface VirtualMachineInstancesListOptionalParams + - Added Interface VirtualMachineInstancesRestartHeaders + - Added Interface VirtualMachineInstancesRestartOptionalParams + - Added Interface VirtualMachineInstancesStartHeaders + - Added Interface VirtualMachineInstancesStartOptionalParams + - Added Interface VirtualMachineInstancesStopHeaders + - Added Interface VirtualMachineInstancesStopOptionalParams + - Added Interface VirtualMachineInstanceStatus + - Added Interface VirtualMachineInstanceStatusProvisioningStatus + - Added Interface VirtualMachineInstancesUpdateHeaders + - Added Interface VirtualMachineInstancesUpdateOptionalParams + - Added Interface VirtualMachineInstanceUpdateProperties + - Added Interface VirtualMachineInstanceUpdateRequest + - Added Interface VirtualMachineInstanceView + - Added Interface VirtualSwitchConfigurationOverrides + - Added Type Alias ArcSettingsConsentAndInstallDefaultExtensionsResponse + - Added Type Alias AvailabilityType + - Added Type Alias CloudInitDataSource + - Added Type Alias ClusterNodeType + - Added Type Alias ClustersExtendSoftwareAssuranceBenefitResponse + - Added Type Alias ComplianceAssignmentType + - Added Type Alias ComplianceStatus + - Added Type Alias ConnectivityStatus + - Added Type Alias DeploymentMode + - Added Type Alias DeploymentSettingsCreateOrUpdateResponse + - Added Type Alias DeploymentSettingsDeleteResponse + - Added Type Alias DeploymentSettingsGetResponse + - Added Type Alias DeploymentSettingsListByClustersNextResponse + - Added Type Alias DeploymentSettingsListByClustersResponse + - Added Type Alias DiskFileFormat + - Added Type Alias EdgeDevicesCreateOrUpdateResponse + - Added Type Alias EdgeDevicesDeleteResponse + - Added Type Alias EdgeDevicesGetResponse + - Added Type Alias EdgeDevicesListNextResponse + - Added Type Alias EdgeDevicesListResponse + - Added Type Alias EdgeDevicesValidateResponse + - Added Type Alias ExtendedLocationTypes + - Added Type Alias ExtensionManagedBy + - Added Type Alias GalleryImagesCreateOrUpdateResponse + - Added Type Alias GalleryImagesDeleteResponse + - Added Type Alias GalleryImagesGetResponse + - Added Type Alias GalleryImagesListAllNextResponse + - Added Type Alias GalleryImagesListAllResponse + - Added Type Alias GalleryImagesListNextResponse + - Added Type Alias GalleryImagesListResponse + - Added Type Alias GalleryImagesUpdateResponse + - Added Type Alias GuestAgentCreateResponse + - Added Type Alias GuestAgentDeleteResponse + - Added Type Alias GuestAgentGetResponse + - Added Type Alias GuestAgentsListNextResponse + - Added Type Alias GuestAgentsListResponse + - Added Type Alias HealthState + - Added Type Alias HybridIdentityMetadataGetResponse + - Added Type Alias HybridIdentityMetadataListNextResponse + - Added Type Alias HybridIdentityMetadataListResponse + - Added Type Alias HyperVGeneration + - Added Type Alias IpAllocationMethodEnum + - Added Type Alias IPPoolTypeEnum + - Added Type Alias LogicalNetworksCreateOrUpdateResponse + - Added Type Alias LogicalNetworksDeleteResponse + - Added Type Alias LogicalNetworksGetResponse + - Added Type Alias LogicalNetworksListAllNextResponse + - Added Type Alias LogicalNetworksListAllResponse + - Added Type Alias LogicalNetworksListNextResponse + - Added Type Alias LogicalNetworksListResponse + - Added Type Alias LogicalNetworksUpdateResponse + - Added Type Alias ManagedServiceIdentityType + - Added Type Alias MarketplaceGalleryImagesCreateOrUpdateResponse + - Added Type Alias MarketplaceGalleryImagesDeleteResponse + - Added Type Alias MarketplaceGalleryImagesGetResponse + - Added Type Alias MarketplaceGalleryImagesListAllNextResponse + - Added Type Alias MarketplaceGalleryImagesListAllResponse + - Added Type Alias MarketplaceGalleryImagesListNextResponse + - Added Type Alias MarketplaceGalleryImagesListResponse + - Added Type Alias MarketplaceGalleryImagesUpdateResponse + - Added Type Alias NetworkInterfacesCreateOrUpdateResponse + - Added Type Alias NetworkInterfacesDeleteResponse + - Added Type Alias NetworkInterfacesGetResponse + - Added Type Alias NetworkInterfacesListAllNextResponse + - Added Type Alias NetworkInterfacesListAllResponse + - Added Type Alias NetworkInterfacesListNextResponse + - Added Type Alias NetworkInterfacesListResponse + - Added Type Alias NetworkInterfacesUpdateResponse + - Added Type Alias OemActivation + - Added Type Alias OffersGetResponse + - Added Type Alias OffersListByClusterNextResponse + - Added Type Alias OffersListByClusterResponse + - Added Type Alias OffersListByPublisherNextResponse + - Added Type Alias OffersListByPublisherResponse + - Added Type Alias OperatingSystemTypes + - Added Type Alias PowerStateEnum + - Added Type Alias ProvisioningAction + - Added Type Alias ProvisioningStateEnum + - Added Type Alias PublishersGetResponse + - Added Type Alias PublishersListByClusterNextResponse + - Added Type Alias PublishersListByClusterResponse + - Added Type Alias RebootRequirement + - Added Type Alias SecuritySettingsCreateOrUpdateResponse + - Added Type Alias SecuritySettingsDeleteResponse + - Added Type Alias SecuritySettingsGetResponse + - Added Type Alias SecuritySettingsListByClustersNextResponse + - Added Type Alias SecuritySettingsListByClustersResponse + - Added Type Alias SecurityTypes + - Added Type Alias ServiceName + - Added Type Alias Severity + - Added Type Alias SkusGetResponse + - Added Type Alias SkusListByOfferNextResponse + - Added Type Alias SkusListByOfferResponse + - Added Type Alias SoftwareAssuranceIntent + - Added Type Alias SoftwareAssuranceStatus + - Added Type Alias State + - Added Type Alias StatusLevelTypes + - Added Type Alias StatusTypes + - Added Type Alias StorageContainersCreateOrUpdateResponse + - Added Type Alias StorageContainersDeleteResponse + - Added Type Alias StorageContainersGetResponse + - Added Type Alias StorageContainersListAllNextResponse + - Added Type Alias StorageContainersListAllResponse + - Added Type Alias StorageContainersListNextResponse + - Added Type Alias StorageContainersListResponse + - Added Type Alias StorageContainersUpdateResponse + - Added Type Alias UpdateRunPropertiesState + - Added Type Alias UpdateRunsGetResponse + - Added Type Alias UpdateRunsListNextResponse + - Added Type Alias UpdateRunsListResponse + - Added Type Alias UpdateRunsPutResponse + - Added Type Alias UpdatesGetResponse + - Added Type Alias UpdatesListNextResponse + - Added Type Alias UpdatesListResponse + - Added Type Alias UpdatesPutResponse + - Added Type Alias UpdateSummariesGetResponse + - Added Type Alias UpdateSummariesListNextResponse + - Added Type Alias UpdateSummariesListResponse + - Added Type Alias UpdateSummariesPropertiesState + - Added Type Alias UpdateSummariesPutResponse + - Added Type Alias VirtualHardDisksCreateOrUpdateResponse + - Added Type Alias VirtualHardDisksDeleteResponse + - Added Type Alias VirtualHardDisksGetResponse + - Added Type Alias VirtualHardDisksListAllNextResponse + - Added Type Alias VirtualHardDisksListAllResponse + - Added Type Alias VirtualHardDisksListNextResponse + - Added Type Alias VirtualHardDisksListResponse + - Added Type Alias VirtualHardDisksUpdateResponse + - Added Type Alias VirtualMachineInstancesCreateOrUpdateResponse + - Added Type Alias VirtualMachineInstancesDeleteResponse + - Added Type Alias VirtualMachineInstancesGetResponse + - Added Type Alias VirtualMachineInstancesListNextResponse + - Added Type Alias VirtualMachineInstancesListResponse + - Added Type Alias VirtualMachineInstancesRestartResponse + - Added Type Alias VirtualMachineInstancesStartResponse + - Added Type Alias VirtualMachineInstancesStopResponse + - Added Type Alias VirtualMachineInstancesUpdateResponse + - Added Type Alias VmSizeEnum + - Interface ArcConnectivityProperties has a new optional parameter serviceConfigurations + - Interface ArcSetting has a new optional parameter defaultExtensions + - Interface Cluster has a new optional parameter connectivityStatus + - Interface Cluster has a new optional parameter isolatedVmAttestationConfiguration + - Interface Cluster has a new optional parameter principalId + - Interface Cluster has a new optional parameter resourceProviderObjectId + - Interface Cluster has a new optional parameter softwareAssuranceProperties + - Interface Cluster has a new optional parameter tenantId + - Interface Cluster has a new optional parameter typeIdentityType + - Interface Cluster has a new optional parameter userAssignedIdentities + - Interface ClusterNode has a new optional parameter ehcResourceId + - Interface ClusterNode has a new optional parameter lastLicensingTimestamp + - Interface ClusterNode has a new optional parameter nodeType + - Interface ClusterNode has a new optional parameter oemActivation + - Interface ClusterNode has a new optional parameter osDisplayVersion + - Interface ClusterPatch has a new optional parameter principalId + - Interface ClusterPatch has a new optional parameter tenantId + - Interface ClusterPatch has a new optional parameter type + - Interface ClusterPatch has a new optional parameter userAssignedIdentities + - Interface ClusterReportedProperties has a new optional parameter clusterType + - Interface ClusterReportedProperties has a new optional parameter manufacturer + - Interface ClusterReportedProperties has a new optional parameter oemActivation + - Interface ClusterReportedProperties has a new optional parameter supportedCapabilities + - Interface Extension has a new optional parameter enableAutomaticUpgrade + - Interface Extension has a new optional parameter managedBy + - Interface PerNodeExtensionState has a new optional parameter instanceView + - Interface PerNodeExtensionState has a new optional parameter typeHandlerVersion + - Interface PerNodeState has a new optional parameter arcNodeServicePrincipalObjectId + - Interface Resource has a new optional parameter systemData + - Added Enum KnownAvailabilityType + - Added Enum KnownCloudInitDataSource + - Added Enum KnownClusterNodeType + - Added Enum KnownComplianceAssignmentType + - Added Enum KnownComplianceStatus + - Added Enum KnownConnectivityStatus + - Added Enum KnownDeploymentMode + - Added Enum KnownDiskFileFormat + - Added Enum KnownExtendedLocationTypes + - Added Enum KnownExtensionManagedBy + - Added Enum KnownHealthState + - Added Enum KnownHyperVGeneration + - Added Enum KnownIpAllocationMethodEnum + - Added Enum KnownManagedServiceIdentityType + - Added Enum KnownOemActivation + - Added Enum KnownPowerStateEnum + - Added Enum KnownProvisioningAction + - Added Enum KnownProvisioningStateEnum + - Added Enum KnownRebootRequirement + - Added Enum KnownSecurityTypes + - Added Enum KnownServiceName + - Added Enum KnownSeverity + - Added Enum KnownSoftwareAssuranceIntent + - Added Enum KnownSoftwareAssuranceStatus + - Added Enum KnownState + - Added Enum KnownStatusLevelTypes + - Added Enum KnownStatusTypes + - Added Enum KnownUpdateRunPropertiesState + - Added Enum KnownUpdateSummariesPropertiesState + - Added Enum KnownVmSizeEnum + - Enum KnownArcSettingAggregateState has a new value Accepted + - Enum KnownArcSettingAggregateState has a new value DisableInProgress + - Enum KnownArcSettingAggregateState has a new value Provisioning + - Enum KnownExtensionAggregateState has a new value Accepted + - Enum KnownExtensionAggregateState has a new value Provisioning + - Enum KnownExtensionAggregateState has a new value UpgradeFailedRollbackSucceeded + - Enum KnownNodeArcState has a new value Accepted + - Enum KnownNodeArcState has a new value DisableInProgress + - Enum KnownNodeArcState has a new value InProgress + - Enum KnownNodeArcState has a new value PartiallyConnected + - Enum KnownNodeArcState has a new value PartiallySucceeded + - Enum KnownNodeArcState has a new value Provisioning + - Enum KnownNodeExtensionState has a new value Accepted + - Enum KnownNodeExtensionState has a new value InProgress + - Enum KnownNodeExtensionState has a new value PartiallyConnected + - Enum KnownNodeExtensionState has a new value PartiallySucceeded + - Enum KnownNodeExtensionState has a new value Provisioning + - Enum KnownProvisioningState has a new value Connected + - Enum KnownProvisioningState has a new value Creating + - Enum KnownProvisioningState has a new value Deleted + - Enum KnownProvisioningState has a new value Deleting + - Enum KnownProvisioningState has a new value DisableInProgress + - Enum KnownProvisioningState has a new value Disconnected + - Enum KnownProvisioningState has a new value Error + - Enum KnownProvisioningState has a new value InProgress + - Enum KnownProvisioningState has a new value Moving + - Enum KnownProvisioningState has a new value NotSpecified + - Enum KnownProvisioningState has a new value PartiallyConnected + - Enum KnownProvisioningState has a new value PartiallySucceeded + - Enum KnownProvisioningState has a new value Updating + - Enum KnownStatus has a new value DeploymentFailed + - Enum KnownStatus has a new value DeploymentInProgress + - Enum KnownStatus has a new value DeploymentSuccess + - Enum KnownStatus has a new value Failed + - Enum KnownStatus has a new value InProgress + - Enum KnownStatus has a new value NotSpecified + - Enum KnownStatus has a new value Succeeded + - Enum KnownStatus has a new value ValidationFailed + - Enum KnownStatus has a new value ValidationInProgress + - Enum KnownStatus has a new value ValidationSuccess + ### Breaking Changes -### Bugs Fixed - -### Other Changes - + - Operation Extensions.beginUpdate has a new signature + - Operation Extensions.beginUpdateAndWait has a new signature + - Class AzureStackHCIClient has a new signature + - Interface ArcSetting no longer has parameter createdAt + - Interface ArcSetting no longer has parameter createdBy + - Interface ArcSetting no longer has parameter createdByType + - Interface ArcSetting no longer has parameter lastModifiedAt + - Interface ArcSetting no longer has parameter lastModifiedBy + - Interface ArcSetting no longer has parameter lastModifiedByType + - Interface Cluster no longer has parameter createdAt + - Interface Cluster no longer has parameter createdBy + - Interface Cluster no longer has parameter createdByType + - Interface Cluster no longer has parameter lastModifiedAt + - Interface Cluster no longer has parameter lastModifiedBy + - Interface Cluster no longer has parameter lastModifiedByType + - Interface Extension no longer has parameter createdAt + - Interface Extension no longer has parameter createdBy + - Interface Extension no longer has parameter createdByType + - Interface Extension no longer has parameter lastModifiedAt + - Interface Extension no longer has parameter lastModifiedBy + - Interface Extension no longer has parameter lastModifiedByType + + ## 4.0.0-beta.2 (2024-08-14) Compared with version 3.0.0 diff --git a/sdk/azurestackhci/arm-azurestackhci/_meta.json b/sdk/azurestackhci/arm-azurestackhci/_meta.json index c2400a7ce460..c56b419ad693 100644 --- a/sdk/azurestackhci/arm-azurestackhci/_meta.json +++ b/sdk/azurestackhci/arm-azurestackhci/_meta.json @@ -1,8 +1,8 @@ { - "commit": "9c83b59d4ce4920d87488c46cc20511b5bf474a3", - "readme": "specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCI/readme.md", - "autorest_command": "autorest --version=3.9.7 --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\\azurestackhci\\resource-manager\\Microsoft.AzureStackHCI\\StackHCI\\readme.md --use=@autorest/typescript@6.0.23 --generate-sample=true", + "commit": "71672e845eba644312dbfa6f44d3a6a5993a635b", + "readme": "specification/azurestackhci/resource-manager/readme.md", + "autorest_command": "autorest --version=3.9.7 --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/azurestackhci/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.11", - "use": "@autorest/typescript@6.0.23" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.16", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/azurestackhci/arm-azurestackhci/package.json b/sdk/azurestackhci/arm-azurestackhci/package.json index a710aff9114f..e02a939eba7e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/package.json +++ b/sdk/azurestackhci/arm-azurestackhci/package.json @@ -3,16 +3,16 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for AzureStackHCIClient.", - "version": "4.0.0-beta.3", + "version": "4.0.0", "engines": { "node": ">=18.0.0" }, "dependencies": { - "@azure/abort-controller": "^1.0.0", - "@azure/core-auth": "^1.6.0", - "@azure/core-client": "^1.7.0", "@azure/core-lro": "^2.5.4", + "@azure/abort-controller": "^2.1.2", "@azure/core-paging": "^1.2.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, @@ -28,19 +28,22 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-azurestackhci.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.1.0", - "@azure-tools/test-recorder": "^3.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", - "@types/chai": "^4.2.8", - "@types/mocha": "^10.0.0", - "@types/node": "^18.0.0", - "chai": "^4.2.0", + "@microsoft/api-extractor": "^7.31.1", + "typescript": "~5.6.2", + "uglify-js": "^3.4.9", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", + "@azure/identity": "^4.2.1", + "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^1.1.0", "mocha": "^10.0.0", - "ts-node": "^10.0.0", + "@types/mocha": "^10.0.0", "tsx": "^4.7.1", - "typescript": "~5.6.2" + "@types/chai": "^4.2.8", + "chai": "^4.2.0", + "cross-env": "^7.0.2", + "@types/node": "^18.0.0", + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -68,28 +71,28 @@ ], "scripts": { "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api", - "build:browser": "echo skipped", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "prepack": "npm run build", + "pack": "npm pack 2>&1", + "extract-api": "dev-tool run extract-api", + "lint": "echo skipped", + "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", - "build:samples": "echo skipped.", + "build:browser": "echo skipped", "build:test": "echo skipped", + "build:samples": "echo skipped.", "check-format": "echo skipped", - "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", - "extract-api": "dev-tool run extract-api", "format": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "lint": "echo skipped", - "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "pack": "npm pack 2>&1", - "prepack": "npm run build", "test": "npm run integration-test", - "test:browser": "echo skipped", "test:node": "echo skipped", + "test:browser": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", "unit-test:browser": "echo skipped", - "unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped", "update-snippets": "echo skipped" }, "sideEffects": false, @@ -102,13 +105,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/azurestackhci/arm-azurestackhci", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-azurestackhci?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/azurestackhci/arm-azurestackhci" +} \ No newline at end of file diff --git a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci.api.md b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci.api.md index a3b164183d1f..32cea1cdefe8 100644 --- a/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci.api.md +++ b/sdk/azurestackhci/arm-azurestackhci/review/arm-azurestackhci.api.md @@ -11,10 +11,14 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { SimplePollerLike } from '@azure/core-lro'; // @public -export type AccessLevel = string; +export type ActionType = string; // @public -export type ActionType = string; +export interface AdapterPropertyOverrides { + jumboPacket?: string; + networkDirect?: string; + networkDirectTechnology?: string; +} // @public export interface ArcConnectivityProperties { @@ -22,9 +26,6 @@ export interface ArcConnectivityProperties { serviceConfigurations?: ServiceConfiguration[]; } -// @public -export type ArcExtensionState = string; - // @public export interface ArcIdentityResponse { // (undocumented) @@ -176,6 +177,20 @@ export class AzureStackHCIClient extends coreClient.ServiceClient { // (undocumented) extensions: Extensions; // (undocumented) + galleryImagesOperations: GalleryImagesOperations; + // (undocumented) + guestAgentOperations: GuestAgentOperations; + // (undocumented) + guestAgents: GuestAgents; + // (undocumented) + hybridIdentityMetadataOperations: HybridIdentityMetadataOperations; + // (undocumented) + logicalNetworksOperations: LogicalNetworksOperations; + // (undocumented) + marketplaceGalleryImagesOperations: MarketplaceGalleryImagesOperations; + // (undocumented) + networkInterfacesOperations: NetworkInterfacesOperations; + // (undocumented) offers: Offers; // (undocumented) operations: Operations; @@ -186,6 +201,8 @@ export class AzureStackHCIClient extends coreClient.ServiceClient { // (undocumented) skus: Skus; // (undocumented) + storageContainersOperations: StorageContainersOperations; + // (undocumented) subscriptionId?: string; // (undocumented) updateRuns: UpdateRuns; @@ -193,6 +210,10 @@ export class AzureStackHCIClient extends coreClient.ServiceClient { updates: Updates; // (undocumented) updateSummariesOperations: UpdateSummariesOperations; + // (undocumented) + virtualHardDisksOperations: VirtualHardDisksOperations; + // (undocumented) + virtualMachineInstances: VirtualMachineInstances; } // @public @@ -202,6 +223,9 @@ export interface AzureStackHCIClientOptionalParams extends coreClient.ServiceCli endpoint?: string; } +// @public +export type CloudInitDataSource = string; + // @public export interface Cluster extends TrackedResource { aadApplicationObjectId?: string; @@ -216,11 +240,9 @@ export interface Cluster extends TrackedResource { readonly isolatedVmAttestationConfiguration?: IsolatedVmAttestationConfiguration; readonly lastBillingTimestamp?: Date; readonly lastSyncTimestamp?: Date; - logCollectionProperties?: LogCollectionProperties; readonly principalId?: string; readonly provisioningState?: ProvisioningState; readonly registrationTimestamp?: Date; - remoteSupportProperties?: RemoteSupportProperties; readonly reportedProperties?: ClusterReportedProperties; readonly resourceProviderObjectId?: string; readonly serviceEndpoint?: string; @@ -314,16 +336,12 @@ export interface ClusterReportedProperties { // @public export interface Clusters { - beginConfigureRemoteSupport(resourceGroupName: string, clusterName: string, remoteSupportRequest: RemoteSupportRequest, options?: ClustersConfigureRemoteSupportOptionalParams): Promise, ClustersConfigureRemoteSupportResponse>>; - beginConfigureRemoteSupportAndWait(resourceGroupName: string, clusterName: string, remoteSupportRequest: RemoteSupportRequest, options?: ClustersConfigureRemoteSupportOptionalParams): Promise; beginCreateIdentity(resourceGroupName: string, clusterName: string, options?: ClustersCreateIdentityOptionalParams): Promise, ClustersCreateIdentityResponse>>; beginCreateIdentityAndWait(resourceGroupName: string, clusterName: string, options?: ClustersCreateIdentityOptionalParams): Promise; beginDelete(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: ClustersDeleteOptionalParams): Promise; beginExtendSoftwareAssuranceBenefit(resourceGroupName: string, clusterName: string, softwareAssuranceChangeRequest: SoftwareAssuranceChangeRequest, options?: ClustersExtendSoftwareAssuranceBenefitOptionalParams): Promise, ClustersExtendSoftwareAssuranceBenefitResponse>>; beginExtendSoftwareAssuranceBenefitAndWait(resourceGroupName: string, clusterName: string, softwareAssuranceChangeRequest: SoftwareAssuranceChangeRequest, options?: ClustersExtendSoftwareAssuranceBenefitOptionalParams): Promise; - beginTriggerLogCollection(resourceGroupName: string, clusterName: string, logCollectionRequest: LogCollectionRequest, options?: ClustersTriggerLogCollectionOptionalParams): Promise, ClustersTriggerLogCollectionResponse>>; - beginTriggerLogCollectionAndWait(resourceGroupName: string, clusterName: string, logCollectionRequest: LogCollectionRequest, options?: ClustersTriggerLogCollectionOptionalParams): Promise; beginUploadCertificate(resourceGroupName: string, clusterName: string, uploadCertificateRequest: UploadCertificateRequest, options?: ClustersUploadCertificateOptionalParams): Promise, void>>; beginUploadCertificateAndWait(resourceGroupName: string, clusterName: string, uploadCertificateRequest: UploadCertificateRequest, options?: ClustersUploadCertificateOptionalParams): Promise; create(resourceGroupName: string, clusterName: string, cluster: Cluster, options?: ClustersCreateOptionalParams): Promise; @@ -333,21 +351,6 @@ export interface Clusters { update(resourceGroupName: string, clusterName: string, cluster: ClusterPatch, options?: ClustersUpdateOptionalParams): Promise; } -// @public -export interface ClustersConfigureRemoteSupportHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface ClustersConfigureRemoteSupportOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ClustersConfigureRemoteSupportResponse = Cluster; - // @public export interface ClustersCreateIdentityOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -414,21 +417,6 @@ export interface ClustersListBySubscriptionOptionalParams extends coreClient.Ope // @public export type ClustersListBySubscriptionResponse = ClusterList; -// @public -export interface ClustersTriggerLogCollectionHeaders { - // (undocumented) - location?: string; -} - -// @public -export interface ClustersTriggerLogCollectionOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type ClustersTriggerLogCollectionResponse = Cluster; - // @public export interface ClustersUpdateOptionalParams extends coreClient.OperationOptions { } @@ -480,14 +468,12 @@ export interface DeploymentData { adouPath?: string; cluster?: DeploymentCluster; domainFqdn?: string; - hostNetwork?: DeploymentSettingHostNetwork; + hostNetwork?: HostNetwork; infrastructureNetwork?: InfrastructureNetwork[]; namingPrefix?: string; observability?: Observability; optionalServices?: OptionalServices; physicalNodes?: PhysicalNodes[]; - sdnIntegration?: SdnIntegration; - secrets?: EceDeploymentSecrets[]; secretsLocation?: string; securitySettings?: DeploymentSecuritySettings; storage?: Storage_2; @@ -515,37 +501,8 @@ export interface DeploymentSetting extends ProxyResource { arcNodeResourceIds?: string[]; deploymentConfiguration?: DeploymentConfiguration; deploymentMode?: DeploymentMode; - operationType?: OperationType; - readonly provisioningState?: ProvisioningState; - readonly reportedProperties?: EceReportedProperties; -} - -// @public -export interface DeploymentSettingAdapterPropertyOverrides { - jumboPacket?: string; - networkDirect?: string; - networkDirectTechnology?: string; -} - -// @public -export interface DeploymentSettingHostNetwork { - enableStorageAutoIp?: boolean; - intents?: DeploymentSettingIntents[]; - storageConnectivitySwitchless?: boolean; - storageNetworks?: DeploymentSettingStorageNetworks[]; -} - -// @public -export interface DeploymentSettingIntents { - adapter?: string[]; - adapterPropertyOverrides?: DeploymentSettingAdapterPropertyOverrides; - name?: string; - overrideAdapterProperty?: boolean; - overrideQosPolicy?: boolean; - overrideVirtualSwitchConfiguration?: boolean; - qosPolicyOverrides?: QosPolicyOverrides; - trafficType?: string[]; - virtualSwitchConfigurationOverrides?: DeploymentSettingVirtualSwitchConfigurationOverrides; + provisioningState?: ProvisioningState; + readonly reportedProperties?: ReportedProperties; } // @public @@ -615,24 +572,9 @@ export interface DeploymentSettingsListByClustersOptionalParams extends coreClie export type DeploymentSettingsListByClustersResponse = DeploymentSettingListResult; // @public -export interface DeploymentSettingStorageAdapterIPInfo { - ipv4Address?: string; - physicalNode?: string; - subnetMask?: string; -} - -// @public -export interface DeploymentSettingStorageNetworks { - name?: string; - networkAdapterName?: string; - storageAdapterIPInfo?: DeploymentSettingStorageAdapterIPInfo[]; - vlanId?: string; -} - -// @public -export interface DeploymentSettingVirtualSwitchConfigurationOverrides { - enableIov?: string; - loadBalancingAlgorithm?: string; +export interface DeploymentStatus { + readonly status?: string; + readonly steps?: DeploymentStep[]; } // @public @@ -653,64 +595,34 @@ export interface DeviceConfiguration { nicDetails?: NicDetail[]; } -// @public -export type DeviceKind = string; - -// @public -export type DeviceState = string; - // @public export type DiagnosticLevel = string; // @public -export interface EceActionStatus { - readonly status?: string; - readonly steps?: DeploymentStep[]; -} - -// @public -export interface EceDeploymentSecrets { - eceSecretName?: EceSecrets; - secretLocation?: string; - secretName?: string; -} - -// @public -export interface EceReportedProperties { - readonly deploymentStatus?: EceActionStatus; - readonly validationStatus?: EceActionStatus; -} - -// @public -export type EceSecrets = string; +export type DiskFileFormat = string; // @public export interface EdgeDevice extends ProxyResource { - kind: DeviceKind; + deviceConfiguration?: DeviceConfiguration; + provisioningState?: ProvisioningState; } // @public export interface EdgeDeviceListResult { nextLink?: string; - value: EdgeDeviceUnion[]; -} - -// @public -export interface EdgeDeviceProperties { - deviceConfiguration?: DeviceConfiguration; - readonly provisioningState?: ProvisioningState; + value: EdgeDevice[]; } // @public export interface EdgeDevices { - beginCreateOrUpdate(resourceUri: string, edgeDeviceName: string, resource: EdgeDeviceUnion, options?: EdgeDevicesCreateOrUpdateOptionalParams): Promise, EdgeDevicesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceUri: string, edgeDeviceName: string, resource: EdgeDeviceUnion, options?: EdgeDevicesCreateOrUpdateOptionalParams): Promise; + beginCreateOrUpdate(resourceUri: string, edgeDeviceName: string, resource: EdgeDevice, options?: EdgeDevicesCreateOrUpdateOptionalParams): Promise, EdgeDevicesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceUri: string, edgeDeviceName: string, resource: EdgeDevice, options?: EdgeDevicesCreateOrUpdateOptionalParams): Promise; beginDelete(resourceUri: string, edgeDeviceName: string, options?: EdgeDevicesDeleteOptionalParams): Promise, EdgeDevicesDeleteResponse>>; beginDeleteAndWait(resourceUri: string, edgeDeviceName: string, options?: EdgeDevicesDeleteOptionalParams): Promise; beginValidate(resourceUri: string, edgeDeviceName: string, validateRequest: ValidateRequest, options?: EdgeDevicesValidateOptionalParams): Promise, EdgeDevicesValidateResponse>>; beginValidateAndWait(resourceUri: string, edgeDeviceName: string, validateRequest: ValidateRequest, options?: EdgeDevicesValidateOptionalParams): Promise; get(resourceUri: string, edgeDeviceName: string, options?: EdgeDevicesGetOptionalParams): Promise; - list(resourceUri: string, options?: EdgeDevicesListOptionalParams): PagedAsyncIterableIterator; + list(resourceUri: string, options?: EdgeDevicesListOptionalParams): PagedAsyncIterableIterator; } // @public @@ -725,7 +637,7 @@ export interface EdgeDevicesCreateOrUpdateOptionalParams extends coreClient.Oper } // @public -export type EdgeDevicesCreateOrUpdateResponse = EdgeDeviceUnion; +export type EdgeDevicesCreateOrUpdateResponse = EdgeDevice; // @public export interface EdgeDevicesDeleteHeaders { @@ -747,7 +659,7 @@ export interface EdgeDevicesGetOptionalParams extends coreClient.OperationOption } // @public -export type EdgeDevicesGetResponse = EdgeDeviceUnion; +export type EdgeDevicesGetResponse = EdgeDevice; // @public export interface EdgeDevicesListNextOptionalParams extends coreClient.OperationOptions { @@ -778,9 +690,6 @@ export interface EdgeDevicesValidateOptionalParams extends coreClient.OperationO // @public export type EdgeDevicesValidateResponse = ValidateResponse; -// @public (undocumented) -export type EdgeDeviceUnion = EdgeDevice | HciEdgeDevice; - // @public export interface ErrorAdditionalInfo { readonly info?: Record; @@ -801,6 +710,15 @@ export interface ErrorResponse { error?: ErrorDetail; } +// @public +export interface ExtendedLocation { + name?: string; + type?: ExtendedLocationTypes; +} + +// @public +export type ExtendedLocationTypes = string; + // @public export interface Extension extends ProxyResource { readonly aggregateState?: ExtensionAggregateState; @@ -859,11 +777,6 @@ export interface ExtensionPatchParameters { typeHandlerVersion?: string; } -// @public -export interface ExtensionProfile { - readonly extensions?: HciEdgeDeviceArcExtension[]; -} - // @public export interface Extensions { beginCreate(resourceGroupName: string, clusterName: string, arcSettingName: string, extensionName: string, extension: Extension, options?: ExtensionsCreateOptionalParams): Promise, ExtensionsCreateResponse>>; @@ -935,290 +848,535 @@ export interface ExtensionUpgradeParameters { } // @public -export function getContinuationToken(page: unknown): string | undefined; +export interface GalleryDiskImage { + readonly sizeInMB?: number; +} // @public -export interface HciEdgeDevice extends EdgeDevice { - kind: "HCI"; - properties?: HciEdgeDeviceProperties; +export interface GalleryImageIdentifier { + offer: string; + publisher: string; + sku: string; } // @public -export interface HciEdgeDeviceAdapterPropertyOverrides { - readonly jumboPacket?: string; - readonly networkDirect?: string; - readonly networkDirectTechnology?: string; +export interface GalleryImages extends TrackedResource { + cloudInitDataSource?: CloudInitDataSource; + containerId?: string; + extendedLocation?: ExtendedLocation; + hyperVGeneration?: HyperVGeneration; + identifier?: GalleryImageIdentifier; + imagePath?: string; + osType?: OperatingSystemTypes; + readonly provisioningState?: ProvisioningStateEnum; + readonly status?: GalleryImageStatus; + version?: GalleryImageVersion; } // @public -export interface HciEdgeDeviceArcExtension { - readonly errorDetails?: HciValidationFailureDetail[]; - readonly extensionName?: string; - readonly extensionResourceId?: string; - readonly managedBy?: ExtensionManagedBy; - readonly state?: ArcExtensionState; - readonly typeHandlerVersion?: string; +export interface GalleryImagesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface HciEdgeDeviceHostNetwork { - readonly enableStorageAutoIp?: boolean; - readonly intents?: HciEdgeDeviceIntents[]; - readonly storageConnectivitySwitchless?: boolean; - readonly storageNetworks?: HciEdgeDeviceStorageNetworks[]; -} +export type GalleryImagesCreateOrUpdateResponse = GalleryImages; // @public -export interface HciEdgeDeviceIntents { - readonly adapterPropertyOverrides?: HciEdgeDeviceAdapterPropertyOverrides; - readonly intentAdapters?: string[]; - readonly intentName?: string; - readonly intentType?: number; - readonly isComputeIntentSet?: boolean; - readonly isManagementIntentSet?: boolean; - readonly isNetworkIntentType?: boolean; - readonly isOnlyStorage?: boolean; - readonly isOnlyStretch?: boolean; - readonly isStorageIntentSet?: boolean; - readonly isStretchIntentSet?: boolean; - readonly overrideAdapterProperty?: boolean; - readonly overrideQosPolicy?: boolean; - readonly overrideVirtualSwitchConfiguration?: boolean; - readonly qosPolicyOverrides?: QosPolicyOverrides; - readonly scope?: number; - readonly virtualSwitchConfigurationOverrides?: HciEdgeDeviceVirtualSwitchConfigurationOverrides; +export interface GalleryImagesDeleteHeaders { + // (undocumented) + location?: string; } // @public -export interface HciEdgeDeviceProperties extends EdgeDeviceProperties { - readonly reportedProperties?: HciReportedProperties; +export interface GalleryImagesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface HciEdgeDeviceStorageAdapterIPInfo { - readonly ipv4Address?: string; - readonly physicalNode?: string; - readonly subnetMask?: string; -} +export type GalleryImagesDeleteResponse = GalleryImagesDeleteHeaders; // @public -export interface HciEdgeDeviceStorageNetworks { - readonly name?: string; - readonly networkAdapterName?: string; - readonly storageAdapterIPInfo?: HciEdgeDeviceStorageAdapterIPInfo[]; - readonly storageVlanId?: string; +export interface GalleryImagesGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface HciEdgeDeviceVirtualSwitchConfigurationOverrides { - readonly enableIov?: string; - readonly loadBalancingAlgorithm?: string; -} +export type GalleryImagesGetResponse = GalleryImages; // @public -export interface HciNetworkProfile { - readonly hostNetwork?: HciEdgeDeviceHostNetwork; - readonly nicDetails?: HciNicDetail[]; - readonly switchDetails?: SwitchDetail[]; +export interface GalleryImagesListAllNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface HciNicDetail { - readonly adapterName?: string; - readonly componentId?: string; - readonly defaultGateway?: string; - readonly defaultIsolationId?: string; - readonly dnsServers?: string[]; - readonly driverVersion?: string; - readonly interfaceDescription?: string; - readonly ip4Address?: string; - readonly macAddress?: string; - readonly nicStatus?: string; - readonly nicType?: string; - readonly slot?: string; - readonly subnetMask?: string; - readonly switchName?: string; - readonly vlanId?: string; -} +export type GalleryImagesListAllNextResponse = GalleryImagesListResult; // @public -export interface HciOsProfile { - readonly assemblyVersion?: string; - readonly bootType?: string; +export interface GalleryImagesListAllOptionalParams extends coreClient.OperationOptions { } // @public -export interface HciReportedProperties extends ReportedProperties { - readonly networkProfile?: HciNetworkProfile; - readonly osProfile?: HciOsProfile; - readonly sbeDeploymentPackageInfo?: SbeDeploymentPackageInfo; +export type GalleryImagesListAllResponse = GalleryImagesListResult; + +// @public +export interface GalleryImagesListNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface HciValidationFailureDetail { - readonly exception?: string; +export type GalleryImagesListNextResponse = GalleryImagesListResult; + +// @public +export interface GalleryImagesListOptionalParams extends coreClient.OperationOptions { } // @public -export type HealthState = string; +export type GalleryImagesListResponse = GalleryImagesListResult; // @public -export type ImdsAttestation = string; +export interface GalleryImagesListResult { + readonly nextLink?: string; + // (undocumented) + value?: GalleryImages[]; +} // @public -export interface InfrastructureNetwork { - dnsServers?: string[]; - gateway?: string; - ipPools?: IpPools[]; - subnetMask?: string; - useDhcp?: boolean; +export interface GalleryImagesOperations { + beginCreateOrUpdate(resourceGroupName: string, galleryImageName: string, galleryImages: GalleryImages, options?: GalleryImagesCreateOrUpdateOptionalParams): Promise, GalleryImagesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, galleryImageName: string, galleryImages: GalleryImages, options?: GalleryImagesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, galleryImageName: string, options?: GalleryImagesDeleteOptionalParams): Promise, GalleryImagesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, galleryImageName: string, options?: GalleryImagesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, galleryImageName: string, galleryImages: GalleryImagesUpdateRequest, options?: GalleryImagesUpdateOptionalParams): Promise, GalleryImagesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, galleryImageName: string, galleryImages: GalleryImagesUpdateRequest, options?: GalleryImagesUpdateOptionalParams): Promise; + get(resourceGroupName: string, galleryImageName: string, options?: GalleryImagesGetOptionalParams): Promise; + list(resourceGroupName: string, options?: GalleryImagesListOptionalParams): PagedAsyncIterableIterator; + listAll(options?: GalleryImagesListAllOptionalParams): PagedAsyncIterableIterator; } // @public -export interface IpPools { - endingAddress?: string; - startingAddress?: string; +export interface GalleryImageStatus { + downloadStatus?: GalleryImageStatusDownloadStatus; + errorCode?: string; + errorMessage?: string; + progressPercentage?: number; + // (undocumented) + provisioningStatus?: GalleryImageStatusProvisioningStatus; } // @public -export interface IsolatedVmAttestationConfiguration { - readonly attestationResourceId?: string; - readonly attestationServiceEndpoint?: string; - readonly relyingPartyServiceEndpoint?: string; +export interface GalleryImageStatusDownloadStatus { + downloadSizeInMB?: number; +} + +// @public (undocumented) +export interface GalleryImageStatusProvisioningStatus { + operationId?: string; + status?: Status; } // @public -export enum KnownAccessLevel { - Diagnostics = "Diagnostics", - DiagnosticsAndRepair = "DiagnosticsAndRepair" +export interface GalleryImagesUpdateHeaders { + // (undocumented) + location?: string; } // @public -export enum KnownActionType { - Internal = "Internal" +export interface GalleryImagesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export enum KnownArcExtensionState { - Accepted = "Accepted", - Canceled = "Canceled", - Creating = "Creating", - Deleted = "Deleted", - Deleting = "Deleting", - Failed = "Failed", - Moving = "Moving", - NotSpecified = "NotSpecified", - Succeeded = "Succeeded", - Updating = "Updating" +export interface GalleryImagesUpdateRequest { + tags?: { + [propertyName: string]: string; + }; } // @public -export enum KnownArcSettingAggregateState { - Accepted = "Accepted", - Canceled = "Canceled", - Connected = "Connected", - Creating = "Creating", - Deleted = "Deleted", - Deleting = "Deleting", - DisableInProgress = "DisableInProgress", - Disconnected = "Disconnected", - Error = "Error", - Failed = "Failed", - InProgress = "InProgress", - Moving = "Moving", - NotSpecified = "NotSpecified", - PartiallyConnected = "PartiallyConnected", - PartiallySucceeded = "PartiallySucceeded", - Provisioning = "Provisioning", - Succeeded = "Succeeded", - Updating = "Updating" +export type GalleryImagesUpdateResponse = GalleryImages; + +// @public +export interface GalleryImageVersion { + name?: string; + storageProfile?: GalleryImageVersionStorageProfile; } // @public -export enum KnownAvailabilityType { - Local = "Local", - Notify = "Notify", - Online = "Online" +export interface GalleryImageVersionStorageProfile { + osDiskImage?: GalleryOSDiskImage; } // @public -export enum KnownClusterNodeType { - FirstParty = "FirstParty", - ThirdParty = "ThirdParty" +export interface GalleryOSDiskImage extends GalleryDiskImage { } // @public -export enum KnownComplianceAssignmentType { - ApplyAndAutoCorrect = "ApplyAndAutoCorrect", - Audit = "Audit" +export function getContinuationToken(page: unknown): string | undefined; + +// @public +export interface GuestAgent extends ProxyResource { + credentials?: GuestCredential; + provisioningAction?: ProvisioningAction; + readonly provisioningState?: string; + readonly status?: string; } // @public -export enum KnownComplianceStatus { - Compliant = "Compliant", - NonCompliant = "NonCompliant", - Pending = "Pending" +export interface GuestAgentCreateOptionalParams extends coreClient.OperationOptions { + body?: GuestAgent; + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export enum KnownConnectivityStatus { - Connected = "Connected", - Disconnected = "Disconnected", - NotConnectedRecently = "NotConnectedRecently", - NotSpecified = "NotSpecified", - NotYetRegistered = "NotYetRegistered", - PartiallyConnected = "PartiallyConnected" +export type GuestAgentCreateResponse = GuestAgent; + +// @public +export interface GuestAgentDeleteHeaders { + // (undocumented) + location?: string; } // @public -export enum KnownCreatedByType { - Application = "Application", - Key = "Key", - ManagedIdentity = "ManagedIdentity", - User = "User" +export interface GuestAgentDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export enum KnownDeploymentMode { - Deploy = "Deploy", - Validate = "Validate" +export type GuestAgentDeleteResponse = GuestAgentDeleteHeaders; + +// @public +export interface GuestAgentGetOptionalParams extends coreClient.OperationOptions { } // @public -export enum KnownDeviceKind { - HCI = "HCI" +export type GuestAgentGetResponse = GuestAgent; + +// @public +export interface GuestAgentInstallStatus { + readonly agentVersion?: string; + readonly errorDetails?: ErrorDetail[]; + readonly lastStatusChange?: Date; + readonly status?: StatusTypes; + readonly vmUuid?: string; } // @public -export enum KnownDeviceState { - Connected = "Connected", - Disconnected = "Disconnected", - Draining = "Draining", - InMaintenance = "InMaintenance", - NotSpecified = "NotSpecified", - Processing = "Processing", - Repairing = "Repairing", - Resuming = "Resuming" +export interface GuestAgentList { + nextLink?: string; + value: GuestAgent[]; } // @public -export enum KnownDiagnosticLevel { - Basic = "Basic", - Enhanced = "Enhanced", - Off = "Off" +export interface GuestAgentOperations { + beginCreate(resourceUri: string, options?: GuestAgentCreateOptionalParams): Promise, GuestAgentCreateResponse>>; + beginCreateAndWait(resourceUri: string, options?: GuestAgentCreateOptionalParams): Promise; + beginDelete(resourceUri: string, options?: GuestAgentDeleteOptionalParams): Promise, GuestAgentDeleteResponse>>; + beginDeleteAndWait(resourceUri: string, options?: GuestAgentDeleteOptionalParams): Promise; + get(resourceUri: string, options?: GuestAgentGetOptionalParams): Promise; } // @public -export enum KnownEceSecrets { - AzureStackLCMUserCredential = "AzureStackLCMUserCredential", - DefaultARBApplication = "DefaultARBApplication", - LocalAdminCredential = "LocalAdminCredential", - WitnessStorageKey = "WitnessStorageKey" +export interface GuestAgents { + list(resourceUri: string, options?: GuestAgentsListOptionalParams): PagedAsyncIterableIterator; } // @public -export enum KnownExtensionAggregateState { - Accepted = "Accepted", +export interface GuestAgentsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GuestAgentsListNextResponse = GuestAgentList; + +// @public +export interface GuestAgentsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GuestAgentsListResponse = GuestAgentList; + +// @public +export interface GuestCredential { + password?: string; + username?: string; +} + +// @public +export interface HardwareProfileUpdate { + memoryMB?: number; + processors?: number; + // (undocumented) + vmSize?: VmSizeEnum; +} + +// @public +export type HealthState = string; + +// @public +export interface HostNetwork { + enableStorageAutoIp?: boolean; + intents?: Intents[]; + storageConnectivitySwitchless?: boolean; + storageNetworks?: StorageNetworks[]; +} + +// @public +export interface HttpProxyConfiguration { + httpProxy?: string; + httpsProxy?: string; + noProxy?: string[]; + trustedCa?: string; +} + +// @public +export interface HybridIdentityMetadata extends ProxyResource { + readonly identity?: Identity; + readonly provisioningState?: string; + publicKey?: string; + resourceUid?: string; +} + +// @public +export interface HybridIdentityMetadataGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type HybridIdentityMetadataGetResponse = HybridIdentityMetadata; + +// @public +export interface HybridIdentityMetadataList { + nextLink?: string; + value: HybridIdentityMetadata[]; +} + +// @public +export interface HybridIdentityMetadataListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type HybridIdentityMetadataListNextResponse = HybridIdentityMetadataList; + +// @public +export interface HybridIdentityMetadataListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type HybridIdentityMetadataListResponse = HybridIdentityMetadataList; + +// @public +export interface HybridIdentityMetadataOperations { + get(resourceUri: string, options?: HybridIdentityMetadataGetOptionalParams): Promise; + list(resourceUri: string, options?: HybridIdentityMetadataListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export type HyperVGeneration = string; + +// @public +export interface Identity { + readonly principalId?: string; + readonly tenantId?: string; + type?: "SystemAssigned"; +} + +// @public +export type ImdsAttestation = string; + +// @public +export interface InfrastructureNetwork { + dnsServers?: string[]; + gateway?: string; + ipPools?: IpPools[]; + subnetMask?: string; + useDhcp?: boolean; +} + +// @public +export interface InstanceViewStatus { + code?: string; + displayStatus?: string; + level?: StatusLevelTypes; + message?: string; + time?: Date; +} + +// @public +export interface Intents { + adapter?: string[]; + adapterPropertyOverrides?: AdapterPropertyOverrides; + name?: string; + overrideAdapterProperty?: boolean; + overrideQosPolicy?: boolean; + overrideVirtualSwitchConfiguration?: boolean; + qosPolicyOverrides?: QosPolicyOverrides; + trafficType?: string[]; + virtualSwitchConfigurationOverrides?: VirtualSwitchConfigurationOverrides; +} + +// @public (undocumented) +export interface InterfaceDNSSettings { + dnsServers?: string[]; +} + +// @public +export type IpAllocationMethodEnum = string; + +// @public +export interface IPConfiguration { + name?: string; + properties?: IPConfigurationProperties; +} + +// @public +export interface IPConfigurationProperties { + readonly gateway?: string; + readonly prefixLength?: string; + privateIPAddress?: string; + subnet?: IPConfigurationPropertiesSubnet; +} + +// @public +export interface IPConfigurationPropertiesSubnet { + id?: string; +} + +// @public (undocumented) +export interface IPPool { + end?: string; + // (undocumented) + info?: IPPoolInfo; + ipPoolType?: IPPoolTypeEnum; + name?: string; + start?: string; +} + +// @public (undocumented) +export interface IPPoolInfo { + readonly available?: string; + readonly used?: string; +} + +// @public +export interface IpPools { + endingAddress?: string; + startingAddress?: string; +} + +// @public +export type IPPoolTypeEnum = "vm" | "vippool"; + +// @public +export interface IsolatedVmAttestationConfiguration { + readonly attestationResourceId?: string; + readonly attestationServiceEndpoint?: string; + readonly relyingPartyServiceEndpoint?: string; +} + +// @public +export enum KnownActionType { + Internal = "Internal" +} + +// @public +export enum KnownArcSettingAggregateState { + Accepted = "Accepted", + Canceled = "Canceled", + Connected = "Connected", + Creating = "Creating", + Deleted = "Deleted", + Deleting = "Deleting", + DisableInProgress = "DisableInProgress", + Disconnected = "Disconnected", + Error = "Error", + Failed = "Failed", + InProgress = "InProgress", + Moving = "Moving", + NotSpecified = "NotSpecified", + PartiallyConnected = "PartiallyConnected", + PartiallySucceeded = "PartiallySucceeded", + Provisioning = "Provisioning", + Succeeded = "Succeeded", + Updating = "Updating" +} + +// @public +export enum KnownAvailabilityType { + Local = "Local", + Notify = "Notify", + Online = "Online" +} + +// @public +export enum KnownCloudInitDataSource { + Azure = "Azure", + NoCloud = "NoCloud" +} + +// @public +export enum KnownClusterNodeType { + FirstParty = "FirstParty", + ThirdParty = "ThirdParty" +} + +// @public +export enum KnownComplianceAssignmentType { + ApplyAndAutoCorrect = "ApplyAndAutoCorrect", + Audit = "Audit" +} + +// @public +export enum KnownComplianceStatus { + Compliant = "Compliant", + NonCompliant = "NonCompliant", + Pending = "Pending" +} + +// @public +export enum KnownConnectivityStatus { + Connected = "Connected", + Disconnected = "Disconnected", + NotConnectedRecently = "NotConnectedRecently", + NotSpecified = "NotSpecified", + NotYetRegistered = "NotYetRegistered", + PartiallyConnected = "PartiallyConnected" +} + +// @public +export enum KnownCreatedByType { + Application = "Application", + Key = "Key", + ManagedIdentity = "ManagedIdentity", + User = "User" +} + +// @public +export enum KnownDeploymentMode { + Deploy = "Deploy", + Validate = "Validate" +} + +// @public +export enum KnownDiagnosticLevel { + Basic = "Basic", + Enhanced = "Enhanced", + Off = "Off" +} + +// @public +export enum KnownDiskFileFormat { + Vhd = "vhd", + Vhdx = "vhdx" +} + +// @public +export enum KnownExtendedLocationTypes { + CustomLocation = "CustomLocation" +} + +// @public +export enum KnownExtensionAggregateState { + Accepted = "Accepted", Canceled = "Canceled", Connected = "Connected", Creating = "Creating", @@ -1255,23 +1413,21 @@ export enum KnownHealthState { } // @public -export enum KnownImdsAttestation { - Disabled = "Disabled", - Enabled = "Enabled" +export enum KnownHyperVGeneration { + V1 = "V1", + V2 = "V2" } // @public -export enum KnownLogCollectionJobType { - OnDemand = "OnDemand", - Scheduled = "Scheduled" +export enum KnownImdsAttestation { + Disabled = "Disabled", + Enabled = "Enabled" } // @public -export enum KnownLogCollectionStatus { - Failed = "Failed", - InProgress = "InProgress", - None = "None", - Succeeded = "Succeeded" +export enum KnownIpAllocationMethodEnum { + Dynamic = "Dynamic", + Static = "Static" } // @public @@ -1331,12 +1487,6 @@ export enum KnownOemActivation { Enabled = "Enabled" } -// @public -export enum KnownOperationType { - ClusterProvisioning = "ClusterProvisioning", - ClusterUpgrade = "ClusterUpgrade" -} - // @public export enum KnownOrigin { System = "system", @@ -1344,6 +1494,24 @@ export enum KnownOrigin { UserSystem = "user,system" } +// @public +export enum KnownPowerStateEnum { + Deallocated = "Deallocated", + Deallocating = "Deallocating", + Running = "Running", + Starting = "Starting", + Stopped = "Stopped", + Stopping = "Stopping", + Unknown = "Unknown" +} + +// @public +export enum KnownProvisioningAction { + Install = "install", + Repair = "repair", + Uninstall = "uninstall" +} + // @public export enum KnownProvisioningState { Accepted = "Accepted", @@ -1366,6 +1534,16 @@ export enum KnownProvisioningState { Updating = "Updating" } +// @public +export enum KnownProvisioningStateEnum { + Accepted = "Accepted", + Canceled = "Canceled", + Deleting = "Deleting", + Failed = "Failed", + InProgress = "InProgress", + Succeeded = "Succeeded" +} + // @public export enum KnownRebootRequirement { False = "False", @@ -1374,9 +1552,9 @@ export enum KnownRebootRequirement { } // @public -export enum KnownRemoteSupportType { - Enable = "Enable", - Revoke = "Revoke" +export enum KnownSecurityTypes { + ConfidentialVM = "ConfidentialVM", + TrustedLaunch = "TrustedLaunch" } // @public @@ -1454,7 +1632,14 @@ export enum KnownStatusLevelTypes { } // @public -export enum KnownUpdateRunPropertiesState { +export enum KnownStatusTypes { + Failed = "Failed", + InProgress = "InProgress", + Succeeded = "Succeeded" +} + +// @public +export enum KnownUpdateRunPropertiesState { Failed = "Failed", InProgress = "InProgress", Succeeded = "Succeeded", @@ -1473,6 +1658,33 @@ export enum KnownUpdateSummariesPropertiesState { UpdateInProgress = "UpdateInProgress" } +// @public +export enum KnownVmSizeEnum { + Custom = "Custom", + Default = "Default", + StandardA2V2 = "Standard_A2_v2", + StandardA4V2 = "Standard_A4_v2", + StandardD16SV3 = "Standard_D16s_v3", + StandardD2SV3 = "Standard_D2s_v3", + StandardD32SV3 = "Standard_D32s_v3", + StandardD4SV3 = "Standard_D4s_v3", + StandardD8SV3 = "Standard_D8s_v3", + StandardDS13V2 = "Standard_DS13_v2", + StandardDS2V2 = "Standard_DS2_v2", + StandardDS3V2 = "Standard_DS3_v2", + StandardDS4V2 = "Standard_DS4_v2", + StandardDS5V2 = "Standard_DS5_v2", + StandardK8S2V1 = "Standard_K8S2_v1", + StandardK8S3V1 = "Standard_K8S3_v1", + StandardK8S4V1 = "Standard_K8S4_v1", + StandardK8S5V1 = "Standard_K8S5_v1", + StandardK8SV1 = "Standard_K8S_v1", + StandardNK12 = "Standard_NK12", + StandardNK6 = "Standard_NK6", + StandardNV12 = "Standard_NV12", + StandardNV6 = "Standard_NV6" +} + // @public export enum KnownWindowsServerSubscription { Disabled = "Disabled", @@ -1480,935 +1692,1834 @@ export enum KnownWindowsServerSubscription { } // @public -export interface LogCollectionError { - readonly errorCode?: string; - readonly errorMessage?: string; +export interface LogicalNetworkPropertiesDhcpOptions { + dnsServers?: string[]; } // @public -export type LogCollectionJobType = string; +export interface LogicalNetworks extends TrackedResource { + dhcpOptions?: LogicalNetworkPropertiesDhcpOptions; + extendedLocation?: ExtendedLocation; + readonly provisioningState?: ProvisioningStateEnum; + readonly status?: LogicalNetworkStatus; + subnets?: Subnet[]; + vmSwitchName?: string; +} // @public -export interface LogCollectionProperties { - readonly fromDate?: Date; - readonly lastLogGenerated?: Date; - readonly logCollectionSessionDetails?: LogCollectionSession[]; - readonly toDate?: Date; +export interface LogicalNetworksCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface LogCollectionRequest { - properties?: LogCollectionRequestProperties; -} +export type LogicalNetworksCreateOrUpdateResponse = LogicalNetworks; // @public -export interface LogCollectionRequestProperties { - fromDate: Date; - toDate: Date; +export interface LogicalNetworksDeleteHeaders { + // (undocumented) + location?: string; } // @public -export interface LogCollectionSession { - readonly correlationId?: string; - readonly endTimeCollected?: Date; - readonly logCollectionError?: LogCollectionError; - readonly logCollectionJobType?: LogCollectionJobType; - readonly logCollectionStatus?: LogCollectionStatus; - readonly logEndTime?: Date; - readonly logSize?: number; - readonly logStartTime?: Date; - readonly timeCollected?: Date; +export interface LogicalNetworksDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type LogCollectionStatus = string; +export type LogicalNetworksDeleteResponse = LogicalNetworksDeleteHeaders; // @public -export type ManagedServiceIdentityType = string; +export interface LogicalNetworksGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface NetworkController { - macAddressPoolStart?: string; - macAddressPoolStop?: string; - networkVirtualizationEnabled?: boolean; -} +export type LogicalNetworksGetResponse = LogicalNetworks; // @public -export interface NicDetail { - adapterName?: string; - componentId?: string; - defaultGateway?: string; - defaultIsolationId?: string; - dnsServers?: string[]; - driverVersion?: string; - interfaceDescription?: string; - ip4Address?: string; - subnetMask?: string; +export interface LogicalNetworksListAllNextOptionalParams extends coreClient.OperationOptions { } // @public -export type NodeArcState = string; +export type LogicalNetworksListAllNextResponse = LogicalNetworksListResult; // @public -export type NodeExtensionState = string; +export interface LogicalNetworksListAllOptionalParams extends coreClient.OperationOptions { +} // @public -export interface Observability { - episodicDataUpload?: boolean; - euLocation?: boolean; - streamingDataClient?: boolean; +export type LogicalNetworksListAllResponse = LogicalNetworksListResult; + +// @public +export interface LogicalNetworksListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type OemActivation = string; +export type LogicalNetworksListNextResponse = LogicalNetworksListResult; // @public -export interface Offer extends ProxyResource { - content?: string; - contentVersion?: string; - readonly provisioningState?: string; - publisherId?: string; - skuMappings?: SkuMappings[]; +export interface LogicalNetworksListOptionalParams extends coreClient.OperationOptions { } // @public -export interface OfferList { - readonly nextLink?: string; - readonly value?: Offer[]; +export type LogicalNetworksListResponse = LogicalNetworksListResult; + +// @public (undocumented) +export interface LogicalNetworksListResult { + // (undocumented) + nextLink?: string; + // (undocumented) + value?: LogicalNetworks[]; } // @public -export interface Offers { - get(resourceGroupName: string, clusterName: string, publisherName: string, offerName: string, options?: OffersGetOptionalParams): Promise; - listByCluster(resourceGroupName: string, clusterName: string, options?: OffersListByClusterOptionalParams): PagedAsyncIterableIterator; - listByPublisher(resourceGroupName: string, clusterName: string, publisherName: string, options?: OffersListByPublisherOptionalParams): PagedAsyncIterableIterator; +export interface LogicalNetworksOperations { + beginCreateOrUpdate(resourceGroupName: string, logicalNetworkName: string, logicalNetworks: LogicalNetworks, options?: LogicalNetworksCreateOrUpdateOptionalParams): Promise, LogicalNetworksCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, logicalNetworkName: string, logicalNetworks: LogicalNetworks, options?: LogicalNetworksCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, logicalNetworkName: string, options?: LogicalNetworksDeleteOptionalParams): Promise, LogicalNetworksDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, logicalNetworkName: string, options?: LogicalNetworksDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, logicalNetworkName: string, logicalNetworks: LogicalNetworksUpdateRequest, options?: LogicalNetworksUpdateOptionalParams): Promise, LogicalNetworksUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, logicalNetworkName: string, logicalNetworks: LogicalNetworksUpdateRequest, options?: LogicalNetworksUpdateOptionalParams): Promise; + // (undocumented) + get(resourceGroupName: string, logicalNetworkName: string, options?: LogicalNetworksGetOptionalParams): Promise; + list(resourceGroupName: string, options?: LogicalNetworksListOptionalParams): PagedAsyncIterableIterator; + listAll(options?: LogicalNetworksListAllOptionalParams): PagedAsyncIterableIterator; } // @public -export interface OffersGetOptionalParams extends coreClient.OperationOptions { - expand?: string; +export interface LogicalNetworkStatus { + errorCode?: string; + errorMessage?: string; + // (undocumented) + provisioningStatus?: LogicalNetworkStatusProvisioningStatus; } -// @public -export type OffersGetResponse = Offer; +// @public (undocumented) +export interface LogicalNetworkStatusProvisioningStatus { + operationId?: string; + status?: Status; +} // @public -export interface OffersListByClusterNextOptionalParams extends coreClient.OperationOptions { +export interface LogicalNetworksUpdateHeaders { + // (undocumented) + location?: string; } // @public -export type OffersListByClusterNextResponse = OfferList; +export interface LogicalNetworksUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export interface OffersListByClusterOptionalParams extends coreClient.OperationOptions { - expand?: string; +export interface LogicalNetworksUpdateRequest { + tags?: { + [propertyName: string]: string; + }; } // @public -export type OffersListByClusterResponse = OfferList; +export type LogicalNetworksUpdateResponse = LogicalNetworks; // @public -export interface OffersListByPublisherNextOptionalParams extends coreClient.OperationOptions { -} +export type ManagedServiceIdentityType = string; // @public -export type OffersListByPublisherNextResponse = OfferList; +export interface MarketplaceGalleryImages extends TrackedResource { + cloudInitDataSource?: CloudInitDataSource; + containerId?: string; + extendedLocation?: ExtendedLocation; + hyperVGeneration?: HyperVGeneration; + identifier?: GalleryImageIdentifier; + osType?: OperatingSystemTypes; + readonly provisioningState?: ProvisioningStateEnum; + readonly status?: MarketplaceGalleryImageStatus; + version?: GalleryImageVersion; +} // @public -export interface OffersListByPublisherOptionalParams extends coreClient.OperationOptions { - expand?: string; +export interface MarketplaceGalleryImagesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type OffersListByPublisherResponse = OfferList; +export type MarketplaceGalleryImagesCreateOrUpdateResponse = MarketplaceGalleryImages; // @public -export interface Operation { - readonly actionType?: ActionType; - display?: OperationDisplay; - readonly isDataAction?: boolean; - readonly name?: string; - readonly origin?: Origin; +export interface MarketplaceGalleryImagesDeleteHeaders { + // (undocumented) + location?: string; } // @public -export interface OperationDisplay { - readonly description?: string; - readonly operation?: string; - readonly provider?: string; - readonly resource?: string; +export interface MarketplaceGalleryImagesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface OperationListResult { - readonly nextLink?: string; - readonly value?: Operation[]; -} +export type MarketplaceGalleryImagesDeleteResponse = MarketplaceGalleryImagesDeleteHeaders; // @public -export interface Operations { - list(options?: OperationsListOptionalParams): Promise; +export interface MarketplaceGalleryImagesGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface OperationsListOptionalParams extends coreClient.OperationOptions { +export type MarketplaceGalleryImagesGetResponse = MarketplaceGalleryImages; + +// @public +export interface MarketplaceGalleryImagesListAllNextOptionalParams extends coreClient.OperationOptions { } // @public -export type OperationsListResponse = OperationListResult; +export type MarketplaceGalleryImagesListAllNextResponse = MarketplaceGalleryImagesListResult; // @public -export type OperationType = string; +export interface MarketplaceGalleryImagesListAllOptionalParams extends coreClient.OperationOptions { +} // @public -export interface OptionalServices { - customLocation?: string; +export type MarketplaceGalleryImagesListAllResponse = MarketplaceGalleryImagesListResult; + +// @public +export interface MarketplaceGalleryImagesListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type Origin = string; +export type MarketplaceGalleryImagesListNextResponse = MarketplaceGalleryImagesListResult; // @public -export interface PackageVersionInfo { - lastUpdated?: Date; - packageType?: string; - version?: string; +export interface MarketplaceGalleryImagesListOptionalParams extends coreClient.OperationOptions { } +// @public +export type MarketplaceGalleryImagesListResponse = MarketplaceGalleryImagesListResult; + // @public (undocumented) -export interface PasswordCredential { - // (undocumented) - endDateTime?: Date; +export interface MarketplaceGalleryImagesListResult { // (undocumented) - keyId?: string; - // (undocumented) - secretText?: string; + nextLink?: string; // (undocumented) - startDateTime?: Date; -} - -// @public -export interface PerNodeExtensionState { - readonly extension?: string; - readonly instanceView?: ExtensionInstanceView; - readonly name?: string; - readonly state?: NodeExtensionState; - readonly typeHandlerVersion?: string; + value?: MarketplaceGalleryImages[]; } // @public -export interface PerNodeRemoteSupportSession { - readonly accessLevel?: AccessLevel; - readonly duration?: number; - readonly nodeName?: string; - readonly sessionEndTime?: Date; - readonly sessionStartTime?: Date; +export interface MarketplaceGalleryImagesOperations { + beginCreateOrUpdate(resourceGroupName: string, marketplaceGalleryImageName: string, marketplaceGalleryImages: MarketplaceGalleryImages, options?: MarketplaceGalleryImagesCreateOrUpdateOptionalParams): Promise, MarketplaceGalleryImagesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, marketplaceGalleryImageName: string, marketplaceGalleryImages: MarketplaceGalleryImages, options?: MarketplaceGalleryImagesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, marketplaceGalleryImageName: string, options?: MarketplaceGalleryImagesDeleteOptionalParams): Promise, MarketplaceGalleryImagesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, marketplaceGalleryImageName: string, options?: MarketplaceGalleryImagesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, marketplaceGalleryImageName: string, marketplaceGalleryImages: MarketplaceGalleryImagesUpdateRequest, options?: MarketplaceGalleryImagesUpdateOptionalParams): Promise, MarketplaceGalleryImagesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, marketplaceGalleryImageName: string, marketplaceGalleryImages: MarketplaceGalleryImagesUpdateRequest, options?: MarketplaceGalleryImagesUpdateOptionalParams): Promise; + get(resourceGroupName: string, marketplaceGalleryImageName: string, options?: MarketplaceGalleryImagesGetOptionalParams): Promise; + list(resourceGroupName: string, options?: MarketplaceGalleryImagesListOptionalParams): PagedAsyncIterableIterator; + listAll(options?: MarketplaceGalleryImagesListAllOptionalParams): PagedAsyncIterableIterator; } // @public -export interface PerNodeState { - readonly arcInstance?: string; - readonly arcNodeServicePrincipalObjectId?: string; - readonly name?: string; - readonly state?: NodeArcState; +export interface MarketplaceGalleryImageStatus { + downloadStatus?: MarketplaceGalleryImageStatusDownloadStatus; + errorCode?: string; + errorMessage?: string; + progressPercentage?: number; + // (undocumented) + provisioningStatus?: MarketplaceGalleryImageStatusProvisioningStatus; } // @public -export interface PhysicalNodes { - ipv4Address?: string; - name?: string; +export interface MarketplaceGalleryImageStatusDownloadStatus { + downloadSizeInMB?: number; } // @public (undocumented) -export interface PrecheckResult { - additionalData?: string; - description?: string; - displayName?: string; - healthCheckSource?: string; - healthCheckTags?: Record; - name?: string; - remediation?: string; - severity?: Severity; +export interface MarketplaceGalleryImageStatusProvisioningStatus { + operationId?: string; status?: Status; - tags?: PrecheckResultTags; - targetResourceID?: string; - targetResourceName?: string; - targetResourceType?: string; - timestamp?: Date; - title?: string; } // @public -export interface PrecheckResultTags { - key?: string; - value?: string; +export interface MarketplaceGalleryImagesUpdateHeaders { + // (undocumented) + location?: string; } // @public -export type ProvisioningState = string; +export interface MarketplaceGalleryImagesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export interface ProxyResource extends Resource { +export interface MarketplaceGalleryImagesUpdateRequest { + tags?: { + [propertyName: string]: string; + }; } // @public -export interface Publisher extends ProxyResource { - readonly provisioningState?: string; -} +export type MarketplaceGalleryImagesUpdateResponse = MarketplaceGalleryImages; // @public -export interface PublisherList { - readonly nextLink?: string; - readonly value?: Publisher[]; +export interface NetworkInterfaces extends TrackedResource { + dnsSettings?: InterfaceDNSSettings; + extendedLocation?: ExtendedLocation; + ipConfigurations?: IPConfiguration[]; + macAddress?: string; + readonly provisioningState?: ProvisioningStateEnum; + readonly status?: NetworkInterfaceStatus; } // @public -export interface Publishers { - get(resourceGroupName: string, clusterName: string, publisherName: string, options?: PublishersGetOptionalParams): Promise; - listByCluster(resourceGroupName: string, clusterName: string, options?: PublishersListByClusterOptionalParams): PagedAsyncIterableIterator; +export interface NetworkInterfacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface PublishersGetOptionalParams extends coreClient.OperationOptions { -} +export type NetworkInterfacesCreateOrUpdateResponse = NetworkInterfaces; // @public -export type PublishersGetResponse = Publisher; +export interface NetworkInterfacesDeleteHeaders { + // (undocumented) + location?: string; +} // @public -export interface PublishersListByClusterNextOptionalParams extends coreClient.OperationOptions { +export interface NetworkInterfacesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type PublishersListByClusterNextResponse = PublisherList; +export type NetworkInterfacesDeleteResponse = NetworkInterfacesDeleteHeaders; // @public -export interface PublishersListByClusterOptionalParams extends coreClient.OperationOptions { +export interface NetworkInterfacesGetOptionalParams extends coreClient.OperationOptions { } // @public -export type PublishersListByClusterResponse = PublisherList; +export type NetworkInterfacesGetResponse = NetworkInterfaces; // @public -export interface QosPolicyOverrides { - bandwidthPercentageSMB?: string; - priorityValue8021ActionCluster?: string; - priorityValue8021ActionSMB?: string; -} - -// @public (undocumented) -export interface RawCertificateData { - // (undocumented) - certificates?: string[]; +export interface NetworkInterfacesListAllNextOptionalParams extends coreClient.OperationOptions { } // @public -export type RebootRequirement = string; +export type NetworkInterfacesListAllNextResponse = NetworkInterfacesListResult; // @public -export interface RemoteSupportNodeSettings { - readonly arcResourceId?: string; - readonly connectionErrorMessage?: string; - readonly connectionStatus?: string; - readonly createdAt?: Date; - readonly state?: string; - readonly transcriptLocation?: string; - readonly updatedAt?: Date; +export interface NetworkInterfacesListAllOptionalParams extends coreClient.OperationOptions { } // @public -export interface RemoteSupportProperties { - readonly accessLevel?: AccessLevel; - readonly expirationTimeStamp?: Date; - readonly remoteSupportNodeSettings?: RemoteSupportNodeSettings[]; - readonly remoteSupportSessionDetails?: PerNodeRemoteSupportSession[]; - readonly remoteSupportType?: RemoteSupportType; -} +export type NetworkInterfacesListAllResponse = NetworkInterfacesListResult; // @public -export interface RemoteSupportRequest { - properties?: RemoteSupportRequestProperties; +export interface NetworkInterfacesListNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface RemoteSupportRequestProperties { - readonly accessLevel?: AccessLevel; - expirationTimeStamp?: Date; - remoteSupportType?: RemoteSupportType; -} +export type NetworkInterfacesListNextResponse = NetworkInterfacesListResult; // @public -export type RemoteSupportType = string; +export interface NetworkInterfacesListOptionalParams extends coreClient.OperationOptions { +} // @public -export interface ReportedProperties { - readonly deviceState?: DeviceState; - readonly extensionProfile?: ExtensionProfile; +export type NetworkInterfacesListResponse = NetworkInterfacesListResult; + +// @public (undocumented) +export interface NetworkInterfacesListResult { + // (undocumented) + nextLink?: string; + // (undocumented) + value?: NetworkInterfaces[]; } // @public -export interface Resource { - readonly id?: string; - readonly name?: string; - readonly systemData?: SystemData; - readonly type?: string; +export interface NetworkInterfacesOperations { + beginCreateOrUpdate(resourceGroupName: string, networkInterfaceName: string, networkInterfaces: NetworkInterfaces, options?: NetworkInterfacesCreateOrUpdateOptionalParams): Promise, NetworkInterfacesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, networkInterfaceName: string, networkInterfaces: NetworkInterfaces, options?: NetworkInterfacesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, networkInterfaceName: string, options?: NetworkInterfacesDeleteOptionalParams): Promise, NetworkInterfacesDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, networkInterfaceName: string, options?: NetworkInterfacesDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, networkInterfaceName: string, networkInterfaces: NetworkInterfacesUpdateRequest, options?: NetworkInterfacesUpdateOptionalParams): Promise, NetworkInterfacesUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, networkInterfaceName: string, networkInterfaces: NetworkInterfacesUpdateRequest, options?: NetworkInterfacesUpdateOptionalParams): Promise; + get(resourceGroupName: string, networkInterfaceName: string, options?: NetworkInterfacesGetOptionalParams): Promise; + list(resourceGroupName: string, options?: NetworkInterfacesListOptionalParams): PagedAsyncIterableIterator; + listAll(options?: NetworkInterfacesListAllOptionalParams): PagedAsyncIterableIterator; } // @public -export interface SbeCredentials { - eceSecretName?: string; - secretLocation?: string; - secretName?: string; +export interface NetworkInterfaceStatus { + errorCode?: string; + errorMessage?: string; + // (undocumented) + provisioningStatus?: NetworkInterfaceStatusProvisioningStatus; } -// @public -export interface SbeDeploymentInfo { - family?: string; - publisher?: string; - sbeManifestCreationDate?: Date; - sbeManifestSource?: string; - version?: string; +// @public (undocumented) +export interface NetworkInterfaceStatusProvisioningStatus { + operationId?: string; + status?: Status; } // @public -export interface SbeDeploymentPackageInfo { - readonly code?: string; - readonly message?: string; - readonly sbeManifest?: string; +export interface NetworkInterfacesUpdateHeaders { + // (undocumented) + location?: string; } // @public -export interface SbePartnerInfo { - credentialList?: SbeCredentials[]; - partnerProperties?: SbePartnerProperties[]; - sbeDeploymentInfo?: SbeDeploymentInfo; +export interface NetworkInterfacesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface SbePartnerProperties { - name?: string; - value?: string; +export interface NetworkInterfacesUpdateRequest { + tags?: { + [propertyName: string]: string; + }; } // @public -export interface ScaleUnits { - deploymentData: DeploymentData; - sbePartnerInfo?: SbePartnerInfo; -} +export type NetworkInterfacesUpdateResponse = NetworkInterfaces; // @public -export interface SdnIntegration { - networkController?: NetworkController; +export interface NetworkProfileUpdate { + networkInterfaces?: NetworkProfileUpdateNetworkInterfacesItem[]; +} + +// @public (undocumented) +export interface NetworkProfileUpdateNetworkInterfacesItem { + id?: string; } // @public -export interface SecurityComplianceStatus { +export interface NicDetail { + adapterName: string; + componentId?: string; + defaultGateway?: string; + defaultIsolationId?: string; + dnsServers?: string[]; + driverVersion?: string; + interfaceDescription?: string; + ip4Address?: string; + subnetMask?: string; +} + +// @public +export type NodeArcState = string; + +// @public +export type NodeExtensionState = string; + +// @public +export interface Observability { + episodicDataUpload?: boolean; + euLocation?: boolean; + streamingDataClient?: boolean; +} + +// @public +export type OemActivation = string; + +// @public +export interface Offer extends ProxyResource { + content?: string; + contentVersion?: string; + readonly provisioningState?: string; + publisherId?: string; + skuMappings?: SkuMappings[]; +} + +// @public +export interface OfferList { + readonly nextLink?: string; + readonly value?: Offer[]; +} + +// @public +export interface Offers { + get(resourceGroupName: string, clusterName: string, publisherName: string, offerName: string, options?: OffersGetOptionalParams): Promise; + listByCluster(resourceGroupName: string, clusterName: string, options?: OffersListByClusterOptionalParams): PagedAsyncIterableIterator; + listByPublisher(resourceGroupName: string, clusterName: string, publisherName: string, options?: OffersListByPublisherOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface OffersGetOptionalParams extends coreClient.OperationOptions { + expand?: string; +} + +// @public +export type OffersGetResponse = Offer; + +// @public +export interface OffersListByClusterNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OffersListByClusterNextResponse = OfferList; + +// @public +export interface OffersListByClusterOptionalParams extends coreClient.OperationOptions { + expand?: string; +} + +// @public +export type OffersListByClusterResponse = OfferList; + +// @public +export interface OffersListByPublisherNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OffersListByPublisherNextResponse = OfferList; + +// @public +export interface OffersListByPublisherOptionalParams extends coreClient.OperationOptions { + expand?: string; +} + +// @public +export type OffersListByPublisherResponse = OfferList; + +// @public +export type OperatingSystemTypes = "Windows" | "Linux"; + +// @public +export interface Operation { + readonly actionType?: ActionType; + display?: OperationDisplay; + readonly isDataAction?: boolean; + readonly name?: string; + readonly origin?: Origin; +} + +// @public +export interface OperationDisplay { + readonly description?: string; + readonly operation?: string; + readonly provider?: string; + readonly resource?: string; +} + +// @public +export interface OperationListResult { + readonly nextLink?: string; + readonly value?: Operation[]; +} + +// @public +export interface Operations { + list(options?: OperationsListOptionalParams): Promise; +} + +// @public +export interface OperationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OperationsListResponse = OperationListResult; + +// @public +export interface OptionalServices { + customLocation?: string; +} + +// @public +export type Origin = string; + +// @public +export interface OsProfileUpdate { + computerName?: string; + // (undocumented) + linuxConfiguration?: OsProfileUpdateLinuxConfiguration; + // (undocumented) + windowsConfiguration?: OsProfileUpdateWindowsConfiguration; +} + +// @public (undocumented) +export interface OsProfileUpdateLinuxConfiguration { + provisionVMAgent?: boolean; + provisionVMConfigAgent?: boolean; +} + +// @public (undocumented) +export interface OsProfileUpdateWindowsConfiguration { + provisionVMAgent?: boolean; + provisionVMConfigAgent?: boolean; +} + +// @public +export interface PackageVersionInfo { + lastUpdated?: Date; + packageType?: string; + version?: string; +} + +// @public (undocumented) +export interface PasswordCredential { + // (undocumented) + endDateTime?: Date; + // (undocumented) + keyId?: string; + // (undocumented) + secretText?: string; + // (undocumented) + startDateTime?: Date; +} + +// @public +export interface PerNodeExtensionState { + readonly extension?: string; + readonly instanceView?: ExtensionInstanceView; + readonly name?: string; + readonly state?: NodeExtensionState; + readonly typeHandlerVersion?: string; +} + +// @public +export interface PerNodeState { + readonly arcInstance?: string; + readonly arcNodeServicePrincipalObjectId?: string; + readonly name?: string; + readonly state?: NodeArcState; +} + +// @public +export interface PhysicalNodes { + ipv4Address?: string; + name?: string; +} + +// @public +export type PowerStateEnum = string; + +// @public (undocumented) +export interface PrecheckResult { + additionalData?: string; + description?: string; + displayName?: string; + healthCheckSource?: string; + name?: string; + remediation?: string; + severity?: Severity; + status?: Status; + tags?: PrecheckResultTags; + targetResourceID?: string; + targetResourceName?: string; + timestamp?: Date; + title?: string; +} + +// @public +export interface PrecheckResultTags { + key?: string; + value?: string; +} + +// @public +export type ProvisioningAction = string; + +// @public +export type ProvisioningState = string; + +// @public +export type ProvisioningStateEnum = string; + +// @public +export interface ProxyResource extends Resource { +} + +// @public +export interface Publisher extends ProxyResource { + readonly provisioningState?: string; +} + +// @public +export interface PublisherList { + readonly nextLink?: string; + readonly value?: Publisher[]; +} + +// @public +export interface Publishers { + get(resourceGroupName: string, clusterName: string, publisherName: string, options?: PublishersGetOptionalParams): Promise; + listByCluster(resourceGroupName: string, clusterName: string, options?: PublishersListByClusterOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface PublishersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PublishersGetResponse = Publisher; + +// @public +export interface PublishersListByClusterNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PublishersListByClusterNextResponse = PublisherList; + +// @public +export interface PublishersListByClusterOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type PublishersListByClusterResponse = PublisherList; + +// @public +export interface QosPolicyOverrides { + bandwidthPercentageSMB?: string; + priorityValue8021ActionCluster?: string; + priorityValue8021ActionSMB?: string; +} + +// @public (undocumented) +export interface RawCertificateData { + // (undocumented) + certificates?: string[]; +} + +// @public +export type RebootRequirement = string; + +// @public +export interface ReportedProperties { + readonly deploymentStatus?: DeploymentStatus; + readonly validationStatus?: ValidationStatus; +} + +// @public +export interface Resource { + readonly id?: string; + readonly name?: string; + readonly systemData?: SystemData; + readonly type?: string; +} + +// @public +export interface Route { + addressPrefix?: string; + name?: string; + nextHopIpAddress?: string; +} + +// @public +export interface RouteTable { + readonly etag?: string; + readonly name?: string; + routes?: Route[]; + readonly type?: string; +} + +// @public +export interface ScaleUnits { + deploymentData: DeploymentData; +} + +// @public +export interface SecurityComplianceStatus { readonly dataAtRestEncrypted?: ComplianceStatus; readonly dataInTransitProtected?: ComplianceStatus; readonly lastUpdated?: Date; - readonly securedCoreCompliance?: ComplianceStatus; - readonly wdacCompliance?: ComplianceStatus; + readonly securedCoreCompliance?: ComplianceStatus; + readonly wdacCompliance?: ComplianceStatus; +} + +// @public +export interface SecuritySetting extends ProxyResource { + provisioningState?: ProvisioningState; + securedCoreComplianceAssignment?: ComplianceAssignmentType; + readonly securityComplianceStatus?: SecurityComplianceStatus; +} + +// @public +export interface SecuritySettingListResult { + nextLink?: string; + value: SecuritySetting[]; +} + +// @public +export interface SecuritySettings { + beginCreateOrUpdate(resourceGroupName: string, clusterName: string, securitySettingsName: string, resource: SecuritySetting, options?: SecuritySettingsCreateOrUpdateOptionalParams): Promise, SecuritySettingsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, securitySettingsName: string, resource: SecuritySetting, options?: SecuritySettingsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, clusterName: string, securitySettingsName: string, options?: SecuritySettingsDeleteOptionalParams): Promise, SecuritySettingsDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, securitySettingsName: string, options?: SecuritySettingsDeleteOptionalParams): Promise; + get(resourceGroupName: string, clusterName: string, securitySettingsName: string, options?: SecuritySettingsGetOptionalParams): Promise; + listByClusters(resourceGroupName: string, clusterName: string, options?: SecuritySettingsListByClustersOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SecuritySettingsCreateOrUpdateHeaders { + retryAfter?: number; +} + +// @public +export interface SecuritySettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type SecuritySettingsCreateOrUpdateResponse = SecuritySetting; + +// @public +export interface SecuritySettingsDeleteHeaders { + location?: string; + retryAfter?: number; +} + +// @public +export interface SecuritySettingsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type SecuritySettingsDeleteResponse = SecuritySettingsDeleteHeaders; + +// @public +export interface SecuritySettingsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecuritySettingsGetResponse = SecuritySetting; + +// @public +export interface SecuritySettingsListByClustersNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecuritySettingsListByClustersNextResponse = SecuritySettingListResult; + +// @public +export interface SecuritySettingsListByClustersOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecuritySettingsListByClustersResponse = SecuritySettingListResult; + +// @public +export type SecurityTypes = string; + +// @public +export interface ServiceConfiguration { + port: number; + serviceName: ServiceName; +} + +// @public +export type ServiceName = string; + +// @public +export type Severity = string; + +// @public +export interface Sku extends ProxyResource { + content?: string; + contentVersion?: string; + offerId?: string; + readonly provisioningState?: string; + publisherId?: string; + skuMappings?: SkuMappings[]; +} + +// @public +export interface SkuList { + readonly nextLink?: string; + readonly value?: Sku[]; +} + +// @public +export interface SkuMappings { + catalogPlanId?: string; + marketplaceSkuId?: string; + marketplaceSkuVersions?: string[]; +} + +// @public +export interface Skus { + get(resourceGroupName: string, clusterName: string, publisherName: string, offerName: string, skuName: string, options?: SkusGetOptionalParams): Promise; + listByOffer(resourceGroupName: string, clusterName: string, publisherName: string, offerName: string, options?: SkusListByOfferOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SkusGetOptionalParams extends coreClient.OperationOptions { + expand?: string; +} + +// @public +export type SkusGetResponse = Sku; + +// @public +export interface SkusListByOfferNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SkusListByOfferNextResponse = SkuList; + +// @public +export interface SkusListByOfferOptionalParams extends coreClient.OperationOptions { + expand?: string; +} + +// @public +export type SkusListByOfferResponse = SkuList; + +// @public (undocumented) +export interface SoftwareAssuranceChangeRequest { + // (undocumented) + properties?: SoftwareAssuranceChangeRequestProperties; +} + +// @public (undocumented) +export interface SoftwareAssuranceChangeRequestProperties { + softwareAssuranceIntent?: SoftwareAssuranceIntent; +} + +// @public +export type SoftwareAssuranceIntent = string; + +// @public +export interface SoftwareAssuranceProperties { + readonly lastUpdated?: Date; + softwareAssuranceIntent?: SoftwareAssuranceIntent; + readonly softwareAssuranceStatus?: SoftwareAssuranceStatus; +} + +// @public +export type SoftwareAssuranceStatus = string; + +// @public +export interface SshConfiguration { + publicKeys?: SshPublicKey[]; +} + +// @public +export interface SshPublicKey { + keyData?: string; + path?: string; +} + +// @public +export type State = string; + +// @public +export type Status = string; + +// @public +export type StatusLevelTypes = string; + +// @public +export type StatusTypes = string; + +// @public +export interface Step { + description?: string; + endTimeUtc?: Date; + errorMessage?: string; + lastUpdatedTimeUtc?: Date; + name?: string; + startTimeUtc?: Date; + status?: string; + steps?: Step[]; +} + +// @public +interface Storage_2 { + configurationMode?: string; +} +export { Storage_2 as Storage } + +// @public +export interface StorageContainers extends TrackedResource { + extendedLocation?: ExtendedLocation; + path?: string; + readonly provisioningState?: ProvisioningStateEnum; + readonly status?: StorageContainerStatus; +} + +// @public +export interface StorageContainersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type StorageContainersCreateOrUpdateResponse = StorageContainers; + +// @public +export interface StorageContainersDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface StorageContainersDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type StorageContainersDeleteResponse = StorageContainersDeleteHeaders; + +// @public +export interface StorageContainersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StorageContainersGetResponse = StorageContainers; + +// @public +export interface StorageContainersListAllNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StorageContainersListAllNextResponse = StorageContainersListResult; + +// @public +export interface StorageContainersListAllOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StorageContainersListAllResponse = StorageContainersListResult; + +// @public +export interface StorageContainersListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StorageContainersListNextResponse = StorageContainersListResult; + +// @public +export interface StorageContainersListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StorageContainersListResponse = StorageContainersListResult; + +// @public (undocumented) +export interface StorageContainersListResult { + // (undocumented) + nextLink?: string; + // (undocumented) + value?: StorageContainers[]; +} + +// @public +export interface StorageContainersOperations { + beginCreateOrUpdate(resourceGroupName: string, storageContainerName: string, storageContainers: StorageContainers, options?: StorageContainersCreateOrUpdateOptionalParams): Promise, StorageContainersCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, storageContainerName: string, storageContainers: StorageContainers, options?: StorageContainersCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, storageContainerName: string, options?: StorageContainersDeleteOptionalParams): Promise, StorageContainersDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, storageContainerName: string, options?: StorageContainersDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, storageContainerName: string, storageContainers: StorageContainersUpdateRequest, options?: StorageContainersUpdateOptionalParams): Promise, StorageContainersUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, storageContainerName: string, storageContainers: StorageContainersUpdateRequest, options?: StorageContainersUpdateOptionalParams): Promise; + get(resourceGroupName: string, storageContainerName: string, options?: StorageContainersGetOptionalParams): Promise; + list(resourceGroupName: string, options?: StorageContainersListOptionalParams): PagedAsyncIterableIterator; + listAll(options?: StorageContainersListAllOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface StorageContainerStatus { + availableSizeMB?: number; + containerSizeMB?: number; + errorCode?: string; + errorMessage?: string; + // (undocumented) + provisioningStatus?: StorageContainerStatusProvisioningStatus; +} + +// @public (undocumented) +export interface StorageContainerStatusProvisioningStatus { + operationId?: string; + status?: Status; +} + +// @public +export interface StorageContainersUpdateHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface StorageContainersUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface StorageContainersUpdateRequest { + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export type StorageContainersUpdateResponse = StorageContainers; + +// @public +export interface StorageNetworks { + name?: string; + networkAdapterName?: string; + vlanId?: string; +} + +// @public (undocumented) +export interface StorageProfileUpdate { + dataDisks?: StorageProfileUpdateDataDisksItem[]; +} + +// @public (undocumented) +export interface StorageProfileUpdateDataDisksItem { + // (undocumented) + id?: string; +} + +// @public (undocumented) +export interface Subnet { + addressPrefix?: string; + addressPrefixes?: string[]; + ipAllocationMethod?: IpAllocationMethodEnum; + ipConfigurationReferences?: SubnetPropertiesFormatIpConfigurationReferencesItem[]; + ipPools?: IPPool[]; + name?: string; + routeTable?: RouteTable; + vlan?: number; +} + +// @public +export interface SubnetPropertiesFormatIpConfigurationReferencesItem { + id?: string; +} + +// @public +export interface SystemData { + createdAt?: Date; + createdBy?: string; + createdByType?: CreatedByType; + lastModifiedAt?: Date; + lastModifiedBy?: string; + lastModifiedByType?: CreatedByType; +} + +// @public +export interface TrackedResource extends Resource { + location: string; + tags?: { + [propertyName: string]: string; + }; +} + +// @public +export interface Update extends ProxyResource { + additionalProperties?: string; + availabilityType?: AvailabilityType; + componentVersions?: PackageVersionInfo[]; + description?: string; + displayName?: string; + healthCheckDate?: Date; + healthCheckResult?: PrecheckResult[]; + healthState?: HealthState; + installedDate?: Date; + location?: string; + notifyMessage?: string; + packagePath?: string; + packageSizeInMb?: number; + packageType?: string; + prerequisites?: UpdatePrerequisite[]; + progressPercentage?: number; + readonly provisioningState?: ProvisioningState; + publisher?: string; + // (undocumented) + rebootRequired?: RebootRequirement; + releaseLink?: string; + state?: State; + version?: string; } // @public -export interface SecuritySetting extends ProxyResource { - provisioningState?: ProvisioningState; - securedCoreComplianceAssignment?: ComplianceAssignmentType; - readonly securityComplianceStatus?: SecurityComplianceStatus; - smbEncryptionForIntraClusterTrafficComplianceAssignment?: ComplianceAssignmentType; - wdacComplianceAssignment?: ComplianceAssignmentType; +export interface UpdateList { + readonly nextLink?: string; + value?: Update[]; } // @public -export interface SecuritySettingListResult { - nextLink?: string; - value: SecuritySetting[]; +export interface UpdatePrerequisite { + packageName?: string; + updateType?: string; + version?: string; } // @public -export interface SecuritySettings { - beginCreateOrUpdate(resourceGroupName: string, clusterName: string, securitySettingsName: string, resource: SecuritySetting, options?: SecuritySettingsCreateOrUpdateOptionalParams): Promise, SecuritySettingsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, clusterName: string, securitySettingsName: string, resource: SecuritySetting, options?: SecuritySettingsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, clusterName: string, securitySettingsName: string, options?: SecuritySettingsDeleteOptionalParams): Promise, SecuritySettingsDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, securitySettingsName: string, options?: SecuritySettingsDeleteOptionalParams): Promise; - get(resourceGroupName: string, clusterName: string, securitySettingsName: string, options?: SecuritySettingsGetOptionalParams): Promise; - listByClusters(resourceGroupName: string, clusterName: string, options?: SecuritySettingsListByClustersOptionalParams): PagedAsyncIterableIterator; +export interface UpdateRun extends ProxyResource { + description?: string; + duration?: string; + endTimeUtc?: Date; + errorMessage?: string; + lastUpdatedTime?: Date; + lastUpdatedTimeUtc?: Date; + location?: string; + namePropertiesProgressName?: string; + readonly provisioningState?: ProvisioningState; + startTimeUtc?: Date; + state?: UpdateRunPropertiesState; + status?: string; + steps?: Step[]; + timeStarted?: Date; } // @public -export interface SecuritySettingsCreateOrUpdateHeaders { - retryAfter?: number; +export interface UpdateRunList { + readonly nextLink?: string; + value?: UpdateRun[]; } // @public -export interface SecuritySettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +export type UpdateRunPropertiesState = string; + +// @public +export interface UpdateRuns { + beginDelete(resourceGroupName: string, clusterName: string, updateName: string, updateRunName: string, options?: UpdateRunsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, updateName: string, updateRunName: string, options?: UpdateRunsDeleteOptionalParams): Promise; + get(resourceGroupName: string, clusterName: string, updateName: string, updateRunName: string, options?: UpdateRunsGetOptionalParams): Promise; + list(resourceGroupName: string, clusterName: string, updateName: string, options?: UpdateRunsListOptionalParams): PagedAsyncIterableIterator; + put(resourceGroupName: string, clusterName: string, updateName: string, updateRunName: string, updateRunsProperties: UpdateRun, options?: UpdateRunsPutOptionalParams): Promise; +} + +// @public +export interface UpdateRunsDeleteHeaders { + azureAsyncOperation?: string; +} + +// @public +export interface UpdateRunsDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type SecuritySettingsCreateOrUpdateResponse = SecuritySetting; +export interface UpdateRunsGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface SecuritySettingsDeleteHeaders { - location?: string; - retryAfter?: number; +export type UpdateRunsGetResponse = UpdateRun; + +// @public +export interface UpdateRunsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface SecuritySettingsDeleteOptionalParams extends coreClient.OperationOptions { +export type UpdateRunsListNextResponse = UpdateRunList; + +// @public +export interface UpdateRunsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type UpdateRunsListResponse = UpdateRunList; + +// @public +export interface UpdateRunsPutOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type UpdateRunsPutResponse = UpdateRun; + +// @public +export interface Updates { + beginDelete(resourceGroupName: string, clusterName: string, updateName: string, options?: UpdatesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, updateName: string, options?: UpdatesDeleteOptionalParams): Promise; + beginPost(resourceGroupName: string, clusterName: string, updateName: string, options?: UpdatesPostOptionalParams): Promise, void>>; + beginPostAndWait(resourceGroupName: string, clusterName: string, updateName: string, options?: UpdatesPostOptionalParams): Promise; + get(resourceGroupName: string, clusterName: string, updateName: string, options?: UpdatesGetOptionalParams): Promise; + list(resourceGroupName: string, clusterName: string, options?: UpdatesListOptionalParams): PagedAsyncIterableIterator; + put(resourceGroupName: string, clusterName: string, updateName: string, updateProperties: Update, options?: UpdatesPutOptionalParams): Promise; +} + +// @public +export interface UpdatesDeleteHeaders { + azureAsyncOperation?: string; +} + +// @public +export interface UpdatesDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export type SecuritySettingsDeleteResponse = SecuritySettingsDeleteHeaders; +export interface UpdatesGetOptionalParams extends coreClient.OperationOptions { +} // @public -export interface SecuritySettingsGetOptionalParams extends coreClient.OperationOptions { +export type UpdatesGetResponse = Update; + +// @public +export interface UpdatesListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type SecuritySettingsGetResponse = SecuritySetting; +export type UpdatesListNextResponse = UpdateList; // @public -export interface SecuritySettingsListByClustersNextOptionalParams extends coreClient.OperationOptions { +export interface UpdatesListOptionalParams extends coreClient.OperationOptions { } // @public -export type SecuritySettingsListByClustersNextResponse = SecuritySettingListResult; +export type UpdatesListResponse = UpdateList; // @public -export interface SecuritySettingsListByClustersOptionalParams extends coreClient.OperationOptions { +export interface UpdatesPostHeaders { + azureAsyncOperation?: string; } // @public -export type SecuritySettingsListByClustersResponse = SecuritySettingListResult; +export interface UpdatesPostOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} // @public -export interface ServiceConfiguration { - port: number; - serviceName: ServiceName; +export interface UpdatesPutOptionalParams extends coreClient.OperationOptions { } // @public -export type ServiceName = string; +export type UpdatesPutResponse = Update; // @public -export type Severity = string; +export interface UpdateSummaries extends ProxyResource { + currentVersion?: string; + hardwareModel?: string; + healthCheckDate?: Date; + healthCheckResult?: PrecheckResult[]; + healthState?: HealthState; + lastChecked?: Date; + lastUpdated?: Date; + location?: string; + oemFamily?: string; + packageVersions?: PackageVersionInfo[]; + readonly provisioningState?: ProvisioningState; + state?: UpdateSummariesPropertiesState; +} // @public -export interface Sku extends ProxyResource { - content?: string; - contentVersion?: string; - offerId?: string; - readonly provisioningState?: string; - publisherId?: string; - skuMappings?: SkuMappings[]; +export interface UpdateSummariesDeleteHeaders { + azureAsyncOperation?: string; } // @public -export interface SkuList { - readonly nextLink?: string; - readonly value?: Sku[]; +export interface UpdateSummariesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface SkuMappings { - catalogPlanId?: string; - marketplaceSkuId?: string; - marketplaceSkuVersions?: string[]; +export interface UpdateSummariesGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface Skus { - get(resourceGroupName: string, clusterName: string, publisherName: string, offerName: string, skuName: string, options?: SkusGetOptionalParams): Promise; - listByOffer(resourceGroupName: string, clusterName: string, publisherName: string, offerName: string, options?: SkusListByOfferOptionalParams): PagedAsyncIterableIterator; +export type UpdateSummariesGetResponse = UpdateSummaries; + +// @public +export interface UpdateSummariesList { + readonly nextLink?: string; + value?: UpdateSummaries[]; } // @public -export interface SkusGetOptionalParams extends coreClient.OperationOptions { - expand?: string; +export interface UpdateSummariesListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type SkusGetResponse = Sku; +export type UpdateSummariesListNextResponse = UpdateSummariesList; // @public -export interface SkusListByOfferNextOptionalParams extends coreClient.OperationOptions { +export interface UpdateSummariesListOptionalParams extends coreClient.OperationOptions { } // @public -export type SkusListByOfferNextResponse = SkuList; +export type UpdateSummariesListResponse = UpdateSummariesList; // @public -export interface SkusListByOfferOptionalParams extends coreClient.OperationOptions { - expand?: string; +export interface UpdateSummariesOperations { + beginDelete(resourceGroupName: string, clusterName: string, options?: UpdateSummariesDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: UpdateSummariesDeleteOptionalParams): Promise; + get(resourceGroupName: string, clusterName: string, options?: UpdateSummariesGetOptionalParams): Promise; + list(resourceGroupName: string, clusterName: string, options?: UpdateSummariesListOptionalParams): PagedAsyncIterableIterator; + put(resourceGroupName: string, clusterName: string, updateLocationProperties: UpdateSummaries, options?: UpdateSummariesPutOptionalParams): Promise; } // @public -export type SkusListByOfferResponse = SkuList; +export type UpdateSummariesPropertiesState = string; + +// @public +export interface UpdateSummariesPutOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type UpdateSummariesPutResponse = UpdateSummaries; // @public (undocumented) -export interface SoftwareAssuranceChangeRequest { +export interface UploadCertificateRequest { // (undocumented) - properties?: SoftwareAssuranceChangeRequestProperties; + properties?: RawCertificateData; } -// @public (undocumented) -export interface SoftwareAssuranceChangeRequestProperties { - softwareAssuranceIntent?: SoftwareAssuranceIntent; +// @public +export interface UserAssignedIdentity { + readonly clientId?: string; + readonly principalId?: string; +} + +// @public +export interface ValidateRequest { + additionalInfo?: string; + edgeDeviceIds: string[]; +} + +// @public +export interface ValidateResponse { + readonly status?: string; +} + +// @public +export interface ValidationStatus { + readonly status?: string; + readonly steps?: DeploymentStep[]; +} + +// @public +export interface VirtualHardDisks extends TrackedResource { + // (undocumented) + blockSizeBytes?: number; + containerId?: string; + diskFileFormat?: DiskFileFormat; + diskSizeGB?: number; + dynamic?: boolean; + extendedLocation?: ExtendedLocation; + hyperVGeneration?: HyperVGeneration; + // (undocumented) + logicalSectorBytes?: number; + // (undocumented) + physicalSectorBytes?: number; + readonly provisioningState?: ProvisioningStateEnum; + readonly status?: VirtualHardDiskStatus; +} + +// @public +export interface VirtualHardDisksCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type VirtualHardDisksCreateOrUpdateResponse = VirtualHardDisks; + +// @public +export interface VirtualHardDisksDeleteHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface VirtualHardDisksDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type SoftwareAssuranceIntent = string; +export type VirtualHardDisksDeleteResponse = VirtualHardDisksDeleteHeaders; // @public -export interface SoftwareAssuranceProperties { - readonly lastUpdated?: Date; - softwareAssuranceIntent?: SoftwareAssuranceIntent; - readonly softwareAssuranceStatus?: SoftwareAssuranceStatus; +export interface VirtualHardDisksGetOptionalParams extends coreClient.OperationOptions { } // @public -export type SoftwareAssuranceStatus = string; +export type VirtualHardDisksGetResponse = VirtualHardDisks; // @public -export type State = string; +export interface VirtualHardDisksListAllNextOptionalParams extends coreClient.OperationOptions { +} // @public -export type Status = string; +export type VirtualHardDisksListAllNextResponse = VirtualHardDisksListResult; // @public -export type StatusLevelTypes = string; +export interface VirtualHardDisksListAllOptionalParams extends coreClient.OperationOptions { +} // @public -export interface Step { - description?: string; - endTimeUtc?: Date; - errorMessage?: string; - expectedExecutionTime?: string; - lastUpdatedTimeUtc?: Date; - name?: string; - startTimeUtc?: Date; - status?: string; - steps?: Step[]; -} +export type VirtualHardDisksListAllResponse = VirtualHardDisksListResult; // @public -interface Storage_2 { - configurationMode?: string; +export interface VirtualHardDisksListNextOptionalParams extends coreClient.OperationOptions { } -export { Storage_2 as Storage } // @public -export interface SwitchDetail { - readonly extensions?: SwitchExtension[]; - readonly switchName?: string; - readonly switchType?: string; -} +export type VirtualHardDisksListNextResponse = VirtualHardDisksListResult; // @public -export interface SwitchExtension { - readonly extensionEnabled?: boolean; - readonly extensionName?: string; - readonly switchId?: string; +export interface VirtualHardDisksListOptionalParams extends coreClient.OperationOptions { } // @public -export interface SystemData { - createdAt?: Date; - createdBy?: string; - createdByType?: CreatedByType; - lastModifiedAt?: Date; - lastModifiedBy?: string; - lastModifiedByType?: CreatedByType; +export type VirtualHardDisksListResponse = VirtualHardDisksListResult; + +// @public (undocumented) +export interface VirtualHardDisksListResult { + // (undocumented) + nextLink?: string; + // (undocumented) + value?: VirtualHardDisks[]; } // @public -export interface TrackedResource extends Resource { - location: string; - tags?: { - [propertyName: string]: string; - }; +export interface VirtualHardDisksOperations { + beginCreateOrUpdate(resourceGroupName: string, virtualHardDiskName: string, virtualHardDisks: VirtualHardDisks, options?: VirtualHardDisksCreateOrUpdateOptionalParams): Promise, VirtualHardDisksCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, virtualHardDiskName: string, virtualHardDisks: VirtualHardDisks, options?: VirtualHardDisksCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, virtualHardDiskName: string, options?: VirtualHardDisksDeleteOptionalParams): Promise, VirtualHardDisksDeleteResponse>>; + beginDeleteAndWait(resourceGroupName: string, virtualHardDiskName: string, options?: VirtualHardDisksDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, virtualHardDiskName: string, virtualHardDisks: VirtualHardDisksUpdateRequest, options?: VirtualHardDisksUpdateOptionalParams): Promise, VirtualHardDisksUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, virtualHardDiskName: string, virtualHardDisks: VirtualHardDisksUpdateRequest, options?: VirtualHardDisksUpdateOptionalParams): Promise; + get(resourceGroupName: string, virtualHardDiskName: string, options?: VirtualHardDisksGetOptionalParams): Promise; + list(resourceGroupName: string, options?: VirtualHardDisksListOptionalParams): PagedAsyncIterableIterator; + listAll(options?: VirtualHardDisksListAllOptionalParams): PagedAsyncIterableIterator; } // @public -export interface Update extends ProxyResource { - additionalProperties?: string; - availabilityType?: AvailabilityType; - componentVersions?: PackageVersionInfo[]; - description?: string; - displayName?: string; - healthCheckDate?: Date; - healthCheckResult?: PrecheckResult[]; - healthState?: HealthState; - installedDate?: Date; - location?: string; - minSbeVersionRequired?: string; - notifyMessage?: string; - packagePath?: string; - packageSizeInMb?: number; - packageType?: string; - prerequisites?: UpdatePrerequisite[]; - progressPercentage?: number; - readonly provisioningState?: ProvisioningState; - publisher?: string; +export interface VirtualHardDiskStatus { + errorCode?: string; + errorMessage?: string; // (undocumented) - rebootRequired?: RebootRequirement; - releaseLink?: string; - state?: State; - version?: string; + provisioningStatus?: VirtualHardDiskStatusProvisioningStatus; } -// @public -export interface UpdateList { - readonly nextLink?: string; - value?: Update[]; +// @public (undocumented) +export interface VirtualHardDiskStatusProvisioningStatus { + operationId?: string; + status?: Status; } // @public -export interface UpdatePrerequisite { - packageName?: string; - updateType?: string; - version?: string; +export interface VirtualHardDisksUpdateHeaders { + // (undocumented) + location?: string; } // @public -export interface UpdateRun extends ProxyResource { - description?: string; - duration?: string; - endTimeUtc?: Date; - errorMessage?: string; - expectedExecutionTime?: string; - lastUpdatedTime?: Date; - lastUpdatedTimeUtc?: Date; - location?: string; - namePropertiesProgressName?: string; - readonly provisioningState?: ProvisioningState; - startTimeUtc?: Date; - state?: UpdateRunPropertiesState; - status?: string; - steps?: Step[]; - timeStarted?: Date; +export interface VirtualHardDisksUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface UpdateRunList { - readonly nextLink?: string; - value?: UpdateRun[]; +export interface VirtualHardDisksUpdateRequest { + tags?: { + [propertyName: string]: string; + }; } // @public -export type UpdateRunPropertiesState = string; +export type VirtualHardDisksUpdateResponse = VirtualHardDisks; // @public -export interface UpdateRuns { - beginDelete(resourceGroupName: string, clusterName: string, updateName: string, updateRunName: string, options?: UpdateRunsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, updateName: string, updateRunName: string, options?: UpdateRunsDeleteOptionalParams): Promise; - get(resourceGroupName: string, clusterName: string, updateName: string, updateRunName: string, options?: UpdateRunsGetOptionalParams): Promise; - list(resourceGroupName: string, clusterName: string, updateName: string, options?: UpdateRunsListOptionalParams): PagedAsyncIterableIterator; - put(resourceGroupName: string, clusterName: string, updateName: string, updateRunName: string, updateRunsProperties: UpdateRun, options?: UpdateRunsPutOptionalParams): Promise; +export interface VirtualMachineConfigAgentInstanceView { + statuses?: InstanceViewStatus[]; + vmConfigAgentVersion?: string; } // @public -export interface UpdateRunsDeleteHeaders { - azureAsyncOperation?: string; +export interface VirtualMachineInstance extends ProxyResource { + extendedLocation?: ExtendedLocation; + guestAgentInstallStatus?: GuestAgentInstallStatus; + hardwareProfile?: VirtualMachineInstancePropertiesHardwareProfile; + httpProxyConfig?: HttpProxyConfiguration; + identity?: Identity; + readonly instanceView?: VirtualMachineInstanceView; + networkProfile?: VirtualMachineInstancePropertiesNetworkProfile; + osProfile?: VirtualMachineInstancePropertiesOsProfile; + readonly provisioningState?: ProvisioningStateEnum; + resourceUid?: string; + securityProfile?: VirtualMachineInstancePropertiesSecurityProfile; + readonly status?: VirtualMachineInstanceStatus; + storageProfile?: VirtualMachineInstancePropertiesStorageProfile; + readonly vmId?: string; } -// @public -export interface UpdateRunsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; +// @public (undocumented) +export interface VirtualMachineInstanceListResult { + // (undocumented) + nextLink?: string; + // (undocumented) + value?: VirtualMachineInstance[]; } // @public -export interface UpdateRunsGetOptionalParams extends coreClient.OperationOptions { +export interface VirtualMachineInstancePropertiesHardwareProfile { + // (undocumented) + dynamicMemoryConfig?: VirtualMachineInstancePropertiesHardwareProfileDynamicMemoryConfig; + memoryMB?: number; + processors?: number; + // (undocumented) + vmSize?: VmSizeEnum; +} + +// @public (undocumented) +export interface VirtualMachineInstancePropertiesHardwareProfileDynamicMemoryConfig { + // (undocumented) + maximumMemoryMB?: number; + // (undocumented) + minimumMemoryMB?: number; + targetMemoryBuffer?: number; } // @public -export type UpdateRunsGetResponse = UpdateRun; +export interface VirtualMachineInstancePropertiesNetworkProfile { + networkInterfaces?: VirtualMachineInstancePropertiesNetworkProfileNetworkInterfacesItem[]; +} + +// @public (undocumented) +export interface VirtualMachineInstancePropertiesNetworkProfileNetworkInterfacesItem { + id?: string; +} // @public -export interface UpdateRunsListNextOptionalParams extends coreClient.OperationOptions { +export interface VirtualMachineInstancePropertiesOsProfile { + adminPassword?: string; + adminUsername?: string; + computerName?: string; + linuxConfiguration?: VirtualMachineInstancePropertiesOsProfileLinuxConfiguration; + windowsConfiguration?: VirtualMachineInstancePropertiesOsProfileWindowsConfiguration; } // @public -export type UpdateRunsListNextResponse = UpdateRunList; +export interface VirtualMachineInstancePropertiesOsProfileLinuxConfiguration { + disablePasswordAuthentication?: boolean; + provisionVMAgent?: boolean; + provisionVMConfigAgent?: boolean; + ssh?: SshConfiguration; +} // @public -export interface UpdateRunsListOptionalParams extends coreClient.OperationOptions { +export interface VirtualMachineInstancePropertiesOsProfileWindowsConfiguration { + enableAutomaticUpdates?: boolean; + provisionVMAgent?: boolean; + provisionVMConfigAgent?: boolean; + ssh?: SshConfiguration; + timeZone?: string; } // @public -export type UpdateRunsListResponse = UpdateRunList; +export interface VirtualMachineInstancePropertiesSecurityProfile { + // (undocumented) + enableTPM?: boolean; + securityType?: SecurityTypes; + // (undocumented) + uefiSettings?: VirtualMachineInstancePropertiesSecurityProfileUefiSettings; +} + +// @public (undocumented) +export interface VirtualMachineInstancePropertiesSecurityProfileUefiSettings { + secureBootEnabled?: boolean; +} // @public -export interface UpdateRunsPutOptionalParams extends coreClient.OperationOptions { +export interface VirtualMachineInstancePropertiesStorageProfile { + dataDisks?: VirtualMachineInstancePropertiesStorageProfileDataDisksItem[]; + imageReference?: VirtualMachineInstancePropertiesStorageProfileImageReference; + osDisk?: VirtualMachineInstancePropertiesStorageProfileOsDisk; + vmConfigStoragePathId?: string; +} + +// @public (undocumented) +export interface VirtualMachineInstancePropertiesStorageProfileDataDisksItem { + id?: string; } // @public -export type UpdateRunsPutResponse = UpdateRun; +export interface VirtualMachineInstancePropertiesStorageProfileImageReference { + id?: string; +} // @public -export interface Updates { - beginDelete(resourceGroupName: string, clusterName: string, updateName: string, options?: UpdatesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, updateName: string, options?: UpdatesDeleteOptionalParams): Promise; - beginPost(resourceGroupName: string, clusterName: string, updateName: string, options?: UpdatesPostOptionalParams): Promise, void>>; - beginPostAndWait(resourceGroupName: string, clusterName: string, updateName: string, options?: UpdatesPostOptionalParams): Promise; - get(resourceGroupName: string, clusterName: string, updateName: string, options?: UpdatesGetOptionalParams): Promise; - list(resourceGroupName: string, clusterName: string, options?: UpdatesListOptionalParams): PagedAsyncIterableIterator; - put(resourceGroupName: string, clusterName: string, updateName: string, updateProperties: Update, options?: UpdatesPutOptionalParams): Promise; +export interface VirtualMachineInstancePropertiesStorageProfileOsDisk { + id?: string; + osType?: OperatingSystemTypes; } // @public -export interface UpdatesDeleteHeaders { - azureAsyncOperation?: string; +export interface VirtualMachineInstances { + beginCreateOrUpdate(resourceUri: string, virtualMachineInstance: VirtualMachineInstance, options?: VirtualMachineInstancesCreateOrUpdateOptionalParams): Promise, VirtualMachineInstancesCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceUri: string, virtualMachineInstance: VirtualMachineInstance, options?: VirtualMachineInstancesCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceUri: string, options?: VirtualMachineInstancesDeleteOptionalParams): Promise, VirtualMachineInstancesDeleteResponse>>; + beginDeleteAndWait(resourceUri: string, options?: VirtualMachineInstancesDeleteOptionalParams): Promise; + beginRestart(resourceUri: string, options?: VirtualMachineInstancesRestartOptionalParams): Promise, VirtualMachineInstancesRestartResponse>>; + beginRestartAndWait(resourceUri: string, options?: VirtualMachineInstancesRestartOptionalParams): Promise; + beginStart(resourceUri: string, options?: VirtualMachineInstancesStartOptionalParams): Promise, VirtualMachineInstancesStartResponse>>; + beginStartAndWait(resourceUri: string, options?: VirtualMachineInstancesStartOptionalParams): Promise; + beginStop(resourceUri: string, options?: VirtualMachineInstancesStopOptionalParams): Promise, VirtualMachineInstancesStopResponse>>; + beginStopAndWait(resourceUri: string, options?: VirtualMachineInstancesStopOptionalParams): Promise; + beginUpdate(resourceUri: string, virtualMachineInstance: VirtualMachineInstanceUpdateRequest, options?: VirtualMachineInstancesUpdateOptionalParams): Promise, VirtualMachineInstancesUpdateResponse>>; + beginUpdateAndWait(resourceUri: string, virtualMachineInstance: VirtualMachineInstanceUpdateRequest, options?: VirtualMachineInstancesUpdateOptionalParams): Promise; + get(resourceUri: string, options?: VirtualMachineInstancesGetOptionalParams): Promise; + list(resourceUri: string, options?: VirtualMachineInstancesListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface UpdatesDeleteOptionalParams extends coreClient.OperationOptions { +export interface VirtualMachineInstancesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export interface UpdatesGetOptionalParams extends coreClient.OperationOptions { -} +export type VirtualMachineInstancesCreateOrUpdateResponse = VirtualMachineInstance; // @public -export type UpdatesGetResponse = Update; +export interface VirtualMachineInstancesDeleteHeaders { + // (undocumented) + location?: string; +} // @public -export interface UpdatesListNextOptionalParams extends coreClient.OperationOptions { +export interface VirtualMachineInstancesDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type UpdatesListNextResponse = UpdateList; +export type VirtualMachineInstancesDeleteResponse = VirtualMachineInstancesDeleteHeaders; // @public -export interface UpdatesListOptionalParams extends coreClient.OperationOptions { +export interface VirtualMachineInstancesGetOptionalParams extends coreClient.OperationOptions { } // @public -export type UpdatesListResponse = UpdateList; +export type VirtualMachineInstancesGetResponse = VirtualMachineInstance; // @public -export interface UpdatesPostHeaders { - azureAsyncOperation?: string; +export interface VirtualMachineInstancesListNextOptionalParams extends coreClient.OperationOptions { } // @public -export interface UpdatesPostOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} +export type VirtualMachineInstancesListNextResponse = VirtualMachineInstanceListResult; // @public -export interface UpdatesPutOptionalParams extends coreClient.OperationOptions { +export interface VirtualMachineInstancesListOptionalParams extends coreClient.OperationOptions { } // @public -export type UpdatesPutResponse = Update; +export type VirtualMachineInstancesListResponse = VirtualMachineInstanceListResult; // @public -export interface UpdateSummaries extends ProxyResource { - currentOemVersion?: string; - currentSbeVersion?: string; - currentVersion?: string; - hardwareModel?: string; - healthCheckDate?: Date; - healthCheckResult?: PrecheckResult[]; - healthState?: HealthState; - lastChecked?: Date; - lastUpdated?: Date; +export interface VirtualMachineInstancesRestartHeaders { + // (undocumented) location?: string; - oemFamily?: string; - packageVersions?: PackageVersionInfo[]; - readonly provisioningState?: ProvisioningState; - state?: UpdateSummariesPropertiesState; -} - -// @public -export interface UpdateSummariesDeleteHeaders { - azureAsyncOperation?: string; } // @public -export interface UpdateSummariesDeleteOptionalParams extends coreClient.OperationOptions { +export interface VirtualMachineInstancesRestartOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } // @public -export interface UpdateSummariesGetOptionalParams extends coreClient.OperationOptions { -} +export type VirtualMachineInstancesRestartResponse = VirtualMachineInstance; // @public -export type UpdateSummariesGetResponse = UpdateSummaries; +export interface VirtualMachineInstancesStartHeaders { + // (undocumented) + location?: string; +} // @public -export interface UpdateSummariesList { - readonly nextLink?: string; - value?: UpdateSummaries[]; +export interface VirtualMachineInstancesStartOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export interface UpdateSummariesListNextOptionalParams extends coreClient.OperationOptions { -} +export type VirtualMachineInstancesStartResponse = VirtualMachineInstance; // @public -export type UpdateSummariesListNextResponse = UpdateSummariesList; +export interface VirtualMachineInstancesStopHeaders { + // (undocumented) + location?: string; +} // @public -export interface UpdateSummariesListOptionalParams extends coreClient.OperationOptions { +export interface VirtualMachineInstancesStopOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type UpdateSummariesListResponse = UpdateSummariesList; +export type VirtualMachineInstancesStopResponse = VirtualMachineInstance; // @public -export interface UpdateSummariesOperations { - beginDelete(resourceGroupName: string, clusterName: string, options?: UpdateSummariesDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, clusterName: string, options?: UpdateSummariesDeleteOptionalParams): Promise; - get(resourceGroupName: string, clusterName: string, options?: UpdateSummariesGetOptionalParams): Promise; - list(resourceGroupName: string, clusterName: string, options?: UpdateSummariesListOptionalParams): PagedAsyncIterableIterator; - put(resourceGroupName: string, clusterName: string, updateLocationProperties: UpdateSummaries, options?: UpdateSummariesPutOptionalParams): Promise; +export interface VirtualMachineInstanceStatus { + errorCode?: string; + errorMessage?: string; + powerState?: PowerStateEnum; + // (undocumented) + provisioningStatus?: VirtualMachineInstanceStatusProvisioningStatus; +} + +// @public (undocumented) +export interface VirtualMachineInstanceStatusProvisioningStatus { + operationId?: string; + status?: Status; } // @public -export type UpdateSummariesPropertiesState = string; +export interface VirtualMachineInstancesUpdateHeaders { + // (undocumented) + location?: string; +} // @public -export interface UpdateSummariesPutOptionalParams extends coreClient.OperationOptions { +export interface VirtualMachineInstancesUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; } // @public -export type UpdateSummariesPutResponse = UpdateSummaries; +export type VirtualMachineInstancesUpdateResponse = VirtualMachineInstance; -// @public (undocumented) -export interface UploadCertificateRequest { +// @public +export interface VirtualMachineInstanceUpdateProperties { + hardwareProfile?: HardwareProfileUpdate; + networkProfile?: NetworkProfileUpdate; + osProfile?: OsProfileUpdate; // (undocumented) - properties?: RawCertificateData; + storageProfile?: StorageProfileUpdate; } // @public -export interface UserAssignedIdentity { - readonly clientId?: string; - readonly principalId?: string; +export interface VirtualMachineInstanceUpdateRequest { + identity?: Identity; + properties?: VirtualMachineInstanceUpdateProperties; } // @public -export interface ValidateRequest { - additionalInfo?: string; - edgeDeviceIds: string[]; +export interface VirtualMachineInstanceView { + vmAgent?: VirtualMachineConfigAgentInstanceView; } // @public -export interface ValidateResponse { - readonly status?: string; +export interface VirtualSwitchConfigurationOverrides { + enableIov?: string; + loadBalancingAlgorithm?: string; } +// @public +export type VmSizeEnum = string; + // @public export type WindowsServerSubscription = string; diff --git a/sdk/azurestackhci/arm-azurestackhci/sample.env b/sdk/azurestackhci/arm-azurestackhci/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/azurestackhci/arm-azurestackhci/sample.env +++ b/sdk/azurestackhci/arm-azurestackhci/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/azurestackhci/arm-azurestackhci/src/azureStackHCIClient.ts b/sdk/azurestackhci/arm-azurestackhci/src/azureStackHCIClient.ts index fb49024f967e..ca1e71f6942e 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/azureStackHCIClient.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/azureStackHCIClient.ts @@ -20,14 +20,24 @@ import { DeploymentSettingsImpl, EdgeDevicesImpl, ExtensionsImpl, + GalleryImagesOperationsImpl, + LogicalNetworksOperationsImpl, + MarketplaceGalleryImagesOperationsImpl, + NetworkInterfacesOperationsImpl, OffersImpl, OperationsImpl, PublishersImpl, SecuritySettingsImpl, SkusImpl, + StorageContainersOperationsImpl, UpdateRunsImpl, UpdateSummariesOperationsImpl, UpdatesImpl, + VirtualHardDisksOperationsImpl, + VirtualMachineInstancesImpl, + HybridIdentityMetadataOperationsImpl, + GuestAgentOperationsImpl, + GuestAgentsImpl, } from "./operations"; import { ArcSettings, @@ -35,14 +45,24 @@ import { DeploymentSettings, EdgeDevices, Extensions, + GalleryImagesOperations, + LogicalNetworksOperations, + MarketplaceGalleryImagesOperations, + NetworkInterfacesOperations, Offers, Operations, Publishers, SecuritySettings, Skus, + StorageContainersOperations, UpdateRuns, UpdateSummariesOperations, Updates, + VirtualHardDisksOperations, + VirtualMachineInstances, + HybridIdentityMetadataOperations, + GuestAgentOperations, + GuestAgents, } from "./operationsInterfaces"; import { AzureStackHCIClientOptionalParams } from "./models"; @@ -54,7 +74,7 @@ export class AzureStackHCIClient extends coreClient.ServiceClient { /** * Initializes a new instance of the AzureStackHCIClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. The value must be an UUID. + * @param subscriptionId The ID of the target subscription. * @param options The parameter options */ constructor( @@ -92,7 +112,7 @@ export class AzureStackHCIClient extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-azurestackhci/4.0.0-beta.3`; + const packageDetails = `azsdk-js-arm-azurestackhci/4.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -146,20 +166,36 @@ export class AzureStackHCIClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2024-04-01"; + this.apiVersion = options.apiVersion || "2024-01-01"; this.arcSettings = new ArcSettingsImpl(this); this.clusters = new ClustersImpl(this); this.deploymentSettings = new DeploymentSettingsImpl(this); this.edgeDevices = new EdgeDevicesImpl(this); this.extensions = new ExtensionsImpl(this); + this.galleryImagesOperations = new GalleryImagesOperationsImpl(this); + this.logicalNetworksOperations = new LogicalNetworksOperationsImpl(this); + this.marketplaceGalleryImagesOperations = + new MarketplaceGalleryImagesOperationsImpl(this); + this.networkInterfacesOperations = new NetworkInterfacesOperationsImpl( + this, + ); this.offers = new OffersImpl(this); this.operations = new OperationsImpl(this); this.publishers = new PublishersImpl(this); this.securitySettings = new SecuritySettingsImpl(this); this.skus = new SkusImpl(this); + this.storageContainersOperations = new StorageContainersOperationsImpl( + this, + ); this.updateRuns = new UpdateRunsImpl(this); this.updateSummariesOperations = new UpdateSummariesOperationsImpl(this); this.updates = new UpdatesImpl(this); + this.virtualHardDisksOperations = new VirtualHardDisksOperationsImpl(this); + this.virtualMachineInstances = new VirtualMachineInstancesImpl(this); + this.hybridIdentityMetadataOperations = + new HybridIdentityMetadataOperationsImpl(this); + this.guestAgentOperations = new GuestAgentOperationsImpl(this); + this.guestAgents = new GuestAgentsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -196,12 +232,22 @@ export class AzureStackHCIClient extends coreClient.ServiceClient { deploymentSettings: DeploymentSettings; edgeDevices: EdgeDevices; extensions: Extensions; + galleryImagesOperations: GalleryImagesOperations; + logicalNetworksOperations: LogicalNetworksOperations; + marketplaceGalleryImagesOperations: MarketplaceGalleryImagesOperations; + networkInterfacesOperations: NetworkInterfacesOperations; offers: Offers; operations: Operations; publishers: Publishers; securitySettings: SecuritySettings; skus: Skus; + storageContainersOperations: StorageContainersOperations; updateRuns: UpdateRuns; updateSummariesOperations: UpdateSummariesOperations; updates: Updates; + virtualHardDisksOperations: VirtualHardDisksOperations; + virtualMachineInstances: VirtualMachineInstances; + hybridIdentityMetadataOperations: HybridIdentityMetadataOperations; + guestAgentOperations: GuestAgentOperations; + guestAgents: GuestAgents; } diff --git a/sdk/azurestackhci/arm-azurestackhci/src/models/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/models/index.ts index d7c5a58d88b9..3fe4d7afb0a5 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/models/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/models/index.ts @@ -8,8 +8,6 @@ import * as coreClient from "@azure/core-client"; -export type EdgeDeviceUnion = EdgeDevice | HciEdgeDevice; - /** List of ArcSetting proxy resources for the HCI cluster. */ export interface ArcSettingList { /** @@ -65,7 +63,7 @@ export interface DefaultExtensionDetails { /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** - * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + * Fully qualified resource ID for the resource. Ex - /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; @@ -215,181 +213,6 @@ export interface SoftwareAssuranceProperties { readonly lastUpdated?: Date; } -/** Log Collection properties of the cluster. */ -export interface LogCollectionProperties { - /** - * From DateTimeStamp from when logs need to be connected - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly fromDate?: Date; - /** - * To DateTimeStamp till when logs need to be connected - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly toDate?: Date; - /** - * Recent DateTimeStamp where logs are successfully generated - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastLogGenerated?: Date; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly logCollectionSessionDetails?: LogCollectionSession[]; -} - -/** Log Collection Session details of the cluster. */ -export interface LogCollectionSession { - /** - * Start Time of the logs when it was collected - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly logStartTime?: Date; - /** - * End Time of the logs when it was collected - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly logEndTime?: Date; - /** - * Duration of logs collected - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeCollected?: Date; - /** - * Size of the logs collected - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly logSize?: number; - /** - * LogCollection status - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly logCollectionStatus?: LogCollectionStatus; - /** - * LogCollection job type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly logCollectionJobType?: LogCollectionJobType; - /** - * CorrelationId of the log collection - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly correlationId?: string; - /** - * End Time of the logs when it was collected - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endTimeCollected?: Date; - /** - * Log Collection Error details of the cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly logCollectionError?: LogCollectionError; -} - -/** Log Collection Error details of the cluster. */ -export interface LogCollectionError { - /** - * Error Code of the log collection - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorCode?: string; - /** - * Error Message of the log collection - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorMessage?: string; -} - -/** Remote Support properties of the cluster. */ -export interface RemoteSupportProperties { - /** - * Remote Support Access Level - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly accessLevel?: AccessLevel; - /** - * Expiration DateTimeStamp when Remote Support Access will be expired - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly expirationTimeStamp?: Date; - /** - * Remote Support Type for cluster - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly remoteSupportType?: RemoteSupportType; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly remoteSupportNodeSettings?: RemoteSupportNodeSettings[]; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly remoteSupportSessionDetails?: PerNodeRemoteSupportSession[]; -} - -/** Remote Support Node Settings of the cluster. */ -export interface RemoteSupportNodeSettings { - /** - * Arc ResourceId of the Node - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly arcResourceId?: string; - /** - * Remote Support Access Connection State on the Node - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: string; - /** - * Remote Support Enablement Request Created TimeStamp on the Node - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly createdAt?: Date; - /** - * Remote Support Enablement Request Updated TimeStamp on the Node - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly updatedAt?: Date; - /** - * Remote Support Access Connection Status on the Node - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly connectionStatus?: string; - /** - * Remote Support Access Connection Error Message on the Node - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly connectionErrorMessage?: string; - /** - * Remote Support Transcript location on the node - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly transcriptLocation?: string; -} - -/** Remote Support Node Session Details on the Node. */ -export interface PerNodeRemoteSupportSession { - /** - * Remote Support Session StartTime on the Node - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sessionStartTime?: Date; - /** - * Remote Support Session EndTime on the Node - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sessionEndTime?: Date; - /** - * Name of the node - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nodeName?: string; - /** - * Duration of Remote Support Enablement - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly duration?: number; - /** - * Remote Support Access Level - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly accessLevel?: AccessLevel; -} - /** Desired properties of the cluster. */ export interface ClusterDesiredProperties { /** Desired state of Windows Server Subscription. */ @@ -605,39 +428,6 @@ export interface SoftwareAssuranceChangeRequestProperties { softwareAssuranceIntent?: SoftwareAssuranceIntent; } -/** Log Collection Request */ -export interface LogCollectionRequest { - /** Properties for Log Collection Request */ - properties?: LogCollectionRequestProperties; -} - -/** Properties for Log Collection Request */ -export interface LogCollectionRequestProperties { - /** From DateTimeStamp from when logs need to be connected */ - fromDate: Date; - /** To DateTimeStamp till when logs need to be connected */ - toDate: Date; -} - -/** Remote Support Request */ -export interface RemoteSupportRequest { - /** Properties for Remote Support Request */ - properties?: RemoteSupportRequestProperties; -} - -/** Properties for Remote Support Request */ -export interface RemoteSupportRequestProperties { - /** - * Remote Support Access Level - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly accessLevel?: AccessLevel; - /** Expiration DateTimeStamp when Remote Support Access will be expired */ - expirationTimeStamp?: Date; - /** Remote Support Type for cluster */ - remoteSupportType?: RemoteSupportType; -} - /** The response of a DeploymentSetting list operation. */ export interface DeploymentSettingListResult { /** The DeploymentSetting items on this page */ @@ -658,8 +448,6 @@ export interface DeploymentConfiguration { export interface ScaleUnits { /** Deployment Data to deploy AzureStackHCI Cluster. */ deploymentData: DeploymentData; - /** Solution builder extension (SBE) partner properties */ - sbePartnerInfo?: SbePartnerInfo; } /** The Deployment data of AzureStackHCI Cluster. */ @@ -681,15 +469,11 @@ export interface DeploymentData { /** list of physical nodes config to deploy AzureStackHCI Cluster. */ physicalNodes?: PhysicalNodes[]; /** HostNetwork config to deploy AzureStackHCI Cluster. */ - hostNetwork?: DeploymentSettingHostNetwork; - /** SDN Integration config to deploy AzureStackHCI Cluster. */ - sdnIntegration?: SdnIntegration; + hostNetwork?: HostNetwork; /** The path to the Active Directory Organizational Unit container object prepared for the deployment. */ adouPath?: string; - /** Azure keyvault endpoint. This property is deprecated from 2023-12-01-preview. Please use secrets property instead. */ + /** The URI to the keyvault / secret store. */ secretsLocation?: string; - /** secrets used for cloud deployment. */ - secrets?: EceDeploymentSecrets[]; /** OptionalServices config to deploy AzureStackHCI Cluster. */ optionalServices?: OptionalServices; } @@ -779,11 +563,11 @@ export interface PhysicalNodes { } /** The HostNetwork of a cluster. */ -export interface DeploymentSettingHostNetwork { +export interface HostNetwork { /** The network intents assigned to the network reference pattern used for the deployment. Each intent will define its own name, traffic type, adapter names, and overrides as recommended by your OEM. */ - intents?: DeploymentSettingIntents[]; + intents?: Intents[]; /** List of StorageNetworks config to deploy AzureStackHCI Cluster. */ - storageNetworks?: DeploymentSettingStorageNetworks[]; + storageNetworks?: StorageNetworks[]; /** Defines how the storage adapters between nodes are connected either switch or switch less.. */ storageConnectivitySwitchless?: boolean; /** Optional parameter required only for 3 Nodes Switchless deployments. This allows users to specify IPs and Mask for Storage NICs when Network ATC is not assigning the IPs for storage automatically. */ @@ -791,7 +575,7 @@ export interface DeploymentSettingHostNetwork { } /** The Intents of a cluster. */ -export interface DeploymentSettingIntents { +export interface Intents { /** Name of the network intent you wish to create. */ name?: string; /** List of network traffic types. Only allowed values are 'Compute', 'Storage', 'Management'. */ @@ -801,7 +585,7 @@ export interface DeploymentSettingIntents { /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. */ overrideVirtualSwitchConfiguration?: boolean; /** Set virtualSwitch ConfigurationOverrides for cluster. */ - virtualSwitchConfigurationOverrides?: DeploymentSettingVirtualSwitchConfigurationOverrides; + virtualSwitchConfigurationOverrides?: VirtualSwitchConfigurationOverrides; /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. */ overrideQosPolicy?: boolean; /** Set QoS PolicyOverrides for cluster. */ @@ -809,11 +593,11 @@ export interface DeploymentSettingIntents { /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. */ overrideAdapterProperty?: boolean; /** Set Adapter PropertyOverrides for cluster. */ - adapterPropertyOverrides?: DeploymentSettingAdapterPropertyOverrides; + adapterPropertyOverrides?: AdapterPropertyOverrides; } /** The VirtualSwitchConfigurationOverrides of a cluster. */ -export interface DeploymentSettingVirtualSwitchConfigurationOverrides { +export interface VirtualSwitchConfigurationOverrides { /** Enable IoV for Virtual Switch */ enableIov?: string; /** Load Balancing Algorithm for Virtual Switch */ @@ -831,7 +615,7 @@ export interface QosPolicyOverrides { } /** The AdapterPropertyOverrides of a cluster. */ -export interface DeploymentSettingAdapterPropertyOverrides { +export interface AdapterPropertyOverrides { /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. */ jumboPacket?: string; /** This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. */ @@ -841,51 +625,13 @@ export interface DeploymentSettingAdapterPropertyOverrides { } /** The StorageNetworks of a cluster. */ -export interface DeploymentSettingStorageNetworks { +export interface StorageNetworks { /** Name of the storage network. */ name?: string; /** Name of the storage network adapter. */ networkAdapterName?: string; /** ID specified for the VLAN storage network. This setting is applied to the network interfaces that route the storage and VM migration traffic. */ vlanId?: string; - /** List of Storage adapter physical nodes config to deploy AzureStackHCI Cluster. */ - storageAdapterIPInfo?: DeploymentSettingStorageAdapterIPInfo[]; -} - -/** The StorageAdapter physical nodes of a cluster. */ -export interface DeploymentSettingStorageAdapterIPInfo { - /** storage adapter physical node name. */ - physicalNode?: string; - /** The IPv4 address assigned to each storage adapter physical node on your Azure Stack HCI cluster. */ - ipv4Address?: string; - /** The SubnetMask address assigned to each storage adapter physical node on your Azure Stack HCI cluster. */ - subnetMask?: string; -} - -/** SDN Integration config to deploy AzureStackHCI Cluster. */ -export interface SdnIntegration { - /** network controller config for SDN Integration to deploy AzureStackHCI Cluster. */ - networkController?: NetworkController; -} - -/** network controller config for SDN Integration to deploy AzureStackHCI Cluster. */ -export interface NetworkController { - /** macAddressPoolStart of network controller used for SDN Integration. */ - macAddressPoolStart?: string; - /** macAddressPoolStop of network controller used for SDN Integration. */ - macAddressPoolStop?: string; - /** NetworkVirtualizationEnabled of network controller used for SDN Integration. */ - networkVirtualizationEnabled?: boolean; -} - -/** Protected parameters list stored in keyvault. */ -export interface EceDeploymentSecrets { - /** Secret name stored in keyvault. */ - secretName?: string; - /** Secret name expected for Enterprise Cloud Engine (ECE) deployment. */ - eceSecretName?: EceSecrets; - /** Secret URI stored in keyvault. */ - secretLocation?: string; } /** The OptionalServices of AzureStackHCI Cluster. */ @@ -894,66 +640,24 @@ export interface OptionalServices { customLocation?: string; } -/** The solution builder extension (SBE) partner deployment info for cluster. */ -export interface SbePartnerInfo { - /** SBE package and manifest information for the solution Builder Extension staged for AzureStackHCI cluster deployment. */ - sbeDeploymentInfo?: SbeDeploymentInfo; - /** List of SBE partner properties for AzureStackHCI cluster deployment. */ - partnerProperties?: SbePartnerProperties[]; - /** SBE credentials list for AzureStackHCI cluster deployment. */ - credentialList?: SbeCredentials[]; -} - -/** Solution builder extension (SBE) package and manifest information for the solution builder extension staged for AzureStackHCI cluster deployment. */ -export interface SbeDeploymentInfo { - /** SBE package version. */ - version?: string; - /** SBE family name. */ - family?: string; - /** SBE manifest publisher. */ - publisher?: string; - /** SBE Manifest Source. */ - sbeManifestSource?: string; - /** SBE Manifest Creation Date. */ - sbeManifestCreationDate?: Date; -} - -/** Solution builder extension (SBE) partner properties object. */ -export interface SbePartnerProperties { - /** SBE partner property name. */ - name?: string; - /** SBE partner property value. */ - value?: string; -} - -/** secrets used for solution builder extension (SBE) partner extensibility. */ -export interface SbeCredentials { - /** secret name stored in keyvault. */ - secretName?: string; - /** secret name expected for Enterprise Cloud Engine (ECE). */ - eceSecretName?: string; - /** secret URI stored in keyvault. */ - secretLocation?: string; -} - /** The DeploymentStatus of AzureStackHCI Cluster. */ -export interface EceReportedProperties { +export interface ReportedProperties { /** * validation status of AzureStackHCI Cluster Deployment. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly validationStatus?: EceActionStatus; + readonly validationStatus?: ValidationStatus; /** * Deployment status of AzureStackHCI Cluster Deployment. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deploymentStatus?: EceActionStatus; + readonly deploymentStatus?: DeploymentStatus; } -/** The ECE action plan deployment status for AzureStackHCI Cluster. */ -export interface EceActionStatus { +/** The ValidationStatus of AzureStackHCI Cluster. */ +export interface ValidationStatus { /** - * Status of ECE action AzureStackHCI Cluster Deployment. + * Status of AzureStackHCI Cluster Deployment. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status?: string; @@ -1008,19 +712,63 @@ export interface DeploymentStep { readonly exception?: string[]; } +/** The DeploymentStatus of AzureStackHCI Cluster. */ +export interface DeploymentStatus { + /** + * Status of AzureStackHCI Cluster Deployment. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; + /** + * List of steps of AzureStackHCI Cluster Deployment. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly steps?: DeploymentStep[]; +} + /** The response of a EdgeDevice list operation. */ export interface EdgeDeviceListResult { /** The EdgeDevice items on this page */ - value: EdgeDeviceUnion[]; + value: EdgeDevice[]; /** The link to the next page of items */ nextLink?: string; } +/** The device Configuration of a device. */ +export interface DeviceConfiguration { + /** NIC Details of device */ + nicDetails?: NicDetail[]; + /** device metadata details. */ + deviceMetadata?: string; +} + +/** The NIC Detail of a device. */ +export interface NicDetail { + /** Adapter Name of NIC */ + adapterName: string; + /** Interface Description of NIC */ + interfaceDescription?: string; + /** Component Id of NIC */ + componentId?: string; + /** Driver Version of NIC */ + driverVersion?: string; + /** Subnet Mask of NIC */ + ip4Address?: string; + /** Subnet Mask of NIC */ + subnetMask?: string; + /** Default Gateway of NIC */ + defaultGateway?: string; + /** DNS Servers for NIC */ + dnsServers?: string[]; + /** Default Isolation of Management NIC */ + defaultIsolationId?: string; +} + /** The validate request for Edge Device. */ export interface ValidateRequest { /** Node Ids against which, current node has to be validated. */ edgeDeviceIds: string[]; - /** Additional info required for validation. */ + /** additional Info required for validation */ additionalInfo?: string; } @@ -1126,13 +874,82 @@ export interface ExtensionUpgradeParameters { targetVersion?: string; } -/** List of Offer proxy resources for the HCI cluster. */ -export interface OfferList { +/** This is the gallery image definition identifier. */ +export interface GalleryImageIdentifier { + /** The name of the gallery image definition publisher. */ + publisher: string; + /** The name of the gallery image definition offer. */ + offer: string; + /** The name of the gallery image definition SKU. */ + sku: string; +} + +/** Specifies information about the gallery image version that you want to create or update. */ +export interface GalleryImageVersion { + /** This is the version of the gallery image. */ + name?: string; + /** This is the storage profile of a Gallery Image Version. */ + storageProfile?: GalleryImageVersionStorageProfile; +} + +/** This is the storage profile of a Gallery Image Version. */ +export interface GalleryImageVersionStorageProfile { + /** This is the OS disk image. */ + osDiskImage?: GalleryOSDiskImage; +} + +/** This is the disk image base class. */ +export interface GalleryDiskImage { /** - * List of Offer proxy resources. + * This property indicates the size of the VHD to be created. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: Offer[]; + readonly sizeInMB?: number; +} + +/** The observed state of gallery images */ +export interface GalleryImageStatus { + /** GalleryImage provisioning error code */ + errorCode?: string; + /** Descriptive error message */ + errorMessage?: string; + provisioningStatus?: GalleryImageStatusProvisioningStatus; + /** The download status of the gallery image */ + downloadStatus?: GalleryImageStatusDownloadStatus; + /** The progress of the operation in percentage */ + progressPercentage?: number; +} + +export interface GalleryImageStatusProvisioningStatus { + /** The ID of the operation performed on the gallery image */ + operationId?: string; + /** The status of the operation performed on the gallery image [Succeeded, Failed, InProgress] */ + status?: Status; +} + +/** The download status of the gallery image */ +export interface GalleryImageStatusDownloadStatus { + /** The downloaded sized of the image in MB */ + downloadSizeInMB?: number; +} + +/** The complex type of the extended location. */ +export interface ExtendedLocation { + /** The name of the extended location. */ + name?: string; + /** The type of the extended location. */ + type?: ExtendedLocationTypes; +} + +/** The gallery images resource patch definition. */ +export interface GalleryImagesUpdateRequest { + /** Resource tags */ + tags?: { [propertyName: string]: string }; +} + +/** List of gallery images. */ +export interface GalleryImagesListResult { + value?: GalleryImages[]; /** * Link to the next set of results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1140,70 +957,299 @@ export interface OfferList { readonly nextLink?: string; } -/** SKU Mapping details. */ -export interface SkuMappings { - /** Identifier of the CatalogPlan for the sku */ - catalogPlanId?: string; - /** Identifier for the sku */ - marketplaceSkuId?: string; - /** Array of SKU versions available */ - marketplaceSkuVersions?: string[]; +/** DhcpOptions contains an array of DNS servers available to VMs deployed in the logical network. Standard DHCP option for a subnet overrides logical network DHCP options. */ +export interface LogicalNetworkPropertiesDhcpOptions { + /** The list of DNS servers IP addresses. */ + dnsServers?: string[]; } -/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ -export interface OperationListResult { - /** - * List of operations supported by the resource provider - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Operation[]; - /** - * URL to get the next set of operation list results (if there are any). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; +export interface Subnet { + /** Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. */ + name?: string; + /** The address prefix for the subnet: Cidr for this subnet - IPv4, IPv6. */ + addressPrefix?: string; + /** List of address prefixes for the subnet. */ + addressPrefixes?: string[]; + /** IPAllocationMethod - The IP address allocation method. Possible values include: 'Static', 'Dynamic' */ + ipAllocationMethod?: IpAllocationMethodEnum; + /** IPConfigurationReferences - list of IPConfigurationReferences */ + ipConfigurationReferences?: SubnetPropertiesFormatIpConfigurationReferencesItem[]; + /** Route table resource. */ + routeTable?: RouteTable; + /** network associated pool of IP Addresses */ + ipPools?: IPPool[]; + /** Vlan to use for the subnet */ + vlan?: number; } -/** Details of a REST API operation, returned from the Resource Provider Operations API */ -export interface Operation { - /** - * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; +/** IPConfigurationReference - Describes a IPConfiguration under the virtual network */ +export interface SubnetPropertiesFormatIpConfigurationReferencesItem { + /** IPConfigurationID */ + id?: string; +} + +/** Route table resource. */ +export interface RouteTable { /** - * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. + * A unique read-only string that changes whenever the resource is updated. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly isDataAction?: boolean; - /** Localized display information for this particular operation. */ - display?: OperationDisplay; + readonly etag?: string; /** - * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" + * Resource name. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly origin?: Origin; + readonly name?: string; /** - * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * Resource type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly actionType?: ActionType; + readonly type?: string; + /** Collection of routes contained within a route table. */ + routes?: Route[]; } -/** Localized display information for this particular operation. */ -export interface OperationDisplay { +/** Route - Route resource. */ +export interface Route { + /** Name - name of the subnet */ + name?: string; + /** The destination CIDR to which the route applies. */ + addressPrefix?: string; + /** The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance. */ + nextHopIpAddress?: string; +} + +export interface IPPool { + /** Name of the IP-Pool */ + name?: string; + /** Type of the IP Pool [vm, vippool] */ + ipPoolType?: IPPoolTypeEnum; + /** Start of the IP address pool */ + start?: string; + /** End of the IP address pool */ + end?: string; + info?: IPPoolInfo; +} + +export interface IPPoolInfo { /** - * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + * Number of IP addresses allocated from the IP Pool * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provider?: string; + readonly used?: string; /** - * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + * Number of IP addresses available in the IP Pool * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resource?: string; - /** - * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + readonly available?: string; +} + +/** The observed state of logical networks */ +export interface LogicalNetworkStatus { + /** LogicalNetwork provisioning error code */ + errorCode?: string; + /** Descriptive error message */ + errorMessage?: string; + provisioningStatus?: LogicalNetworkStatusProvisioningStatus; +} + +export interface LogicalNetworkStatusProvisioningStatus { + /** The ID of the operation performed on the logical network */ + operationId?: string; + /** The status of the operation performed on the logical network [Succeeded, Failed, InProgress] */ + status?: Status; +} + +/** The logical network resource patch definition. */ +export interface LogicalNetworksUpdateRequest { + /** Resource tags */ + tags?: { [propertyName: string]: string }; +} + +export interface LogicalNetworksListResult { + value?: LogicalNetworks[]; + nextLink?: string; +} + +/** The observed state of marketplace gallery images */ +export interface MarketplaceGalleryImageStatus { + /** MarketplaceGalleryImage provisioning error code */ + errorCode?: string; + /** Descriptive error message */ + errorMessage?: string; + provisioningStatus?: MarketplaceGalleryImageStatusProvisioningStatus; + /** The download status of the gallery image */ + downloadStatus?: MarketplaceGalleryImageStatusDownloadStatus; + /** The progress of the operation in percentage */ + progressPercentage?: number; +} + +export interface MarketplaceGalleryImageStatusProvisioningStatus { + /** The ID of the operation performed on the gallery image */ + operationId?: string; + /** The status of the operation performed on the gallery image [Succeeded, Failed, InProgress] */ + status?: Status; +} + +/** The download status of the gallery image */ +export interface MarketplaceGalleryImageStatusDownloadStatus { + /** The downloaded sized of the image in MB */ + downloadSizeInMB?: number; +} + +/** The marketplace gallery image resource patch definition. */ +export interface MarketplaceGalleryImagesUpdateRequest { + /** Resource tags */ + tags?: { [propertyName: string]: string }; +} + +export interface MarketplaceGalleryImagesListResult { + value?: MarketplaceGalleryImages[]; + nextLink?: string; +} + +/** InterfaceIPConfiguration iPConfiguration in a network interface. */ +export interface IPConfiguration { + /** Name - The name of the resource that is unique within a resource group. This name can be used to access the resource. */ + name?: string; + /** InterfaceIPConfigurationPropertiesFormat properties of IP configuration. */ + properties?: IPConfigurationProperties; +} + +/** InterfaceIPConfigurationPropertiesFormat properties of IP configuration. */ +export interface IPConfigurationProperties { + /** + * Gateway for network interface + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly gateway?: string; + /** + * prefixLength for network interface + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly prefixLength?: string; + /** PrivateIPAddress - Private IP address of the IP configuration. */ + privateIPAddress?: string; + /** Subnet - Name of Subnet bound to the IP configuration. */ + subnet?: IPConfigurationPropertiesSubnet; +} + +/** Subnet - Name of Subnet bound to the IP configuration. */ +export interface IPConfigurationPropertiesSubnet { + /** ID - The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... */ + id?: string; +} + +export interface InterfaceDNSSettings { + /** List of DNS server IP Addresses for the interface */ + dnsServers?: string[]; +} + +/** The observed state of network interfaces */ +export interface NetworkInterfaceStatus { + /** NetworkInterface provisioning error code */ + errorCode?: string; + /** Descriptive error message */ + errorMessage?: string; + provisioningStatus?: NetworkInterfaceStatusProvisioningStatus; +} + +export interface NetworkInterfaceStatusProvisioningStatus { + /** The ID of the operation performed on the network interface */ + operationId?: string; + /** The status of the operation performed on the network interface [Succeeded, Failed, InProgress] */ + status?: Status; +} + +/** The network interface resource patch definition. */ +export interface NetworkInterfacesUpdateRequest { + /** Resource tags */ + tags?: { [propertyName: string]: string }; +} + +export interface NetworkInterfacesListResult { + value?: NetworkInterfaces[]; + nextLink?: string; +} + +/** List of Offer proxy resources for the HCI cluster. */ +export interface OfferList { + /** + * List of Offer proxy resources. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Offer[]; + /** + * Link to the next set of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** SKU Mapping details. */ +export interface SkuMappings { + /** Identifier of the CatalogPlan for the sku */ + catalogPlanId?: string; + /** Identifier for the sku */ + marketplaceSkuId?: string; + /** Array of SKU versions available */ + marketplaceSkuVersions?: string[]; +} + +/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +export interface OperationListResult { + /** + * List of operations supported by the resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Operation[]; + /** + * URL to get the next set of operation list results (if there are any). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface Operation { + /** + * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + display?: OperationDisplay; + /** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly origin?: Origin; + /** + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionType?: ActionType; +} + +/** Localized display information for this particular operation. */ +export interface OperationDisplay { + /** + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provider?: string; + /** + * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resource?: string; + /** + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly operation?: string; @@ -1279,6 +1325,37 @@ export interface SkuList { readonly nextLink?: string; } +/** The observed state of storage containers */ +export interface StorageContainerStatus { + /** StorageContainer provisioning error code */ + errorCode?: string; + /** Descriptive error message */ + errorMessage?: string; + /** Amount of space available on the disk in MB */ + availableSizeMB?: number; + /** Total size of the disk in MB */ + containerSizeMB?: number; + provisioningStatus?: StorageContainerStatusProvisioningStatus; +} + +export interface StorageContainerStatusProvisioningStatus { + /** The ID of the operation performed on the storage container */ + operationId?: string; + /** The status of the operation performed on the storage container [Succeeded, Failed, InProgress] */ + status?: Status; +} + +/** The storage container resource patch definition. */ +export interface StorageContainersUpdateRequest { + /** Resource tags */ + tags?: { [propertyName: string]: string }; +} + +export interface StorageContainersListResult { + value?: StorageContainers[]; + nextLink?: string; +} + /** List of Update runs */ export interface UpdateRunList { /** List of Update runs */ @@ -1306,8 +1383,6 @@ export interface Step { endTimeUtc?: Date; /** Completion time of this step or the last completed sub-step. */ lastUpdatedTimeUtc?: Date; - /** Expected execution time of a given step. This is optionally authored in the update action plan and can be empty. */ - expectedExecutionTime?: string; /** Recursive model for child steps of this step. */ steps?: Step[]; } @@ -1340,8 +1415,6 @@ export interface PrecheckResult { displayName?: string; /** Key-value pairs that allow grouping/filtering individual tests. */ tags?: PrecheckResultTags; - /** Key-value pairs that allow grouping/filtering individual tests. */ - healthCheckTags?: Record; /** User-facing name; one or more sentences indicating the direct issue. */ title?: string; /** The status of the check running (i.e. Failed, Succeeded, In Progress). This answers whether the check ran, and passed or failed. */ @@ -1356,9 +1429,7 @@ export interface PrecheckResult { targetResourceID?: string; /** The name of the affected resource. */ targetResourceName?: string; - /** The type of resource being referred to (well-known set of nouns in infrastructure, aligning with Monitoring). */ - targetResourceType?: string; - /** The time in which the HealthCheck was called. */ + /** The Time in which the HealthCheck was called. */ timestamp?: Date; /** Property bag of key value pairs for additional information. */ additionalData?: string; @@ -1395,485 +1466,375 @@ export interface UpdatePrerequisite { packageName?: string; } -/** Connectivity related configuration required by arc server. */ -export interface ArcConnectivityProperties { - /** True indicates ARC connectivity is enabled */ - enabled?: boolean; - /** Service configurations associated with the connectivity resource. They are only processed by the server if 'enabled' property is set to 'true'. */ - serviceConfigurations?: ServiceConfiguration[]; +/** The observed state of virtual hard disks */ +export interface VirtualHardDiskStatus { + /** VirtualHardDisk provisioning error code */ + errorCode?: string; + /** Descriptive error message */ + errorMessage?: string; + provisioningStatus?: VirtualHardDiskStatusProvisioningStatus; } -/** Service configuration details */ -export interface ServiceConfiguration { - /** Name of the service. */ - serviceName: ServiceName; - /** The port on which service is enabled. */ - port: number; +export interface VirtualHardDiskStatusProvisioningStatus { + /** The ID of the operation performed on the virtual hard disk */ + operationId?: string; + /** The status of the operation performed on the virtual hard disk [Succeeded, Failed, InProgress] */ + status?: Status; } -/** The AdapterPropertyOverrides of a cluster. */ -export interface HciEdgeDeviceAdapterPropertyOverrides { - /** - * This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly jumboPacket?: string; - /** - * This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly networkDirect?: string; - /** - * This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. Expected values are 'iWARP', 'RoCEv2', 'RoCE' - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly networkDirectTechnology?: string; +/** The virtual hard disk resource patch definition. */ +export interface VirtualHardDisksUpdateRequest { + /** Resource tags */ + tags?: { [propertyName: string]: string }; } -/** The device Configuration for edge device. */ -export interface DeviceConfiguration { - /** NIC Details of device */ - nicDetails?: NicDetail[]; - /** Device metadata details. */ - deviceMetadata?: string; +export interface VirtualHardDisksListResult { + value?: VirtualHardDisks[]; + nextLink?: string; } -/** The NIC Detail of a device. */ -export interface NicDetail { - /** Adapter Name of NIC */ - adapterName?: string; - /** Interface Description of NIC */ - interfaceDescription?: string; - /** Component Id of NIC */ - componentId?: string; - /** Driver Version of NIC */ - driverVersion?: string; - /** Subnet Mask of NIC */ - ip4Address?: string; - /** Subnet Mask of NIC */ - subnetMask?: string; - /** Default Gateway of NIC */ - defaultGateway?: string; - /** DNS Servers for NIC */ - dnsServers?: string[]; - /** Default Isolation of Management NIC */ - defaultIsolationId?: string; +/** HardwareProfile - Specifies the hardware settings for the virtual machine instance. */ +export interface VirtualMachineInstancePropertiesHardwareProfile { + vmSize?: VmSizeEnum; + /** number of processors for the virtual machine instance */ + processors?: number; + /** RAM in MB for the virtual machine instance */ + memoryMB?: number; + dynamicMemoryConfig?: VirtualMachineInstancePropertiesHardwareProfileDynamicMemoryConfig; +} + +export interface VirtualMachineInstancePropertiesHardwareProfileDynamicMemoryConfig { + maximumMemoryMB?: number; + minimumMemoryMB?: number; + /** Defines the amount of extra memory that should be reserved for a virtual machine instance at runtime, as a percentage of the total memory that the virtual machine instance is thought to need. This only applies to virtual systems with dynamic memory enabled. This property can be in the range of 5 to 2000. */ + targetMemoryBuffer?: number; +} + +/** NetworkProfile - describes the network configuration the virtual machine instance */ +export interface VirtualMachineInstancePropertiesNetworkProfile { + /** NetworkInterfaces - list of network interfaces to be attached to the virtual machine instance */ + networkInterfaces?: VirtualMachineInstancePropertiesNetworkProfileNetworkInterfacesItem[]; +} + +export interface VirtualMachineInstancePropertiesNetworkProfileNetworkInterfacesItem { + /** ID - Resource Id of the network interface */ + id?: string; } -/** Edge Device properties */ -export interface EdgeDeviceProperties { - /** Device Configuration */ - deviceConfiguration?: DeviceConfiguration; - /** - * Provisioning state of edgeDevice resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; +/** OsProfile - describes the configuration of the operating system and sets login data */ +export interface VirtualMachineInstancePropertiesOsProfile { + /** AdminPassword - admin password */ + adminPassword?: string; + /** AdminUsername - admin username */ + adminUsername?: string; + /** ComputerName - name of the compute */ + computerName?: string; + /** LinuxConfiguration - linux specific configuration values for the virtual machine instance */ + linuxConfiguration?: VirtualMachineInstancePropertiesOsProfileLinuxConfiguration; + /** Windows Configuration for the virtual machine instance */ + windowsConfiguration?: VirtualMachineInstancePropertiesOsProfileWindowsConfiguration; +} + +/** LinuxConfiguration - linux specific configuration values for the virtual machine instance */ +export interface VirtualMachineInstancePropertiesOsProfileLinuxConfiguration { + /** DisablePasswordAuthentication - whether password authentication should be disabled */ + disablePasswordAuthentication?: boolean; + /** Specifies the ssh key configuration for a Linux OS. */ + ssh?: SshConfiguration; + /** Used to indicate whether Arc for Servers agent onboarding should be triggered during the virtual machine instance creation process. */ + provisionVMAgent?: boolean; + /** Used to indicate whether the VM Config Agent should be installed during the virtual machine creation process. */ + provisionVMConfigAgent?: boolean; } -/** details of validation failure */ -export interface HciValidationFailureDetail { - /** - * Exception details while installing extension. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly exception?: string; +/** SSH configuration for Linux based VMs running on Azure */ +export interface SshConfiguration { + /** The list of SSH public keys used to authenticate with linux based VMs. */ + publicKeys?: SshPublicKey[]; } -/** Arc extension installed on edge device. */ -export interface HciEdgeDeviceArcExtension { - /** - * Arc extension name installed on edge device. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly extensionName?: string; - /** - * Arc extension state from arc machine extension. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: ArcExtensionState; - /** - * Error details while installing Arc extension. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorDetails?: HciValidationFailureDetail[]; - /** - * Arc Extension Azure resource id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly extensionResourceId?: string; - /** - * Extension version installed. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly typeHandlerVersion?: string; - /** - * Extension managed by user or Azure. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly managedBy?: ExtensionManagedBy; +/** Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed. */ +export interface SshPublicKey { + /** Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys */ + path?: string; + /** SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format.

For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed). */ + keyData?: string; } -/** Extensions details for edge device. */ -export interface ExtensionProfile { - /** - * List of Arc extensions installed on edge device. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly extensions?: HciEdgeDeviceArcExtension[]; +/** Windows Configuration for the virtual machine instance */ +export interface VirtualMachineInstancePropertiesOsProfileWindowsConfiguration { + /** Whether to EnableAutomaticUpdates on the machine */ + enableAutomaticUpdates?: boolean; + /** Specifies the ssh key configuration for Windows OS. */ + ssh?: SshConfiguration; + /** TimeZone for the virtual machine instance */ + timeZone?: string; + /** Used to indicate whether Arc for Servers agent onboarding should be triggered during the virtual machine instance creation process. */ + provisionVMAgent?: boolean; + /** Used to indicate whether the VM Config Agent should be installed during the virtual machine creation process. */ + provisionVMConfigAgent?: boolean; } -/** The network profile of a device. */ -export interface HciNetworkProfile { - /** - * List of NIC Details of device. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nicDetails?: HciNicDetail[]; - /** - * List of switch details for edge device. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly switchDetails?: SwitchDetail[]; - /** - * HostNetwork config to deploy AzureStackHCI Cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly hostNetwork?: HciEdgeDeviceHostNetwork; +/** SecurityProfile - Specifies the security settings for the virtual machine instance. */ +export interface VirtualMachineInstancePropertiesSecurityProfile { + enableTPM?: boolean; + uefiSettings?: VirtualMachineInstancePropertiesSecurityProfileUefiSettings; + /** Specifies the SecurityType of the virtual machine. EnableTPM and SecureBootEnabled must be set to true for SecurityType to function. */ + securityType?: SecurityTypes; } -/** The NIC Detail of a device. */ -export interface HciNicDetail { - /** - * Adapter Name of NIC - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly adapterName?: string; - /** - * Interface Description of NIC - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly interfaceDescription?: string; - /** - * Component Id of NIC - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly componentId?: string; - /** - * Driver Version of NIC - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly driverVersion?: string; - /** - * Subnet Mask of NIC - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ip4Address?: string; - /** - * Subnet Mask of NIC - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly subnetMask?: string; - /** - * Default Gateway of NIC - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly defaultGateway?: string; - /** - * DNS Servers for NIC - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dnsServers?: string[]; - /** - * Default Isolation of Management NIC - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly defaultIsolationId?: string; - /** - * MAC address information of NIC. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly macAddress?: string; - /** - * The slot attached to the NIC. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly slot?: string; - /** - * The switch attached to the NIC, if any. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly switchName?: string; - /** - * The type of NIC, physical, virtual, management. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nicType?: string; - /** - * The VLAN ID of the physical NIC. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly vlanId?: string; - /** - * The status of NIC, up, disconnected. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nicStatus?: string; +export interface VirtualMachineInstancePropertiesSecurityProfileUefiSettings { + /** Specifies whether secure boot should be enabled on the virtual machine instance. */ + secureBootEnabled?: boolean; } -/** List of switch details for edge device. */ -export interface SwitchDetail { - /** - * The name of the switch. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly switchName?: string; - /** - * The type of the switch. e.g. external, internal. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly switchType?: string; - /** - * This represents extensions installed on virtualSwitch. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly extensions?: SwitchExtension[]; +/** StorageProfile - contains information about the disks and storage information for the virtual machine instance */ +export interface VirtualMachineInstancePropertiesStorageProfile { + /** adds data disks to the virtual machine instance */ + dataDisks?: VirtualMachineInstancePropertiesStorageProfileDataDisksItem[]; + /** Which Image to use for the virtual machine instance */ + imageReference?: VirtualMachineInstancePropertiesStorageProfileImageReference; + /** VHD to attach as OS disk */ + osDisk?: VirtualMachineInstancePropertiesStorageProfileOsDisk; + /** Id of the storage container that hosts the VM configuration file */ + vmConfigStoragePathId?: string; } -/** This represents extensions installed on virtualSwitch. */ -export interface SwitchExtension { - /** - * Unique identifier for virtualSwitch. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly switchId?: string; - /** - * This will show extension name for virtualSwitch. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly extensionName?: string; - /** - * This represents whether extension is enabled on virtualSwitch. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly extensionEnabled?: boolean; +export interface VirtualMachineInstancePropertiesStorageProfileDataDisksItem { + /** Resource ID of the data disk */ + id?: string; +} + +/** Which Image to use for the virtual machine instance */ +export interface VirtualMachineInstancePropertiesStorageProfileImageReference { + /** Resource ID of the image */ + id?: string; +} + +/** VHD to attach as OS disk */ +export interface VirtualMachineInstancePropertiesStorageProfileOsDisk { + /** Resource ID of the OS disk */ + id?: string; + /** This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: **Windows,** **Linux.** */ + osType?: OperatingSystemTypes; +} + +/** HTTP Proxy configuration for the VM. */ +export interface HttpProxyConfiguration { + /** The HTTP proxy server endpoint to use. */ + httpProxy?: string; + /** The HTTPS proxy server endpoint to use. */ + httpsProxy?: string; + /** The endpoints that should not go through proxy. */ + noProxy?: string[]; + /** Alternative CA cert to use for connecting to proxy servers. */ + trustedCa?: string; +} + +/** The instance view of a virtual machine. */ +export interface VirtualMachineInstanceView { + /** The VM Config Agent running on the virtual machine. */ + vmAgent?: VirtualMachineConfigAgentInstanceView; +} + +/** The instance view of the VM Config Agent running on the virtual machine. */ +export interface VirtualMachineConfigAgentInstanceView { + /** The VM Config Agent full version. */ + vmConfigAgentVersion?: string; + /** The resource status information. */ + statuses?: InstanceViewStatus[]; } -/** The HostNetwork of a cluster. */ -export interface HciEdgeDeviceHostNetwork { - /** - * The network intents assigned to the network reference pattern used for the deployment. Each intent will define its own name, traffic type, adapter names, and overrides as recommended by your OEM. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly intents?: HciEdgeDeviceIntents[]; - /** - * List of StorageNetworks config to deploy AzureStackHCI Cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly storageNetworks?: HciEdgeDeviceStorageNetworks[]; - /** - * Defines how the storage adapters between nodes are connected either switch or switch less. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly storageConnectivitySwitchless?: boolean; - /** - * Optional parameter required only for 3 Nodes Switchless deployments. This allows users to specify IPs and Mask for Storage NICs when Network ATC is not assigning the IPs for storage automatically. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly enableStorageAutoIp?: boolean; +/** Instance view status. */ +export interface InstanceViewStatus { + /** The status code. */ + code?: string; + /** The level code. */ + level?: StatusLevelTypes; + /** The short localizable label for the status. */ + displayStatus?: string; + /** The detailed status message, including for alerts and error messages. */ + message?: string; + /** The time of the status. */ + time?: Date; } -/** The Intents of a cluster. */ -export interface HciEdgeDeviceIntents { - /** - * Scope for host network intent. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly scope?: number; - /** - * IntentType for host network intent. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly intentType?: number; - /** - * IsComputeIntentSet for host network intent. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isComputeIntentSet?: boolean; - /** - * IsStorageIntentSet for host network intent. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isStorageIntentSet?: boolean; - /** - * IntentType for host network intent. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isOnlyStorage?: boolean; - /** - * IsManagementIntentSet for host network intent. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isManagementIntentSet?: boolean; - /** - * IsStretchIntentSet for host network intent. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isStretchIntentSet?: boolean; - /** - * IsOnlyStretch for host network intent. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isOnlyStretch?: boolean; - /** - * IsNetworkIntentType for host network intent. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isNetworkIntentType?: boolean; - /** - * Name of the network intent you wish to create. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly intentName?: string; - /** - * Array of adapters used for the network intent. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly intentAdapters?: string[]; - /** - * This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly overrideVirtualSwitchConfiguration?: boolean; +/** The observed state of virtual machine instances */ +export interface VirtualMachineInstanceStatus { + /** VirtualMachine provisioning error code */ + errorCode?: string; + /** Descriptive error message */ + errorMessage?: string; + /** The power state of the virtual machine instance */ + powerState?: PowerStateEnum; + provisioningStatus?: VirtualMachineInstanceStatusProvisioningStatus; +} + +export interface VirtualMachineInstanceStatusProvisioningStatus { + /** The ID of the operation performed on the virtual machine instance */ + operationId?: string; + /** The status of the operation performed on the virtual machine instance [Succeeded, Failed, InProgress] */ + status?: Status; +} + +/** Defines the status of a guest agent installation. */ +export interface GuestAgentInstallStatus { /** - * Set virtualSwitch ConfigurationOverrides for cluster. + * Specifies the VM's unique SMBIOS ID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly virtualSwitchConfigurationOverrides?: HciEdgeDeviceVirtualSwitchConfigurationOverrides; + readonly vmUuid?: string; /** - * This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. + * The installation status of the hybrid machine agent installation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly overrideQosPolicy?: boolean; + readonly status?: StatusTypes; /** - * Set QoS PolicyOverrides for cluster. + * The time of the last status change. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly qosPolicyOverrides?: QosPolicyOverrides; + readonly lastStatusChange?: Date; /** - * This parameter should only be modified based on your OEM guidance. Do not modify this parameter without OEM validation. + * The hybrid machine agent full version. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly overrideAdapterProperty?: boolean; + readonly agentVersion?: string; /** - * Set Adapter PropertyOverrides for cluster. + * Details about the error state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly adapterPropertyOverrides?: HciEdgeDeviceAdapterPropertyOverrides; + readonly errorDetails?: ErrorDetail[]; } -/** The VirtualSwitchConfigurationOverrides of a cluster. */ -export interface HciEdgeDeviceVirtualSwitchConfigurationOverrides { +/** Identity for the resource. */ +export interface Identity { /** - * Enable IoV for Virtual Switch + * The principal ID of resource identity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly enableIov?: string; + readonly principalId?: string; /** - * Load Balancing Algorithm for Virtual Switch + * The tenant ID of resource. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly loadBalancingAlgorithm?: string; + readonly tenantId?: string; + /** The identity type. */ + type?: "SystemAssigned"; } -/** The StorageNetworks of a cluster. */ -export interface HciEdgeDeviceStorageNetworks { - /** - * Name of the storage network. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Name of the storage network adapter. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly networkAdapterName?: string; - /** - * ID specified for the VLAN storage network. This setting is applied to the network interfaces that route the storage and VM migration traffic. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly storageVlanId?: string; - /** - * List of Storage adapter physical nodes config to deploy AzureStackHCI Cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly storageAdapterIPInfo?: HciEdgeDeviceStorageAdapterIPInfo[]; +/** The virtual machine instance resource patch definition. */ +export interface VirtualMachineInstanceUpdateRequest { + /** Defines the resource properties for the update. */ + properties?: VirtualMachineInstanceUpdateProperties; + /** Identity for the resource. */ + identity?: Identity; } -/** The StorageAdapter physical nodes of a cluster. */ -export interface HciEdgeDeviceStorageAdapterIPInfo { - /** - * storage adapter physical node name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly physicalNode?: string; - /** - * The IPv4 address assigned to each storage adapter physical node on your Azure Stack HCI cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ipv4Address?: string; - /** - * The SubnetMask address assigned to each storage adapter physical node on your Azure Stack HCI cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly subnetMask?: string; +/** Defines the resource properties for the update. */ +export interface VirtualMachineInstanceUpdateProperties { + /** HardwareProfile - Specifies the hardware settings for the virtual machine instance. */ + hardwareProfile?: HardwareProfileUpdate; + storageProfile?: StorageProfileUpdate; + /** NetworkProfile - describes the network update configuration the virtual machine instance */ + networkProfile?: NetworkProfileUpdate; + /** OsProfile - describes the update configuration of the operating system */ + osProfile?: OsProfileUpdate; } -/** OS configurations for HCI device. */ -export interface HciOsProfile { - /** - * The boot type of the device. e.g. UEFI, Legacy etc - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly bootType?: string; - /** - * Version of assembly present on device - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly assemblyVersion?: string; +/** HardwareProfile - Specifies the hardware settings for the virtual machine instance. */ +export interface HardwareProfileUpdate { + vmSize?: VmSizeEnum; + /** number of processors for the virtual machine instance */ + processors?: number; + /** RAM in MB for the virtual machine instance */ + memoryMB?: number; } -/** Solution builder extension (SBE) deployment package information. */ -export interface SbeDeploymentPackageInfo { - /** - * SBE deployment validation code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly code?: string; - /** - * A detailed message that explains the SBE package validation result. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly message?: string; - /** - * This represents discovered update results for matching updates and store it as SBE manifest. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sbeManifest?: string; +export interface StorageProfileUpdate { + /** adds data disks to the virtual machine instance for the update call */ + dataDisks?: StorageProfileUpdateDataDisksItem[]; } -/** Reported properties pushed from edge device. */ -export interface ReportedProperties { - /** - * edge device state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly deviceState?: DeviceState; - /** - * Extensions details for edge device. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly extensionProfile?: ExtensionProfile; +export interface StorageProfileUpdateDataDisksItem { + id?: string; +} + +/** NetworkProfile - describes the network update configuration the virtual machine instance */ +export interface NetworkProfileUpdate { + /** NetworkInterfaces - list of network interfaces to be attached to the virtual machine instance */ + networkInterfaces?: NetworkProfileUpdateNetworkInterfacesItem[]; +} + +export interface NetworkProfileUpdateNetworkInterfacesItem { + /** ID - Resource ID of the network interface */ + id?: string; +} + +/** OsProfile - describes the update configuration of the operating system */ +export interface OsProfileUpdate { + /** ComputerName - name of the computer */ + computerName?: string; + linuxConfiguration?: OsProfileUpdateLinuxConfiguration; + windowsConfiguration?: OsProfileUpdateWindowsConfiguration; +} + +export interface OsProfileUpdateLinuxConfiguration { + /** Used to indicate whether Arc for Servers agent onboarding should be triggered during the virtual machine instance creation process. */ + provisionVMAgent?: boolean; + /** Used to indicate whether the VM Config Agent should be installed during the virtual machine creation process. */ + provisionVMConfigAgent?: boolean; +} + +export interface OsProfileUpdateWindowsConfiguration { + /** Used to indicate whether Arc for Servers agent onboarding should be triggered during the virtual machine instance creation process. */ + provisionVMAgent?: boolean; + /** Used to indicate whether the VM Config Agent should be installed during the virtual machine creation process. */ + provisionVMConfigAgent?: boolean; +} + +export interface VirtualMachineInstanceListResult { + value?: VirtualMachineInstance[]; + nextLink?: string; +} + +/** List of HybridIdentityMetadata. */ +export interface HybridIdentityMetadataList { + /** Url to follow for getting next page of HybridIdentityMetadata. */ + nextLink?: string; + /** Array of HybridIdentityMetadata */ + value: HybridIdentityMetadata[]; +} + +/** Username / Password Credentials to connect to guest. */ +export interface GuestCredential { + /** The username to connect with the guest. */ + username?: string; + /** The password to connect with the guest. */ + password?: string; +} + +/** List of GuestAgent. */ +export interface GuestAgentList { + /** Url to follow for getting next page of GuestAgent. */ + nextLink?: string; + /** Array of GuestAgent */ + value: GuestAgent[]; +} + +/** Connectivity related configuration required by arc server. */ +export interface ArcConnectivityProperties { + /** True indicates ARC connectivity is enabled */ + enabled?: boolean; + /** Service configurations associated with the connectivity resource. They are only processed by the server if 'enabled' property is set to 'true'. */ + serviceConfigurations?: ServiceConfiguration[]; +} + +/** Service configuration details */ +export interface ServiceConfiguration { + /** Name of the service. */ + serviceName: ServiceName; + /** The port on which service is enabled. */ + port: number; } /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ @@ -1887,33 +1848,8 @@ export interface TrackedResource extends Resource { location: string; } -/** properties for Arc-enabled edge device with HCI OS. */ -export interface HciEdgeDeviceProperties extends EdgeDeviceProperties { - /** - * The instance view of all current configurations on HCI device. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly reportedProperties?: HciReportedProperties; -} - -/** The device Configuration for HCI device. */ -export interface HciReportedProperties extends ReportedProperties { - /** - * HCI device network information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly networkProfile?: HciNetworkProfile; - /** - * HCI device OS specific information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly osProfile?: HciOsProfile; - /** - * Solution builder extension (SBE) deployment package information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sbeDeploymentPackageInfo?: SbeDeploymentPackageInfo; -} +/** This is the OS disk image. */ +export interface GalleryOSDiskImage extends GalleryDiskImage {} /** ArcSetting details. */ export interface ArcSetting extends ProxyResource { @@ -1953,30 +1889,27 @@ export interface ArcSetting extends ProxyResource { /** Edge device resource */ export interface DeploymentSetting extends ProxyResource { - /** - * DeploymentSetting provisioning state - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; + /** DeploymentSetting provisioning state */ + provisioningState?: ProvisioningState; /** Azure resource ids of Arc machines to be part of cluster. */ arcNodeResourceIds?: string[]; /** The deployment mode for cluster deployment. */ deploymentMode?: DeploymentMode; - /** The intended operation for a cluster. */ - operationType?: OperationType; /** Scale units will contains list of deployment data */ deploymentConfiguration?: DeploymentConfiguration; /** * Deployment Status reported from cluster. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reportedProperties?: EceReportedProperties; + readonly reportedProperties?: ReportedProperties; } -/** Edge device resource. */ +/** Edge device resource */ export interface EdgeDevice extends ProxyResource { - /** Device kind to support polymorphic resource. */ - kind: DeviceKind; + /** Device Configuration */ + deviceConfiguration?: DeviceConfiguration; + /** Provisioning state of edgeDevice resource */ + provisioningState?: ProvisioningState; } /** Details of a particular extension in HCI Cluster. */ @@ -2049,10 +1982,6 @@ export interface Publisher extends ProxyResource { export interface SecuritySetting extends ProxyResource { /** Secured Core Compliance Assignment */ securedCoreComplianceAssignment?: ComplianceAssignmentType; - /** WDAC Compliance Assignment */ - wdacComplianceAssignment?: ComplianceAssignmentType; - /** SMB encryption for intra-cluster traffic Compliance Assignment */ - smbEncryptionForIntraClusterTrafficComplianceAssignment?: ComplianceAssignmentType; /** * Security Compliance Status * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2112,8 +2041,6 @@ export interface UpdateRun extends ProxyResource { endTimeUtc?: Date; /** Completion time of this step or the last completed sub-step. */ lastUpdatedTimeUtc?: Date; - /** Expected execution time of a given step. This is optionally authored in the update action plan and can be empty. */ - expectedExecutionTime?: string; /** Recursive model for child steps of this step. */ steps?: Step[]; } @@ -2129,16 +2056,12 @@ export interface UpdateSummaries extends ProxyResource { readonly provisioningState?: ProvisioningState; /** OEM family name. */ oemFamily?: string; - /** Current OEM Version. */ - currentOemVersion?: string; /** Name of the hardware model. */ hardwareModel?: string; /** Current version of each updatable component. */ packageVersions?: PackageVersionInfo[]; /** Current Solution Bundle version of the stamp. */ currentVersion?: string; - /** Current Sbe version of the stamp. */ - currentSbeVersion?: string; /** Last time an update installation completed successfully. */ lastUpdated?: Date; /** Last time the update service successfully checked for updates */ @@ -2166,8 +2089,6 @@ export interface Update extends ProxyResource { installedDate?: Date; /** Description of the update. */ description?: string; - /** Minimum Sbe Version of the update. */ - minSbeVersionRequired?: string; /** State of the update as it relates to this stamp. */ state?: State; /** If update State is HasPrerequisite, this property contains an array of objects describing prerequisite updates before installing this update. Otherwise, it is empty. */ @@ -2205,6 +2126,86 @@ export interface Update extends ProxyResource { notifyMessage?: string; } +/** The virtual machine instance resource definition. */ +export interface VirtualMachineInstance extends ProxyResource { + /** The extendedLocation of the resource. */ + extendedLocation?: ExtendedLocation; + /** Identity for the resource. */ + identity?: Identity; + /** HardwareProfile - Specifies the hardware settings for the virtual machine instance. */ + hardwareProfile?: VirtualMachineInstancePropertiesHardwareProfile; + /** NetworkProfile - describes the network configuration the virtual machine instance */ + networkProfile?: VirtualMachineInstancePropertiesNetworkProfile; + /** OsProfile - describes the configuration of the operating system and sets login data */ + osProfile?: VirtualMachineInstancePropertiesOsProfile; + /** SecurityProfile - Specifies the security settings for the virtual machine instance. */ + securityProfile?: VirtualMachineInstancePropertiesSecurityProfile; + /** StorageProfile - contains information about the disks and storage information for the virtual machine instance */ + storageProfile?: VirtualMachineInstancePropertiesStorageProfile; + /** HTTP Proxy configuration for the VM. */ + httpProxyConfig?: HttpProxyConfiguration; + /** + * Provisioning state of the virtual machine instance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningStateEnum; + /** + * The virtual machine instance view. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly instanceView?: VirtualMachineInstanceView; + /** + * The observed state of virtual machine instances + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: VirtualMachineInstanceStatus; + /** Guest agent install status. */ + guestAgentInstallStatus?: GuestAgentInstallStatus; + /** + * Unique identifier for the vm resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly vmId?: string; + /** Unique identifier defined by ARC to identify the guest of the VM. */ + resourceUid?: string; +} + +/** Defines the HybridIdentityMetadata. */ +export interface HybridIdentityMetadata extends ProxyResource { + /** The unique identifier for the resource. */ + resourceUid?: string; + /** The Public Key. */ + publicKey?: string; + /** + * Identity for the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly identity?: Identity; + /** + * The provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; +} + +/** Defines the GuestAgent. */ +export interface GuestAgent extends ProxyResource { + /** Username / Password Credentials to provision guest agent. */ + credentials?: GuestCredential; + /** The guest agent provisioning action. */ + provisioningAction?: ProvisioningAction; + /** + * The guest agent status. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; + /** + * The provisioning state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; +} + /** Cluster details. */ export interface Cluster extends TrackedResource { /** @@ -2239,10 +2240,6 @@ export interface Cluster extends TrackedResource { aadServicePrincipalObjectId?: string; /** Software Assurance properties of the cluster. */ softwareAssuranceProperties?: SoftwareAssuranceProperties; - /** Log Collection properties of the cluster. */ - logCollectionProperties?: LogCollectionProperties; - /** RemoteSupport properties of the cluster. */ - remoteSupportProperties?: RemoteSupportProperties; /** Desired properties of the cluster. */ desiredProperties?: ClusterDesiredProperties; /** @@ -2306,22 +2303,153 @@ export interface Cluster extends TrackedResource { userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity }; } -/** Arc-enabled edge device with HCI OS. */ -export interface HciEdgeDevice extends EdgeDevice { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "HCI"; - /** properties for Arc-enabled edge device with HCI OS. */ - properties?: HciEdgeDeviceProperties; +/** The gallery images resource definition. */ +export interface GalleryImages extends TrackedResource { + /** The extendedLocation of the resource. */ + extendedLocation?: ExtendedLocation; + /** Storage ContainerID of the storage container to be used for gallery image */ + containerId?: string; + /** location of the image the gallery image should be created from */ + imagePath?: string; + /** Operating system type that the gallery image uses [Windows, Linux] */ + osType?: OperatingSystemTypes; + /** Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure] */ + cloudInitDataSource?: CloudInitDataSource; + /** The hypervisor generation of the Virtual Machine [V1, V2] */ + hyperVGeneration?: HyperVGeneration; + /** This is the gallery image definition identifier. */ + identifier?: GalleryImageIdentifier; + /** Specifies information about the gallery image version that you want to create or update. */ + version?: GalleryImageVersion; + /** + * Provisioning state of the gallery image. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningStateEnum; + /** + * The observed state of gallery images + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: GalleryImageStatus; +} + +/** The logical network resource definition. */ +export interface LogicalNetworks extends TrackedResource { + /** The extendedLocation of the resource. */ + extendedLocation?: ExtendedLocation; + /** DhcpOptions contains an array of DNS servers available to VMs deployed in the logical network. Standard DHCP option for a subnet overrides logical network DHCP options. */ + dhcpOptions?: LogicalNetworkPropertiesDhcpOptions; + /** Subnet - list of subnets under the logical network */ + subnets?: Subnet[]; + /** + * Provisioning state of the logical network. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningStateEnum; + /** name of the network switch to be used for VMs */ + vmSwitchName?: string; + /** + * The observed state of logical networks + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: LogicalNetworkStatus; } -/** Defines headers for Clusters_triggerLogCollection operation. */ -export interface ClustersTriggerLogCollectionHeaders { - location?: string; +/** The marketplace gallery image resource definition. */ +export interface MarketplaceGalleryImages extends TrackedResource { + /** The extendedLocation of the resource. */ + extendedLocation?: ExtendedLocation; + /** Storage ContainerID of the storage container to be used for marketplace gallery image */ + containerId?: string; + /** Operating system type that the gallery image uses [Windows, Linux] */ + osType?: OperatingSystemTypes; + /** Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure] */ + cloudInitDataSource?: CloudInitDataSource; + /** The hypervisor generation of the Virtual Machine [V1, V2] */ + hyperVGeneration?: HyperVGeneration; + /** This is the gallery image definition identifier. */ + identifier?: GalleryImageIdentifier; + /** Specifies information about the gallery image version that you want to create or update. */ + version?: GalleryImageVersion; + /** + * Provisioning state of the marketplace gallery image. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningStateEnum; + /** + * The observed state of marketplace gallery images + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: MarketplaceGalleryImageStatus; } -/** Defines headers for Clusters_configureRemoteSupport operation. */ -export interface ClustersConfigureRemoteSupportHeaders { - location?: string; +/** The network interface resource definition. */ +export interface NetworkInterfaces extends TrackedResource { + /** The extendedLocation of the resource. */ + extendedLocation?: ExtendedLocation; + /** IPConfigurations - A list of IPConfigurations of the network interface. */ + ipConfigurations?: IPConfiguration[]; + /** MacAddress - The MAC address of the network interface. */ + macAddress?: string; + /** DNS Settings for the interface */ + dnsSettings?: InterfaceDNSSettings; + /** + * Provisioning state of the network interface. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningStateEnum; + /** + * The observed state of network interfaces + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: NetworkInterfaceStatus; +} + +/** The storage container resource definition. */ +export interface StorageContainers extends TrackedResource { + /** The extendedLocation of the resource. */ + extendedLocation?: ExtendedLocation; + /** Path of the storage container on the disk */ + path?: string; + /** + * Provisioning state of the storage container. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningStateEnum; + /** + * The observed state of storage containers + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: StorageContainerStatus; +} + +/** The virtual hard disk resource definition. */ +export interface VirtualHardDisks extends TrackedResource { + /** The extendedLocation of the resource. */ + extendedLocation?: ExtendedLocation; + blockSizeBytes?: number; + /** Size of the disk in GB */ + diskSizeGB?: number; + /** Boolean for enabling dynamic sizing on the virtual hard disk */ + dynamic?: boolean; + logicalSectorBytes?: number; + physicalSectorBytes?: number; + /** The hypervisor generation of the Virtual Machine [V1, V2] */ + hyperVGeneration?: HyperVGeneration; + /** The format of the actual VHD file [vhd, vhdx] */ + diskFileFormat?: DiskFileFormat; + /** + * Provisioning state of the virtual hard disk. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningStateEnum; + /** Storage ContainerID of the storage container to be used for VHD */ + containerId?: string; + /** + * The observed state of virtual hard disks + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: VirtualHardDiskStatus; } /** Defines headers for DeploymentSettings_createOrUpdate operation. */ @@ -2360,6 +2488,46 @@ export interface EdgeDevicesValidateHeaders { location?: string; } +/** Defines headers for GalleryImages_delete operation. */ +export interface GalleryImagesDeleteHeaders { + location?: string; +} + +/** Defines headers for GalleryImages_update operation. */ +export interface GalleryImagesUpdateHeaders { + location?: string; +} + +/** Defines headers for LogicalNetworks_delete operation. */ +export interface LogicalNetworksDeleteHeaders { + location?: string; +} + +/** Defines headers for LogicalNetworks_update operation. */ +export interface LogicalNetworksUpdateHeaders { + location?: string; +} + +/** Defines headers for MarketplaceGalleryImages_delete operation. */ +export interface MarketplaceGalleryImagesDeleteHeaders { + location?: string; +} + +/** Defines headers for MarketplaceGalleryImages_update operation. */ +export interface MarketplaceGalleryImagesUpdateHeaders { + location?: string; +} + +/** Defines headers for NetworkInterfaces_delete operation. */ +export interface NetworkInterfacesDeleteHeaders { + location?: string; +} + +/** Defines headers for NetworkInterfaces_update operation. */ +export interface NetworkInterfacesUpdateHeaders { + location?: string; +} + /** Defines headers for SecuritySettings_createOrUpdate operation. */ export interface SecuritySettingsCreateOrUpdateHeaders { /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ @@ -2374,6 +2542,16 @@ export interface SecuritySettingsDeleteHeaders { location?: string; } +/** Defines headers for StorageContainers_delete operation. */ +export interface StorageContainersDeleteHeaders { + location?: string; +} + +/** Defines headers for StorageContainers_update operation. */ +export interface StorageContainersUpdateHeaders { + location?: string; +} + /** Defines headers for UpdateRuns_delete operation. */ export interface UpdateRunsDeleteHeaders { /** URL to query for status of the operation. */ @@ -2398,6 +2576,46 @@ export interface UpdatesDeleteHeaders { azureAsyncOperation?: string; } +/** Defines headers for VirtualHardDisks_delete operation. */ +export interface VirtualHardDisksDeleteHeaders { + location?: string; +} + +/** Defines headers for VirtualHardDisks_update operation. */ +export interface VirtualHardDisksUpdateHeaders { + location?: string; +} + +/** Defines headers for VirtualMachineInstances_delete operation. */ +export interface VirtualMachineInstancesDeleteHeaders { + location?: string; +} + +/** Defines headers for VirtualMachineInstances_update operation. */ +export interface VirtualMachineInstancesUpdateHeaders { + location?: string; +} + +/** Defines headers for VirtualMachineInstances_start operation. */ +export interface VirtualMachineInstancesStartHeaders { + location?: string; +} + +/** Defines headers for VirtualMachineInstances_stop operation. */ +export interface VirtualMachineInstancesStopHeaders { + location?: string; +} + +/** Defines headers for VirtualMachineInstances_restart operation. */ +export interface VirtualMachineInstancesRestartHeaders { + location?: string; +} + +/** Defines headers for GuestAgent_delete operation. */ +export interface GuestAgentDeleteHeaders { + location?: string; +} + /** Known values of {@link ProvisioningState} that the service accepts. */ export enum KnownProvisioningState { /** NotSpecified */ @@ -2767,84 +2985,6 @@ export enum KnownSoftwareAssuranceIntent { */ export type SoftwareAssuranceIntent = string; -/** Known values of {@link LogCollectionStatus} that the service accepts. */ -export enum KnownLogCollectionStatus { - /** None */ - None = "None", - /** InProgress */ - InProgress = "InProgress", - /** Failed */ - Failed = "Failed", - /** Succeeded */ - Succeeded = "Succeeded", -} - -/** - * Defines values for LogCollectionStatus. \ - * {@link KnownLogCollectionStatus} can be used interchangeably with LogCollectionStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **InProgress** \ - * **Failed** \ - * **Succeeded** - */ -export type LogCollectionStatus = string; - -/** Known values of {@link LogCollectionJobType} that the service accepts. */ -export enum KnownLogCollectionJobType { - /** OnDemand */ - OnDemand = "OnDemand", - /** Scheduled */ - Scheduled = "Scheduled", -} - -/** - * Defines values for LogCollectionJobType. \ - * {@link KnownLogCollectionJobType} can be used interchangeably with LogCollectionJobType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **OnDemand** \ - * **Scheduled** - */ -export type LogCollectionJobType = string; - -/** Known values of {@link AccessLevel} that the service accepts. */ -export enum KnownAccessLevel { - /** Diagnostics */ - Diagnostics = "Diagnostics", - /** DiagnosticsAndRepair */ - DiagnosticsAndRepair = "DiagnosticsAndRepair", -} - -/** - * Defines values for AccessLevel. \ - * {@link KnownAccessLevel} can be used interchangeably with AccessLevel, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Diagnostics** \ - * **DiagnosticsAndRepair** - */ -export type AccessLevel = string; - -/** Known values of {@link RemoteSupportType} that the service accepts. */ -export enum KnownRemoteSupportType { - /** Enable */ - Enable = "Enable", - /** Revoke */ - Revoke = "Revoke", -} - -/** - * Defines values for RemoteSupportType. \ - * {@link KnownRemoteSupportType} can be used interchangeably with RemoteSupportType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enable** \ - * **Revoke** - */ -export type RemoteSupportType = string; - /** Known values of {@link WindowsServerSubscription} that the service accepts. */ export enum KnownWindowsServerSubscription { /** Disabled */ @@ -2940,9 +3080,9 @@ export type ImdsAttestation = string; /** Known values of {@link DeploymentMode} that the service accepts. */ export enum KnownDeploymentMode { - /** Validate ECE action deployment for a cluster. */ + /** Validate deployment settings for cluster. */ Validate = "Validate", - /** Deploy ECE action deployment for a cluster. */ + /** Deploy cluster using deployment settings. */ Deploy = "Deploy", } @@ -2951,68 +3091,11 @@ export enum KnownDeploymentMode { * {@link KnownDeploymentMode} can be used interchangeably with DeploymentMode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Validate**: Validate ECE action deployment for a cluster. \ - * **Deploy**: Deploy ECE action deployment for a cluster. + * **Validate**: Validate deployment settings for cluster. \ + * **Deploy**: Deploy cluster using deployment settings. */ export type DeploymentMode = string; -/** Known values of {@link OperationType} that the service accepts. */ -export enum KnownOperationType { - /** Cluster provisioning operation. */ - ClusterProvisioning = "ClusterProvisioning", - /** Cluster upgrade operation. */ - ClusterUpgrade = "ClusterUpgrade", -} - -/** - * Defines values for OperationType. \ - * {@link KnownOperationType} can be used interchangeably with OperationType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ClusterProvisioning**: Cluster provisioning operation. \ - * **ClusterUpgrade**: Cluster upgrade operation. - */ -export type OperationType = string; - -/** Known values of {@link EceSecrets} that the service accepts. */ -export enum KnownEceSecrets { - /** AzureStackLCMUserCredential used for LCM operations for AzureStackHCI cluster. */ - AzureStackLCMUserCredential = "AzureStackLCMUserCredential", - /** DefaultARBApplication used to manage Azure Arc resource bridge (ARB) for AzureStackHCI cluster. */ - DefaultARBApplication = "DefaultARBApplication", - /** LocalAdminCredential used for admin operations for AzureStackHCI cluster. */ - LocalAdminCredential = "LocalAdminCredential", - /** WitnessStorageKey used for setting up a cloud witness for AzureStackHCI cluster. */ - WitnessStorageKey = "WitnessStorageKey", -} - -/** - * Defines values for EceSecrets. \ - * {@link KnownEceSecrets} can be used interchangeably with EceSecrets, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AzureStackLCMUserCredential**: AzureStackLCMUserCredential used for LCM operations for AzureStackHCI cluster. \ - * **DefaultARBApplication**: DefaultARBApplication used to manage Azure Arc resource bridge (ARB) for AzureStackHCI cluster. \ - * **LocalAdminCredential**: LocalAdminCredential used for admin operations for AzureStackHCI cluster. \ - * **WitnessStorageKey**: WitnessStorageKey used for setting up a cloud witness for AzureStackHCI cluster. - */ -export type EceSecrets = string; - -/** Known values of {@link DeviceKind} that the service accepts. */ -export enum KnownDeviceKind { - /** Arc-enabled edge device with HCI OS. */ - HCI = "HCI", -} - -/** - * Defines values for DeviceKind. \ - * {@link KnownDeviceKind} can be used interchangeably with DeviceKind, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **HCI**: Arc-enabled edge device with HCI OS. - */ -export type DeviceKind = string; - /** Known values of {@link ExtensionAggregateState} that the service accepts. */ export enum KnownExtensionAggregateState { /** NotSpecified */ @@ -3165,10 +3248,10 @@ export type StatusLevelTypes = string; /** Known values of {@link ExtensionManagedBy} that the service accepts. */ export enum KnownExtensionManagedBy { - /** User */ - User = "User", /** Azure */ Azure = "Azure", + /** User */ + User = "User", } /** @@ -3176,11 +3259,110 @@ export enum KnownExtensionManagedBy { * {@link KnownExtensionManagedBy} can be used interchangeably with ExtensionManagedBy, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **User** \ - * **Azure** + * **Azure** \ + * **User** */ export type ExtensionManagedBy = string; +/** Known values of {@link CloudInitDataSource} that the service accepts. */ +export enum KnownCloudInitDataSource { + /** NoCloud */ + NoCloud = "NoCloud", + /** Azure */ + Azure = "Azure", +} + +/** + * Defines values for CloudInitDataSource. \ + * {@link KnownCloudInitDataSource} can be used interchangeably with CloudInitDataSource, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NoCloud** \ + * **Azure** + */ +export type CloudInitDataSource = string; + +/** Known values of {@link HyperVGeneration} that the service accepts. */ +export enum KnownHyperVGeneration { + /** V1 */ + V1 = "V1", + /** V2 */ + V2 = "V2", +} + +/** + * Defines values for HyperVGeneration. \ + * {@link KnownHyperVGeneration} can be used interchangeably with HyperVGeneration, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **V1** \ + * **V2** + */ +export type HyperVGeneration = string; + +/** Known values of {@link ProvisioningStateEnum} that the service accepts. */ +export enum KnownProvisioningStateEnum { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** InProgress */ + InProgress = "InProgress", + /** Accepted */ + Accepted = "Accepted", + /** Deleting */ + Deleting = "Deleting", + /** Canceled */ + Canceled = "Canceled", +} + +/** + * Defines values for ProvisioningStateEnum. \ + * {@link KnownProvisioningStateEnum} can be used interchangeably with ProvisioningStateEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Failed** \ + * **InProgress** \ + * **Accepted** \ + * **Deleting** \ + * **Canceled** + */ +export type ProvisioningStateEnum = string; + +/** Known values of {@link ExtendedLocationTypes} that the service accepts. */ +export enum KnownExtendedLocationTypes { + /** CustomLocation */ + CustomLocation = "CustomLocation", +} + +/** + * Defines values for ExtendedLocationTypes. \ + * {@link KnownExtendedLocationTypes} can be used interchangeably with ExtendedLocationTypes, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CustomLocation** + */ +export type ExtendedLocationTypes = string; + +/** Known values of {@link IpAllocationMethodEnum} that the service accepts. */ +export enum KnownIpAllocationMethodEnum { + /** Dynamic */ + Dynamic = "Dynamic", + /** Static */ + Static = "Static", +} + +/** + * Defines values for IpAllocationMethodEnum. \ + * {@link KnownIpAllocationMethodEnum} can be used interchangeably with IpAllocationMethodEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Dynamic** \ + * **Static** + */ +export type IpAllocationMethodEnum = string; + /** Known values of {@link Origin} that the service accepts. */ export enum KnownOrigin { /** User */ @@ -3481,98 +3663,216 @@ export enum KnownAvailabilityType { */ export type AvailabilityType = string; -/** Known values of {@link ServiceName} that the service accepts. */ -export enum KnownServiceName { - /** WAC */ - WAC = "WAC", +/** Known values of {@link DiskFileFormat} that the service accepts. */ +export enum KnownDiskFileFormat { + /** Vhdx */ + Vhdx = "vhdx", + /** Vhd */ + Vhd = "vhd", +} + +/** + * Defines values for DiskFileFormat. \ + * {@link KnownDiskFileFormat} can be used interchangeably with DiskFileFormat, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **vhdx** \ + * **vhd** + */ +export type DiskFileFormat = string; + +/** Known values of {@link VmSizeEnum} that the service accepts. */ +export enum KnownVmSizeEnum { + /** Default */ + Default = "Default", + /** StandardA2V2 */ + StandardA2V2 = "Standard_A2_v2", + /** StandardA4V2 */ + StandardA4V2 = "Standard_A4_v2", + /** StandardD2SV3 */ + StandardD2SV3 = "Standard_D2s_v3", + /** StandardD4SV3 */ + StandardD4SV3 = "Standard_D4s_v3", + /** StandardD8SV3 */ + StandardD8SV3 = "Standard_D8s_v3", + /** StandardD16SV3 */ + StandardD16SV3 = "Standard_D16s_v3", + /** StandardD32SV3 */ + StandardD32SV3 = "Standard_D32s_v3", + /** StandardDS2V2 */ + StandardDS2V2 = "Standard_DS2_v2", + /** StandardDS3V2 */ + StandardDS3V2 = "Standard_DS3_v2", + /** StandardDS4V2 */ + StandardDS4V2 = "Standard_DS4_v2", + /** StandardDS5V2 */ + StandardDS5V2 = "Standard_DS5_v2", + /** StandardDS13V2 */ + StandardDS13V2 = "Standard_DS13_v2", + /** StandardK8SV1 */ + StandardK8SV1 = "Standard_K8S_v1", + /** StandardK8S2V1 */ + StandardK8S2V1 = "Standard_K8S2_v1", + /** StandardK8S3V1 */ + StandardK8S3V1 = "Standard_K8S3_v1", + /** StandardK8S4V1 */ + StandardK8S4V1 = "Standard_K8S4_v1", + /** StandardNK6 */ + StandardNK6 = "Standard_NK6", + /** StandardNK12 */ + StandardNK12 = "Standard_NK12", + /** StandardNV6 */ + StandardNV6 = "Standard_NV6", + /** StandardNV12 */ + StandardNV12 = "Standard_NV12", + /** StandardK8S5V1 */ + StandardK8S5V1 = "Standard_K8S5_v1", + /** Custom */ + Custom = "Custom", +} + +/** + * Defines values for VmSizeEnum. \ + * {@link KnownVmSizeEnum} can be used interchangeably with VmSizeEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** \ + * **Standard_A2_v2** \ + * **Standard_A4_v2** \ + * **Standard_D2s_v3** \ + * **Standard_D4s_v3** \ + * **Standard_D8s_v3** \ + * **Standard_D16s_v3** \ + * **Standard_D32s_v3** \ + * **Standard_DS2_v2** \ + * **Standard_DS3_v2** \ + * **Standard_DS4_v2** \ + * **Standard_DS5_v2** \ + * **Standard_DS13_v2** \ + * **Standard_K8S_v1** \ + * **Standard_K8S2_v1** \ + * **Standard_K8S3_v1** \ + * **Standard_K8S4_v1** \ + * **Standard_NK6** \ + * **Standard_NK12** \ + * **Standard_NV6** \ + * **Standard_NV12** \ + * **Standard_K8S5_v1** \ + * **Custom** + */ +export type VmSizeEnum = string; + +/** Known values of {@link SecurityTypes} that the service accepts. */ +export enum KnownSecurityTypes { + /** TrustedLaunch */ + TrustedLaunch = "TrustedLaunch", + /** ConfidentialVM */ + ConfidentialVM = "ConfidentialVM", +} + +/** + * Defines values for SecurityTypes. \ + * {@link KnownSecurityTypes} can be used interchangeably with SecurityTypes, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TrustedLaunch** \ + * **ConfidentialVM** + */ +export type SecurityTypes = string; + +/** Known values of {@link PowerStateEnum} that the service accepts. */ +export enum KnownPowerStateEnum { + /** Deallocated */ + Deallocated = "Deallocated", + /** Deallocating */ + Deallocating = "Deallocating", + /** Running */ + Running = "Running", + /** Starting */ + Starting = "Starting", + /** Stopped */ + Stopped = "Stopped", + /** Stopping */ + Stopping = "Stopping", + /** Unknown */ + Unknown = "Unknown", } /** - * Defines values for ServiceName. \ - * {@link KnownServiceName} can be used interchangeably with ServiceName, + * Defines values for PowerStateEnum. \ + * {@link KnownPowerStateEnum} can be used interchangeably with PowerStateEnum, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **WAC** + * **Deallocated** \ + * **Deallocating** \ + * **Running** \ + * **Starting** \ + * **Stopped** \ + * **Stopping** \ + * **Unknown** */ -export type ServiceName = string; +export type PowerStateEnum = string; -/** Known values of {@link ArcExtensionState} that the service accepts. */ -export enum KnownArcExtensionState { - /** Arc extension state is not specified. */ - NotSpecified = "NotSpecified", - /** Arc extension state is Succeeded. */ +/** Known values of {@link StatusTypes} that the service accepts. */ +export enum KnownStatusTypes { + /** Succeeded */ Succeeded = "Succeeded", - /** Arc extension state is Failed. */ + /** InProgress */ + InProgress = "InProgress", + /** Failed */ Failed = "Failed", - /** Arc extension state is Canceled. */ - Canceled = "Canceled", - /** Arc extension state is Accepted when extension installation triggered. */ - Accepted = "Accepted", - /** Arc extension is in Creating State. */ - Creating = "Creating", - /** Arc extension is in Updating State. */ - Updating = "Updating", - /** Arc extension is in Moving State. */ - Moving = "Moving", - /** Arc extension is in Deleting State. */ - Deleting = "Deleting", - /** Arc extension is in Deleted State. */ - Deleted = "Deleted", } /** - * Defines values for ArcExtensionState. \ - * {@link KnownArcExtensionState} can be used interchangeably with ArcExtensionState, + * Defines values for StatusTypes. \ + * {@link KnownStatusTypes} can be used interchangeably with StatusTypes, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NotSpecified**: Arc extension state is not specified. \ - * **Succeeded**: Arc extension state is Succeeded. \ - * **Failed**: Arc extension state is Failed. \ - * **Canceled**: Arc extension state is Canceled. \ - * **Accepted**: Arc extension state is Accepted when extension installation triggered. \ - * **Creating**: Arc extension is in Creating State. \ - * **Updating**: Arc extension is in Updating State. \ - * **Moving**: Arc extension is in Moving State. \ - * **Deleting**: Arc extension is in Deleting State. \ - * **Deleted**: Arc extension is in Deleted State. + * **Succeeded** \ + * **InProgress** \ + * **Failed** */ -export type ArcExtensionState = string; +export type StatusTypes = string; -/** Known values of {@link DeviceState} that the service accepts. */ -export enum KnownDeviceState { - /** The edge device state is not specified. */ - NotSpecified = "NotSpecified", - /** The edge device state is in connected state. */ - Connected = "Connected", - /** The edge device state is in disconnected state. */ - Disconnected = "Disconnected", - /** The edge device state is in repairing state. */ - Repairing = "Repairing", - /** The edge device state is in draining state. */ - Draining = "Draining", - /** The edge device state is in maintenance state. */ - InMaintenance = "InMaintenance", - /** The edge device state is in resuming state. */ - Resuming = "Resuming", - /** The edge device state is in processing state. */ - Processing = "Processing", +/** Known values of {@link ProvisioningAction} that the service accepts. */ +export enum KnownProvisioningAction { + /** Install */ + Install = "install", + /** Uninstall */ + Uninstall = "uninstall", + /** Repair */ + Repair = "repair", +} + +/** + * Defines values for ProvisioningAction. \ + * {@link KnownProvisioningAction} can be used interchangeably with ProvisioningAction, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **install** \ + * **uninstall** \ + * **repair** + */ +export type ProvisioningAction = string; + +/** Known values of {@link ServiceName} that the service accepts. */ +export enum KnownServiceName { + /** WAC */ + WAC = "WAC", } /** - * Defines values for DeviceState. \ - * {@link KnownDeviceState} can be used interchangeably with DeviceState, + * Defines values for ServiceName. \ + * {@link KnownServiceName} can be used interchangeably with ServiceName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NotSpecified**: The edge device state is not specified. \ - * **Connected**: The edge device state is in connected state. \ - * **Disconnected**: The edge device state is in disconnected state. \ - * **Repairing**: The edge device state is in repairing state. \ - * **Draining**: The edge device state is in draining state. \ - * **InMaintenance**: The edge device state is in maintenance state. \ - * **Resuming**: The edge device state is in resuming state. \ - * **Processing**: The edge device state is in processing state. + * **WAC** */ -export type DeviceState = string; +export type ServiceName = string; +/** Defines values for OperatingSystemTypes. */ +export type OperatingSystemTypes = "Windows" | "Linux"; +/** Defines values for IPPoolTypeEnum. */ +export type IPPoolTypeEnum = "vm" | "vippool"; /** Optional parameters. */ export interface ArcSettingsListByClusterOptionalParams @@ -3730,30 +4030,6 @@ export interface ClustersExtendSoftwareAssuranceBenefitOptionalParams /** Contains response data for the extendSoftwareAssuranceBenefit operation. */ export type ClustersExtendSoftwareAssuranceBenefitResponse = Cluster; -/** Optional parameters. */ -export interface ClustersTriggerLogCollectionOptionalParams - 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 triggerLogCollection operation. */ -export type ClustersTriggerLogCollectionResponse = Cluster; - -/** Optional parameters. */ -export interface ClustersConfigureRemoteSupportOptionalParams - 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 configureRemoteSupport operation. */ -export type ClustersConfigureRemoteSupportResponse = Cluster; - /** Optional parameters. */ export interface ClustersListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} @@ -3827,7 +4103,7 @@ export interface EdgeDevicesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type EdgeDevicesGetResponse = EdgeDeviceUnion; +export type EdgeDevicesGetResponse = EdgeDevice; /** Optional parameters. */ export interface EdgeDevicesCreateOrUpdateOptionalParams @@ -3839,7 +4115,7 @@ export interface EdgeDevicesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type EdgeDevicesCreateOrUpdateResponse = EdgeDeviceUnion; +export type EdgeDevicesCreateOrUpdateResponse = EdgeDevice; /** Optional parameters. */ export interface EdgeDevicesDeleteOptionalParams @@ -3899,7 +4175,270 @@ export interface ExtensionsCreateOptionalParams export type ExtensionsCreateResponse = Extension; /** Optional parameters. */ -export interface ExtensionsUpdateOptionalParams +export interface ExtensionsUpdateOptionalParams + 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 ExtensionsUpdateResponse = Extension; + +/** Optional parameters. */ +export interface ExtensionsDeleteOptionalParams + 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 ExtensionsUpgradeOptionalParams + 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 ExtensionsListByArcSettingNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByArcSettingNext operation. */ +export type ExtensionsListByArcSettingNextResponse = ExtensionList; + +/** Optional parameters. */ +export interface GalleryImagesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GalleryImagesGetResponse = GalleryImages; + +/** Optional parameters. */ +export interface GalleryImagesCreateOrUpdateOptionalParams + 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 createOrUpdate operation. */ +export type GalleryImagesCreateOrUpdateResponse = GalleryImages; + +/** Optional parameters. */ +export interface GalleryImagesDeleteOptionalParams + 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 GalleryImagesDeleteResponse = GalleryImagesDeleteHeaders; + +/** Optional parameters. */ +export interface GalleryImagesUpdateOptionalParams + 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 GalleryImagesUpdateResponse = GalleryImages; + +/** Optional parameters. */ +export interface GalleryImagesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type GalleryImagesListResponse = GalleryImagesListResult; + +/** Optional parameters. */ +export interface GalleryImagesListAllOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAll operation. */ +export type GalleryImagesListAllResponse = GalleryImagesListResult; + +/** Optional parameters. */ +export interface GalleryImagesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type GalleryImagesListNextResponse = GalleryImagesListResult; + +/** Optional parameters. */ +export interface GalleryImagesListAllNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllNext operation. */ +export type GalleryImagesListAllNextResponse = GalleryImagesListResult; + +/** Optional parameters. */ +export interface LogicalNetworksGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type LogicalNetworksGetResponse = LogicalNetworks; + +/** Optional parameters. */ +export interface LogicalNetworksCreateOrUpdateOptionalParams + 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 createOrUpdate operation. */ +export type LogicalNetworksCreateOrUpdateResponse = LogicalNetworks; + +/** Optional parameters. */ +export interface LogicalNetworksDeleteOptionalParams + 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 LogicalNetworksDeleteResponse = LogicalNetworksDeleteHeaders; + +/** Optional parameters. */ +export interface LogicalNetworksUpdateOptionalParams + 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 LogicalNetworksUpdateResponse = LogicalNetworks; + +/** Optional parameters. */ +export interface LogicalNetworksListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type LogicalNetworksListResponse = LogicalNetworksListResult; + +/** Optional parameters. */ +export interface LogicalNetworksListAllOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAll operation. */ +export type LogicalNetworksListAllResponse = LogicalNetworksListResult; + +/** Optional parameters. */ +export interface LogicalNetworksListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type LogicalNetworksListNextResponse = LogicalNetworksListResult; + +/** Optional parameters. */ +export interface LogicalNetworksListAllNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllNext operation. */ +export type LogicalNetworksListAllNextResponse = LogicalNetworksListResult; + +/** Optional parameters. */ +export interface MarketplaceGalleryImagesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type MarketplaceGalleryImagesGetResponse = MarketplaceGalleryImages; + +/** Optional parameters. */ +export interface MarketplaceGalleryImagesCreateOrUpdateOptionalParams + 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 createOrUpdate operation. */ +export type MarketplaceGalleryImagesCreateOrUpdateResponse = + MarketplaceGalleryImages; + +/** Optional parameters. */ +export interface MarketplaceGalleryImagesDeleteOptionalParams + 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 MarketplaceGalleryImagesDeleteResponse = + MarketplaceGalleryImagesDeleteHeaders; + +/** Optional parameters. */ +export interface MarketplaceGalleryImagesUpdateOptionalParams + 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 MarketplaceGalleryImagesUpdateResponse = MarketplaceGalleryImages; + +/** Optional parameters. */ +export interface MarketplaceGalleryImagesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type MarketplaceGalleryImagesListResponse = + MarketplaceGalleryImagesListResult; + +/** Optional parameters. */ +export interface MarketplaceGalleryImagesListAllOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAll operation. */ +export type MarketplaceGalleryImagesListAllResponse = + MarketplaceGalleryImagesListResult; + +/** Optional parameters. */ +export interface MarketplaceGalleryImagesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type MarketplaceGalleryImagesListNextResponse = + MarketplaceGalleryImagesListResult; + +/** Optional parameters. */ +export interface MarketplaceGalleryImagesListAllNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllNext operation. */ +export type MarketplaceGalleryImagesListAllNextResponse = + MarketplaceGalleryImagesListResult; + +/** Optional parameters. */ +export interface NetworkInterfacesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type NetworkInterfacesGetResponse = NetworkInterfaces; + +/** Optional parameters. */ +export interface NetworkInterfacesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3907,11 +4446,11 @@ export interface ExtensionsUpdateOptionalParams resumeFrom?: string; } -/** Contains response data for the update operation. */ -export type ExtensionsUpdateResponse = Extension; +/** Contains response data for the createOrUpdate operation. */ +export type NetworkInterfacesCreateOrUpdateResponse = NetworkInterfaces; /** Optional parameters. */ -export interface ExtensionsDeleteOptionalParams +export interface NetworkInterfacesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3919,8 +4458,11 @@ export interface ExtensionsDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the delete operation. */ +export type NetworkInterfacesDeleteResponse = NetworkInterfacesDeleteHeaders; + /** Optional parameters. */ -export interface ExtensionsUpgradeOptionalParams +export interface NetworkInterfacesUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -3928,12 +4470,36 @@ export interface ExtensionsUpgradeOptionalParams resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type NetworkInterfacesUpdateResponse = NetworkInterfaces; + /** Optional parameters. */ -export interface ExtensionsListByArcSettingNextOptionalParams +export interface NetworkInterfacesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByArcSettingNext operation. */ -export type ExtensionsListByArcSettingNextResponse = ExtensionList; +/** Contains response data for the list operation. */ +export type NetworkInterfacesListResponse = NetworkInterfacesListResult; + +/** Optional parameters. */ +export interface NetworkInterfacesListAllOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAll operation. */ +export type NetworkInterfacesListAllResponse = NetworkInterfacesListResult; + +/** Optional parameters. */ +export interface NetworkInterfacesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type NetworkInterfacesListNextResponse = NetworkInterfacesListResult; + +/** Optional parameters. */ +export interface NetworkInterfacesListAllNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllNext operation. */ +export type NetworkInterfacesListAllNextResponse = NetworkInterfacesListResult; /** Optional parameters. */ export interface OffersListByPublisherOptionalParams @@ -4078,6 +4644,77 @@ export interface SkusListByOfferNextOptionalParams /** Contains response data for the listByOfferNext operation. */ export type SkusListByOfferNextResponse = SkuList; +/** Optional parameters. */ +export interface StorageContainersGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type StorageContainersGetResponse = StorageContainers; + +/** Optional parameters. */ +export interface StorageContainersCreateOrUpdateOptionalParams + 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 createOrUpdate operation. */ +export type StorageContainersCreateOrUpdateResponse = StorageContainers; + +/** Optional parameters. */ +export interface StorageContainersDeleteOptionalParams + 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 StorageContainersDeleteResponse = StorageContainersDeleteHeaders; + +/** Optional parameters. */ +export interface StorageContainersUpdateOptionalParams + 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 StorageContainersUpdateResponse = StorageContainers; + +/** Optional parameters. */ +export interface StorageContainersListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type StorageContainersListResponse = StorageContainersListResult; + +/** Optional parameters. */ +export interface StorageContainersListAllOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAll operation. */ +export type StorageContainersListAllResponse = StorageContainersListResult; + +/** Optional parameters. */ +export interface StorageContainersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type StorageContainersListNextResponse = StorageContainersListResult; + +/** Optional parameters. */ +export interface StorageContainersListAllNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllNext operation. */ +export type StorageContainersListAllNextResponse = StorageContainersListResult; + /** Optional parameters. */ export interface UpdateRunsListOptionalParams extends coreClient.OperationOptions {} @@ -4195,6 +4832,242 @@ export interface UpdatesListNextOptionalParams /** Contains response data for the listNext operation. */ export type UpdatesListNextResponse = UpdateList; +/** Optional parameters. */ +export interface VirtualHardDisksGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type VirtualHardDisksGetResponse = VirtualHardDisks; + +/** Optional parameters. */ +export interface VirtualHardDisksCreateOrUpdateOptionalParams + 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 createOrUpdate operation. */ +export type VirtualHardDisksCreateOrUpdateResponse = VirtualHardDisks; + +/** Optional parameters. */ +export interface VirtualHardDisksDeleteOptionalParams + 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 VirtualHardDisksDeleteResponse = VirtualHardDisksDeleteHeaders; + +/** Optional parameters. */ +export interface VirtualHardDisksUpdateOptionalParams + 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 VirtualHardDisksUpdateResponse = VirtualHardDisks; + +/** Optional parameters. */ +export interface VirtualHardDisksListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type VirtualHardDisksListResponse = VirtualHardDisksListResult; + +/** Optional parameters. */ +export interface VirtualHardDisksListAllOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAll operation. */ +export type VirtualHardDisksListAllResponse = VirtualHardDisksListResult; + +/** Optional parameters. */ +export interface VirtualHardDisksListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type VirtualHardDisksListNextResponse = VirtualHardDisksListResult; + +/** Optional parameters. */ +export interface VirtualHardDisksListAllNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listAllNext operation. */ +export type VirtualHardDisksListAllNextResponse = VirtualHardDisksListResult; + +/** Optional parameters. */ +export interface VirtualMachineInstancesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type VirtualMachineInstancesGetResponse = VirtualMachineInstance; + +/** Optional parameters. */ +export interface VirtualMachineInstancesCreateOrUpdateOptionalParams + 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 createOrUpdate operation. */ +export type VirtualMachineInstancesCreateOrUpdateResponse = + VirtualMachineInstance; + +/** Optional parameters. */ +export interface VirtualMachineInstancesDeleteOptionalParams + 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 VirtualMachineInstancesDeleteResponse = + VirtualMachineInstancesDeleteHeaders; + +/** Optional parameters. */ +export interface VirtualMachineInstancesUpdateOptionalParams + 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 VirtualMachineInstancesUpdateResponse = VirtualMachineInstance; + +/** Optional parameters. */ +export interface VirtualMachineInstancesStartOptionalParams + 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 start operation. */ +export type VirtualMachineInstancesStartResponse = VirtualMachineInstance; + +/** Optional parameters. */ +export interface VirtualMachineInstancesStopOptionalParams + 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 stop operation. */ +export type VirtualMachineInstancesStopResponse = VirtualMachineInstance; + +/** Optional parameters. */ +export interface VirtualMachineInstancesRestartOptionalParams + 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 restart operation. */ +export type VirtualMachineInstancesRestartResponse = VirtualMachineInstance; + +/** Optional parameters. */ +export interface VirtualMachineInstancesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type VirtualMachineInstancesListResponse = + VirtualMachineInstanceListResult; + +/** Optional parameters. */ +export interface VirtualMachineInstancesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type VirtualMachineInstancesListNextResponse = + VirtualMachineInstanceListResult; + +/** Optional parameters. */ +export interface HybridIdentityMetadataGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type HybridIdentityMetadataGetResponse = HybridIdentityMetadata; + +/** Optional parameters. */ +export interface HybridIdentityMetadataListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type HybridIdentityMetadataListResponse = HybridIdentityMetadataList; + +/** Optional parameters. */ +export interface HybridIdentityMetadataListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type HybridIdentityMetadataListNextResponse = HybridIdentityMetadataList; + +/** Optional parameters. */ +export interface GuestAgentCreateOptionalParams + extends coreClient.OperationOptions { + /** Request payload. */ + body?: GuestAgent; + /** 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 GuestAgentCreateResponse = GuestAgent; + +/** Optional parameters. */ +export interface GuestAgentGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GuestAgentGetResponse = GuestAgent; + +/** Optional parameters. */ +export interface GuestAgentDeleteOptionalParams + 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 GuestAgentDeleteResponse = GuestAgentDeleteHeaders; + +/** Optional parameters. */ +export interface GuestAgentsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type GuestAgentsListResponse = GuestAgentList; + +/** Optional parameters. */ +export interface GuestAgentsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type GuestAgentsListNextResponse = GuestAgentList; + /** Optional parameters. */ export interface AzureStackHCIClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/azurestackhci/arm-azurestackhci/src/models/mappers.ts b/sdk/azurestackhci/arm-azurestackhci/src/models/mappers.ts index 4576a4308108..bba8270f5305 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/models/mappers.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/models/mappers.ts @@ -444,302 +444,6 @@ export const SoftwareAssuranceProperties: coreClient.CompositeMapper = { }, }; -export const LogCollectionProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LogCollectionProperties", - modelProperties: { - fromDate: { - serializedName: "fromDate", - readOnly: true, - type: { - name: "DateTime", - }, - }, - toDate: { - serializedName: "toDate", - readOnly: true, - type: { - name: "DateTime", - }, - }, - lastLogGenerated: { - serializedName: "lastLogGenerated", - readOnly: true, - type: { - name: "DateTime", - }, - }, - logCollectionSessionDetails: { - serializedName: "logCollectionSessionDetails", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LogCollectionSession", - }, - }, - }, - }, - }, - }, -}; - -export const LogCollectionSession: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LogCollectionSession", - modelProperties: { - logStartTime: { - serializedName: "logStartTime", - readOnly: true, - type: { - name: "DateTime", - }, - }, - logEndTime: { - serializedName: "logEndTime", - readOnly: true, - type: { - name: "DateTime", - }, - }, - timeCollected: { - serializedName: "timeCollected", - readOnly: true, - type: { - name: "DateTime", - }, - }, - logSize: { - serializedName: "logSize", - readOnly: true, - type: { - name: "Number", - }, - }, - logCollectionStatus: { - serializedName: "logCollectionStatus", - readOnly: true, - type: { - name: "String", - }, - }, - logCollectionJobType: { - serializedName: "logCollectionJobType", - readOnly: true, - type: { - name: "String", - }, - }, - correlationId: { - serializedName: "correlationId", - readOnly: true, - type: { - name: "String", - }, - }, - endTimeCollected: { - serializedName: "endTimeCollected", - readOnly: true, - type: { - name: "DateTime", - }, - }, - logCollectionError: { - serializedName: "logCollectionError", - type: { - name: "Composite", - className: "LogCollectionError", - }, - }, - }, - }, -}; - -export const LogCollectionError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LogCollectionError", - modelProperties: { - errorCode: { - serializedName: "errorCode", - readOnly: true, - type: { - name: "String", - }, - }, - errorMessage: { - serializedName: "errorMessage", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const RemoteSupportProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RemoteSupportProperties", - modelProperties: { - accessLevel: { - serializedName: "accessLevel", - readOnly: true, - type: { - name: "String", - }, - }, - expirationTimeStamp: { - serializedName: "expirationTimeStamp", - readOnly: true, - type: { - name: "DateTime", - }, - }, - remoteSupportType: { - serializedName: "remoteSupportType", - readOnly: true, - type: { - name: "String", - }, - }, - remoteSupportNodeSettings: { - serializedName: "remoteSupportNodeSettings", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RemoteSupportNodeSettings", - }, - }, - }, - }, - remoteSupportSessionDetails: { - serializedName: "remoteSupportSessionDetails", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PerNodeRemoteSupportSession", - }, - }, - }, - }, - }, - }, -}; - -export const RemoteSupportNodeSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RemoteSupportNodeSettings", - modelProperties: { - arcResourceId: { - serializedName: "arcResourceId", - readOnly: true, - type: { - name: "String", - }, - }, - state: { - serializedName: "state", - readOnly: true, - type: { - name: "String", - }, - }, - createdAt: { - serializedName: "createdAt", - readOnly: true, - type: { - name: "DateTime", - }, - }, - updatedAt: { - serializedName: "updatedAt", - readOnly: true, - type: { - name: "DateTime", - }, - }, - connectionStatus: { - serializedName: "connectionStatus", - readOnly: true, - type: { - name: "String", - }, - }, - connectionErrorMessage: { - serializedName: "connectionErrorMessage", - readOnly: true, - type: { - name: "String", - }, - }, - transcriptLocation: { - serializedName: "transcriptLocation", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const PerNodeRemoteSupportSession: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PerNodeRemoteSupportSession", - modelProperties: { - sessionStartTime: { - serializedName: "sessionStartTime", - readOnly: true, - type: { - name: "DateTime", - }, - }, - sessionEndTime: { - serializedName: "sessionEndTime", - readOnly: true, - type: { - name: "DateTime", - }, - }, - nodeName: { - serializedName: "nodeName", - readOnly: true, - type: { - name: "String", - }, - }, - duration: { - serializedName: "duration", - readOnly: true, - type: { - name: "Number", - }, - }, - accessLevel: { - serializedName: "accessLevel", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - export const ClusterDesiredProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1172,130 +876,47 @@ export const SoftwareAssuranceChangeRequestProperties: coreClient.CompositeMappe }, }; -export const LogCollectionRequest: coreClient.CompositeMapper = { +export const DeploymentSettingListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogCollectionRequest", + className: "DeploymentSettingListResult", modelProperties: { - properties: { - serializedName: "properties", + value: { + serializedName: "value", + required: true, type: { - name: "Composite", - className: "LogCollectionRequestProperties", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeploymentSetting", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", }, }, }, }, }; -export const LogCollectionRequestProperties: coreClient.CompositeMapper = { +export const DeploymentConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogCollectionRequestProperties", + className: "DeploymentConfiguration", modelProperties: { - fromDate: { - serializedName: "fromDate", - required: true, + version: { + serializedName: "version", type: { - name: "DateTime", + name: "String", }, }, - toDate: { - serializedName: "toDate", - required: true, - type: { - name: "DateTime", - }, - }, - }, - }, -}; - -export const RemoteSupportRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RemoteSupportRequest", - modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "RemoteSupportRequestProperties", - }, - }, - }, - }, -}; - -export const RemoteSupportRequestProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RemoteSupportRequestProperties", - modelProperties: { - accessLevel: { - serializedName: "accessLevel", - readOnly: true, - type: { - name: "String", - }, - }, - expirationTimeStamp: { - serializedName: "expirationTimeStamp", - type: { - name: "DateTime", - }, - }, - remoteSupportType: { - serializedName: "remoteSupportType", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const DeploymentSettingListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentSettingListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeploymentSetting", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const DeploymentConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentConfiguration", - modelProperties: { - version: { - serializedName: "version", - type: { - name: "String", - }, - }, - scaleUnits: { - serializedName: "scaleUnits", + scaleUnits: { + serializedName: "scaleUnits", required: true, type: { name: "Sequence", @@ -1323,13 +944,6 @@ export const ScaleUnits: coreClient.CompositeMapper = { className: "DeploymentData", }, }, - sbePartnerInfo: { - serializedName: "sbePartnerInfo", - type: { - name: "Composite", - className: "SbePartnerInfo", - }, - }, }, }, }; @@ -1410,14 +1024,7 @@ export const DeploymentData: coreClient.CompositeMapper = { serializedName: "hostNetwork", type: { name: "Composite", - className: "DeploymentSettingHostNetwork", - }, - }, - sdnIntegration: { - serializedName: "sdnIntegration", - type: { - name: "Composite", - className: "SdnIntegration", + className: "HostNetwork", }, }, adouPath: { @@ -1432,18 +1039,6 @@ export const DeploymentData: coreClient.CompositeMapper = { name: "String", }, }, - secrets: { - serializedName: "secrets", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EceDeploymentSecrets", - }, - }, - }, - }, optionalServices: { serializedName: "optionalServices", type: { @@ -1711,10 +1306,10 @@ export const PhysicalNodes: coreClient.CompositeMapper = { }, }; -export const DeploymentSettingHostNetwork: coreClient.CompositeMapper = { +export const HostNetwork: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentSettingHostNetwork", + className: "HostNetwork", modelProperties: { intents: { serializedName: "intents", @@ -1723,7 +1318,7 @@ export const DeploymentSettingHostNetwork: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeploymentSettingIntents", + className: "Intents", }, }, }, @@ -1735,7 +1330,7 @@ export const DeploymentSettingHostNetwork: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeploymentSettingStorageNetworks", + className: "StorageNetworks", }, }, }, @@ -1758,10 +1353,10 @@ export const DeploymentSettingHostNetwork: coreClient.CompositeMapper = { }, }; -export const DeploymentSettingIntents: coreClient.CompositeMapper = { +export const Intents: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentSettingIntents", + className: "Intents", modelProperties: { name: { serializedName: "name", @@ -1802,7 +1397,7 @@ export const DeploymentSettingIntents: coreClient.CompositeMapper = { serializedName: "virtualSwitchConfigurationOverrides", type: { name: "Composite", - className: "DeploymentSettingVirtualSwitchConfigurationOverrides", + className: "VirtualSwitchConfigurationOverrides", }, }, overrideQosPolicy: { @@ -1830,54 +1425,26 @@ export const DeploymentSettingIntents: coreClient.CompositeMapper = { serializedName: "adapterPropertyOverrides", type: { name: "Composite", - className: "DeploymentSettingAdapterPropertyOverrides", + className: "AdapterPropertyOverrides", }, }, }, }, }; -export const DeploymentSettingVirtualSwitchConfigurationOverrides: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DeploymentSettingVirtualSwitchConfigurationOverrides", - modelProperties: { - enableIov: { - serializedName: "enableIov", - type: { - name: "String", - }, - }, - loadBalancingAlgorithm: { - serializedName: "loadBalancingAlgorithm", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const QosPolicyOverrides: coreClient.CompositeMapper = { +export const VirtualSwitchConfigurationOverrides: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QosPolicyOverrides", + className: "VirtualSwitchConfigurationOverrides", modelProperties: { - priorityValue8021ActionCluster: { - serializedName: "priorityValue8021Action_Cluster", - type: { - name: "String", - }, - }, - priorityValue8021ActionSMB: { - serializedName: "priorityValue8021Action_SMB", + enableIov: { + serializedName: "enableIov", type: { name: "String", }, }, - bandwidthPercentageSMB: { - serializedName: "bandwidthPercentage_SMB", + loadBalancingAlgorithm: { + serializedName: "loadBalancingAlgorithm", type: { name: "String", }, @@ -1886,163 +1453,79 @@ export const QosPolicyOverrides: coreClient.CompositeMapper = { }, }; -export const DeploymentSettingAdapterPropertyOverrides: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DeploymentSettingAdapterPropertyOverrides", - modelProperties: { - jumboPacket: { - serializedName: "jumboPacket", - type: { - name: "String", - }, - }, - networkDirect: { - serializedName: "networkDirect", - type: { - name: "String", - }, - }, - networkDirectTechnology: { - serializedName: "networkDirectTechnology", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const DeploymentSettingStorageNetworks: coreClient.CompositeMapper = { +export const QosPolicyOverrides: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentSettingStorageNetworks", + className: "QosPolicyOverrides", modelProperties: { - name: { - serializedName: "name", + priorityValue8021ActionCluster: { + serializedName: "priorityValue8021Action_Cluster", type: { name: "String", }, }, - networkAdapterName: { - serializedName: "networkAdapterName", + priorityValue8021ActionSMB: { + serializedName: "priorityValue8021Action_SMB", type: { name: "String", }, }, - vlanId: { - serializedName: "vlanId", + bandwidthPercentageSMB: { + serializedName: "bandwidthPercentage_SMB", type: { name: "String", }, }, - storageAdapterIPInfo: { - serializedName: "storageAdapterIPInfo", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeploymentSettingStorageAdapterIPInfo", - }, - }, - }, - }, - }, - }, -}; - -export const DeploymentSettingStorageAdapterIPInfo: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DeploymentSettingStorageAdapterIPInfo", - modelProperties: { - physicalNode: { - serializedName: "physicalNode", - type: { - name: "String", - }, - }, - ipv4Address: { - serializedName: "ipv4Address", - type: { - name: "String", - }, - }, - subnetMask: { - serializedName: "subnetMask", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const SdnIntegration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SdnIntegration", - modelProperties: { - networkController: { - serializedName: "networkController", - type: { - name: "Composite", - className: "NetworkController", - }, - }, }, }, }; -export const NetworkController: coreClient.CompositeMapper = { +export const AdapterPropertyOverrides: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkController", + className: "AdapterPropertyOverrides", modelProperties: { - macAddressPoolStart: { - serializedName: "macAddressPoolStart", + jumboPacket: { + serializedName: "jumboPacket", type: { name: "String", }, }, - macAddressPoolStop: { - serializedName: "macAddressPoolStop", + networkDirect: { + serializedName: "networkDirect", type: { name: "String", }, }, - networkVirtualizationEnabled: { - serializedName: "networkVirtualizationEnabled", + networkDirectTechnology: { + serializedName: "networkDirectTechnology", type: { - name: "Boolean", + name: "String", }, }, }, }, }; -export const EceDeploymentSecrets: coreClient.CompositeMapper = { +export const StorageNetworks: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EceDeploymentSecrets", + className: "StorageNetworks", modelProperties: { - secretName: { - serializedName: "secretName", + name: { + serializedName: "name", type: { name: "String", }, }, - eceSecretName: { - serializedName: "eceSecretName", + networkAdapterName: { + serializedName: "networkAdapterName", type: { name: "String", }, }, - secretLocation: { - serializedName: "secretLocation", + vlanId: { + serializedName: "vlanId", type: { name: "String", }, @@ -2066,38 +1549,50 @@ export const OptionalServices: coreClient.CompositeMapper = { }, }; -export const SbePartnerInfo: coreClient.CompositeMapper = { +export const ReportedProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SbePartnerInfo", + className: "ReportedProperties", modelProperties: { - sbeDeploymentInfo: { - serializedName: "sbeDeploymentInfo", + validationStatus: { + serializedName: "validationStatus", type: { name: "Composite", - className: "SbeDeploymentInfo", + className: "ValidationStatus", }, }, - partnerProperties: { - serializedName: "partnerProperties", + deploymentStatus: { + serializedName: "deploymentStatus", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SbePartnerProperties", - }, - }, + name: "Composite", + className: "DeploymentStatus", + }, + }, + }, + }, +}; + +export const ValidationStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ValidationStatus", + modelProperties: { + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String", }, }, - credentialList: { - serializedName: "credentialList", + steps: { + serializedName: "steps", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SbeCredentials", + className: "DeploymentStep", }, }, }, @@ -2106,208 +1601,216 @@ export const SbePartnerInfo: coreClient.CompositeMapper = { }, }; -export const SbeDeploymentInfo: coreClient.CompositeMapper = { +export const DeploymentStep: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SbeDeploymentInfo", + className: "DeploymentStep", modelProperties: { - version: { - serializedName: "version", + name: { + serializedName: "name", + readOnly: true, type: { name: "String", }, }, - family: { - serializedName: "family", + description: { + serializedName: "description", + readOnly: true, type: { name: "String", }, }, - publisher: { - serializedName: "publisher", + fullStepIndex: { + serializedName: "fullStepIndex", + readOnly: true, type: { name: "String", }, }, - sbeManifestSource: { - serializedName: "sbeManifestSource", - type: { + startTimeUtc: { + serializedName: "startTimeUtc", + readOnly: true, + type: { name: "String", }, }, - sbeManifestCreationDate: { - serializedName: "sbeManifestCreationDate", + endTimeUtc: { + serializedName: "endTimeUtc", + readOnly: true, type: { - name: "DateTime", + name: "String", }, }, - }, - }, -}; - -export const SbePartnerProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SbePartnerProperties", - modelProperties: { - name: { - serializedName: "name", + status: { + serializedName: "status", + readOnly: true, type: { name: "String", }, }, - value: { - serializedName: "value", + steps: { + serializedName: "steps", + readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeploymentStep", + }, + }, + }, + }, + exception: { + serializedName: "exception", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const SbeCredentials: coreClient.CompositeMapper = { +export const DeploymentStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SbeCredentials", + className: "DeploymentStatus", modelProperties: { - secretName: { - serializedName: "secretName", - type: { - name: "String", - }, - }, - eceSecretName: { - serializedName: "eceSecretName", + status: { + serializedName: "status", + readOnly: true, type: { name: "String", }, }, - secretLocation: { - serializedName: "secretLocation", + steps: { + serializedName: "steps", + readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeploymentStep", + }, + }, }, }, }, }, }; -export const EceReportedProperties: coreClient.CompositeMapper = { +export const EdgeDeviceListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EceReportedProperties", + className: "EdgeDeviceListResult", modelProperties: { - validationStatus: { - serializedName: "validationStatus", + value: { + serializedName: "value", + required: true, type: { - name: "Composite", - className: "EceActionStatus", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EdgeDevice", + }, + }, }, }, - deploymentStatus: { - serializedName: "deploymentStatus", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "EceActionStatus", + name: "String", }, }, }, }, }; -export const EceActionStatus: coreClient.CompositeMapper = { +export const DeviceConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EceActionStatus", + className: "DeviceConfiguration", modelProperties: { - status: { - serializedName: "status", - readOnly: true, - type: { - name: "String", - }, - }, - steps: { - serializedName: "steps", - readOnly: true, + nicDetails: { + serializedName: "nicDetails", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DeploymentStep", + className: "NicDetail", }, }, }, }, + deviceMetadata: { + serializedName: "deviceMetadata", + type: { + name: "String", + }, + }, }, }, }; -export const DeploymentStep: coreClient.CompositeMapper = { +export const NicDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentStep", + className: "NicDetail", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + adapterName: { + serializedName: "adapterName", + required: true, type: { name: "String", }, }, - description: { - serializedName: "description", - readOnly: true, + interfaceDescription: { + serializedName: "interfaceDescription", type: { name: "String", }, }, - fullStepIndex: { - serializedName: "fullStepIndex", - readOnly: true, + componentId: { + serializedName: "componentId", type: { name: "String", }, }, - startTimeUtc: { - serializedName: "startTimeUtc", - readOnly: true, + driverVersion: { + serializedName: "driverVersion", type: { name: "String", }, }, - endTimeUtc: { - serializedName: "endTimeUtc", - readOnly: true, + ip4Address: { + serializedName: "ip4Address", type: { name: "String", }, }, - status: { - serializedName: "status", - readOnly: true, + subnetMask: { + serializedName: "subnetMask", type: { name: "String", }, }, - steps: { - serializedName: "steps", - readOnly: true, + defaultGateway: { + serializedName: "defaultGateway", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DeploymentStep", - }, - }, + name: "String", }, }, - exception: { - serializedName: "exception", - readOnly: true, + dnsServers: { + serializedName: "dnsServers", type: { name: "Sequence", element: { @@ -2317,30 +1820,8 @@ export const DeploymentStep: coreClient.CompositeMapper = { }, }, }, - }, - }, -}; - -export const EdgeDeviceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EdgeDeviceListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EdgeDevice", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", + defaultIsolationId: { + serializedName: "defaultIsolationId", type: { name: "String", }, @@ -2604,27 +2085,28 @@ export const ExtensionUpgradeParameters: coreClient.CompositeMapper = { }, }; -export const OfferList: coreClient.CompositeMapper = { +export const GalleryImageIdentifier: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OfferList", + className: "GalleryImageIdentifier", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + publisher: { + serializedName: "publisher", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Offer", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + offer: { + serializedName: "offer", + required: true, + type: { + name: "String", + }, + }, + sku: { + serializedName: "sku", + required: true, type: { name: "String", }, @@ -2633,162 +2115,188 @@ export const OfferList: coreClient.CompositeMapper = { }, }; -export const SkuMappings: coreClient.CompositeMapper = { +export const GalleryImageVersion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SkuMappings", + className: "GalleryImageVersion", modelProperties: { - catalogPlanId: { - serializedName: "catalogPlanId", - type: { - name: "String", - }, - }, - marketplaceSkuId: { - serializedName: "marketplaceSkuId", + name: { + serializedName: "name", type: { name: "String", }, }, - marketplaceSkuVersions: { - serializedName: "marketplaceSkuVersions", + storageProfile: { + serializedName: "properties.storageProfile", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "GalleryImageVersionStorageProfile", }, }, }, }, }; -export const OperationListResult: coreClient.CompositeMapper = { +export const GalleryImageVersionStorageProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationListResult", + className: "GalleryImageVersionStorageProfile", modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + osDiskImage: { + serializedName: "osDiskImage", type: { - name: "String", + name: "Composite", + className: "GalleryOSDiskImage", }, }, }, }, }; -export const Operation: coreClient.CompositeMapper = { +export const GalleryDiskImage: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Operation", + className: "GalleryDiskImage", modelProperties: { - name: { - serializedName: "name", + sizeInMB: { + serializedName: "sizeInMB", readOnly: true, + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const GalleryImageStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryImageStatus", + modelProperties: { + errorCode: { + serializedName: "errorCode", type: { name: "String", }, }, - isDataAction: { - serializedName: "isDataAction", - readOnly: true, + errorMessage: { + serializedName: "errorMessage", type: { - name: "Boolean", + name: "String", }, }, - display: { - serializedName: "display", + provisioningStatus: { + serializedName: "provisioningStatus", type: { name: "Composite", - className: "OperationDisplay", + className: "GalleryImageStatusProvisioningStatus", }, }, - origin: { - serializedName: "origin", - readOnly: true, + downloadStatus: { + serializedName: "downloadStatus", type: { - name: "String", + name: "Composite", + className: "GalleryImageStatusDownloadStatus", }, }, - actionType: { - serializedName: "actionType", - readOnly: true, + progressPercentage: { + serializedName: "progressPercentage", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const GalleryImageStatusProvisioningStatus: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryImageStatusProvisioningStatus", + modelProperties: { + operationId: { + serializedName: "operationId", + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GalleryImageStatusDownloadStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "GalleryImageStatusDownloadStatus", modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, + downloadSizeInMB: { + serializedName: "downloadSizeInMB", type: { - name: "String", + name: "Number", }, }, - resource: { - serializedName: "resource", - readOnly: true, + }, + }, +}; + +export const ExtendedLocation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExtendedLocation", + modelProperties: { + name: { + serializedName: "name", type: { name: "String", }, }, - operation: { - serializedName: "operation", - readOnly: true, + type: { + serializedName: "type", type: { name: "String", }, }, - description: { - serializedName: "description", - readOnly: true, + }, + }, +}; + +export const GalleryImagesUpdateRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryImagesUpdateRequest", + modelProperties: { + tags: { + serializedName: "tags", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, }, }, }; -export const PublisherList: coreClient.CompositeMapper = { +export const GalleryImagesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PublisherList", + className: "GalleryImagesListResult", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Publisher", + className: "GalleryImages", }, }, }, @@ -2804,223 +2312,251 @@ export const PublisherList: coreClient.CompositeMapper = { }, }; -export const SecuritySettingListResult: coreClient.CompositeMapper = { +export const LogicalNetworkPropertiesDhcpOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecuritySettingListResult", + className: "LogicalNetworkPropertiesDhcpOptions", modelProperties: { - value: { - serializedName: "value", - required: true, + dnsServers: { + serializedName: "dnsServers", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SecuritySetting", + name: "String", }, }, }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, }, }, }; -export const SecurityComplianceStatus: coreClient.CompositeMapper = { +export const Subnet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityComplianceStatus", + className: "Subnet", modelProperties: { - securedCoreCompliance: { - serializedName: "securedCoreCompliance", - readOnly: true, + name: { + constraints: { + Pattern: new RegExp( + "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$", + ), + }, + serializedName: "name", type: { name: "String", }, }, - wdacCompliance: { - serializedName: "wdacCompliance", - readOnly: true, + addressPrefix: { + serializedName: "properties.addressPrefix", type: { name: "String", }, }, - dataAtRestEncrypted: { - serializedName: "dataAtRestEncrypted", - readOnly: true, + addressPrefixes: { + serializedName: "properties.addressPrefixes", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - dataInTransitProtected: { - serializedName: "dataInTransitProtected", - readOnly: true, + ipAllocationMethod: { + serializedName: "properties.ipAllocationMethod", type: { name: "String", }, }, - lastUpdated: { - serializedName: "lastUpdated", - readOnly: true, + ipConfigurationReferences: { + serializedName: "properties.ipConfigurationReferences", type: { - name: "DateTime", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubnetPropertiesFormatIpConfigurationReferencesItem", + }, + }, }, }, - }, - }, -}; - -export const SkuList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SkuList", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + routeTable: { + serializedName: "properties.routeTable", + type: { + name: "Composite", + className: "RouteTable", + }, + }, + ipPools: { + serializedName: "properties.ipPools", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Sku", + className: "IPPool", }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + vlan: { + serializedName: "properties.vlan", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const UpdateRunList: coreClient.CompositeMapper = { +export const SubnetPropertiesFormatIpConfigurationReferencesItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SubnetPropertiesFormatIpConfigurationReferencesItem", + modelProperties: { + id: { + serializedName: "ID", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const RouteTable: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateRunList", + className: "RouteTable", modelProperties: { - value: { - serializedName: "value", + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + routes: { + serializedName: "properties.routes", type: { name: "Sequence", element: { type: { name: "Composite", - className: "UpdateRun", + className: "Route", }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, }, }, }; -export const Step: coreClient.CompositeMapper = { +export const Route: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Step", + className: "Route", modelProperties: { name: { + constraints: { + Pattern: new RegExp( + "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$", + ), + }, serializedName: "name", type: { name: "String", }, }, - description: { - serializedName: "description", + addressPrefix: { + serializedName: "properties.addressPrefix", type: { name: "String", }, }, - errorMessage: { - serializedName: "errorMessage", + nextHopIpAddress: { + serializedName: "properties.nextHopIpAddress", type: { name: "String", }, }, - status: { - serializedName: "status", + }, + }, +}; + +export const IPPool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IPPool", + modelProperties: { + name: { + serializedName: "name", type: { name: "String", }, }, - startTimeUtc: { - serializedName: "startTimeUtc", - type: { - name: "DateTime", - }, - }, - endTimeUtc: { - serializedName: "endTimeUtc", + ipPoolType: { + serializedName: "ipPoolType", type: { - name: "DateTime", + name: "Enum", + allowedValues: ["vm", "vippool"], }, }, - lastUpdatedTimeUtc: { - serializedName: "lastUpdatedTimeUtc", + start: { + serializedName: "start", type: { - name: "DateTime", + name: "String", }, }, - expectedExecutionTime: { - serializedName: "expectedExecutionTime", + end: { + serializedName: "end", type: { name: "String", }, }, - steps: { - serializedName: "steps", + info: { + serializedName: "info", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Step", - }, - }, + name: "Composite", + className: "IPPoolInfo", }, }, }, }, }; -export const UpdateSummariesList: coreClient.CompositeMapper = { +export const IPPoolInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateSummariesList", + className: "IPPoolInfo", modelProperties: { - value: { - serializedName: "value", + used: { + serializedName: "used", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UpdateSummaries", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", + available: { + serializedName: "available", readOnly: true, type: { name: "String", @@ -3030,147 +2566,214 @@ export const UpdateSummariesList: coreClient.CompositeMapper = { }, }; -export const PackageVersionInfo: coreClient.CompositeMapper = { +export const LogicalNetworkStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PackageVersionInfo", + className: "LogicalNetworkStatus", modelProperties: { - packageType: { - serializedName: "packageType", + errorCode: { + serializedName: "errorCode", type: { name: "String", }, }, - version: { - serializedName: "version", + errorMessage: { + serializedName: "errorMessage", type: { name: "String", }, }, - lastUpdated: { - serializedName: "lastUpdated", + provisioningStatus: { + serializedName: "provisioningStatus", type: { - name: "DateTime", + name: "Composite", + className: "LogicalNetworkStatusProvisioningStatus", }, }, }, }, }; -export const PrecheckResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrecheckResult", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String", +export const LogicalNetworkStatusProvisioningStatus: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "LogicalNetworkStatusProvisioningStatus", + modelProperties: { + operationId: { + serializedName: "operationId", + type: { + name: "String", + }, }, - }, - displayName: { - serializedName: "displayName", - type: { - name: "String", + status: { + serializedName: "status", + type: { + name: "String", + }, }, }, + }, + }; + +export const LogicalNetworksUpdateRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogicalNetworksUpdateRequest", + modelProperties: { tags: { serializedName: "tags", - type: { - name: "Composite", - className: "PrecheckResultTags", - }, - }, - healthCheckTags: { - serializedName: "healthCheckTags", type: { name: "Dictionary", - value: { type: { name: "any" } }, + value: { type: { name: "String" } }, }, }, - title: { - serializedName: "title", + }, + }, +}; + +export const LogicalNetworksListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogicalNetworksListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogicalNetworks", + }, + }, }, }, - status: { - serializedName: "status", + nextLink: { + serializedName: "nextLink", type: { name: "String", }, }, - severity: { - serializedName: "severity", + }, + }, +}; + +export const MarketplaceGalleryImageStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MarketplaceGalleryImageStatus", + modelProperties: { + errorCode: { + serializedName: "errorCode", type: { name: "String", }, }, - description: { - serializedName: "description", + errorMessage: { + serializedName: "errorMessage", type: { name: "String", }, }, - remediation: { - serializedName: "remediation", + provisioningStatus: { + serializedName: "provisioningStatus", type: { - name: "String", + name: "Composite", + className: "MarketplaceGalleryImageStatusProvisioningStatus", }, }, - targetResourceID: { - serializedName: "targetResourceID", + downloadStatus: { + serializedName: "downloadStatus", type: { - name: "String", + name: "Composite", + className: "MarketplaceGalleryImageStatusDownloadStatus", }, }, - targetResourceName: { - serializedName: "targetResourceName", + progressPercentage: { + serializedName: "progressPercentage", type: { - name: "String", + name: "Number", }, }, - targetResourceType: { - serializedName: "targetResourceType", - type: { - name: "String", + }, + }, +}; + +export const MarketplaceGalleryImageStatusProvisioningStatus: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "MarketplaceGalleryImageStatusProvisioningStatus", + modelProperties: { + operationId: { + serializedName: "operationId", + type: { + name: "String", + }, }, - }, - timestamp: { - serializedName: "timestamp", - type: { - name: "DateTime", + status: { + serializedName: "status", + type: { + name: "String", + }, }, }, - additionalData: { - serializedName: "additionalData", - type: { - name: "String", + }, + }; + +export const MarketplaceGalleryImageStatusDownloadStatus: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "MarketplaceGalleryImageStatusDownloadStatus", + modelProperties: { + downloadSizeInMB: { + serializedName: "downloadSizeInMB", + type: { + name: "Number", + }, }, }, - healthCheckSource: { - serializedName: "healthCheckSource", - type: { - name: "String", + }, + }; + +export const MarketplaceGalleryImagesUpdateRequest: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "MarketplaceGalleryImagesUpdateRequest", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, }, }, - }, -}; + }; -export const PrecheckResultTags: coreClient.CompositeMapper = { +export const MarketplaceGalleryImagesListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrecheckResultTags", + className: "MarketplaceGalleryImagesListResult", modelProperties: { - key: { - serializedName: "key", + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MarketplaceGalleryImages", + }, + }, }, }, - value: { - serializedName: "value", + nextLink: { + serializedName: "nextLink", type: { name: "String", }, @@ -3179,80 +2782,96 @@ export const PrecheckResultTags: coreClient.CompositeMapper = { }, }; -export const UpdateList: coreClient.CompositeMapper = { +export const IPConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateList", + className: "IPConfiguration", modelProperties: { - value: { - serializedName: "value", + name: { + constraints: { + Pattern: new RegExp( + "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$", + ), + }, + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Update", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + properties: { + serializedName: "properties", type: { - name: "String", + name: "Composite", + className: "IPConfigurationProperties", }, }, }, }, }; -export const UpdatePrerequisite: coreClient.CompositeMapper = { +export const IPConfigurationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdatePrerequisite", + className: "IPConfigurationProperties", modelProperties: { - updateType: { - serializedName: "updateType", + gateway: { + serializedName: "gateway", + readOnly: true, type: { name: "String", }, }, - version: { - serializedName: "version", + prefixLength: { + serializedName: "prefixLength", + readOnly: true, type: { name: "String", }, }, - packageName: { - serializedName: "packageName", + privateIPAddress: { + serializedName: "privateIPAddress", type: { name: "String", }, }, + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "IPConfigurationPropertiesSubnet", + }, + }, }, }, }; -export const ArcConnectivityProperties: coreClient.CompositeMapper = { +export const IPConfigurationPropertiesSubnet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ArcConnectivityProperties", + className: "IPConfigurationPropertiesSubnet", modelProperties: { - enabled: { - serializedName: "enabled", + id: { + serializedName: "id", type: { - name: "Boolean", + name: "String", }, }, - serviceConfigurations: { - serializedName: "serviceConfigurations", + }, + }, +}; + +export const InterfaceDNSSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InterfaceDNSSettings", + modelProperties: { + dnsServers: { + serializedName: "dnsServers", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ServiceConfiguration", + name: "String", }, }, }, @@ -3261,52 +2880,48 @@ export const ArcConnectivityProperties: coreClient.CompositeMapper = { }, }; -export const ServiceConfiguration: coreClient.CompositeMapper = { +export const NetworkInterfaceStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServiceConfiguration", + className: "NetworkInterfaceStatus", modelProperties: { - serviceName: { - serializedName: "serviceName", - required: true, + errorCode: { + serializedName: "errorCode", type: { name: "String", }, }, - port: { - serializedName: "port", - required: true, + errorMessage: { + serializedName: "errorMessage", type: { - name: "Number", + name: "String", + }, + }, + provisioningStatus: { + serializedName: "provisioningStatus", + type: { + name: "Composite", + className: "NetworkInterfaceStatusProvisioningStatus", }, }, }, }, }; -export const HciEdgeDeviceAdapterPropertyOverrides: coreClient.CompositeMapper = +export const NetworkInterfaceStatusProvisioningStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HciEdgeDeviceAdapterPropertyOverrides", + className: "NetworkInterfaceStatusProvisioningStatus", modelProperties: { - jumboPacket: { - serializedName: "jumboPacket", - readOnly: true, - type: { - name: "String", - }, - }, - networkDirect: { - serializedName: "networkDirect", - readOnly: true, + operationId: { + serializedName: "operationId", type: { name: "String", }, }, - networkDirectTechnology: { - serializedName: "networkDirectTechnology", - readOnly: true, + status: { + serializedName: "status", type: { name: "String", }, @@ -3315,25 +2930,41 @@ export const HciEdgeDeviceAdapterPropertyOverrides: coreClient.CompositeMapper = }, }; -export const DeviceConfiguration: coreClient.CompositeMapper = { +export const NetworkInterfacesUpdateRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeviceConfiguration", + className: "NetworkInterfacesUpdateRequest", modelProperties: { - nicDetails: { - serializedName: "nicDetails", + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const NetworkInterfacesListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkInterfacesListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "NicDetail", + className: "NetworkInterfaces", }, }, }, }, - deviceMetadata: { - serializedName: "deviceMetadata", + nextLink: { + serializedName: "nextLink", type: { name: "String", }, @@ -3342,55 +2973,54 @@ export const DeviceConfiguration: coreClient.CompositeMapper = { }, }; -export const NicDetail: coreClient.CompositeMapper = { +export const OfferList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NicDetail", + className: "OfferList", modelProperties: { - adapterName: { - serializedName: "adapterName", - type: { - name: "String", - }, - }, - interfaceDescription: { - serializedName: "interfaceDescription", - type: { - name: "String", - }, - }, - componentId: { - serializedName: "componentId", - type: { - name: "String", - }, - }, - driverVersion: { - serializedName: "driverVersion", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Offer", + }, + }, }, }, - ip4Address: { - serializedName: "ip4Address", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, }, - subnetMask: { - serializedName: "subnetMask", + }, + }, +}; + +export const SkuMappings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuMappings", + modelProperties: { + catalogPlanId: { + serializedName: "catalogPlanId", type: { name: "String", }, }, - defaultGateway: { - serializedName: "defaultGateway", + marketplaceSkuId: { + serializedName: "marketplaceSkuId", type: { name: "String", }, }, - dnsServers: { - serializedName: "dnsServers", + marketplaceSkuVersions: { + serializedName: "marketplaceSkuVersions", type: { name: "Sequence", element: { @@ -3400,30 +3030,30 @@ export const NicDetail: coreClient.CompositeMapper = { }, }, }, - defaultIsolationId: { - serializedName: "defaultIsolationId", - type: { - name: "String", - }, - }, }, }, }; -export const EdgeDeviceProperties: coreClient.CompositeMapper = { +export const OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EdgeDeviceProperties", + className: "OperationListResult", modelProperties: { - deviceConfiguration: { - serializedName: "deviceConfiguration", + value: { + serializedName: "value", + readOnly: true, type: { - name: "Composite", - className: "DeviceConfiguration", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation", + }, + }, }, }, - provisioningState: { - serializedName: "provisioningState", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String", @@ -3433,70 +3063,78 @@ export const EdgeDeviceProperties: coreClient.CompositeMapper = { }, }; -export const HciValidationFailureDetail: coreClient.CompositeMapper = { +export const Operation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HciValidationFailureDetail", + className: "Operation", modelProperties: { - exception: { - serializedName: "exception", + name: { + serializedName: "name", readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const HciEdgeDeviceArcExtension: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HciEdgeDeviceArcExtension", - modelProperties: { - extensionName: { - serializedName: "extensionName", + isDataAction: { + serializedName: "isDataAction", + readOnly: true, + type: { + name: "Boolean", + }, + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay", + }, + }, + origin: { + serializedName: "origin", readOnly: true, type: { name: "String", }, }, - state: { - serializedName: "state", + actionType: { + serializedName: "actionType", readOnly: true, type: { name: "String", }, }, - errorDetails: { - serializedName: "errorDetails", + }, + }, +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HciValidationFailureDetail", - }, - }, + name: "String", }, }, - extensionResourceId: { - serializedName: "extensionResourceId", + resource: { + serializedName: "resource", readOnly: true, type: { name: "String", }, }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", + operation: { + serializedName: "operation", readOnly: true, type: { name: "String", }, }, - managedBy: { - serializedName: "managedBy", + description: { + serializedName: "description", readOnly: true, type: { name: "String", @@ -3506,453 +3144,593 @@ export const HciEdgeDeviceArcExtension: coreClient.CompositeMapper = { }, }; -export const ExtensionProfile: coreClient.CompositeMapper = { +export const PublisherList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExtensionProfile", + className: "PublisherList", modelProperties: { - extensions: { - serializedName: "extensions", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "HciEdgeDeviceArcExtension", + className: "Publisher", }, }, }, }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, }, }, }; -export const HciNetworkProfile: coreClient.CompositeMapper = { +export const SecuritySettingListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HciNetworkProfile", + className: "SecuritySettingListResult", modelProperties: { - nicDetails: { - serializedName: "nicDetails", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HciNicDetail", - }, - }, - }, - }, - switchDetails: { - serializedName: "switchDetails", - readOnly: true, + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SwitchDetail", + className: "SecuritySetting", }, }, }, }, - hostNetwork: { - serializedName: "hostNetwork", + nextLink: { + serializedName: "nextLink", type: { - name: "Composite", - className: "HciEdgeDeviceHostNetwork", + name: "String", }, }, }, }, }; -export const HciNicDetail: coreClient.CompositeMapper = { +export const SecurityComplianceStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HciNicDetail", + className: "SecurityComplianceStatus", modelProperties: { - adapterName: { - serializedName: "adapterName", + securedCoreCompliance: { + serializedName: "securedCoreCompliance", readOnly: true, type: { name: "String", }, }, - interfaceDescription: { - serializedName: "interfaceDescription", + wdacCompliance: { + serializedName: "wdacCompliance", readOnly: true, type: { name: "String", }, }, - componentId: { - serializedName: "componentId", + dataAtRestEncrypted: { + serializedName: "dataAtRestEncrypted", readOnly: true, type: { name: "String", }, }, - driverVersion: { - serializedName: "driverVersion", + dataInTransitProtected: { + serializedName: "dataInTransitProtected", readOnly: true, type: { name: "String", }, }, - ip4Address: { - serializedName: "ip4Address", + lastUpdated: { + serializedName: "lastUpdated", readOnly: true, type: { - name: "String", + name: "DateTime", }, }, - subnetMask: { - serializedName: "subnetMask", - readOnly: true, - type: { - name: "String", - }, - }, - defaultGateway: { - serializedName: "defaultGateway", - readOnly: true, - type: { - name: "String", - }, - }, - dnsServers: { - serializedName: "dnsServers", + }, + }, +}; + +export const SkuList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkuList", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "Sku", }, }, }, }, - defaultIsolationId: { - serializedName: "defaultIsolationId", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String", }, }, - macAddress: { - serializedName: "macAddress", - readOnly: true, + }, + }, +}; + +export const StorageContainerStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StorageContainerStatus", + modelProperties: { + errorCode: { + serializedName: "errorCode", type: { name: "String", }, }, - slot: { - serializedName: "slot", - readOnly: true, + errorMessage: { + serializedName: "errorMessage", type: { name: "String", }, }, - switchName: { - serializedName: "switchName", - readOnly: true, + availableSizeMB: { + serializedName: "availableSizeMB", type: { - name: "String", + name: "Number", }, }, - nicType: { - serializedName: "nicType", - readOnly: true, + containerSizeMB: { + serializedName: "containerSizeMB", type: { - name: "String", + name: "Number", }, }, - vlanId: { - serializedName: "vlanId", - readOnly: true, + provisioningStatus: { + serializedName: "provisioningStatus", type: { - name: "String", + name: "Composite", + className: "StorageContainerStatusProvisioningStatus", }, }, - nicStatus: { - serializedName: "nicStatus", - readOnly: true, + }, + }, +}; + +export const StorageContainerStatusProvisioningStatus: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "StorageContainerStatusProvisioningStatus", + modelProperties: { + operationId: { + serializedName: "operationId", + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const StorageContainersUpdateRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StorageContainersUpdateRequest", + modelProperties: { + tags: { + serializedName: "tags", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, }, }, }; -export const SwitchDetail: coreClient.CompositeMapper = { +export const StorageContainersListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SwitchDetail", + className: "StorageContainersListResult", modelProperties: { - switchName: { - serializedName: "switchName", - readOnly: true, + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageContainers", + }, + }, }, }, - switchType: { - serializedName: "switchType", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String", }, }, - extensions: { - serializedName: "extensions", - readOnly: true, + }, + }, +}; + +export const UpdateRunList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateRunList", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SwitchExtension", + className: "UpdateRun", }, }, }, }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, }, }, }; -export const SwitchExtension: coreClient.CompositeMapper = { +export const Step: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SwitchExtension", + className: "Step", modelProperties: { - switchId: { - serializedName: "switchId", - readOnly: true, + name: { + serializedName: "name", type: { name: "String", }, }, - extensionName: { - serializedName: "extensionName", - readOnly: true, + description: { + serializedName: "description", type: { name: "String", }, }, - extensionEnabled: { - serializedName: "extensionEnabled", - readOnly: true, + errorMessage: { + serializedName: "errorMessage", type: { - name: "Boolean", + name: "String", + }, + }, + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + startTimeUtc: { + serializedName: "startTimeUtc", + type: { + name: "DateTime", + }, + }, + endTimeUtc: { + serializedName: "endTimeUtc", + type: { + name: "DateTime", + }, + }, + lastUpdatedTimeUtc: { + serializedName: "lastUpdatedTimeUtc", + type: { + name: "DateTime", + }, + }, + steps: { + serializedName: "steps", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Step", + }, + }, }, }, }, }, }; -export const HciEdgeDeviceHostNetwork: coreClient.CompositeMapper = { +export const UpdateSummariesList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HciEdgeDeviceHostNetwork", + className: "UpdateSummariesList", modelProperties: { - intents: { - serializedName: "intents", - readOnly: true, + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "HciEdgeDeviceIntents", + className: "UpdateSummaries", }, }, }, }, - storageNetworks: { - serializedName: "storageNetworks", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HciEdgeDeviceStorageNetworks", - }, - }, + name: "String", }, }, - storageConnectivitySwitchless: { - serializedName: "storageConnectivitySwitchless", - readOnly: true, + }, + }, +}; + +export const PackageVersionInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PackageVersionInfo", + modelProperties: { + packageType: { + serializedName: "packageType", type: { - name: "Boolean", + name: "String", }, }, - enableStorageAutoIp: { - serializedName: "enableStorageAutoIp", - readOnly: true, + version: { + serializedName: "version", type: { - name: "Boolean", + name: "String", + }, + }, + lastUpdated: { + serializedName: "lastUpdated", + type: { + name: "DateTime", }, }, }, }, }; -export const HciEdgeDeviceIntents: coreClient.CompositeMapper = { +export const PrecheckResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HciEdgeDeviceIntents", + className: "PrecheckResult", modelProperties: { - scope: { - serializedName: "scope", - readOnly: true, + name: { + serializedName: "name", type: { - name: "Number", + name: "String", }, }, - intentType: { - serializedName: "intentType", - readOnly: true, + displayName: { + serializedName: "displayName", type: { - name: "Number", + name: "String", }, }, - isComputeIntentSet: { - serializedName: "isComputeIntentSet", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "Boolean", + name: "Composite", + className: "PrecheckResultTags", }, }, - isStorageIntentSet: { - serializedName: "isStorageIntentSet", - readOnly: true, + title: { + serializedName: "title", type: { - name: "Boolean", + name: "String", }, }, - isOnlyStorage: { - serializedName: "isOnlyStorage", - readOnly: true, + status: { + serializedName: "status", type: { - name: "Boolean", + name: "String", }, }, - isManagementIntentSet: { - serializedName: "isManagementIntentSet", - readOnly: true, + severity: { + serializedName: "severity", type: { - name: "Boolean", + name: "String", }, }, - isStretchIntentSet: { - serializedName: "isStretchIntentSet", - readOnly: true, + description: { + serializedName: "description", type: { - name: "Boolean", + name: "String", }, }, - isOnlyStretch: { - serializedName: "isOnlyStretch", - readOnly: true, + remediation: { + serializedName: "remediation", type: { - name: "Boolean", + name: "String", }, }, - isNetworkIntentType: { - serializedName: "isNetworkIntentType", - readOnly: true, + targetResourceID: { + serializedName: "targetResourceID", type: { - name: "Boolean", + name: "String", }, }, - intentName: { - serializedName: "intentName", - readOnly: true, + targetResourceName: { + serializedName: "targetResourceName", type: { name: "String", }, }, - intentAdapters: { - serializedName: "intentAdapters", - readOnly: true, + timestamp: { + serializedName: "timestamp", + type: { + name: "DateTime", + }, + }, + additionalData: { + serializedName: "additionalData", + type: { + name: "String", + }, + }, + healthCheckSource: { + serializedName: "healthCheckSource", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PrecheckResultTags: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrecheckResultTags", + modelProperties: { + key: { + serializedName: "key", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const UpdateList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateList", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "Update", }, }, }, }, - overrideVirtualSwitchConfiguration: { - serializedName: "overrideVirtualSwitchConfiguration", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Boolean", + name: "String", }, }, - virtualSwitchConfigurationOverrides: { - serializedName: "virtualSwitchConfigurationOverrides", + }, + }, +}; + +export const UpdatePrerequisite: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdatePrerequisite", + modelProperties: { + updateType: { + serializedName: "updateType", type: { - name: "Composite", - className: "HciEdgeDeviceVirtualSwitchConfigurationOverrides", + name: "String", }, }, - overrideQosPolicy: { - serializedName: "overrideQosPolicy", - readOnly: true, + version: { + serializedName: "version", type: { - name: "Boolean", + name: "String", }, }, - qosPolicyOverrides: { - serializedName: "qosPolicyOverrides", + packageName: { + serializedName: "packageName", type: { - name: "Composite", - className: "QosPolicyOverrides", + name: "String", }, }, - overrideAdapterProperty: { - serializedName: "overrideAdapterProperty", - readOnly: true, + }, + }, +}; + +export const VirtualHardDiskStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualHardDiskStatus", + modelProperties: { + errorCode: { + serializedName: "errorCode", type: { - name: "Boolean", + name: "String", }, }, - adapterPropertyOverrides: { - serializedName: "adapterPropertyOverrides", + errorMessage: { + serializedName: "errorMessage", + type: { + name: "String", + }, + }, + provisioningStatus: { + serializedName: "provisioningStatus", type: { name: "Composite", - className: "HciEdgeDeviceAdapterPropertyOverrides", + className: "VirtualHardDiskStatusProvisioningStatus", }, }, }, }, }; -export const HciEdgeDeviceVirtualSwitchConfigurationOverrides: coreClient.CompositeMapper = +export const VirtualHardDiskStatusProvisioningStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HciEdgeDeviceVirtualSwitchConfigurationOverrides", + className: "VirtualHardDiskStatusProvisioningStatus", modelProperties: { - enableIov: { - serializedName: "enableIov", - readOnly: true, + operationId: { + serializedName: "operationId", type: { name: "String", }, }, - loadBalancingAlgorithm: { - serializedName: "loadBalancingAlgorithm", - readOnly: true, + status: { + serializedName: "status", type: { name: "String", }, @@ -3961,41 +3739,1547 @@ export const HciEdgeDeviceVirtualSwitchConfigurationOverrides: coreClient.Compos }, }; -export const HciEdgeDeviceStorageNetworks: coreClient.CompositeMapper = { +export const VirtualHardDisksUpdateRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HciEdgeDeviceStorageNetworks", + className: "VirtualHardDisksUpdateRequest", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const VirtualHardDisksListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualHardDisksListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualHardDisks", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", type: { name: "String", }, }, - networkAdapterName: { - serializedName: "networkAdapterName", - readOnly: true, + }, + }, +}; + +export const VirtualMachineInstancePropertiesHardwareProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstancePropertiesHardwareProfile", + modelProperties: { + vmSize: { + serializedName: "vmSize", + type: { + name: "String", + }, + }, + processors: { + serializedName: "processors", + type: { + name: "Number", + }, + }, + memoryMB: { + serializedName: "memoryMB", + type: { + name: "Number", + }, + }, + dynamicMemoryConfig: { + serializedName: "dynamicMemoryConfig", + type: { + name: "Composite", + className: + "VirtualMachineInstancePropertiesHardwareProfileDynamicMemoryConfig", + }, + }, + }, + }, + }; + +export const VirtualMachineInstancePropertiesHardwareProfileDynamicMemoryConfig: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "VirtualMachineInstancePropertiesHardwareProfileDynamicMemoryConfig", + modelProperties: { + maximumMemoryMB: { + serializedName: "maximumMemoryMB", + type: { + name: "Number", + }, + }, + minimumMemoryMB: { + serializedName: "minimumMemoryMB", + type: { + name: "Number", + }, + }, + targetMemoryBuffer: { + serializedName: "targetMemoryBuffer", + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const VirtualMachineInstancePropertiesNetworkProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstancePropertiesNetworkProfile", + modelProperties: { + networkInterfaces: { + serializedName: "networkInterfaces", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "VirtualMachineInstancePropertiesNetworkProfileNetworkInterfacesItem", + }, + }, + }, + }, + }, + }, + }; + +export const VirtualMachineInstancePropertiesNetworkProfileNetworkInterfacesItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "VirtualMachineInstancePropertiesNetworkProfileNetworkInterfacesItem", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineInstancePropertiesOsProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstancePropertiesOsProfile", + modelProperties: { + adminPassword: { + serializedName: "adminPassword", + type: { + name: "String", + }, + }, + adminUsername: { + serializedName: "adminUsername", + type: { + name: "String", + }, + }, + computerName: { + serializedName: "computerName", + type: { + name: "String", + }, + }, + linuxConfiguration: { + serializedName: "linuxConfiguration", + type: { + name: "Composite", + className: + "VirtualMachineInstancePropertiesOsProfileLinuxConfiguration", + }, + }, + windowsConfiguration: { + serializedName: "windowsConfiguration", + type: { + name: "Composite", + className: + "VirtualMachineInstancePropertiesOsProfileWindowsConfiguration", + }, + }, + }, + }, + }; + +export const VirtualMachineInstancePropertiesOsProfileLinuxConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstancePropertiesOsProfileLinuxConfiguration", + modelProperties: { + disablePasswordAuthentication: { + serializedName: "disablePasswordAuthentication", + type: { + name: "Boolean", + }, + }, + ssh: { + serializedName: "ssh", + type: { + name: "Composite", + className: "SshConfiguration", + }, + }, + provisionVMAgent: { + defaultValue: true, + serializedName: "provisionVMAgent", + type: { + name: "Boolean", + }, + }, + provisionVMConfigAgent: { + defaultValue: true, + serializedName: "provisionVMConfigAgent", + type: { + name: "Boolean", + }, + }, + }, + }, + }; + +export const SshConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SshConfiguration", + modelProperties: { + publicKeys: { + serializedName: "publicKeys", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SshPublicKey", + }, + }, + }, + }, + }, + }, +}; + +export const SshPublicKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SshPublicKey", + modelProperties: { + path: { + serializedName: "path", + type: { + name: "String", + }, + }, + keyData: { + serializedName: "keyData", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VirtualMachineInstancePropertiesOsProfileWindowsConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "VirtualMachineInstancePropertiesOsProfileWindowsConfiguration", + modelProperties: { + enableAutomaticUpdates: { + serializedName: "enableAutomaticUpdates", + type: { + name: "Boolean", + }, + }, + ssh: { + serializedName: "ssh", + type: { + name: "Composite", + className: "SshConfiguration", + }, + }, + timeZone: { + serializedName: "timeZone", + type: { + name: "String", + }, + }, + provisionVMAgent: { + defaultValue: true, + serializedName: "provisionVMAgent", + type: { + name: "Boolean", + }, + }, + provisionVMConfigAgent: { + defaultValue: true, + serializedName: "provisionVMConfigAgent", + type: { + name: "Boolean", + }, + }, + }, + }, + }; + +export const VirtualMachineInstancePropertiesSecurityProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstancePropertiesSecurityProfile", + modelProperties: { + enableTPM: { + defaultValue: false, + serializedName: "enableTPM", + type: { + name: "Boolean", + }, + }, + uefiSettings: { + serializedName: "uefiSettings", + type: { + name: "Composite", + className: + "VirtualMachineInstancePropertiesSecurityProfileUefiSettings", + }, + }, + securityType: { + serializedName: "securityType", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineInstancePropertiesSecurityProfileUefiSettings: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstancePropertiesSecurityProfileUefiSettings", + modelProperties: { + secureBootEnabled: { + defaultValue: false, + serializedName: "secureBootEnabled", + type: { + name: "Boolean", + }, + }, + }, + }, + }; + +export const VirtualMachineInstancePropertiesStorageProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstancePropertiesStorageProfile", + modelProperties: { + dataDisks: { + serializedName: "dataDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "VirtualMachineInstancePropertiesStorageProfileDataDisksItem", + }, + }, + }, + }, + imageReference: { + serializedName: "imageReference", + type: { + name: "Composite", + className: + "VirtualMachineInstancePropertiesStorageProfileImageReference", + }, + }, + osDisk: { + serializedName: "osDisk", + type: { + name: "Composite", + className: "VirtualMachineInstancePropertiesStorageProfileOsDisk", + }, + }, + vmConfigStoragePathId: { + serializedName: "vmConfigStoragePathId", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineInstancePropertiesStorageProfileDataDisksItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstancePropertiesStorageProfileDataDisksItem", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineInstancePropertiesStorageProfileImageReference: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstancePropertiesStorageProfileImageReference", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineInstancePropertiesStorageProfileOsDisk: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstancePropertiesStorageProfileOsDisk", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + osType: { + serializedName: "osType", + type: { + name: "Enum", + allowedValues: ["Windows", "Linux"], + }, + }, + }, + }, + }; + +export const HttpProxyConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HttpProxyConfiguration", + modelProperties: { + httpProxy: { + serializedName: "httpProxy", + type: { + name: "String", + }, + }, + httpsProxy: { + serializedName: "httpsProxy", + type: { + name: "String", + }, + }, + noProxy: { + serializedName: "noProxy", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + trustedCa: { + serializedName: "trustedCa", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VirtualMachineInstanceView: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineInstanceView", + modelProperties: { + vmAgent: { + serializedName: "vmAgent", + type: { + name: "Composite", + className: "VirtualMachineConfigAgentInstanceView", + }, + }, + }, + }, +}; + +export const VirtualMachineConfigAgentInstanceView: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineConfigAgentInstanceView", + modelProperties: { + vmConfigAgentVersion: { + serializedName: "vmConfigAgentVersion", + type: { + name: "String", + }, + }, + statuses: { + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, + }; + +export const InstanceViewStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstanceViewStatus", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String", + }, + }, + level: { + serializedName: "level", + type: { + name: "String", + }, + }, + displayStatus: { + serializedName: "displayStatus", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + type: { + name: "String", + }, + }, + time: { + serializedName: "time", + type: { + name: "DateTime", + }, + }, + }, + }, +}; + +export const VirtualMachineInstanceStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineInstanceStatus", + modelProperties: { + errorCode: { + serializedName: "errorCode", + type: { + name: "String", + }, + }, + errorMessage: { + serializedName: "errorMessage", + type: { + name: "String", + }, + }, + powerState: { + serializedName: "powerState", + type: { + name: "String", + }, + }, + provisioningStatus: { + serializedName: "provisioningStatus", + type: { + name: "Composite", + className: "VirtualMachineInstanceStatusProvisioningStatus", + }, + }, + }, + }, +}; + +export const VirtualMachineInstanceStatusProvisioningStatus: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstanceStatusProvisioningStatus", + modelProperties: { + operationId: { + serializedName: "operationId", + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GuestAgentInstallStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GuestAgentInstallStatus", + modelProperties: { + vmUuid: { + serializedName: "vmUuid", + readOnly: true, + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String", + }, + }, + lastStatusChange: { + serializedName: "lastStatusChange", + readOnly: true, + type: { + name: "DateTime", + }, + }, + agentVersion: { + serializedName: "agentVersion", + readOnly: true, + type: { + name: "String", + }, + }, + errorDetails: { + serializedName: "errorDetails", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, + }, + }, +}; + +export const Identity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Identity", + modelProperties: { + principalId: { + serializedName: "principalId", + readOnly: true, + type: { + name: "String", + }, + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + defaultValue: "SystemAssigned", + isConstant: true, + serializedName: "type", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VirtualMachineInstanceUpdateRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineInstanceUpdateRequest", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "VirtualMachineInstanceUpdateProperties", + }, + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity", + }, + }, + }, + }, +}; + +export const VirtualMachineInstanceUpdateProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstanceUpdateProperties", + modelProperties: { + hardwareProfile: { + serializedName: "hardwareProfile", + type: { + name: "Composite", + className: "HardwareProfileUpdate", + }, + }, + storageProfile: { + serializedName: "storageProfile", + type: { + name: "Composite", + className: "StorageProfileUpdate", + }, + }, + networkProfile: { + serializedName: "networkProfile", + type: { + name: "Composite", + className: "NetworkProfileUpdate", + }, + }, + osProfile: { + serializedName: "osProfile", + type: { + name: "Composite", + className: "OsProfileUpdate", + }, + }, + }, + }, + }; + +export const HardwareProfileUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HardwareProfileUpdate", + modelProperties: { + vmSize: { + serializedName: "vmSize", + type: { + name: "String", + }, + }, + processors: { + serializedName: "processors", + type: { + name: "Number", + }, + }, + memoryMB: { + serializedName: "memoryMB", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const StorageProfileUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StorageProfileUpdate", + modelProperties: { + dataDisks: { + serializedName: "dataDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageProfileUpdateDataDisksItem", + }, + }, + }, + }, + }, + }, +}; + +export const StorageProfileUpdateDataDisksItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StorageProfileUpdateDataDisksItem", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const NetworkProfileUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkProfileUpdate", + modelProperties: { + networkInterfaces: { + serializedName: "networkInterfaces", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkProfileUpdateNetworkInterfacesItem", + }, + }, + }, + }, + }, + }, +}; + +export const NetworkProfileUpdateNetworkInterfacesItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkProfileUpdateNetworkInterfacesItem", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const OsProfileUpdate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OsProfileUpdate", + modelProperties: { + computerName: { + serializedName: "computerName", + type: { + name: "String", + }, + }, + linuxConfiguration: { + serializedName: "linuxConfiguration", + type: { + name: "Composite", + className: "OsProfileUpdateLinuxConfiguration", + }, + }, + windowsConfiguration: { + serializedName: "windowsConfiguration", + type: { + name: "Composite", + className: "OsProfileUpdateWindowsConfiguration", + }, + }, + }, + }, +}; + +export const OsProfileUpdateLinuxConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OsProfileUpdateLinuxConfiguration", + modelProperties: { + provisionVMAgent: { + serializedName: "provisionVMAgent", + type: { + name: "Boolean", + }, + }, + provisionVMConfigAgent: { + serializedName: "provisionVMConfigAgent", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const OsProfileUpdateWindowsConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OsProfileUpdateWindowsConfiguration", + modelProperties: { + provisionVMAgent: { + serializedName: "provisionVMAgent", + type: { + name: "Boolean", + }, + }, + provisionVMConfigAgent: { + serializedName: "provisionVMConfigAgent", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const VirtualMachineInstanceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineInstanceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineInstance", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const HybridIdentityMetadataList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HybridIdentityMetadataList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HybridIdentityMetadata", + }, + }, + }, + }, + }, + }, +}; + +export const GuestCredential: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GuestCredential", + modelProperties: { + username: { + serializedName: "username", + type: { + name: "String", + }, + }, + password: { + serializedName: "password", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GuestAgentList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GuestAgentList", + modelProperties: { + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GuestAgent", + }, + }, + }, + }, + }, + }, +}; + +export const ArcConnectivityProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArcConnectivityProperties", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + serviceConfigurations: { + serializedName: "serviceConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceConfiguration", + }, + }, + }, + }, + }, + }, +}; + +export const ServiceConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServiceConfiguration", + modelProperties: { + serviceName: { + serializedName: "serviceName", + required: true, + type: { + name: "String", + }, + }, + port: { + serializedName: "port", + required: true, + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties, + }, + }, +}; + +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 GalleryOSDiskImage: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryOSDiskImage", + modelProperties: { + ...GalleryDiskImage.type.modelProperties, + }, + }, +}; + +export const ArcSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArcSetting", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + arcInstanceResourceGroup: { + serializedName: "properties.arcInstanceResourceGroup", + type: { + name: "String", + }, + }, + arcApplicationClientId: { + serializedName: "properties.arcApplicationClientId", + type: { + name: "String", + }, + }, + arcApplicationTenantId: { + serializedName: "properties.arcApplicationTenantId", + type: { + name: "String", + }, + }, + arcServicePrincipalObjectId: { + serializedName: "properties.arcServicePrincipalObjectId", + type: { + name: "String", + }, + }, + arcApplicationObjectId: { + serializedName: "properties.arcApplicationObjectId", + type: { + name: "String", + }, + }, + aggregateState: { + serializedName: "properties.aggregateState", + readOnly: true, + type: { + name: "String", + }, + }, + perNodeDetails: { + serializedName: "properties.perNodeDetails", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PerNodeState", + }, + }, + }, + }, + connectivityProperties: { + serializedName: "properties.connectivityProperties", + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + defaultExtensions: { + serializedName: "properties.defaultExtensions", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DefaultExtensionDetails", + }, + }, + }, + }, + }, + }, +}; + +export const DeploymentSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentSetting", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String", + }, + }, + arcNodeResourceIds: { + serializedName: "properties.arcNodeResourceIds", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + deploymentMode: { + defaultValue: "Deploy", + serializedName: "properties.deploymentMode", + type: { + name: "String", + }, + }, + deploymentConfiguration: { + serializedName: "properties.deploymentConfiguration", + type: { + name: "Composite", + className: "DeploymentConfiguration", + }, + }, + reportedProperties: { + serializedName: "properties.reportedProperties", + type: { + name: "Composite", + className: "ReportedProperties", + }, + }, + }, + }, +}; + +export const EdgeDevice: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EdgeDevice", + modelProperties: { + ...ProxyResource.type.modelProperties, + deviceConfiguration: { + serializedName: "properties.deviceConfiguration", + type: { + name: "Composite", + className: "DeviceConfiguration", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const Extension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Extension", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + aggregateState: { + serializedName: "properties.aggregateState", + readOnly: true, + type: { + name: "String", + }, + }, + perNodeExtensionDetails: { + serializedName: "properties.perNodeExtensionDetails", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PerNodeExtensionState", + }, + }, + }, + }, + managedBy: { + serializedName: "properties.managedBy", + readOnly: true, + type: { + name: "String", + }, + }, + forceUpdateTag: { + serializedName: "properties.extensionParameters.forceUpdateTag", + type: { + name: "String", + }, + }, + publisher: { + serializedName: "properties.extensionParameters.publisher", + type: { + name: "String", + }, + }, + typePropertiesExtensionParametersType: { + serializedName: "properties.extensionParameters.type", + type: { + name: "String", + }, + }, + typeHandlerVersion: { + serializedName: "properties.extensionParameters.typeHandlerVersion", + type: { + name: "String", + }, + }, + autoUpgradeMinorVersion: { + serializedName: + "properties.extensionParameters.autoUpgradeMinorVersion", + type: { + name: "Boolean", + }, + }, + settings: { + serializedName: "properties.extensionParameters.settings", + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + protectedSettings: { + serializedName: "properties.extensionParameters.protectedSettings", + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + enableAutomaticUpgrade: { + serializedName: "properties.extensionParameters.enableAutomaticUpgrade", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const Offer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Offer", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + publisherId: { + serializedName: "properties.publisherId", + type: { + name: "String", + }, + }, + content: { + serializedName: "properties.content", + type: { + name: "String", + }, + }, + contentVersion: { + serializedName: "properties.contentVersion", + type: { + name: "String", + }, + }, + skuMappings: { + serializedName: "properties.skuMappings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SkuMappings", + }, + }, + }, + }, + }, + }, +}; + +export const Publisher: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Publisher", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SecuritySetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecuritySetting", + modelProperties: { + ...ProxyResource.type.modelProperties, + securedCoreComplianceAssignment: { + serializedName: "properties.securedCoreComplianceAssignment", + type: { + name: "String", + }, + }, + securityComplianceStatus: { + serializedName: "properties.securityComplianceStatus", + type: { + name: "Composite", + className: "SecurityComplianceStatus", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const Sku: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Sku", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + publisherId: { + serializedName: "properties.publisherId", + type: { + name: "String", + }, + }, + offerId: { + serializedName: "properties.offerId", + type: { + name: "String", + }, + }, + content: { + serializedName: "properties.content", type: { name: "String", }, }, - storageVlanId: { - serializedName: "storageVlanId", - readOnly: true, + contentVersion: { + serializedName: "properties.contentVersion", type: { name: "String", }, }, - storageAdapterIPInfo: { - serializedName: "storageAdapterIPInfo", - readOnly: true, + skuMappings: { + serializedName: "properties.skuMappings", type: { name: "Sequence", element: { type: { name: "Composite", - className: "HciEdgeDeviceStorageAdapterIPInfo", + className: "SkuMappings", }, }, }, @@ -4004,462 +5288,425 @@ export const HciEdgeDeviceStorageNetworks: coreClient.CompositeMapper = { }, }; -export const HciEdgeDeviceStorageAdapterIPInfo: coreClient.CompositeMapper = { +export const UpdateRun: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HciEdgeDeviceStorageAdapterIPInfo", + className: "UpdateRun", modelProperties: { - physicalNode: { - serializedName: "physicalNode", - readOnly: true, + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", type: { name: "String", }, }, - ipv4Address: { - serializedName: "ipv4Address", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String", }, }, - subnetMask: { - serializedName: "subnetMask", - readOnly: true, + timeStarted: { + serializedName: "properties.timeStarted", + type: { + name: "DateTime", + }, + }, + lastUpdatedTime: { + serializedName: "properties.lastUpdatedTime", + type: { + name: "DateTime", + }, + }, + duration: { + serializedName: "properties.duration", type: { name: "String", }, }, - }, - }, -}; - -export const HciOsProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HciOsProfile", - modelProperties: { - bootType: { - serializedName: "bootType", - readOnly: true, + state: { + serializedName: "properties.state", type: { name: "String", }, }, - assemblyVersion: { - serializedName: "assemblyVersion", - readOnly: true, + namePropertiesProgressName: { + serializedName: "properties.progress.name", type: { name: "String", }, }, - }, - }, -}; - -export const SbeDeploymentPackageInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SbeDeploymentPackageInfo", - modelProperties: { - code: { - serializedName: "code", - readOnly: true, + description: { + serializedName: "properties.progress.description", type: { name: "String", }, }, - message: { - serializedName: "message", - readOnly: true, + errorMessage: { + serializedName: "properties.progress.errorMessage", type: { name: "String", }, }, - sbeManifest: { - serializedName: "sbeManifest", - readOnly: true, + status: { + serializedName: "properties.progress.status", type: { name: "String", }, }, + startTimeUtc: { + serializedName: "properties.progress.startTimeUtc", + type: { + name: "DateTime", + }, + }, + endTimeUtc: { + serializedName: "properties.progress.endTimeUtc", + type: { + name: "DateTime", + }, + }, + lastUpdatedTimeUtc: { + serializedName: "properties.progress.lastUpdatedTimeUtc", + type: { + name: "DateTime", + }, + }, + steps: { + serializedName: "properties.progress.steps", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Step", + }, + }, + }, + }, }, }, }; -export const ReportedProperties: coreClient.CompositeMapper = { +export const UpdateSummaries: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ReportedProperties", + className: "UpdateSummaries", modelProperties: { - deviceState: { - serializedName: "deviceState", + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { name: "String", }, }, - extensionProfile: { - serializedName: "extensionProfile", + oemFamily: { + serializedName: "properties.oemFamily", type: { - name: "Composite", - className: "ExtensionProfile", + name: "String", }, }, - }, - }, -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties, - }, - }, -}; - -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", + hardwareModel: { + serializedName: "properties.hardwareModel", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - location: { - serializedName: "location", - required: true, + packageVersions: { + serializedName: "properties.packageVersions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PackageVersionInfo", + }, + }, + }, + }, + currentVersion: { + serializedName: "properties.currentVersion", type: { name: "String", }, }, - }, - }, -}; - -export const HciEdgeDeviceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HciEdgeDeviceProperties", - modelProperties: { - ...EdgeDeviceProperties.type.modelProperties, - reportedProperties: { - serializedName: "reportedProperties", + lastUpdated: { + serializedName: "properties.lastUpdated", type: { - name: "Composite", - className: "HciReportedProperties", + name: "DateTime", }, }, - }, - }, -}; - -export const HciReportedProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "HciReportedProperties", - modelProperties: { - ...ReportedProperties.type.modelProperties, - networkProfile: { - serializedName: "networkProfile", + lastChecked: { + serializedName: "properties.lastChecked", type: { - name: "Composite", - className: "HciNetworkProfile", + name: "DateTime", }, }, - osProfile: { - serializedName: "osProfile", + healthState: { + serializedName: "properties.healthState", type: { - name: "Composite", - className: "HciOsProfile", + name: "String", }, }, - sbeDeploymentPackageInfo: { - serializedName: "sbeDeploymentPackageInfo", + healthCheckResult: { + serializedName: "properties.healthCheckResult", type: { - name: "Composite", - className: "SbeDeploymentPackageInfo", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrecheckResult", + }, + }, + }, + }, + healthCheckDate: { + serializedName: "properties.healthCheckDate", + type: { + name: "DateTime", + }, + }, + state: { + serializedName: "properties.state", + type: { + name: "String", }, }, }, }, }; -export const ArcSetting: coreClient.CompositeMapper = { +export const Update: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ArcSetting", + className: "Update", modelProperties: { ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - arcInstanceResourceGroup: { - serializedName: "properties.arcInstanceResourceGroup", + location: { + serializedName: "location", type: { name: "String", }, }, - arcApplicationClientId: { - serializedName: "properties.arcApplicationClientId", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String", }, }, - arcApplicationTenantId: { - serializedName: "properties.arcApplicationTenantId", + installedDate: { + serializedName: "properties.installedDate", type: { - name: "String", + name: "DateTime", }, }, - arcServicePrincipalObjectId: { - serializedName: "properties.arcServicePrincipalObjectId", + description: { + serializedName: "properties.description", type: { name: "String", }, }, - arcApplicationObjectId: { - serializedName: "properties.arcApplicationObjectId", + state: { + serializedName: "properties.state", type: { name: "String", }, }, - aggregateState: { - serializedName: "properties.aggregateState", - readOnly: true, + prerequisites: { + serializedName: "properties.prerequisites", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpdatePrerequisite", + }, + }, }, }, - perNodeDetails: { - serializedName: "properties.perNodeDetails", - readOnly: true, + componentVersions: { + serializedName: "properties.componentVersions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PerNodeState", + className: "PackageVersionInfo", }, }, }, }, - connectivityProperties: { - serializedName: "properties.connectivityProperties", + rebootRequired: { + serializedName: "properties.rebootRequired", type: { - name: "Dictionary", - value: { type: { name: "any" } }, + name: "String", }, }, - defaultExtensions: { - serializedName: "properties.defaultExtensions", - readOnly: true, + healthState: { + serializedName: "properties.healthState", + type: { + name: "String", + }, + }, + healthCheckResult: { + serializedName: "properties.healthCheckResult", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DefaultExtensionDetails", + className: "PrecheckResult", }, }, }, }, - }, - }, -}; - -export const DeploymentSetting: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DeploymentSetting", - modelProperties: { - ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + healthCheckDate: { + serializedName: "properties.healthCheckDate", + type: { + name: "DateTime", + }, + }, + packagePath: { + serializedName: "properties.packagePath", type: { name: "String", }, }, - arcNodeResourceIds: { - serializedName: "properties.arcNodeResourceIds", + packageSizeInMb: { + serializedName: "properties.packageSizeInMb", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Number", }, }, - deploymentMode: { - defaultValue: "Deploy", - serializedName: "properties.deploymentMode", + displayName: { + serializedName: "properties.displayName", type: { name: "String", }, }, - operationType: { - defaultValue: "ClusterProvisioning", - serializedName: "properties.operationType", + version: { + serializedName: "properties.version", type: { name: "String", }, }, - deploymentConfiguration: { - serializedName: "properties.deploymentConfiguration", + publisher: { + serializedName: "properties.publisher", type: { - name: "Composite", - className: "DeploymentConfiguration", + name: "String", }, }, - reportedProperties: { - serializedName: "properties.reportedProperties", + releaseLink: { + serializedName: "properties.releaseLink", type: { - name: "Composite", - className: "EceReportedProperties", + name: "String", }, }, - }, - }, -}; - -export const EdgeDevice: coreClient.CompositeMapper = { - serializedName: "EdgeDevice", - type: { - name: "Composite", - className: "EdgeDevice", - uberParent: "ProxyResource", - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind", - }, - modelProperties: { - ...ProxyResource.type.modelProperties, - kind: { - defaultValue: "HCI", - serializedName: "kind", - required: true, + availabilityType: { + serializedName: "properties.availabilityType", type: { name: "String", }, }, - }, - }, -}; - -export const Extension: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Extension", - modelProperties: { - ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + packageType: { + serializedName: "properties.packageType", type: { name: "String", }, }, - aggregateState: { - serializedName: "properties.aggregateState", - readOnly: true, + additionalProperties: { + serializedName: "properties.additionalProperties", type: { name: "String", }, }, - perNodeExtensionDetails: { - serializedName: "properties.perNodeExtensionDetails", - readOnly: true, + progressPercentage: { + serializedName: "properties.updateStateProperties.progressPercentage", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PerNodeExtensionState", - }, - }, + name: "Number", }, }, - managedBy: { - serializedName: "properties.managedBy", - readOnly: true, + notifyMessage: { + serializedName: "properties.updateStateProperties.notifyMessage", type: { name: "String", }, }, - forceUpdateTag: { - serializedName: "properties.extensionParameters.forceUpdateTag", + }, + }, +}; + +export const VirtualMachineInstance: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineInstance", + modelProperties: { + ...ProxyResource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", type: { - name: "String", + name: "Composite", + className: "ExtendedLocation", }, }, - publisher: { - serializedName: "properties.extensionParameters.publisher", + identity: { + serializedName: "identity", type: { - name: "String", + name: "Composite", + className: "Identity", }, }, - typePropertiesExtensionParametersType: { - serializedName: "properties.extensionParameters.type", + hardwareProfile: { + serializedName: "properties.hardwareProfile", type: { - name: "String", + name: "Composite", + className: "VirtualMachineInstancePropertiesHardwareProfile", }, }, - typeHandlerVersion: { - serializedName: "properties.extensionParameters.typeHandlerVersion", + networkProfile: { + serializedName: "properties.networkProfile", type: { - name: "String", + name: "Composite", + className: "VirtualMachineInstancePropertiesNetworkProfile", }, }, - autoUpgradeMinorVersion: { - serializedName: - "properties.extensionParameters.autoUpgradeMinorVersion", + osProfile: { + serializedName: "properties.osProfile", type: { - name: "Boolean", + name: "Composite", + className: "VirtualMachineInstancePropertiesOsProfile", }, }, - settings: { - serializedName: "properties.extensionParameters.settings", + securityProfile: { + serializedName: "properties.securityProfile", type: { - name: "Dictionary", - value: { type: { name: "any" } }, + name: "Composite", + className: "VirtualMachineInstancePropertiesSecurityProfile", }, }, - protectedSettings: { - serializedName: "properties.extensionParameters.protectedSettings", + storageProfile: { + serializedName: "properties.storageProfile", type: { - name: "Dictionary", - value: { type: { name: "any" } }, + name: "Composite", + className: "VirtualMachineInstancePropertiesStorageProfile", }, }, - enableAutomaticUpgrade: { - serializedName: "properties.extensionParameters.enableAutomaticUpgrade", + httpProxyConfig: { + serializedName: "properties.httpProxyConfig", type: { - name: "Boolean", + name: "Composite", + className: "HttpProxyConfiguration", }, }, - }, - }, -}; - -export const Offer: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Offer", - modelProperties: { - ...ProxyResource.type.modelProperties, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -4467,49 +5714,36 @@ export const Offer: coreClient.CompositeMapper = { name: "String", }, }, - publisherId: { - serializedName: "properties.publisherId", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "String", + name: "Composite", + className: "VirtualMachineInstanceView", }, }, - content: { - serializedName: "properties.content", + status: { + serializedName: "properties.status", type: { - name: "String", + name: "Composite", + className: "VirtualMachineInstanceStatus", }, }, - contentVersion: { - serializedName: "properties.contentVersion", + guestAgentInstallStatus: { + serializedName: "properties.guestAgentInstallStatus", type: { - name: "String", + name: "Composite", + className: "GuestAgentInstallStatus", }, }, - skuMappings: { - serializedName: "properties.skuMappings", + vmId: { + serializedName: "properties.vmId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SkuMappings", - }, - }, + name: "String", }, }, - }, - }, -}; - -export const Publisher: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Publisher", - modelProperties: { - ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + resourceUid: { + serializedName: "properties.resourceUid", type: { name: "String", }, @@ -4518,40 +5752,34 @@ export const Publisher: coreClient.CompositeMapper = { }, }; -export const SecuritySetting: coreClient.CompositeMapper = { +export const HybridIdentityMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecuritySetting", + className: "HybridIdentityMetadata", modelProperties: { ...ProxyResource.type.modelProperties, - securedCoreComplianceAssignment: { - serializedName: "properties.securedCoreComplianceAssignment", - type: { - name: "String", - }, - }, - wdacComplianceAssignment: { - serializedName: "properties.wdacComplianceAssignment", + resourceUid: { + serializedName: "properties.resourceUid", type: { name: "String", }, }, - smbEncryptionForIntraClusterTrafficComplianceAssignment: { - serializedName: - "properties.smbEncryptionForIntraClusterTrafficComplianceAssignment", + publicKey: { + serializedName: "properties.publicKey", type: { name: "String", }, }, - securityComplianceStatus: { - serializedName: "properties.securityComplianceStatus", + identity: { + serializedName: "properties.identity", type: { name: "Composite", - className: "SecurityComplianceStatus", + className: "Identity", }, }, provisioningState: { serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String", }, @@ -4560,71 +5788,49 @@ export const SecuritySetting: coreClient.CompositeMapper = { }, }; -export const Sku: coreClient.CompositeMapper = { +export const GuestAgent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Sku", + className: "GuestAgent", modelProperties: { ...ProxyResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - publisherId: { - serializedName: "properties.publisherId", - type: { - name: "String", - }, - }, - offerId: { - serializedName: "properties.offerId", + credentials: { + serializedName: "properties.credentials", type: { - name: "String", + name: "Composite", + className: "GuestCredential", }, }, - content: { - serializedName: "properties.content", + provisioningAction: { + serializedName: "properties.provisioningAction", type: { name: "String", }, }, - contentVersion: { - serializedName: "properties.contentVersion", + status: { + serializedName: "properties.status", + readOnly: true, type: { name: "String", }, }, - skuMappings: { - serializedName: "properties.skuMappings", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SkuMappings", - }, - }, + name: "String", }, }, }, }, }; -export const UpdateRun: coreClient.CompositeMapper = { +export const Cluster: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UpdateRun", + className: "Cluster", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", - type: { - name: "String", - }, - }, + ...TrackedResource.type.modelProperties, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -4632,580 +5838,684 @@ export const UpdateRun: coreClient.CompositeMapper = { name: "String", }, }, - timeStarted: { - serializedName: "properties.timeStarted", - type: { - name: "DateTime", - }, - }, - lastUpdatedTime: { - serializedName: "properties.lastUpdatedTime", - type: { - name: "DateTime", - }, - }, - duration: { - serializedName: "properties.duration", + status: { + serializedName: "properties.status", + readOnly: true, type: { name: "String", }, }, - state: { - serializedName: "properties.state", + connectivityStatus: { + serializedName: "properties.connectivityStatus", + readOnly: true, type: { name: "String", }, }, - namePropertiesProgressName: { - serializedName: "properties.progress.name", + cloudId: { + serializedName: "properties.cloudId", + readOnly: true, type: { name: "String", }, }, - description: { - serializedName: "properties.progress.description", + cloudManagementEndpoint: { + serializedName: "properties.cloudManagementEndpoint", type: { name: "String", }, }, - errorMessage: { - serializedName: "properties.progress.errorMessage", + aadClientId: { + serializedName: "properties.aadClientId", type: { name: "String", }, }, - status: { - serializedName: "properties.progress.status", + aadTenantId: { + serializedName: "properties.aadTenantId", type: { name: "String", }, }, - startTimeUtc: { - serializedName: "properties.progress.startTimeUtc", + aadApplicationObjectId: { + serializedName: "properties.aadApplicationObjectId", type: { - name: "DateTime", + name: "String", }, }, - endTimeUtc: { - serializedName: "properties.progress.endTimeUtc", + aadServicePrincipalObjectId: { + serializedName: "properties.aadServicePrincipalObjectId", type: { - name: "DateTime", + name: "String", }, }, - lastUpdatedTimeUtc: { - serializedName: "properties.progress.lastUpdatedTimeUtc", + softwareAssuranceProperties: { + serializedName: "properties.softwareAssuranceProperties", type: { - name: "DateTime", + name: "Composite", + className: "SoftwareAssuranceProperties", }, }, - expectedExecutionTime: { - serializedName: "properties.progress.expectedExecutionTime", + desiredProperties: { + serializedName: "properties.desiredProperties", type: { - name: "String", + name: "Composite", + className: "ClusterDesiredProperties", }, }, - steps: { - serializedName: "properties.progress.steps", + reportedProperties: { + serializedName: "properties.reportedProperties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Step", - }, - }, + name: "Composite", + className: "ClusterReportedProperties", }, }, - }, - }, -}; - -export const UpdateSummaries: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateSummaries", - modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + isolatedVmAttestationConfiguration: { + serializedName: "properties.isolatedVmAttestationConfiguration", type: { - name: "String", + name: "Composite", + className: "IsolatedVmAttestationConfiguration", }, }, - provisioningState: { - serializedName: "properties.provisioningState", + trialDaysRemaining: { + serializedName: "properties.trialDaysRemaining", readOnly: true, type: { - name: "String", + name: "Number", }, }, - oemFamily: { - serializedName: "properties.oemFamily", + billingModel: { + serializedName: "properties.billingModel", + readOnly: true, type: { name: "String", }, }, - currentOemVersion: { - serializedName: "properties.currentOemVersion", + registrationTimestamp: { + serializedName: "properties.registrationTimestamp", + readOnly: true, type: { - name: "String", + name: "DateTime", }, }, - hardwareModel: { - serializedName: "properties.hardwareModel", + lastSyncTimestamp: { + serializedName: "properties.lastSyncTimestamp", + readOnly: true, type: { - name: "String", + name: "DateTime", }, }, - packageVersions: { - serializedName: "properties.packageVersions", + lastBillingTimestamp: { + serializedName: "properties.lastBillingTimestamp", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PackageVersionInfo", - }, - }, + name: "DateTime", }, }, - currentVersion: { - serializedName: "properties.currentVersion", + serviceEndpoint: { + serializedName: "properties.serviceEndpoint", + readOnly: true, type: { name: "String", }, }, - currentSbeVersion: { - serializedName: "properties.currentSbeVersion", + resourceProviderObjectId: { + serializedName: "properties.resourceProviderObjectId", + readOnly: true, type: { name: "String", }, }, - lastUpdated: { - serializedName: "properties.lastUpdated", + principalId: { + serializedName: "identity.principalId", + readOnly: true, type: { - name: "DateTime", + name: "Uuid", }, }, - lastChecked: { - serializedName: "properties.lastChecked", + tenantId: { + serializedName: "identity.tenantId", + readOnly: true, type: { - name: "DateTime", + name: "Uuid", }, }, - healthState: { - serializedName: "properties.healthState", + typeIdentityType: { + serializedName: "identity.type", type: { name: "String", }, }, - healthCheckResult: { - serializedName: "properties.healthCheckResult", + userAssignedIdentities: { + serializedName: "identity.userAssignedIdentities", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrecheckResult", - }, + name: "Dictionary", + value: { + type: { name: "Composite", className: "UserAssignedIdentity" }, }, }, }, - healthCheckDate: { - serializedName: "properties.healthCheckDate", - type: { - name: "DateTime", - }, - }, - state: { - serializedName: "properties.state", - type: { - name: "String", - }, - }, }, }, }; -export const Update: coreClient.CompositeMapper = { +export const GalleryImages: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Update", + className: "GalleryImages", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + ...TrackedResource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation", + }, + }, + containerId: { + serializedName: "properties.containerId", type: { name: "String", }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + imagePath: { + serializedName: "properties.imagePath", type: { name: "String", }, }, - installedDate: { - serializedName: "properties.installedDate", + osType: { + serializedName: "properties.osType", type: { - name: "DateTime", + name: "Enum", + allowedValues: ["Windows", "Linux"], }, }, - description: { - serializedName: "properties.description", + cloudInitDataSource: { + serializedName: "properties.cloudInitDataSource", type: { name: "String", }, }, - minSbeVersionRequired: { - serializedName: "properties.minSbeVersionRequired", + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", type: { name: "String", }, }, - state: { - serializedName: "properties.state", + identifier: { + serializedName: "properties.identifier", type: { - name: "String", + name: "Composite", + className: "GalleryImageIdentifier", }, }, - prerequisites: { - serializedName: "properties.prerequisites", + version: { + serializedName: "properties.version", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UpdatePrerequisite", - }, - }, + name: "Composite", + className: "GalleryImageVersion", }, }, - componentVersions: { - serializedName: "properties.componentVersions", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + status: { + serializedName: "properties.status", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PackageVersionInfo", - }, - }, + name: "Composite", + className: "GalleryImageStatus", }, }, - rebootRequired: { - serializedName: "properties.rebootRequired", + }, + }, +}; + +export const LogicalNetworks: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogicalNetworks", + modelProperties: { + ...TrackedResource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", type: { - name: "String", + name: "Composite", + className: "ExtendedLocation", }, }, - healthState: { - serializedName: "properties.healthState", + dhcpOptions: { + serializedName: "properties.dhcpOptions", type: { - name: "String", + name: "Composite", + className: "LogicalNetworkPropertiesDhcpOptions", }, }, - healthCheckResult: { - serializedName: "properties.healthCheckResult", + subnets: { + serializedName: "properties.subnets", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PrecheckResult", + className: "Subnet", }, }, }, }, - healthCheckDate: { - serializedName: "properties.healthCheckDate", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "DateTime", + name: "String", }, }, - packagePath: { - serializedName: "properties.packagePath", + vmSwitchName: { + serializedName: "properties.vmSwitchName", type: { name: "String", }, }, - packageSizeInMb: { - serializedName: "properties.packageSizeInMb", + status: { + serializedName: "properties.status", type: { - name: "Number", + name: "Composite", + className: "LogicalNetworkStatus", }, }, - displayName: { - serializedName: "properties.displayName", + }, + }, +}; + +export const MarketplaceGalleryImages: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MarketplaceGalleryImages", + modelProperties: { + ...TrackedResource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", type: { - name: "String", + name: "Composite", + className: "ExtendedLocation", }, }, - version: { - serializedName: "properties.version", + containerId: { + serializedName: "properties.containerId", type: { name: "String", }, }, - publisher: { - serializedName: "properties.publisher", + osType: { + serializedName: "properties.osType", type: { - name: "String", + name: "Enum", + allowedValues: ["Windows", "Linux"], }, }, - releaseLink: { - serializedName: "properties.releaseLink", + cloudInitDataSource: { + serializedName: "properties.cloudInitDataSource", type: { name: "String", }, }, - availabilityType: { - serializedName: "properties.availabilityType", + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", type: { name: "String", }, }, - packageType: { - serializedName: "properties.packageType", + identifier: { + serializedName: "properties.identifier", type: { - name: "String", + name: "Composite", + className: "GalleryImageIdentifier", }, }, - additionalProperties: { - serializedName: "properties.additionalProperties", + version: { + serializedName: "properties.version", type: { - name: "String", + name: "Composite", + className: "GalleryImageVersion", }, }, - progressPercentage: { - serializedName: "properties.updateStateProperties.progressPercentage", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "Number", + name: "String", }, }, - notifyMessage: { - serializedName: "properties.updateStateProperties.notifyMessage", + status: { + serializedName: "properties.status", type: { - name: "String", + name: "Composite", + className: "MarketplaceGalleryImageStatus", }, }, }, }, }; -export const Cluster: coreClient.CompositeMapper = { +export const NetworkInterfaces: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Cluster", + className: "NetworkInterfaces", modelProperties: { ...TrackedResource.type.modelProperties, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + extendedLocation: { + serializedName: "extendedLocation", type: { - name: "String", + name: "Composite", + className: "ExtendedLocation", }, }, - status: { - serializedName: "properties.status", - readOnly: true, + ipConfigurations: { + serializedName: "properties.ipConfigurations", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IPConfiguration", + }, + }, }, }, - connectivityStatus: { - serializedName: "properties.connectivityStatus", - readOnly: true, + macAddress: { + serializedName: "properties.macAddress", type: { name: "String", }, }, - cloudId: { - serializedName: "properties.cloudId", - readOnly: true, + dnsSettings: { + serializedName: "properties.dnsSettings", type: { - name: "String", + name: "Composite", + className: "InterfaceDNSSettings", }, }, - cloudManagementEndpoint: { - serializedName: "properties.cloudManagementEndpoint", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String", }, }, - aadClientId: { - serializedName: "properties.aadClientId", + status: { + serializedName: "properties.status", type: { - name: "String", + name: "Composite", + className: "NetworkInterfaceStatus", }, }, - aadTenantId: { - serializedName: "properties.aadTenantId", + }, + }, +}; + +export const StorageContainers: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StorageContainers", + modelProperties: { + ...TrackedResource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", type: { - name: "String", + name: "Composite", + className: "ExtendedLocation", }, }, - aadApplicationObjectId: { - serializedName: "properties.aadApplicationObjectId", + path: { + serializedName: "properties.path", type: { name: "String", }, }, - aadServicePrincipalObjectId: { - serializedName: "properties.aadServicePrincipalObjectId", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { name: "String", }, }, - softwareAssuranceProperties: { - serializedName: "properties.softwareAssuranceProperties", + status: { + serializedName: "properties.status", type: { name: "Composite", - className: "SoftwareAssuranceProperties", + className: "StorageContainerStatus", }, }, - logCollectionProperties: { - serializedName: "properties.logCollectionProperties", + }, + }, +}; + +export const VirtualHardDisks: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualHardDisks", + modelProperties: { + ...TrackedResource.type.modelProperties, + extendedLocation: { + serializedName: "extendedLocation", type: { name: "Composite", - className: "LogCollectionProperties", + className: "ExtendedLocation", }, }, - remoteSupportProperties: { - serializedName: "properties.remoteSupportProperties", + blockSizeBytes: { + serializedName: "properties.blockSizeBytes", type: { - name: "Composite", - className: "RemoteSupportProperties", + name: "Number", }, }, - desiredProperties: { - serializedName: "properties.desiredProperties", + diskSizeGB: { + serializedName: "properties.diskSizeGB", type: { - name: "Composite", - className: "ClusterDesiredProperties", + name: "Number", }, }, - reportedProperties: { - serializedName: "properties.reportedProperties", + dynamic: { + serializedName: "properties.dynamic", type: { - name: "Composite", - className: "ClusterReportedProperties", + name: "Boolean", }, }, - isolatedVmAttestationConfiguration: { - serializedName: "properties.isolatedVmAttestationConfiguration", + logicalSectorBytes: { + serializedName: "properties.logicalSectorBytes", type: { - name: "Composite", - className: "IsolatedVmAttestationConfiguration", + name: "Number", }, }, - trialDaysRemaining: { - serializedName: "properties.trialDaysRemaining", - readOnly: true, + physicalSectorBytes: { + serializedName: "properties.physicalSectorBytes", type: { name: "Number", }, }, - billingModel: { - serializedName: "properties.billingModel", - readOnly: true, + hyperVGeneration: { + serializedName: "properties.hyperVGeneration", type: { name: "String", }, }, - registrationTimestamp: { - serializedName: "properties.registrationTimestamp", - readOnly: true, + diskFileFormat: { + serializedName: "properties.diskFileFormat", type: { - name: "DateTime", + name: "String", }, }, - lastSyncTimestamp: { - serializedName: "properties.lastSyncTimestamp", + provisioningState: { + serializedName: "properties.provisioningState", readOnly: true, type: { - name: "DateTime", + name: "String", }, }, - lastBillingTimestamp: { - serializedName: "properties.lastBillingTimestamp", - readOnly: true, + containerId: { + serializedName: "properties.containerId", type: { - name: "DateTime", + name: "String", }, }, - serviceEndpoint: { - serializedName: "properties.serviceEndpoint", - readOnly: true, + status: { + serializedName: "properties.status", + type: { + name: "Composite", + className: "VirtualHardDiskStatus", + }, + }, + }, + }, +}; + +export const DeploymentSettingsCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DeploymentSettingsCreateOrUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const DeploymentSettingsDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DeploymentSettingsDeleteHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const EdgeDevicesCreateOrUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EdgeDevicesCreateOrUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const EdgeDevicesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EdgeDevicesDeleteHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", type: { - name: "String", + name: "Number", }, }, - resourceProviderObjectId: { - serializedName: "properties.resourceProviderObjectId", - readOnly: true, + location: { + serializedName: "location", type: { name: "String", }, }, - principalId: { - serializedName: "identity.principalId", - readOnly: true, + }, + }, +}; + +export const EdgeDevicesValidateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EdgeDevicesValidateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", type: { - name: "Uuid", + name: "Number", }, }, - tenantId: { - serializedName: "identity.tenantId", - readOnly: true, + location: { + serializedName: "location", type: { - name: "Uuid", + name: "String", }, }, - typeIdentityType: { - serializedName: "identity.type", + }, + }, +}; + +export const GalleryImagesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryImagesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", type: { name: "String", }, }, - userAssignedIdentities: { - serializedName: "identity.userAssignedIdentities", + }, + }, +}; + +export const GalleryImagesUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GalleryImagesUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "UserAssignedIdentity" }, - }, + name: "String", }, }, }, }, }; -export const HciEdgeDevice: coreClient.CompositeMapper = { - serializedName: "HCI", +export const LogicalNetworksDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HciEdgeDevice", - uberParent: "EdgeDevice", - polymorphicDiscriminator: EdgeDevice.type.polymorphicDiscriminator, + className: "LogicalNetworksDeleteHeaders", modelProperties: { - ...EdgeDevice.type.modelProperties, - properties: { - serializedName: "properties", + location: { + serializedName: "location", type: { - name: "Composite", - className: "HciEdgeDeviceProperties", + name: "String", }, }, }, }, }; -export const ClustersTriggerLogCollectionHeaders: coreClient.CompositeMapper = { +export const LogicalNetworksUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClustersTriggerLogCollectionHeaders", + className: "LogicalNetworksUpdateHeaders", modelProperties: { location: { serializedName: "location", @@ -5217,11 +6527,11 @@ export const ClustersTriggerLogCollectionHeaders: coreClient.CompositeMapper = { }, }; -export const ClustersConfigureRemoteSupportHeaders: coreClient.CompositeMapper = +export const MarketplaceGalleryImagesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ClustersConfigureRemoteSupportHeaders", + className: "MarketplaceGalleryImagesDeleteHeaders", modelProperties: { location: { serializedName: "location", @@ -5233,33 +6543,27 @@ export const ClustersConfigureRemoteSupportHeaders: coreClient.CompositeMapper = }, }; -export const DeploymentSettingsCreateOrUpdateHeaders: coreClient.CompositeMapper = +export const MarketplaceGalleryImagesUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentSettingsCreateOrUpdateHeaders", + className: "MarketplaceGalleryImagesUpdateHeaders", modelProperties: { - retryAfter: { - serializedName: "retry-after", + location: { + serializedName: "location", type: { - name: "Number", + name: "String", }, }, }, }, }; -export const DeploymentSettingsDeleteHeaders: coreClient.CompositeMapper = { +export const NetworkInterfacesDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeploymentSettingsDeleteHeaders", + className: "NetworkInterfacesDeleteHeaders", modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, location: { serializedName: "location", type: { @@ -5270,25 +6574,41 @@ export const DeploymentSettingsDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const EdgeDevicesCreateOrUpdateHeaders: coreClient.CompositeMapper = { +export const NetworkInterfacesUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EdgeDevicesCreateOrUpdateHeaders", + className: "NetworkInterfacesUpdateHeaders", modelProperties: { - retryAfter: { - serializedName: "retry-after", + location: { + serializedName: "location", type: { - name: "Number", + name: "String", }, }, }, }, }; -export const EdgeDevicesDeleteHeaders: coreClient.CompositeMapper = { +export const SecuritySettingsCreateOrUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SecuritySettingsCreateOrUpdateHeaders", + modelProperties: { + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const SecuritySettingsDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EdgeDevicesDeleteHeaders", + className: "SecuritySettingsDeleteHeaders", modelProperties: { retryAfter: { serializedName: "retry-after", @@ -5306,17 +6626,11 @@ export const EdgeDevicesDeleteHeaders: coreClient.CompositeMapper = { }, }; -export const EdgeDevicesValidateHeaders: coreClient.CompositeMapper = { +export const StorageContainersDeleteHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EdgeDevicesValidateHeaders", + className: "StorageContainersDeleteHeaders", modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, location: { serializedName: "location", type: { @@ -5327,33 +6641,11 @@ export const EdgeDevicesValidateHeaders: coreClient.CompositeMapper = { }, }; -export const SecuritySettingsCreateOrUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SecuritySettingsCreateOrUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const SecuritySettingsDeleteHeaders: coreClient.CompositeMapper = { +export const StorageContainersUpdateHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecuritySettingsDeleteHeaders", + className: "StorageContainersUpdateHeaders", modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, location: { serializedName: "location", type: { @@ -5424,7 +6716,125 @@ export const UpdatesDeleteHeaders: coreClient.CompositeMapper = { }, }; -export let discriminators = { - "ProxyResource.EdgeDevice": EdgeDevice, - "EdgeDevice.HCI": HciEdgeDevice, +export const VirtualHardDisksDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualHardDisksDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VirtualHardDisksUpdateHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualHardDisksUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VirtualMachineInstancesDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstancesDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineInstancesUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstancesUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineInstancesStartHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineInstancesStartHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VirtualMachineInstancesStopHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VirtualMachineInstancesStopHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VirtualMachineInstancesRestartHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstancesRestartHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const GuestAgentDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GuestAgentDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/models/parameters.ts b/sdk/azurestackhci/arm-azurestackhci/src/models/parameters.ts index 01bf7cf2b011..3a604bc4c174 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/models/parameters.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/models/parameters.ts @@ -18,18 +18,31 @@ import { ClusterPatch as ClusterPatchMapper, UploadCertificateRequest as UploadCertificateRequestMapper, SoftwareAssuranceChangeRequest as SoftwareAssuranceChangeRequestMapper, - LogCollectionRequest as LogCollectionRequestMapper, - RemoteSupportRequest as RemoteSupportRequestMapper, DeploymentSetting as DeploymentSettingMapper, EdgeDevice as EdgeDeviceMapper, ValidateRequest as ValidateRequestMapper, Extension as ExtensionMapper, ExtensionPatch as ExtensionPatchMapper, ExtensionUpgradeParameters as ExtensionUpgradeParametersMapper, + GalleryImages as GalleryImagesMapper, + GalleryImagesUpdateRequest as GalleryImagesUpdateRequestMapper, + LogicalNetworks as LogicalNetworksMapper, + LogicalNetworksUpdateRequest as LogicalNetworksUpdateRequestMapper, + MarketplaceGalleryImages as MarketplaceGalleryImagesMapper, + MarketplaceGalleryImagesUpdateRequest as MarketplaceGalleryImagesUpdateRequestMapper, + NetworkInterfaces as NetworkInterfacesMapper, + NetworkInterfacesUpdateRequest as NetworkInterfacesUpdateRequestMapper, SecuritySetting as SecuritySettingMapper, + StorageContainers as StorageContainersMapper, + StorageContainersUpdateRequest as StorageContainersUpdateRequestMapper, UpdateRun as UpdateRunMapper, UpdateSummaries as UpdateSummariesMapper, Update as UpdateMapper, + VirtualHardDisks as VirtualHardDisksMapper, + VirtualHardDisksUpdateRequest as VirtualHardDisksUpdateRequestMapper, + VirtualMachineInstance as VirtualMachineInstanceMapper, + VirtualMachineInstanceUpdateRequest as VirtualMachineInstanceUpdateRequestMapper, + GuestAgent as GuestAgentMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -59,10 +72,13 @@ export const $host: OperationURLParameter = { export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { + constraints: { + MinLength: 1, + }, serializedName: "subscriptionId", required: true, type: { - name: "Uuid", + name: "String", }, }, }; @@ -96,7 +112,7 @@ export const clusterName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2024-04-01", + defaultValue: "2024-01-01", isConstant: true, serializedName: "api-version", type: { @@ -170,16 +186,6 @@ export const softwareAssuranceChangeRequest: OperationParameter = { mapper: SoftwareAssuranceChangeRequestMapper, }; -export const logCollectionRequest: OperationParameter = { - parameterPath: "logCollectionRequest", - mapper: LogCollectionRequestMapper, -}; - -export const remoteSupportRequest: OperationParameter = { - parameterPath: "remoteSupportRequest", - mapper: RemoteSupportRequestMapper, -}; - export const deploymentSettingsName: OperationURLParameter = { parameterPath: "deploymentSettingsName", mapper: { @@ -263,6 +269,118 @@ export const extensionUpgradeParameters: OperationParameter = { mapper: ExtensionUpgradeParametersMapper, }; +export const galleryImageName: OperationURLParameter = { + parameterPath: "galleryImageName", + mapper: { + constraints: { + Pattern: new RegExp( + "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[a-zA-Z0-9]$", + ), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "galleryImageName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const galleryImages: OperationParameter = { + parameterPath: "galleryImages", + mapper: GalleryImagesMapper, +}; + +export const galleryImages1: OperationParameter = { + parameterPath: "galleryImages", + mapper: GalleryImagesUpdateRequestMapper, +}; + +export const logicalNetworkName: OperationURLParameter = { + parameterPath: "logicalNetworkName", + mapper: { + constraints: { + Pattern: new RegExp( + "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[_a-zA-Z0-9]$", + ), + MaxLength: 64, + MinLength: 2, + }, + serializedName: "logicalNetworkName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const logicalNetworks: OperationParameter = { + parameterPath: "logicalNetworks", + mapper: LogicalNetworksMapper, +}; + +export const logicalNetworks1: OperationParameter = { + parameterPath: "logicalNetworks", + mapper: LogicalNetworksUpdateRequestMapper, +}; + +export const marketplaceGalleryImageName: OperationURLParameter = { + parameterPath: "marketplaceGalleryImageName", + mapper: { + constraints: { + Pattern: new RegExp( + "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[a-zA-Z0-9]$", + ), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "marketplaceGalleryImageName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const marketplaceGalleryImages: OperationParameter = { + parameterPath: "marketplaceGalleryImages", + mapper: MarketplaceGalleryImagesMapper, +}; + +export const marketplaceGalleryImages1: OperationParameter = { + parameterPath: "marketplaceGalleryImages", + mapper: MarketplaceGalleryImagesUpdateRequestMapper, +}; + +export const networkInterfaceName: OperationURLParameter = { + parameterPath: "networkInterfaceName", + mapper: { + constraints: { + Pattern: new RegExp( + "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$", + ), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "networkInterfaceName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const networkInterfaces: OperationParameter = { + parameterPath: "networkInterfaces", + mapper: NetworkInterfacesMapper, +}; + +export const networkInterfaces1: OperationParameter = { + parameterPath: "networkInterfaces", + mapper: NetworkInterfacesUpdateRequestMapper, +}; + export const publisherName: OperationURLParameter = { parameterPath: "publisherName", mapper: { @@ -326,6 +444,34 @@ export const skuName: OperationURLParameter = { }, }; +export const storageContainerName: OperationURLParameter = { + parameterPath: "storageContainerName", + mapper: { + constraints: { + Pattern: new RegExp( + "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,78}[_a-zA-Z0-9]$", + ), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "storageContainerName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const storageContainers: OperationParameter = { + parameterPath: "storageContainers", + mapper: StorageContainersMapper, +}; + +export const storageContainers1: OperationParameter = { + parameterPath: "storageContainers", + mapper: StorageContainersUpdateRequestMapper, +}; + export const updateName: OperationURLParameter = { parameterPath: "updateName", mapper: { @@ -362,3 +508,46 @@ export const updateProperties: OperationParameter = { parameterPath: "updateProperties", mapper: UpdateMapper, }; + +export const virtualHardDiskName: OperationURLParameter = { + parameterPath: "virtualHardDiskName", + mapper: { + constraints: { + Pattern: new RegExp( + "^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$", + ), + MaxLength: 80, + MinLength: 1, + }, + serializedName: "virtualHardDiskName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const virtualHardDisks: OperationParameter = { + parameterPath: "virtualHardDisks", + mapper: VirtualHardDisksMapper, +}; + +export const virtualHardDisks1: OperationParameter = { + parameterPath: "virtualHardDisks", + mapper: VirtualHardDisksUpdateRequestMapper, +}; + +export const virtualMachineInstance: OperationParameter = { + parameterPath: "virtualMachineInstance", + mapper: VirtualMachineInstanceMapper, +}; + +export const virtualMachineInstance1: OperationParameter = { + parameterPath: "virtualMachineInstance", + mapper: VirtualMachineInstanceUpdateRequestMapper, +}; + +export const body: OperationParameter = { + parameterPath: ["options", "body"], + mapper: GuestAgentMapper, +}; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/clusters.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/clusters.ts index c594254d7249..e970d2221d4b 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/operations/clusters.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/clusters.ts @@ -42,12 +42,6 @@ import { SoftwareAssuranceChangeRequest, ClustersExtendSoftwareAssuranceBenefitOptionalParams, ClustersExtendSoftwareAssuranceBenefitResponse, - LogCollectionRequest, - ClustersTriggerLogCollectionOptionalParams, - ClustersTriggerLogCollectionResponse, - RemoteSupportRequest, - ClustersConfigureRemoteSupportOptionalParams, - ClustersConfigureRemoteSupportResponse, ClustersListBySubscriptionNextResponse, ClustersListByResourceGroupNextResponse, } from "../models"; @@ -634,196 +628,6 @@ export class ClustersImpl implements Clusters { return poller.pollUntilDone(); } - /** - * Trigger Log Collection on a cluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the cluster. - * @param logCollectionRequest Trigger Log Collection Request Payload - * @param options The options parameters. - */ - async beginTriggerLogCollection( - resourceGroupName: string, - clusterName: string, - logCollectionRequest: LogCollectionRequest, - options?: ClustersTriggerLogCollectionOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ClustersTriggerLogCollectionResponse - > - > { - 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, clusterName, logCollectionRequest, options }, - spec: triggerLogCollectionOperationSpec, - }); - const poller = await createHttpPoller< - ClustersTriggerLogCollectionResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Trigger Log Collection on a cluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the cluster. - * @param logCollectionRequest Trigger Log Collection Request Payload - * @param options The options parameters. - */ - async beginTriggerLogCollectionAndWait( - resourceGroupName: string, - clusterName: string, - logCollectionRequest: LogCollectionRequest, - options?: ClustersTriggerLogCollectionOptionalParams, - ): Promise { - const poller = await this.beginTriggerLogCollection( - resourceGroupName, - clusterName, - logCollectionRequest, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Configure RemoteSupport on a cluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the cluster. - * @param remoteSupportRequest Configure Remote Support Request Payload - * @param options The options parameters. - */ - async beginConfigureRemoteSupport( - resourceGroupName: string, - clusterName: string, - remoteSupportRequest: RemoteSupportRequest, - options?: ClustersConfigureRemoteSupportOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ClustersConfigureRemoteSupportResponse - > - > { - 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, clusterName, remoteSupportRequest, options }, - spec: configureRemoteSupportOperationSpec, - }); - const poller = await createHttpPoller< - ClustersConfigureRemoteSupportResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Configure RemoteSupport on a cluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the cluster. - * @param remoteSupportRequest Configure Remote Support Request Payload - * @param options The options parameters. - */ - async beginConfigureRemoteSupportAndWait( - resourceGroupName: string, - clusterName: string, - remoteSupportRequest: RemoteSupportRequest, - options?: ClustersConfigureRemoteSupportOptionalParams, - ): Promise { - const poller = await this.beginConfigureRemoteSupport( - resourceGroupName, - clusterName, - remoteSupportRequest, - options, - ); - return poller.pollUntilDone(); - } - /** * ListBySubscriptionNext * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. @@ -1070,70 +874,6 @@ const extendSoftwareAssuranceBenefitOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer, }; -const triggerLogCollectionOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/triggerLogCollection", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.Cluster, - }, - 201: { - bodyMapper: Mappers.Cluster, - }, - 202: { - bodyMapper: Mappers.Cluster, - }, - 204: { - bodyMapper: Mappers.Cluster, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.logCollectionRequest, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const configureRemoteSupportOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/configureRemoteSupport", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.Cluster, - }, - 201: { - bodyMapper: Mappers.Cluster, - }, - 202: { - bodyMapper: Mappers.Cluster, - }, - 204: { - bodyMapper: Mappers.Cluster, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.remoteSupportRequest, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.clusterName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/edgeDevices.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/edgeDevices.ts index c67ed8ff2e5d..a84b8b2dd515 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/operations/edgeDevices.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/edgeDevices.ts @@ -20,7 +20,7 @@ import { } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { - EdgeDeviceUnion, + EdgeDevice, EdgeDevicesListNextOptionalParams, EdgeDevicesListOptionalParams, EdgeDevicesListResponse, @@ -57,7 +57,7 @@ export class EdgeDevicesImpl implements EdgeDevices { public list( resourceUri: string, options?: EdgeDevicesListOptionalParams, - ): PagedAsyncIterableIterator { + ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceUri, options); return { next() { @@ -79,7 +79,7 @@ export class EdgeDevicesImpl implements EdgeDevices { resourceUri: string, options?: EdgeDevicesListOptionalParams, settings?: PageSettings, - ): AsyncIterableIterator { + ): AsyncIterableIterator { let result: EdgeDevicesListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { @@ -101,7 +101,7 @@ export class EdgeDevicesImpl implements EdgeDevices { private async *listPagingAll( resourceUri: string, options?: EdgeDevicesListOptionalParams, - ): AsyncIterableIterator { + ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceUri, options)) { yield* page; } @@ -149,7 +149,7 @@ export class EdgeDevicesImpl implements EdgeDevices { async beginCreateOrUpdate( resourceUri: string, edgeDeviceName: string, - resource: EdgeDeviceUnion, + resource: EdgeDevice, options?: EdgeDevicesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< @@ -222,7 +222,7 @@ export class EdgeDevicesImpl implements EdgeDevices { async beginCreateOrUpdateAndWait( resourceUri: string, edgeDeviceName: string, - resource: EdgeDeviceUnion, + resource: EdgeDevice, options?: EdgeDevicesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/galleryImagesOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/galleryImagesOperations.ts new file mode 100644 index 000000000000..a8197cde3a31 --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/galleryImagesOperations.ts @@ -0,0 +1,724 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { GalleryImagesOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureStackHCIClient } from "../azureStackHCIClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + GalleryImages, + GalleryImagesListNextOptionalParams, + GalleryImagesListOptionalParams, + GalleryImagesListResponse, + GalleryImagesListAllNextOptionalParams, + GalleryImagesListAllOptionalParams, + GalleryImagesListAllResponse, + GalleryImagesGetOptionalParams, + GalleryImagesGetResponse, + GalleryImagesCreateOrUpdateOptionalParams, + GalleryImagesCreateOrUpdateResponse, + GalleryImagesDeleteOptionalParams, + GalleryImagesDeleteResponse, + GalleryImagesUpdateRequest, + GalleryImagesUpdateOptionalParams, + GalleryImagesUpdateResponse, + GalleryImagesListNextResponse, + GalleryImagesListAllNextResponse, +} from "../models"; + +/// +/** Class containing GalleryImagesOperations operations. */ +export class GalleryImagesOperationsImpl implements GalleryImagesOperations { + private readonly client: AzureStackHCIClient; + + /** + * Initialize a new instance of the class GalleryImagesOperations class. + * @param client Reference to the service client + */ + constructor(client: AzureStackHCIClient) { + this.client = client; + } + + /** + * Lists all of the gallery images in the specified resource group. Use the nextLink property in the + * response to get the next page of gallery images. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + options?: GalleryImagesListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(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.listPagingPage(resourceGroupName, options, settings); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + options?: GalleryImagesListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: GalleryImagesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + options?: GalleryImagesListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(resourceGroupName, options)) { + yield* page; + } + } + + /** + * Lists all of the gallery images in the specified subscription. Use the nextLink property in the + * response to get the next page of gallery images. + * @param options The options parameters. + */ + public listAll( + options?: GalleryImagesListAllOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listAllPagingAll(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.listAllPagingPage(options, settings); + }, + }; + } + + private async *listAllPagingPage( + options?: GalleryImagesListAllOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: GalleryImagesListAllResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listAll(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listAllNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listAllPagingAll( + options?: GalleryImagesListAllOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listAllPagingPage(options)) { + yield* page; + } + } + + /** + * Gets a gallery image + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param galleryImageName Name of the gallery image + * @param options The options parameters. + */ + get( + resourceGroupName: string, + galleryImageName: string, + options?: GalleryImagesGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, galleryImageName, options }, + getOperationSpec, + ); + } + + /** + * The operation to create or update a gallery image. Please note some properties can be set only + * during gallery image creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param galleryImageName Name of the gallery image + * @param galleryImages The gallery images resource definition. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + galleryImageName: string, + galleryImages: GalleryImages, + options?: GalleryImagesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryImagesCreateOrUpdateResponse + > + > { + 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, galleryImageName, galleryImages, options }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + GalleryImagesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to create or update a gallery image. Please note some properties can be set only + * during gallery image creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param galleryImageName Name of the gallery image + * @param galleryImages The gallery images resource definition. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + galleryImageName: string, + galleryImages: GalleryImages, + options?: GalleryImagesCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + galleryImageName, + galleryImages, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to delete a gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param galleryImageName Name of the gallery image + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + galleryImageName: string, + options?: GalleryImagesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryImagesDeleteResponse + > + > { + 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, galleryImageName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + GalleryImagesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to delete a gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param galleryImageName Name of the gallery image + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + galleryImageName: string, + options?: GalleryImagesDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + galleryImageName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to update a gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param galleryImageName Name of the gallery image + * @param galleryImages The gallery images resource patch definition. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + galleryImageName: string, + galleryImages: GalleryImagesUpdateRequest, + options?: GalleryImagesUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryImagesUpdateResponse + > + > { + 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, galleryImageName, galleryImages, options }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + GalleryImagesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to update a gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param galleryImageName Name of the gallery image + * @param galleryImages The gallery images resource patch definition. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + galleryImageName: string, + galleryImages: GalleryImagesUpdateRequest, + options?: GalleryImagesUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + galleryImageName, + galleryImages, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Lists all of the gallery images in the specified resource group. Use the nextLink property in the + * response to get the next page of gallery images. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + options?: GalleryImagesListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listOperationSpec, + ); + } + + /** + * Lists all of the gallery images in the specified subscription. Use the nextLink property in the + * response to get the next page of gallery images. + * @param options The options parameters. + */ + private _listAll( + options?: GalleryImagesListAllOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listAllOperationSpec); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + nextLink: string, + options?: GalleryImagesListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listNextOperationSpec, + ); + } + + /** + * ListAllNext + * @param nextLink The nextLink from the previous successful call to the ListAll method. + * @param options The options parameters. + */ + private _listAllNext( + nextLink: string, + options?: GalleryImagesListAllNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listAllNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GalleryImages, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryImageName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GalleryImages, + }, + 201: { + bodyMapper: Mappers.GalleryImages, + }, + 202: { + bodyMapper: Mappers.GalleryImages, + }, + 204: { + bodyMapper: Mappers.GalleryImages, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.galleryImages, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryImageName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.GalleryImagesDeleteHeaders, + }, + 201: { + headersMapper: Mappers.GalleryImagesDeleteHeaders, + }, + 202: { + headersMapper: Mappers.GalleryImagesDeleteHeaders, + }, + 204: { + headersMapper: Mappers.GalleryImagesDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryImageName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages/{galleryImageName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.GalleryImages, + }, + 201: { + bodyMapper: Mappers.GalleryImages, + }, + 202: { + bodyMapper: Mappers.GalleryImages, + }, + 204: { + bodyMapper: Mappers.GalleryImages, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.galleryImages1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.galleryImageName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/galleryImages", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GalleryImagesListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listAllOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/galleryImages", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GalleryImagesListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GalleryImagesListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listAllNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GalleryImagesListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/guestAgentOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/guestAgentOperations.ts new file mode 100644 index 000000000000..a44271b5234b --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/guestAgentOperations.ts @@ -0,0 +1,294 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { GuestAgentOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureStackHCIClient } from "../azureStackHCIClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + GuestAgentCreateOptionalParams, + GuestAgentCreateResponse, + GuestAgentGetOptionalParams, + GuestAgentGetResponse, + GuestAgentDeleteOptionalParams, + GuestAgentDeleteResponse, +} from "../models"; + +/** Class containing GuestAgentOperations operations. */ +export class GuestAgentOperationsImpl implements GuestAgentOperations { + private readonly client: AzureStackHCIClient; + + /** + * Initialize a new instance of the class GuestAgentOperations class. + * @param client Reference to the service client + */ + constructor(client: AzureStackHCIClient) { + this.client = client; + } + + /** + * Create Or Update GuestAgent. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + async beginCreate( + resourceUri: string, + options?: GuestAgentCreateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GuestAgentCreateResponse + > + > { + 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: { resourceUri, options }, + spec: createOperationSpec, + }); + const poller = await createHttpPoller< + GuestAgentCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Create Or Update GuestAgent. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + async beginCreateAndWait( + resourceUri: string, + options?: GuestAgentCreateOptionalParams, + ): Promise { + const poller = await this.beginCreate(resourceUri, options); + return poller.pollUntilDone(); + } + + /** + * Implements GuestAgent GET method. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + get( + resourceUri: string, + options?: GuestAgentGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceUri, options }, + getOperationSpec, + ); + } + + /** + * Implements GuestAgent DELETE method. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + async beginDelete( + resourceUri: string, + options?: GuestAgentDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GuestAgentDeleteResponse + > + > { + 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: { resourceUri, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + GuestAgentDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Implements GuestAgent DELETE method. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceUri: string, + options?: GuestAgentDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete(resourceUri, options); + return poller.pollUntilDone(); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const createOperationSpec: coreClient.OperationSpec = { + path: "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GuestAgent, + }, + 201: { + bodyMapper: Mappers.GuestAgent, + }, + 202: { + bodyMapper: Mappers.GuestAgent, + }, + 204: { + bodyMapper: Mappers.GuestAgent, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.body, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.resourceUri], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GuestAgent, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.resourceUri], + headerParameters: [Parameters.accept], + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.GuestAgentDeleteHeaders, + }, + 201: { + headersMapper: Mappers.GuestAgentDeleteHeaders, + }, + 202: { + headersMapper: Mappers.GuestAgentDeleteHeaders, + }, + 204: { + headersMapper: Mappers.GuestAgentDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.resourceUri], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/guestAgents.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/guestAgents.ts new file mode 100644 index 000000000000..20a541a9580a --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/guestAgents.ts @@ -0,0 +1,167 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { GuestAgents } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureStackHCIClient } from "../azureStackHCIClient"; +import { + GuestAgent, + GuestAgentsListNextOptionalParams, + GuestAgentsListOptionalParams, + GuestAgentsListResponse, + GuestAgentsListNextResponse, +} from "../models"; + +/// +/** Class containing GuestAgents operations. */ +export class GuestAgentsImpl implements GuestAgents { + private readonly client: AzureStackHCIClient; + + /** + * Initialize a new instance of the class GuestAgents class. + * @param client Reference to the service client + */ + constructor(client: AzureStackHCIClient) { + this.client = client; + } + + /** + * Returns the list of GuestAgent of the given vm. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + public list( + resourceUri: string, + options?: GuestAgentsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceUri, 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.listPagingPage(resourceUri, options, settings); + }, + }; + } + + private async *listPagingPage( + resourceUri: string, + options?: GuestAgentsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: GuestAgentsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceUri, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(resourceUri, continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceUri: string, + options?: GuestAgentsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(resourceUri, options)) { + yield* page; + } + } + + /** + * Returns the list of GuestAgent of the given vm. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + private _list( + resourceUri: string, + options?: GuestAgentsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceUri, options }, + listOperationSpec, + ); + } + + /** + * ListNext + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceUri: string, + nextLink: string, + options?: GuestAgentsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceUri, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GuestAgentList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.resourceUri], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GuestAgentList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.resourceUri, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/hybridIdentityMetadataOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/hybridIdentityMetadataOperations.ts new file mode 100644 index 000000000000..be2dd173d89e --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/hybridIdentityMetadataOperations.ts @@ -0,0 +1,203 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { HybridIdentityMetadataOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureStackHCIClient } from "../azureStackHCIClient"; +import { + HybridIdentityMetadata, + HybridIdentityMetadataListNextOptionalParams, + HybridIdentityMetadataListOptionalParams, + HybridIdentityMetadataListResponse, + HybridIdentityMetadataGetOptionalParams, + HybridIdentityMetadataGetResponse, + HybridIdentityMetadataListNextResponse, +} from "../models"; + +/// +/** Class containing HybridIdentityMetadataOperations operations. */ +export class HybridIdentityMetadataOperationsImpl + implements HybridIdentityMetadataOperations +{ + private readonly client: AzureStackHCIClient; + + /** + * Initialize a new instance of the class HybridIdentityMetadataOperations class. + * @param client Reference to the service client + */ + constructor(client: AzureStackHCIClient) { + this.client = client; + } + + /** + * Returns the list of HybridIdentityMetadata of the given vm. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + public list( + resourceUri: string, + options?: HybridIdentityMetadataListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceUri, 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.listPagingPage(resourceUri, options, settings); + }, + }; + } + + private async *listPagingPage( + resourceUri: string, + options?: HybridIdentityMetadataListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: HybridIdentityMetadataListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceUri, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(resourceUri, continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceUri: string, + options?: HybridIdentityMetadataListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(resourceUri, options)) { + yield* page; + } + } + + /** + * Implements HybridIdentityMetadata GET method. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + get( + resourceUri: string, + options?: HybridIdentityMetadataGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceUri, options }, + getOperationSpec, + ); + } + + /** + * Returns the list of HybridIdentityMetadata of the given vm. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + private _list( + resourceUri: string, + options?: HybridIdentityMetadataListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceUri, options }, + listOperationSpec, + ); + } + + /** + * ListNext + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceUri: string, + nextLink: string, + options?: HybridIdentityMetadataListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceUri, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/hybridIdentityMetadata/default", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.HybridIdentityMetadata, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.resourceUri], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/hybridIdentityMetadata", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.HybridIdentityMetadataList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.resourceUri], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.HybridIdentityMetadataList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.resourceUri, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/index.ts index 78ea1734ec44..740b07ae5b03 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/operations/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/index.ts @@ -11,11 +11,21 @@ export * from "./clusters"; export * from "./deploymentSettings"; export * from "./edgeDevices"; export * from "./extensions"; +export * from "./galleryImagesOperations"; +export * from "./logicalNetworksOperations"; +export * from "./marketplaceGalleryImagesOperations"; +export * from "./networkInterfacesOperations"; export * from "./offers"; export * from "./operations"; export * from "./publishers"; export * from "./securitySettings"; export * from "./skus"; +export * from "./storageContainersOperations"; export * from "./updateRuns"; export * from "./updateSummariesOperations"; export * from "./updates"; +export * from "./virtualHardDisksOperations"; +export * from "./virtualMachineInstances"; +export * from "./hybridIdentityMetadataOperations"; +export * from "./guestAgentOperations"; +export * from "./guestAgents"; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/logicalNetworksOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/logicalNetworksOperations.ts new file mode 100644 index 000000000000..9feeace658b0 --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/logicalNetworksOperations.ts @@ -0,0 +1,725 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { LogicalNetworksOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureStackHCIClient } from "../azureStackHCIClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + LogicalNetworks, + LogicalNetworksListNextOptionalParams, + LogicalNetworksListOptionalParams, + LogicalNetworksListResponse, + LogicalNetworksListAllNextOptionalParams, + LogicalNetworksListAllOptionalParams, + LogicalNetworksListAllResponse, + LogicalNetworksGetOptionalParams, + LogicalNetworksGetResponse, + LogicalNetworksCreateOrUpdateOptionalParams, + LogicalNetworksCreateOrUpdateResponse, + LogicalNetworksDeleteOptionalParams, + LogicalNetworksDeleteResponse, + LogicalNetworksUpdateRequest, + LogicalNetworksUpdateOptionalParams, + LogicalNetworksUpdateResponse, + LogicalNetworksListNextResponse, + LogicalNetworksListAllNextResponse, +} from "../models"; + +/// +/** Class containing LogicalNetworksOperations operations. */ +export class LogicalNetworksOperationsImpl + implements LogicalNetworksOperations +{ + private readonly client: AzureStackHCIClient; + + /** + * Initialize a new instance of the class LogicalNetworksOperations class. + * @param client Reference to the service client + */ + constructor(client: AzureStackHCIClient) { + this.client = client; + } + + /** + * Lists all of the logical networks in the specified resource group. Use the nextLink property in the + * response to get the next page of logical networks. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + options?: LogicalNetworksListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(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.listPagingPage(resourceGroupName, options, settings); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + options?: LogicalNetworksListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: LogicalNetworksListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + options?: LogicalNetworksListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(resourceGroupName, options)) { + yield* page; + } + } + + /** + * Lists all of the logical networks in the specified subscription. Use the nextLink property in the + * response to get the next page of logical networks. + * @param options The options parameters. + */ + public listAll( + options?: LogicalNetworksListAllOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listAllPagingAll(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.listAllPagingPage(options, settings); + }, + }; + } + + private async *listAllPagingPage( + options?: LogicalNetworksListAllOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: LogicalNetworksListAllResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listAll(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listAllNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listAllPagingAll( + options?: LogicalNetworksListAllOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listAllPagingPage(options)) { + yield* page; + } + } + + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param logicalNetworkName Name of the logical network + * @param options The options parameters. + */ + get( + resourceGroupName: string, + logicalNetworkName: string, + options?: LogicalNetworksGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, logicalNetworkName, options }, + getOperationSpec, + ); + } + + /** + * The operation to create or update a logical network. Please note some properties can be set only + * during logical network creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param logicalNetworkName Name of the logical network + * @param logicalNetworks The logical network resource definition. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + logicalNetworkName: string, + logicalNetworks: LogicalNetworks, + options?: LogicalNetworksCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + LogicalNetworksCreateOrUpdateResponse + > + > { + 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, logicalNetworkName, logicalNetworks, options }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + LogicalNetworksCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to create or update a logical network. Please note some properties can be set only + * during logical network creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param logicalNetworkName Name of the logical network + * @param logicalNetworks The logical network resource definition. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + logicalNetworkName: string, + logicalNetworks: LogicalNetworks, + options?: LogicalNetworksCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + logicalNetworkName, + logicalNetworks, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to delete a logical network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param logicalNetworkName Name of the logical network + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + logicalNetworkName: string, + options?: LogicalNetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + LogicalNetworksDeleteResponse + > + > { + 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, logicalNetworkName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + LogicalNetworksDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to delete a logical network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param logicalNetworkName Name of the logical network + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + logicalNetworkName: string, + options?: LogicalNetworksDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + logicalNetworkName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to update a logical network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param logicalNetworkName Name of the logical network + * @param logicalNetworks The logical network resource patch definition. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + logicalNetworkName: string, + logicalNetworks: LogicalNetworksUpdateRequest, + options?: LogicalNetworksUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + LogicalNetworksUpdateResponse + > + > { + 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, logicalNetworkName, logicalNetworks, options }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + LogicalNetworksUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to update a logical network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param logicalNetworkName Name of the logical network + * @param logicalNetworks The logical network resource patch definition. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + logicalNetworkName: string, + logicalNetworks: LogicalNetworksUpdateRequest, + options?: LogicalNetworksUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + logicalNetworkName, + logicalNetworks, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Lists all of the logical networks in the specified resource group. Use the nextLink property in the + * response to get the next page of logical networks. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + options?: LogicalNetworksListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listOperationSpec, + ); + } + + /** + * Lists all of the logical networks in the specified subscription. Use the nextLink property in the + * response to get the next page of logical networks. + * @param options The options parameters. + */ + private _listAll( + options?: LogicalNetworksListAllOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listAllOperationSpec); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + nextLink: string, + options?: LogicalNetworksListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listNextOperationSpec, + ); + } + + /** + * ListAllNext + * @param nextLink The nextLink from the previous successful call to the ListAll method. + * @param options The options parameters. + */ + private _listAllNext( + nextLink: string, + options?: LogicalNetworksListAllNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listAllNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LogicalNetworks, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.logicalNetworkName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.LogicalNetworks, + }, + 201: { + bodyMapper: Mappers.LogicalNetworks, + }, + 202: { + bodyMapper: Mappers.LogicalNetworks, + }, + 204: { + bodyMapper: Mappers.LogicalNetworks, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.logicalNetworks, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.logicalNetworkName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.LogicalNetworksDeleteHeaders, + }, + 201: { + headersMapper: Mappers.LogicalNetworksDeleteHeaders, + }, + 202: { + headersMapper: Mappers.LogicalNetworksDeleteHeaders, + }, + 204: { + headersMapper: Mappers.LogicalNetworksDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.logicalNetworkName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks/{logicalNetworkName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.LogicalNetworks, + }, + 201: { + bodyMapper: Mappers.LogicalNetworks, + }, + 202: { + bodyMapper: Mappers.LogicalNetworks, + }, + 204: { + bodyMapper: Mappers.LogicalNetworks, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.logicalNetworks1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.logicalNetworkName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/logicalNetworks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LogicalNetworksListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listAllOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/logicalNetworks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LogicalNetworksListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LogicalNetworksListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listAllNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.LogicalNetworksListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/marketplaceGalleryImagesOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/marketplaceGalleryImagesOperations.ts new file mode 100644 index 000000000000..79545f2f552a --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/marketplaceGalleryImagesOperations.ts @@ -0,0 +1,736 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { MarketplaceGalleryImagesOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureStackHCIClient } from "../azureStackHCIClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + MarketplaceGalleryImages, + MarketplaceGalleryImagesListNextOptionalParams, + MarketplaceGalleryImagesListOptionalParams, + MarketplaceGalleryImagesListResponse, + MarketplaceGalleryImagesListAllNextOptionalParams, + MarketplaceGalleryImagesListAllOptionalParams, + MarketplaceGalleryImagesListAllResponse, + MarketplaceGalleryImagesGetOptionalParams, + MarketplaceGalleryImagesGetResponse, + MarketplaceGalleryImagesCreateOrUpdateOptionalParams, + MarketplaceGalleryImagesCreateOrUpdateResponse, + MarketplaceGalleryImagesDeleteOptionalParams, + MarketplaceGalleryImagesDeleteResponse, + MarketplaceGalleryImagesUpdateRequest, + MarketplaceGalleryImagesUpdateOptionalParams, + MarketplaceGalleryImagesUpdateResponse, + MarketplaceGalleryImagesListNextResponse, + MarketplaceGalleryImagesListAllNextResponse, +} from "../models"; + +/// +/** Class containing MarketplaceGalleryImagesOperations operations. */ +export class MarketplaceGalleryImagesOperationsImpl + implements MarketplaceGalleryImagesOperations +{ + private readonly client: AzureStackHCIClient; + + /** + * Initialize a new instance of the class MarketplaceGalleryImagesOperations class. + * @param client Reference to the service client + */ + constructor(client: AzureStackHCIClient) { + this.client = client; + } + + /** + * Lists all of the marketplace gallery images in the specified resource group. Use the nextLink + * property in the response to get the next page of marketplace gallery images. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + options?: MarketplaceGalleryImagesListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(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.listPagingPage(resourceGroupName, options, settings); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + options?: MarketplaceGalleryImagesListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: MarketplaceGalleryImagesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + options?: MarketplaceGalleryImagesListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(resourceGroupName, options)) { + yield* page; + } + } + + /** + * Lists all of the marketplace gallery images in the specified subscription. Use the nextLink property + * in the response to get the next page of marketplace gallery images. + * @param options The options parameters. + */ + public listAll( + options?: MarketplaceGalleryImagesListAllOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listAllPagingAll(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.listAllPagingPage(options, settings); + }, + }; + } + + private async *listAllPagingPage( + options?: MarketplaceGalleryImagesListAllOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: MarketplaceGalleryImagesListAllResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listAll(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listAllNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listAllPagingAll( + options?: MarketplaceGalleryImagesListAllOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listAllPagingPage(options)) { + yield* page; + } + } + + /** + * Gets a marketplace gallery image + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param marketplaceGalleryImageName Name of the marketplace gallery image + * @param options The options parameters. + */ + get( + resourceGroupName: string, + marketplaceGalleryImageName: string, + options?: MarketplaceGalleryImagesGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, marketplaceGalleryImageName, options }, + getOperationSpec, + ); + } + + /** + * The operation to create or update a marketplace gallery image. Please note some properties can be + * set only during marketplace gallery image creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param marketplaceGalleryImageName Name of the marketplace gallery image + * @param marketplaceGalleryImages The marketplace gallery image resource definition. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + marketplaceGalleryImageName: string, + marketplaceGalleryImages: MarketplaceGalleryImages, + options?: MarketplaceGalleryImagesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + MarketplaceGalleryImagesCreateOrUpdateResponse + > + > { + 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, + marketplaceGalleryImageName, + marketplaceGalleryImages, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + MarketplaceGalleryImagesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to create or update a marketplace gallery image. Please note some properties can be + * set only during marketplace gallery image creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param marketplaceGalleryImageName Name of the marketplace gallery image + * @param marketplaceGalleryImages The marketplace gallery image resource definition. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + marketplaceGalleryImageName: string, + marketplaceGalleryImages: MarketplaceGalleryImages, + options?: MarketplaceGalleryImagesCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + marketplaceGalleryImageName, + marketplaceGalleryImages, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to delete a marketplace gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param marketplaceGalleryImageName Name of the marketplace gallery image + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + marketplaceGalleryImageName: string, + options?: MarketplaceGalleryImagesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + MarketplaceGalleryImagesDeleteResponse + > + > { + 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, marketplaceGalleryImageName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + MarketplaceGalleryImagesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to delete a marketplace gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param marketplaceGalleryImageName Name of the marketplace gallery image + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + marketplaceGalleryImageName: string, + options?: MarketplaceGalleryImagesDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + marketplaceGalleryImageName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to update a marketplace gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param marketplaceGalleryImageName Name of the marketplace gallery image + * @param marketplaceGalleryImages The marketplace gallery image resource patch definition. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + marketplaceGalleryImageName: string, + marketplaceGalleryImages: MarketplaceGalleryImagesUpdateRequest, + options?: MarketplaceGalleryImagesUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + MarketplaceGalleryImagesUpdateResponse + > + > { + 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, + marketplaceGalleryImageName, + marketplaceGalleryImages, + options, + }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + MarketplaceGalleryImagesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to update a marketplace gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param marketplaceGalleryImageName Name of the marketplace gallery image + * @param marketplaceGalleryImages The marketplace gallery image resource patch definition. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + marketplaceGalleryImageName: string, + marketplaceGalleryImages: MarketplaceGalleryImagesUpdateRequest, + options?: MarketplaceGalleryImagesUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + marketplaceGalleryImageName, + marketplaceGalleryImages, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Lists all of the marketplace gallery images in the specified resource group. Use the nextLink + * property in the response to get the next page of marketplace gallery images. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + options?: MarketplaceGalleryImagesListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listOperationSpec, + ); + } + + /** + * Lists all of the marketplace gallery images in the specified subscription. Use the nextLink property + * in the response to get the next page of marketplace gallery images. + * @param options The options parameters. + */ + private _listAll( + options?: MarketplaceGalleryImagesListAllOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listAllOperationSpec); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + nextLink: string, + options?: MarketplaceGalleryImagesListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listNextOperationSpec, + ); + } + + /** + * ListAllNext + * @param nextLink The nextLink from the previous successful call to the ListAll method. + * @param options The options parameters. + */ + private _listAllNext( + nextLink: string, + options?: MarketplaceGalleryImagesListAllNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listAllNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.MarketplaceGalleryImages, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.marketplaceGalleryImageName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.MarketplaceGalleryImages, + }, + 201: { + bodyMapper: Mappers.MarketplaceGalleryImages, + }, + 202: { + bodyMapper: Mappers.MarketplaceGalleryImages, + }, + 204: { + bodyMapper: Mappers.MarketplaceGalleryImages, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.marketplaceGalleryImages, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.marketplaceGalleryImageName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.MarketplaceGalleryImagesDeleteHeaders, + }, + 201: { + headersMapper: Mappers.MarketplaceGalleryImagesDeleteHeaders, + }, + 202: { + headersMapper: Mappers.MarketplaceGalleryImagesDeleteHeaders, + }, + 204: { + headersMapper: Mappers.MarketplaceGalleryImagesDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.marketplaceGalleryImageName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages/{marketplaceGalleryImageName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.MarketplaceGalleryImages, + }, + 201: { + bodyMapper: Mappers.MarketplaceGalleryImages, + }, + 202: { + bodyMapper: Mappers.MarketplaceGalleryImages, + }, + 204: { + bodyMapper: Mappers.MarketplaceGalleryImages, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.marketplaceGalleryImages1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.marketplaceGalleryImageName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.MarketplaceGalleryImagesListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listAllOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/marketplaceGalleryImages", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.MarketplaceGalleryImagesListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.MarketplaceGalleryImagesListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listAllNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.MarketplaceGalleryImagesListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/networkInterfacesOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/networkInterfacesOperations.ts new file mode 100644 index 000000000000..ba885db16759 --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/networkInterfacesOperations.ts @@ -0,0 +1,736 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { NetworkInterfacesOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureStackHCIClient } from "../azureStackHCIClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + NetworkInterfaces, + NetworkInterfacesListNextOptionalParams, + NetworkInterfacesListOptionalParams, + NetworkInterfacesListResponse, + NetworkInterfacesListAllNextOptionalParams, + NetworkInterfacesListAllOptionalParams, + NetworkInterfacesListAllResponse, + NetworkInterfacesGetOptionalParams, + NetworkInterfacesGetResponse, + NetworkInterfacesCreateOrUpdateOptionalParams, + NetworkInterfacesCreateOrUpdateResponse, + NetworkInterfacesDeleteOptionalParams, + NetworkInterfacesDeleteResponse, + NetworkInterfacesUpdateRequest, + NetworkInterfacesUpdateOptionalParams, + NetworkInterfacesUpdateResponse, + NetworkInterfacesListNextResponse, + NetworkInterfacesListAllNextResponse, +} from "../models"; + +/// +/** Class containing NetworkInterfacesOperations operations. */ +export class NetworkInterfacesOperationsImpl + implements NetworkInterfacesOperations +{ + private readonly client: AzureStackHCIClient; + + /** + * Initialize a new instance of the class NetworkInterfacesOperations class. + * @param client Reference to the service client + */ + constructor(client: AzureStackHCIClient) { + this.client = client; + } + + /** + * Lists all of the network interfaces in the specified resource group. Use the nextLink property in + * the response to get the next page of network interfaces. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + options?: NetworkInterfacesListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(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.listPagingPage(resourceGroupName, options, settings); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + options?: NetworkInterfacesListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: NetworkInterfacesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + options?: NetworkInterfacesListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(resourceGroupName, options)) { + yield* page; + } + } + + /** + * Lists all of the network interfaces in the specified subscription. Use the nextLink property in the + * response to get the next page of network interfaces. + * @param options The options parameters. + */ + public listAll( + options?: NetworkInterfacesListAllOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listAllPagingAll(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.listAllPagingPage(options, settings); + }, + }; + } + + private async *listAllPagingPage( + options?: NetworkInterfacesListAllOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: NetworkInterfacesListAllResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listAll(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listAllNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listAllPagingAll( + options?: NetworkInterfacesListAllOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listAllPagingPage(options)) { + yield* page; + } + } + + /** + * Gets a network interface + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName Name of the network interface + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkInterfaceName: string, + options?: NetworkInterfacesGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, networkInterfaceName, options }, + getOperationSpec, + ); + } + + /** + * The operation to create or update a network interface. Please note some properties can be set only + * during network interface creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName Name of the network interface + * @param networkInterfaces The network interface resource definition. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + networkInterfaceName: string, + networkInterfaces: NetworkInterfaces, + options?: NetworkInterfacesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NetworkInterfacesCreateOrUpdateResponse + > + > { + 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, + networkInterfaceName, + networkInterfaces, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + NetworkInterfacesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to create or update a network interface. Please note some properties can be set only + * during network interface creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName Name of the network interface + * @param networkInterfaces The network interface resource definition. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + networkInterfaceName: string, + networkInterfaces: NetworkInterfaces, + options?: NetworkInterfacesCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + networkInterfaceName, + networkInterfaces, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to delete a network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName Name of the network interface + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + networkInterfaceName: string, + options?: NetworkInterfacesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NetworkInterfacesDeleteResponse + > + > { + 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, networkInterfaceName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + NetworkInterfacesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to delete a network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName Name of the network interface + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + networkInterfaceName: string, + options?: NetworkInterfacesDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + networkInterfaceName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to update a network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName Name of the network interface + * @param networkInterfaces The network interface resource patch definition. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + networkInterfaceName: string, + networkInterfaces: NetworkInterfacesUpdateRequest, + options?: NetworkInterfacesUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NetworkInterfacesUpdateResponse + > + > { + 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, + networkInterfaceName, + networkInterfaces, + options, + }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + NetworkInterfacesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to update a network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName Name of the network interface + * @param networkInterfaces The network interface resource patch definition. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + networkInterfaceName: string, + networkInterfaces: NetworkInterfacesUpdateRequest, + options?: NetworkInterfacesUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + networkInterfaceName, + networkInterfaces, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Lists all of the network interfaces in the specified resource group. Use the nextLink property in + * the response to get the next page of network interfaces. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + options?: NetworkInterfacesListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listOperationSpec, + ); + } + + /** + * Lists all of the network interfaces in the specified subscription. Use the nextLink property in the + * response to get the next page of network interfaces. + * @param options The options parameters. + */ + private _listAll( + options?: NetworkInterfacesListAllOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listAllOperationSpec); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + nextLink: string, + options?: NetworkInterfacesListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listNextOperationSpec, + ); + } + + /** + * ListAllNext + * @param nextLink The nextLink from the previous successful call to the ListAll method. + * @param options The options parameters. + */ + private _listAllNext( + nextLink: string, + options?: NetworkInterfacesListAllNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listAllNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaces, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaces, + }, + 201: { + bodyMapper: Mappers.NetworkInterfaces, + }, + 202: { + bodyMapper: Mappers.NetworkInterfaces, + }, + 204: { + bodyMapper: Mappers.NetworkInterfaces, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.networkInterfaces, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.NetworkInterfacesDeleteHeaders, + }, + 201: { + headersMapper: Mappers.NetworkInterfacesDeleteHeaders, + }, + 202: { + headersMapper: Mappers.NetworkInterfacesDeleteHeaders, + }, + 204: { + headersMapper: Mappers.NetworkInterfacesDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces/{networkInterfaceName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfaces, + }, + 201: { + bodyMapper: Mappers.NetworkInterfaces, + }, + 202: { + bodyMapper: Mappers.NetworkInterfaces, + }, + 204: { + bodyMapper: Mappers.NetworkInterfaces, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.networkInterfaces1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.networkInterfaceName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/networkInterfaces", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfacesListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listAllOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/networkInterfaces", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfacesListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfacesListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listAllNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkInterfacesListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/storageContainersOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/storageContainersOperations.ts new file mode 100644 index 000000000000..24cef8f84c6f --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/storageContainersOperations.ts @@ -0,0 +1,736 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { StorageContainersOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureStackHCIClient } from "../azureStackHCIClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + StorageContainers, + StorageContainersListNextOptionalParams, + StorageContainersListOptionalParams, + StorageContainersListResponse, + StorageContainersListAllNextOptionalParams, + StorageContainersListAllOptionalParams, + StorageContainersListAllResponse, + StorageContainersGetOptionalParams, + StorageContainersGetResponse, + StorageContainersCreateOrUpdateOptionalParams, + StorageContainersCreateOrUpdateResponse, + StorageContainersDeleteOptionalParams, + StorageContainersDeleteResponse, + StorageContainersUpdateRequest, + StorageContainersUpdateOptionalParams, + StorageContainersUpdateResponse, + StorageContainersListNextResponse, + StorageContainersListAllNextResponse, +} from "../models"; + +/// +/** Class containing StorageContainersOperations operations. */ +export class StorageContainersOperationsImpl + implements StorageContainersOperations +{ + private readonly client: AzureStackHCIClient; + + /** + * Initialize a new instance of the class StorageContainersOperations class. + * @param client Reference to the service client + */ + constructor(client: AzureStackHCIClient) { + this.client = client; + } + + /** + * Lists all of the storage containers in the specified resource group. Use the nextLink property in + * the response to get the next page of storage containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + options?: StorageContainersListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(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.listPagingPage(resourceGroupName, options, settings); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + options?: StorageContainersListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: StorageContainersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + options?: StorageContainersListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(resourceGroupName, options)) { + yield* page; + } + } + + /** + * Lists all of the storage containers in the specified subscription. Use the nextLink property in the + * response to get the next page of storage containers. + * @param options The options parameters. + */ + public listAll( + options?: StorageContainersListAllOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listAllPagingAll(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.listAllPagingPage(options, settings); + }, + }; + } + + private async *listAllPagingPage( + options?: StorageContainersListAllOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: StorageContainersListAllResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listAll(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listAllNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listAllPagingAll( + options?: StorageContainersListAllOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listAllPagingPage(options)) { + yield* page; + } + } + + /** + * Gets a storage container + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageContainerName Name of the storage container + * @param options The options parameters. + */ + get( + resourceGroupName: string, + storageContainerName: string, + options?: StorageContainersGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, storageContainerName, options }, + getOperationSpec, + ); + } + + /** + * The operation to create or update a storage container. Please note some properties can be set only + * during storage container creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageContainerName Name of the storage container + * @param storageContainers The storage container resource definition. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + storageContainerName: string, + storageContainers: StorageContainers, + options?: StorageContainersCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + StorageContainersCreateOrUpdateResponse + > + > { + 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, + storageContainerName, + storageContainers, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + StorageContainersCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to create or update a storage container. Please note some properties can be set only + * during storage container creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageContainerName Name of the storage container + * @param storageContainers The storage container resource definition. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + storageContainerName: string, + storageContainers: StorageContainers, + options?: StorageContainersCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + storageContainerName, + storageContainers, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to delete a storage container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageContainerName Name of the storage container + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + storageContainerName: string, + options?: StorageContainersDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + StorageContainersDeleteResponse + > + > { + 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, storageContainerName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + StorageContainersDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to delete a storage container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageContainerName Name of the storage container + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + storageContainerName: string, + options?: StorageContainersDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + storageContainerName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to update a storage container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageContainerName Name of the storage container + * @param storageContainers The storage container resource patch definition. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + storageContainerName: string, + storageContainers: StorageContainersUpdateRequest, + options?: StorageContainersUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + StorageContainersUpdateResponse + > + > { + 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, + storageContainerName, + storageContainers, + options, + }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + StorageContainersUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to update a storage container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageContainerName Name of the storage container + * @param storageContainers The storage container resource patch definition. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + storageContainerName: string, + storageContainers: StorageContainersUpdateRequest, + options?: StorageContainersUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + storageContainerName, + storageContainers, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Lists all of the storage containers in the specified resource group. Use the nextLink property in + * the response to get the next page of storage containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + options?: StorageContainersListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listOperationSpec, + ); + } + + /** + * Lists all of the storage containers in the specified subscription. Use the nextLink property in the + * response to get the next page of storage containers. + * @param options The options parameters. + */ + private _listAll( + options?: StorageContainersListAllOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listAllOperationSpec); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + nextLink: string, + options?: StorageContainersListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listNextOperationSpec, + ); + } + + /** + * ListAllNext + * @param nextLink The nextLink from the previous successful call to the ListAll method. + * @param options The options parameters. + */ + private _listAllNext( + nextLink: string, + options?: StorageContainersListAllNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listAllNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StorageContainers, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.storageContainerName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.StorageContainers, + }, + 201: { + bodyMapper: Mappers.StorageContainers, + }, + 202: { + bodyMapper: Mappers.StorageContainers, + }, + 204: { + bodyMapper: Mappers.StorageContainers, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.storageContainers, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.storageContainerName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.StorageContainersDeleteHeaders, + }, + 201: { + headersMapper: Mappers.StorageContainersDeleteHeaders, + }, + 202: { + headersMapper: Mappers.StorageContainersDeleteHeaders, + }, + 204: { + headersMapper: Mappers.StorageContainersDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.storageContainerName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.StorageContainers, + }, + 201: { + bodyMapper: Mappers.StorageContainers, + }, + 202: { + bodyMapper: Mappers.StorageContainers, + }, + 204: { + bodyMapper: Mappers.StorageContainers, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.storageContainers1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.storageContainerName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StorageContainersListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listAllOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/storageContainers", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StorageContainersListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StorageContainersListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listAllNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StorageContainersListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/virtualHardDisksOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/virtualHardDisksOperations.ts new file mode 100644 index 000000000000..3591c476ec04 --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/virtualHardDisksOperations.ts @@ -0,0 +1,736 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { VirtualHardDisksOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureStackHCIClient } from "../azureStackHCIClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + VirtualHardDisks, + VirtualHardDisksListNextOptionalParams, + VirtualHardDisksListOptionalParams, + VirtualHardDisksListResponse, + VirtualHardDisksListAllNextOptionalParams, + VirtualHardDisksListAllOptionalParams, + VirtualHardDisksListAllResponse, + VirtualHardDisksGetOptionalParams, + VirtualHardDisksGetResponse, + VirtualHardDisksCreateOrUpdateOptionalParams, + VirtualHardDisksCreateOrUpdateResponse, + VirtualHardDisksDeleteOptionalParams, + VirtualHardDisksDeleteResponse, + VirtualHardDisksUpdateRequest, + VirtualHardDisksUpdateOptionalParams, + VirtualHardDisksUpdateResponse, + VirtualHardDisksListNextResponse, + VirtualHardDisksListAllNextResponse, +} from "../models"; + +/// +/** Class containing VirtualHardDisksOperations operations. */ +export class VirtualHardDisksOperationsImpl + implements VirtualHardDisksOperations +{ + private readonly client: AzureStackHCIClient; + + /** + * Initialize a new instance of the class VirtualHardDisksOperations class. + * @param client Reference to the service client + */ + constructor(client: AzureStackHCIClient) { + this.client = client; + } + + /** + * Lists all of the virtual hard disks in the specified resource group. Use the nextLink property in + * the response to get the next page of virtual hard disks. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + options?: VirtualHardDisksListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(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.listPagingPage(resourceGroupName, options, settings); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + options?: VirtualHardDisksListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: VirtualHardDisksListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + options?: VirtualHardDisksListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(resourceGroupName, options)) { + yield* page; + } + } + + /** + * Lists all of the virtual hard disks in the specified subscription. Use the nextLink property in the + * response to get the next page of virtual hard disks. + * @param options The options parameters. + */ + public listAll( + options?: VirtualHardDisksListAllOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listAllPagingAll(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.listAllPagingPage(options, settings); + }, + }; + } + + private async *listAllPagingPage( + options?: VirtualHardDisksListAllOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: VirtualHardDisksListAllResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listAll(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listAllNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listAllPagingAll( + options?: VirtualHardDisksListAllOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listAllPagingPage(options)) { + yield* page; + } + } + + /** + * Gets a virtual hard disk + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHardDiskName Name of the virtual hard disk + * @param options The options parameters. + */ + get( + resourceGroupName: string, + virtualHardDiskName: string, + options?: VirtualHardDisksGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, virtualHardDiskName, options }, + getOperationSpec, + ); + } + + /** + * The operation to create or update a virtual hard disk. Please note some properties can be set only + * during virtual hard disk creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHardDiskName Name of the virtual hard disk + * @param virtualHardDisks The virtual hard disk resource definition. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + virtualHardDiskName: string, + virtualHardDisks: VirtualHardDisks, + options?: VirtualHardDisksCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualHardDisksCreateOrUpdateResponse + > + > { + 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, + virtualHardDiskName, + virtualHardDisks, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + VirtualHardDisksCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to create or update a virtual hard disk. Please note some properties can be set only + * during virtual hard disk creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHardDiskName Name of the virtual hard disk + * @param virtualHardDisks The virtual hard disk resource definition. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + virtualHardDiskName: string, + virtualHardDisks: VirtualHardDisks, + options?: VirtualHardDisksCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + virtualHardDiskName, + virtualHardDisks, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to delete a virtual hard disk. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHardDiskName Name of the virtual hard disk + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + virtualHardDiskName: string, + options?: VirtualHardDisksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualHardDisksDeleteResponse + > + > { + 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, virtualHardDiskName, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + VirtualHardDisksDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to delete a virtual hard disk. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHardDiskName Name of the virtual hard disk + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + virtualHardDiskName: string, + options?: VirtualHardDisksDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + virtualHardDiskName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to update a virtual hard disk. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHardDiskName Name of the virtual hard disk + * @param virtualHardDisks The virtual hard disk resource patch definition. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + virtualHardDiskName: string, + virtualHardDisks: VirtualHardDisksUpdateRequest, + options?: VirtualHardDisksUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualHardDisksUpdateResponse + > + > { + 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, + virtualHardDiskName, + virtualHardDisks, + options, + }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + VirtualHardDisksUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to update a virtual hard disk. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHardDiskName Name of the virtual hard disk + * @param virtualHardDisks The virtual hard disk resource patch definition. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + virtualHardDiskName: string, + virtualHardDisks: VirtualHardDisksUpdateRequest, + options?: VirtualHardDisksUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + virtualHardDiskName, + virtualHardDisks, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Lists all of the virtual hard disks in the specified resource group. Use the nextLink property in + * the response to get the next page of virtual hard disks. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + options?: VirtualHardDisksListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, options }, + listOperationSpec, + ); + } + + /** + * Lists all of the virtual hard disks in the specified subscription. Use the nextLink property in the + * response to get the next page of virtual hard disks. + * @param options The options parameters. + */ + private _listAll( + options?: VirtualHardDisksListAllOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, listAllOperationSpec); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + nextLink: string, + options?: VirtualHardDisksListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listNextOperationSpec, + ); + } + + /** + * ListAllNext + * @param nextLink The nextLink from the previous successful call to the ListAll method. + * @param options The options parameters. + */ + private _listAllNext( + nextLink: string, + options?: VirtualHardDisksListAllNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listAllNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VirtualHardDisks, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.virtualHardDiskName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.VirtualHardDisks, + }, + 201: { + bodyMapper: Mappers.VirtualHardDisks, + }, + 202: { + bodyMapper: Mappers.VirtualHardDisks, + }, + 204: { + bodyMapper: Mappers.VirtualHardDisks, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.virtualHardDisks, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.virtualHardDiskName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.VirtualHardDisksDeleteHeaders, + }, + 201: { + headersMapper: Mappers.VirtualHardDisksDeleteHeaders, + }, + 202: { + headersMapper: Mappers.VirtualHardDisksDeleteHeaders, + }, + 204: { + headersMapper: Mappers.VirtualHardDisksDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.virtualHardDiskName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.VirtualHardDisks, + }, + 201: { + bodyMapper: Mappers.VirtualHardDisks, + }, + 202: { + bodyMapper: Mappers.VirtualHardDisks, + }, + 204: { + bodyMapper: Mappers.VirtualHardDisks, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.virtualHardDisks1, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.virtualHardDiskName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VirtualHardDisksListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listAllOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualHardDisks", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VirtualHardDisksListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VirtualHardDisksListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listAllNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VirtualHardDisksListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operations/virtualMachineInstances.ts b/sdk/azurestackhci/arm-azurestackhci/src/operations/virtualMachineInstances.ts new file mode 100644 index 000000000000..d38410f81a0c --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operations/virtualMachineInstances.ts @@ -0,0 +1,896 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { VirtualMachineInstances } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { AzureStackHCIClient } from "../azureStackHCIClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + VirtualMachineInstance, + VirtualMachineInstancesListNextOptionalParams, + VirtualMachineInstancesListOptionalParams, + VirtualMachineInstancesListResponse, + VirtualMachineInstancesGetOptionalParams, + VirtualMachineInstancesGetResponse, + VirtualMachineInstancesCreateOrUpdateOptionalParams, + VirtualMachineInstancesCreateOrUpdateResponse, + VirtualMachineInstancesDeleteOptionalParams, + VirtualMachineInstancesDeleteResponse, + VirtualMachineInstanceUpdateRequest, + VirtualMachineInstancesUpdateOptionalParams, + VirtualMachineInstancesUpdateResponse, + VirtualMachineInstancesStartOptionalParams, + VirtualMachineInstancesStartResponse, + VirtualMachineInstancesStopOptionalParams, + VirtualMachineInstancesStopResponse, + VirtualMachineInstancesRestartOptionalParams, + VirtualMachineInstancesRestartResponse, + VirtualMachineInstancesListNextResponse, +} from "../models"; + +/// +/** Class containing VirtualMachineInstances operations. */ +export class VirtualMachineInstancesImpl implements VirtualMachineInstances { + private readonly client: AzureStackHCIClient; + + /** + * Initialize a new instance of the class VirtualMachineInstances class. + * @param client Reference to the service client + */ + constructor(client: AzureStackHCIClient) { + this.client = client; + } + + /** + * Lists all of the virtual machine instances within the specified parent resource. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + public list( + resourceUri: string, + options?: VirtualMachineInstancesListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(resourceUri, 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.listPagingPage(resourceUri, options, settings); + }, + }; + } + + private async *listPagingPage( + resourceUri: string, + options?: VirtualMachineInstancesListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: VirtualMachineInstancesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(resourceUri, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(resourceUri, continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceUri: string, + options?: VirtualMachineInstancesListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(resourceUri, options)) { + yield* page; + } + } + + /** + * Gets a virtual machine instance + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + get( + resourceUri: string, + options?: VirtualMachineInstancesGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceUri, options }, + getOperationSpec, + ); + } + + /** + * The operation to create or update a virtual machine instance. Please note some properties can be set + * only during virtual machine instance creation. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param virtualMachineInstance The virtual machine instance resource definition. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceUri: string, + virtualMachineInstance: VirtualMachineInstance, + options?: VirtualMachineInstancesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineInstancesCreateOrUpdateResponse + > + > { + 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: { resourceUri, virtualMachineInstance, options }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + VirtualMachineInstancesCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to create or update a virtual machine instance. Please note some properties can be set + * only during virtual machine instance creation. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param virtualMachineInstance The virtual machine instance resource definition. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceUri: string, + virtualMachineInstance: VirtualMachineInstance, + options?: VirtualMachineInstancesCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceUri, + virtualMachineInstance, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to delete a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + async beginDelete( + resourceUri: string, + options?: VirtualMachineInstancesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineInstancesDeleteResponse + > + > { + 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: { resourceUri, options }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller< + VirtualMachineInstancesDeleteResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to delete a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceUri: string, + options?: VirtualMachineInstancesDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete(resourceUri, options); + return poller.pollUntilDone(); + } + + /** + * The operation to update a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param virtualMachineInstance The virtual machine instance resource patch definition. + * @param options The options parameters. + */ + async beginUpdate( + resourceUri: string, + virtualMachineInstance: VirtualMachineInstanceUpdateRequest, + options?: VirtualMachineInstancesUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineInstancesUpdateResponse + > + > { + 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: { resourceUri, virtualMachineInstance, options }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + VirtualMachineInstancesUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to update a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param virtualMachineInstance The virtual machine instance resource patch definition. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceUri: string, + virtualMachineInstance: VirtualMachineInstanceUpdateRequest, + options?: VirtualMachineInstancesUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceUri, + virtualMachineInstance, + options, + ); + return poller.pollUntilDone(); + } + + /** + * The operation to start a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + async beginStart( + resourceUri: string, + options?: VirtualMachineInstancesStartOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineInstancesStartResponse + > + > { + 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: { resourceUri, options }, + spec: startOperationSpec, + }); + const poller = await createHttpPoller< + VirtualMachineInstancesStartResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to start a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + async beginStartAndWait( + resourceUri: string, + options?: VirtualMachineInstancesStartOptionalParams, + ): Promise { + const poller = await this.beginStart(resourceUri, options); + return poller.pollUntilDone(); + } + + /** + * The operation to stop a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + async beginStop( + resourceUri: string, + options?: VirtualMachineInstancesStopOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineInstancesStopResponse + > + > { + 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: { resourceUri, options }, + spec: stopOperationSpec, + }); + const poller = await createHttpPoller< + VirtualMachineInstancesStopResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to stop a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + async beginStopAndWait( + resourceUri: string, + options?: VirtualMachineInstancesStopOptionalParams, + ): Promise { + const poller = await this.beginStop(resourceUri, options); + return poller.pollUntilDone(); + } + + /** + * The operation to restart a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + async beginRestart( + resourceUri: string, + options?: VirtualMachineInstancesRestartOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineInstancesRestartResponse + > + > { + 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: { resourceUri, options }, + spec: restartOperationSpec, + }); + const poller = await createHttpPoller< + VirtualMachineInstancesRestartResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * The operation to restart a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + async beginRestartAndWait( + resourceUri: string, + options?: VirtualMachineInstancesRestartOptionalParams, + ): Promise { + const poller = await this.beginRestart(resourceUri, options); + return poller.pollUntilDone(); + } + + /** + * Lists all of the virtual machine instances within the specified parent resource. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + private _list( + resourceUri: string, + options?: VirtualMachineInstancesListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceUri, options }, + listOperationSpec, + ); + } + + /** + * ListNext + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceUri: string, + nextLink: string, + options?: VirtualMachineInstancesListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceUri, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.resourceUri], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + 201: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + 202: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + 204: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.virtualMachineInstance, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.resourceUri], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + httpMethod: "DELETE", + responses: { + 200: { + headersMapper: Mappers.VirtualMachineInstancesDeleteHeaders, + }, + 201: { + headersMapper: Mappers.VirtualMachineInstancesDeleteHeaders, + }, + 202: { + headersMapper: Mappers.VirtualMachineInstancesDeleteHeaders, + }, + 204: { + headersMapper: Mappers.VirtualMachineInstancesDeleteHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.resourceUri], + headerParameters: [Parameters.accept], + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + 201: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + 202: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + 204: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.virtualMachineInstance1, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.resourceUri], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const startOperationSpec: coreClient.OperationSpec = { + path: "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/start", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + 201: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + 202: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + 204: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.resourceUri], + headerParameters: [Parameters.accept], + serializer, +}; +const stopOperationSpec: coreClient.OperationSpec = { + path: "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/stop", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + 201: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + 202: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + 204: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.resourceUri], + headerParameters: [Parameters.accept], + serializer, +}; +const restartOperationSpec: coreClient.OperationSpec = { + path: "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/restart", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + 201: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + 202: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + 204: { + bodyMapper: Mappers.VirtualMachineInstance, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.resourceUri], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/{resourceUri}/providers/Microsoft.AzureStackHCI/virtualMachineInstances", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineInstanceListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.resourceUri], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.VirtualMachineInstanceListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.resourceUri, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/clusters.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/clusters.ts index f63139be77db..fbf4036e99a0 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/clusters.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/clusters.ts @@ -27,12 +27,6 @@ import { SoftwareAssuranceChangeRequest, ClustersExtendSoftwareAssuranceBenefitOptionalParams, ClustersExtendSoftwareAssuranceBenefitResponse, - LogCollectionRequest, - ClustersTriggerLogCollectionOptionalParams, - ClustersTriggerLogCollectionResponse, - RemoteSupportRequest, - ClustersConfigureRemoteSupportOptionalParams, - ClustersConfigureRemoteSupportResponse, } from "../models"; /// @@ -197,66 +191,4 @@ export interface Clusters { softwareAssuranceChangeRequest: SoftwareAssuranceChangeRequest, options?: ClustersExtendSoftwareAssuranceBenefitOptionalParams, ): Promise; - /** - * Trigger Log Collection on a cluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the cluster. - * @param logCollectionRequest Trigger Log Collection Request Payload - * @param options The options parameters. - */ - beginTriggerLogCollection( - resourceGroupName: string, - clusterName: string, - logCollectionRequest: LogCollectionRequest, - options?: ClustersTriggerLogCollectionOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ClustersTriggerLogCollectionResponse - > - >; - /** - * Trigger Log Collection on a cluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the cluster. - * @param logCollectionRequest Trigger Log Collection Request Payload - * @param options The options parameters. - */ - beginTriggerLogCollectionAndWait( - resourceGroupName: string, - clusterName: string, - logCollectionRequest: LogCollectionRequest, - options?: ClustersTriggerLogCollectionOptionalParams, - ): Promise; - /** - * Configure RemoteSupport on a cluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the cluster. - * @param remoteSupportRequest Configure Remote Support Request Payload - * @param options The options parameters. - */ - beginConfigureRemoteSupport( - resourceGroupName: string, - clusterName: string, - remoteSupportRequest: RemoteSupportRequest, - options?: ClustersConfigureRemoteSupportOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - ClustersConfigureRemoteSupportResponse - > - >; - /** - * Configure RemoteSupport on a cluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the cluster. - * @param remoteSupportRequest Configure Remote Support Request Payload - * @param options The options parameters. - */ - beginConfigureRemoteSupportAndWait( - resourceGroupName: string, - clusterName: string, - remoteSupportRequest: RemoteSupportRequest, - options?: ClustersConfigureRemoteSupportOptionalParams, - ): Promise; } diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/edgeDevices.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/edgeDevices.ts index dbd09d825610..051e8dd79bee 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/edgeDevices.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/edgeDevices.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { - EdgeDeviceUnion, + EdgeDevice, EdgeDevicesListOptionalParams, EdgeDevicesGetOptionalParams, EdgeDevicesGetResponse, @@ -33,7 +33,7 @@ export interface EdgeDevices { list( resourceUri: string, options?: EdgeDevicesListOptionalParams, - ): PagedAsyncIterableIterator; + ): PagedAsyncIterableIterator; /** * Get a EdgeDevice * @param resourceUri The fully qualified Azure Resource manager identifier of the resource. @@ -55,7 +55,7 @@ export interface EdgeDevices { beginCreateOrUpdate( resourceUri: string, edgeDeviceName: string, - resource: EdgeDeviceUnion, + resource: EdgeDevice, options?: EdgeDevicesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< @@ -73,7 +73,7 @@ export interface EdgeDevices { beginCreateOrUpdateAndWait( resourceUri: string, edgeDeviceName: string, - resource: EdgeDeviceUnion, + resource: EdgeDevice, options?: EdgeDevicesCreateOrUpdateOptionalParams, ): Promise; /** diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/galleryImagesOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/galleryImagesOperations.ts new file mode 100644 index 000000000000..a4cec7ff04cd --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/galleryImagesOperations.ts @@ -0,0 +1,149 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { + GalleryImages, + GalleryImagesListOptionalParams, + GalleryImagesListAllOptionalParams, + GalleryImagesGetOptionalParams, + GalleryImagesGetResponse, + GalleryImagesCreateOrUpdateOptionalParams, + GalleryImagesCreateOrUpdateResponse, + GalleryImagesDeleteOptionalParams, + GalleryImagesDeleteResponse, + GalleryImagesUpdateRequest, + GalleryImagesUpdateOptionalParams, + GalleryImagesUpdateResponse, +} from "../models"; + +/// +/** Interface representing a GalleryImagesOperations. */ +export interface GalleryImagesOperations { + /** + * Lists all of the gallery images in the specified resource group. Use the nextLink property in the + * response to get the next page of gallery images. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + options?: GalleryImagesListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Lists all of the gallery images in the specified subscription. Use the nextLink property in the + * response to get the next page of gallery images. + * @param options The options parameters. + */ + listAll( + options?: GalleryImagesListAllOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets a gallery image + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param galleryImageName Name of the gallery image + * @param options The options parameters. + */ + get( + resourceGroupName: string, + galleryImageName: string, + options?: GalleryImagesGetOptionalParams, + ): Promise; + /** + * The operation to create or update a gallery image. Please note some properties can be set only + * during gallery image creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param galleryImageName Name of the gallery image + * @param galleryImages The gallery images resource definition. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + galleryImageName: string, + galleryImages: GalleryImages, + options?: GalleryImagesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryImagesCreateOrUpdateResponse + > + >; + /** + * The operation to create or update a gallery image. Please note some properties can be set only + * during gallery image creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param galleryImageName Name of the gallery image + * @param galleryImages The gallery images resource definition. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + galleryImageName: string, + galleryImages: GalleryImages, + options?: GalleryImagesCreateOrUpdateOptionalParams, + ): Promise; + /** + * The operation to delete a gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param galleryImageName Name of the gallery image + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + galleryImageName: string, + options?: GalleryImagesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryImagesDeleteResponse + > + >; + /** + * The operation to delete a gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param galleryImageName Name of the gallery image + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + galleryImageName: string, + options?: GalleryImagesDeleteOptionalParams, + ): Promise; + /** + * The operation to update a gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param galleryImageName Name of the gallery image + * @param galleryImages The gallery images resource patch definition. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + galleryImageName: string, + galleryImages: GalleryImagesUpdateRequest, + options?: GalleryImagesUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GalleryImagesUpdateResponse + > + >; + /** + * The operation to update a gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param galleryImageName Name of the gallery image + * @param galleryImages The gallery images resource patch definition. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + galleryImageName: string, + galleryImages: GalleryImagesUpdateRequest, + options?: GalleryImagesUpdateOptionalParams, + ): Promise; +} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/guestAgentOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/guestAgentOperations.ts new file mode 100644 index 000000000000..f46b8ebc6809 --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/guestAgentOperations.ts @@ -0,0 +1,81 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + GuestAgentCreateOptionalParams, + GuestAgentCreateResponse, + GuestAgentGetOptionalParams, + GuestAgentGetResponse, + GuestAgentDeleteOptionalParams, + GuestAgentDeleteResponse, +} from "../models"; + +/** Interface representing a GuestAgentOperations. */ +export interface GuestAgentOperations { + /** + * Create Or Update GuestAgent. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + beginCreate( + resourceUri: string, + options?: GuestAgentCreateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GuestAgentCreateResponse + > + >; + /** + * Create Or Update GuestAgent. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + beginCreateAndWait( + resourceUri: string, + options?: GuestAgentCreateOptionalParams, + ): Promise; + /** + * Implements GuestAgent GET method. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + get( + resourceUri: string, + options?: GuestAgentGetOptionalParams, + ): Promise; + /** + * Implements GuestAgent DELETE method. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + beginDelete( + resourceUri: string, + options?: GuestAgentDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + GuestAgentDeleteResponse + > + >; + /** + * Implements GuestAgent DELETE method. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceUri: string, + options?: GuestAgentDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/guestAgents.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/guestAgents.ts new file mode 100644 index 000000000000..65868f1d193f --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/guestAgents.ts @@ -0,0 +1,25 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { GuestAgent, GuestAgentsListOptionalParams } from "../models"; + +/// +/** Interface representing a GuestAgents. */ +export interface GuestAgents { + /** + * Returns the list of GuestAgent of the given vm. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + list( + resourceUri: string, + options?: GuestAgentsListOptionalParams, + ): PagedAsyncIterableIterator; +} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/hybridIdentityMetadataOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/hybridIdentityMetadataOperations.ts new file mode 100644 index 000000000000..28ccd72b3f86 --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/hybridIdentityMetadataOperations.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { + HybridIdentityMetadata, + HybridIdentityMetadataListOptionalParams, + HybridIdentityMetadataGetOptionalParams, + HybridIdentityMetadataGetResponse, +} from "../models"; + +/// +/** Interface representing a HybridIdentityMetadataOperations. */ +export interface HybridIdentityMetadataOperations { + /** + * Returns the list of HybridIdentityMetadata of the given vm. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + list( + resourceUri: string, + options?: HybridIdentityMetadataListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Implements HybridIdentityMetadata GET method. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + get( + resourceUri: string, + options?: HybridIdentityMetadataGetOptionalParams, + ): Promise; +} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/index.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/index.ts index 78ea1734ec44..740b07ae5b03 100644 --- a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/index.ts +++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/index.ts @@ -11,11 +11,21 @@ export * from "./clusters"; export * from "./deploymentSettings"; export * from "./edgeDevices"; export * from "./extensions"; +export * from "./galleryImagesOperations"; +export * from "./logicalNetworksOperations"; +export * from "./marketplaceGalleryImagesOperations"; +export * from "./networkInterfacesOperations"; export * from "./offers"; export * from "./operations"; export * from "./publishers"; export * from "./securitySettings"; export * from "./skus"; +export * from "./storageContainersOperations"; export * from "./updateRuns"; export * from "./updateSummariesOperations"; export * from "./updates"; +export * from "./virtualHardDisksOperations"; +export * from "./virtualMachineInstances"; +export * from "./hybridIdentityMetadataOperations"; +export * from "./guestAgentOperations"; +export * from "./guestAgents"; diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/logicalNetworksOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/logicalNetworksOperations.ts new file mode 100644 index 000000000000..21c5aeeedfdd --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/logicalNetworksOperations.ts @@ -0,0 +1,148 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { + LogicalNetworks, + LogicalNetworksListOptionalParams, + LogicalNetworksListAllOptionalParams, + LogicalNetworksGetOptionalParams, + LogicalNetworksGetResponse, + LogicalNetworksCreateOrUpdateOptionalParams, + LogicalNetworksCreateOrUpdateResponse, + LogicalNetworksDeleteOptionalParams, + LogicalNetworksDeleteResponse, + LogicalNetworksUpdateRequest, + LogicalNetworksUpdateOptionalParams, + LogicalNetworksUpdateResponse, +} from "../models"; + +/// +/** Interface representing a LogicalNetworksOperations. */ +export interface LogicalNetworksOperations { + /** + * Lists all of the logical networks in the specified resource group. Use the nextLink property in the + * response to get the next page of logical networks. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + options?: LogicalNetworksListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Lists all of the logical networks in the specified subscription. Use the nextLink property in the + * response to get the next page of logical networks. + * @param options The options parameters. + */ + listAll( + options?: LogicalNetworksListAllOptionalParams, + ): PagedAsyncIterableIterator; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param logicalNetworkName Name of the logical network + * @param options The options parameters. + */ + get( + resourceGroupName: string, + logicalNetworkName: string, + options?: LogicalNetworksGetOptionalParams, + ): Promise; + /** + * The operation to create or update a logical network. Please note some properties can be set only + * during logical network creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param logicalNetworkName Name of the logical network + * @param logicalNetworks The logical network resource definition. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + logicalNetworkName: string, + logicalNetworks: LogicalNetworks, + options?: LogicalNetworksCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + LogicalNetworksCreateOrUpdateResponse + > + >; + /** + * The operation to create or update a logical network. Please note some properties can be set only + * during logical network creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param logicalNetworkName Name of the logical network + * @param logicalNetworks The logical network resource definition. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + logicalNetworkName: string, + logicalNetworks: LogicalNetworks, + options?: LogicalNetworksCreateOrUpdateOptionalParams, + ): Promise; + /** + * The operation to delete a logical network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param logicalNetworkName Name of the logical network + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + logicalNetworkName: string, + options?: LogicalNetworksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + LogicalNetworksDeleteResponse + > + >; + /** + * The operation to delete a logical network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param logicalNetworkName Name of the logical network + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + logicalNetworkName: string, + options?: LogicalNetworksDeleteOptionalParams, + ): Promise; + /** + * The operation to update a logical network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param logicalNetworkName Name of the logical network + * @param logicalNetworks The logical network resource patch definition. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + logicalNetworkName: string, + logicalNetworks: LogicalNetworksUpdateRequest, + options?: LogicalNetworksUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + LogicalNetworksUpdateResponse + > + >; + /** + * The operation to update a logical network. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param logicalNetworkName Name of the logical network + * @param logicalNetworks The logical network resource patch definition. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + logicalNetworkName: string, + logicalNetworks: LogicalNetworksUpdateRequest, + options?: LogicalNetworksUpdateOptionalParams, + ): Promise; +} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/marketplaceGalleryImagesOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/marketplaceGalleryImagesOperations.ts new file mode 100644 index 000000000000..d3e6fd0823dc --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/marketplaceGalleryImagesOperations.ts @@ -0,0 +1,149 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { + MarketplaceGalleryImages, + MarketplaceGalleryImagesListOptionalParams, + MarketplaceGalleryImagesListAllOptionalParams, + MarketplaceGalleryImagesGetOptionalParams, + MarketplaceGalleryImagesGetResponse, + MarketplaceGalleryImagesCreateOrUpdateOptionalParams, + MarketplaceGalleryImagesCreateOrUpdateResponse, + MarketplaceGalleryImagesDeleteOptionalParams, + MarketplaceGalleryImagesDeleteResponse, + MarketplaceGalleryImagesUpdateRequest, + MarketplaceGalleryImagesUpdateOptionalParams, + MarketplaceGalleryImagesUpdateResponse, +} from "../models"; + +/// +/** Interface representing a MarketplaceGalleryImagesOperations. */ +export interface MarketplaceGalleryImagesOperations { + /** + * Lists all of the marketplace gallery images in the specified resource group. Use the nextLink + * property in the response to get the next page of marketplace gallery images. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + options?: MarketplaceGalleryImagesListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Lists all of the marketplace gallery images in the specified subscription. Use the nextLink property + * in the response to get the next page of marketplace gallery images. + * @param options The options parameters. + */ + listAll( + options?: MarketplaceGalleryImagesListAllOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets a marketplace gallery image + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param marketplaceGalleryImageName Name of the marketplace gallery image + * @param options The options parameters. + */ + get( + resourceGroupName: string, + marketplaceGalleryImageName: string, + options?: MarketplaceGalleryImagesGetOptionalParams, + ): Promise; + /** + * The operation to create or update a marketplace gallery image. Please note some properties can be + * set only during marketplace gallery image creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param marketplaceGalleryImageName Name of the marketplace gallery image + * @param marketplaceGalleryImages The marketplace gallery image resource definition. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + marketplaceGalleryImageName: string, + marketplaceGalleryImages: MarketplaceGalleryImages, + options?: MarketplaceGalleryImagesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + MarketplaceGalleryImagesCreateOrUpdateResponse + > + >; + /** + * The operation to create or update a marketplace gallery image. Please note some properties can be + * set only during marketplace gallery image creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param marketplaceGalleryImageName Name of the marketplace gallery image + * @param marketplaceGalleryImages The marketplace gallery image resource definition. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + marketplaceGalleryImageName: string, + marketplaceGalleryImages: MarketplaceGalleryImages, + options?: MarketplaceGalleryImagesCreateOrUpdateOptionalParams, + ): Promise; + /** + * The operation to delete a marketplace gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param marketplaceGalleryImageName Name of the marketplace gallery image + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + marketplaceGalleryImageName: string, + options?: MarketplaceGalleryImagesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + MarketplaceGalleryImagesDeleteResponse + > + >; + /** + * The operation to delete a marketplace gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param marketplaceGalleryImageName Name of the marketplace gallery image + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + marketplaceGalleryImageName: string, + options?: MarketplaceGalleryImagesDeleteOptionalParams, + ): Promise; + /** + * The operation to update a marketplace gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param marketplaceGalleryImageName Name of the marketplace gallery image + * @param marketplaceGalleryImages The marketplace gallery image resource patch definition. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + marketplaceGalleryImageName: string, + marketplaceGalleryImages: MarketplaceGalleryImagesUpdateRequest, + options?: MarketplaceGalleryImagesUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + MarketplaceGalleryImagesUpdateResponse + > + >; + /** + * The operation to update a marketplace gallery image. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param marketplaceGalleryImageName Name of the marketplace gallery image + * @param marketplaceGalleryImages The marketplace gallery image resource patch definition. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + marketplaceGalleryImageName: string, + marketplaceGalleryImages: MarketplaceGalleryImagesUpdateRequest, + options?: MarketplaceGalleryImagesUpdateOptionalParams, + ): Promise; +} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/networkInterfacesOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/networkInterfacesOperations.ts new file mode 100644 index 000000000000..defc644d0bde --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/networkInterfacesOperations.ts @@ -0,0 +1,149 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { + NetworkInterfaces, + NetworkInterfacesListOptionalParams, + NetworkInterfacesListAllOptionalParams, + NetworkInterfacesGetOptionalParams, + NetworkInterfacesGetResponse, + NetworkInterfacesCreateOrUpdateOptionalParams, + NetworkInterfacesCreateOrUpdateResponse, + NetworkInterfacesDeleteOptionalParams, + NetworkInterfacesDeleteResponse, + NetworkInterfacesUpdateRequest, + NetworkInterfacesUpdateOptionalParams, + NetworkInterfacesUpdateResponse, +} from "../models"; + +/// +/** Interface representing a NetworkInterfacesOperations. */ +export interface NetworkInterfacesOperations { + /** + * Lists all of the network interfaces in the specified resource group. Use the nextLink property in + * the response to get the next page of network interfaces. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + options?: NetworkInterfacesListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Lists all of the network interfaces in the specified subscription. Use the nextLink property in the + * response to get the next page of network interfaces. + * @param options The options parameters. + */ + listAll( + options?: NetworkInterfacesListAllOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets a network interface + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName Name of the network interface + * @param options The options parameters. + */ + get( + resourceGroupName: string, + networkInterfaceName: string, + options?: NetworkInterfacesGetOptionalParams, + ): Promise; + /** + * The operation to create or update a network interface. Please note some properties can be set only + * during network interface creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName Name of the network interface + * @param networkInterfaces The network interface resource definition. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + networkInterfaceName: string, + networkInterfaces: NetworkInterfaces, + options?: NetworkInterfacesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NetworkInterfacesCreateOrUpdateResponse + > + >; + /** + * The operation to create or update a network interface. Please note some properties can be set only + * during network interface creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName Name of the network interface + * @param networkInterfaces The network interface resource definition. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + networkInterfaceName: string, + networkInterfaces: NetworkInterfaces, + options?: NetworkInterfacesCreateOrUpdateOptionalParams, + ): Promise; + /** + * The operation to delete a network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName Name of the network interface + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + networkInterfaceName: string, + options?: NetworkInterfacesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NetworkInterfacesDeleteResponse + > + >; + /** + * The operation to delete a network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName Name of the network interface + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + networkInterfaceName: string, + options?: NetworkInterfacesDeleteOptionalParams, + ): Promise; + /** + * The operation to update a network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName Name of the network interface + * @param networkInterfaces The network interface resource patch definition. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + networkInterfaceName: string, + networkInterfaces: NetworkInterfacesUpdateRequest, + options?: NetworkInterfacesUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + NetworkInterfacesUpdateResponse + > + >; + /** + * The operation to update a network interface. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param networkInterfaceName Name of the network interface + * @param networkInterfaces The network interface resource patch definition. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + networkInterfaceName: string, + networkInterfaces: NetworkInterfacesUpdateRequest, + options?: NetworkInterfacesUpdateOptionalParams, + ): Promise; +} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/storageContainersOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/storageContainersOperations.ts new file mode 100644 index 000000000000..7dfb4065ab52 --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/storageContainersOperations.ts @@ -0,0 +1,149 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { + StorageContainers, + StorageContainersListOptionalParams, + StorageContainersListAllOptionalParams, + StorageContainersGetOptionalParams, + StorageContainersGetResponse, + StorageContainersCreateOrUpdateOptionalParams, + StorageContainersCreateOrUpdateResponse, + StorageContainersDeleteOptionalParams, + StorageContainersDeleteResponse, + StorageContainersUpdateRequest, + StorageContainersUpdateOptionalParams, + StorageContainersUpdateResponse, +} from "../models"; + +/// +/** Interface representing a StorageContainersOperations. */ +export interface StorageContainersOperations { + /** + * Lists all of the storage containers in the specified resource group. Use the nextLink property in + * the response to get the next page of storage containers. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + options?: StorageContainersListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Lists all of the storage containers in the specified subscription. Use the nextLink property in the + * response to get the next page of storage containers. + * @param options The options parameters. + */ + listAll( + options?: StorageContainersListAllOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets a storage container + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageContainerName Name of the storage container + * @param options The options parameters. + */ + get( + resourceGroupName: string, + storageContainerName: string, + options?: StorageContainersGetOptionalParams, + ): Promise; + /** + * The operation to create or update a storage container. Please note some properties can be set only + * during storage container creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageContainerName Name of the storage container + * @param storageContainers The storage container resource definition. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + storageContainerName: string, + storageContainers: StorageContainers, + options?: StorageContainersCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + StorageContainersCreateOrUpdateResponse + > + >; + /** + * The operation to create or update a storage container. Please note some properties can be set only + * during storage container creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageContainerName Name of the storage container + * @param storageContainers The storage container resource definition. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + storageContainerName: string, + storageContainers: StorageContainers, + options?: StorageContainersCreateOrUpdateOptionalParams, + ): Promise; + /** + * The operation to delete a storage container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageContainerName Name of the storage container + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + storageContainerName: string, + options?: StorageContainersDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + StorageContainersDeleteResponse + > + >; + /** + * The operation to delete a storage container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageContainerName Name of the storage container + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + storageContainerName: string, + options?: StorageContainersDeleteOptionalParams, + ): Promise; + /** + * The operation to update a storage container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageContainerName Name of the storage container + * @param storageContainers The storage container resource patch definition. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + storageContainerName: string, + storageContainers: StorageContainersUpdateRequest, + options?: StorageContainersUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + StorageContainersUpdateResponse + > + >; + /** + * The operation to update a storage container. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param storageContainerName Name of the storage container + * @param storageContainers The storage container resource patch definition. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + storageContainerName: string, + storageContainers: StorageContainersUpdateRequest, + options?: StorageContainersUpdateOptionalParams, + ): Promise; +} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/virtualHardDisksOperations.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/virtualHardDisksOperations.ts new file mode 100644 index 000000000000..3f8aead7cda6 --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/virtualHardDisksOperations.ts @@ -0,0 +1,149 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { + VirtualHardDisks, + VirtualHardDisksListOptionalParams, + VirtualHardDisksListAllOptionalParams, + VirtualHardDisksGetOptionalParams, + VirtualHardDisksGetResponse, + VirtualHardDisksCreateOrUpdateOptionalParams, + VirtualHardDisksCreateOrUpdateResponse, + VirtualHardDisksDeleteOptionalParams, + VirtualHardDisksDeleteResponse, + VirtualHardDisksUpdateRequest, + VirtualHardDisksUpdateOptionalParams, + VirtualHardDisksUpdateResponse, +} from "../models"; + +/// +/** Interface representing a VirtualHardDisksOperations. */ +export interface VirtualHardDisksOperations { + /** + * Lists all of the virtual hard disks in the specified resource group. Use the nextLink property in + * the response to get the next page of virtual hard disks. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + options?: VirtualHardDisksListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Lists all of the virtual hard disks in the specified subscription. Use the nextLink property in the + * response to get the next page of virtual hard disks. + * @param options The options parameters. + */ + listAll( + options?: VirtualHardDisksListAllOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets a virtual hard disk + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHardDiskName Name of the virtual hard disk + * @param options The options parameters. + */ + get( + resourceGroupName: string, + virtualHardDiskName: string, + options?: VirtualHardDisksGetOptionalParams, + ): Promise; + /** + * The operation to create or update a virtual hard disk. Please note some properties can be set only + * during virtual hard disk creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHardDiskName Name of the virtual hard disk + * @param virtualHardDisks The virtual hard disk resource definition. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + virtualHardDiskName: string, + virtualHardDisks: VirtualHardDisks, + options?: VirtualHardDisksCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualHardDisksCreateOrUpdateResponse + > + >; + /** + * The operation to create or update a virtual hard disk. Please note some properties can be set only + * during virtual hard disk creation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHardDiskName Name of the virtual hard disk + * @param virtualHardDisks The virtual hard disk resource definition. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + virtualHardDiskName: string, + virtualHardDisks: VirtualHardDisks, + options?: VirtualHardDisksCreateOrUpdateOptionalParams, + ): Promise; + /** + * The operation to delete a virtual hard disk. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHardDiskName Name of the virtual hard disk + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + virtualHardDiskName: string, + options?: VirtualHardDisksDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualHardDisksDeleteResponse + > + >; + /** + * The operation to delete a virtual hard disk. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHardDiskName Name of the virtual hard disk + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + virtualHardDiskName: string, + options?: VirtualHardDisksDeleteOptionalParams, + ): Promise; + /** + * The operation to update a virtual hard disk. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHardDiskName Name of the virtual hard disk + * @param virtualHardDisks The virtual hard disk resource patch definition. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + virtualHardDiskName: string, + virtualHardDisks: VirtualHardDisksUpdateRequest, + options?: VirtualHardDisksUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualHardDisksUpdateResponse + > + >; + /** + * The operation to update a virtual hard disk. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param virtualHardDiskName Name of the virtual hard disk + * @param virtualHardDisks The virtual hard disk resource patch definition. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + virtualHardDiskName: string, + virtualHardDisks: VirtualHardDisksUpdateRequest, + options?: VirtualHardDisksUpdateOptionalParams, + ): Promise; +} diff --git a/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/virtualMachineInstances.ts b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/virtualMachineInstances.ts new file mode 100644 index 000000000000..8520a5f25c43 --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/src/operationsInterfaces/virtualMachineInstances.ts @@ -0,0 +1,214 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the 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 { + VirtualMachineInstance, + VirtualMachineInstancesListOptionalParams, + VirtualMachineInstancesGetOptionalParams, + VirtualMachineInstancesGetResponse, + VirtualMachineInstancesCreateOrUpdateOptionalParams, + VirtualMachineInstancesCreateOrUpdateResponse, + VirtualMachineInstancesDeleteOptionalParams, + VirtualMachineInstancesDeleteResponse, + VirtualMachineInstanceUpdateRequest, + VirtualMachineInstancesUpdateOptionalParams, + VirtualMachineInstancesUpdateResponse, + VirtualMachineInstancesStartOptionalParams, + VirtualMachineInstancesStartResponse, + VirtualMachineInstancesStopOptionalParams, + VirtualMachineInstancesStopResponse, + VirtualMachineInstancesRestartOptionalParams, + VirtualMachineInstancesRestartResponse, +} from "../models"; + +/// +/** Interface representing a VirtualMachineInstances. */ +export interface VirtualMachineInstances { + /** + * Lists all of the virtual machine instances within the specified parent resource. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + list( + resourceUri: string, + options?: VirtualMachineInstancesListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets a virtual machine instance + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + get( + resourceUri: string, + options?: VirtualMachineInstancesGetOptionalParams, + ): Promise; + /** + * The operation to create or update a virtual machine instance. Please note some properties can be set + * only during virtual machine instance creation. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param virtualMachineInstance The virtual machine instance resource definition. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceUri: string, + virtualMachineInstance: VirtualMachineInstance, + options?: VirtualMachineInstancesCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineInstancesCreateOrUpdateResponse + > + >; + /** + * The operation to create or update a virtual machine instance. Please note some properties can be set + * only during virtual machine instance creation. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param virtualMachineInstance The virtual machine instance resource definition. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceUri: string, + virtualMachineInstance: VirtualMachineInstance, + options?: VirtualMachineInstancesCreateOrUpdateOptionalParams, + ): Promise; + /** + * The operation to delete a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + beginDelete( + resourceUri: string, + options?: VirtualMachineInstancesDeleteOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineInstancesDeleteResponse + > + >; + /** + * The operation to delete a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceUri: string, + options?: VirtualMachineInstancesDeleteOptionalParams, + ): Promise; + /** + * The operation to update a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param virtualMachineInstance The virtual machine instance resource patch definition. + * @param options The options parameters. + */ + beginUpdate( + resourceUri: string, + virtualMachineInstance: VirtualMachineInstanceUpdateRequest, + options?: VirtualMachineInstancesUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineInstancesUpdateResponse + > + >; + /** + * The operation to update a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param virtualMachineInstance The virtual machine instance resource patch definition. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceUri: string, + virtualMachineInstance: VirtualMachineInstanceUpdateRequest, + options?: VirtualMachineInstancesUpdateOptionalParams, + ): Promise; + /** + * The operation to start a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + beginStart( + resourceUri: string, + options?: VirtualMachineInstancesStartOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineInstancesStartResponse + > + >; + /** + * The operation to start a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + beginStartAndWait( + resourceUri: string, + options?: VirtualMachineInstancesStartOptionalParams, + ): Promise; + /** + * The operation to stop a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + beginStop( + resourceUri: string, + options?: VirtualMachineInstancesStopOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineInstancesStopResponse + > + >; + /** + * The operation to stop a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + beginStopAndWait( + resourceUri: string, + options?: VirtualMachineInstancesStopOptionalParams, + ): Promise; + /** + * The operation to restart a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + beginRestart( + resourceUri: string, + options?: VirtualMachineInstancesRestartOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + VirtualMachineInstancesRestartResponse + > + >; + /** + * The operation to restart a virtual machine instance. + * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute + * machine resource to be extended. + * @param options The options parameters. + */ + beginRestartAndWait( + resourceUri: string, + options?: VirtualMachineInstancesRestartOptionalParams, + ): Promise; +} diff --git a/sdk/azurestackhci/arm-azurestackhci/test/sampleTest.ts b/sdk/azurestackhci/arm-azurestackhci/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/azurestackhci/arm-azurestackhci/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/azurestackhci/arm-azurestackhci/tsconfig.json b/sdk/azurestackhci/arm-azurestackhci/tsconfig.json index ebe661af00c2..b35d05ad6e9d 100644 --- a/sdk/azurestackhci/arm-azurestackhci/tsconfig.json +++ b/sdk/azurestackhci/arm-azurestackhci/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-azurestackhci": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ - "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "src/**/*.ts", + "test/**/*.ts" ], "exclude": [ "node_modules"