diff --git a/sdk/databox/Azure.ResourceManager.DataBox/CHANGELOG.md b/sdk/databox/Azure.ResourceManager.DataBox/CHANGELOG.md index 6a7a7c1b43a8..e61fb979112c 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/CHANGELOG.md +++ b/sdk/databox/Azure.ResourceManager.DataBox/CHANGELOG.md @@ -1,16 +1,21 @@ # Release History -## 1.0.2 (2023-05-09) +## 1.0.2 (2023-05-29) ### Features Added +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). - Added support for service version 2022-12-01. - Added changes to support reverse shipping address updates, hardware encryption and customer resolution flows ### Other Changes + - Added `ReverseShippingDetails` property tp `DataBoxBasicJobDetails` - Added `DataBoxDiskGranularCopyLogDetails` property to `DataBoxDiskCopyProgress` - Added `SerialNumberCustomerResolutionMap` property to `MitigateJobContent` which replaces `CustomerResolutionCode` +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.0.1 (2023-02-16) ### Other Changes diff --git a/sdk/databox/Azure.ResourceManager.DataBox/api/Azure.ResourceManager.DataBox.netstandard2.0.cs b/sdk/databox/Azure.ResourceManager.DataBox/api/Azure.ResourceManager.DataBox.netstandard2.0.cs index c9b4968065df..0f11be9765ed 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/api/Azure.ResourceManager.DataBox.netstandard2.0.cs +++ b/sdk/databox/Azure.ResourceManager.DataBox/api/Azure.ResourceManager.DataBox.netstandard2.0.cs @@ -115,6 +115,64 @@ internal ApplianceNetworkConfiguration() { } public string MacAddress { get { throw null; } } public string Name { get { throw null; } } } + public static partial class ArmDataBoxModelFactory + { + public static Azure.ResourceManager.DataBox.Models.AddressValidationResult AddressValidationResult(Azure.ResponseError error = null, Azure.ResourceManager.DataBox.Models.AddressValidationStatus? validationStatus = default(Azure.ResourceManager.DataBox.Models.AddressValidationStatus?), System.Collections.Generic.IEnumerable alternateAddresses = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.ApplianceNetworkConfiguration ApplianceNetworkConfiguration(string name = null, string macAddress = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.CreateOrderLimitForSubscriptionValidationResult CreateOrderLimitForSubscriptionValidationResult(Azure.ResponseError error = null, Azure.ResourceManager.DataBox.Models.DataBoxValidationStatus? status = default(Azure.ResourceManager.DataBox.Models.DataBoxValidationStatus?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.CustomerDiskJobSecrets CustomerDiskJobSecrets(Azure.ResourceManager.DataBox.Models.DataCenterAccessSecurityCode dataCenterAccessSecurityCode = null, Azure.ResponseError error = null, System.Collections.Generic.IEnumerable diskSecrets = null, string carrierAccountNumber = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxAccountCopyLogDetails DataBoxAccountCopyLogDetails(string accountName = null, string copyLogLink = null, string copyVerboseLogLink = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxAccountCredentialDetails DataBoxAccountCredentialDetails(string accountName = null, Azure.ResourceManager.DataBox.Models.DataAccountType? dataAccountType = default(Azure.ResourceManager.DataBox.Models.DataAccountType?), string accountConnectionString = null, System.Collections.Generic.IEnumerable shareCredentialDetails = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxBasicJobDetails DataBoxBasicJobDetails(System.Collections.Generic.IEnumerable jobStages = null, Azure.ResourceManager.DataBox.Models.DataBoxContactDetails contactDetails = null, Azure.ResourceManager.DataBox.Models.DataBoxShippingAddress shippingAddress = null, Azure.ResourceManager.DataBox.Models.PackageShippingDetails deliveryPackage = null, Azure.ResourceManager.DataBox.Models.PackageShippingDetails returnPackage = null, System.Collections.Generic.IEnumerable dataImportDetails = null, System.Collections.Generic.IEnumerable dataExportDetails = null, Azure.ResourceManager.DataBox.Models.DataBoxOrderPreferences preferences = null, Azure.ResourceManager.DataBox.Models.ReverseShippingDetails reverseShippingDetails = null, System.Collections.Generic.IEnumerable copyLogDetails = null, string reverseShipmentLabelSasKey = null, string chainOfCustodySasKey = null, Azure.ResourceManager.DataBox.Models.DeviceErasureDetails deviceErasureDetails = null, Azure.ResourceManager.DataBox.Models.DataBoxKeyEncryptionKey keyEncryptionKey = null, int? expectedDataSizeInTerabytes = default(int?), System.Collections.Generic.IEnumerable actions = null, Azure.ResourceManager.DataBox.Models.LastMitigationActionOnJob lastMitigationActionOnJob = null, Azure.ResourceManager.DataBox.Models.DataCenterAddressResult dataCenterAddress = null, Azure.ResourceManager.DataBox.Models.DataCenterCode? dataCenterCode = default(Azure.ResourceManager.DataBox.Models.DataCenterCode?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxCopyProgress DataBoxCopyProgress(string storageAccountName = null, Azure.ResourceManager.DataBox.Models.DataBoxJobTransferType? transferType = default(Azure.ResourceManager.DataBox.Models.DataBoxJobTransferType?), Azure.ResourceManager.DataBox.Models.DataAccountType? dataAccountType = default(Azure.ResourceManager.DataBox.Models.DataAccountType?), Azure.Core.ResourceIdentifier accountId = null, long? bytesProcessed = default(long?), long? totalBytesToProcess = default(long?), long? filesProcessed = default(long?), long? totalFilesToProcess = default(long?), long? invalidFilesProcessed = default(long?), long? invalidFileBytesUploaded = default(long?), long? renamedContainerCount = default(long?), long? filesErroredOut = default(long?), long? directoriesErroredOut = default(long?), long? invalidDirectoriesProcessed = default(long?), bool? isEnumerationInProgress = default(bool?), Azure.ResponseError error = null, System.Collections.Generic.IEnumerable actions = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxCustomerDiskCopyLogDetails DataBoxCustomerDiskCopyLogDetails(string serialNumber = null, string errorLogLink = null, string verboseLogLink = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxCustomerDiskCopyProgress DataBoxCustomerDiskCopyProgress(string storageAccountName = null, Azure.ResourceManager.DataBox.Models.DataBoxJobTransferType? transferType = default(Azure.ResourceManager.DataBox.Models.DataBoxJobTransferType?), Azure.ResourceManager.DataBox.Models.DataAccountType? dataAccountType = default(Azure.ResourceManager.DataBox.Models.DataAccountType?), Azure.Core.ResourceIdentifier accountId = null, long? bytesProcessed = default(long?), long? totalBytesToProcess = default(long?), long? filesProcessed = default(long?), long? totalFilesToProcess = default(long?), long? invalidFilesProcessed = default(long?), long? invalidFileBytesUploaded = default(long?), long? renamedContainerCount = default(long?), long? filesErroredOut = default(long?), long? directoriesErroredOut = default(long?), long? invalidDirectoriesProcessed = default(long?), bool? isEnumerationInProgress = default(bool?), Azure.ResponseError error = null, System.Collections.Generic.IEnumerable actions = null, string serialNumber = null, Azure.ResourceManager.DataBox.Models.DataBoxCopyStatus? copyStatus = default(Azure.ResourceManager.DataBox.Models.DataBoxCopyStatus?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxCustomerDiskJobDetails DataBoxCustomerDiskJobDetails(System.Collections.Generic.IEnumerable jobStages = null, Azure.ResourceManager.DataBox.Models.DataBoxContactDetails contactDetails = null, Azure.ResourceManager.DataBox.Models.DataBoxShippingAddress shippingAddress = null, Azure.ResourceManager.DataBox.Models.PackageShippingDetails deliveryPackage = null, Azure.ResourceManager.DataBox.Models.PackageShippingDetails returnPackage = null, System.Collections.Generic.IEnumerable dataImportDetails = null, System.Collections.Generic.IEnumerable dataExportDetails = null, Azure.ResourceManager.DataBox.Models.DataBoxOrderPreferences preferences = null, Azure.ResourceManager.DataBox.Models.ReverseShippingDetails reverseShippingDetails = null, System.Collections.Generic.IEnumerable copyLogDetails = null, string reverseShipmentLabelSasKey = null, string chainOfCustodySasKey = null, Azure.ResourceManager.DataBox.Models.DeviceErasureDetails deviceErasureDetails = null, Azure.ResourceManager.DataBox.Models.DataBoxKeyEncryptionKey keyEncryptionKey = null, int? expectedDataSizeInTerabytes = default(int?), System.Collections.Generic.IEnumerable actions = null, Azure.ResourceManager.DataBox.Models.LastMitigationActionOnJob lastMitigationActionOnJob = null, Azure.ResourceManager.DataBox.Models.DataCenterAddressResult dataCenterAddress = null, Azure.ResourceManager.DataBox.Models.DataCenterCode? dataCenterCode = default(Azure.ResourceManager.DataBox.Models.DataCenterCode?), System.Collections.Generic.IDictionary importDiskDetails = null, System.Collections.Generic.IReadOnlyDictionary exportDiskDetails = null, System.Collections.Generic.IEnumerable copyProgress = null, Azure.ResourceManager.DataBox.Models.PackageCarrierInfo deliverToDataCenterPackageDetails = null, Azure.ResourceManager.DataBox.Models.PackageCarrierDetails returnToCustomerPackageDetails = null, bool? enableManifestBackup = default(bool?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxDiskCopyLogDetails DataBoxDiskCopyLogDetails(string diskSerialNumber = null, string errorLogLink = null, string verboseLogLink = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxDiskCopyProgress DataBoxDiskCopyProgress(string serialNumber = null, long? bytesCopied = default(long?), int? percentComplete = default(int?), Azure.ResourceManager.DataBox.Models.DataBoxCopyStatus? status = default(Azure.ResourceManager.DataBox.Models.DataBoxCopyStatus?), Azure.ResponseError error = null, System.Collections.Generic.IEnumerable actions = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxDiskGranularCopyLogDetails DataBoxDiskGranularCopyLogDetails(string serialNumber = null, Azure.Core.ResourceIdentifier accountId = null, string errorLogLink = null, string verboseLogLink = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxDiskGranularCopyProgress DataBoxDiskGranularCopyProgress(string storageAccountName = null, Azure.ResourceManager.DataBox.Models.DataBoxJobTransferType? transferType = default(Azure.ResourceManager.DataBox.Models.DataBoxJobTransferType?), Azure.ResourceManager.DataBox.Models.DataAccountType? dataAccountType = default(Azure.ResourceManager.DataBox.Models.DataAccountType?), Azure.Core.ResourceIdentifier accountId = null, long? bytesProcessed = default(long?), long? totalBytesToProcess = default(long?), long? filesProcessed = default(long?), long? totalFilesToProcess = default(long?), long? invalidFilesProcessed = default(long?), long? invalidFileBytesUploaded = default(long?), long? renamedContainerCount = default(long?), long? filesErroredOut = default(long?), long? directoriesErroredOut = default(long?), long? invalidDirectoriesProcessed = default(long?), bool? isEnumerationInProgress = default(bool?), Azure.ResponseError error = null, System.Collections.Generic.IEnumerable actions = null, string serialNumber = null, Azure.ResourceManager.DataBox.Models.DataBoxCopyStatus? copyStatus = default(Azure.ResourceManager.DataBox.Models.DataBoxCopyStatus?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxDiskJobDetails DataBoxDiskJobDetails(System.Collections.Generic.IEnumerable jobStages = null, Azure.ResourceManager.DataBox.Models.DataBoxContactDetails contactDetails = null, Azure.ResourceManager.DataBox.Models.DataBoxShippingAddress shippingAddress = null, Azure.ResourceManager.DataBox.Models.PackageShippingDetails deliveryPackage = null, Azure.ResourceManager.DataBox.Models.PackageShippingDetails returnPackage = null, System.Collections.Generic.IEnumerable dataImportDetails = null, System.Collections.Generic.IEnumerable dataExportDetails = null, Azure.ResourceManager.DataBox.Models.DataBoxOrderPreferences preferences = null, Azure.ResourceManager.DataBox.Models.ReverseShippingDetails reverseShippingDetails = null, System.Collections.Generic.IEnumerable copyLogDetails = null, string reverseShipmentLabelSasKey = null, string chainOfCustodySasKey = null, Azure.ResourceManager.DataBox.Models.DeviceErasureDetails deviceErasureDetails = null, Azure.ResourceManager.DataBox.Models.DataBoxKeyEncryptionKey keyEncryptionKey = null, int? expectedDataSizeInTerabytes = default(int?), System.Collections.Generic.IEnumerable actions = null, Azure.ResourceManager.DataBox.Models.LastMitigationActionOnJob lastMitigationActionOnJob = null, Azure.ResourceManager.DataBox.Models.DataCenterAddressResult dataCenterAddress = null, Azure.ResourceManager.DataBox.Models.DataCenterCode? dataCenterCode = default(Azure.ResourceManager.DataBox.Models.DataCenterCode?), System.Collections.Generic.IDictionary preferredDisks = null, System.Collections.Generic.IEnumerable copyProgress = null, System.Collections.Generic.IEnumerable granularCopyProgress = null, System.Collections.Generic.IEnumerable granularCopyLogDetails = null, System.Collections.Generic.IReadOnlyDictionary disksAndSizeDetails = null, string passkey = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxDiskJobSecrets DataBoxDiskJobSecrets(Azure.ResourceManager.DataBox.Models.DataCenterAccessSecurityCode dataCenterAccessSecurityCode = null, Azure.ResponseError error = null, System.Collections.Generic.IEnumerable diskSecrets = null, string passkey = null, bool? isPasskeyUserDefined = default(bool?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxDiskSecret DataBoxDiskSecret(string diskSerialNumber = null, string bitLockerKey = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxHeavyAccountCopyLogDetails DataBoxHeavyAccountCopyLogDetails(string accountName = null, System.Collections.Generic.IEnumerable copyLogLink = null, System.Collections.Generic.IEnumerable copyVerboseLogLink = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxHeavyJobDetails DataBoxHeavyJobDetails(System.Collections.Generic.IEnumerable jobStages = null, Azure.ResourceManager.DataBox.Models.DataBoxContactDetails contactDetails = null, Azure.ResourceManager.DataBox.Models.DataBoxShippingAddress shippingAddress = null, Azure.ResourceManager.DataBox.Models.PackageShippingDetails deliveryPackage = null, Azure.ResourceManager.DataBox.Models.PackageShippingDetails returnPackage = null, System.Collections.Generic.IEnumerable dataImportDetails = null, System.Collections.Generic.IEnumerable dataExportDetails = null, Azure.ResourceManager.DataBox.Models.DataBoxOrderPreferences preferences = null, Azure.ResourceManager.DataBox.Models.ReverseShippingDetails reverseShippingDetails = null, System.Collections.Generic.IEnumerable copyLogDetails = null, string reverseShipmentLabelSasKey = null, string chainOfCustodySasKey = null, Azure.ResourceManager.DataBox.Models.DeviceErasureDetails deviceErasureDetails = null, Azure.ResourceManager.DataBox.Models.DataBoxKeyEncryptionKey keyEncryptionKey = null, int? expectedDataSizeInTerabytes = default(int?), System.Collections.Generic.IEnumerable actions = null, Azure.ResourceManager.DataBox.Models.LastMitigationActionOnJob lastMitigationActionOnJob = null, Azure.ResourceManager.DataBox.Models.DataCenterAddressResult dataCenterAddress = null, Azure.ResourceManager.DataBox.Models.DataCenterCode? dataCenterCode = default(Azure.ResourceManager.DataBox.Models.DataCenterCode?), System.Collections.Generic.IEnumerable copyProgress = null, string devicePassword = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxHeavyJobSecrets DataBoxHeavyJobSecrets(Azure.ResourceManager.DataBox.Models.DataCenterAccessSecurityCode dataCenterAccessSecurityCode = null, Azure.ResponseError error = null, System.Collections.Generic.IEnumerable cabinetPodSecrets = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxHeavySecret DataBoxHeavySecret(string deviceSerialNumber = null, string devicePassword = null, System.Collections.Generic.IEnumerable networkConfigurations = null, string encodedValidationCertPubKey = null, System.Collections.Generic.IEnumerable accountCredentialDetails = null) { throw null; } + public static Azure.ResourceManager.DataBox.DataBoxJobData DataBoxJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.DataBox.Models.DataBoxJobTransferType transferType = Azure.ResourceManager.DataBox.Models.DataBoxJobTransferType.ImportToAzure, bool? isCancellable = default(bool?), bool? isDeletable = default(bool?), bool? isShippingAddressEditable = default(bool?), Azure.ResourceManager.DataBox.Models.ReverseShippingDetailsEditStatus? reverseShippingDetailsUpdate = default(Azure.ResourceManager.DataBox.Models.ReverseShippingDetailsEditStatus?), Azure.ResourceManager.DataBox.Models.ReverseTransportPreferenceEditStatus? reverseTransportPreferenceUpdate = default(Azure.ResourceManager.DataBox.Models.ReverseTransportPreferenceEditStatus?), bool? isPrepareToShipEnabled = default(bool?), Azure.ResourceManager.DataBox.Models.DataBoxStageName? status = default(Azure.ResourceManager.DataBox.Models.DataBoxStageName?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), Azure.ResponseError error = null, Azure.ResourceManager.DataBox.Models.DataBoxBasicJobDetails details = null, string cancellationReason = null, Azure.ResourceManager.DataBox.Models.JobDeliveryType? deliveryType = default(Azure.ResourceManager.DataBox.Models.JobDeliveryType?), System.DateTimeOffset? deliveryInfoScheduledOn = default(System.DateTimeOffset?), bool? isCancellableWithoutFee = default(bool?), Azure.ResourceManager.DataBox.Models.DataBoxSku sku = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxJobDetails DataBoxJobDetails(System.Collections.Generic.IEnumerable jobStages = null, Azure.ResourceManager.DataBox.Models.DataBoxContactDetails contactDetails = null, Azure.ResourceManager.DataBox.Models.DataBoxShippingAddress shippingAddress = null, Azure.ResourceManager.DataBox.Models.PackageShippingDetails deliveryPackage = null, Azure.ResourceManager.DataBox.Models.PackageShippingDetails returnPackage = null, System.Collections.Generic.IEnumerable dataImportDetails = null, System.Collections.Generic.IEnumerable dataExportDetails = null, Azure.ResourceManager.DataBox.Models.DataBoxOrderPreferences preferences = null, Azure.ResourceManager.DataBox.Models.ReverseShippingDetails reverseShippingDetails = null, System.Collections.Generic.IEnumerable copyLogDetails = null, string reverseShipmentLabelSasKey = null, string chainOfCustodySasKey = null, Azure.ResourceManager.DataBox.Models.DeviceErasureDetails deviceErasureDetails = null, Azure.ResourceManager.DataBox.Models.DataBoxKeyEncryptionKey keyEncryptionKey = null, int? expectedDataSizeInTerabytes = default(int?), System.Collections.Generic.IEnumerable actions = null, Azure.ResourceManager.DataBox.Models.LastMitigationActionOnJob lastMitigationActionOnJob = null, Azure.ResourceManager.DataBox.Models.DataCenterAddressResult dataCenterAddress = null, Azure.ResourceManager.DataBox.Models.DataCenterCode? dataCenterCode = default(Azure.ResourceManager.DataBox.Models.DataCenterCode?), System.Collections.Generic.IEnumerable copyProgress = null, string devicePassword = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataboxJobSecrets DataboxJobSecrets(Azure.ResourceManager.DataBox.Models.DataCenterAccessSecurityCode dataCenterAccessSecurityCode = null, Azure.ResponseError error = null, System.Collections.Generic.IEnumerable podSecrets = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxJobStage DataBoxJobStage(Azure.ResourceManager.DataBox.Models.DataBoxStageName? stageName = default(Azure.ResourceManager.DataBox.Models.DataBoxStageName?), string displayName = null, Azure.ResourceManager.DataBox.Models.DataBoxStageStatus? stageStatus = default(Azure.ResourceManager.DataBox.Models.DataBoxStageStatus?), System.DateTimeOffset? stageTime = default(System.DateTimeOffset?), System.BinaryData jobStageDetails = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxSecret DataBoxSecret(string deviceSerialNumber = null, string devicePassword = null, System.Collections.Generic.IEnumerable networkConfigurations = null, string encodedValidationCertPubKey = null, System.Collections.Generic.IEnumerable accountCredentialDetails = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxShipmentPickUpResult DataBoxShipmentPickUpResult(string confirmationNumber = null, System.DateTimeOffset? readyBy = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxSkuCapacity DataBoxSkuCapacity(string usable = null, string maximum = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxSkuCost DataBoxSkuCost(System.Guid? meterId = default(System.Guid?), string meterType = null, double? multiplier = default(double?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxSkuInformation DataBoxSkuInformation(Azure.ResourceManager.DataBox.Models.DataBoxSku sku = null, bool? isEnabled = default(bool?), System.Collections.Generic.IEnumerable dataLocationToServiceLocationMap = null, Azure.ResourceManager.DataBox.Models.DataBoxSkuCapacity capacity = null, System.Collections.Generic.IEnumerable costs = null, System.Collections.Generic.IEnumerable apiVersions = null, Azure.ResourceManager.DataBox.Models.SkuDisabledReason? disabledReason = default(Azure.ResourceManager.DataBox.Models.SkuDisabledReason?), string disabledReasonMessage = null, string requiredFeature = null, System.Collections.Generic.IEnumerable countriesWithinCommerceBoundary = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxValidationInputResult DataBoxValidationInputResult(Azure.ResponseError error = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataBoxValidationResult DataBoxValidationResult(Azure.ResourceManager.DataBox.Models.OverallValidationStatus? status = default(Azure.ResourceManager.DataBox.Models.OverallValidationStatus?), System.Collections.Generic.IEnumerable individualResponseDetails = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataCenterAccessSecurityCode DataCenterAccessSecurityCode(string reverseDataCenterAccessCode = null, string forwardDataCenterAccessCode = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataCenterAddressInstructionResult DataCenterAddressInstructionResult(System.Collections.Generic.IEnumerable supportedCarriersForReturnShipment = null, Azure.Core.AzureLocation? dataCenterAzureLocation = default(Azure.Core.AzureLocation?), string communicationInstruction = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataCenterAddressLocationResult DataCenterAddressLocationResult(System.Collections.Generic.IEnumerable supportedCarriersForReturnShipment = null, Azure.Core.AzureLocation? dataCenterAzureLocation = default(Azure.Core.AzureLocation?), string contactPersonName = null, string company = null, string street1 = null, string street2 = null, string street3 = null, string city = null, string state = null, string zip = null, string country = null, string phone = null, string phoneExtension = null, string addressType = null, string additionalShippingInformation = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataCenterAddressResult DataCenterAddressResult(System.Collections.Generic.IEnumerable supportedCarriersForReturnShipment = null, Azure.Core.AzureLocation? dataCenterAzureLocation = default(Azure.Core.AzureLocation?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataLocationToServiceLocationMap DataLocationToServiceLocationMap(Azure.Core.AzureLocation? dataLocation = default(Azure.Core.AzureLocation?), Azure.Core.AzureLocation? serviceLocation = default(Azure.Core.AzureLocation?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DataTransferDetailsValidationResult DataTransferDetailsValidationResult(Azure.ResponseError error = null, Azure.ResourceManager.DataBox.Models.DataBoxValidationStatus? status = default(Azure.ResourceManager.DataBox.Models.DataBoxValidationStatus?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.DeviceErasureDetails DeviceErasureDetails(Azure.ResourceManager.DataBox.Models.DataBoxStageStatus? deviceErasureStatus = default(Azure.ResourceManager.DataBox.Models.DataBoxStageStatus?), string erasureOrDestructionCertificateSasKey = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.ExportDiskDetails ExportDiskDetails(string manifestFile = null, string manifestHash = null, string backupManifestCloudPath = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.GranularCopyProgress GranularCopyProgress(string storageAccountName = null, Azure.ResourceManager.DataBox.Models.DataBoxJobTransferType? transferType = default(Azure.ResourceManager.DataBox.Models.DataBoxJobTransferType?), Azure.ResourceManager.DataBox.Models.DataAccountType? dataAccountType = default(Azure.ResourceManager.DataBox.Models.DataAccountType?), Azure.Core.ResourceIdentifier accountId = null, long? bytesProcessed = default(long?), long? totalBytesToProcess = default(long?), long? filesProcessed = default(long?), long? totalFilesToProcess = default(long?), long? invalidFilesProcessed = default(long?), long? invalidFileBytesUploaded = default(long?), long? renamedContainerCount = default(long?), long? filesErroredOut = default(long?), long? directoriesErroredOut = default(long?), long? invalidDirectoriesProcessed = default(long?), bool? isEnumerationInProgress = default(bool?), Azure.ResponseError error = null, System.Collections.Generic.IEnumerable actions = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.ImportDiskDetails ImportDiskDetails(string manifestFile = null, string manifestHash = null, string bitLockerKey = null, string backupManifestCloudPath = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.JobSecrets JobSecrets(Azure.ResourceManager.DataBox.Models.DataCenterAccessSecurityCode dataCenterAccessSecurityCode = null, Azure.ResponseError error = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.LastMitigationActionOnJob LastMitigationActionOnJob(System.DateTimeOffset? actionPerformedOn = default(System.DateTimeOffset?), bool? isPerformedByCustomer = default(bool?), Azure.ResourceManager.DataBox.Models.CustomerResolutionCode? customerResolution = default(Azure.ResourceManager.DataBox.Models.CustomerResolutionCode?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.PackageShippingDetails PackageShippingDetails(System.Uri trackingUri = null, string carrierName = null, string trackingId = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.PreferencesValidationResult PreferencesValidationResult(Azure.ResponseError error = null, Azure.ResourceManager.DataBox.Models.DataBoxValidationStatus? status = default(Azure.ResourceManager.DataBox.Models.DataBoxValidationStatus?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.RegionConfigurationResult RegionConfigurationResult(System.Collections.Generic.IEnumerable scheduleAvailabilityResponseAvailableDates = null, System.Collections.Generic.IEnumerable transportAvailabilityDetails = null, Azure.ResourceManager.DataBox.Models.DataCenterAddressResult dataCenterAddressResponse = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.ReverseShippingDetails ReverseShippingDetails(Azure.ResourceManager.DataBox.Models.ContactInfo contactDetails = null, Azure.ResourceManager.DataBox.Models.DataBoxShippingAddress shippingAddress = null, bool? isUpdated = default(bool?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.ShareCredentialDetails ShareCredentialDetails(string shareName = null, Azure.ResourceManager.DataBox.Models.ShareDestinationFormatType? shareType = default(Azure.ResourceManager.DataBox.Models.ShareDestinationFormatType?), string userName = null, string password = null, System.Collections.Generic.IEnumerable supportedAccessProtocols = null) { throw null; } + public static Azure.ResourceManager.DataBox.Models.SkuAvailabilityValidationResult SkuAvailabilityValidationResult(Azure.ResponseError error = null, Azure.ResourceManager.DataBox.Models.DataBoxValidationStatus? status = default(Azure.ResourceManager.DataBox.Models.DataBoxValidationStatus?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.SubscriptionIsAllowedToCreateJobValidationResult SubscriptionIsAllowedToCreateJobValidationResult(Azure.ResponseError error = null, Azure.ResourceManager.DataBox.Models.DataBoxValidationStatus? status = default(Azure.ResourceManager.DataBox.Models.DataBoxValidationStatus?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.TransportAvailabilityDetails TransportAvailabilityDetails(Azure.ResourceManager.DataBox.Models.TransportShipmentType? shipmentType = default(Azure.ResourceManager.DataBox.Models.TransportShipmentType?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.TransportPreferences TransportPreferences(Azure.ResourceManager.DataBox.Models.TransportShipmentType preferredShipmentType = Azure.ResourceManager.DataBox.Models.TransportShipmentType.CustomerManaged, bool? isUpdated = default(bool?)) { throw null; } + public static Azure.ResourceManager.DataBox.Models.UnencryptedCredentials UnencryptedCredentials(string jobName = null, Azure.ResourceManager.DataBox.Models.JobSecrets jobSecrets = null) { throw null; } + } public partial class AvailableSkusContent { public AvailableSkusContent(Azure.ResourceManager.DataBox.Models.DataBoxJobTransferType transferType, string country, Azure.Core.AzureLocation location) { } diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/ArmDataBoxModelFactory.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/ArmDataBoxModelFactory.cs new file mode 100644 index 000000000000..669d96fda433 --- /dev/null +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/ArmDataBoxModelFactory.cs @@ -0,0 +1,927 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure; +using Azure.Core; +using Azure.ResourceManager.DataBox; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DataBox.Models +{ + /// Model factory for models. + public static partial class ArmDataBoxModelFactory + { + /// Initializes a new instance of DataBoxJobData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Type of the data transfer. + /// Describes whether the job is cancellable or not. + /// Describes whether the job is deletable or not. + /// Describes whether the shipping address is editable or not. + /// The Editable status for Reverse Shipping Address and Contact Info. + /// The Editable status for Reverse Transport preferences. + /// Is Prepare To Ship Enabled on this job. + /// Name of the stage which is in progress. + /// Time at which the job was started in UTC ISO 8601 format. + /// Top level error for the job. + /// + /// Details of a job run. This field will only be sent for expand details filter. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// Reason for cancellation. + /// Delivery type of Job. + /// Delivery Info of Job. + /// Flag to indicate cancellation of scheduled job. + /// The sku type. + /// Msi identity of the resource. + /// A new instance for mocking. + public static DataBoxJobData DataBoxJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, DataBoxJobTransferType transferType = default, bool? isCancellable = null, bool? isDeletable = null, bool? isShippingAddressEditable = null, ReverseShippingDetailsEditStatus? reverseShippingDetailsUpdate = null, ReverseTransportPreferenceEditStatus? reverseTransportPreferenceUpdate = null, bool? isPrepareToShipEnabled = null, DataBoxStageName? status = null, DateTimeOffset? startOn = null, ResponseError error = null, DataBoxBasicJobDetails details = null, string cancellationReason = null, JobDeliveryType? deliveryType = null, DateTimeOffset? deliveryInfoScheduledOn = null, bool? isCancellableWithoutFee = null, DataBoxSku sku = null, ManagedServiceIdentity identity = null) + { + tags ??= new Dictionary(); + + return new DataBoxJobData(id, name, resourceType, systemData, tags, location, transferType, isCancellable, isDeletable, isShippingAddressEditable, reverseShippingDetailsUpdate, reverseTransportPreferenceUpdate, isPrepareToShipEnabled, status, startOn, error, details, cancellationReason, deliveryType, deliveryInfoScheduledOn != null ? new JobDeliveryInfo(deliveryInfoScheduledOn) : null, isCancellableWithoutFee, sku, identity); + } + + /// Initializes a new instance of DataBoxBasicJobDetails. + /// List of stages that run in the job. + /// Contact details for notification and shipping. + /// Shipping address of the customer. + /// Delivery package shipping details. + /// Return package shipping details. + /// Details of the data to be imported into azure. + /// Details of the data to be exported from azure. + /// Preferences for the order. + /// Optional Reverse Shipping details for order. + /// + /// List of copy log details. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// Shared access key to download the return shipment label. + /// Shared access key to download the chain of custody logs. + /// Holds device data erasure details. + /// Details about which key encryption type is being used. + /// The expected size of the data, which needs to be transferred in this job, in terabytes. + /// Available actions on the job. + /// Last mitigation action performed on the job. + /// + /// Datacenter address to ship to, for the given sku and storage location. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// DataCenter code. + /// A new instance for mocking. + public static DataBoxBasicJobDetails DataBoxBasicJobDetails(IEnumerable jobStages = null, DataBoxContactDetails contactDetails = null, DataBoxShippingAddress shippingAddress = null, PackageShippingDetails deliveryPackage = null, PackageShippingDetails returnPackage = null, IEnumerable dataImportDetails = null, IEnumerable dataExportDetails = null, DataBoxOrderPreferences preferences = null, ReverseShippingDetails reverseShippingDetails = null, IEnumerable copyLogDetails = null, string reverseShipmentLabelSasKey = null, string chainOfCustodySasKey = null, DeviceErasureDetails deviceErasureDetails = null, DataBoxKeyEncryptionKey keyEncryptionKey = null, int? expectedDataSizeInTerabytes = null, IEnumerable actions = null, LastMitigationActionOnJob lastMitigationActionOnJob = null, DataCenterAddressResult dataCenterAddress = null, DataCenterCode? dataCenterCode = null) + { + jobStages ??= new List(); + dataImportDetails ??= new List(); + dataExportDetails ??= new List(); + copyLogDetails ??= new List(); + actions ??= new List(); + + return new UnknownJobDetails(jobStages?.ToList(), contactDetails, shippingAddress, deliveryPackage, returnPackage, dataImportDetails?.ToList(), dataExportDetails?.ToList(), default, preferences, reverseShippingDetails, copyLogDetails?.ToList(), reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTerabytes, actions?.ToList(), lastMitigationActionOnJob, dataCenterAddress, dataCenterCode); + } + + /// Initializes a new instance of DataBoxJobStage. + /// Name of the job stage. + /// Display name of the job stage. + /// Status of the job stage. + /// Time for the job stage in UTC ISO 8601 format. + /// Job Stage Details. + /// A new instance for mocking. + public static DataBoxJobStage DataBoxJobStage(DataBoxStageName? stageName = null, string displayName = null, DataBoxStageStatus? stageStatus = null, DateTimeOffset? stageTime = null, BinaryData jobStageDetails = null) + { + return new DataBoxJobStage(stageName, displayName, stageStatus, stageTime, jobStageDetails); + } + + /// Initializes a new instance of PackageShippingDetails. + /// Url where shipment can be tracked. + /// Name of the carrier. + /// Tracking Id of shipment. + /// A new instance for mocking. + public static PackageShippingDetails PackageShippingDetails(Uri trackingUri = null, string carrierName = null, string trackingId = null) + { + return new PackageShippingDetails(trackingUri, carrierName, trackingId); + } + + /// Initializes a new instance of TransportPreferences. + /// Indicates Shipment Logistics type that the customer preferred. + /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. + /// A new instance for mocking. + public static TransportPreferences TransportPreferences(TransportShipmentType preferredShipmentType = default, bool? isUpdated = null) + { + return new TransportPreferences(preferredShipmentType, isUpdated); + } + + /// Initializes a new instance of ReverseShippingDetails. + /// Contact Info. + /// Shipping address where customer wishes to receive the device. + /// + /// A flag to indicate whether Reverse Shipping details are updated or not after device has been prepared. + /// Read only field + /// + /// A new instance for mocking. + public static ReverseShippingDetails ReverseShippingDetails(ContactInfo contactDetails = null, DataBoxShippingAddress shippingAddress = null, bool? isUpdated = null) + { + return new ReverseShippingDetails(contactDetails, shippingAddress, isUpdated); + } + + /// Initializes a new instance of DeviceErasureDetails. + /// Holds the device erasure completion status. + /// Shared access key to download cleanup or destruction certificate for device. + /// A new instance for mocking. + public static DeviceErasureDetails DeviceErasureDetails(DataBoxStageStatus? deviceErasureStatus = null, string erasureOrDestructionCertificateSasKey = null) + { + return new DeviceErasureDetails(deviceErasureStatus, erasureOrDestructionCertificateSasKey); + } + + /// Initializes a new instance of LastMitigationActionOnJob. + /// Action performed date time. + /// + /// Action performed by customer, + /// possibility is that mitigation might happen by customer or service or by ops + /// + /// Resolution code provided by customer. + /// A new instance for mocking. + public static LastMitigationActionOnJob LastMitigationActionOnJob(DateTimeOffset? actionPerformedOn = null, bool? isPerformedByCustomer = null, CustomerResolutionCode? customerResolution = null) + { + return new LastMitigationActionOnJob(actionPerformedOn, isPerformedByCustomer, customerResolution); + } + + /// Initializes a new instance of DataCenterAddressResult. + /// List of supported carriers for return shipment. + /// Azure Location where the Data Center serves primarily. + /// A new instance for mocking. + public static DataCenterAddressResult DataCenterAddressResult(IEnumerable supportedCarriersForReturnShipment = null, AzureLocation? dataCenterAzureLocation = null) + { + supportedCarriersForReturnShipment ??= new List(); + + return new UnknownDataCenterAddressResponse(default, supportedCarriersForReturnShipment?.ToList(), dataCenterAzureLocation); + } + + /// Initializes a new instance of DataBoxSkuInformation. + /// The Sku. + /// The sku is enabled or not. + /// The map of data location to service location. + /// Capacity of the Sku. + /// Cost of the Sku. + /// Api versions that support this Sku. + /// Reason why the Sku is disabled. + /// Message for why the Sku is disabled. + /// Required feature to access the sku. + /// List of all the Countries in the SKU specific commerce boundary. + /// A new instance for mocking. + public static DataBoxSkuInformation DataBoxSkuInformation(DataBoxSku sku = null, bool? isEnabled = null, IEnumerable dataLocationToServiceLocationMap = null, DataBoxSkuCapacity capacity = null, IEnumerable costs = null, IEnumerable apiVersions = null, SkuDisabledReason? disabledReason = null, string disabledReasonMessage = null, string requiredFeature = null, IEnumerable countriesWithinCommerceBoundary = null) + { + dataLocationToServiceLocationMap ??= new List(); + costs ??= new List(); + apiVersions ??= new List(); + countriesWithinCommerceBoundary ??= new List(); + + return new DataBoxSkuInformation(sku, isEnabled, dataLocationToServiceLocationMap?.ToList(), capacity, costs?.ToList(), apiVersions?.ToList(), disabledReason, disabledReasonMessage, requiredFeature, countriesWithinCommerceBoundary?.ToList()); + } + + /// Initializes a new instance of DataLocationToServiceLocationMap. + /// Location of the data. + /// Location of the service. + /// A new instance for mocking. + public static DataLocationToServiceLocationMap DataLocationToServiceLocationMap(AzureLocation? dataLocation = null, AzureLocation? serviceLocation = null) + { + return new DataLocationToServiceLocationMap(dataLocation, serviceLocation); + } + + /// Initializes a new instance of DataBoxSkuCapacity. + /// Usable capacity in TB. + /// Maximum capacity in TB. + /// A new instance for mocking. + public static DataBoxSkuCapacity DataBoxSkuCapacity(string usable = null, string maximum = null) + { + return new DataBoxSkuCapacity(usable, maximum); + } + + /// Initializes a new instance of DataBoxSkuCost. + /// Meter id of the Sku. + /// The type of the meter. + /// Multiplier specifies the region specific value to be multiplied with 1$ guid. Eg: Our new regions will be using 1$ shipping guid with appropriate multiplier specific to region. + /// A new instance for mocking. + public static DataBoxSkuCost DataBoxSkuCost(Guid? meterId = null, string meterType = null, double? multiplier = null) + { + return new DataBoxSkuCost(meterId, meterType, multiplier); + } + + /// Initializes a new instance of AddressValidationResult. + /// Error code and message of validation response. + /// The address validation status. + /// List of alternate addresses. + /// A new instance for mocking. + public static AddressValidationResult AddressValidationResult(ResponseError error = null, AddressValidationStatus? validationStatus = null, IEnumerable alternateAddresses = null) + { + alternateAddresses ??= new List(); + + return new AddressValidationResult(DataBoxValidationInputDiscriminator.ValidateAddress, error, validationStatus, alternateAddresses?.ToList()); + } + + /// Initializes a new instance of DataBoxValidationInputResult. + /// Error code and message of validation response. + /// A new instance for mocking. + public static DataBoxValidationInputResult DataBoxValidationInputResult(ResponseError error = null) + { + return new UnknownValidationInputResponse(default, error); + } + + /// Initializes a new instance of DataBoxValidationResult. + /// Overall validation status. + /// + /// List of response details contain validationType and its response as key and value respectively. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . + /// + /// A new instance for mocking. + public static DataBoxValidationResult DataBoxValidationResult(OverallValidationStatus? status = null, IEnumerable individualResponseDetails = null) + { + individualResponseDetails ??= new List(); + + return new DataBoxValidationResult(status, individualResponseDetails?.ToList()); + } + + /// Initializes a new instance of DataBoxShipmentPickUpResult. + /// Confirmation number for the pick up request. + /// Time by which shipment should be ready for pick up, this is in local time of pick up area. + /// A new instance for mocking. + public static DataBoxShipmentPickUpResult DataBoxShipmentPickUpResult(string confirmationNumber = null, DateTimeOffset? readyBy = null) + { + return new DataBoxShipmentPickUpResult(confirmationNumber, readyBy); + } + + /// Initializes a new instance of UnencryptedCredentials. + /// Name of the job. + /// + /// Secrets related to this job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// A new instance for mocking. + public static UnencryptedCredentials UnencryptedCredentials(string jobName = null, JobSecrets jobSecrets = null) + { + return new UnencryptedCredentials(jobName, jobSecrets); + } + + /// Initializes a new instance of JobSecrets. + /// Dc Access Security Code for Customer Managed Shipping. + /// Error while fetching the secrets. + /// A new instance for mocking. + public static JobSecrets JobSecrets(DataCenterAccessSecurityCode dataCenterAccessSecurityCode = null, ResponseError error = null) + { + return new UnknownJobSecrets(default, dataCenterAccessSecurityCode, error); + } + + /// Initializes a new instance of DataCenterAccessSecurityCode. + /// Reverse Dc access security code. + /// Forward Dc access security code. + /// A new instance for mocking. + public static DataCenterAccessSecurityCode DataCenterAccessSecurityCode(string reverseDataCenterAccessCode = null, string forwardDataCenterAccessCode = null) + { + return new DataCenterAccessSecurityCode(reverseDataCenterAccessCode, forwardDataCenterAccessCode); + } + + /// Initializes a new instance of RegionConfigurationResult. + /// Schedule availability for given sku in a region. + /// Transport options available for given sku in a region. + /// + /// Datacenter address for given sku in a region. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// A new instance for mocking. + public static RegionConfigurationResult RegionConfigurationResult(IEnumerable scheduleAvailabilityResponseAvailableDates = null, IEnumerable transportAvailabilityDetails = null, DataCenterAddressResult dataCenterAddressResponse = null) + { + scheduleAvailabilityResponseAvailableDates ??= new List(); + transportAvailabilityDetails ??= new List(); + + return new RegionConfigurationResult(scheduleAvailabilityResponseAvailableDates != null ? new ScheduleAvailabilityResponse(scheduleAvailabilityResponseAvailableDates?.ToList()) : null, transportAvailabilityDetails != null ? new TransportAvailabilityResponse(transportAvailabilityDetails?.ToList()) : null, dataCenterAddressResponse); + } + + /// Initializes a new instance of TransportAvailabilityDetails. + /// Transport Shipment Type supported for given region. + /// A new instance for mocking. + public static TransportAvailabilityDetails TransportAvailabilityDetails(TransportShipmentType? shipmentType = null) + { + return new TransportAvailabilityDetails(shipmentType); + } + + /// Initializes a new instance of DataBoxAccountCredentialDetails. + /// Name of the account. + /// Type of the account. + /// Connection string of the account endpoint to use the account as a storage endpoint on the device. + /// Per share level unencrypted access credentials. + /// A new instance for mocking. + public static DataBoxAccountCredentialDetails DataBoxAccountCredentialDetails(string accountName = null, DataAccountType? dataAccountType = null, string accountConnectionString = null, IEnumerable shareCredentialDetails = null) + { + shareCredentialDetails ??= new List(); + + return new DataBoxAccountCredentialDetails(accountName, dataAccountType, accountConnectionString, shareCredentialDetails?.ToList()); + } + + /// Initializes a new instance of ShareCredentialDetails. + /// Name of the share. + /// Type of the share. + /// User name for the share. + /// Password for the share. + /// Access protocols supported on the device. + /// A new instance for mocking. + public static ShareCredentialDetails ShareCredentialDetails(string shareName = null, ShareDestinationFormatType? shareType = null, string userName = null, string password = null, IEnumerable supportedAccessProtocols = null) + { + supportedAccessProtocols ??= new List(); + + return new ShareCredentialDetails(shareName, shareType, userName, password, supportedAccessProtocols?.ToList()); + } + + /// Initializes a new instance of ApplianceNetworkConfiguration. + /// Name of the network. + /// Mac Address. + /// A new instance for mocking. + public static ApplianceNetworkConfiguration ApplianceNetworkConfiguration(string name = null, string macAddress = null) + { + return new ApplianceNetworkConfiguration(name, macAddress); + } + + /// Initializes a new instance of DataBoxCustomerDiskCopyProgress. + /// Name of the storage account. This will be empty for data account types other than storage account. + /// Transfer type of data. + /// Data Account Type. + /// Id of the account where the data needs to be uploaded. + /// To indicate bytes transferred. + /// Total amount of data to be processed by the job. + /// Number of files processed. + /// Total files to process. + /// Number of files not adhering to azure naming conventions which were processed by automatic renaming. + /// Total amount of data not adhering to azure naming conventions which were processed by automatic renaming. + /// Number of folders not adhering to azure naming conventions which were processed by automatic renaming. + /// Number of files which could not be copied. + /// To indicate directories errored out in the job. + /// To indicate directories renamed. + /// + /// To indicate if enumeration of data is in progress. + /// Until this is true, the TotalBytesToProcess may not be valid. + /// + /// Error, if any, in the stage. + /// Available actions on the job. + /// Disk Serial Number. + /// The Status of the copy. + /// A new instance for mocking. + public static DataBoxCustomerDiskCopyProgress DataBoxCustomerDiskCopyProgress(string storageAccountName = null, DataBoxJobTransferType? transferType = null, DataAccountType? dataAccountType = null, ResourceIdentifier accountId = null, long? bytesProcessed = null, long? totalBytesToProcess = null, long? filesProcessed = null, long? totalFilesToProcess = null, long? invalidFilesProcessed = null, long? invalidFileBytesUploaded = null, long? renamedContainerCount = null, long? filesErroredOut = null, long? directoriesErroredOut = null, long? invalidDirectoriesProcessed = null, bool? isEnumerationInProgress = null, ResponseError error = null, IEnumerable actions = null, string serialNumber = null, DataBoxCopyStatus? copyStatus = null) + { + actions ??= new List(); + + return new DataBoxCustomerDiskCopyProgress(storageAccountName, transferType, dataAccountType, accountId, bytesProcessed, totalBytesToProcess, filesProcessed, totalFilesToProcess, invalidFilesProcessed, invalidFileBytesUploaded, renamedContainerCount, filesErroredOut, directoriesErroredOut, invalidDirectoriesProcessed, isEnumerationInProgress, error, actions?.ToList(), serialNumber, copyStatus); + } + + /// Initializes a new instance of DataBoxCopyProgress. + /// Name of the storage account. This will be empty for data account types other than storage account. + /// Transfer type of data. + /// Data Account Type. + /// Id of the account where the data needs to be uploaded. + /// To indicate bytes transferred. + /// Total amount of data to be processed by the job. + /// Number of files processed. + /// Total files to process. + /// Number of files not adhering to azure naming conventions which were processed by automatic renaming. + /// Total amount of data not adhering to azure naming conventions which were processed by automatic renaming. + /// Number of folders not adhering to azure naming conventions which were processed by automatic renaming. + /// Number of files which could not be copied. + /// To indicate directories errored out in the job. + /// To indicate directories renamed. + /// + /// To indicate if enumeration of data is in progress. + /// Until this is true, the TotalBytesToProcess may not be valid. + /// + /// Error, if any, in the stage. + /// Available actions on the job. + /// A new instance for mocking. + public static DataBoxCopyProgress DataBoxCopyProgress(string storageAccountName = null, DataBoxJobTransferType? transferType = null, DataAccountType? dataAccountType = null, ResourceIdentifier accountId = null, long? bytesProcessed = null, long? totalBytesToProcess = null, long? filesProcessed = null, long? totalFilesToProcess = null, long? invalidFilesProcessed = null, long? invalidFileBytesUploaded = null, long? renamedContainerCount = null, long? filesErroredOut = null, long? directoriesErroredOut = null, long? invalidDirectoriesProcessed = null, bool? isEnumerationInProgress = null, ResponseError error = null, IEnumerable actions = null) + { + actions ??= new List(); + + return new DataBoxCopyProgress(storageAccountName, transferType, dataAccountType, accountId, bytesProcessed, totalBytesToProcess, filesProcessed, totalFilesToProcess, invalidFilesProcessed, invalidFileBytesUploaded, renamedContainerCount, filesErroredOut, directoriesErroredOut, invalidDirectoriesProcessed, isEnumerationInProgress, error, actions?.ToList()); + } + + /// Initializes a new instance of GranularCopyProgress. + /// Name of the storage account. This will be empty for data account types other than storage account. + /// Transfer type of data. + /// Data Account Type. + /// Id of the account where the data needs to be uploaded. + /// To indicate bytes transferred. + /// Total amount of data to be processed by the job. + /// Number of files processed. + /// Total files to process. + /// Number of files not adhering to azure naming conventions which were processed by automatic renaming. + /// Total amount of data not adhering to azure naming conventions which were processed by automatic renaming. + /// Number of folders not adhering to azure naming conventions which were processed by automatic renaming. + /// Number of files which could not be copied. + /// To indicate directories errored out in the job. + /// To indicate directories renamed. + /// + /// To indicate if enumeration of data is in progress. + /// Until this is true, the TotalBytesToProcess may not be valid. + /// + /// Error, if any, in the stage. + /// Available actions on the job. + /// A new instance for mocking. + public static GranularCopyProgress GranularCopyProgress(string storageAccountName = null, DataBoxJobTransferType? transferType = null, DataAccountType? dataAccountType = null, ResourceIdentifier accountId = null, long? bytesProcessed = null, long? totalBytesToProcess = null, long? filesProcessed = null, long? totalFilesToProcess = null, long? invalidFilesProcessed = null, long? invalidFileBytesUploaded = null, long? renamedContainerCount = null, long? filesErroredOut = null, long? directoriesErroredOut = null, long? invalidDirectoriesProcessed = null, bool? isEnumerationInProgress = null, ResponseError error = null, IEnumerable actions = null) + { + actions ??= new List(); + + return new GranularCopyProgress(storageAccountName, transferType, dataAccountType, accountId, bytesProcessed, totalBytesToProcess, filesProcessed, totalFilesToProcess, invalidFilesProcessed, invalidFileBytesUploaded, renamedContainerCount, filesErroredOut, directoriesErroredOut, invalidDirectoriesProcessed, isEnumerationInProgress, error, actions?.ToList()); + } + + /// Initializes a new instance of CreateOrderLimitForSubscriptionValidationResult. + /// Error code and message of validation response. + /// Create order limit validation status. + /// A new instance for mocking. + public static CreateOrderLimitForSubscriptionValidationResult CreateOrderLimitForSubscriptionValidationResult(ResponseError error = null, DataBoxValidationStatus? status = null) + { + return new CreateOrderLimitForSubscriptionValidationResult(DataBoxValidationInputDiscriminator.ValidateCreateOrderLimit, error, status); + } + + /// Initializes a new instance of DataBoxCustomerDiskJobDetails. + /// List of stages that run in the job. + /// Contact details for notification and shipping. + /// Shipping address of the customer. + /// Delivery package shipping details. + /// Return package shipping details. + /// Details of the data to be imported into azure. + /// Details of the data to be exported from azure. + /// Preferences for the order. + /// Optional Reverse Shipping details for order. + /// + /// List of copy log details. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// Shared access key to download the return shipment label. + /// Shared access key to download the chain of custody logs. + /// Holds device data erasure details. + /// Details about which key encryption type is being used. + /// The expected size of the data, which needs to be transferred in this job, in terabytes. + /// Available actions on the job. + /// Last mitigation action performed on the job. + /// + /// Datacenter address to ship to, for the given sku and storage location. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// DataCenter code. + /// Contains the map of disk serial number to the disk details for import jobs. + /// Contains the map of disk serial number to the disk details for export jobs. + /// Copy progress per disk. + /// Delivery package shipping details. + /// Return package shipping details. + /// Flag to indicate if disk manifest should be backed-up in the Storage Account. + /// A new instance for mocking. + public static DataBoxCustomerDiskJobDetails DataBoxCustomerDiskJobDetails(IEnumerable jobStages = null, DataBoxContactDetails contactDetails = null, DataBoxShippingAddress shippingAddress = null, PackageShippingDetails deliveryPackage = null, PackageShippingDetails returnPackage = null, IEnumerable dataImportDetails = null, IEnumerable dataExportDetails = null, DataBoxOrderPreferences preferences = null, ReverseShippingDetails reverseShippingDetails = null, IEnumerable copyLogDetails = null, string reverseShipmentLabelSasKey = null, string chainOfCustodySasKey = null, DeviceErasureDetails deviceErasureDetails = null, DataBoxKeyEncryptionKey keyEncryptionKey = null, int? expectedDataSizeInTerabytes = null, IEnumerable actions = null, LastMitigationActionOnJob lastMitigationActionOnJob = null, DataCenterAddressResult dataCenterAddress = null, DataCenterCode? dataCenterCode = null, IDictionary importDiskDetails = null, IReadOnlyDictionary exportDiskDetails = null, IEnumerable copyProgress = null, PackageCarrierInfo deliverToDataCenterPackageDetails = null, PackageCarrierDetails returnToCustomerPackageDetails = null, bool? enableManifestBackup = null) + { + jobStages ??= new List(); + dataImportDetails ??= new List(); + dataExportDetails ??= new List(); + copyLogDetails ??= new List(); + actions ??= new List(); + importDiskDetails ??= new Dictionary(); + exportDiskDetails ??= new Dictionary(); + copyProgress ??= new List(); + + return new DataBoxCustomerDiskJobDetails(jobStages?.ToList(), contactDetails, shippingAddress, deliveryPackage, returnPackage, dataImportDetails?.ToList(), dataExportDetails?.ToList(), DataBoxOrderType.DataBoxCustomerDisk, preferences, reverseShippingDetails, copyLogDetails?.ToList(), reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTerabytes, actions?.ToList(), lastMitigationActionOnJob, dataCenterAddress, dataCenterCode, importDiskDetails, exportDiskDetails, copyProgress?.ToList(), deliverToDataCenterPackageDetails, returnToCustomerPackageDetails, enableManifestBackup); + } + + /// Initializes a new instance of ImportDiskDetails. + /// The relative path of the manifest file on the disk. + /// The Base16-encoded MD5 hash of the manifest file on the disk. + /// BitLocker key used to encrypt the disk. + /// Path to backed up manifest, only returned if enableManifestBackup is true. + /// A new instance for mocking. + public static ImportDiskDetails ImportDiskDetails(string manifestFile = null, string manifestHash = null, string bitLockerKey = null, string backupManifestCloudPath = null) + { + return new ImportDiskDetails(manifestFile, manifestHash, bitLockerKey, backupManifestCloudPath); + } + + /// Initializes a new instance of ExportDiskDetails. + /// The relative path of the manifest file on the disk. + /// The Base16-encoded MD5 hash of the manifest file on the disk. + /// Path to backed up manifest, only returned if enableManifestBackup is true. + /// A new instance for mocking. + public static ExportDiskDetails ExportDiskDetails(string manifestFile = null, string manifestHash = null, string backupManifestCloudPath = null) + { + return new ExportDiskDetails(manifestFile, manifestHash, backupManifestCloudPath); + } + + /// Initializes a new instance of CustomerDiskJobSecrets. + /// Dc Access Security Code for Customer Managed Shipping. + /// Error while fetching the secrets. + /// Contains the list of secrets object for that device. + /// Carrier Account Number of the customer. + /// A new instance for mocking. + public static CustomerDiskJobSecrets CustomerDiskJobSecrets(DataCenterAccessSecurityCode dataCenterAccessSecurityCode = null, ResponseError error = null, IEnumerable diskSecrets = null, string carrierAccountNumber = null) + { + diskSecrets ??= new List(); + + return new CustomerDiskJobSecrets(DataBoxOrderType.DataBoxCustomerDisk, dataCenterAccessSecurityCode, error, diskSecrets?.ToList(), carrierAccountNumber); + } + + /// Initializes a new instance of DataBoxDiskSecret. + /// Serial number of the assigned disk. + /// Bit Locker key of the disk which can be used to unlock the disk to copy data. + /// A new instance for mocking. + public static DataBoxDiskSecret DataBoxDiskSecret(string diskSerialNumber = null, string bitLockerKey = null) + { + return new DataBoxDiskSecret(diskSerialNumber, bitLockerKey); + } + + /// Initializes a new instance of DataCenterAddressInstructionResult. + /// List of supported carriers for return shipment. + /// Azure Location where the Data Center serves primarily. + /// Data center communication instruction. + /// A new instance for mocking. + public static DataCenterAddressInstructionResult DataCenterAddressInstructionResult(IEnumerable supportedCarriersForReturnShipment = null, AzureLocation? dataCenterAzureLocation = null, string communicationInstruction = null) + { + supportedCarriersForReturnShipment ??= new List(); + + return new DataCenterAddressInstructionResult(DataCenterAddressType.DataCenterAddressInstruction, supportedCarriersForReturnShipment?.ToList(), dataCenterAzureLocation, communicationInstruction); + } + + /// Initializes a new instance of DataCenterAddressLocationResult. + /// List of supported carriers for return shipment. + /// Azure Location where the Data Center serves primarily. + /// Contact person name. + /// Company name. + /// Street address line 1. + /// Street address line 2. + /// Street address line 3. + /// City name. + /// name of the state. + /// Zip code. + /// name of the country. + /// Phone number. + /// Phone extension. + /// Address type. + /// Special instruction for shipping. + /// A new instance for mocking. + public static DataCenterAddressLocationResult DataCenterAddressLocationResult(IEnumerable supportedCarriersForReturnShipment = null, AzureLocation? dataCenterAzureLocation = null, string contactPersonName = null, string company = null, string street1 = null, string street2 = null, string street3 = null, string city = null, string state = null, string zip = null, string country = null, string phone = null, string phoneExtension = null, string addressType = null, string additionalShippingInformation = null) + { + supportedCarriersForReturnShipment ??= new List(); + + return new DataCenterAddressLocationResult(DataCenterAddressType.DataCenterAddressLocation, supportedCarriersForReturnShipment?.ToList(), dataCenterAzureLocation, contactPersonName, company, street1, street2, street3, city, state, zip, country, phone, phoneExtension, addressType, additionalShippingInformation); + } + + /// Initializes a new instance of DataBoxAccountCopyLogDetails. + /// Account name. + /// Link for copy logs. + /// Link for copy verbose logs. This will be set only when LogCollectionLevel is set to Verbose. + /// A new instance for mocking. + public static DataBoxAccountCopyLogDetails DataBoxAccountCopyLogDetails(string accountName = null, string copyLogLink = null, string copyVerboseLogLink = null) + { + return new DataBoxAccountCopyLogDetails(DataBoxOrderType.DataBox, accountName, copyLogLink, copyVerboseLogLink); + } + + /// Initializes a new instance of DataBoxCustomerDiskCopyLogDetails. + /// Disk Serial Number. + /// Link for copy error logs. + /// Link for copy verbose logs. + /// A new instance for mocking. + public static DataBoxCustomerDiskCopyLogDetails DataBoxCustomerDiskCopyLogDetails(string serialNumber = null, string errorLogLink = null, string verboseLogLink = null) + { + return new DataBoxCustomerDiskCopyLogDetails(DataBoxOrderType.DataBoxCustomerDisk, serialNumber, errorLogLink, verboseLogLink); + } + + /// Initializes a new instance of DataBoxDiskCopyLogDetails. + /// Disk Serial Number. + /// Link for copy error logs. + /// Link for copy verbose logs. + /// A new instance for mocking. + public static DataBoxDiskCopyLogDetails DataBoxDiskCopyLogDetails(string diskSerialNumber = null, string errorLogLink = null, string verboseLogLink = null) + { + return new DataBoxDiskCopyLogDetails(DataBoxOrderType.DataBoxDisk, diskSerialNumber, errorLogLink, verboseLogLink); + } + + /// Initializes a new instance of DataBoxDiskGranularCopyLogDetails. + /// Disk Serial Number. + /// Account id. + /// Link for copy error logs. + /// Link for copy verbose logs. + /// A new instance for mocking. + public static DataBoxDiskGranularCopyLogDetails DataBoxDiskGranularCopyLogDetails(string serialNumber = null, ResourceIdentifier accountId = null, string errorLogLink = null, string verboseLogLink = null) + { + return new DataBoxDiskGranularCopyLogDetails(DataBoxOrderType.DataBoxCustomerDisk, serialNumber, accountId, errorLogLink, verboseLogLink); + } + + /// Initializes a new instance of DataBoxDiskCopyProgress. + /// The serial number of the disk. + /// Bytes copied during the copy of disk. + /// Indicates the percentage completed for the copy of the disk. + /// The Status of the copy. + /// Error, if any, in the stage. + /// Available actions on the job. + /// A new instance for mocking. + public static DataBoxDiskCopyProgress DataBoxDiskCopyProgress(string serialNumber = null, long? bytesCopied = null, int? percentComplete = null, DataBoxCopyStatus? status = null, ResponseError error = null, IEnumerable actions = null) + { + actions ??= new List(); + + return new DataBoxDiskCopyProgress(serialNumber, bytesCopied, percentComplete, status, error, actions?.ToList()); + } + + /// Initializes a new instance of DataBoxDiskGranularCopyProgress. + /// Name of the storage account. This will be empty for data account types other than storage account. + /// Transfer type of data. + /// Data Account Type. + /// Id of the account where the data needs to be uploaded. + /// To indicate bytes transferred. + /// Total amount of data to be processed by the job. + /// Number of files processed. + /// Total files to process. + /// Number of files not adhering to azure naming conventions which were processed by automatic renaming. + /// Total amount of data not adhering to azure naming conventions which were processed by automatic renaming. + /// Number of folders not adhering to azure naming conventions which were processed by automatic renaming. + /// Number of files which could not be copied. + /// To indicate directories errored out in the job. + /// To indicate directories renamed. + /// + /// To indicate if enumeration of data is in progress. + /// Until this is true, the TotalBytesToProcess may not be valid. + /// + /// Error, if any, in the stage. + /// Available actions on the job. + /// Disk Serial Number. + /// The Status of the copy. + /// A new instance for mocking. + public static DataBoxDiskGranularCopyProgress DataBoxDiskGranularCopyProgress(string storageAccountName = null, DataBoxJobTransferType? transferType = null, DataAccountType? dataAccountType = null, ResourceIdentifier accountId = null, long? bytesProcessed = null, long? totalBytesToProcess = null, long? filesProcessed = null, long? totalFilesToProcess = null, long? invalidFilesProcessed = null, long? invalidFileBytesUploaded = null, long? renamedContainerCount = null, long? filesErroredOut = null, long? directoriesErroredOut = null, long? invalidDirectoriesProcessed = null, bool? isEnumerationInProgress = null, ResponseError error = null, IEnumerable actions = null, string serialNumber = null, DataBoxCopyStatus? copyStatus = null) + { + actions ??= new List(); + + return new DataBoxDiskGranularCopyProgress(storageAccountName, transferType, dataAccountType, accountId, bytesProcessed, totalBytesToProcess, filesProcessed, totalFilesToProcess, invalidFilesProcessed, invalidFileBytesUploaded, renamedContainerCount, filesErroredOut, directoriesErroredOut, invalidDirectoriesProcessed, isEnumerationInProgress, error, actions?.ToList(), serialNumber, copyStatus); + } + + /// Initializes a new instance of DataBoxDiskJobDetails. + /// List of stages that run in the job. + /// Contact details for notification and shipping. + /// Shipping address of the customer. + /// Delivery package shipping details. + /// Return package shipping details. + /// Details of the data to be imported into azure. + /// Details of the data to be exported from azure. + /// Preferences for the order. + /// Optional Reverse Shipping details for order. + /// + /// List of copy log details. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// Shared access key to download the return shipment label. + /// Shared access key to download the chain of custody logs. + /// Holds device data erasure details. + /// Details about which key encryption type is being used. + /// The expected size of the data, which needs to be transferred in this job, in terabytes. + /// Available actions on the job. + /// Last mitigation action performed on the job. + /// + /// Datacenter address to ship to, for the given sku and storage location. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// DataCenter code. + /// User preference on what size disks are needed for the job. The map is from the disk size in TB to the count. Eg. {2,5} means 5 disks of 2 TB size. Key is string but will be checked against an int. + /// Copy progress per disk. + /// Copy progress per disk. + /// Copy progress per disk. + /// Contains the map of disk serial number to the disk size being used for the job. Is returned only after the disks are shipped to the customer. + /// User entered passkey for DataBox Disk job. + /// A new instance for mocking. + public static DataBoxDiskJobDetails DataBoxDiskJobDetails(IEnumerable jobStages = null, DataBoxContactDetails contactDetails = null, DataBoxShippingAddress shippingAddress = null, PackageShippingDetails deliveryPackage = null, PackageShippingDetails returnPackage = null, IEnumerable dataImportDetails = null, IEnumerable dataExportDetails = null, DataBoxOrderPreferences preferences = null, ReverseShippingDetails reverseShippingDetails = null, IEnumerable copyLogDetails = null, string reverseShipmentLabelSasKey = null, string chainOfCustodySasKey = null, DeviceErasureDetails deviceErasureDetails = null, DataBoxKeyEncryptionKey keyEncryptionKey = null, int? expectedDataSizeInTerabytes = null, IEnumerable actions = null, LastMitigationActionOnJob lastMitigationActionOnJob = null, DataCenterAddressResult dataCenterAddress = null, DataCenterCode? dataCenterCode = null, IDictionary preferredDisks = null, IEnumerable copyProgress = null, IEnumerable granularCopyProgress = null, IEnumerable granularCopyLogDetails = null, IReadOnlyDictionary disksAndSizeDetails = null, string passkey = null) + { + jobStages ??= new List(); + dataImportDetails ??= new List(); + dataExportDetails ??= new List(); + copyLogDetails ??= new List(); + actions ??= new List(); + preferredDisks ??= new Dictionary(); + copyProgress ??= new List(); + granularCopyProgress ??= new List(); + granularCopyLogDetails ??= new List(); + disksAndSizeDetails ??= new Dictionary(); + + return new DataBoxDiskJobDetails(jobStages?.ToList(), contactDetails, shippingAddress, deliveryPackage, returnPackage, dataImportDetails?.ToList(), dataExportDetails?.ToList(), DataBoxOrderType.DataBoxDisk, preferences, reverseShippingDetails, copyLogDetails?.ToList(), reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTerabytes, actions?.ToList(), lastMitigationActionOnJob, dataCenterAddress, dataCenterCode, preferredDisks, copyProgress?.ToList(), granularCopyProgress?.ToList(), granularCopyLogDetails?.ToList(), disksAndSizeDetails, passkey); + } + + /// Initializes a new instance of DataBoxDiskJobSecrets. + /// Dc Access Security Code for Customer Managed Shipping. + /// Error while fetching the secrets. + /// Contains the list of secrets object for that device. + /// PassKey for the disk Job. + /// Whether passkey was provided by user. + /// A new instance for mocking. + public static DataBoxDiskJobSecrets DataBoxDiskJobSecrets(DataCenterAccessSecurityCode dataCenterAccessSecurityCode = null, ResponseError error = null, IEnumerable diskSecrets = null, string passkey = null, bool? isPasskeyUserDefined = null) + { + diskSecrets ??= new List(); + + return new DataBoxDiskJobSecrets(DataBoxOrderType.DataBoxDisk, dataCenterAccessSecurityCode, error, diskSecrets?.ToList(), passkey, isPasskeyUserDefined); + } + + /// Initializes a new instance of DataBoxHeavyAccountCopyLogDetails. + /// Account name. + /// Link for copy logs. + /// Link for copy verbose logs. This will be set only when the LogCollectionLevel is set to verbose. + /// A new instance for mocking. + public static DataBoxHeavyAccountCopyLogDetails DataBoxHeavyAccountCopyLogDetails(string accountName = null, IEnumerable copyLogLink = null, IEnumerable copyVerboseLogLink = null) + { + copyLogLink ??= new List(); + copyVerboseLogLink ??= new List(); + + return new DataBoxHeavyAccountCopyLogDetails(DataBoxOrderType.DataBoxHeavy, accountName, copyLogLink?.ToList(), copyVerboseLogLink?.ToList()); + } + + /// Initializes a new instance of DataBoxHeavyJobDetails. + /// List of stages that run in the job. + /// Contact details for notification and shipping. + /// Shipping address of the customer. + /// Delivery package shipping details. + /// Return package shipping details. + /// Details of the data to be imported into azure. + /// Details of the data to be exported from azure. + /// Preferences for the order. + /// Optional Reverse Shipping details for order. + /// + /// List of copy log details. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// Shared access key to download the return shipment label. + /// Shared access key to download the chain of custody logs. + /// Holds device data erasure details. + /// Details about which key encryption type is being used. + /// The expected size of the data, which needs to be transferred in this job, in terabytes. + /// Available actions on the job. + /// Last mitigation action performed on the job. + /// + /// Datacenter address to ship to, for the given sku and storage location. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// DataCenter code. + /// Copy progress per account. + /// Set Device password for unlocking Databox Heavy. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+. + /// A new instance for mocking. + public static DataBoxHeavyJobDetails DataBoxHeavyJobDetails(IEnumerable jobStages = null, DataBoxContactDetails contactDetails = null, DataBoxShippingAddress shippingAddress = null, PackageShippingDetails deliveryPackage = null, PackageShippingDetails returnPackage = null, IEnumerable dataImportDetails = null, IEnumerable dataExportDetails = null, DataBoxOrderPreferences preferences = null, ReverseShippingDetails reverseShippingDetails = null, IEnumerable copyLogDetails = null, string reverseShipmentLabelSasKey = null, string chainOfCustodySasKey = null, DeviceErasureDetails deviceErasureDetails = null, DataBoxKeyEncryptionKey keyEncryptionKey = null, int? expectedDataSizeInTerabytes = null, IEnumerable actions = null, LastMitigationActionOnJob lastMitigationActionOnJob = null, DataCenterAddressResult dataCenterAddress = null, DataCenterCode? dataCenterCode = null, IEnumerable copyProgress = null, string devicePassword = null) + { + jobStages ??= new List(); + dataImportDetails ??= new List(); + dataExportDetails ??= new List(); + copyLogDetails ??= new List(); + actions ??= new List(); + copyProgress ??= new List(); + + return new DataBoxHeavyJobDetails(jobStages?.ToList(), contactDetails, shippingAddress, deliveryPackage, returnPackage, dataImportDetails?.ToList(), dataExportDetails?.ToList(), DataBoxOrderType.DataBoxHeavy, preferences, reverseShippingDetails, copyLogDetails?.ToList(), reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTerabytes, actions?.ToList(), lastMitigationActionOnJob, dataCenterAddress, dataCenterCode, copyProgress?.ToList(), devicePassword); + } + + /// Initializes a new instance of DataBoxHeavyJobSecrets. + /// Dc Access Security Code for Customer Managed Shipping. + /// Error while fetching the secrets. + /// Contains the list of secret objects for a databox heavy job. + /// A new instance for mocking. + public static DataBoxHeavyJobSecrets DataBoxHeavyJobSecrets(DataCenterAccessSecurityCode dataCenterAccessSecurityCode = null, ResponseError error = null, IEnumerable cabinetPodSecrets = null) + { + cabinetPodSecrets ??= new List(); + + return new DataBoxHeavyJobSecrets(DataBoxOrderType.DataBoxHeavy, dataCenterAccessSecurityCode, error, cabinetPodSecrets?.ToList()); + } + + /// Initializes a new instance of DataBoxHeavySecret. + /// Serial number of the assigned device. + /// Password for out of the box experience on device. + /// Network configuration of the appliance. + /// The base 64 encoded public key to authenticate with the device. + /// Per account level access credentials. + /// A new instance for mocking. + public static DataBoxHeavySecret DataBoxHeavySecret(string deviceSerialNumber = null, string devicePassword = null, IEnumerable networkConfigurations = null, string encodedValidationCertPubKey = null, IEnumerable accountCredentialDetails = null) + { + networkConfigurations ??= new List(); + accountCredentialDetails ??= new List(); + + return new DataBoxHeavySecret(deviceSerialNumber, devicePassword, networkConfigurations?.ToList(), encodedValidationCertPubKey, accountCredentialDetails?.ToList()); + } + + /// Initializes a new instance of DataBoxJobDetails. + /// List of stages that run in the job. + /// Contact details for notification and shipping. + /// Shipping address of the customer. + /// Delivery package shipping details. + /// Return package shipping details. + /// Details of the data to be imported into azure. + /// Details of the data to be exported from azure. + /// Preferences for the order. + /// Optional Reverse Shipping details for order. + /// + /// List of copy log details. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// Shared access key to download the return shipment label. + /// Shared access key to download the chain of custody logs. + /// Holds device data erasure details. + /// Details about which key encryption type is being used. + /// The expected size of the data, which needs to be transferred in this job, in terabytes. + /// Available actions on the job. + /// Last mitigation action performed on the job. + /// + /// Datacenter address to ship to, for the given sku and storage location. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// DataCenter code. + /// Copy progress per storage account. + /// Set Device password for unlocking Databox. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+. + /// A new instance for mocking. + public static DataBoxJobDetails DataBoxJobDetails(IEnumerable jobStages = null, DataBoxContactDetails contactDetails = null, DataBoxShippingAddress shippingAddress = null, PackageShippingDetails deliveryPackage = null, PackageShippingDetails returnPackage = null, IEnumerable dataImportDetails = null, IEnumerable dataExportDetails = null, DataBoxOrderPreferences preferences = null, ReverseShippingDetails reverseShippingDetails = null, IEnumerable copyLogDetails = null, string reverseShipmentLabelSasKey = null, string chainOfCustodySasKey = null, DeviceErasureDetails deviceErasureDetails = null, DataBoxKeyEncryptionKey keyEncryptionKey = null, int? expectedDataSizeInTerabytes = null, IEnumerable actions = null, LastMitigationActionOnJob lastMitigationActionOnJob = null, DataCenterAddressResult dataCenterAddress = null, DataCenterCode? dataCenterCode = null, IEnumerable copyProgress = null, string devicePassword = null) + { + jobStages ??= new List(); + dataImportDetails ??= new List(); + dataExportDetails ??= new List(); + copyLogDetails ??= new List(); + actions ??= new List(); + copyProgress ??= new List(); + + return new DataBoxJobDetails(jobStages?.ToList(), contactDetails, shippingAddress, deliveryPackage, returnPackage, dataImportDetails?.ToList(), dataExportDetails?.ToList(), DataBoxOrderType.DataBox, preferences, reverseShippingDetails, copyLogDetails?.ToList(), reverseShipmentLabelSasKey, chainOfCustodySasKey, deviceErasureDetails, keyEncryptionKey, expectedDataSizeInTerabytes, actions?.ToList(), lastMitigationActionOnJob, dataCenterAddress, dataCenterCode, copyProgress?.ToList(), devicePassword); + } + + /// Initializes a new instance of DataboxJobSecrets. + /// Dc Access Security Code for Customer Managed Shipping. + /// Error while fetching the secrets. + /// Contains the list of secret objects for a job. + /// A new instance for mocking. + public static DataboxJobSecrets DataboxJobSecrets(DataCenterAccessSecurityCode dataCenterAccessSecurityCode = null, ResponseError error = null, IEnumerable podSecrets = null) + { + podSecrets ??= new List(); + + return new DataboxJobSecrets(DataBoxOrderType.DataBox, dataCenterAccessSecurityCode, error, podSecrets?.ToList()); + } + + /// Initializes a new instance of DataBoxSecret. + /// Serial number of the assigned device. + /// Password for out of the box experience on device. + /// Network configuration of the appliance. + /// The base 64 encoded public key to authenticate with the device. + /// Per account level access credentials. + /// A new instance for mocking. + public static DataBoxSecret DataBoxSecret(string deviceSerialNumber = null, string devicePassword = null, IEnumerable networkConfigurations = null, string encodedValidationCertPubKey = null, IEnumerable accountCredentialDetails = null) + { + networkConfigurations ??= new List(); + accountCredentialDetails ??= new List(); + + return new DataBoxSecret(deviceSerialNumber, devicePassword, networkConfigurations?.ToList(), encodedValidationCertPubKey, accountCredentialDetails?.ToList()); + } + + /// Initializes a new instance of DataTransferDetailsValidationResult. + /// Error code and message of validation response. + /// Data transfer details validation status. + /// A new instance for mocking. + public static DataTransferDetailsValidationResult DataTransferDetailsValidationResult(ResponseError error = null, DataBoxValidationStatus? status = null) + { + return new DataTransferDetailsValidationResult(DataBoxValidationInputDiscriminator.ValidateDataTransferDetails, error, status); + } + + /// Initializes a new instance of PreferencesValidationResult. + /// Error code and message of validation response. + /// Validation status of requested data center and transport. + /// A new instance for mocking. + public static PreferencesValidationResult PreferencesValidationResult(ResponseError error = null, DataBoxValidationStatus? status = null) + { + return new PreferencesValidationResult(DataBoxValidationInputDiscriminator.ValidatePreferences, error, status); + } + + /// Initializes a new instance of SkuAvailabilityValidationResult. + /// Error code and message of validation response. + /// Sku availability validation status. + /// A new instance for mocking. + public static SkuAvailabilityValidationResult SkuAvailabilityValidationResult(ResponseError error = null, DataBoxValidationStatus? status = null) + { + return new SkuAvailabilityValidationResult(DataBoxValidationInputDiscriminator.ValidateSkuAvailability, error, status); + } + + /// Initializes a new instance of SubscriptionIsAllowedToCreateJobValidationResult. + /// Error code and message of validation response. + /// Validation status of subscription permission to create job. + /// A new instance for mocking. + public static SubscriptionIsAllowedToCreateJobValidationResult SubscriptionIsAllowedToCreateJobValidationResult(ResponseError error = null, DataBoxValidationStatus? status = null) + { + return new SubscriptionIsAllowedToCreateJobValidationResult(DataBoxValidationInputDiscriminator.ValidateSubscriptionIsAllowedToCreateJob, error, status); + } + } +} diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/autorest.md b/sdk/databox/Azure.ResourceManager.DataBox/src/autorest.md index 89efd2e08970..bc45e0460599 100644 --- a/sdk/databox/Azure.ResourceManager.DataBox/src/autorest.md +++ b/sdk/databox/Azure.ResourceManager.DataBox/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: DataBox namespace: Azure.ResourceManager.DataBox diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/CHANGELOG.md b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/CHANGELOG.md index 65810be7bdff..a0056accb3b5 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/CHANGELOG.md +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0-beta.1 (2023-05-29) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.0.1 (2023-02-16) ### Other Changes diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/api/Azure.ResourceManager.DataBoxEdge.netstandard2.0.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/api/Azure.ResourceManager.DataBoxEdge.netstandard2.0.cs index b70af4c58ce7..f7be6192eea7 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/api/Azure.ResourceManager.DataBoxEdge.netstandard2.0.cs +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/api/Azure.ResourceManager.DataBoxEdge.netstandard2.0.cs @@ -642,6 +642,76 @@ protected MonitoringMetricConfigurationResource() { } } namespace Azure.ResourceManager.DataBoxEdge.Models { + public static partial class ArmDataBoxEdgeModelFactory + { + public static Azure.ResourceManager.DataBoxEdge.Models.AvailableDataBoxEdgeSku AvailableDataBoxEdgeSku(string resourceType = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSkuName? name = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSkuName?), string kind = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSkuTier? tier = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSkuTier?), string size = null, string family = null, System.Collections.Generic.IEnumerable locations = null, System.Collections.Generic.IEnumerable apiVersions = null, System.Collections.Generic.IEnumerable locationInfo = null, System.Collections.Generic.IEnumerable costs = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSkuSignupOption? signupOption = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSkuSignupOption?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSkuVersion? version = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSkuVersion?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSkuAvailability? availability = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSkuAvailability?), System.Collections.Generic.IEnumerable shipmentTypes = null, System.Collections.Generic.IEnumerable capabilities = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.BandwidthScheduleData BandwidthScheduleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.TimeSpan startOn = default(System.TimeSpan), System.TimeSpan stopOn = default(System.TimeSpan), int rateInMbps = 0, System.Collections.Generic.IEnumerable days = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.CloudEdgeManagementRole CloudEdgeManagementRole(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRoleStatus? localManagementStatus = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRoleStatus?), Azure.ResourceManager.DataBoxEdge.Models.EdgeProfileSubscription edgeSubscription = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRoleStatus? roleStatus = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRoleStatus?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.CniConfig CniConfig(string cniConfigType = null, string version = null, string podSubnet = null, string serviceSubnet = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.DataBoxEdgeAlertData DataBoxEdgeAlertData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string title = null, string alertType = null, System.DateTimeOffset? appearedOn = default(System.DateTimeOffset?), string recommendation = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeAlertSeverity? severity = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeAlertSeverity?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeAlertErrorDetails errorDetails = null, System.Collections.Generic.IReadOnlyDictionary detailedInformation = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeAlertErrorDetails DataBoxEdgeAlertErrorDetails(string errorCode = null, string errorMessage = null, int? occurrences = default(int?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDataCenterAccessCode DataBoxEdgeDataCenterAccessCode(string authCode = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDeviceCapacityInfo DataBoxEdgeDeviceCapacityInfo(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? timeStamp = default(System.DateTimeOffset?), Azure.ResourceManager.DataBoxEdge.Models.EdgeClusterStorageViewInfo clusterStorageCapacityInfo = null, Azure.ResourceManager.DataBoxEdge.Models.EdgeClusterCapacityViewInfo clusterComputeCapacityInfo = null, System.Collections.Generic.IDictionary nodeCapacityInfos = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.DataBoxEdgeDeviceData DataBoxEdgeDeviceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSku sku = null, Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDeviceKind? kind = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDeviceKind?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDeviceStatus? dataBoxEdgeDeviceStatus = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDeviceStatus?), string serialNumber = null, string description = null, string modelDescription = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDeviceType? deviceType = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDeviceType?), string friendlyName = null, string culture = null, string deviceModel = null, string deviceSoftwareVersion = null, long? deviceLocalCapacity = default(long?), string timeZone = null, string deviceHcsVersion = null, System.Collections.Generic.IEnumerable configuredRoleTypes = null, int? nodeCount = default(int?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeResourceMoveDetails resourceMoveDetails = null, Azure.ResourceManager.DataBoxEdge.Models.EdgeProfileSubscription edgeSubscription = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDataResidencyType? residencyType = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDataResidencyType?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDeviceExtendedInfo DataBoxEdgeDeviceExtendedInfo(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string encryptionKeyThumbprint = null, string encryptionKey = null, string resourceKey = null, Azure.Core.ResourceIdentifier clientSecretStoreId = null, System.Uri clientSecretStoreUri = null, string channelIntegrityKeyName = null, string channelIntegrityKeyVersion = null, Azure.ResourceManager.DataBoxEdge.Models.EdgeKeyVaultSyncStatus? keyVaultSyncStatus = default(Azure.ResourceManager.DataBoxEdge.Models.EdgeKeyVaultSyncStatus?), System.Collections.Generic.IReadOnlyDictionary deviceSecrets = null, Azure.ResourceManager.DataBoxEdge.Models.EdgeClusterWitnessType? clusterWitnessType = default(Azure.ResourceManager.DataBoxEdge.Models.EdgeClusterWitnessType?), string fileShareWitnessLocation = null, string fileShareWitnessUsername = null, string cloudWitnessStorageAccountName = null, string cloudWitnessContainerName = null, string cloudWitnessStorageEndpoint = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDeviceNetworkSettings DataBoxEdgeDeviceNetworkSettings(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IEnumerable networkAdapters = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDeviceSecret DataBoxEdgeDeviceSecret(Azure.ResourceManager.DataBoxEdge.Models.AsymmetricEncryptedSecret encryptedSecret = null, string keyVaultId = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDeviceUpdateSummary DataBoxEdgeDeviceUpdateSummary(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string deviceVersionNumber = null, string friendlyDeviceVersionName = null, System.DateTimeOffset? deviceLastScannedOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastCompletedScanJobOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastSuccessfulScanJobOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastCompletedDownloadJobOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier lastCompletedDownloadJobId = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeJobStatus? lastDownloadJobStatus = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeJobStatus?), System.DateTimeOffset? lastSuccessfulInstallJobOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastCompletedInstallJobOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier lastCompletedInstallJobId = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeJobStatus? lastInstallJobStatus = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeJobStatus?), int? totalNumberOfUpdatesAvailable = default(int?), int? totalNumberOfUpdatesPendingDownload = default(int?), int? totalNumberOfUpdatesPendingInstall = default(int?), Azure.ResourceManager.DataBoxEdge.Models.InstallRebootBehavior? rebootBehavior = default(Azure.ResourceManager.DataBoxEdge.Models.InstallRebootBehavior?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeUpdateOperation? ongoingUpdateOperation = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeUpdateOperation?), Azure.Core.ResourceIdentifier inProgressDownloadJobId = null, Azure.Core.ResourceIdentifier inProgressInstallJobId = null, System.DateTimeOffset? inProgressDownloadJobStartedOn = default(System.DateTimeOffset?), System.DateTimeOffset? inProgressInstallJobStartedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable updateTitles = null, System.Collections.Generic.IEnumerable updates = null, double? totalUpdateSizeInBytes = default(double?), int? totalTimeInMinutes = default(int?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeEtcdInfo DataBoxEdgeEtcdInfo(string etcdInfoType = null, string version = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeIPv4Config DataBoxEdgeIPv4Config(System.Net.IPAddress ipAddress = null, string subnet = null, string gateway = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeIPv6Config DataBoxEdgeIPv6Config(string ipAddress = null, int? prefixLength = default(int?), string gateway = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.DataBoxEdgeJobData DataBoxEdgeJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeJobStatus? status = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeJobStatus?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), int? percentComplete = default(int?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeJobErrorDetails error = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeJobType? jobType = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeJobType?), Azure.ResourceManager.DataBoxEdge.Models.UpdateOperationStage? currentStage = default(Azure.ResourceManager.DataBoxEdge.Models.UpdateOperationStage?), Azure.ResourceManager.DataBoxEdge.Models.UpdateDownloadProgress downloadProgress = null, Azure.ResourceManager.DataBoxEdge.Models.UpdateInstallProgress installProgress = null, int? totalRefreshErrors = default(int?), string errorManifestFile = null, Azure.Core.ResourceIdentifier refreshedEntityId = null, string folder = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeJobErrorDetails DataBoxEdgeJobErrorDetails(System.Collections.Generic.IEnumerable errorDetails = null, string code = null, string message = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeJobErrorItem DataBoxEdgeJobErrorItem(System.Collections.Generic.IEnumerable recommendations = null, string code = null, string message = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeLoadBalancerConfig DataBoxEdgeLoadBalancerConfig(string loadBalancerConfigType = null, string version = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeMountPointMap DataBoxEdgeMountPointMap(Azure.Core.ResourceIdentifier shareId = null, Azure.Core.ResourceIdentifier roleId = null, string mountPoint = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeMountType? mountType = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeMountType?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRoleType? roleType = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRoleType?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeNetworkAdapter DataBoxEdgeNetworkAdapter(string adapterId = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeNetworkAdapterPosition adapterPosition = null, int? index = default(int?), System.Guid? nodeId = default(System.Guid?), string networkAdapterName = null, string label = null, string macAddress = null, long? linkSpeed = default(long?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeNetworkAdapterStatus? status = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeNetworkAdapterStatus?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeNetworkAdapterRdmaStatus? rdmaStatus = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeNetworkAdapterRdmaStatus?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeNetworkAdapterDhcpStatus? dhcpStatus = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeNetworkAdapterDhcpStatus?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeIPv4Config ipv4Configuration = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeIPv6Config ipv6Configuration = null, string ipv6LinkLocalAddress = null, System.Collections.Generic.IEnumerable dnsServers = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeNetworkAdapterPosition DataBoxEdgeNetworkAdapterPosition(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeNetworkGroup? networkGroup = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeNetworkGroup?), int? port = default(int?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeNode DataBoxEdgeNode(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeNodeStatus? nodeStatus = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeNodeStatus?), string nodeChassisSerialNumber = null, string nodeSerialNumber = null, string nodeDisplayName = null, string nodeFriendlySoftwareVersion = null, string nodeHcsVersion = null, System.Guid? nodeInstanceId = default(System.Guid?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.DataBoxEdgeOrderData DataBoxEdgeOrderData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string kind = null, string orderId = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeContactDetails contactInformation = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeShippingAddress shippingAddress = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeOrderStatus currentStatus = null, System.Collections.Generic.IEnumerable orderHistory = null, string serialNumber = null, System.Collections.Generic.IEnumerable deliveryTrackingInfo = null, System.Collections.Generic.IEnumerable returnTrackingInfo = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeShipmentType? shipmentType = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeShipmentType?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeOrderStatus DataBoxEdgeOrderStatus(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeOrderState status = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeOrderState), System.DateTimeOffset? updateOn = default(System.DateTimeOffset?), string comments = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeTrackingInfo trackingInformation = null, System.Collections.Generic.IReadOnlyDictionary additionalOrderDetails = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeResourceMoveDetails DataBoxEdgeResourceMoveDetails(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeResourceMoveStatus? operationInProgress = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeResourceMoveStatus?), System.DateTimeOffset? operationInProgressLockTimeoutInUtc = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.DataBoxEdgeRoleAddonData DataBoxEdgeRoleAddonData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string kind = "Unknown") { throw null; } + public static Azure.ResourceManager.DataBoxEdge.DataBoxEdgeRoleData DataBoxEdgeRoleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string kind = "Unknown") { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSecuritySettings DataBoxEdgeSecuritySettings(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DataBoxEdge.Models.AsymmetricEncryptedSecret deviceAdminPassword = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.DataBoxEdgeShareData DataBoxEdgeShareData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.DataBoxEdge.Models.ShareStatus shareStatus = default(Azure.ResourceManager.DataBoxEdge.Models.ShareStatus), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeShareMonitoringStatus monitoringStatus = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeShareMonitoringStatus), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeStorageContainerInfo azureContainerInfo = null, Azure.ResourceManager.DataBoxEdge.Models.ShareAccessProtocol accessProtocol = default(Azure.ResourceManager.DataBoxEdge.Models.ShareAccessProtocol), System.Collections.Generic.IEnumerable userAccessRights = null, System.Collections.Generic.IEnumerable clientAccessRights = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRefreshDetails refreshDetails = null, System.Collections.Generic.IEnumerable shareMappings = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDataPolicy? dataPolicy = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDataPolicy?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSkuCapability DataBoxEdgeSkuCapability(string name = null, string value = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSkuCost DataBoxEdgeSkuCost(string meterId = null, long? quantity = default(long?), string extendedUnit = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSkuLocationInfo DataBoxEdgeSkuLocationInfo(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IEnumerable zones = null, System.Collections.Generic.IEnumerable sites = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.DataBoxEdgeStorageAccountCredentialData DataBoxEdgeStorageAccountCredentialData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string alias = null, string userName = null, Azure.ResourceManager.DataBoxEdge.Models.AsymmetricEncryptedSecret accountKey = null, string connectionString = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeStorageAccountSslStatus sslStatus = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeStorageAccountSslStatus), string blobDomainName = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeStorageAccountType accountType = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeStorageAccountType), Azure.Core.ResourceIdentifier storageAccountId = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.DataBoxEdgeStorageAccountData DataBoxEdgeStorageAccountData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeStorageAccountStatus? storageAccountStatus = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeStorageAccountStatus?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDataPolicy dataPolicy = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDataPolicy), Azure.Core.ResourceIdentifier storageAccountCredentialId = null, string blobEndpoint = null, int? containerCount = default(int?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.DataBoxEdgeStorageContainerData DataBoxEdgeStorageContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeStorageContainerStatus? containerStatus = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeStorageContainerStatus?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeStorageContainerDataFormat dataFormat = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeStorageContainerDataFormat), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRefreshDetails refreshDetails = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeTrackingInfo DataBoxEdgeTrackingInfo(string serialNumber = null, string carrierName = null, string trackingId = null, System.Uri trackingUri = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.DataBoxEdgeTriggerData DataBoxEdgeTriggerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string kind = "Unknown") { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeUpdateDetails DataBoxEdgeUpdateDetails(string updateTitle = null, double? updateSizeInBytes = default(double?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeUpdateType? updateType = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeUpdateType?), string targetVersion = null, string friendlyVersionNumber = null, int? estimatedInstallTimeInMins = default(int?), Azure.ResourceManager.DataBoxEdge.Models.InstallRebootBehavior? rebootBehavior = default(Azure.ResourceManager.DataBoxEdge.Models.InstallRebootBehavior?), Azure.ResourceManager.DataBoxEdge.Models.InstallationImpact? installationImpact = default(Azure.ResourceManager.DataBoxEdge.Models.InstallationImpact?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeUpdateStatus? status = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeUpdateStatus?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.DataBoxEdgeUserData DataBoxEdgeUserData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DataBoxEdge.Models.AsymmetricEncryptedSecret encryptedPassword = null, System.Collections.Generic.IEnumerable shareAccessRights = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeUserType userType = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeUserType)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.DiagnosticProactiveLogCollectionSettingData DiagnosticProactiveLogCollectionSettingData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DataBoxEdge.Models.ProactiveDiagnosticsConsent userConsent = default(Azure.ResourceManager.DataBoxEdge.Models.ProactiveDiagnosticsConsent)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.DiagnosticRemoteSupportSettingData DiagnosticRemoteSupportSettingData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IEnumerable remoteSupportSettingsList = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.EdgeArcAddon EdgeArcAddon(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string subscriptionId = null, string resourceGroupName = null, string resourceName = null, Azure.Core.AzureLocation resourceLocation = default(Azure.Core.AzureLocation), string version = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeOSPlatformType? hostPlatform = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeOSPlatformType?), Azure.ResourceManager.DataBoxEdge.Models.HostPlatformType? hostPlatformType = default(Azure.ResourceManager.DataBoxEdge.Models.HostPlatformType?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRoleAddonProvisioningState? provisioningState = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRoleAddonProvisioningState?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.EdgeFileEventTrigger EdgeFileEventTrigger(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier sourceInfoShareId = null, Azure.Core.ResourceIdentifier sinkInfoRoleId = null, string customContextTag = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.EdgeIotAddon EdgeIotAddon(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DataBoxEdge.Models.EdgeIotDeviceInfo iotDeviceDetails = null, Azure.ResourceManager.DataBoxEdge.Models.EdgeIotDeviceInfo iotEdgeDeviceDetails = null, string version = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeOSPlatformType? hostPlatform = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeOSPlatformType?), Azure.ResourceManager.DataBoxEdge.Models.HostPlatformType? hostPlatformType = default(Azure.ResourceManager.DataBoxEdge.Models.HostPlatformType?), Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRoleAddonProvisioningState? provisioningState = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRoleAddonProvisioningState?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.EdgeIotRole EdgeIotRole(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeOSPlatformType? hostPlatform = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeOSPlatformType?), Azure.ResourceManager.DataBoxEdge.Models.EdgeIotDeviceInfo iotDeviceDetails = null, Azure.ResourceManager.DataBoxEdge.Models.EdgeIotDeviceInfo iotEdgeDeviceDetails = null, System.Collections.Generic.IEnumerable shareMappings = null, Azure.ResourceManager.DataBoxEdge.Models.IotEdgeAgentInfo iotEdgeAgentInfo = null, Azure.ResourceManager.DataBoxEdge.Models.HostPlatformType? hostPlatformType = default(Azure.ResourceManager.DataBoxEdge.Models.HostPlatformType?), Azure.ResourceManager.DataBoxEdge.Models.EdgeComputeResourceInfo computeResource = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRoleStatus? roleStatus = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRoleStatus?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesClusterInfo EdgeKubernetesClusterInfo(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeEtcdInfo etcdInfo = null, System.Collections.Generic.IEnumerable nodes = null, string version = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesIPConfiguration EdgeKubernetesIPConfiguration(string port = null, string ipAddress = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesNodeInfo EdgeKubernetesNodeInfo(string name = null, Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesNodeType? nodeType = default(Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesNodeType?), System.Collections.Generic.IEnumerable ipConfiguration = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesRole EdgeKubernetesRole(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeOSPlatformType? hostPlatform = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeOSPlatformType?), Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesState? provisioningState = default(Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesState?), Azure.ResourceManager.DataBoxEdge.Models.HostPlatformType? hostPlatformType = default(Azure.ResourceManager.DataBoxEdge.Models.HostPlatformType?), Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesClusterInfo kubernetesClusterInfo = null, Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesRoleResources kubernetesRoleResources = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRoleStatus? roleStatus = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRoleStatus?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesRoleCompute EdgeKubernetesRoleCompute(string vmProfile = null, long? memoryInBytes = default(long?), int? processorCount = default(int?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesRoleNetwork EdgeKubernetesRoleNetwork(Azure.ResourceManager.DataBoxEdge.Models.CniConfig cniConfig = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeLoadBalancerConfig loadBalancerConfig = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesRoleResources EdgeKubernetesRoleResources(Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesRoleStorage storage = null, Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesRoleCompute compute = null, Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesRoleNetwork network = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesRoleStorage EdgeKubernetesRoleStorage(System.Collections.Generic.IEnumerable storageClasses = null, System.Collections.Generic.IEnumerable endpoints = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.EdgeKubernetesRoleStorageClassInfo EdgeKubernetesRoleStorageClassInfo(string name = null, string kubernetesRoleStorageClassInfoType = null, Azure.ResourceManager.DataBoxEdge.Models.PosixComplianceStatus? posixCompliant = default(Azure.ResourceManager.DataBoxEdge.Models.PosixComplianceStatus?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.EdgeProfileSubscription EdgeProfileSubscription(System.Guid? registrationId = default(System.Guid?), Azure.Core.ResourceIdentifier id = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSubscriptionState? state = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeSubscriptionState?), string registrationDate = null, string subscriptionId = null, System.Guid? tenantId = default(System.Guid?), string locationPlacementId = null, string quotaId = null, string serializedDetails = null, System.Collections.Generic.IEnumerable registeredFeatures = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.GenerateCertResult GenerateCertResult(string publicKey = null, string privateKey = null, System.DateTimeOffset? expireOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.MecRole MecRole(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DataBoxEdge.Models.AsymmetricEncryptedSecret connectionString = null, string controllerEndpoint = null, string resourceUniqueId = null, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRoleStatus? roleStatus = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeRoleStatus?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.MonitoringMetricConfigurationData MonitoringMetricConfigurationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IEnumerable metricConfigurations = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.PeriodicTimerEventTrigger PeriodicTimerEventTrigger(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DataBoxEdge.Models.PeriodicTimerSourceInfo sourceInfo = null, Azure.Core.ResourceIdentifier sinkInfoRoleId = null, string customContextTag = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.ShareAccessRight ShareAccessRight(Azure.Core.ResourceIdentifier shareId = null, Azure.ResourceManager.DataBoxEdge.Models.ShareAccessType accessType = default(Azure.ResourceManager.DataBoxEdge.Models.ShareAccessType)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.SubscriptionRegisteredFeatures SubscriptionRegisteredFeatures(string name = null, string state = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.TriggerSupportPackageContent TriggerSupportPackageContent(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? minimumTimeStamp = default(System.DateTimeOffset?), System.DateTimeOffset? maximumTimeStamp = default(System.DateTimeOffset?), string include = null) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.UpdateDownloadProgress UpdateDownloadProgress(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDownloadPhase? downloadPhase = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeDownloadPhase?), int? percentComplete = default(int?), double? totalBytesToDownload = default(double?), double? totalBytesDownloaded = default(double?), int? numberOfUpdatesToDownload = default(int?), int? numberOfUpdatesDownloaded = default(int?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.UpdateInstallProgress UpdateInstallProgress(int? percentComplete = default(int?), int? numberOfUpdatesToInstall = default(int?), int? numberOfUpdatesInstalled = default(int?)) { throw null; } + public static Azure.ResourceManager.DataBoxEdge.Models.UploadCertificateResponse UploadCertificateResponse(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeAuthenticationType? authType = default(Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeAuthenticationType?), string resourceId = null, string aadAuthority = null, System.Guid? aadTenantId = default(System.Guid?), System.Guid? servicePrincipalClientId = default(System.Guid?), System.Guid? servicePrincipalObjectId = default(System.Guid?), string azureManagementEndpointAudience = null, string aadAudience = null) { throw null; } + } public partial class AsymmetricEncryptedSecret { public AsymmetricEncryptedSecret(string value, Azure.ResourceManager.DataBoxEdge.Models.DataBoxEdgeEncryptionAlgorithm encryptionAlgorithm) { } diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/ArmDataBoxEdgeModelFactory.cs b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/ArmDataBoxEdgeModelFactory.cs new file mode 100644 index 000000000000..d54011827eba --- /dev/null +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/Generated/ArmDataBoxEdgeModelFactory.cs @@ -0,0 +1,1030 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using Azure; +using Azure.Core; +using Azure.ResourceManager.DataBoxEdge; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DataBoxEdge.Models +{ + /// Model factory for models. + public static partial class ArmDataBoxEdgeModelFactory + { + /// Initializes a new instance of AvailableDataBoxEdgeSku. + /// The type of the resource. + /// The Sku name. + /// The Sku kind. + /// The Sku tier. + /// The Sku kind. + /// The Sku family. + /// Availability of the Sku for the region. + /// The API versions in which Sku is available. + /// Availability of the Sku for the location/zone/site. + /// The pricing info of the Sku. + /// Sku can be signed up by customer or not. + /// Availability of the Sku as preview/stable. + /// Links to the next set of results. + /// List of Shipment Types supported by this SKU. + /// The capability info of the SKU. + /// A new instance for mocking. + public static AvailableDataBoxEdgeSku AvailableDataBoxEdgeSku(string resourceType = null, DataBoxEdgeSkuName? name = null, string kind = null, DataBoxEdgeSkuTier? tier = null, string size = null, string family = null, IEnumerable locations = null, IEnumerable apiVersions = null, IEnumerable locationInfo = null, IEnumerable costs = null, DataBoxEdgeSkuSignupOption? signupOption = null, DataBoxEdgeSkuVersion? version = null, DataBoxEdgeSkuAvailability? availability = null, IEnumerable shipmentTypes = null, IEnumerable capabilities = null) + { + locations ??= new List(); + apiVersions ??= new List(); + locationInfo ??= new List(); + costs ??= new List(); + shipmentTypes ??= new List(); + capabilities ??= new List(); + + return new AvailableDataBoxEdgeSku(resourceType, name, kind, tier, size, family, locations?.ToList(), apiVersions?.ToList(), locationInfo?.ToList(), costs?.ToList(), signupOption, version, availability, shipmentTypes?.ToList(), capabilities?.ToList()); + } + + /// Initializes a new instance of DataBoxEdgeSkuLocationInfo. + /// The location. + /// The zones. + /// The sites. + /// A new instance for mocking. + public static DataBoxEdgeSkuLocationInfo DataBoxEdgeSkuLocationInfo(AzureLocation? location = null, IEnumerable zones = null, IEnumerable sites = null) + { + zones ??= new List(); + sites ??= new List(); + + return new DataBoxEdgeSkuLocationInfo(location, zones?.ToList(), sites?.ToList()); + } + + /// Initializes a new instance of DataBoxEdgeSkuCost. + /// Used for querying price from commerce. + /// The cost quantity. + /// The extended unit. + /// A new instance for mocking. + public static DataBoxEdgeSkuCost DataBoxEdgeSkuCost(string meterId = null, long? quantity = null, string extendedUnit = null) + { + return new DataBoxEdgeSkuCost(meterId, quantity, extendedUnit); + } + + /// Initializes a new instance of DataBoxEdgeSkuCapability. + /// An invariant to describe the feature. + /// An invariant if the feature is measured by quantity. + /// A new instance for mocking. + public static DataBoxEdgeSkuCapability DataBoxEdgeSkuCapability(string name = null, string value = null) + { + return new DataBoxEdgeSkuCapability(name, value); + } + + /// Initializes a new instance of DataBoxEdgeDeviceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The SKU type. + /// The etag for the devices. + /// Msi identity of the resource. Current supported identity types: None, SystemAssigned, UserAssigned. + /// The kind of the device. + /// The status of the Data Box Edge/Gateway device. + /// The Serial Number of Data Box Edge/Gateway device. + /// The Description of the Data Box Edge/Gateway device. + /// The description of the Data Box Edge/Gateway device model. + /// The type of the Data Box Edge/Gateway device. + /// The Data Box Edge/Gateway device name. + /// The Data Box Edge/Gateway device culture. + /// The Data Box Edge/Gateway device model. + /// The Data Box Edge/Gateway device software version. + /// The Data Box Edge/Gateway device local capacity in MB. + /// The Data Box Edge/Gateway device timezone. + /// The device software version number of the device (eg: 1.2.18105.6). + /// Type of compute roles configured. + /// The number of nodes in the cluster. + /// The details of the move operation on this resource. + /// The details of Edge Profile for this resource. + /// The details of data-residency related properties for this resource. + /// A new instance for mocking. + public static DataBoxEdgeDeviceData DataBoxEdgeDeviceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, DataBoxEdgeSku sku = null, ETag? etag = null, ManagedServiceIdentity identity = null, DataBoxEdgeDeviceKind? kind = null, DataBoxEdgeDeviceStatus? dataBoxEdgeDeviceStatus = null, string serialNumber = null, string description = null, string modelDescription = null, DataBoxEdgeDeviceType? deviceType = null, string friendlyName = null, string culture = null, string deviceModel = null, string deviceSoftwareVersion = null, long? deviceLocalCapacity = null, string timeZone = null, string deviceHcsVersion = null, IEnumerable configuredRoleTypes = null, int? nodeCount = null, DataBoxEdgeResourceMoveDetails resourceMoveDetails = null, EdgeProfileSubscription edgeSubscription = null, DataBoxEdgeDataResidencyType? residencyType = null) + { + tags ??= new Dictionary(); + configuredRoleTypes ??= new List(); + + return new DataBoxEdgeDeviceData(id, name, resourceType, systemData, tags, location, sku, etag, identity, kind, dataBoxEdgeDeviceStatus, serialNumber, description, modelDescription, deviceType, friendlyName, culture, deviceModel, deviceSoftwareVersion, deviceLocalCapacity, timeZone, deviceHcsVersion, configuredRoleTypes?.ToList(), nodeCount, resourceMoveDetails, edgeSubscription != null ? new EdgeProfile(edgeSubscription) : null, residencyType != null ? new DataResidency(residencyType) : null); + } + + /// Initializes a new instance of DataBoxEdgeResourceMoveDetails. + /// Denotes whether move operation is in progress. + /// Denotes the timeout of the operation to finish. + /// A new instance for mocking. + public static DataBoxEdgeResourceMoveDetails DataBoxEdgeResourceMoveDetails(DataBoxEdgeResourceMoveStatus? operationInProgress = null, DateTimeOffset? operationInProgressLockTimeoutInUtc = null) + { + return new DataBoxEdgeResourceMoveDetails(operationInProgress, operationInProgressLockTimeoutInUtc); + } + + /// Initializes a new instance of EdgeProfileSubscription. + /// Edge Subscription Registration ID. + /// ARM ID of the subscription. + /// + /// + /// + /// + /// + /// + /// + /// + /// A new instance for mocking. + public static EdgeProfileSubscription EdgeProfileSubscription(Guid? registrationId = null, ResourceIdentifier id = null, DataBoxEdgeSubscriptionState? state = null, string registrationDate = null, string subscriptionId = null, Guid? tenantId = null, string locationPlacementId = null, string quotaId = null, string serializedDetails = null, IEnumerable registeredFeatures = null) + { + registeredFeatures ??= new List(); + + return new EdgeProfileSubscription(registrationId, id, state, registrationDate, subscriptionId, tenantId, locationPlacementId, quotaId, serializedDetails, registeredFeatures?.ToList()); + } + + /// Initializes a new instance of SubscriptionRegisteredFeatures. + /// + /// + /// A new instance for mocking. + public static SubscriptionRegisteredFeatures SubscriptionRegisteredFeatures(string name = null, string state = null) + { + return new SubscriptionRegisteredFeatures(name, state); + } + + /// Initializes a new instance of DataBoxEdgeAlertData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Alert title. + /// Alert type. + /// UTC time when the alert appeared. + /// Alert recommendation. + /// Severity of the alert. + /// Error details of the alert. + /// Alert details. + /// A new instance for mocking. + public static DataBoxEdgeAlertData DataBoxEdgeAlertData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string title = null, string alertType = null, DateTimeOffset? appearedOn = null, string recommendation = null, DataBoxEdgeAlertSeverity? severity = null, DataBoxEdgeAlertErrorDetails errorDetails = null, IReadOnlyDictionary detailedInformation = null) + { + detailedInformation ??= new Dictionary(); + + return new DataBoxEdgeAlertData(id, name, resourceType, systemData, title, alertType, appearedOn, recommendation, severity, errorDetails, detailedInformation); + } + + /// Initializes a new instance of DataBoxEdgeAlertErrorDetails. + /// Error code. + /// Error Message. + /// Number of occurrences. + /// A new instance for mocking. + public static DataBoxEdgeAlertErrorDetails DataBoxEdgeAlertErrorDetails(string errorCode = null, string errorMessage = null, int? occurrences = null) + { + return new DataBoxEdgeAlertErrorDetails(errorCode, errorMessage, occurrences); + } + + /// Initializes a new instance of BandwidthScheduleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The start time of the schedule in UTC. + /// The stop time of the schedule in UTC. + /// The bandwidth rate in Mbps. + /// The days of the week when this schedule is applicable. + /// A new instance for mocking. + public static BandwidthScheduleData BandwidthScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, TimeSpan startOn = default, TimeSpan stopOn = default, int rateInMbps = default, IEnumerable days = null) + { + days ??= new List(); + + return new BandwidthScheduleData(id, name, resourceType, systemData, startOn, stopOn, rateInMbps, days?.ToList()); + } + + /// Initializes a new instance of DataBoxEdgeDeviceCapacityInfo. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Timestamp of request in UTC. + /// Cluster capacity data for storage resources (CSV). + /// Cluster capacity data for compute resources (Memory and GPU). + /// The dictionary of individual node names and node capacities in the cluster. + /// A new instance for mocking. + public static DataBoxEdgeDeviceCapacityInfo DataBoxEdgeDeviceCapacityInfo(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? timeStamp = null, EdgeClusterStorageViewInfo clusterStorageCapacityInfo = null, EdgeClusterCapacityViewInfo clusterComputeCapacityInfo = null, IDictionary nodeCapacityInfos = null) + { + nodeCapacityInfos ??= new Dictionary(); + + return new DataBoxEdgeDeviceCapacityInfo(id, name, resourceType, systemData, timeStamp, clusterStorageCapacityInfo, clusterComputeCapacityInfo, nodeCapacityInfos); + } + + /// Initializes a new instance of DiagnosticProactiveLogCollectionSettingData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Proactive diagnostic collection consent flag. + /// A new instance for mocking. + public static DiagnosticProactiveLogCollectionSettingData DiagnosticProactiveLogCollectionSettingData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ProactiveDiagnosticsConsent userConsent = default) + { + return new DiagnosticProactiveLogCollectionSettingData(id, name, resourceType, systemData, userConsent); + } + + /// Initializes a new instance of DiagnosticRemoteSupportSettingData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Remote support settings list according to the RemoteApplicationType. + /// A new instance for mocking. + public static DiagnosticRemoteSupportSettingData DiagnosticRemoteSupportSettingData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable remoteSupportSettingsList = null) + { + remoteSupportSettingsList ??= new List(); + + return new DiagnosticRemoteSupportSettingData(id, name, resourceType, systemData, remoteSupportSettingsList?.ToList()); + } + + /// Initializes a new instance of GenerateCertResult. + /// + /// Gets or sets base64 encoded certificate raw data, + /// this is the public part needed to be uploaded to cert vault + /// + /// + /// Gets or sets base64 encoded private part of the certificate, + /// needed to form the activation key + /// + /// Gets or sets expiry time in UTC. + /// A new instance for mocking. + public static GenerateCertResult GenerateCertResult(string publicKey = null, string privateKey = null, DateTimeOffset? expireOn = null) + { + return new GenerateCertResult(publicKey, privateKey, expireOn); + } + + /// Initializes a new instance of DataBoxEdgeDeviceExtendedInfo. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The digital signature of encrypted certificate. + /// The public part of the encryption certificate. Client uses this to encrypt any secret. + /// The Resource ID of the Resource. + /// The Key Vault ARM Id for client secrets. + /// The url to access the Client Key Vault. + /// The name of Channel Integrity Key stored in the Client Key Vault. + /// The version of Channel Integrity Key stored in the Client Key Vault. + /// Key vault sync status. + /// Device secrets, will be returned only with ODataFilter $expand=deviceSecrets. + /// Cluster Witness Type. + /// The witness location of file share. + /// The username of file share. + /// The Cloud Witness Storage account name. + /// The Container for cloud witness in the storage account. + /// The Azure service endpoint of the cloud witness storage account. + /// A new instance for mocking. + public static DataBoxEdgeDeviceExtendedInfo DataBoxEdgeDeviceExtendedInfo(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string encryptionKeyThumbprint = null, string encryptionKey = null, string resourceKey = null, ResourceIdentifier clientSecretStoreId = null, Uri clientSecretStoreUri = null, string channelIntegrityKeyName = null, string channelIntegrityKeyVersion = null, EdgeKeyVaultSyncStatus? keyVaultSyncStatus = null, IReadOnlyDictionary deviceSecrets = null, EdgeClusterWitnessType? clusterWitnessType = null, string fileShareWitnessLocation = null, string fileShareWitnessUsername = null, string cloudWitnessStorageAccountName = null, string cloudWitnessContainerName = null, string cloudWitnessStorageEndpoint = null) + { + deviceSecrets ??= new Dictionary(); + + return new DataBoxEdgeDeviceExtendedInfo(id, name, resourceType, systemData, encryptionKeyThumbprint, encryptionKey, resourceKey, clientSecretStoreId, clientSecretStoreUri, channelIntegrityKeyName, channelIntegrityKeyVersion, keyVaultSyncStatus, deviceSecrets, clusterWitnessType, fileShareWitnessLocation, fileShareWitnessUsername, cloudWitnessStorageAccountName, cloudWitnessContainerName, cloudWitnessStorageEndpoint); + } + + /// Initializes a new instance of DataBoxEdgeDeviceSecret. + /// Encrypted (using device public key) secret value. + /// Id of the Key-Vault where secret is stored (ex: secrets/AuthClientSecret/82ef4346187a4033a10d629cde07d740). + /// A new instance for mocking. + public static DataBoxEdgeDeviceSecret DataBoxEdgeDeviceSecret(AsymmetricEncryptedSecret encryptedSecret = null, string keyVaultId = null) + { + return new DataBoxEdgeDeviceSecret(encryptedSecret, keyVaultId); + } + + /// Initializes a new instance of DataBoxEdgeJobData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The current status of the job. + /// The UTC date and time at which the job started. + /// The UTC date and time at which the job completed. + /// The percentage of the job that is complete. + /// The error details. + /// The type of the job. + /// Current stage of the update operation. + /// The download progress. + /// The install progress. + /// Total number of errors encountered during the refresh process. + /// Local share/remote container relative path to the error manifest file of the refresh. + /// ARM ID of the entity that was refreshed. + /// If only subfolders need to be refreshed, then the subfolder path inside the share or container. (The path is empty if there are no subfolders.). + /// A new instance for mocking. + public static DataBoxEdgeJobData DataBoxEdgeJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DataBoxEdgeJobStatus? status = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, int? percentComplete = null, DataBoxEdgeJobErrorDetails error = null, DataBoxEdgeJobType? jobType = null, UpdateOperationStage? currentStage = null, UpdateDownloadProgress downloadProgress = null, UpdateInstallProgress installProgress = null, int? totalRefreshErrors = null, string errorManifestFile = null, ResourceIdentifier refreshedEntityId = null, string folder = null) + { + return new DataBoxEdgeJobData(id, name, resourceType, systemData, status, startOn, endOn, percentComplete, error, jobType, currentStage, downloadProgress, installProgress, totalRefreshErrors, errorManifestFile, refreshedEntityId, folder); + } + + /// Initializes a new instance of DataBoxEdgeJobErrorDetails. + /// The error details. + /// The code intended for programmatic access. + /// The message that describes the error in detail. + /// A new instance for mocking. + public static DataBoxEdgeJobErrorDetails DataBoxEdgeJobErrorDetails(IEnumerable errorDetails = null, string code = null, string message = null) + { + errorDetails ??= new List(); + + return new DataBoxEdgeJobErrorDetails(errorDetails?.ToList(), code, message); + } + + /// Initializes a new instance of DataBoxEdgeJobErrorItem. + /// The recommended actions. + /// The code intended for programmatic access. + /// The message that describes the error in detail. + /// A new instance for mocking. + public static DataBoxEdgeJobErrorItem DataBoxEdgeJobErrorItem(IEnumerable recommendations = null, string code = null, string message = null) + { + recommendations ??= new List(); + + return new DataBoxEdgeJobErrorItem(recommendations?.ToList(), code, message); + } + + /// Initializes a new instance of UpdateDownloadProgress. + /// The download phase. + /// Percentage of completion. + /// Total bytes to download. + /// Total bytes downloaded. + /// Number of updates to download. + /// Number of updates downloaded. + /// A new instance for mocking. + public static UpdateDownloadProgress UpdateDownloadProgress(DataBoxEdgeDownloadPhase? downloadPhase = null, int? percentComplete = null, double? totalBytesToDownload = null, double? totalBytesDownloaded = null, int? numberOfUpdatesToDownload = null, int? numberOfUpdatesDownloaded = null) + { + return new UpdateDownloadProgress(downloadPhase, percentComplete, totalBytesToDownload, totalBytesDownloaded, numberOfUpdatesToDownload, numberOfUpdatesDownloaded); + } + + /// Initializes a new instance of UpdateInstallProgress. + /// Percentage completed. + /// Number of updates to install. + /// Number of updates installed. + /// A new instance for mocking. + public static UpdateInstallProgress UpdateInstallProgress(int? percentComplete = null, int? numberOfUpdatesToInstall = null, int? numberOfUpdatesInstalled = null) + { + return new UpdateInstallProgress(percentComplete, numberOfUpdatesToInstall, numberOfUpdatesInstalled); + } + + /// Initializes a new instance of DataBoxEdgeDeviceNetworkSettings. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The network adapter list on the device. + /// A new instance for mocking. + public static DataBoxEdgeDeviceNetworkSettings DataBoxEdgeDeviceNetworkSettings(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable networkAdapters = null) + { + networkAdapters ??= new List(); + + return new DataBoxEdgeDeviceNetworkSettings(id, name, resourceType, systemData, networkAdapters?.ToList()); + } + + /// Initializes a new instance of DataBoxEdgeNetworkAdapter. + /// Instance ID of network adapter. + /// Hardware position of network adapter. + /// Logical index of the adapter. + /// Node ID of the network adapter. + /// Network adapter name. + /// Hardware label for the adapter. + /// MAC address. + /// Link speed. + /// Value indicating whether this adapter is valid. + /// Value indicating whether this adapter is RDMA capable. + /// Value indicating whether this adapter has DHCP enabled. + /// The IPv4 configuration of the network adapter. + /// The IPv6 configuration of the network adapter. + /// The IPv6 local address. + /// The list of DNS Servers of the device. + /// A new instance for mocking. + public static DataBoxEdgeNetworkAdapter DataBoxEdgeNetworkAdapter(string adapterId = null, DataBoxEdgeNetworkAdapterPosition adapterPosition = null, int? index = null, Guid? nodeId = null, string networkAdapterName = null, string label = null, string macAddress = null, long? linkSpeed = null, DataBoxEdgeNetworkAdapterStatus? status = null, DataBoxEdgeNetworkAdapterRdmaStatus? rdmaStatus = null, DataBoxEdgeNetworkAdapterDhcpStatus? dhcpStatus = null, DataBoxEdgeIPv4Config ipv4Configuration = null, DataBoxEdgeIPv6Config ipv6Configuration = null, string ipv6LinkLocalAddress = null, IEnumerable dnsServers = null) + { + dnsServers ??= new List(); + + return new DataBoxEdgeNetworkAdapter(adapterId, adapterPosition, index, nodeId, networkAdapterName, label, macAddress, linkSpeed, status, rdmaStatus, dhcpStatus, ipv4Configuration, ipv6Configuration, ipv6LinkLocalAddress, dnsServers?.ToList()); + } + + /// Initializes a new instance of DataBoxEdgeNetworkAdapterPosition. + /// The network group. + /// The port. + /// A new instance for mocking. + public static DataBoxEdgeNetworkAdapterPosition DataBoxEdgeNetworkAdapterPosition(DataBoxEdgeNetworkGroup? networkGroup = null, int? port = null) + { + return new DataBoxEdgeNetworkAdapterPosition(networkGroup, port); + } + + /// Initializes a new instance of DataBoxEdgeIPv4Config. + /// The IPv4 address of the network adapter. + /// The IPv4 subnet of the network adapter. + /// The IPv4 gateway of the network adapter. + /// A new instance for mocking. + public static DataBoxEdgeIPv4Config DataBoxEdgeIPv4Config(IPAddress ipAddress = null, string subnet = null, string gateway = null) + { + return new DataBoxEdgeIPv4Config(ipAddress, subnet, gateway); + } + + /// Initializes a new instance of DataBoxEdgeIPv6Config. + /// The IPv6 address of the network adapter. + /// The IPv6 prefix of the network adapter. + /// The IPv6 gateway of the network adapter. + /// A new instance for mocking. + public static DataBoxEdgeIPv6Config DataBoxEdgeIPv6Config(string ipAddress = null, int? prefixLength = null, string gateway = null) + { + return new DataBoxEdgeIPv6Config(ipAddress, prefixLength, gateway); + } + + /// Initializes a new instance of DataBoxEdgeNode. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The current status of the individual node. + /// Serial number of the Chassis. + /// Serial number of the individual node. + /// Display Name of the individual node. + /// Friendly software version name that is currently installed on the node. + /// HCS version that is currently installed on the node. + /// Guid instance id of the node. + /// A new instance for mocking. + public static DataBoxEdgeNode DataBoxEdgeNode(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DataBoxEdgeNodeStatus? nodeStatus = null, string nodeChassisSerialNumber = null, string nodeSerialNumber = null, string nodeDisplayName = null, string nodeFriendlySoftwareVersion = null, string nodeHcsVersion = null, Guid? nodeInstanceId = null) + { + return new DataBoxEdgeNode(id, name, resourceType, systemData, nodeStatus, nodeChassisSerialNumber, nodeSerialNumber, nodeDisplayName, nodeFriendlySoftwareVersion, nodeHcsVersion, nodeInstanceId); + } + + /// Initializes a new instance of DataBoxEdgeOrderData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// It specify the order api version. + /// It specify the order resource id. + /// The contact details. + /// The shipping address. + /// Current status of the order. + /// List of status changes in the order. + /// Serial number of the device. + /// Tracking information for the package delivered to the customer whether it has an original or a replacement device. + /// Tracking information for the package returned from the customer whether it has an original or a replacement device. + /// ShipmentType of the order. + /// A new instance for mocking. + public static DataBoxEdgeOrderData DataBoxEdgeOrderData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string kind = null, string orderId = null, DataBoxEdgeContactDetails contactInformation = null, DataBoxEdgeShippingAddress shippingAddress = null, DataBoxEdgeOrderStatus currentStatus = null, IEnumerable orderHistory = null, string serialNumber = null, IEnumerable deliveryTrackingInfo = null, IEnumerable returnTrackingInfo = null, DataBoxEdgeShipmentType? shipmentType = null) + { + orderHistory ??= new List(); + deliveryTrackingInfo ??= new List(); + returnTrackingInfo ??= new List(); + + return new DataBoxEdgeOrderData(id, name, resourceType, systemData, kind, orderId, contactInformation, shippingAddress, currentStatus, orderHistory?.ToList(), serialNumber, deliveryTrackingInfo?.ToList(), returnTrackingInfo?.ToList(), shipmentType); + } + + /// Initializes a new instance of DataBoxEdgeOrderStatus. + /// Status of the order as per the allowed status types. + /// Time of status update. + /// Comments related to this status change. + /// Tracking information related to the state in the ordering flow. + /// + /// Dictionary to hold generic information which is not stored + /// by the already existing properties + /// + /// A new instance for mocking. + public static DataBoxEdgeOrderStatus DataBoxEdgeOrderStatus(DataBoxEdgeOrderState status = default, DateTimeOffset? updateOn = null, string comments = null, DataBoxEdgeTrackingInfo trackingInformation = null, IReadOnlyDictionary additionalOrderDetails = null) + { + additionalOrderDetails ??= new Dictionary(); + + return new DataBoxEdgeOrderStatus(status, updateOn, comments, trackingInformation, additionalOrderDetails); + } + + /// Initializes a new instance of DataBoxEdgeTrackingInfo. + /// Serial number of the device being tracked. + /// Name of the carrier used in the delivery. + /// Tracking ID of the shipment. + /// Tracking URL of the shipment. + /// A new instance for mocking. + public static DataBoxEdgeTrackingInfo DataBoxEdgeTrackingInfo(string serialNumber = null, string carrierName = null, string trackingId = null, Uri trackingUri = null) + { + return new DataBoxEdgeTrackingInfo(serialNumber, carrierName, trackingId, trackingUri); + } + + /// Initializes a new instance of DataBoxEdgeDataCenterAccessCode. + /// DCAccess Code for the Self Managed shipment. + /// A new instance for mocking. + public static DataBoxEdgeDataCenterAccessCode DataBoxEdgeDataCenterAccessCode(string authCode = null) + { + return new DataBoxEdgeDataCenterAccessCode(authCode); + } + + /// Initializes a new instance of DataBoxEdgeRoleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Role type. + /// A new instance for mocking. + public static DataBoxEdgeRoleData DataBoxEdgeRoleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string kind = "Unknown") + { + return new DataBoxEdgeRoleData(id, name, resourceType, systemData, kind); + } + + /// Initializes a new instance of DataBoxEdgeRoleAddonData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Addon type. + /// A new instance for mocking. + public static DataBoxEdgeRoleAddonData DataBoxEdgeRoleAddonData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string kind = "Unknown") + { + return new DataBoxEdgeRoleAddonData(id, name, resourceType, systemData, kind); + } + + /// Initializes a new instance of MonitoringMetricConfigurationData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The metrics configuration details. + /// A new instance for mocking. + public static MonitoringMetricConfigurationData MonitoringMetricConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable metricConfigurations = null) + { + metricConfigurations ??= new List(); + + return new MonitoringMetricConfigurationData(id, name, resourceType, systemData, metricConfigurations?.ToList()); + } + + /// Initializes a new instance of DataBoxEdgeSecuritySettings. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Device administrator password as an encrypted string (encrypted using RSA PKCS #1) is used to sign into the local web UI of the device. The Actual password should have at least 8 characters that are a combination of uppercase, lowercase, numeric, and special characters. + /// A new instance for mocking. + public static DataBoxEdgeSecuritySettings DataBoxEdgeSecuritySettings(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AsymmetricEncryptedSecret deviceAdminPassword = null) + { + return new DataBoxEdgeSecuritySettings(id, name, resourceType, systemData, deviceAdminPassword); + } + + /// Initializes a new instance of DataBoxEdgeShareData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Description for the share. + /// Current status of the share. + /// Current monitoring status of the share. + /// Azure container mapping for the share. + /// Access protocol to be used by the share. + /// Mapping of users and corresponding access rights on the share (required for SMB protocol). + /// List of IP addresses and corresponding access rights on the share(required for NFS protocol). + /// Details of the refresh job on this share. + /// Share mount point to the role. + /// Data policy of the share. + /// A new instance for mocking. + public static DataBoxEdgeShareData DataBoxEdgeShareData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, ShareStatus shareStatus = default, DataBoxEdgeShareMonitoringStatus monitoringStatus = default, DataBoxEdgeStorageContainerInfo azureContainerInfo = null, ShareAccessProtocol accessProtocol = default, IEnumerable userAccessRights = null, IEnumerable clientAccessRights = null, DataBoxEdgeRefreshDetails refreshDetails = null, IEnumerable shareMappings = null, DataBoxEdgeDataPolicy? dataPolicy = null) + { + userAccessRights ??= new List(); + clientAccessRights ??= new List(); + shareMappings ??= new List(); + + return new DataBoxEdgeShareData(id, name, resourceType, systemData, description, shareStatus, monitoringStatus, azureContainerInfo, accessProtocol, userAccessRights?.ToList(), clientAccessRights?.ToList(), refreshDetails, shareMappings?.ToList(), dataPolicy); + } + + /// Initializes a new instance of DataBoxEdgeMountPointMap. + /// ID of the share mounted to the role VM. + /// ID of the role to which share is mounted. + /// Mount point for the share. + /// Mounting type. + /// Role type. + /// A new instance for mocking. + public static DataBoxEdgeMountPointMap DataBoxEdgeMountPointMap(ResourceIdentifier shareId = null, ResourceIdentifier roleId = null, string mountPoint = null, DataBoxEdgeMountType? mountType = null, DataBoxEdgeRoleType? roleType = null) + { + return new DataBoxEdgeMountPointMap(shareId, roleId, mountPoint, mountType, roleType); + } + + /// Initializes a new instance of DataBoxEdgeStorageAccountCredentialData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Alias for the storage account. + /// Username for the storage account. + /// Encrypted storage key. + /// Connection string for the storage account. Use this string if username and account key are not specified. + /// Signifies whether SSL needs to be enabled or not. + /// Blob end point for private clouds. + /// Type of storage accessed on the storage account. + /// Id of the storage account. + /// A new instance for mocking. + public static DataBoxEdgeStorageAccountCredentialData DataBoxEdgeStorageAccountCredentialData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string @alias = null, string userName = null, AsymmetricEncryptedSecret accountKey = null, string connectionString = null, DataBoxEdgeStorageAccountSslStatus sslStatus = default, string blobDomainName = null, DataBoxEdgeStorageAccountType accountType = default, ResourceIdentifier storageAccountId = null) + { + return new DataBoxEdgeStorageAccountCredentialData(id, name, resourceType, systemData, @alias, userName, accountKey, connectionString, sslStatus, blobDomainName, accountType, storageAccountId); + } + + /// Initializes a new instance of DataBoxEdgeStorageAccountData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Description for the storage Account. + /// Current status of the storage account. + /// Data policy of the storage Account. + /// Storage Account Credential Id. + /// BlobEndpoint of Storage Account. + /// The Container Count. Present only for Storage Accounts with DataPolicy set to Cloud. + /// A new instance for mocking. + public static DataBoxEdgeStorageAccountData DataBoxEdgeStorageAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, DataBoxEdgeStorageAccountStatus? storageAccountStatus = null, DataBoxEdgeDataPolicy dataPolicy = default, ResourceIdentifier storageAccountCredentialId = null, string blobEndpoint = null, int? containerCount = null) + { + return new DataBoxEdgeStorageAccountData(id, name, resourceType, systemData, description, storageAccountStatus, dataPolicy, storageAccountCredentialId, blobEndpoint, containerCount); + } + + /// Initializes a new instance of DataBoxEdgeStorageContainerData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Current status of the container. + /// DataFormat for Container. + /// Details of the refresh job on this container. + /// The UTC time when container got created. + /// A new instance for mocking. + public static DataBoxEdgeStorageContainerData DataBoxEdgeStorageContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DataBoxEdgeStorageContainerStatus? containerStatus = null, DataBoxEdgeStorageContainerDataFormat dataFormat = default, DataBoxEdgeRefreshDetails refreshDetails = null, DateTimeOffset? createdOn = null) + { + return new DataBoxEdgeStorageContainerData(id, name, resourceType, systemData, containerStatus, dataFormat, refreshDetails, createdOn); + } + + /// Initializes a new instance of DataBoxEdgeTriggerData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Trigger Kind. + /// A new instance for mocking. + public static DataBoxEdgeTriggerData DataBoxEdgeTriggerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string kind = "Unknown") + { + return new DataBoxEdgeTriggerData(id, name, resourceType, systemData, kind); + } + + /// Initializes a new instance of TriggerSupportPackageContent. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// MinimumTimeStamp from where logs need to be collected. + /// Start of the timespan of the log collection. + /// + /// Type of files, which need to be included in the logs + /// This will contain the type of logs (Default/DefaultWithDumps/None/All/DefaultWithArchived) + /// or a comma separated list of log types that are required + /// + /// A new instance for mocking. + public static TriggerSupportPackageContent TriggerSupportPackageContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? minimumTimeStamp = null, DateTimeOffset? maximumTimeStamp = null, string include = null) + { + return new TriggerSupportPackageContent(id, name, resourceType, systemData, minimumTimeStamp, maximumTimeStamp, include); + } + + /// Initializes a new instance of DataBoxEdgeDeviceUpdateSummary. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The current version of the device in format: 1.2.17312.13.",. + /// The current version of the device in text format. + /// The last time when a scan was done on the device. + /// The time when the last scan job was completed (success/cancelled/failed) on the appliance. + /// Time when the last scan job is successfully completed. + /// The time when the last Download job was completed (success/cancelled/failed) on the appliance. + /// JobId of the last ran download job.(Can be success/cancelled/failed). + /// JobStatus of the last ran download job. + /// The time when the Last Install job was completed successfully on the appliance. + /// The time when the last Install job was completed (success/cancelled/failed) on the appliance. + /// JobId of the last ran install job.(Can be success/cancelled/failed). + /// JobStatus of the last ran install job. + /// The number of updates available for the current device version as per the last device scan. + /// The total number of items pending download. + /// The total number of items pending install. + /// Indicates if updates are available and at least one of the updates needs a reboot. + /// The current update operation. + /// The job ID of the download job in progress. + /// The job ID of the install job in progress. + /// The time when the currently running download (if any) started. + /// The time when the currently running install (if any) started. + /// The list of updates available for install. + /// The list of updates available for install. + /// The total size of updates available for download in bytes. + /// The total time in Minutes. + /// A new instance for mocking. + public static DataBoxEdgeDeviceUpdateSummary DataBoxEdgeDeviceUpdateSummary(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string deviceVersionNumber = null, string friendlyDeviceVersionName = null, DateTimeOffset? deviceLastScannedOn = null, DateTimeOffset? lastCompletedScanJobOn = null, DateTimeOffset? lastSuccessfulScanJobOn = null, DateTimeOffset? lastCompletedDownloadJobOn = null, ResourceIdentifier lastCompletedDownloadJobId = null, DataBoxEdgeJobStatus? lastDownloadJobStatus = null, DateTimeOffset? lastSuccessfulInstallJobOn = null, DateTimeOffset? lastCompletedInstallJobOn = null, ResourceIdentifier lastCompletedInstallJobId = null, DataBoxEdgeJobStatus? lastInstallJobStatus = null, int? totalNumberOfUpdatesAvailable = null, int? totalNumberOfUpdatesPendingDownload = null, int? totalNumberOfUpdatesPendingInstall = null, InstallRebootBehavior? rebootBehavior = null, DataBoxEdgeUpdateOperation? ongoingUpdateOperation = null, ResourceIdentifier inProgressDownloadJobId = null, ResourceIdentifier inProgressInstallJobId = null, DateTimeOffset? inProgressDownloadJobStartedOn = null, DateTimeOffset? inProgressInstallJobStartedOn = null, IEnumerable updateTitles = null, IEnumerable updates = null, double? totalUpdateSizeInBytes = null, int? totalTimeInMinutes = null) + { + updateTitles ??= new List(); + updates ??= new List(); + + return new DataBoxEdgeDeviceUpdateSummary(id, name, resourceType, systemData, deviceVersionNumber, friendlyDeviceVersionName, deviceLastScannedOn, lastCompletedScanJobOn, lastSuccessfulScanJobOn, lastCompletedDownloadJobOn, lastCompletedDownloadJobId, lastDownloadJobStatus, lastSuccessfulInstallJobOn, lastCompletedInstallJobOn, lastCompletedInstallJobId, lastInstallJobStatus, totalNumberOfUpdatesAvailable, totalNumberOfUpdatesPendingDownload, totalNumberOfUpdatesPendingInstall, rebootBehavior, ongoingUpdateOperation, inProgressDownloadJobId, inProgressInstallJobId, inProgressDownloadJobStartedOn, inProgressInstallJobStartedOn, updateTitles?.ToList(), updates?.ToList(), totalUpdateSizeInBytes, totalTimeInMinutes); + } + + /// Initializes a new instance of DataBoxEdgeUpdateDetails. + /// Title of the Update. + /// Size of the update(In Bytes). + /// Type of the Update. + /// Target Version number. + /// Friendly Version Number. + /// Estimated Install Time for the update. + /// Indicates if updates are available and at least one of the updates needs a reboot. + /// Impact of Installing an updateType. + /// Status of the update. + /// A new instance for mocking. + public static DataBoxEdgeUpdateDetails DataBoxEdgeUpdateDetails(string updateTitle = null, double? updateSizeInBytes = null, DataBoxEdgeUpdateType? updateType = null, string targetVersion = null, string friendlyVersionNumber = null, int? estimatedInstallTimeInMins = null, InstallRebootBehavior? rebootBehavior = null, InstallationImpact? installationImpact = null, DataBoxEdgeUpdateStatus? status = null) + { + return new DataBoxEdgeUpdateDetails(updateTitle, updateSizeInBytes, updateType, targetVersion, friendlyVersionNumber, estimatedInstallTimeInMins, rebootBehavior, installationImpact, status); + } + + /// Initializes a new instance of UploadCertificateResponse. + /// Specifies authentication type. + /// The resource ID of the Data Box Edge/Gateway device. + /// Azure Active Directory tenant authority. + /// Azure Active Directory tenant ID. + /// Azure Active Directory service principal client ID. + /// Azure Active Directory service principal object ID. + /// The azure management endpoint audience. + /// Identifier of the target resource that is the recipient of the requested token. + /// A new instance for mocking. + public static UploadCertificateResponse UploadCertificateResponse(DataBoxEdgeAuthenticationType? authType = null, string resourceId = null, string aadAuthority = null, Guid? aadTenantId = null, Guid? servicePrincipalClientId = null, Guid? servicePrincipalObjectId = null, string azureManagementEndpointAudience = null, string aadAudience = null) + { + return new UploadCertificateResponse(authType, resourceId, aadAuthority, aadTenantId, servicePrincipalClientId, servicePrincipalObjectId, azureManagementEndpointAudience, aadAudience); + } + + /// Initializes a new instance of DataBoxEdgeUserData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The password details. + /// List of shares that the user has rights on. This field should not be specified during user creation. + /// Type of the user. + /// A new instance for mocking. + public static DataBoxEdgeUserData DataBoxEdgeUserData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AsymmetricEncryptedSecret encryptedPassword = null, IEnumerable shareAccessRights = null, DataBoxEdgeUserType userType = default) + { + shareAccessRights ??= new List(); + + return new DataBoxEdgeUserData(id, name, resourceType, systemData, encryptedPassword, shareAccessRights?.ToList(), userType); + } + + /// Initializes a new instance of ShareAccessRight. + /// The share ID. + /// Type of access to be allowed on the share for this user. + /// is null. + /// A new instance for mocking. + public static ShareAccessRight ShareAccessRight(ResourceIdentifier shareId = null, ShareAccessType accessType = default) + { + if (shareId == null) + { + throw new ArgumentNullException(nameof(shareId)); + } + + return new ShareAccessRight(shareId, accessType); + } + + /// Initializes a new instance of EdgeArcAddon. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Arc resource subscription Id. + /// Arc resource group name. + /// Arc resource Name. + /// Arc resource location. + /// Arc resource version. + /// Host OS supported by the Arc addon. + /// Platform where the runtime is hosted. + /// Addon Provisioning State. + /// A new instance for mocking. + public static EdgeArcAddon EdgeArcAddon(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string subscriptionId = null, string resourceGroupName = null, string resourceName = null, AzureLocation resourceLocation = default, string version = null, DataBoxEdgeOSPlatformType? hostPlatform = null, HostPlatformType? hostPlatformType = null, DataBoxEdgeRoleAddonProvisioningState? provisioningState = null) + { + return new EdgeArcAddon(id, name, resourceType, systemData, AddonType.ArcForKubernetes, subscriptionId, resourceGroupName, resourceName, resourceLocation, version, hostPlatform, hostPlatformType, provisioningState); + } + + /// Initializes a new instance of CloudEdgeManagementRole. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Local Edge Management Status. + /// Edge Profile of the resource. + /// Role status. + /// A new instance for mocking. + public static CloudEdgeManagementRole CloudEdgeManagementRole(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DataBoxEdgeRoleStatus? localManagementStatus = null, EdgeProfileSubscription edgeSubscription = null, DataBoxEdgeRoleStatus? roleStatus = null) + { + return new CloudEdgeManagementRole(id, name, resourceType, systemData, DataBoxEdgeRoleType.CloudEdgeManagement, localManagementStatus, edgeSubscription != null ? new EdgeProfile(edgeSubscription) : null, roleStatus); + } + + /// Initializes a new instance of CniConfig. + /// Cni type. + /// Cni version. + /// Pod Subnet. + /// Service subnet. + /// A new instance for mocking. + public static CniConfig CniConfig(string cniConfigType = null, string version = null, string podSubnet = null, string serviceSubnet = null) + { + return new CniConfig(cniConfigType, version, podSubnet, serviceSubnet); + } + + /// Initializes a new instance of DataBoxEdgeEtcdInfo. + /// Etcd type. + /// Etcd version. + /// A new instance for mocking. + public static DataBoxEdgeEtcdInfo DataBoxEdgeEtcdInfo(string etcdInfoType = null, string version = null) + { + return new DataBoxEdgeEtcdInfo(etcdInfoType, version); + } + + /// Initializes a new instance of EdgeFileEventTrigger. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// File event source details. + /// Role sink info. + /// A custom context tag typically used to correlate the trigger against its usage. For example, if a periodic timer trigger is intended for certain specific IoT modules in the device, the tag can be the name or the image URL of the module. + /// A new instance for mocking. + public static EdgeFileEventTrigger EdgeFileEventTrigger(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier sourceInfoShareId = null, ResourceIdentifier sinkInfoRoleId = null, string customContextTag = null) + { + return new EdgeFileEventTrigger(id, name, resourceType, systemData, TriggerEventType.FileEvent, sourceInfoShareId != null ? new EdgeFileSourceInfo(sourceInfoShareId) : null, sinkInfoRoleId != null ? new DataBoxEdgeRoleSinkInfo(sinkInfoRoleId) : null, customContextTag); + } + + /// Initializes a new instance of EdgeIotAddon. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// IoT device metadata to which appliance needs to be connected. + /// IoT edge device to which the IoT Addon needs to be configured. + /// Version of IoT running on the appliance. + /// Host OS supported by the IoT addon. + /// Platform where the runtime is hosted. + /// Addon Provisioning State. + /// A new instance for mocking. + public static EdgeIotAddon EdgeIotAddon(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, EdgeIotDeviceInfo iotDeviceDetails = null, EdgeIotDeviceInfo iotEdgeDeviceDetails = null, string version = null, DataBoxEdgeOSPlatformType? hostPlatform = null, HostPlatformType? hostPlatformType = null, DataBoxEdgeRoleAddonProvisioningState? provisioningState = null) + { + return new EdgeIotAddon(id, name, resourceType, systemData, AddonType.IotEdge, iotDeviceDetails, iotEdgeDeviceDetails, version, hostPlatform, hostPlatformType, provisioningState); + } + + /// Initializes a new instance of EdgeIotRole. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Host OS supported by the IoT role. + /// IoT device metadata to which data box edge device needs to be connected. + /// IoT edge device to which the IoT role needs to be configured. + /// Mount points of shares in role(s). + /// Iot edge agent details to download the agent and bootstrap iot runtime. + /// Platform where the Iot runtime is hosted. + /// Resource allocation. + /// Role status. + /// A new instance for mocking. + public static EdgeIotRole EdgeIotRole(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DataBoxEdgeOSPlatformType? hostPlatform = null, EdgeIotDeviceInfo iotDeviceDetails = null, EdgeIotDeviceInfo iotEdgeDeviceDetails = null, IEnumerable shareMappings = null, IotEdgeAgentInfo iotEdgeAgentInfo = null, HostPlatformType? hostPlatformType = null, EdgeComputeResourceInfo computeResource = null, DataBoxEdgeRoleStatus? roleStatus = null) + { + shareMappings ??= new List(); + + return new EdgeIotRole(id, name, resourceType, systemData, DataBoxEdgeRoleType.IoT, hostPlatform, iotDeviceDetails, iotEdgeDeviceDetails, shareMappings?.ToList(), iotEdgeAgentInfo, hostPlatformType, computeResource, roleStatus); + } + + /// Initializes a new instance of EdgeKubernetesClusterInfo. + /// Etcd configuration. + /// Kubernetes cluster nodes. + /// Kubernetes cluster version. + /// A new instance for mocking. + public static EdgeKubernetesClusterInfo EdgeKubernetesClusterInfo(DataBoxEdgeEtcdInfo etcdInfo = null, IEnumerable nodes = null, string version = null) + { + nodes ??= new List(); + + return new EdgeKubernetesClusterInfo(etcdInfo, nodes?.ToList(), version); + } + + /// Initializes a new instance of EdgeKubernetesNodeInfo. + /// Node name. + /// Node type - Master/Worker. + /// IP Configuration of the Kubernetes node. + /// A new instance for mocking. + public static EdgeKubernetesNodeInfo EdgeKubernetesNodeInfo(string name = null, EdgeKubernetesNodeType? nodeType = null, IEnumerable ipConfiguration = null) + { + ipConfiguration ??= new List(); + + return new EdgeKubernetesNodeInfo(name, nodeType, ipConfiguration?.ToList()); + } + + /// Initializes a new instance of EdgeKubernetesIPConfiguration. + /// Port of the Kubernetes node. + /// IP address of the Kubernetes node. + /// A new instance for mocking. + public static EdgeKubernetesIPConfiguration EdgeKubernetesIPConfiguration(string port = null, string ipAddress = null) + { + return new EdgeKubernetesIPConfiguration(port, ipAddress); + } + + /// Initializes a new instance of EdgeKubernetesRole. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Host OS supported by the Kubernetes role. + /// State of Kubernetes deployment. + /// Platform where the runtime is hosted. + /// Kubernetes cluster configuration. + /// Kubernetes role resources. + /// Role status. + /// A new instance for mocking. + public static EdgeKubernetesRole EdgeKubernetesRole(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DataBoxEdgeOSPlatformType? hostPlatform = null, EdgeKubernetesState? provisioningState = null, HostPlatformType? hostPlatformType = null, EdgeKubernetesClusterInfo kubernetesClusterInfo = null, EdgeKubernetesRoleResources kubernetesRoleResources = null, DataBoxEdgeRoleStatus? roleStatus = null) + { + return new EdgeKubernetesRole(id, name, resourceType, systemData, DataBoxEdgeRoleType.Kubernetes, hostPlatform, provisioningState, hostPlatformType, kubernetesClusterInfo, kubernetesRoleResources, roleStatus); + } + + /// Initializes a new instance of EdgeKubernetesRoleResources. + /// Kubernetes role storage resource. + /// Kubernetes role compute resource. + /// Kubernetes role network resource. + /// A new instance for mocking. + public static EdgeKubernetesRoleResources EdgeKubernetesRoleResources(EdgeKubernetesRoleStorage storage = null, EdgeKubernetesRoleCompute compute = null, EdgeKubernetesRoleNetwork network = null) + { + return new EdgeKubernetesRoleResources(storage, compute, network); + } + + /// Initializes a new instance of EdgeKubernetesRoleStorage. + /// Kubernetes storage class info. + /// Mount points of shares in role(s). + /// A new instance for mocking. + public static EdgeKubernetesRoleStorage EdgeKubernetesRoleStorage(IEnumerable storageClasses = null, IEnumerable endpoints = null) + { + storageClasses ??= new List(); + endpoints ??= new List(); + + return new EdgeKubernetesRoleStorage(storageClasses?.ToList(), endpoints?.ToList()); + } + + /// Initializes a new instance of EdgeKubernetesRoleStorageClassInfo. + /// Storage class name. + /// Storage class type. + /// If provisioned storage is posix compliant. + /// A new instance for mocking. + public static EdgeKubernetesRoleStorageClassInfo EdgeKubernetesRoleStorageClassInfo(string name = null, string kubernetesRoleStorageClassInfoType = null, PosixComplianceStatus? posixCompliant = null) + { + return new EdgeKubernetesRoleStorageClassInfo(name, kubernetesRoleStorageClassInfoType, posixCompliant); + } + + /// Initializes a new instance of EdgeKubernetesRoleCompute. + /// VM profile. + /// Memory in bytes. + /// Processor count. + /// A new instance for mocking. + public static EdgeKubernetesRoleCompute EdgeKubernetesRoleCompute(string vmProfile = null, long? memoryInBytes = null, int? processorCount = null) + { + return new EdgeKubernetesRoleCompute(vmProfile, memoryInBytes, processorCount); + } + + /// Initializes a new instance of EdgeKubernetesRoleNetwork. + /// Cni configuration. + /// Load balancer configuration. + /// A new instance for mocking. + public static EdgeKubernetesRoleNetwork EdgeKubernetesRoleNetwork(CniConfig cniConfig = null, DataBoxEdgeLoadBalancerConfig loadBalancerConfig = null) + { + return new EdgeKubernetesRoleNetwork(cniConfig, loadBalancerConfig); + } + + /// Initializes a new instance of DataBoxEdgeLoadBalancerConfig. + /// Load balancer type. + /// Load balancer version. + /// A new instance for mocking. + public static DataBoxEdgeLoadBalancerConfig DataBoxEdgeLoadBalancerConfig(string loadBalancerConfigType = null, string version = null) + { + return new DataBoxEdgeLoadBalancerConfig(loadBalancerConfigType, version); + } + + /// Initializes a new instance of MecRole. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Activation key of the MEC. + /// Controller Endpoint. + /// Unique Id of the Resource. + /// Role status. + /// A new instance for mocking. + public static MecRole MecRole(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AsymmetricEncryptedSecret connectionString = null, string controllerEndpoint = null, string resourceUniqueId = null, DataBoxEdgeRoleStatus? roleStatus = null) + { + return new MecRole(id, name, resourceType, systemData, DataBoxEdgeRoleType.Mec, connectionString, controllerEndpoint, resourceUniqueId, roleStatus); + } + + /// Initializes a new instance of PeriodicTimerEventTrigger. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Periodic timer details. + /// Role Sink information. + /// A custom context tag typically used to correlate the trigger against its usage. For example, if a periodic timer trigger is intended for certain specific IoT modules in the device, the tag can be the name or the image URL of the module. + /// A new instance for mocking. + public static PeriodicTimerEventTrigger PeriodicTimerEventTrigger(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, PeriodicTimerSourceInfo sourceInfo = null, ResourceIdentifier sinkInfoRoleId = null, string customContextTag = null) + { + return new PeriodicTimerEventTrigger(id, name, resourceType, systemData, TriggerEventType.PeriodicTimerEvent, sourceInfo, sinkInfoRoleId != null ? new DataBoxEdgeRoleSinkInfo(sinkInfoRoleId) : null, customContextTag); + } + } +} diff --git a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/autorest.md b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/autorest.md index 9e20e052f36f..76183c2b2e99 100644 --- a/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/autorest.md +++ b/sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/src/autorest.md @@ -4,7 +4,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: DataBoxEdge namespace: Azure.ResourceManager.DataBoxEdge diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/CHANGELOG.md b/sdk/datadog/Azure.ResourceManager.Datadog/CHANGELOG.md index 7d4e3f344f10..3e618ff7472a 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/CHANGELOG.md +++ b/sdk/datadog/Azure.ResourceManager.Datadog/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.3 (2023-05-29) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.0.0-beta.2 (2023-02-16) ### Features Added diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/api/Azure.ResourceManager.Datadog.netstandard2.0.cs b/sdk/datadog/Azure.ResourceManager.Datadog/api/Azure.ResourceManager.Datadog.netstandard2.0.cs index 586783e8dc64..75df9246790b 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/api/Azure.ResourceManager.Datadog.netstandard2.0.cs +++ b/sdk/datadog/Azure.ResourceManager.Datadog/api/Azure.ResourceManager.Datadog.netstandard2.0.cs @@ -144,6 +144,22 @@ protected MonitoringTagRuleResource() { } } namespace Azure.ResourceManager.Datadog.Models { + public static partial class ArmDatadogModelFactory + { + public static Azure.ResourceManager.Datadog.Models.DatadogAgreementResource DatadogAgreementResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Datadog.Models.DatadogAgreementProperties properties = null) { throw null; } + public static Azure.ResourceManager.Datadog.Models.DatadogHost DatadogHost(string name = null, System.Collections.Generic.IEnumerable aliases = null, System.Collections.Generic.IEnumerable apps = null, Azure.ResourceManager.Datadog.Models.DatadogHostMetadata meta = null) { throw null; } + public static Azure.ResourceManager.Datadog.Models.DatadogHostMetadata DatadogHostMetadata(string agentVersion = null, Azure.ResourceManager.Datadog.Models.DatadogInstallMethod installMethod = null, string logsAgentTransport = null) { throw null; } + public static Azure.ResourceManager.Datadog.Models.DatadogInstallMethod DatadogInstallMethod(string tool = null, string toolVersion = null, string installerVersion = null) { throw null; } + public static Azure.ResourceManager.Datadog.DatadogMonitorResourceData DatadogMonitorResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string skuName = null, Azure.ResourceManager.Datadog.Models.MonitorProperties properties = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null) { throw null; } + public static Azure.ResourceManager.Datadog.Models.DatadogOrganizationProperties DatadogOrganizationProperties(string name = null, string id = null, string linkingAuthCode = null, string linkingClientId = null, System.Uri redirectUri = null, string apiKey = null, string applicationKey = null, string enterpriseAppId = null) { throw null; } + public static Azure.ResourceManager.Datadog.Models.DatadogSetPasswordLink DatadogSetPasswordLink(string setPasswordLink = null) { throw null; } + public static Azure.ResourceManager.Datadog.Models.DatadogSingleSignOnProperties DatadogSingleSignOnProperties(Azure.ResourceManager.Datadog.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.Datadog.Models.ProvisioningState?), Azure.ResourceManager.Datadog.Models.SingleSignOnState? singleSignOnState = default(Azure.ResourceManager.Datadog.Models.SingleSignOnState?), string enterpriseAppId = null, System.Uri singleSignOnUri = null) { throw null; } + public static Azure.ResourceManager.Datadog.DatadogSingleSignOnResourceData DatadogSingleSignOnResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Datadog.Models.DatadogSingleSignOnProperties properties = null) { throw null; } + public static Azure.ResourceManager.Datadog.Models.MonitoredResource MonitoredResource(string id = null, bool? sendingMetrics = default(bool?), string reasonForMetricsStatus = null, bool? sendingLogs = default(bool?), string reasonForLogsStatus = null) { throw null; } + public static Azure.ResourceManager.Datadog.MonitoringTagRuleData MonitoringTagRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Datadog.Models.MonitoringTagRulesProperties properties = null) { throw null; } + public static Azure.ResourceManager.Datadog.Models.MonitoringTagRulesProperties MonitoringTagRulesProperties(Azure.ResourceManager.Datadog.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.Datadog.Models.ProvisioningState?), Azure.ResourceManager.Datadog.Models.LogRules logRules = null, System.Collections.Generic.IEnumerable metricRulesFilteringTags = null) { throw null; } + public static Azure.ResourceManager.Datadog.Models.MonitorProperties MonitorProperties(Azure.ResourceManager.Datadog.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.Datadog.Models.ProvisioningState?), Azure.ResourceManager.Datadog.Models.MonitoringStatus? monitoringStatus = default(Azure.ResourceManager.Datadog.Models.MonitoringStatus?), Azure.ResourceManager.Datadog.Models.MarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = default(Azure.ResourceManager.Datadog.Models.MarketplaceSubscriptionStatus?), Azure.ResourceManager.Datadog.Models.DatadogOrganizationProperties datadogOrganizationProperties = null, Azure.ResourceManager.Datadog.Models.UserInfo userInfo = null, Azure.ResourceManager.Datadog.Models.LiftrResourceCategory? liftrResourceCategory = default(Azure.ResourceManager.Datadog.Models.LiftrResourceCategory?), int? liftrResourcePreference = default(int?)) { throw null; } + } public partial class DatadogAgreementProperties { public DatadogAgreementProperties() { } diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/ArmDatadogModelFactory.cs b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/ArmDatadogModelFactory.cs new file mode 100644 index 000000000000..7d6f6e7eeded --- /dev/null +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/Generated/ArmDatadogModelFactory.cs @@ -0,0 +1,180 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Core; +using Azure.ResourceManager.Datadog; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Datadog.Models +{ + /// Model factory for models. + public static partial class ArmDatadogModelFactory + { + /// Initializes a new instance of DatadogAgreementResource. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Represents the properties of the resource. + /// A new instance for mocking. + public static DatadogAgreementResource DatadogAgreementResource(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DatadogAgreementProperties properties = null) + { + return new DatadogAgreementResource(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of DatadogHost. + /// The name of the host. + /// The aliases for the host. + /// The Datadog integrations reporting metrics for the host. + /// + /// A new instance for mocking. + public static DatadogHost DatadogHost(string name = null, IEnumerable aliases = null, IEnumerable apps = null, DatadogHostMetadata meta = null) + { + aliases ??= new List(); + apps ??= new List(); + + return new DatadogHost(name, aliases?.ToList(), apps?.ToList(), meta); + } + + /// Initializes a new instance of DatadogHostMetadata. + /// The agent version. + /// + /// + /// A new instance for mocking. + public static DatadogHostMetadata DatadogHostMetadata(string agentVersion = null, DatadogInstallMethod installMethod = null, string logsAgentTransport = null) + { + return new DatadogHostMetadata(agentVersion, installMethod, logsAgentTransport != null ? new DatadogLogsAgent(logsAgentTransport) : null); + } + + /// Initializes a new instance of DatadogInstallMethod. + /// The tool. + /// The tool version. + /// The installer version. + /// A new instance for mocking. + public static DatadogInstallMethod DatadogInstallMethod(string tool = null, string toolVersion = null, string installerVersion = null) + { + return new DatadogInstallMethod(tool, toolVersion, installerVersion); + } + + /// Initializes a new instance of MonitoredResource. + /// The ARM id of the resource. + /// Flag indicating if resource is sending metrics to Datadog. + /// Reason for why the resource is sending metrics (or why it is not sending). + /// Flag indicating if resource is sending logs to Datadog. + /// Reason for why the resource is sending logs (or why it is not sending). + /// A new instance for mocking. + public static MonitoredResource MonitoredResource(string id = null, bool? sendingMetrics = null, string reasonForMetricsStatus = null, bool? sendingLogs = null, string reasonForLogsStatus = null) + { + return new MonitoredResource(id, sendingMetrics, reasonForMetricsStatus, sendingLogs, reasonForLogsStatus); + } + + /// Initializes a new instance of DatadogMonitorResourceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// + /// Properties specific to the monitor resource. + /// Gets or sets the identity. Current supported identity types: SystemAssigned, UserAssigned. + /// A new instance for mocking. + public static DatadogMonitorResourceData DatadogMonitorResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string skuName = null, MonitorProperties properties = null, ManagedServiceIdentity identity = null) + { + tags ??= new Dictionary(); + + return new DatadogMonitorResourceData(id, name, resourceType, systemData, tags, location, skuName != null ? new ResourceSku(skuName) : null, properties, identity); + } + + /// Initializes a new instance of MonitorProperties. + /// + /// Flag specifying if the resource monitoring is enabled or disabled. + /// Flag specifying the Marketplace Subscription Status of the resource. If payment is not made in time, the resource will go in Suspended state. + /// Datadog organization properties. + /// User info. + /// + /// The priority of the resource. + /// A new instance for mocking. + public static MonitorProperties MonitorProperties(ProvisioningState? provisioningState = null, MonitoringStatus? monitoringStatus = null, MarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = null, DatadogOrganizationProperties datadogOrganizationProperties = null, UserInfo userInfo = null, LiftrResourceCategory? liftrResourceCategory = null, int? liftrResourcePreference = null) + { + return new MonitorProperties(provisioningState, monitoringStatus, marketplaceSubscriptionStatus, datadogOrganizationProperties, userInfo, liftrResourceCategory, liftrResourcePreference); + } + + /// Initializes a new instance of DatadogOrganizationProperties. + /// Name of the Datadog organization. + /// Id of the Datadog organization. + /// The auth code used to linking to an existing datadog organization. + /// The client_id from an existing in exchange for an auth token to link organization. + /// The redirect uri for linking. + /// Api key associated to the Datadog organization. + /// Application key associated to the Datadog organization. + /// The Id of the Enterprise App used for Single sign on. + /// A new instance for mocking. + public static DatadogOrganizationProperties DatadogOrganizationProperties(string name = null, string id = null, string linkingAuthCode = null, string linkingClientId = null, Uri redirectUri = null, string apiKey = null, string applicationKey = null, string enterpriseAppId = null) + { + return new DatadogOrganizationProperties(name, id, linkingAuthCode, linkingClientId, redirectUri, apiKey, applicationKey, enterpriseAppId); + } + + /// Initializes a new instance of DatadogSetPasswordLink. + /// + /// A new instance for mocking. + public static DatadogSetPasswordLink DatadogSetPasswordLink(string setPasswordLink = null) + { + return new DatadogSetPasswordLink(setPasswordLink); + } + + /// Initializes a new instance of MonitoringTagRuleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Definition of the properties for a TagRules resource. + /// A new instance for mocking. + public static MonitoringTagRuleData MonitoringTagRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MonitoringTagRulesProperties properties = null) + { + return new MonitoringTagRuleData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of MonitoringTagRulesProperties. + /// + /// Set of rules for sending logs for the Monitor resource. + /// Set of rules for sending metrics for the Monitor resource. + /// A new instance for mocking. + public static MonitoringTagRulesProperties MonitoringTagRulesProperties(ProvisioningState? provisioningState = null, LogRules logRules = null, IEnumerable metricRulesFilteringTags = null) + { + metricRulesFilteringTags ??= new List(); + + return new MonitoringTagRulesProperties(provisioningState, logRules, metricRulesFilteringTags != null ? new MetricRules(metricRulesFilteringTags?.ToList()) : null); + } + + /// Initializes a new instance of DatadogSingleSignOnResourceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// A new instance for mocking. + public static DatadogSingleSignOnResourceData DatadogSingleSignOnResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DatadogSingleSignOnProperties properties = null) + { + return new DatadogSingleSignOnResourceData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of DatadogSingleSignOnProperties. + /// + /// Various states of the SSO resource. + /// The Id of the Enterprise App used for Single sign-on. + /// The login URL specific to this Datadog Organization. + /// A new instance for mocking. + public static DatadogSingleSignOnProperties DatadogSingleSignOnProperties(ProvisioningState? provisioningState = null, SingleSignOnState? singleSignOnState = null, string enterpriseAppId = null, Uri singleSignOnUri = null) + { + return new DatadogSingleSignOnProperties(provisioningState, singleSignOnState, enterpriseAppId, singleSignOnUri); + } + } +} diff --git a/sdk/datadog/Azure.ResourceManager.Datadog/src/autorest.md b/sdk/datadog/Azure.ResourceManager.Datadog/src/autorest.md index b7704ea882ec..f22918e5825c 100644 --- a/sdk/datadog/Azure.ResourceManager.Datadog/src/autorest.md +++ b/sdk/datadog/Azure.ResourceManager.Datadog/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: Datadog namespace: Azure.ResourceManager.Datadog diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/CHANGELOG.md b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/CHANGELOG.md index 2acc0b675146..4aa4be428507 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/CHANGELOG.md +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.2 (Unreleased) +## 1.1.0-beta.2 (2023-05-29) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.1.0-beta.1 (2023-02-16) ### Features Added diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/api/Azure.ResourceManager.DataLakeAnalytics.netstandard2.0.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/api/Azure.ResourceManager.DataLakeAnalytics.netstandard2.0.cs index 55d12a8a8f41..a635dd018c41 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/api/Azure.ResourceManager.DataLakeAnalytics.netstandard2.0.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/api/Azure.ResourceManager.DataLakeAnalytics.netstandard2.0.cs @@ -297,6 +297,21 @@ namespace Azure.ResourceManager.DataLakeAnalytics.Models public static bool operator !=(Azure.ResourceManager.DataLakeAnalytics.Models.AadObjectIdentifierType left, Azure.ResourceManager.DataLakeAnalytics.Models.AadObjectIdentifierType right) { throw null; } public override string ToString() { throw null; } } + public static partial class ArmDataLakeAnalyticsModelFactory + { + public static Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsAccountBasic DataLakeAnalyticsAccountBasic(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? accountId = default(System.Guid?), Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsAccountStatus? provisioningState = default(Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsAccountStatus?), Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsAccountState? state = default(Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsAccountState?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string endpoint = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IReadOnlyDictionary tags = null) { throw null; } + public static Azure.ResourceManager.DataLakeAnalytics.DataLakeAnalyticsAccountData DataLakeAnalyticsAccountData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? accountId = default(System.Guid?), Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsAccountStatus? provisioningState = default(Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsAccountStatus?), Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsAccountState? state = default(Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsAccountState?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string endpoint = null, string defaultDataLakeStoreAccount = null, System.Collections.Generic.IEnumerable dataLakeStoreAccounts = null, System.Collections.Generic.IEnumerable publicDataLakeStoreAccounts = null, System.Collections.Generic.IEnumerable storageAccounts = null, System.Collections.Generic.IEnumerable computePolicies = null, System.Collections.Generic.IEnumerable hiveMetastores = null, System.Collections.Generic.IEnumerable virtualNetworkRules = null, System.Collections.Generic.IEnumerable firewallRules = null, Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsFirewallState? firewallState = default(Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsFirewallState?), Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsFirewallAllowAzureIPsState? firewallAllowAzureIPs = default(Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsFirewallAllowAzureIPsState?), Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsCommitmentTierType? newTier = default(Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsCommitmentTierType?), Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsCommitmentTierType? currentTier = default(Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsCommitmentTierType?), int? maxJobCount = default(int?), int? maxActiveJobCountPerUser = default(int?), int? maxQueuedJobCountPerUser = default(int?), int? maxJobRunningTimeInMin = default(int?), int? systemMaxJobCount = default(int?), int? maxDegreeOfParallelism = default(int?), int? systemMaxDegreeOfParallelism = default(int?), int? maxDegreeOfParallelismPerJob = default(int?), int? minPriorityPerJob = default(int?), int? queryStoreRetention = default(int?), Azure.ResourceManager.DataLakeAnalytics.Models.DebugDataAccessLevel? debugDataAccessLevel = default(Azure.ResourceManager.DataLakeAnalytics.Models.DebugDataAccessLevel?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IReadOnlyDictionary tags = null) { throw null; } + public static Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsAccountNameAvailabilityResult DataLakeAnalyticsAccountNameAvailabilityResult(bool? isNameAvailable = default(bool?), string reason = null, string message = null) { throw null; } + public static Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsCapabilityInformation DataLakeAnalyticsCapabilityInformation(System.Guid? subscriptionId = default(System.Guid?), Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsSubscriptionState? state = default(Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsSubscriptionState?), int? maxAccountCount = default(int?), int? accountCount = default(int?), bool? isUnderMigrationState = default(bool?)) { throw null; } + public static Azure.ResourceManager.DataLakeAnalytics.DataLakeAnalyticsComputePolicyData DataLakeAnalyticsComputePolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? objectId = default(System.Guid?), Azure.ResourceManager.DataLakeAnalytics.Models.AadObjectIdentifierType? objectType = default(Azure.ResourceManager.DataLakeAnalytics.Models.AadObjectIdentifierType?), int? maxDegreeOfParallelismPerJob = default(int?), int? minPriorityPerJob = default(int?)) { throw null; } + public static Azure.ResourceManager.DataLakeAnalytics.DataLakeAnalyticsFirewallRuleData DataLakeAnalyticsFirewallRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Net.IPAddress startIPAddress = null, System.Net.IPAddress endIPAddress = null) { throw null; } + public static Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsHiveMetastore DataLakeAnalyticsHiveMetastore(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Uri serverUri = null, string databaseName = null, string runtimeVersion = null, string userName = null, string password = null, Azure.ResourceManager.DataLakeAnalytics.Models.NestedResourceProvisioningState? nestedResourceProvisioningState = default(Azure.ResourceManager.DataLakeAnalytics.Models.NestedResourceProvisioningState?)) { throw null; } + public static Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsSasTokenInformation DataLakeAnalyticsSasTokenInformation(string accessToken = null) { throw null; } + public static Azure.ResourceManager.DataLakeAnalytics.DataLakeAnalyticsStorageAccountInformationData DataLakeAnalyticsStorageAccountInformationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string suffix = null) { throw null; } + public static Azure.ResourceManager.DataLakeAnalytics.DataLakeAnalyticsStorageContainerData DataLakeAnalyticsStorageContainerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsVirtualNetworkRule DataLakeAnalyticsVirtualNetworkRule(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier subnetId = null, Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsVirtualNetworkRuleState? virtualNetworkRuleState = default(Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsVirtualNetworkRuleState?)) { throw null; } + public static Azure.ResourceManager.DataLakeAnalytics.DataLakeStoreAccountInformationData DataLakeStoreAccountInformationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string suffix = null) { throw null; } + } public partial class ComputePolicyForDataLakeAnalyticsAccountCreateOrUpdateContent { public ComputePolicyForDataLakeAnalyticsAccountCreateOrUpdateContent(string name, System.Guid objectId, Azure.ResourceManager.DataLakeAnalytics.Models.AadObjectIdentifierType objectType) { } diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/ArmDataLakeAnalyticsModelFactory.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/ArmDataLakeAnalyticsModelFactory.cs new file mode 100644 index 000000000000..f9d93b061d46 --- /dev/null +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/ArmDataLakeAnalyticsModelFactory.cs @@ -0,0 +1,412 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using Azure.Core; +using Azure.ResourceManager.DataLakeAnalytics; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DataLakeAnalytics.Models +{ + /// Model factory for models. + public static partial class ArmDataLakeAnalyticsModelFactory + { + /// Initializes a new instance of DataLakeAnalyticsAccountBasic. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The unique identifier associated with this Data Lake Analytics account. + /// Serialized Name: DataLakeAnalyticsAccountBasic.properties.accountId + /// + /// + /// The provisioning status of the Data Lake Analytics account. + /// Serialized Name: DataLakeAnalyticsAccountBasic.properties.provisioningState + /// + /// + /// The state of the Data Lake Analytics account. + /// Serialized Name: DataLakeAnalyticsAccountBasic.properties.state + /// + /// + /// The account creation time. + /// Serialized Name: DataLakeAnalyticsAccountBasic.properties.creationTime + /// + /// + /// The account last modified time. + /// Serialized Name: DataLakeAnalyticsAccountBasic.properties.lastModifiedTime + /// + /// + /// The full CName endpoint for this account. + /// Serialized Name: DataLakeAnalyticsAccountBasic.properties.endpoint + /// + /// + /// The resource location. + /// Serialized Name: Resource.location + /// + /// + /// The resource tags. + /// Serialized Name: Resource.tags + /// + /// A new instance for mocking. + public static DataLakeAnalyticsAccountBasic DataLakeAnalyticsAccountBasic(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Guid? accountId = null, DataLakeAnalyticsAccountStatus? provisioningState = null, DataLakeAnalyticsAccountState? state = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string endpoint = null, AzureLocation? location = null, IReadOnlyDictionary tags = null) + { + tags ??= new Dictionary(); + + return new DataLakeAnalyticsAccountBasic(id, name, resourceType, systemData, accountId, provisioningState, state, createdOn, lastModifiedOn, endpoint, location, tags); + } + + /// Initializes a new instance of DataLakeAnalyticsAccountData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The unique identifier associated with this Data Lake Analytics account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.accountId + /// + /// + /// The provisioning status of the Data Lake Analytics account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.provisioningState + /// + /// + /// The state of the Data Lake Analytics account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.state + /// + /// + /// The account creation time. + /// Serialized Name: DataLakeAnalyticsAccount.properties.creationTime + /// + /// + /// The account last modified time. + /// Serialized Name: DataLakeAnalyticsAccount.properties.lastModifiedTime + /// + /// + /// The full CName endpoint for this account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.endpoint + /// + /// + /// The default Data Lake Store account associated with this account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.defaultDataLakeStoreAccount + /// + /// + /// The list of Data Lake Store accounts associated with this account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.dataLakeStoreAccounts + /// + /// + /// The list of Data Lake Store accounts associated with this account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.publicDataLakeStoreAccounts + /// + /// + /// The list of Azure Blob Storage accounts associated with this account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.storageAccounts + /// + /// + /// The list of compute policies associated with this account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.computePolicies + /// + /// + /// The list of hiveMetastores associated with this account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.hiveMetastores + /// + /// + /// The list of virtualNetwork rules associated with this account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.virtualNetworkRules + /// + /// + /// The list of firewall rules associated with this account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.firewallRules + /// + /// + /// The current state of the IP address firewall for this account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.firewallState + /// + /// + /// The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced. + /// Serialized Name: DataLakeAnalyticsAccount.properties.firewallAllowAzureIps + /// + /// + /// The commitment tier for the next month. + /// Serialized Name: DataLakeAnalyticsAccount.properties.newTier + /// + /// + /// The commitment tier in use for the current month. + /// Serialized Name: DataLakeAnalyticsAccount.properties.currentTier + /// + /// + /// The maximum supported jobs running under the account at the same time. + /// Serialized Name: DataLakeAnalyticsAccount.properties.maxJobCount + /// + /// + /// The maximum supported active jobs under the account at the same time. + /// Serialized Name: DataLakeAnalyticsAccount.properties.maxActiveJobCountPerUser + /// + /// + /// The maximum supported jobs queued under the account at the same time. + /// Serialized Name: DataLakeAnalyticsAccount.properties.maxQueuedJobCountPerUser + /// + /// + /// The maximum supported active jobs under the account at the same time. + /// Serialized Name: DataLakeAnalyticsAccount.properties.maxJobRunningTimeInMin + /// + /// + /// The system defined maximum supported jobs running under the account at the same time, which restricts the maximum number of running jobs the user can set for the account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.systemMaxJobCount + /// + /// + /// The maximum supported degree of parallelism for this account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.maxDegreeOfParallelism + /// + /// + /// The system defined maximum supported degree of parallelism for this account, which restricts the maximum value of parallelism the user can set for the account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.systemMaxDegreeOfParallelism + /// + /// + /// The maximum supported degree of parallelism per job for this account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.maxDegreeOfParallelismPerJob + /// + /// + /// The minimum supported priority per job for this account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.minPriorityPerJob + /// + /// + /// The number of days that job metadata is retained. + /// Serialized Name: DataLakeAnalyticsAccount.properties.queryStoreRetention + /// + /// + /// The current state of the DebugDataAccessLevel for this account. + /// Serialized Name: DataLakeAnalyticsAccount.properties.debugDataAccessLevel + /// + /// + /// The resource location. + /// Serialized Name: Resource.location + /// + /// + /// The resource tags. + /// Serialized Name: Resource.tags + /// + /// A new instance for mocking. + public static DataLakeAnalyticsAccountData DataLakeAnalyticsAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Guid? accountId = null, DataLakeAnalyticsAccountStatus? provisioningState = null, DataLakeAnalyticsAccountState? state = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string endpoint = null, string defaultDataLakeStoreAccount = null, IEnumerable dataLakeStoreAccounts = null, IEnumerable publicDataLakeStoreAccounts = null, IEnumerable storageAccounts = null, IEnumerable computePolicies = null, IEnumerable hiveMetastores = null, IEnumerable virtualNetworkRules = null, IEnumerable firewallRules = null, DataLakeAnalyticsFirewallState? firewallState = null, DataLakeAnalyticsFirewallAllowAzureIPsState? firewallAllowAzureIPs = null, DataLakeAnalyticsCommitmentTierType? newTier = null, DataLakeAnalyticsCommitmentTierType? currentTier = null, int? maxJobCount = null, int? maxActiveJobCountPerUser = null, int? maxQueuedJobCountPerUser = null, int? maxJobRunningTimeInMin = null, int? systemMaxJobCount = null, int? maxDegreeOfParallelism = null, int? systemMaxDegreeOfParallelism = null, int? maxDegreeOfParallelismPerJob = null, int? minPriorityPerJob = null, int? queryStoreRetention = null, DebugDataAccessLevel? debugDataAccessLevel = null, AzureLocation? location = null, IReadOnlyDictionary tags = null) + { + dataLakeStoreAccounts ??= new List(); + publicDataLakeStoreAccounts ??= new List(); + storageAccounts ??= new List(); + computePolicies ??= new List(); + hiveMetastores ??= new List(); + virtualNetworkRules ??= new List(); + firewallRules ??= new List(); + tags ??= new Dictionary(); + + return new DataLakeAnalyticsAccountData(id, name, resourceType, systemData, accountId, provisioningState, state, createdOn, lastModifiedOn, endpoint, defaultDataLakeStoreAccount, dataLakeStoreAccounts?.ToList(), publicDataLakeStoreAccounts?.ToList(), storageAccounts?.ToList(), computePolicies?.ToList(), hiveMetastores?.ToList(), virtualNetworkRules?.ToList(), firewallRules?.ToList(), firewallState, firewallAllowAzureIPs, newTier, currentTier, maxJobCount, maxActiveJobCountPerUser, maxQueuedJobCountPerUser, maxJobRunningTimeInMin, systemMaxJobCount, maxDegreeOfParallelism, systemMaxDegreeOfParallelism, maxDegreeOfParallelismPerJob, minPriorityPerJob, queryStoreRetention, debugDataAccessLevel, location, tags); + } + + /// Initializes a new instance of DataLakeStoreAccountInformationData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The optional suffix for the Data Lake Store account. + /// Serialized Name: DataLakeStoreAccountInformation.properties.suffix + /// + /// A new instance for mocking. + public static DataLakeStoreAccountInformationData DataLakeStoreAccountInformationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string suffix = null) + { + return new DataLakeStoreAccountInformationData(id, name, resourceType, systemData, suffix); + } + + /// Initializes a new instance of DataLakeAnalyticsStorageAccountInformationData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The optional suffix for the storage account. + /// Serialized Name: StorageAccountInformation.properties.suffix + /// + /// A new instance for mocking. + public static DataLakeAnalyticsStorageAccountInformationData DataLakeAnalyticsStorageAccountInformationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string suffix = null) + { + return new DataLakeAnalyticsStorageAccountInformationData(id, name, resourceType, systemData, suffix); + } + + /// Initializes a new instance of DataLakeAnalyticsComputePolicyData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The AAD object identifier for the entity to create a policy for. + /// Serialized Name: ComputePolicy.properties.objectId + /// + /// + /// The type of AAD object the object identifier refers to. + /// Serialized Name: ComputePolicy.properties.objectType + /// + /// + /// The maximum degree of parallelism per job this user can use to submit jobs. + /// Serialized Name: ComputePolicy.properties.maxDegreeOfParallelismPerJob + /// + /// + /// The minimum priority per job this user can use to submit jobs. + /// Serialized Name: ComputePolicy.properties.minPriorityPerJob + /// + /// A new instance for mocking. + public static DataLakeAnalyticsComputePolicyData DataLakeAnalyticsComputePolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Guid? objectId = null, AadObjectIdentifierType? objectType = null, int? maxDegreeOfParallelismPerJob = null, int? minPriorityPerJob = null) + { + return new DataLakeAnalyticsComputePolicyData(id, name, resourceType, systemData, objectId, objectType, maxDegreeOfParallelismPerJob, minPriorityPerJob); + } + + /// Initializes a new instance of DataLakeAnalyticsHiveMetastore. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The serverUri for the Hive MetaStore + /// Serialized Name: HiveMetastore.properties.serverUri + /// + /// + /// The databaseName for the Hive MetaStore + /// Serialized Name: HiveMetastore.properties.databaseName + /// + /// + /// The runtimeVersion for the Hive MetaStore + /// Serialized Name: HiveMetastore.properties.runtimeVersion + /// + /// + /// The userName for the Hive MetaStore + /// Serialized Name: HiveMetastore.properties.userName + /// + /// + /// The password for the Hive MetaStore + /// Serialized Name: HiveMetastore.properties.password + /// + /// + /// The current state of the NestedResource + /// Serialized Name: HiveMetastore.properties.nestedResourceProvisioningState + /// + /// A new instance for mocking. + public static DataLakeAnalyticsHiveMetastore DataLakeAnalyticsHiveMetastore(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Uri serverUri = null, string databaseName = null, string runtimeVersion = null, string userName = null, string password = null, NestedResourceProvisioningState? nestedResourceProvisioningState = null) + { + return new DataLakeAnalyticsHiveMetastore(id, name, resourceType, systemData, serverUri, databaseName, runtimeVersion, userName, password, nestedResourceProvisioningState); + } + + /// Initializes a new instance of DataLakeAnalyticsVirtualNetworkRule. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The resource identifier for the subnet + /// Serialized Name: VirtualNetworkRule.properties.subnetId + /// + /// + /// The current state of the VirtualNetwork Rule + /// Serialized Name: VirtualNetworkRule.properties.virtualNetworkRuleState + /// + /// A new instance for mocking. + public static DataLakeAnalyticsVirtualNetworkRule DataLakeAnalyticsVirtualNetworkRule(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier subnetId = null, DataLakeAnalyticsVirtualNetworkRuleState? virtualNetworkRuleState = null) + { + return new DataLakeAnalyticsVirtualNetworkRule(id, name, resourceType, systemData, subnetId, virtualNetworkRuleState); + } + + /// Initializes a new instance of DataLakeAnalyticsFirewallRuleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol. + /// Serialized Name: FirewallRule.properties.startIpAddress + /// + /// + /// The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol. + /// Serialized Name: FirewallRule.properties.endIpAddress + /// + /// A new instance for mocking. + public static DataLakeAnalyticsFirewallRuleData DataLakeAnalyticsFirewallRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IPAddress startIPAddress = null, IPAddress endIPAddress = null) + { + return new DataLakeAnalyticsFirewallRuleData(id, name, resourceType, systemData, startIPAddress, endIPAddress); + } + + /// Initializes a new instance of DataLakeAnalyticsStorageContainerData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The last modified time of the blob container. + /// Serialized Name: StorageContainer.properties.lastModifiedTime + /// + /// A new instance for mocking. + public static DataLakeAnalyticsStorageContainerData DataLakeAnalyticsStorageContainerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? lastModifiedOn = null) + { + return new DataLakeAnalyticsStorageContainerData(id, name, resourceType, systemData, lastModifiedOn); + } + + /// Initializes a new instance of DataLakeAnalyticsSasTokenInformation. + /// + /// The access token for the associated Azure Storage Container. + /// Serialized Name: SasTokenInformation.accessToken + /// + /// A new instance for mocking. + public static DataLakeAnalyticsSasTokenInformation DataLakeAnalyticsSasTokenInformation(string accessToken = null) + { + return new DataLakeAnalyticsSasTokenInformation(accessToken); + } + + /// Initializes a new instance of DataLakeAnalyticsCapabilityInformation. + /// + /// The subscription credentials that uniquely identifies the subscription. + /// Serialized Name: CapabilityInformation.subscriptionId + /// + /// + /// The subscription state. + /// Serialized Name: CapabilityInformation.state + /// + /// + /// The maximum supported number of accounts under this subscription. + /// Serialized Name: CapabilityInformation.maxAccountCount + /// + /// + /// The current number of accounts under this subscription. + /// Serialized Name: CapabilityInformation.accountCount + /// + /// + /// The Boolean value of true or false to indicate the maintenance state. + /// Serialized Name: CapabilityInformation.migrationState + /// + /// A new instance for mocking. + public static DataLakeAnalyticsCapabilityInformation DataLakeAnalyticsCapabilityInformation(Guid? subscriptionId = null, DataLakeAnalyticsSubscriptionState? state = null, int? maxAccountCount = null, int? accountCount = null, bool? isUnderMigrationState = null) + { + return new DataLakeAnalyticsCapabilityInformation(subscriptionId, state, maxAccountCount, accountCount, isUnderMigrationState); + } + + /// Initializes a new instance of DataLakeAnalyticsAccountNameAvailabilityResult. + /// + /// The Boolean value of true or false to indicate whether the Data Lake Analytics account name is available or not. + /// Serialized Name: NameAvailabilityInformation.nameAvailable + /// + /// + /// The reason why the Data Lake Analytics account name is not available, if nameAvailable is false. + /// Serialized Name: NameAvailabilityInformation.reason + /// + /// + /// The message describing why the Data Lake Analytics account name is not available, if nameAvailable is false. + /// Serialized Name: NameAvailabilityInformation.message + /// + /// A new instance for mocking. + public static DataLakeAnalyticsAccountNameAvailabilityResult DataLakeAnalyticsAccountNameAvailabilityResult(bool? isNameAvailable = null, string reason = null, string message = null) + { + return new DataLakeAnalyticsAccountNameAvailabilityResult(isNameAvailable, reason, message); + } + } +} diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/autorest.md b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/autorest.md index 3da6bec4e45d..1d396591def7 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/autorest.md +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: DataLakeAnalytics namespace: Azure.ResourceManager.DataLakeAnalytics diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/CHANGELOG.md b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/CHANGELOG.md index d68a7311cd2d..df11b99e5a81 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/CHANGELOG.md +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.2 (Unreleased) +## 1.1.0-beta.2 (2023-05-29) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.1.0-beta.1 (2023-02-16) ### Features Added diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/api/Azure.ResourceManager.DataLakeStore.netstandard2.0.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/api/Azure.ResourceManager.DataLakeStore.netstandard2.0.cs index 7595398526e1..183407e37f2f 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/api/Azure.ResourceManager.DataLakeStore.netstandard2.0.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/api/Azure.ResourceManager.DataLakeStore.netstandard2.0.cs @@ -193,6 +193,18 @@ protected DataLakeStoreVirtualNetworkRuleResource() { } } namespace Azure.ResourceManager.DataLakeStore.Models { + public static partial class ArmDataLakeStoreModelFactory + { + public static Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreAccountBasicData DataLakeStoreAccountBasicData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? accountId = default(System.Guid?), Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreAccountStatus? provisioningState = default(Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreAccountStatus?), Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreAccountState? state = default(Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreAccountState?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string endpoint = null, Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IReadOnlyDictionary tags = null) { throw null; } + public static Azure.ResourceManager.DataLakeStore.DataLakeStoreAccountData DataLakeStoreAccountData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, System.Guid? accountId = default(System.Guid?), Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreAccountStatus? provisioningState = default(Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreAccountStatus?), Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreAccountState? state = default(Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreAccountState?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string endpoint = null, string defaultGroup = null, Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreAccountEncryptionConfig encryptionConfig = null, Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreEncryptionState? encryptionState = default(Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreEncryptionState?), Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreEncryptionProvisioningState? encryptionProvisioningState = default(Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreEncryptionProvisioningState?), System.Collections.Generic.IEnumerable firewallRules = null, System.Collections.Generic.IEnumerable virtualNetworkRules = null, Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreFirewallState? firewallState = default(Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreFirewallState?), Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreFirewallAllowAzureIPsState? firewallAllowAzureIPs = default(Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreFirewallAllowAzureIPsState?), System.Collections.Generic.IEnumerable trustedIdProviders = null, Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreTrustedIdProviderState? trustedIdProviderState = default(Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreTrustedIdProviderState?), Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreCommitmentTierType? newTier = default(Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreCommitmentTierType?), Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreCommitmentTierType? currentTier = default(Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreCommitmentTierType?), Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IReadOnlyDictionary tags = null) { throw null; } + public static Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreAccountNameAvailabilityResult DataLakeStoreAccountNameAvailabilityResult(bool? isNameAvailable = default(bool?), string reason = null, string message = null) { throw null; } + public static Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreCapabilityInformation DataLakeStoreCapabilityInformation(System.Guid? subscriptionId = default(System.Guid?), Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreSubscriptionState? state = default(Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreSubscriptionState?), int? maxAccountCount = default(int?), int? accountCount = default(int?), bool? isUnderMigrationState = default(bool?)) { throw null; } + public static Azure.ResourceManager.DataLakeStore.DataLakeStoreFirewallRuleData DataLakeStoreFirewallRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Net.IPAddress startIPAddress = null, System.Net.IPAddress endIPAddress = null) { throw null; } + public static Azure.ResourceManager.DataLakeStore.DataLakeStoreTrustedIdProviderData DataLakeStoreTrustedIdProviderData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Uri idProvider = null) { throw null; } + public static Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreUsage DataLakeStoreUsage(Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreUsageUnit? unit = default(Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreUsageUnit?), Azure.Core.ResourceIdentifier id = null, int? currentValue = default(int?), int? limit = default(int?), Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreUsageName name = null) { throw null; } + public static Azure.ResourceManager.DataLakeStore.Models.DataLakeStoreUsageName DataLakeStoreUsageName(string value = null, string localizedValue = null) { throw null; } + public static Azure.ResourceManager.DataLakeStore.DataLakeStoreVirtualNetworkRuleData DataLakeStoreVirtualNetworkRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier subnetId = null) { throw null; } + } public partial class DataLakeStoreAccountBasicData : Azure.ResourceManager.Models.ResourceData { internal DataLakeStoreAccountBasicData() { } diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/ArmDataLakeStoreModelFactory.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/ArmDataLakeStoreModelFactory.cs new file mode 100644 index 000000000000..424e5cfb0538 --- /dev/null +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/ArmDataLakeStoreModelFactory.cs @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using Azure.Core; +using Azure.ResourceManager.DataLakeStore; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DataLakeStore.Models +{ + /// Model factory for models. + public static partial class ArmDataLakeStoreModelFactory + { + /// Initializes a new instance of DataLakeStoreAccountBasicData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The unique identifier associated with this Data Lake Store account. + /// The provisioning status of the Data Lake Store account. + /// The state of the Data Lake Store account. + /// The account creation time. + /// The account last modified time. + /// The full CName endpoint for this account. + /// The resource location. + /// The resource tags. + /// A new instance for mocking. + public static DataLakeStoreAccountBasicData DataLakeStoreAccountBasicData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Guid? accountId = null, DataLakeStoreAccountStatus? provisioningState = null, DataLakeStoreAccountState? state = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string endpoint = null, AzureLocation? location = null, IReadOnlyDictionary tags = null) + { + tags ??= new Dictionary(); + + return new DataLakeStoreAccountBasicData(id, name, resourceType, systemData, accountId, provisioningState, state, createdOn, lastModifiedOn, endpoint, location, tags); + } + + /// Initializes a new instance of DataLakeStoreAccountData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The Key Vault encryption identity, if any. Current supported identity types: SystemAssigned. + /// The unique identifier associated with this Data Lake Store account. + /// The provisioning status of the Data Lake Store account. + /// The state of the Data Lake Store account. + /// The account creation time. + /// The account last modified time. + /// The full CName endpoint for this account. + /// The default owner group for all new folders and files created in the Data Lake Store account. + /// The Key Vault encryption configuration. + /// The current state of encryption for this Data Lake Store account. + /// The current state of encryption provisioning for this Data Lake Store account. + /// The list of firewall rules associated with this Data Lake Store account. + /// The list of virtual network rules associated with this Data Lake Store account. + /// The current state of the IP address firewall for this Data Lake Store account. + /// The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced. + /// The list of trusted identity providers associated with this Data Lake Store account. + /// The current state of the trusted identity provider feature for this Data Lake Store account. + /// The commitment tier to use for next month. + /// The commitment tier in use for the current month. + /// The resource location. + /// The resource tags. + /// A new instance for mocking. + public static DataLakeStoreAccountData DataLakeStoreAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ManagedServiceIdentity identity = null, Guid? accountId = null, DataLakeStoreAccountStatus? provisioningState = null, DataLakeStoreAccountState? state = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string endpoint = null, string defaultGroup = null, DataLakeStoreAccountEncryptionConfig encryptionConfig = null, DataLakeStoreEncryptionState? encryptionState = null, DataLakeStoreEncryptionProvisioningState? encryptionProvisioningState = null, IEnumerable firewallRules = null, IEnumerable virtualNetworkRules = null, DataLakeStoreFirewallState? firewallState = null, DataLakeStoreFirewallAllowAzureIPsState? firewallAllowAzureIPs = null, IEnumerable trustedIdProviders = null, DataLakeStoreTrustedIdProviderState? trustedIdProviderState = null, DataLakeStoreCommitmentTierType? newTier = null, DataLakeStoreCommitmentTierType? currentTier = null, AzureLocation? location = null, IReadOnlyDictionary tags = null) + { + firewallRules ??= new List(); + virtualNetworkRules ??= new List(); + trustedIdProviders ??= new List(); + tags ??= new Dictionary(); + + return new DataLakeStoreAccountData(id, name, resourceType, systemData, identity, accountId, provisioningState, state, createdOn, lastModifiedOn, endpoint, defaultGroup, encryptionConfig, encryptionState, encryptionProvisioningState, firewallRules?.ToList(), virtualNetworkRules?.ToList(), firewallState, firewallAllowAzureIPs, trustedIdProviders?.ToList(), trustedIdProviderState, newTier, currentTier, location, tags); + } + + /// Initializes a new instance of DataLakeStoreFirewallRuleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol. + /// The end IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol. + /// A new instance for mocking. + public static DataLakeStoreFirewallRuleData DataLakeStoreFirewallRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IPAddress startIPAddress = null, IPAddress endIPAddress = null) + { + return new DataLakeStoreFirewallRuleData(id, name, resourceType, systemData, startIPAddress, endIPAddress); + } + + /// Initializes a new instance of DataLakeStoreVirtualNetworkRuleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The resource identifier for the subnet. + /// A new instance for mocking. + public static DataLakeStoreVirtualNetworkRuleData DataLakeStoreVirtualNetworkRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier subnetId = null) + { + return new DataLakeStoreVirtualNetworkRuleData(id, name, resourceType, systemData, subnetId); + } + + /// Initializes a new instance of DataLakeStoreTrustedIdProviderData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The URL of this trusted identity provider. + /// A new instance for mocking. + public static DataLakeStoreTrustedIdProviderData DataLakeStoreTrustedIdProviderData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Uri idProvider = null) + { + return new DataLakeStoreTrustedIdProviderData(id, name, resourceType, systemData, idProvider); + } + + /// Initializes a new instance of DataLakeStoreCapabilityInformation. + /// The subscription credentials that uniquely identifies the subscription. + /// The subscription state. + /// The maximum supported number of accounts under this subscription. + /// The current number of accounts under this subscription. + /// The Boolean value of true or false to indicate the maintenance state. + /// A new instance for mocking. + public static DataLakeStoreCapabilityInformation DataLakeStoreCapabilityInformation(Guid? subscriptionId = null, DataLakeStoreSubscriptionState? state = null, int? maxAccountCount = null, int? accountCount = null, bool? isUnderMigrationState = null) + { + return new DataLakeStoreCapabilityInformation(subscriptionId, state, maxAccountCount, accountCount, isUnderMigrationState); + } + + /// Initializes a new instance of DataLakeStoreUsage. + /// Gets the unit of measurement. + /// Resource identifier. + /// Gets the current count of the allocated resources in the subscription. + /// Gets the maximum count of the resources that can be allocated in the subscription. + /// Gets the name of the type of usage. + /// A new instance for mocking. + public static DataLakeStoreUsage DataLakeStoreUsage(DataLakeStoreUsageUnit? unit = null, ResourceIdentifier id = null, int? currentValue = null, int? limit = null, DataLakeStoreUsageName name = null) + { + return new DataLakeStoreUsage(unit, id, currentValue, limit, name); + } + + /// Initializes a new instance of DataLakeStoreUsageName. + /// Gets a string describing the resource name. + /// Gets a localized string describing the resource name. + /// A new instance for mocking. + public static DataLakeStoreUsageName DataLakeStoreUsageName(string value = null, string localizedValue = null) + { + return new DataLakeStoreUsageName(value, localizedValue); + } + + /// Initializes a new instance of DataLakeStoreAccountNameAvailabilityResult. + /// The Boolean value of true or false to indicate whether the Data Lake Store account name is available or not. + /// The reason why the Data Lake Store account name is not available, if nameAvailable is false. + /// The message describing why the Data Lake Store account name is not available, if nameAvailable is false. + /// A new instance for mocking. + public static DataLakeStoreAccountNameAvailabilityResult DataLakeStoreAccountNameAvailabilityResult(bool? isNameAvailable = null, string reason = null, string message = null) + { + return new DataLakeStoreAccountNameAvailabilityResult(isNameAvailable, reason, message); + } + } +} diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/autorest.md b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/autorest.md index d1759d96dce4..f9df0e2c584b 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/autorest.md +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: DataLakeStore namespace: Azure.ResourceManager.DataLakeStore diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/CHANGELOG.md b/sdk/datamigration/Azure.ResourceManager.DataMigration/CHANGELOG.md index bbd5a77a5c16..37a6177052a3 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/CHANGELOG.md +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.3 (2023-05-29) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.0.0-beta.2 (2023-02-16) ### Features Added diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/api/Azure.ResourceManager.DataMigration.netstandard2.0.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/api/Azure.ResourceManager.DataMigration.netstandard2.0.cs index 448908dfc9f4..1ec1da3b0d4b 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/api/Azure.ResourceManager.DataMigration.netstandard2.0.cs +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/api/Azure.ResourceManager.DataMigration.netstandard2.0.cs @@ -411,6 +411,209 @@ protected SqlMigrationServiceResource() { } } namespace Azure.ResourceManager.DataMigration.Models { + public static partial class ArmDataMigrationModelFactory + { + public static Azure.ResourceManager.DataMigration.Models.AuthenticationKeys AuthenticationKeys(string authKey1 = null, string authKey2 = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.AvailableServiceSku AvailableServiceSku(string resourceType = null, Azure.ResourceManager.DataMigration.Models.AvailableServiceSkuSku sku = null, Azure.ResourceManager.DataMigration.Models.AvailableServiceSkuCapacity capacity = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.AvailableServiceSkuCapacity AvailableServiceSkuCapacity(int? minimum = default(int?), int? maximum = default(int?), int? @default = default(int?), Azure.ResourceManager.DataMigration.Models.ServiceScalability? scaleType = default(Azure.ResourceManager.DataMigration.Models.ServiceScalability?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.AvailableServiceSkuSku AvailableServiceSkuSku(string name = null, string family = null, string size = null, string tier = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.BackupFileInfo BackupFileInfo(string fileLocation = null, int? familySequenceNumber = default(int?), Azure.ResourceManager.DataMigration.Models.BackupFileStatus? status = default(Azure.ResourceManager.DataMigration.Models.BackupFileStatus?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.BackupSetInfo BackupSetInfo(string backupSetId = null, string firstLsn = null, string lastLsn = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.BackupType? backupType = default(Azure.ResourceManager.DataMigration.Models.BackupType?), System.Collections.Generic.IEnumerable listOfBackupFiles = null, string databaseName = null, System.DateTimeOffset? backupStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? backupFinishedOn = default(System.DateTimeOffset?), bool? isBackupRestored = default(bool?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.CheckOciDriverTaskOutput CheckOciDriverTaskOutput(Azure.ResourceManager.DataMigration.Models.OracleOciDriverInfo installedDriver = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.CheckOciDriverTaskProperties CheckOciDriverTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, string inputServerVersion = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.CommandProperties CommandProperties(string commandType = "Unknown", System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.CommandState? state = default(Azure.ResourceManager.DataMigration.Models.CommandState?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToMongoDBTaskProperties ConnectToMongoDBTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.MongoDBConnectionInfo input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToSourceMySqlTaskProperties ConnectToSourceMySqlTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.ConnectToSourceMySqlTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToSourceNonSqlTaskOutput ConnectToSourceNonSqlTaskOutput(string id = null, string sourceServerBrandVersion = null, Azure.ResourceManager.DataMigration.Models.ServerProperties serverProperties = null, System.Collections.Generic.IEnumerable databases = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToSourceOracleSyncTaskOutput ConnectToSourceOracleSyncTaskOutput(string sourceServerVersion = null, System.Collections.Generic.IEnumerable databases = null, string sourceServerBrandVersion = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToSourceOracleSyncTaskProperties ConnectToSourceOracleSyncTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.OracleConnectionInfo inputSourceConnectionInfo = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToSourcePostgreSqlSyncTaskOutput ConnectToSourcePostgreSqlSyncTaskOutput(string id = null, string sourceServerVersion = null, System.Collections.Generic.IEnumerable databases = null, string sourceServerBrandVersion = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToSourcePostgreSqlSyncTaskProperties ConnectToSourcePostgreSqlSyncTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.PostgreSqlConnectionInfo inputSourceConnectionInfo = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToSourceSqlServerSyncTaskProperties ConnectToSourceSqlServerSyncTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.ConnectToSourceSqlServerTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToSourceSqlServerTaskOutput ConnectToSourceSqlServerTaskOutput(string id = null, string resultType = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToSourceSqlServerTaskOutputAgentJobLevel ConnectToSourceSqlServerTaskOutputAgentJobLevel(string id = null, string name = null, string jobCategory = null, bool? isEnabled = default(bool?), string jobOwner = null, System.DateTimeOffset? lastExecutedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable validationErrors = null, Azure.ResourceManager.DataMigration.Models.MigrationEligibilityInfo migrationEligibility = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToSourceSqlServerTaskOutputDatabaseLevel ConnectToSourceSqlServerTaskOutputDatabaseLevel(string id = null, string name = null, double? sizeMB = default(double?), System.Collections.Generic.IEnumerable databaseFiles = null, Azure.ResourceManager.DataMigration.Models.DatabaseCompatLevel? compatibilityLevel = default(Azure.ResourceManager.DataMigration.Models.DatabaseCompatLevel?), Azure.ResourceManager.DataMigration.Models.DatabaseState? databaseState = default(Azure.ResourceManager.DataMigration.Models.DatabaseState?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToSourceSqlServerTaskOutputLoginLevel ConnectToSourceSqlServerTaskOutputLoginLevel(string id = null, string name = null, Azure.ResourceManager.DataMigration.Models.LoginType? loginType = default(Azure.ResourceManager.DataMigration.Models.LoginType?), string defaultDatabase = null, bool? isEnabled = default(bool?), Azure.ResourceManager.DataMigration.Models.MigrationEligibilityInfo migrationEligibility = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToSourceSqlServerTaskOutputTaskLevel ConnectToSourceSqlServerTaskOutputTaskLevel(string id = null, string databases = null, string logins = null, string agentJobs = null, string databaseTdeCertificateMapping = null, string sourceServerVersion = null, string sourceServerBrandVersion = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToSourceSqlServerTaskProperties ConnectToSourceSqlServerTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.ConnectToSourceSqlServerTaskInput input = null, System.Collections.Generic.IEnumerable output = null, string taskId = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToTargetAzureDBForMySqlTaskOutput ConnectToTargetAzureDBForMySqlTaskOutput(string id = null, string serverVersion = null, System.Collections.Generic.IEnumerable databases = null, string targetServerBrandVersion = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToTargetAzureDBForMySqlTaskProperties ConnectToTargetAzureDBForMySqlTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.ConnectToTargetAzureDBForMySqlTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToTargetAzureDBForPostgreSqlSyncTaskOutput ConnectToTargetAzureDBForPostgreSqlSyncTaskOutput(string id = null, string targetServerVersion = null, System.Collections.Generic.IEnumerable databases = null, string targetServerBrandVersion = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToTargetAzureDBForPostgreSqlSyncTaskProperties ConnectToTargetAzureDBForPostgreSqlSyncTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.ConnectToTargetAzureDBForPostgreSqlSyncTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutput ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutput(string targetServerVersion = null, System.Collections.Generic.IEnumerable databases = null, string targetServerBrandVersion = null, System.Collections.Generic.IEnumerable validationErrors = null, System.Collections.Generic.IEnumerable databaseSchemaMap = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem(string database = null, System.Collections.Generic.IEnumerable schemas = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskProperties ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.PostgreSqlConnectionInfo inputTargetConnectionInfo = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlDBSyncTaskProperties ConnectToTargetSqlDBSyncTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlDBSyncTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlDBTaskOutput ConnectToTargetSqlDBTaskOutput(string id = null, string databases = null, string targetServerVersion = null, string targetServerBrandVersion = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlDBTaskProperties ConnectToTargetSqlDBTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlDBTaskInput input = null, System.Collections.Generic.IEnumerable output = null, string createdOn = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlMISyncTaskOutput ConnectToTargetSqlMISyncTaskOutput(string targetServerVersion = null, string targetServerBrandVersion = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlMISyncTaskProperties ConnectToTargetSqlMISyncTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlMISyncTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlMITaskOutput ConnectToTargetSqlMITaskOutput(string id = null, string targetServerVersion = null, string targetServerBrandVersion = null, System.Collections.Generic.IEnumerable logins = null, System.Collections.Generic.IEnumerable agentJobs = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlMITaskProperties ConnectToTargetSqlMITaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.ConnectToTargetSqlMITaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.CopyProgressDetails CopyProgressDetails(string tableName = null, string status = null, string parallelCopyType = null, int? usedParallelCopies = default(int?), long? dataRead = default(long?), long? dataWritten = default(long?), long? rowsRead = default(long?), long? rowsCopied = default(long?), System.DateTimeOffset? copyStart = default(System.DateTimeOffset?), double? copyThroughput = default(double?), int? copyDuration = default(int?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.DatabaseBackupInfo DatabaseBackupInfo(string databaseName = null, Azure.ResourceManager.DataMigration.Models.BackupType? backupType = default(Azure.ResourceManager.DataMigration.Models.BackupType?), System.Collections.Generic.IEnumerable backupFiles = null, int? position = default(int?), bool? isDamaged = default(bool?), bool? isCompressed = default(bool?), int? familyCount = default(int?), System.DateTimeOffset? backupFinishOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.DatabaseFileInfo DatabaseFileInfo(string databaseName = null, string id = null, string logicalName = null, string physicalFullName = null, string restoreFullName = null, Azure.ResourceManager.DataMigration.Models.DatabaseFileType? fileType = default(Azure.ResourceManager.DataMigration.Models.DatabaseFileType?), double? sizeMB = default(double?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.DatabaseMigration DatabaseMigration(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DataMigration.Models.DatabaseMigrationProperties properties = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.DatabaseMigrationProperties DatabaseMigrationProperties(string kind = "Unknown", string scope = null, string provisioningState = null, string migrationStatus = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.SqlConnectionInformation sourceSqlConnection = null, string sourceDatabaseName = null, string sourceServerName = null, string migrationService = null, string migrationOperationId = null, Azure.ResourceManager.DataMigration.Models.ErrorInfo migrationFailureError = null, string targetDatabaseCollation = null, string provisioningError = null) { throw null; } + public static Azure.ResourceManager.DataMigration.DatabaseMigrationSqlDBData DatabaseMigrationSqlDBData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DataMigration.Models.DatabaseMigrationSqlDBProperties properties = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.DatabaseMigrationSqlDBProperties DatabaseMigrationSqlDBProperties(string scope = null, string provisioningState = null, string migrationStatus = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.SqlConnectionInformation sourceSqlConnection = null, string sourceDatabaseName = null, string sourceServerName = null, string migrationService = null, string migrationOperationId = null, Azure.ResourceManager.DataMigration.Models.ErrorInfo migrationFailureError = null, string targetDatabaseCollation = null, string provisioningError = null, Azure.ResourceManager.DataMigration.Models.SqlDBMigrationStatusDetails migrationStatusDetails = null, Azure.ResourceManager.DataMigration.Models.SqlConnectionInformation targetSqlConnection = null, bool? offline = default(bool?), System.Collections.Generic.IEnumerable tableList = null) { throw null; } + public static Azure.ResourceManager.DataMigration.DatabaseMigrationSqlMIData DatabaseMigrationSqlMIData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DataMigration.Models.DatabaseMigrationSqlMIProperties properties = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.DatabaseMigrationSqlMIProperties DatabaseMigrationSqlMIProperties(string scope = null, string provisioningState = null, string migrationStatus = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.SqlConnectionInformation sourceSqlConnection = null, string sourceDatabaseName = null, string sourceServerName = null, string migrationService = null, string migrationOperationId = null, Azure.ResourceManager.DataMigration.Models.ErrorInfo migrationFailureError = null, string targetDatabaseCollation = null, string provisioningError = null, Azure.ResourceManager.DataMigration.Models.MigrationStatusDetails migrationStatusDetails = null, Azure.ResourceManager.DataMigration.Models.BackupConfiguration backupConfiguration = null, Azure.ResourceManager.DataMigration.Models.OfflineConfiguration offlineConfiguration = null) { throw null; } + public static Azure.ResourceManager.DataMigration.DatabaseMigrationSqlVmData DatabaseMigrationSqlVmData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.DataMigration.Models.DatabaseMigrationSqlVmProperties properties = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.DatabaseMigrationSqlVmProperties DatabaseMigrationSqlVmProperties(string scope = null, string provisioningState = null, string migrationStatus = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.SqlConnectionInformation sourceSqlConnection = null, string sourceDatabaseName = null, string sourceServerName = null, string migrationService = null, string migrationOperationId = null, Azure.ResourceManager.DataMigration.Models.ErrorInfo migrationFailureError = null, string targetDatabaseCollation = null, string provisioningError = null, Azure.ResourceManager.DataMigration.Models.MigrationStatusDetails migrationStatusDetails = null, Azure.ResourceManager.DataMigration.Models.BackupConfiguration backupConfiguration = null, Azure.ResourceManager.DataMigration.Models.OfflineConfiguration offlineConfiguration = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.DatabaseTable DatabaseTable(bool? hasRows = default(bool?), string name = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.DataIntegrityValidationResult DataIntegrityValidationResult(System.Collections.Generic.IReadOnlyDictionary failedObjects = null, Azure.ResourceManager.DataMigration.Models.ValidationError validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.DataMigrationServiceData DataMigrationServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), string kind = null, Azure.ResourceManager.DataMigration.Models.ServiceSku sku = null, Azure.ResourceManager.DataMigration.Models.ServiceProvisioningState? provisioningState = default(Azure.ResourceManager.DataMigration.Models.ServiceProvisioningState?), string publicKey = null, string virtualSubnetId = null, string virtualNicId = null, string autoStopDelay = null, bool? deleteResourcesOnStop = default(bool?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.DataMigrationServiceStatusResponse DataMigrationServiceStatusResponse(string agentVersion = null, System.BinaryData agentConfiguration = null, string status = null, string vmSize = null, System.Collections.Generic.IEnumerable supportedTaskTypes = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ErrorInfo ErrorInfo(string code = null, string message = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ExecutionStatistics ExecutionStatistics(long? executionCount = default(long?), float? cpuTimeMs = default(float?), float? elapsedTimeMs = default(float?), System.Collections.Generic.IReadOnlyDictionary waitStats = null, bool? hasErrors = default(bool?), System.Collections.Generic.IEnumerable sqlErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.FileStorageInfo FileStorageInfo(System.Uri uri = null, System.Collections.Generic.IReadOnlyDictionary headers = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.GetTdeCertificatesSqlTaskOutput GetTdeCertificatesSqlTaskOutput(string base64EncodedCertificates = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.GetTdeCertificatesSqlTaskProperties GetTdeCertificatesSqlTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.GetTdeCertificatesSqlTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.GetUserTablesMySqlTaskOutput GetUserTablesMySqlTaskOutput(string id = null, string databasesToTables = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.GetUserTablesMySqlTaskProperties GetUserTablesMySqlTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.GetUserTablesMySqlTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.GetUserTablesOracleTaskOutput GetUserTablesOracleTaskOutput(string schemaName = null, System.Collections.Generic.IEnumerable tables = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.GetUserTablesOracleTaskProperties GetUserTablesOracleTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.GetUserTablesOracleTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.GetUserTablesPostgreSqlTaskOutput GetUserTablesPostgreSqlTaskOutput(string databaseName = null, System.Collections.Generic.IEnumerable tables = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.GetUserTablesPostgreSqlTaskProperties GetUserTablesPostgreSqlTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.GetUserTablesPostgreSqlTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.GetUserTablesSqlSyncTaskOutput GetUserTablesSqlSyncTaskOutput(string databasesToSourceTables = null, string databasesToTargetTables = null, string tableValidationErrors = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.GetUserTablesSqlSyncTaskProperties GetUserTablesSqlSyncTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.GetUserTablesSqlSyncTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.GetUserTablesSqlTaskOutput GetUserTablesSqlTaskOutput(string id = null, string databasesToTables = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.GetUserTablesSqlTaskProperties GetUserTablesSqlTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.GetUserTablesSqlTaskInput input = null, System.Collections.Generic.IEnumerable output = null, string taskId = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.InstallOciDriverTaskOutput InstallOciDriverTaskOutput(System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.InstallOciDriverTaskProperties InstallOciDriverTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, string inputDriverPackageName = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.IntegrationRuntimeMonitoringData IntegrationRuntimeMonitoringData(string name = null, System.Collections.Generic.IEnumerable nodes = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateMISyncCompleteCommandProperties MigrateMISyncCompleteCommandProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.CommandState? state = default(Azure.ResourceManager.DataMigration.Models.CommandState?), string inputSourceDatabaseName = null, System.Collections.Generic.IEnumerable outputErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateMongoDBTaskProperties MigrateMongoDBTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.MongoDBMigrationSettings input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateMySqlAzureDBForMySqlOfflineTaskOutput MigrateMySqlAzureDBForMySqlOfflineTaskOutput(string id = null, string resultType = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateMySqlAzureDBForMySqlOfflineTaskOutputDatabaseLevel MigrateMySqlAzureDBForMySqlOfflineTaskOutputDatabaseLevel(string id = null, string databaseName = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.MigrationState? state = default(Azure.ResourceManager.DataMigration.Models.MigrationState?), Azure.ResourceManager.DataMigration.Models.DatabaseMigrationStage? stage = default(Azure.ResourceManager.DataMigration.Models.DatabaseMigrationStage?), string statusMessage = null, string message = null, long? numberOfObjects = default(long?), long? numberOfObjectsCompleted = default(long?), long? errorCount = default(long?), string errorPrefix = null, string resultPrefix = null, System.Collections.Generic.IEnumerable exceptionsAndWarnings = null, System.DateTimeOffset? lastStorageUpdate = default(System.DateTimeOffset?), string objectSummary = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateMySqlAzureDBForMySqlOfflineTaskOutputError MigrateMySqlAzureDBForMySqlOfflineTaskOutputError(string id = null, Azure.ResourceManager.DataMigration.Models.ReportableException error = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateMySqlAzureDBForMySqlOfflineTaskOutputMigrationLevel MigrateMySqlAzureDBForMySqlOfflineTaskOutputMigrationLevel(string id = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), long? durationInSeconds = default(long?), Azure.ResourceManager.DataMigration.Models.MigrationStatus? status = default(Azure.ResourceManager.DataMigration.Models.MigrationStatus?), string statusMessage = null, string message = null, string databases = null, string databaseSummary = null, Azure.ResourceManager.DataMigration.Models.MigrationReportResult migrationReportResult = null, string sourceServerVersion = null, string sourceServerBrandVersion = null, string targetServerVersion = null, string targetServerBrandVersion = null, System.Collections.Generic.IEnumerable exceptionsAndWarnings = null, System.DateTimeOffset? lastStorageUpdate = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateMySqlAzureDBForMySqlOfflineTaskOutputTableLevel MigrateMySqlAzureDBForMySqlOfflineTaskOutputTableLevel(string id = null, string objectName = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.MigrationState? state = default(Azure.ResourceManager.DataMigration.Models.MigrationState?), string statusMessage = null, long? itemsCount = default(long?), long? itemsCompletedCount = default(long?), string errorPrefix = null, string resultPrefix = null, System.DateTimeOffset? lastStorageUpdate = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateMySqlAzureDBForMySqlOfflineTaskProperties MigrateMySqlAzureDBForMySqlOfflineTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.MigrateMySqlAzureDBForMySqlOfflineTaskInput input = null, System.Collections.Generic.IEnumerable output = null, bool? isCloneable = default(bool?), string taskId = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateMySqlAzureDBForMySqlSyncTaskOutput MigrateMySqlAzureDBForMySqlSyncTaskOutput(string id = null, string resultType = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateMySqlAzureDBForMySqlSyncTaskOutputDatabaseError MigrateMySqlAzureDBForMySqlSyncTaskOutputDatabaseError(string id = null, string errorMessage = null, System.Collections.Generic.IEnumerable events = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateMySqlAzureDBForMySqlSyncTaskOutputDatabaseLevel MigrateMySqlAzureDBForMySqlSyncTaskOutputDatabaseLevel(string id = null, string databaseName = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.SyncDatabaseMigrationReportingState? migrationState = default(Azure.ResourceManager.DataMigration.Models.SyncDatabaseMigrationReportingState?), long? incomingChanges = default(long?), long? appliedChanges = default(long?), long? cdcInsertCounter = default(long?), long? cdcDeleteCounter = default(long?), long? cdcUpdateCounter = default(long?), long? fullLoadCompletedTables = default(long?), long? fullLoadLoadingTables = default(long?), long? fullLoadQueuedTables = default(long?), long? fullLoadErroredTables = default(long?), bool? initializationCompleted = default(bool?), long? latency = default(long?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateMySqlAzureDBForMySqlSyncTaskOutputError MigrateMySqlAzureDBForMySqlSyncTaskOutputError(string id = null, Azure.ResourceManager.DataMigration.Models.ReportableException error = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateMySqlAzureDBForMySqlSyncTaskOutputMigrationLevel MigrateMySqlAzureDBForMySqlSyncTaskOutputMigrationLevel(string id = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string sourceServerVersion = null, string sourceServer = null, string targetServerVersion = null, string targetServer = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateMySqlAzureDBForMySqlSyncTaskOutputTableLevel MigrateMySqlAzureDBForMySqlSyncTaskOutputTableLevel(string id = null, string tableName = null, string databaseName = null, string cdcInsertCounter = null, string cdcUpdateCounter = null, string cdcDeleteCounter = null, System.DateTimeOffset? fullLoadEstFinishOn = default(System.DateTimeOffset?), System.DateTimeOffset? fullLoadStartedOn = default(System.DateTimeOffset?), System.DateTimeOffset? fullLoadEndedOn = default(System.DateTimeOffset?), long? fullLoadTotalRows = default(long?), Azure.ResourceManager.DataMigration.Models.SyncTableMigrationState? state = default(Azure.ResourceManager.DataMigration.Models.SyncTableMigrationState?), long? totalChangesApplied = default(long?), long? dataErrorsCounter = default(long?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateMySqlAzureDBForMySqlSyncTaskProperties MigrateMySqlAzureDBForMySqlSyncTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.MigrateMySqlAzureDBForMySqlSyncTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateOracleAzureDBForPostgreSqlSyncTaskProperties MigrateOracleAzureDBForPostgreSqlSyncTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.MigrateOracleAzureDBPostgreSqlSyncTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateOracleAzureDBPostgreSqlSyncTaskOutput MigrateOracleAzureDBPostgreSqlSyncTaskOutput(string id = null, string resultType = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateOracleAzureDBPostgreSqlSyncTaskOutputDatabaseError MigrateOracleAzureDBPostgreSqlSyncTaskOutputDatabaseError(string id = null, string errorMessage = null, System.Collections.Generic.IEnumerable events = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateOracleAzureDBPostgreSqlSyncTaskOutputDatabaseLevel MigrateOracleAzureDBPostgreSqlSyncTaskOutputDatabaseLevel(string id = null, string databaseName = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.SyncDatabaseMigrationReportingState? migrationState = default(Azure.ResourceManager.DataMigration.Models.SyncDatabaseMigrationReportingState?), long? incomingChanges = default(long?), long? appliedChanges = default(long?), long? cdcInsertCounter = default(long?), long? cdcDeleteCounter = default(long?), long? cdcUpdateCounter = default(long?), long? fullLoadCompletedTables = default(long?), long? fullLoadLoadingTables = default(long?), long? fullLoadQueuedTables = default(long?), long? fullLoadErroredTables = default(long?), bool? initializationCompleted = default(bool?), long? latency = default(long?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateOracleAzureDBPostgreSqlSyncTaskOutputError MigrateOracleAzureDBPostgreSqlSyncTaskOutputError(string id = null, Azure.ResourceManager.DataMigration.Models.ReportableException error = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateOracleAzureDBPostgreSqlSyncTaskOutputMigrationLevel MigrateOracleAzureDBPostgreSqlSyncTaskOutputMigrationLevel(string id = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string sourceServerVersion = null, string sourceServer = null, string targetServerVersion = null, string targetServer = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateOracleAzureDBPostgreSqlSyncTaskOutputTableLevel MigrateOracleAzureDBPostgreSqlSyncTaskOutputTableLevel(string id = null, string tableName = null, string databaseName = null, long? cdcInsertCounter = default(long?), long? cdcUpdateCounter = default(long?), long? cdcDeleteCounter = default(long?), System.DateTimeOffset? fullLoadEstFinishOn = default(System.DateTimeOffset?), System.DateTimeOffset? fullLoadStartedOn = default(System.DateTimeOffset?), System.DateTimeOffset? fullLoadEndedOn = default(System.DateTimeOffset?), long? fullLoadTotalRows = default(long?), Azure.ResourceManager.DataMigration.Models.SyncTableMigrationState? state = default(Azure.ResourceManager.DataMigration.Models.SyncTableMigrationState?), long? totalChangesApplied = default(long?), long? dataErrorsCounter = default(long?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigratePostgreSqlAzureDBForPostgreSqlSyncDatabaseInput MigratePostgreSqlAzureDBForPostgreSqlSyncDatabaseInput(string name = null, string id = null, string targetDatabaseName = null, System.Collections.Generic.IDictionary migrationSetting = null, System.Collections.Generic.IDictionary sourceSetting = null, System.Collections.Generic.IDictionary targetSetting = null, System.Collections.Generic.IEnumerable selectedTables = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigratePostgreSqlAzureDBForPostgreSqlSyncTaskInput MigratePostgreSqlAzureDBForPostgreSqlSyncTaskInput(System.Collections.Generic.IEnumerable selectedDatabases = null, Azure.ResourceManager.DataMigration.Models.PostgreSqlConnectionInfo targetConnectionInfo = null, Azure.ResourceManager.DataMigration.Models.PostgreSqlConnectionInfo sourceConnectionInfo = null, string encryptedKeyForSecureFields = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutput MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutput(string id = null, string resultType = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputDatabaseError MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputDatabaseError(string id = null, string errorMessage = null, System.Collections.Generic.IEnumerable events = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputDatabaseLevel MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputDatabaseLevel(string id = null, string databaseName = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.SyncDatabaseMigrationReportingState? migrationState = default(Azure.ResourceManager.DataMigration.Models.SyncDatabaseMigrationReportingState?), long? incomingChanges = default(long?), long? appliedChanges = default(long?), long? cdcInsertCounter = default(long?), long? cdcDeleteCounter = default(long?), long? cdcUpdateCounter = default(long?), long? fullLoadCompletedTables = default(long?), long? fullLoadLoadingTables = default(long?), long? fullLoadQueuedTables = default(long?), long? fullLoadErroredTables = default(long?), bool? initializationCompleted = default(bool?), long? latency = default(long?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputError MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputError(string id = null, Azure.ResourceManager.DataMigration.Models.ReportableException error = null, System.Collections.Generic.IEnumerable events = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputMigrationLevel MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputMigrationLevel(string id = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string sourceServerVersion = null, string sourceServer = null, string targetServerVersion = null, string targetServer = null, Azure.ResourceManager.DataMigration.Models.ScenarioSource? sourceServerType = default(Azure.ResourceManager.DataMigration.Models.ScenarioSource?), Azure.ResourceManager.DataMigration.Models.ScenarioTarget? targetServerType = default(Azure.ResourceManager.DataMigration.Models.ScenarioTarget?), Azure.ResourceManager.DataMigration.Models.ReplicateMigrationState? state = default(Azure.ResourceManager.DataMigration.Models.ReplicateMigrationState?), float? databaseCount = default(float?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputTableLevel MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputTableLevel(string id = null, string tableName = null, string databaseName = null, long? cdcInsertCounter = default(long?), long? cdcUpdateCounter = default(long?), long? cdcDeleteCounter = default(long?), System.DateTimeOffset? fullLoadEstFinishOn = default(System.DateTimeOffset?), System.DateTimeOffset? fullLoadStartedOn = default(System.DateTimeOffset?), System.DateTimeOffset? fullLoadEndedOn = default(System.DateTimeOffset?), long? fullLoadTotalRows = default(long?), Azure.ResourceManager.DataMigration.Models.SyncTableMigrationState? state = default(Azure.ResourceManager.DataMigration.Models.SyncTableMigrationState?), long? totalChangesApplied = default(long?), long? dataErrorsCounter = default(long?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigratePostgreSqlAzureDBForPostgreSqlSyncTaskProperties MigratePostgreSqlAzureDBForPostgreSqlSyncTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.MigratePostgreSqlAzureDBForPostgreSqlSyncTaskInput input = null, System.Collections.Generic.IEnumerable output = null, string taskId = null, string createdOn = null, bool? isCloneable = default(bool?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSchemaSqlServerSqlDBTaskOutput MigrateSchemaSqlServerSqlDBTaskOutput(string id = null, string resultType = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSchemaSqlServerSqlDBTaskOutputDatabaseLevel MigrateSchemaSqlServerSqlDBTaskOutputDatabaseLevel(string id = null, string databaseName = null, Azure.ResourceManager.DataMigration.Models.MigrationState? state = default(Azure.ResourceManager.DataMigration.Models.MigrationState?), Azure.ResourceManager.DataMigration.Models.SchemaMigrationStage? stage = default(Azure.ResourceManager.DataMigration.Models.SchemaMigrationStage?), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string databaseErrorResultPrefix = null, string schemaErrorResultPrefix = null, long? numberOfSuccessfulOperations = default(long?), long? numberOfFailedOperations = default(long?), string fileId = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSchemaSqlServerSqlDBTaskOutputError MigrateSchemaSqlServerSqlDBTaskOutputError(string id = null, string commandText = null, string errorText = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSchemaSqlServerSqlDBTaskOutputMigrationLevel MigrateSchemaSqlServerSqlDBTaskOutputMigrationLevel(string id = null, Azure.ResourceManager.DataMigration.Models.MigrationState? state = default(Azure.ResourceManager.DataMigration.Models.MigrationState?), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string sourceServerVersion = null, string sourceServerBrandVersion = null, string targetServerVersion = null, string targetServerBrandVersion = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSchemaSqlServerSqlDBTaskProperties MigrateSchemaSqlServerSqlDBTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.MigrateSchemaSqlServerSqlDBTaskInput input = null, System.Collections.Generic.IEnumerable output = null, string createdOn = null, string taskId = null, bool? isCloneable = default(bool?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSchemaSqlTaskOutputError MigrateSchemaSqlTaskOutputError(string id = null, Azure.ResourceManager.DataMigration.Models.ReportableException error = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBSyncTaskOutput MigrateSqlServerSqlDBSyncTaskOutput(string id = null, string resultType = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBSyncTaskOutputDatabaseError MigrateSqlServerSqlDBSyncTaskOutputDatabaseError(string id = null, string errorMessage = null, System.Collections.Generic.IEnumerable events = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBSyncTaskOutputDatabaseLevel MigrateSqlServerSqlDBSyncTaskOutputDatabaseLevel(string id = null, string databaseName = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.SyncDatabaseMigrationReportingState? migrationState = default(Azure.ResourceManager.DataMigration.Models.SyncDatabaseMigrationReportingState?), long? incomingChanges = default(long?), long? appliedChanges = default(long?), long? cdcInsertCounter = default(long?), long? cdcDeleteCounter = default(long?), long? cdcUpdateCounter = default(long?), long? fullLoadCompletedTables = default(long?), long? fullLoadLoadingTables = default(long?), long? fullLoadQueuedTables = default(long?), long? fullLoadErroredTables = default(long?), bool? initializationCompleted = default(bool?), long? latency = default(long?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBSyncTaskOutputError MigrateSqlServerSqlDBSyncTaskOutputError(string id = null, Azure.ResourceManager.DataMigration.Models.ReportableException error = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBSyncTaskOutputMigrationLevel MigrateSqlServerSqlDBSyncTaskOutputMigrationLevel(string id = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string sourceServerVersion = null, string sourceServer = null, string targetServerVersion = null, string targetServer = null, int? databaseCount = default(int?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBSyncTaskOutputTableLevel MigrateSqlServerSqlDBSyncTaskOutputTableLevel(string id = null, string tableName = null, string databaseName = null, long? cdcInsertCounter = default(long?), long? cdcUpdateCounter = default(long?), long? cdcDeleteCounter = default(long?), System.DateTimeOffset? fullLoadEstFinishOn = default(System.DateTimeOffset?), System.DateTimeOffset? fullLoadStartedOn = default(System.DateTimeOffset?), System.DateTimeOffset? fullLoadEndedOn = default(System.DateTimeOffset?), long? fullLoadTotalRows = default(long?), Azure.ResourceManager.DataMigration.Models.SyncTableMigrationState? state = default(Azure.ResourceManager.DataMigration.Models.SyncTableMigrationState?), long? totalChangesApplied = default(long?), long? dataErrorsCounter = default(long?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBSyncTaskProperties MigrateSqlServerSqlDBSyncTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBSyncTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBTaskOutput MigrateSqlServerSqlDBTaskOutput(string id = null, string resultType = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBTaskOutputDatabaseLevel MigrateSqlServerSqlDBTaskOutputDatabaseLevel(string id = null, string databaseName = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.MigrationState? state = default(Azure.ResourceManager.DataMigration.Models.MigrationState?), Azure.ResourceManager.DataMigration.Models.DatabaseMigrationStage? stage = default(Azure.ResourceManager.DataMigration.Models.DatabaseMigrationStage?), string statusMessage = null, string message = null, long? numberOfObjects = default(long?), long? numberOfObjectsCompleted = default(long?), long? errorCount = default(long?), string errorPrefix = null, string resultPrefix = null, System.Collections.Generic.IEnumerable exceptionsAndWarnings = null, string objectSummary = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBTaskOutputDatabaseLevelValidationResult MigrateSqlServerSqlDBTaskOutputDatabaseLevelValidationResult(string id = null, string migrationId = null, string sourceDatabaseName = null, string targetDatabaseName = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.DataIntegrityValidationResult dataIntegrityValidationResult = null, Azure.ResourceManager.DataMigration.Models.SchemaComparisonValidationResult schemaValidationResult = null, Azure.ResourceManager.DataMigration.Models.QueryAnalysisValidationResult queryAnalysisValidationResult = null, Azure.ResourceManager.DataMigration.Models.ValidationStatus? status = default(Azure.ResourceManager.DataMigration.Models.ValidationStatus?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBTaskOutputError MigrateSqlServerSqlDBTaskOutputError(string id = null, Azure.ResourceManager.DataMigration.Models.ReportableException error = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBTaskOutputMigrationLevel MigrateSqlServerSqlDBTaskOutputMigrationLevel(string id = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), long? durationInSeconds = default(long?), Azure.ResourceManager.DataMigration.Models.MigrationStatus? status = default(Azure.ResourceManager.DataMigration.Models.MigrationStatus?), string statusMessage = null, string message = null, string databases = null, string databaseSummary = null, Azure.ResourceManager.DataMigration.Models.MigrationValidationResult migrationValidationResult = null, Azure.ResourceManager.DataMigration.Models.MigrationReportResult migrationReportResult = null, string sourceServerVersion = null, string sourceServerBrandVersion = null, string targetServerVersion = null, string targetServerBrandVersion = null, System.Collections.Generic.IEnumerable exceptionsAndWarnings = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBTaskOutputTableLevel MigrateSqlServerSqlDBTaskOutputTableLevel(string id = null, string objectName = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.MigrationState? state = default(Azure.ResourceManager.DataMigration.Models.MigrationState?), string statusMessage = null, long? itemsCount = default(long?), long? itemsCompletedCount = default(long?), string errorPrefix = null, string resultPrefix = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBTaskOutputValidationResult MigrateSqlServerSqlDBTaskOutputValidationResult(string id = null, string migrationId = null, System.Collections.Generic.IReadOnlyDictionary summaryResults = null, Azure.ResourceManager.DataMigration.Models.ValidationStatus? status = default(Azure.ResourceManager.DataMigration.Models.ValidationStatus?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBTaskProperties MigrateSqlServerSqlDBTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlDBTaskInput input = null, System.Collections.Generic.IEnumerable output = null, string taskId = null, bool? isCloneable = default(bool?), string createdOn = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlMISyncTaskOutput MigrateSqlServerSqlMISyncTaskOutput(string id = null, string resultType = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel(string id = null, string sourceDatabaseName = null, Azure.ResourceManager.DataMigration.Models.DatabaseMigrationState? migrationState = default(Azure.ResourceManager.DataMigration.Models.DatabaseMigrationState?), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.BackupSetInfo fullBackupSetInfo = null, Azure.ResourceManager.DataMigration.Models.BackupSetInfo lastRestoredBackupSetInfo = null, System.Collections.Generic.IEnumerable activeBackupSets = null, string containerName = null, string errorPrefix = null, bool? isFullBackupRestored = default(bool?), System.Collections.Generic.IEnumerable exceptionsAndWarnings = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlMISyncTaskOutputError MigrateSqlServerSqlMISyncTaskOutputError(string id = null, Azure.ResourceManager.DataMigration.Models.ReportableException error = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlMISyncTaskOutputMigrationLevel MigrateSqlServerSqlMISyncTaskOutputMigrationLevel(string id = null, int? databaseCount = default(int?), Azure.ResourceManager.DataMigration.Models.MigrationState? state = default(Azure.ResourceManager.DataMigration.Models.MigrationState?), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string sourceServerName = null, string sourceServerVersion = null, string sourceServerBrandVersion = null, string targetServerName = null, string targetServerVersion = null, string targetServerBrandVersion = null, int? databaseErrorCount = default(int?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlMISyncTaskProperties MigrateSqlServerSqlMISyncTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlMISyncTaskInput input = null, System.Collections.Generic.IEnumerable output = null, string createdOn = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlMITaskOutput MigrateSqlServerSqlMITaskOutput(string id = null, string resultType = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlMITaskOutputAgentJobLevel MigrateSqlServerSqlMITaskOutputAgentJobLevel(string id = null, string name = null, bool? isEnabled = default(bool?), Azure.ResourceManager.DataMigration.Models.MigrationState? state = default(Azure.ResourceManager.DataMigration.Models.MigrationState?), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string message = null, System.Collections.Generic.IEnumerable exceptionsAndWarnings = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlMITaskOutputDatabaseLevel MigrateSqlServerSqlMITaskOutputDatabaseLevel(string id = null, string databaseName = null, double? sizeMB = default(double?), Azure.ResourceManager.DataMigration.Models.MigrationState? state = default(Azure.ResourceManager.DataMigration.Models.MigrationState?), Azure.ResourceManager.DataMigration.Models.DatabaseMigrationStage? stage = default(Azure.ResourceManager.DataMigration.Models.DatabaseMigrationStage?), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string message = null, System.Collections.Generic.IEnumerable exceptionsAndWarnings = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlMITaskOutputError MigrateSqlServerSqlMITaskOutputError(string id = null, Azure.ResourceManager.DataMigration.Models.ReportableException error = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlMITaskOutputLoginLevel MigrateSqlServerSqlMITaskOutputLoginLevel(string id = null, string loginName = null, Azure.ResourceManager.DataMigration.Models.MigrationState? state = default(Azure.ResourceManager.DataMigration.Models.MigrationState?), Azure.ResourceManager.DataMigration.Models.LoginMigrationStage? stage = default(Azure.ResourceManager.DataMigration.Models.LoginMigrationStage?), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string message = null, System.Collections.Generic.IEnumerable exceptionsAndWarnings = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlMITaskOutputMigrationLevel MigrateSqlServerSqlMITaskOutputMigrationLevel(string id = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.MigrationStatus? status = default(Azure.ResourceManager.DataMigration.Models.MigrationStatus?), Azure.ResourceManager.DataMigration.Models.MigrationState? state = default(Azure.ResourceManager.DataMigration.Models.MigrationState?), string agentJobs = null, string logins = null, string message = null, string serverRoleResults = null, System.Collections.Generic.IEnumerable orphanedUsersInfo = null, string databases = null, string sourceServerVersion = null, string sourceServerBrandVersion = null, string targetServerVersion = null, string targetServerBrandVersion = null, System.Collections.Generic.IEnumerable exceptionsAndWarnings = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlMITaskProperties MigrateSqlServerSqlMITaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.MigrateSqlServerSqlMITaskInput input = null, System.Collections.Generic.IEnumerable output = null, string taskId = null, string createdOn = null, string parentTaskId = null, bool? isCloneable = default(bool?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSsisTaskOutput MigrateSsisTaskOutput(string id = null, string resultType = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSsisTaskOutputMigrationLevel MigrateSsisTaskOutputMigrationLevel(string id = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.MigrationStatus? status = default(Azure.ResourceManager.DataMigration.Models.MigrationStatus?), string message = null, string sourceServerVersion = null, string sourceServerBrandVersion = null, string targetServerVersion = null, string targetServerBrandVersion = null, System.Collections.Generic.IEnumerable exceptionsAndWarnings = null, Azure.ResourceManager.DataMigration.Models.SsisMigrationStage? stage = default(Azure.ResourceManager.DataMigration.Models.SsisMigrationStage?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSsisTaskOutputProjectLevel MigrateSsisTaskOutputProjectLevel(string id = null, string folderName = null, string projectName = null, Azure.ResourceManager.DataMigration.Models.MigrationState? state = default(Azure.ResourceManager.DataMigration.Models.MigrationState?), Azure.ResourceManager.DataMigration.Models.SsisMigrationStage? stage = default(Azure.ResourceManager.DataMigration.Models.SsisMigrationStage?), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string message = null, System.Collections.Generic.IEnumerable exceptionsAndWarnings = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSsisTaskProperties MigrateSsisTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.MigrateSsisTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSyncCompleteCommandOutput MigrateSyncCompleteCommandOutput(string id = null, System.Collections.Generic.IEnumerable errors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrateSyncCompleteCommandProperties MigrateSyncCompleteCommandProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.CommandState? state = default(Azure.ResourceManager.DataMigration.Models.CommandState?), Azure.ResourceManager.DataMigration.Models.MigrateSyncCompleteCommandInput input = null, Azure.ResourceManager.DataMigration.Models.MigrateSyncCompleteCommandOutput output = null, string commandId = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrationEligibilityInfo MigrationEligibilityInfo(bool? isEligibleForMigration = default(bool?), System.Collections.Generic.IEnumerable validationMessages = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrationReportResult MigrationReportResult(string id = null, System.Uri reportUri = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrationStatusDetails MigrationStatusDetails(string migrationState = null, Azure.ResourceManager.DataMigration.Models.SqlBackupSetInfo fullBackupSetInfo = null, Azure.ResourceManager.DataMigration.Models.SqlBackupSetInfo lastRestoredBackupSetInfo = null, System.Collections.Generic.IEnumerable activeBackupSets = null, System.Collections.Generic.IEnumerable invalidFiles = null, string blobContainerName = null, bool? isFullBackupRestored = default(bool?), string restoreBlockingReason = null, string completeRestoreErrorMessage = null, System.Collections.Generic.IEnumerable fileUploadBlockingErrors = null, string currentRestoringFilename = null, string lastRestoredFilename = null, int? pendingLogBackupsCount = default(int?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrationValidationDatabaseSummaryResult MigrationValidationDatabaseSummaryResult(string id = null, string migrationId = null, string sourceDatabaseName = null, string targetDatabaseName = null, System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.ValidationStatus? status = default(Azure.ResourceManager.DataMigration.Models.ValidationStatus?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MigrationValidationResult MigrationValidationResult(string id = null, string migrationId = null, System.Collections.Generic.IReadOnlyDictionary summaryResults = null, Azure.ResourceManager.DataMigration.Models.ValidationStatus? status = default(Azure.ResourceManager.DataMigration.Models.ValidationStatus?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MongoDBCancelCommand MongoDBCancelCommand(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.CommandState? state = default(Azure.ResourceManager.DataMigration.Models.CommandState?), string inputObjectName = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MongoDBClusterInfo MongoDBClusterInfo(System.Collections.Generic.IEnumerable databases = null, bool supportsSharding = false, Azure.ResourceManager.DataMigration.Models.MongoDBClusterType clusterType = default(Azure.ResourceManager.DataMigration.Models.MongoDBClusterType), string version = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MongoDBCollectionInfo MongoDBCollectionInfo(long averageDocumentSize = (long)0, long dataSize = (long)0, long documentCount = (long)0, string name = null, string qualifiedName = null, string databaseName = null, bool isCapped = false, bool isSystemCollection = false, bool isView = false, Azure.ResourceManager.DataMigration.Models.MongoDBShardKeyInfo shardKey = null, bool supportsSharding = false, string viewOf = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MongoDBCollectionProgress MongoDBCollectionProgress(long bytesCopied = (long)0, long documentsCopied = (long)0, string elapsedTime = null, System.Collections.Generic.IReadOnlyDictionary errors = null, long eventsPending = (long)0, long eventsReplayed = (long)0, System.DateTimeOffset? lastEventOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastReplayOn = default(System.DateTimeOffset?), string name = null, string qualifiedName = null, Azure.ResourceManager.DataMigration.Models.MongoDBMigrationState state = default(Azure.ResourceManager.DataMigration.Models.MongoDBMigrationState), long totalBytes = (long)0, long totalDocuments = (long)0) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MongoDBDatabaseInfo MongoDBDatabaseInfo(long averageDocumentSize = (long)0, long dataSize = (long)0, long documentCount = (long)0, string name = null, string qualifiedName = null, System.Collections.Generic.IEnumerable collections = null, bool supportsSharding = false) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MongoDBDatabaseProgress MongoDBDatabaseProgress(long bytesCopied = (long)0, long documentsCopied = (long)0, string elapsedTime = null, System.Collections.Generic.IReadOnlyDictionary errors = null, long eventsPending = (long)0, long eventsReplayed = (long)0, System.DateTimeOffset? lastEventOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastReplayOn = default(System.DateTimeOffset?), string name = null, string qualifiedName = null, Azure.ResourceManager.DataMigration.Models.MongoDBMigrationState state = default(Azure.ResourceManager.DataMigration.Models.MongoDBMigrationState), long totalBytes = (long)0, long totalDocuments = (long)0, System.Collections.Generic.IReadOnlyDictionary collections = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MongoDBError MongoDBError(string code = null, int? count = default(int?), string message = null, Azure.ResourceManager.DataMigration.Models.MongoDBErrorType? errorType = default(Azure.ResourceManager.DataMigration.Models.MongoDBErrorType?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MongoDBFinishCommand MongoDBFinishCommand(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.CommandState? state = default(Azure.ResourceManager.DataMigration.Models.CommandState?), Azure.ResourceManager.DataMigration.Models.MongoDBFinishCommandInput input = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MongoDBMigrationProgress MongoDBMigrationProgress(long bytesCopied = (long)0, long documentsCopied = (long)0, string elapsedTime = null, System.Collections.Generic.IReadOnlyDictionary errors = null, long eventsPending = (long)0, long eventsReplayed = (long)0, System.DateTimeOffset? lastEventOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastReplayOn = default(System.DateTimeOffset?), string name = null, string qualifiedName = null, Azure.ResourceManager.DataMigration.Models.MongoDBMigrationState state = default(Azure.ResourceManager.DataMigration.Models.MongoDBMigrationState), long totalBytes = (long)0, long totalDocuments = (long)0, System.Collections.Generic.IReadOnlyDictionary databases = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MongoDBObjectInfo MongoDBObjectInfo(long averageDocumentSize = (long)0, long dataSize = (long)0, long documentCount = (long)0, string name = null, string qualifiedName = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MongoDBProgress MongoDBProgress(long bytesCopied = (long)0, long documentsCopied = (long)0, string elapsedTime = null, System.Collections.Generic.IReadOnlyDictionary errors = null, long eventsPending = (long)0, long eventsReplayed = (long)0, System.DateTimeOffset? lastEventOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastReplayOn = default(System.DateTimeOffset?), string name = null, string qualifiedName = null, string resultType = "Unknown", Azure.ResourceManager.DataMigration.Models.MongoDBMigrationState state = default(Azure.ResourceManager.DataMigration.Models.MongoDBMigrationState), long totalBytes = (long)0, long totalDocuments = (long)0) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MongoDBRestartCommand MongoDBRestartCommand(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.CommandState? state = default(Azure.ResourceManager.DataMigration.Models.CommandState?), string inputObjectName = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.MongoDBShardKeyInfo MongoDBShardKeyInfo(System.Collections.Generic.IEnumerable fields = null, bool isUnique = false) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.NameAvailabilityResponse NameAvailabilityResponse(bool? nameAvailable = default(bool?), Azure.ResourceManager.DataMigration.Models.NameCheckFailureReason? reason = default(Azure.ResourceManager.DataMigration.Models.NameCheckFailureReason?), string message = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.NodeMonitoringData NodeMonitoringData(System.Collections.Generic.IReadOnlyDictionary additionalProperties = null, string nodeName = null, int? availableMemoryInMB = default(int?), int? cpuUtilization = default(int?), int? concurrentJobsLimit = default(int?), int? concurrentJobsRunning = default(int?), int? maxConcurrentJobs = default(int?), double? sentBytes = default(double?), double? receivedBytes = default(double?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ODataError ODataError(string code = null, string message = null, System.Collections.Generic.IEnumerable details = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.OracleOciDriverInfo OracleOciDriverInfo(string driverName = null, string driverSize = null, string archiveChecksum = null, string oracleChecksum = null, string assemblyVersion = null, System.Collections.Generic.IEnumerable supportedOracleVersions = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.OrphanedUserInfo OrphanedUserInfo(string name = null, string databaseName = null) { throw null; } + public static Azure.ResourceManager.DataMigration.ProjectData ProjectData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.DataMigration.Models.ProjectSourcePlatform? sourcePlatform = default(Azure.ResourceManager.DataMigration.Models.ProjectSourcePlatform?), Azure.ResourceManager.DataMigration.Models.AzureActiveDirectoryApp azureAuthenticationInfo = null, Azure.ResourceManager.DataMigration.Models.ProjectTargetPlatform? targetPlatform = default(Azure.ResourceManager.DataMigration.Models.ProjectTargetPlatform?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.DataMigration.Models.ConnectionInfo sourceConnectionInfo = null, Azure.ResourceManager.DataMigration.Models.ConnectionInfo targetConnectionInfo = null, System.Collections.Generic.IEnumerable databasesInfo = null, Azure.ResourceManager.DataMigration.Models.ProjectProvisioningState? provisioningState = default(Azure.ResourceManager.DataMigration.Models.ProjectProvisioningState?)) { throw null; } + public static Azure.ResourceManager.DataMigration.ProjectFileData ProjectFileData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.DataMigration.Models.ProjectFileProperties properties = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ProjectFileProperties ProjectFileProperties(string extension = null, string filePath = null, System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), string mediaType = null, long? size = default(long?)) { throw null; } + public static Azure.ResourceManager.DataMigration.ProjectTaskData ProjectTaskData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.DataMigration.Models.ProjectTaskProperties properties = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ProjectTaskProperties ProjectTaskProperties(string taskType = "Unknown", System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.QueryAnalysisValidationResult QueryAnalysisValidationResult(Azure.ResourceManager.DataMigration.Models.QueryExecutionResult queryResults = null, Azure.ResourceManager.DataMigration.Models.ValidationError validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.QueryExecutionResult QueryExecutionResult(string queryText = null, long? statementsInBatch = default(long?), Azure.ResourceManager.DataMigration.Models.ExecutionStatistics sourceResult = null, Azure.ResourceManager.DataMigration.Models.ExecutionStatistics targetResult = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.Quota Quota(double? currentValue = default(double?), string id = null, double? limit = default(double?), Azure.ResourceManager.DataMigration.Models.QuotaName name = null, string unit = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.QuotaName QuotaName(string localizedValue = null, string value = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ReportableException ReportableException(string message = null, string actionableMessage = null, string filePath = null, string lineNumber = null, int? hResult = default(int?), string stackTrace = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ResourceSku ResourceSku(string resourceType = null, string name = null, string tier = null, string size = null, string family = null, string kind = null, Azure.ResourceManager.DataMigration.Models.ResourceSkuCapacity capacity = null, System.Collections.Generic.IEnumerable locations = null, System.Collections.Generic.IEnumerable apiVersions = null, System.Collections.Generic.IEnumerable costs = null, System.Collections.Generic.IEnumerable capabilities = null, System.Collections.Generic.IEnumerable restrictions = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ResourceSkuCapabilities ResourceSkuCapabilities(string name = null, string value = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ResourceSkuCapacity ResourceSkuCapacity(long? minimum = default(long?), long? maximum = default(long?), long? @default = default(long?), Azure.ResourceManager.DataMigration.Models.ResourceSkuCapacityScaleType? scaleType = default(Azure.ResourceManager.DataMigration.Models.ResourceSkuCapacityScaleType?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ResourceSkuCosts ResourceSkuCosts(string meterId = null, long? quantity = default(long?), string extendedUnit = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ResourceSkuRestrictions ResourceSkuRestrictions(Azure.ResourceManager.DataMigration.Models.ResourceSkuRestrictionsType? restrictionsType = default(Azure.ResourceManager.DataMigration.Models.ResourceSkuRestrictionsType?), System.Collections.Generic.IEnumerable values = null, Azure.ResourceManager.DataMigration.Models.ResourceSkuRestrictionsReasonCode? reasonCode = default(Azure.ResourceManager.DataMigration.Models.ResourceSkuRestrictionsReasonCode?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.SchemaComparisonValidationResult SchemaComparisonValidationResult(Azure.ResourceManager.DataMigration.Models.SchemaComparisonValidationResultType schemaDifferences = null, Azure.ResourceManager.DataMigration.Models.ValidationError validationErrors = null, System.Collections.Generic.IReadOnlyDictionary sourceDatabaseObjectCount = null, System.Collections.Generic.IReadOnlyDictionary targetDatabaseObjectCount = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.SchemaComparisonValidationResultType SchemaComparisonValidationResultType(string objectName = null, Azure.ResourceManager.DataMigration.Models.ObjectType? objectType = default(Azure.ResourceManager.DataMigration.Models.ObjectType?), Azure.ResourceManager.DataMigration.Models.UpdateActionType? updateAction = default(Azure.ResourceManager.DataMigration.Models.UpdateActionType?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ServerProperties ServerProperties(string serverPlatform = null, string serverName = null, string serverVersion = null, string serverEdition = null, string serverOperatingSystemVersion = null, int? serverDatabaseCount = default(int?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.SourceLocation SourceLocation(Azure.ResourceManager.DataMigration.Models.SqlFileShare fileShare = null, Azure.ResourceManager.DataMigration.Models.AzureBlob azureBlob = null, string fileStorageType = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.SqlBackupFileInfo SqlBackupFileInfo(string fileName = null, string status = null, long? totalSize = default(long?), long? dataRead = default(long?), long? dataWritten = default(long?), double? copyThroughput = default(double?), int? copyDuration = default(int?), int? familySequenceNumber = default(int?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.SqlBackupSetInfo SqlBackupSetInfo(System.Guid? backupSetId = default(System.Guid?), string firstLSN = null, string lastLSN = null, string backupType = null, System.Collections.Generic.IEnumerable listOfBackupFiles = null, System.DateTimeOffset? backupStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? backupFinishOn = default(System.DateTimeOffset?), bool? isBackupRestored = default(bool?), bool? hasBackupChecksums = default(bool?), int? familyCount = default(int?), System.Collections.Generic.IEnumerable ignoreReasons = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.SqlDBMigrationStatusDetails SqlDBMigrationStatusDetails(string migrationState = null, System.Collections.Generic.IEnumerable sqlDataCopyErrors = null, System.Collections.Generic.IEnumerable listOfCopyProgressDetails = null) { throw null; } + public static Azure.ResourceManager.DataMigration.SqlMigrationServiceData SqlMigrationServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string provisioningState = null, string integrationRuntimeState = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.SyncMigrationDatabaseErrorEvent SyncMigrationDatabaseErrorEvent(string timestampString = null, string eventTypeString = null, string eventText = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.UploadOciDriverTaskOutput UploadOciDriverTaskOutput(string driverPackageName = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.UploadOciDriverTaskProperties UploadOciDriverTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.FileShare inputDriverShare = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ValidateMigrationInputSqlServerSqlDBSyncTaskProperties ValidateMigrationInputSqlServerSqlDBSyncTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.ValidateSyncMigrationInputSqlServerTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ValidateMigrationInputSqlServerSqlMISyncTaskOutput ValidateMigrationInputSqlServerSqlMISyncTaskOutput(string id = null, string name = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ValidateMigrationInputSqlServerSqlMISyncTaskProperties ValidateMigrationInputSqlServerSqlMISyncTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.ValidateMigrationInputSqlServerSqlMISyncTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ValidateMigrationInputSqlServerSqlMITaskOutput ValidateMigrationInputSqlServerSqlMITaskOutput(string id = null, string name = null, System.Collections.Generic.IEnumerable restoreDatabaseNameErrors = null, System.Collections.Generic.IEnumerable backupFolderErrors = null, System.Collections.Generic.IEnumerable backupShareCredentialsErrors = null, System.Collections.Generic.IEnumerable backupStorageAccountErrors = null, System.Collections.Generic.IEnumerable existingBackupErrors = null, Azure.ResourceManager.DataMigration.Models.DatabaseBackupInfo databaseBackupInfo = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ValidateMigrationInputSqlServerSqlMITaskProperties ValidateMigrationInputSqlServerSqlMITaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.ValidateMigrationInputSqlServerSqlMITaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ValidateMongoDBTaskProperties ValidateMongoDBTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.MongoDBMigrationSettings input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ValidateOracleAzureDBForPostgreSqlSyncTaskProperties ValidateOracleAzureDBForPostgreSqlSyncTaskProperties(System.Collections.Generic.IEnumerable errors = null, Azure.ResourceManager.DataMigration.Models.TaskState? state = default(Azure.ResourceManager.DataMigration.Models.TaskState?), System.Collections.Generic.IEnumerable commands = null, System.Collections.Generic.IDictionary clientData = null, Azure.ResourceManager.DataMigration.Models.MigrateOracleAzureDBPostgreSqlSyncTaskInput input = null, System.Collections.Generic.IEnumerable output = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ValidateOracleAzureDBPostgreSqlSyncTaskOutput ValidateOracleAzureDBPostgreSqlSyncTaskOutput(System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ValidateSyncMigrationInputSqlServerTaskOutput ValidateSyncMigrationInputSqlServerTaskOutput(string id = null, string name = null, System.Collections.Generic.IEnumerable validationErrors = null) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.ValidationError ValidationError(string text = null, Azure.ResourceManager.DataMigration.Models.Severity? severity = default(Azure.ResourceManager.DataMigration.Models.Severity?)) { throw null; } + public static Azure.ResourceManager.DataMigration.Models.WaitStatistics WaitStatistics(string waitType = null, float? waitTimeMs = default(float?), long? waitCount = default(long?)) { throw null; } + } public partial class AuthenticationKeys { internal AuthenticationKeys() { } diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ArmDataMigrationModelFactory.cs b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ArmDataMigrationModelFactory.cs new file mode 100644 index 000000000000..7404e11701ae --- /dev/null +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/Generated/ArmDataMigrationModelFactory.cs @@ -0,0 +1,3309 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure; +using Azure.Core; +using Azure.ResourceManager.DataMigration; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.DataMigration.Models +{ + /// Model factory for models. + public static partial class ArmDataMigrationModelFactory + { + /// Initializes a new instance of DatabaseMigrationSqlDBData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Database Migration Resource properties for SQL database. + /// A new instance for mocking. + public static DatabaseMigrationSqlDBData DatabaseMigrationSqlDBData(ResourceIdentifier id = null, string name = null, Core.ResourceType resourceType = default, SystemData systemData = null, DatabaseMigrationSqlDBProperties properties = null) + { + return new DatabaseMigrationSqlDBData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of DatabaseMigrationSqlDBProperties. + /// Resource Id of the target resource (SQL VM or SQL Managed Instance). + /// Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started. + /// Migration status. + /// Database migration start time. + /// Database migration end time. + /// Source SQL Server connection details. + /// Name of the source database. + /// Name of the source sql server. + /// Resource Id of the Migration Service. + /// ID tracking current migration operation. + /// Error details in case of migration failure. + /// Database collation to be used for the target database. + /// Error message for migration provisioning failure, if any. + /// Detailed migration status. Not included by default. + /// Target SQL DB connection details. + /// Offline configuration. + /// List of tables to copy. + /// A new instance for mocking. + public static DatabaseMigrationSqlDBProperties DatabaseMigrationSqlDBProperties(string scope = null, string provisioningState = null, string migrationStatus = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, SqlConnectionInformation sourceSqlConnection = null, string sourceDatabaseName = null, string sourceServerName = null, string migrationService = null, string migrationOperationId = null, ErrorInfo migrationFailureError = null, string targetDatabaseCollation = null, string provisioningError = null, SqlDBMigrationStatusDetails migrationStatusDetails = null, SqlConnectionInformation targetSqlConnection = null, bool? offline = null, IEnumerable tableList = null) + { + tableList ??= new List(); + + return new DatabaseMigrationSqlDBProperties(ResourceType.SqlDB, scope, provisioningState, migrationStatus, startedOn, endedOn, sourceSqlConnection, sourceDatabaseName, sourceServerName, migrationService, migrationOperationId, migrationFailureError, targetDatabaseCollation, provisioningError, migrationStatusDetails, targetSqlConnection, offline != null ? new SqlDBOfflineConfiguration(offline) : null, tableList?.ToList()); + } + + /// Initializes a new instance of SqlDBMigrationStatusDetails. + /// Current State of Migration. + /// Sql Data Copy errors, if any. + /// Details on progress of ADF copy activities. + /// A new instance for mocking. + public static SqlDBMigrationStatusDetails SqlDBMigrationStatusDetails(string migrationState = null, IEnumerable sqlDataCopyErrors = null, IEnumerable listOfCopyProgressDetails = null) + { + sqlDataCopyErrors ??= new List(); + listOfCopyProgressDetails ??= new List(); + + return new SqlDBMigrationStatusDetails(migrationState, sqlDataCopyErrors?.ToList(), listOfCopyProgressDetails?.ToList()); + } + + /// Initializes a new instance of CopyProgressDetails. + /// Table Name. + /// Status of the Copy activity (InProgress, Succeeded, Failed, Canceled). + /// Type of parallel copy (Dynamic range, Physical partition, none). + /// The degree of parallelization. + /// Bytes read. + /// Bytes written. + /// Rows read. + /// Rows Copied. + /// Copy Start. + /// Copy throughput in KBps. + /// Copy Duration in seconds. + /// A new instance for mocking. + public static CopyProgressDetails CopyProgressDetails(string tableName = null, string status = null, string parallelCopyType = null, int? usedParallelCopies = null, long? dataRead = null, long? dataWritten = null, long? rowsRead = null, long? rowsCopied = null, DateTimeOffset? copyStart = null, double? copyThroughput = null, int? copyDuration = null) + { + return new CopyProgressDetails(tableName, status, parallelCopyType, usedParallelCopies, dataRead, dataWritten, rowsRead, rowsCopied, copyStart, copyThroughput, copyDuration); + } + + /// Initializes a new instance of DatabaseMigrationProperties. + /// + /// Resource Id of the target resource (SQL VM or SQL Managed Instance). + /// Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started. + /// Migration status. + /// Database migration start time. + /// Database migration end time. + /// Source SQL Server connection details. + /// Name of the source database. + /// Name of the source sql server. + /// Resource Id of the Migration Service. + /// ID tracking current migration operation. + /// Error details in case of migration failure. + /// Database collation to be used for the target database. + /// Error message for migration provisioning failure, if any. + /// A new instance for mocking. + public static DatabaseMigrationProperties DatabaseMigrationProperties(string kind = "Unknown", string scope = null, string provisioningState = null, string migrationStatus = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, SqlConnectionInformation sourceSqlConnection = null, string sourceDatabaseName = null, string sourceServerName = null, string migrationService = null, string migrationOperationId = null, ErrorInfo migrationFailureError = null, string targetDatabaseCollation = null, string provisioningError = null) + { + return new UnknownDatabaseMigrationProperties(kind, scope, provisioningState, migrationStatus, startedOn, endedOn, sourceSqlConnection, sourceDatabaseName, sourceServerName, migrationService, migrationOperationId, migrationFailureError, targetDatabaseCollation, provisioningError); + } + + /// Initializes a new instance of ErrorInfo. + /// Error code. + /// Error message. + /// A new instance for mocking. + public static ErrorInfo ErrorInfo(string code = null, string message = null) + { + return new ErrorInfo(code, message); + } + + /// Initializes a new instance of DatabaseMigrationSqlMIData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Database Migration Resource properties for SQL Managed Instance. + /// A new instance for mocking. + public static DatabaseMigrationSqlMIData DatabaseMigrationSqlMIData(ResourceIdentifier id = null, string name = null, Core.ResourceType resourceType = default, SystemData systemData = null, DatabaseMigrationSqlMIProperties properties = null) + { + return new DatabaseMigrationSqlMIData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of DatabaseMigrationSqlMIProperties. + /// Resource Id of the target resource (SQL VM or SQL Managed Instance). + /// Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started. + /// Migration status. + /// Database migration start time. + /// Database migration end time. + /// Source SQL Server connection details. + /// Name of the source database. + /// Name of the source sql server. + /// Resource Id of the Migration Service. + /// ID tracking current migration operation. + /// Error details in case of migration failure. + /// Database collation to be used for the target database. + /// Error message for migration provisioning failure, if any. + /// Detailed migration status. Not included by default. + /// Backup configuration info. + /// Offline configuration. + /// A new instance for mocking. + public static DatabaseMigrationSqlMIProperties DatabaseMigrationSqlMIProperties(string scope = null, string provisioningState = null, string migrationStatus = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, SqlConnectionInformation sourceSqlConnection = null, string sourceDatabaseName = null, string sourceServerName = null, string migrationService = null, string migrationOperationId = null, ErrorInfo migrationFailureError = null, string targetDatabaseCollation = null, string provisioningError = null, MigrationStatusDetails migrationStatusDetails = null, BackupConfiguration backupConfiguration = null, OfflineConfiguration offlineConfiguration = null) + { + return new DatabaseMigrationSqlMIProperties(ResourceType.SqlMI, scope, provisioningState, migrationStatus, startedOn, endedOn, sourceSqlConnection, sourceDatabaseName, sourceServerName, migrationService, migrationOperationId, migrationFailureError, targetDatabaseCollation, provisioningError, migrationStatusDetails, backupConfiguration, offlineConfiguration); + } + + /// Initializes a new instance of MigrationStatusDetails. + /// Current State of Migration. + /// Details of full backup set. + /// Last applied backup set information. + /// Backup sets that are currently active. + /// Files that are not valid backup files. + /// Name of blob container. + /// Whether full backup has been applied to the target database or not. + /// Restore blocking reason, if any. + /// Complete restore error message, if any. + /// File upload blocking errors, if any. + /// File name that is currently being restored. + /// Last restored file name. + /// Total pending log backups. + /// A new instance for mocking. + public static MigrationStatusDetails MigrationStatusDetails(string migrationState = null, SqlBackupSetInfo fullBackupSetInfo = null, SqlBackupSetInfo lastRestoredBackupSetInfo = null, IEnumerable activeBackupSets = null, IEnumerable invalidFiles = null, string blobContainerName = null, bool? isFullBackupRestored = null, string restoreBlockingReason = null, string completeRestoreErrorMessage = null, IEnumerable fileUploadBlockingErrors = null, string currentRestoringFilename = null, string lastRestoredFilename = null, int? pendingLogBackupsCount = null) + { + activeBackupSets ??= new List(); + invalidFiles ??= new List(); + fileUploadBlockingErrors ??= new List(); + + return new MigrationStatusDetails(migrationState, fullBackupSetInfo, lastRestoredBackupSetInfo, activeBackupSets?.ToList(), invalidFiles?.ToList(), blobContainerName, isFullBackupRestored, restoreBlockingReason, completeRestoreErrorMessage, fileUploadBlockingErrors?.ToList(), currentRestoringFilename, lastRestoredFilename, pendingLogBackupsCount); + } + + /// Initializes a new instance of SqlBackupSetInfo. + /// Backup set id. + /// First LSN of the backup set. + /// Last LSN of the backup set. + /// Backup type. + /// List of files in the backup set. + /// Backup start date. + /// Backup end time. + /// Whether this backup set has been restored or not. + /// Has Backup Checksums. + /// Media family count. + /// The reasons why the backup set is ignored. + /// A new instance for mocking. + public static SqlBackupSetInfo SqlBackupSetInfo(Guid? backupSetId = null, string firstLSN = null, string lastLSN = null, string backupType = null, IEnumerable listOfBackupFiles = null, DateTimeOffset? backupStartOn = null, DateTimeOffset? backupFinishOn = null, bool? isBackupRestored = null, bool? hasBackupChecksums = null, int? familyCount = null, IEnumerable ignoreReasons = null) + { + listOfBackupFiles ??= new List(); + ignoreReasons ??= new List(); + + return new SqlBackupSetInfo(backupSetId, firstLSN, lastLSN, backupType, listOfBackupFiles?.ToList(), backupStartOn, backupFinishOn, isBackupRestored, hasBackupChecksums, familyCount, ignoreReasons?.ToList()); + } + + /// Initializes a new instance of SqlBackupFileInfo. + /// File name. + /// Status of the file. (Initial, Uploading, Uploaded, Restoring, Restored or Skipped). + /// File size in bytes. + /// Bytes read. + /// Bytes written. + /// Copy throughput in KBps. + /// Copy Duration in seconds. + /// Media family sequence number. + /// A new instance for mocking. + public static SqlBackupFileInfo SqlBackupFileInfo(string fileName = null, string status = null, long? totalSize = null, long? dataRead = null, long? dataWritten = null, double? copyThroughput = null, int? copyDuration = null, int? familySequenceNumber = null) + { + return new SqlBackupFileInfo(fileName, status, totalSize, dataRead, dataWritten, copyThroughput, copyDuration, familySequenceNumber); + } + + /// Initializes a new instance of SourceLocation. + /// Source File share. + /// Source Azure Blob. + /// Backup storage Type. + /// A new instance for mocking. + public static SourceLocation SourceLocation(SqlFileShare fileShare = null, AzureBlob azureBlob = null, string fileStorageType = null) + { + return new SourceLocation(fileShare, azureBlob, fileStorageType); + } + + /// Initializes a new instance of DatabaseMigrationSqlVmData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Database Migration Resource properties for SQL Virtual Machine. + /// A new instance for mocking. + public static DatabaseMigrationSqlVmData DatabaseMigrationSqlVmData(ResourceIdentifier id = null, string name = null, Core.ResourceType resourceType = default, SystemData systemData = null, DatabaseMigrationSqlVmProperties properties = null) + { + return new DatabaseMigrationSqlVmData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of DatabaseMigrationSqlVmProperties. + /// Resource Id of the target resource (SQL VM or SQL Managed Instance). + /// Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started. + /// Migration status. + /// Database migration start time. + /// Database migration end time. + /// Source SQL Server connection details. + /// Name of the source database. + /// Name of the source sql server. + /// Resource Id of the Migration Service. + /// ID tracking current migration operation. + /// Error details in case of migration failure. + /// Database collation to be used for the target database. + /// Error message for migration provisioning failure, if any. + /// Detailed migration status. Not included by default. + /// Backup configuration info. + /// Offline configuration. + /// A new instance for mocking. + public static DatabaseMigrationSqlVmProperties DatabaseMigrationSqlVmProperties(string scope = null, string provisioningState = null, string migrationStatus = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, SqlConnectionInformation sourceSqlConnection = null, string sourceDatabaseName = null, string sourceServerName = null, string migrationService = null, string migrationOperationId = null, ErrorInfo migrationFailureError = null, string targetDatabaseCollation = null, string provisioningError = null, MigrationStatusDetails migrationStatusDetails = null, BackupConfiguration backupConfiguration = null, OfflineConfiguration offlineConfiguration = null) + { + return new DatabaseMigrationSqlVmProperties(ResourceType.SqlVm, scope, provisioningState, migrationStatus, startedOn, endedOn, sourceSqlConnection, sourceDatabaseName, sourceServerName, migrationService, migrationOperationId, migrationFailureError, targetDatabaseCollation, provisioningError, migrationStatusDetails, backupConfiguration, offlineConfiguration); + } + + /// Initializes a new instance of SqlMigrationServiceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Provisioning state to track the async operation status. + /// Current state of the Integration runtime. + /// A new instance for mocking. + public static SqlMigrationServiceData SqlMigrationServiceData(ResourceIdentifier id = null, string name = null, Core.ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string provisioningState = null, string integrationRuntimeState = null) + { + tags ??= new Dictionary(); + + return new SqlMigrationServiceData(id, name, resourceType, systemData, tags, location, provisioningState, integrationRuntimeState); + } + + /// Initializes a new instance of AuthenticationKeys. + /// The first authentication key. + /// The second authentication key. + /// A new instance for mocking. + public static AuthenticationKeys AuthenticationKeys(string authKey1 = null, string authKey2 = null) + { + return new AuthenticationKeys(authKey1, authKey2); + } + + /// Initializes a new instance of DatabaseMigration. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// Database Migration Resource properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// A new instance for mocking. + public static DatabaseMigration DatabaseMigration(ResourceIdentifier id = null, string name = null, Core.ResourceType resourceType = default, SystemData systemData = null, DatabaseMigrationProperties properties = null) + { + return new DatabaseMigration(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of IntegrationRuntimeMonitoringData. + /// The name of Integration Runtime. + /// Integration Runtime node monitoring data. + /// A new instance for mocking. + public static IntegrationRuntimeMonitoringData IntegrationRuntimeMonitoringData(string name = null, IEnumerable nodes = null) + { + nodes ??= new List(); + + return new IntegrationRuntimeMonitoringData(name, nodes?.ToList()); + } + + /// Initializes a new instance of NodeMonitoringData. + /// Unmatched properties from the message are deserialized in this collection. + /// Name of the integration runtime node. + /// Available memory (MB) on the integration runtime node. + /// CPU percentage on the integration runtime node. + /// Maximum concurrent jobs on the integration runtime node. + /// The number of jobs currently running on the integration runtime node. + /// The maximum concurrent jobs in this integration runtime. + /// Sent bytes on the integration runtime node. + /// Received bytes on the integration runtime node. + /// A new instance for mocking. + public static NodeMonitoringData NodeMonitoringData(IReadOnlyDictionary additionalProperties = null, string nodeName = null, int? availableMemoryInMB = null, int? cpuUtilization = null, int? concurrentJobsLimit = null, int? concurrentJobsRunning = null, int? maxConcurrentJobs = null, double? sentBytes = null, double? receivedBytes = null) + { + additionalProperties ??= new Dictionary(); + + return new NodeMonitoringData(additionalProperties, nodeName, availableMemoryInMB, cpuUtilization, concurrentJobsLimit, concurrentJobsRunning, maxConcurrentJobs, sentBytes, receivedBytes); + } + + /// Initializes a new instance of ResourceSku. + /// The type of resource the SKU applies to. + /// The name of SKU. + /// Specifies the tier of DMS in a scale set. + /// The Size of the SKU. + /// The Family of this particular SKU. + /// The Kind of resources that are supported in this SKU. + /// Not used. + /// The set of locations that the SKU is available. + /// The api versions that support this SKU. + /// Metadata for retrieving price info. + /// A name value pair to describe the capability. + /// The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. + /// A new instance for mocking. + public static ResourceSku ResourceSku(string resourceType = null, string name = null, string tier = null, string size = null, string family = null, string kind = null, ResourceSkuCapacity capacity = null, IEnumerable locations = null, IEnumerable apiVersions = null, IEnumerable costs = null, IEnumerable capabilities = null, IEnumerable restrictions = null) + { + locations ??= new List(); + apiVersions ??= new List(); + costs ??= new List(); + capabilities ??= new List(); + restrictions ??= new List(); + + return new ResourceSku(resourceType, name, tier, size, family, kind, capacity, locations?.ToList(), apiVersions?.ToList(), costs?.ToList(), capabilities?.ToList(), restrictions?.ToList()); + } + + /// Initializes a new instance of ResourceSkuCapacity. + /// The minimum capacity. + /// The maximum capacity. + /// The default capacity. + /// The scale type applicable to the SKU. + /// A new instance for mocking. + public static ResourceSkuCapacity ResourceSkuCapacity(long? minimum = null, long? maximum = null, long? @default = null, ResourceSkuCapacityScaleType? scaleType = null) + { + return new ResourceSkuCapacity(minimum, maximum, @default, scaleType); + } + + /// Initializes a new instance of ResourceSkuCosts. + /// Used for querying price from commerce. + /// The multiplier is needed to extend the base metered cost. + /// An invariant to show the extended unit. + /// A new instance for mocking. + public static ResourceSkuCosts ResourceSkuCosts(string meterId = null, long? quantity = null, string extendedUnit = null) + { + return new ResourceSkuCosts(meterId, quantity, extendedUnit); + } + + /// Initializes a new instance of ResourceSkuCapabilities. + /// An invariant to describe the feature. + /// An invariant if the feature is measured by quantity. + /// A new instance for mocking. + public static ResourceSkuCapabilities ResourceSkuCapabilities(string name = null, string value = null) + { + return new ResourceSkuCapabilities(name, value); + } + + /// Initializes a new instance of ResourceSkuRestrictions. + /// The type of restrictions. + /// The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. + /// The reason code for restriction. + /// A new instance for mocking. + public static ResourceSkuRestrictions ResourceSkuRestrictions(ResourceSkuRestrictionsType? restrictionsType = null, IEnumerable values = null, ResourceSkuRestrictionsReasonCode? reasonCode = null) + { + values ??= new List(); + + return new ResourceSkuRestrictions(restrictionsType, values?.ToList(), reasonCode); + } + + /// Initializes a new instance of ODataError. + /// The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'. + /// The human-readable description of the error. + /// Inner errors that caused this error. + /// A new instance for mocking. + public static ODataError ODataError(string code = null, string message = null, IEnumerable details = null) + { + details ??= new List(); + + return new ODataError(code, message, details?.ToList()); + } + + /// Initializes a new instance of DataMigrationServiceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// HTTP strong entity tag value. Ignored if submitted. + /// The resource kind. Only 'vm' (the default) is supported. + /// Service SKU. + /// The resource's provisioning state. + /// The public key of the service, used to encrypt secrets sent to the service. + /// The ID of the Microsoft.Network/virtualNetworks/subnets resource to which the service should be joined. + /// The ID of the Microsoft.Network/networkInterfaces resource which the service have. + /// The time delay before the service is auto-stopped when idle. + /// Whether service resources should be deleted when stopped. (Turned on by default). + /// A new instance for mocking. + public static DataMigrationServiceData DataMigrationServiceData(ResourceIdentifier id = null, string name = null, Core.ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, string kind = null, ServiceSku sku = null, ServiceProvisioningState? provisioningState = null, string publicKey = null, string virtualSubnetId = null, string virtualNicId = null, string autoStopDelay = null, bool? deleteResourcesOnStop = null) + { + tags ??= new Dictionary(); + + return new DataMigrationServiceData(id, name, resourceType, systemData, tags, location, etag, kind, sku, provisioningState, publicKey, virtualSubnetId, virtualNicId, autoStopDelay, deleteResourcesOnStop); + } + + /// Initializes a new instance of DataMigrationServiceStatusResponse. + /// The DMS instance agent version. + /// Agent Configuration. + /// The machine-readable status, such as 'Initializing', 'Offline', 'Online', 'Deploying', 'Deleting', 'Stopped', 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop' or 'Failed'. + /// The services virtual machine size, such as 'Standard_D2_v2'. + /// The list of supported task types. + /// A new instance for mocking. + public static DataMigrationServiceStatusResponse DataMigrationServiceStatusResponse(string agentVersion = null, BinaryData agentConfiguration = null, string status = null, string vmSize = null, IEnumerable supportedTaskTypes = null) + { + supportedTaskTypes ??= new List(); + + return new DataMigrationServiceStatusResponse(agentVersion, agentConfiguration, status, vmSize, supportedTaskTypes?.ToList()); + } + + /// Initializes a new instance of AvailableServiceSku. + /// The resource type, including the provider namespace. + /// SKU name, tier, etc. + /// A description of the scaling capacities of the SKU. + /// A new instance for mocking. + public static AvailableServiceSku AvailableServiceSku(string resourceType = null, AvailableServiceSkuSku sku = null, AvailableServiceSkuCapacity capacity = null) + { + return new AvailableServiceSku(resourceType, sku, capacity); + } + + /// Initializes a new instance of AvailableServiceSkuSku. + /// The name of the SKU. + /// SKU family. + /// SKU size. + /// The tier of the SKU, such as "Basic", "General Purpose", or "Business Critical". + /// A new instance for mocking. + public static AvailableServiceSkuSku AvailableServiceSkuSku(string name = null, string family = null, string size = null, string tier = null) + { + return new AvailableServiceSkuSku(name, family, size, tier); + } + + /// Initializes a new instance of AvailableServiceSkuCapacity. + /// The minimum capacity, usually 0 or 1. + /// The maximum capacity. + /// The default capacity. + /// The scalability approach. + /// A new instance for mocking. + public static AvailableServiceSkuCapacity AvailableServiceSkuCapacity(int? minimum = null, int? maximum = null, int? @default = null, ServiceScalability? scaleType = null) + { + return new AvailableServiceSkuCapacity(minimum, maximum, @default, scaleType); + } + + /// Initializes a new instance of ProjectTaskData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// HTTP strong entity tag value. This is ignored if submitted. + /// + /// Custom task properties + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and . + /// + /// A new instance for mocking. + public static ProjectTaskData ProjectTaskData(ResourceIdentifier id = null, string name = null, Core.ResourceType resourceType = default, SystemData systemData = null, ETag? etag = null, ProjectTaskProperties properties = null) + { + return new ProjectTaskData(id, name, resourceType, systemData, etag, properties); + } + + /// Initializes a new instance of ProjectTaskProperties. + /// Task type. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// A new instance for mocking. + public static ProjectTaskProperties ProjectTaskProperties(string taskType = "Unknown", IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + + return new UnknownProjectTaskProperties(taskType, errors?.ToList(), state, commands?.ToList(), clientData); + } + + /// Initializes a new instance of CommandProperties. + /// Command type. + /// Array of errors. This is ignored if submitted. + /// The state of the command. This is ignored if submitted. + /// A new instance for mocking. + public static CommandProperties CommandProperties(string commandType = "Unknown", IEnumerable errors = null, CommandState? state = null) + { + errors ??= new List(); + + return new UnknownCommandProperties(commandType, errors?.ToList(), state); + } + + /// Initializes a new instance of NameAvailabilityResponse. + /// If true, the name is valid and available. If false, 'reason' describes why not. + /// The reason why the name is not available, if nameAvailable is false. + /// The localized reason why the name is not available, if nameAvailable is false. + /// A new instance for mocking. + public static NameAvailabilityResponse NameAvailabilityResponse(bool? nameAvailable = null, NameCheckFailureReason? reason = null, string message = null) + { + return new NameAvailabilityResponse(nameAvailable, reason, message); + } + + /// Initializes a new instance of ProjectData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// HTTP strong entity tag value. This is ignored if submitted. + /// Source platform for the project. + /// Field that defines the Azure active directory application info, used to connect to the target Azure resource. + /// Target platform for the project. + /// UTC Date and time when project was created. + /// + /// Information for connecting to source + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . + /// + /// + /// Information for connecting to target + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . + /// + /// List of DatabaseInfo. + /// The project's provisioning state. + /// A new instance for mocking. + public static ProjectData ProjectData(ResourceIdentifier id = null, string name = null, Core.ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ETag? etag = null, ProjectSourcePlatform? sourcePlatform = null, AzureActiveDirectoryApp azureAuthenticationInfo = null, ProjectTargetPlatform? targetPlatform = null, DateTimeOffset? createdOn = null, ConnectionInfo sourceConnectionInfo = null, ConnectionInfo targetConnectionInfo = null, IEnumerable databasesInfo = null, ProjectProvisioningState? provisioningState = null) + { + tags ??= new Dictionary(); + databasesInfo ??= new List(); + + return new ProjectData(id, name, resourceType, systemData, tags, location, etag, sourcePlatform, azureAuthenticationInfo, targetPlatform, createdOn, sourceConnectionInfo, targetConnectionInfo, databasesInfo?.ToList(), provisioningState); + } + + /// Initializes a new instance of Quota. + /// The current value of the quota. If null or missing, the current value cannot be determined in the context of the request. + /// The resource ID of the quota object. + /// The maximum value of the quota. If null or missing, the quota has no maximum, in which case it merely tracks usage. + /// The name of the quota. + /// The unit for the quota, such as Count, Bytes, BytesPerSecond, etc. + /// A new instance for mocking. + public static Quota Quota(double? currentValue = null, string id = null, double? limit = null, QuotaName name = null, string unit = null) + { + return new Quota(currentValue, id, limit, name, unit); + } + + /// Initializes a new instance of QuotaName. + /// The localized name of the quota. + /// The unlocalized name (or ID) of the quota. + /// A new instance for mocking. + public static QuotaName QuotaName(string localizedValue = null, string value = null) + { + return new QuotaName(localizedValue, value); + } + + /// Initializes a new instance of ProjectFileData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// HTTP strong entity tag value. This is ignored if submitted. + /// Custom file properties. + /// A new instance for mocking. + public static ProjectFileData ProjectFileData(ResourceIdentifier id = null, string name = null, Core.ResourceType resourceType = default, SystemData systemData = null, ETag? etag = null, ProjectFileProperties properties = null) + { + return new ProjectFileData(id, name, resourceType, systemData, etag, properties); + } + + /// Initializes a new instance of ProjectFileProperties. + /// Optional File extension. If submitted it should not have a leading period and must match the extension from filePath. + /// Relative path of this file resource. This property can be set when creating or updating the file resource. + /// Modification DateTime. + /// File content type. This property can be modified to reflect the file content type. + /// File size. + /// A new instance for mocking. + public static ProjectFileProperties ProjectFileProperties(string extension = null, string filePath = null, DateTimeOffset? lastModified = null, string mediaType = null, long? size = null) + { + return new ProjectFileProperties(extension, filePath, lastModified, mediaType, size); + } + + /// Initializes a new instance of FileStorageInfo. + /// A URI that can be used to access the file content. + /// Dictionary of <string>. + /// A new instance for mocking. + public static FileStorageInfo FileStorageInfo(Uri uri = null, IReadOnlyDictionary headers = null) + { + headers ??= new Dictionary(); + + return new FileStorageInfo(uri, headers); + } + + /// Initializes a new instance of MigrateSyncCompleteCommandProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the command. This is ignored if submitted. + /// Command input. + /// Command output. This is ignored if submitted. + /// Command id. + /// A new instance for mocking. + public static MigrateSyncCompleteCommandProperties MigrateSyncCompleteCommandProperties(IEnumerable errors = null, CommandState? state = null, MigrateSyncCompleteCommandInput input = null, MigrateSyncCompleteCommandOutput output = null, string commandId = null) + { + errors ??= new List(); + + return new MigrateSyncCompleteCommandProperties(CommandType.MigrateSyncCompleteDatabase, errors?.ToList(), state, input, output, commandId); + } + + /// Initializes a new instance of MigrateSyncCompleteCommandOutput. + /// Result identifier. + /// List of errors that happened during the command execution. + /// A new instance for mocking. + public static MigrateSyncCompleteCommandOutput MigrateSyncCompleteCommandOutput(string id = null, IEnumerable errors = null) + { + errors ??= new List(); + + return new MigrateSyncCompleteCommandOutput(id, errors?.ToList()); + } + + /// Initializes a new instance of ReportableException. + /// Error message. + /// Actionable steps for this exception. + /// The path to the file where exception occurred. + /// The line number where exception occurred. + /// Coded numerical value that is assigned to a specific exception. + /// Stack trace. + /// A new instance for mocking. + public static ReportableException ReportableException(string message = null, string actionableMessage = null, string filePath = null, string lineNumber = null, int? hResult = null, string stackTrace = null) + { + return new ReportableException(message, actionableMessage, filePath, lineNumber, hResult, stackTrace); + } + + /// Initializes a new instance of MigrateMISyncCompleteCommandProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the command. This is ignored if submitted. + /// Command input. + /// Command output. This is ignored if submitted. + /// A new instance for mocking. + public static MigrateMISyncCompleteCommandProperties MigrateMISyncCompleteCommandProperties(IEnumerable errors = null, CommandState? state = null, string inputSourceDatabaseName = null, IEnumerable outputErrors = null) + { + errors ??= new List(); + outputErrors ??= new List(); + + return new MigrateMISyncCompleteCommandProperties(CommandType.MigrateSqlServerAzureDBSqlMIComplete, errors?.ToList(), state, inputSourceDatabaseName != null ? new MigrateMISyncCompleteCommandInput(inputSourceDatabaseName) : null, outputErrors != null ? new MigrateMISyncCompleteCommandOutput(outputErrors?.ToList()) : null); + } + + /// Initializes a new instance of BackupSetInfo. + /// Id for the set of backup files. + /// First log sequence number of the backup file. + /// Last log sequence number of the backup file. + /// Last modified time of the backup file in share location. + /// Enum of the different backup types. + /// List of files in the backup set. + /// Name of the database to which the backup set belongs. + /// Date and time that the backup operation began. + /// Date and time that the backup operation finished. + /// Whether the backup set is restored or not. + /// A new instance for mocking. + public static BackupSetInfo BackupSetInfo(string backupSetId = null, string firstLsn = null, string lastLsn = null, DateTimeOffset? lastModifiedOn = null, BackupType? backupType = null, IEnumerable listOfBackupFiles = null, string databaseName = null, DateTimeOffset? backupStartOn = null, DateTimeOffset? backupFinishedOn = null, bool? isBackupRestored = null) + { + listOfBackupFiles ??= new List(); + + return new BackupSetInfo(backupSetId, firstLsn, lastLsn, lastModifiedOn, backupType, listOfBackupFiles?.ToList(), databaseName, backupStartOn, backupFinishedOn, isBackupRestored); + } + + /// Initializes a new instance of BackupFileInfo. + /// Location of the backup file in shared folder. + /// Sequence number of the backup file in the backup set. + /// Status of the backup file during migration. + /// A new instance for mocking. + public static BackupFileInfo BackupFileInfo(string fileLocation = null, int? familySequenceNumber = null, BackupFileStatus? status = null) + { + return new BackupFileInfo(fileLocation, familySequenceNumber, status); + } + + /// Initializes a new instance of OrphanedUserInfo. + /// Name of the orphaned user. + /// Parent database of the user. + /// A new instance for mocking. + public static OrphanedUserInfo OrphanedUserInfo(string name = null, string databaseName = null) + { + return new OrphanedUserInfo(name, databaseName); + } + + /// Initializes a new instance of ConnectToSourceSqlServerTaskOutput. + /// Result identifier. + /// Type of result - database level or task level. + /// A new instance for mocking. + public static ConnectToSourceSqlServerTaskOutput ConnectToSourceSqlServerTaskOutput(string id = null, string resultType = null) + { + return new UnknownConnectToSourceSqlServerTaskOutput(id, resultType); + } + + /// Initializes a new instance of ConnectToSourceSqlServerTaskOutputTaskLevel. + /// Result identifier. + /// Source databases as a map from database name to database id. + /// Source logins as a map from login name to login id. + /// Source agent jobs as a map from agent job name to id. + /// Mapping from database name to TDE certificate name, if applicable. + /// Source server version. + /// Source server brand version. + /// Validation errors. + /// A new instance for mocking. + public static ConnectToSourceSqlServerTaskOutputTaskLevel ConnectToSourceSqlServerTaskOutputTaskLevel(string id = null, string databases = null, string logins = null, string agentJobs = null, string databaseTdeCertificateMapping = null, string sourceServerVersion = null, string sourceServerBrandVersion = null, IEnumerable validationErrors = null) + { + validationErrors ??= new List(); + + return new ConnectToSourceSqlServerTaskOutputTaskLevel(id, "TaskLevelOutput", databases, logins, agentJobs, databaseTdeCertificateMapping, sourceServerVersion, sourceServerBrandVersion, validationErrors?.ToList()); + } + + /// Initializes a new instance of ConnectToSourceSqlServerTaskOutputDatabaseLevel. + /// Result identifier. + /// Database name. + /// Size of the file in megabytes. + /// The list of database files. + /// SQL Server compatibility level of database. + /// State of the database. + /// A new instance for mocking. + public static ConnectToSourceSqlServerTaskOutputDatabaseLevel ConnectToSourceSqlServerTaskOutputDatabaseLevel(string id = null, string name = null, double? sizeMB = null, IEnumerable databaseFiles = null, DatabaseCompatLevel? compatibilityLevel = null, DatabaseState? databaseState = null) + { + databaseFiles ??= new List(); + + return new ConnectToSourceSqlServerTaskOutputDatabaseLevel(id, "DatabaseLevelOutput", name, sizeMB, databaseFiles?.ToList(), compatibilityLevel, databaseState); + } + + /// Initializes a new instance of DatabaseFileInfo. + /// Name of the database. + /// Unique identifier for database file. + /// Logical name of the file. + /// Operating-system full path of the file. + /// Suggested full path of the file for restoring. + /// Database file type. + /// Size of the file in megabytes. + /// A new instance for mocking. + public static DatabaseFileInfo DatabaseFileInfo(string databaseName = null, string id = null, string logicalName = null, string physicalFullName = null, string restoreFullName = null, DatabaseFileType? fileType = null, double? sizeMB = null) + { + return new DatabaseFileInfo(databaseName, id, logicalName, physicalFullName, restoreFullName, fileType, sizeMB); + } + + /// Initializes a new instance of ConnectToSourceSqlServerTaskOutputLoginLevel. + /// Result identifier. + /// Login name. + /// The type of login. + /// The default database for the login. + /// The state of the login. + /// Information about eligibility of login for migration. + /// A new instance for mocking. + public static ConnectToSourceSqlServerTaskOutputLoginLevel ConnectToSourceSqlServerTaskOutputLoginLevel(string id = null, string name = null, LoginType? loginType = null, string defaultDatabase = null, bool? isEnabled = null, MigrationEligibilityInfo migrationEligibility = null) + { + return new ConnectToSourceSqlServerTaskOutputLoginLevel(id, "LoginLevelOutput", name, loginType, defaultDatabase, isEnabled, migrationEligibility); + } + + /// Initializes a new instance of MigrationEligibilityInfo. + /// Whether object is eligible for migration or not. + /// Information about eligibility failure for the server object. + /// A new instance for mocking. + public static MigrationEligibilityInfo MigrationEligibilityInfo(bool? isEligibleForMigration = null, IEnumerable validationMessages = null) + { + validationMessages ??= new List(); + + return new MigrationEligibilityInfo(isEligibleForMigration, validationMessages?.ToList()); + } + + /// Initializes a new instance of ConnectToSourceSqlServerTaskOutputAgentJobLevel. + /// Result identifier. + /// Agent Job name. + /// The type of Agent Job. + /// The state of the original Agent Job. + /// The owner of the Agent Job. + /// UTC Date and time when the Agent Job was last executed. + /// Validation errors. + /// Information about eligibility of agent job for migration. + /// A new instance for mocking. + public static ConnectToSourceSqlServerTaskOutputAgentJobLevel ConnectToSourceSqlServerTaskOutputAgentJobLevel(string id = null, string name = null, string jobCategory = null, bool? isEnabled = null, string jobOwner = null, DateTimeOffset? lastExecutedOn = null, IEnumerable validationErrors = null, MigrationEligibilityInfo migrationEligibility = null) + { + validationErrors ??= new List(); + + return new ConnectToSourceSqlServerTaskOutputAgentJobLevel(id, "AgentJobLevelOutput", name, jobCategory, isEnabled, jobOwner, lastExecutedOn, validationErrors?.ToList(), migrationEligibility); + } + + /// Initializes a new instance of ConnectToSourcePostgreSqlSyncTaskOutput. + /// Result identifier. + /// Version of the source server. + /// List of databases on source server. + /// Source server brand version. + /// Validation errors associated with the task. + /// A new instance for mocking. + public static ConnectToSourcePostgreSqlSyncTaskOutput ConnectToSourcePostgreSqlSyncTaskOutput(string id = null, string sourceServerVersion = null, IEnumerable databases = null, string sourceServerBrandVersion = null, IEnumerable validationErrors = null) + { + databases ??= new List(); + validationErrors ??= new List(); + + return new ConnectToSourcePostgreSqlSyncTaskOutput(id, sourceServerVersion, databases?.ToList(), sourceServerBrandVersion, validationErrors?.ToList()); + } + + /// Initializes a new instance of ConnectToTargetAzureDBForMySqlTaskOutput. + /// Result identifier. + /// Version of the target server. + /// List of databases on target server. + /// Target server brand version. + /// Validation errors associated with the task. + /// A new instance for mocking. + public static ConnectToTargetAzureDBForMySqlTaskOutput ConnectToTargetAzureDBForMySqlTaskOutput(string id = null, string serverVersion = null, IEnumerable databases = null, string targetServerBrandVersion = null, IEnumerable validationErrors = null) + { + databases ??= new List(); + validationErrors ??= new List(); + + return new ConnectToTargetAzureDBForMySqlTaskOutput(id, serverVersion, databases?.ToList(), targetServerBrandVersion, validationErrors?.ToList()); + } + + /// Initializes a new instance of ConnectToTargetSqlDBTaskOutput. + /// Result identifier. + /// Source databases as a map from database name to database id. + /// Version of the target server. + /// Target server brand version. + /// A new instance for mocking. + public static ConnectToTargetSqlDBTaskOutput ConnectToTargetSqlDBTaskOutput(string id = null, string databases = null, string targetServerVersion = null, string targetServerBrandVersion = null) + { + return new ConnectToTargetSqlDBTaskOutput(id, databases, targetServerVersion, targetServerBrandVersion); + } + + /// Initializes a new instance of ConnectToTargetSqlMISyncTaskOutput. + /// Target server version. + /// Target server brand version. + /// Validation errors. + /// A new instance for mocking. + public static ConnectToTargetSqlMISyncTaskOutput ConnectToTargetSqlMISyncTaskOutput(string targetServerVersion = null, string targetServerBrandVersion = null, IEnumerable validationErrors = null) + { + validationErrors ??= new List(); + + return new ConnectToTargetSqlMISyncTaskOutput(targetServerVersion, targetServerBrandVersion, validationErrors?.ToList()); + } + + /// Initializes a new instance of ConnectToTargetSqlMITaskOutput. + /// Result identifier. + /// Target server version. + /// Target server brand version. + /// List of logins on the target server. + /// List of agent jobs on the target server. + /// Validation errors. + /// A new instance for mocking. + public static ConnectToTargetSqlMITaskOutput ConnectToTargetSqlMITaskOutput(string id = null, string targetServerVersion = null, string targetServerBrandVersion = null, IEnumerable logins = null, IEnumerable agentJobs = null, IEnumerable validationErrors = null) + { + logins ??= new List(); + agentJobs ??= new List(); + validationErrors ??= new List(); + + return new ConnectToTargetSqlMITaskOutput(id, targetServerVersion, targetServerBrandVersion, logins?.ToList(), agentJobs?.ToList(), validationErrors?.ToList()); + } + + /// Initializes a new instance of ConnectToTargetAzureDBForPostgreSqlSyncTaskOutput. + /// Result identifier. + /// Version of the target server. + /// List of databases on target server. + /// Target server brand version. + /// Validation errors associated with the task. + /// A new instance for mocking. + public static ConnectToTargetAzureDBForPostgreSqlSyncTaskOutput ConnectToTargetAzureDBForPostgreSqlSyncTaskOutput(string id = null, string targetServerVersion = null, IEnumerable databases = null, string targetServerBrandVersion = null, IEnumerable validationErrors = null) + { + databases ??= new List(); + validationErrors ??= new List(); + + return new ConnectToTargetAzureDBForPostgreSqlSyncTaskOutput(id, targetServerVersion, databases?.ToList(), targetServerBrandVersion, validationErrors?.ToList()); + } + + /// Initializes a new instance of GetUserTablesMySqlTaskOutput. + /// Result identifier. + /// Mapping from database name to list of tables. + /// Validation errors. + /// A new instance for mocking. + public static GetUserTablesMySqlTaskOutput GetUserTablesMySqlTaskOutput(string id = null, string databasesToTables = null, IEnumerable validationErrors = null) + { + validationErrors ??= new List(); + + return new GetUserTablesMySqlTaskOutput(id, databasesToTables, validationErrors?.ToList()); + } + + /// Initializes a new instance of DatabaseTable. + /// Indicates whether table is empty or not. + /// Schema-qualified name of the table. + /// A new instance for mocking. + public static DatabaseTable DatabaseTable(bool? hasRows = null, string name = null) + { + return new DatabaseTable(hasRows, name); + } + + /// Initializes a new instance of GetTdeCertificatesSqlTaskOutput. + /// Mapping from certificate name to base 64 encoded format. + /// Validation errors. + /// A new instance for mocking. + public static GetTdeCertificatesSqlTaskOutput GetTdeCertificatesSqlTaskOutput(string base64EncodedCertificates = null, IEnumerable validationErrors = null) + { + validationErrors ??= new List(); + + return new GetTdeCertificatesSqlTaskOutput(base64EncodedCertificates, validationErrors?.ToList()); + } + + /// Initializes a new instance of GetUserTablesSqlSyncTaskOutput. + /// Mapping from database name to list of source tables. + /// Mapping from database name to list of target tables. + /// Mapping from database name to list of validation errors. + /// Validation errors. + /// A new instance for mocking. + public static GetUserTablesSqlSyncTaskOutput GetUserTablesSqlSyncTaskOutput(string databasesToSourceTables = null, string databasesToTargetTables = null, string tableValidationErrors = null, IEnumerable validationErrors = null) + { + validationErrors ??= new List(); + + return new GetUserTablesSqlSyncTaskOutput(databasesToSourceTables, databasesToTargetTables, tableValidationErrors, validationErrors?.ToList()); + } + + /// Initializes a new instance of GetUserTablesSqlTaskOutput. + /// Result identifier. + /// Mapping from database name to list of tables. + /// Validation errors. + /// A new instance for mocking. + public static GetUserTablesSqlTaskOutput GetUserTablesSqlTaskOutput(string id = null, string databasesToTables = null, IEnumerable validationErrors = null) + { + validationErrors ??= new List(); + + return new GetUserTablesSqlTaskOutput(id, databasesToTables, validationErrors?.ToList()); + } + + /// Initializes a new instance of MigrateSchemaSqlServerSqlDBTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// + /// Task output. This is ignored if submitted. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// DateTime in UTC when the task was created. + /// Task id. + /// whether the task can be cloned or not. + /// A new instance for mocking. + public static MigrateSchemaSqlServerSqlDBTaskProperties MigrateSchemaSqlServerSqlDBTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, MigrateSchemaSqlServerSqlDBTaskInput input = null, IEnumerable output = null, string createdOn = null, string taskId = null, bool? isCloneable = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new MigrateSchemaSqlServerSqlDBTaskProperties(TaskType.MigrateSchemaSqlServerSqlDB, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList(), createdOn, taskId, isCloneable); + } + + /// Initializes a new instance of MigrateSchemaSqlServerSqlDBTaskOutput. + /// Result identifier. + /// Result type. + /// A new instance for mocking. + public static MigrateSchemaSqlServerSqlDBTaskOutput MigrateSchemaSqlServerSqlDBTaskOutput(string id = null, string resultType = null) + { + return new UnknownMigrateSchemaSqlServerSqlDBTaskOutput(id, resultType); + } + + /// Initializes a new instance of MigrateSchemaSqlServerSqlDBTaskOutputMigrationLevel. + /// Result identifier. + /// Overall state of the schema migration. + /// Migration start time. + /// Migration end time. + /// Source server version. + /// Source server brand version. + /// Target server version. + /// Target server brand version. + /// A new instance for mocking. + public static MigrateSchemaSqlServerSqlDBTaskOutputMigrationLevel MigrateSchemaSqlServerSqlDBTaskOutputMigrationLevel(string id = null, MigrationState? state = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, string sourceServerVersion = null, string sourceServerBrandVersion = null, string targetServerVersion = null, string targetServerBrandVersion = null) + { + return new MigrateSchemaSqlServerSqlDBTaskOutputMigrationLevel(id, "MigrationLevelOutput", state, startedOn, endedOn, sourceServerVersion, sourceServerBrandVersion, targetServerVersion, targetServerBrandVersion); + } + + /// Initializes a new instance of MigrateSchemaSqlServerSqlDBTaskOutputDatabaseLevel. + /// Result identifier. + /// The name of the database. + /// State of the schema migration for this database. + /// Schema migration stage for this database. + /// Migration start time. + /// Migration end time. + /// Prefix string to use for querying errors for this database. + /// Prefix string to use for querying schema errors for this database. + /// Number of successful operations for this database. + /// Number of failed operations for this database. + /// Identifier for the file resource containing the schema of this database. + /// A new instance for mocking. + public static MigrateSchemaSqlServerSqlDBTaskOutputDatabaseLevel MigrateSchemaSqlServerSqlDBTaskOutputDatabaseLevel(string id = null, string databaseName = null, MigrationState? state = null, SchemaMigrationStage? stage = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, string databaseErrorResultPrefix = null, string schemaErrorResultPrefix = null, long? numberOfSuccessfulOperations = null, long? numberOfFailedOperations = null, string fileId = null) + { + return new MigrateSchemaSqlServerSqlDBTaskOutputDatabaseLevel(id, "DatabaseLevelOutput", databaseName, state, stage, startedOn, endedOn, databaseErrorResultPrefix, schemaErrorResultPrefix, numberOfSuccessfulOperations, numberOfFailedOperations, fileId); + } + + /// Initializes a new instance of MigrateSchemaSqlServerSqlDBTaskOutputError. + /// Result identifier. + /// Schema command which failed. + /// Reason of failure. + /// A new instance for mocking. + public static MigrateSchemaSqlServerSqlDBTaskOutputError MigrateSchemaSqlServerSqlDBTaskOutputError(string id = null, string commandText = null, string errorText = null) + { + return new MigrateSchemaSqlServerSqlDBTaskOutputError(id, "SchemaErrorOutput", commandText, errorText); + } + + /// Initializes a new instance of MigrateSchemaSqlTaskOutputError. + /// Result identifier. + /// Migration error. + /// A new instance for mocking. + public static MigrateSchemaSqlTaskOutputError MigrateSchemaSqlTaskOutputError(string id = null, ReportableException error = null) + { + return new MigrateSchemaSqlTaskOutputError(id, "ErrorOutput", error); + } + + /// Initializes a new instance of MigrateMySqlAzureDBForMySqlSyncTaskOutput. + /// Result identifier. + /// Result type. + /// A new instance for mocking. + public static MigrateMySqlAzureDBForMySqlSyncTaskOutput MigrateMySqlAzureDBForMySqlSyncTaskOutput(string id = null, string resultType = null) + { + return new UnknownMigrateMySqlAzureDBForMySqlSyncTaskOutput(id, resultType); + } + + /// Initializes a new instance of MigrateMySqlAzureDBForMySqlSyncTaskOutputMigrationLevel. + /// Result identifier. + /// Migration start time. + /// Migration end time. + /// Source server version. + /// Source server name. + /// Target server version. + /// Target server name. + /// A new instance for mocking. + public static MigrateMySqlAzureDBForMySqlSyncTaskOutputMigrationLevel MigrateMySqlAzureDBForMySqlSyncTaskOutputMigrationLevel(string id = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, string sourceServerVersion = null, string sourceServer = null, string targetServerVersion = null, string targetServer = null) + { + return new MigrateMySqlAzureDBForMySqlSyncTaskOutputMigrationLevel(id, "MigrationLevelOutput", startedOn, endedOn, sourceServerVersion, sourceServer, targetServerVersion, targetServer); + } + + /// Initializes a new instance of MigrateMySqlAzureDBForMySqlSyncTaskOutputDatabaseLevel. + /// Result identifier. + /// Name of the database. + /// Migration start time. + /// Migration end time. + /// Migration state that this database is in. + /// Number of incoming changes. + /// Number of applied changes. + /// Number of cdc inserts. + /// Number of cdc deletes. + /// Number of cdc updates. + /// Number of tables completed in full load. + /// Number of tables loading in full load. + /// Number of tables queued in full load. + /// Number of tables errored in full load. + /// Indicates if initial load (full load) has been completed. + /// CDC apply latency. + /// A new instance for mocking. + public static MigrateMySqlAzureDBForMySqlSyncTaskOutputDatabaseLevel MigrateMySqlAzureDBForMySqlSyncTaskOutputDatabaseLevel(string id = null, string databaseName = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, SyncDatabaseMigrationReportingState? migrationState = null, long? incomingChanges = null, long? appliedChanges = null, long? cdcInsertCounter = null, long? cdcDeleteCounter = null, long? cdcUpdateCounter = null, long? fullLoadCompletedTables = null, long? fullLoadLoadingTables = null, long? fullLoadQueuedTables = null, long? fullLoadErroredTables = null, bool? initializationCompleted = null, long? latency = null) + { + return new MigrateMySqlAzureDBForMySqlSyncTaskOutputDatabaseLevel(id, "DatabaseLevelOutput", databaseName, startedOn, endedOn, migrationState, incomingChanges, appliedChanges, cdcInsertCounter, cdcDeleteCounter, cdcUpdateCounter, fullLoadCompletedTables, fullLoadLoadingTables, fullLoadQueuedTables, fullLoadErroredTables, initializationCompleted, latency); + } + + /// Initializes a new instance of MigrateMySqlAzureDBForMySqlSyncTaskOutputTableLevel. + /// Result identifier. + /// Name of the table. + /// Name of the database. + /// Number of applied inserts. + /// Number of applied updates. + /// Number of applied deletes. + /// Estimate to finish full load. + /// Full load start time. + /// Full load end time. + /// Number of rows applied in full load. + /// Current state of the table migration. + /// Total number of applied changes. + /// Number of data errors occurred. + /// Last modified time on target. + /// A new instance for mocking. + public static MigrateMySqlAzureDBForMySqlSyncTaskOutputTableLevel MigrateMySqlAzureDBForMySqlSyncTaskOutputTableLevel(string id = null, string tableName = null, string databaseName = null, string cdcInsertCounter = null, string cdcUpdateCounter = null, string cdcDeleteCounter = null, DateTimeOffset? fullLoadEstFinishOn = null, DateTimeOffset? fullLoadStartedOn = null, DateTimeOffset? fullLoadEndedOn = null, long? fullLoadTotalRows = null, SyncTableMigrationState? state = null, long? totalChangesApplied = null, long? dataErrorsCounter = null, DateTimeOffset? lastModifiedOn = null) + { + return new MigrateMySqlAzureDBForMySqlSyncTaskOutputTableLevel(id, "TableLevelOutput", tableName, databaseName, cdcInsertCounter, cdcUpdateCounter, cdcDeleteCounter, fullLoadEstFinishOn, fullLoadStartedOn, fullLoadEndedOn, fullLoadTotalRows, state, totalChangesApplied, dataErrorsCounter, lastModifiedOn); + } + + /// Initializes a new instance of MigrateMySqlAzureDBForMySqlSyncTaskOutputError. + /// Result identifier. + /// Migration error. + /// A new instance for mocking. + public static MigrateMySqlAzureDBForMySqlSyncTaskOutputError MigrateMySqlAzureDBForMySqlSyncTaskOutputError(string id = null, ReportableException error = null) + { + return new MigrateMySqlAzureDBForMySqlSyncTaskOutputError(id, "ErrorOutput", error); + } + + /// Initializes a new instance of MigrateMySqlAzureDBForMySqlSyncTaskOutputDatabaseError. + /// Result identifier. + /// Error message. + /// List of error events. + /// A new instance for mocking. + public static MigrateMySqlAzureDBForMySqlSyncTaskOutputDatabaseError MigrateMySqlAzureDBForMySqlSyncTaskOutputDatabaseError(string id = null, string errorMessage = null, IEnumerable events = null) + { + events ??= new List(); + + return new MigrateMySqlAzureDBForMySqlSyncTaskOutputDatabaseError(id, "DatabaseLevelErrorOutput", errorMessage, events?.ToList()); + } + + /// Initializes a new instance of SyncMigrationDatabaseErrorEvent. + /// String value of timestamp. + /// Event type. + /// Event text. + /// A new instance for mocking. + public static SyncMigrationDatabaseErrorEvent SyncMigrationDatabaseErrorEvent(string timestampString = null, string eventTypeString = null, string eventText = null) + { + return new SyncMigrationDatabaseErrorEvent(timestampString, eventTypeString, eventText); + } + + /// Initializes a new instance of MigratePostgreSqlAzureDBForPostgreSqlSyncTaskInput. + /// Databases to migrate. + /// Connection information for target Azure Database for PostgreSQL. + /// Connection information for source PostgreSQL. + /// encrypted key for secure fields. + /// Migration start time. + /// A new instance for mocking. + public static MigratePostgreSqlAzureDBForPostgreSqlSyncTaskInput MigratePostgreSqlAzureDBForPostgreSqlSyncTaskInput(IEnumerable selectedDatabases = null, PostgreSqlConnectionInfo targetConnectionInfo = null, PostgreSqlConnectionInfo sourceConnectionInfo = null, string encryptedKeyForSecureFields = null, DateTimeOffset? startedOn = null) + { + selectedDatabases ??= new List(); + + return new MigratePostgreSqlAzureDBForPostgreSqlSyncTaskInput(selectedDatabases?.ToList(), targetConnectionInfo, sourceConnectionInfo, encryptedKeyForSecureFields, startedOn); + } + + /// Initializes a new instance of MigratePostgreSqlAzureDBForPostgreSqlSyncDatabaseInput. + /// Name of the database. + /// Result identifier. + /// Name of target database. Note: Target database will be truncated before starting migration. + /// Migration settings which tune the migration behavior. + /// Source settings to tune source endpoint migration behavior. + /// Target settings to tune target endpoint migration behavior. + /// Tables selected for migration. + /// A new instance for mocking. + public static MigratePostgreSqlAzureDBForPostgreSqlSyncDatabaseInput MigratePostgreSqlAzureDBForPostgreSqlSyncDatabaseInput(string name = null, string id = null, string targetDatabaseName = null, IDictionary migrationSetting = null, IDictionary sourceSetting = null, IDictionary targetSetting = null, IEnumerable selectedTables = null) + { + migrationSetting ??= new Dictionary(); + sourceSetting ??= new Dictionary(); + targetSetting ??= new Dictionary(); + selectedTables ??= new List(); + + return new MigratePostgreSqlAzureDBForPostgreSqlSyncDatabaseInput(name, id, targetDatabaseName, migrationSetting, sourceSetting, targetSetting, selectedTables?.ToList()); + } + + /// Initializes a new instance of MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutput. + /// Result identifier. + /// Result type. + /// A new instance for mocking. + public static MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutput MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutput(string id = null, string resultType = null) + { + return new UnknownMigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutput(id, resultType); + } + + /// Initializes a new instance of MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputMigrationLevel. + /// Result identifier. + /// Migration start time. + /// Migration end time. + /// Source server version. + /// Source server name. + /// Target server version. + /// Target server name. + /// Source server type. + /// Target server type. + /// Migration status. + /// Number of databases to include. + /// A new instance for mocking. + public static MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputMigrationLevel MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputMigrationLevel(string id = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, string sourceServerVersion = null, string sourceServer = null, string targetServerVersion = null, string targetServer = null, ScenarioSource? sourceServerType = null, ScenarioTarget? targetServerType = null, ReplicateMigrationState? state = null, float? databaseCount = null) + { + return new MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputMigrationLevel(id, "MigrationLevelOutput", startedOn, endedOn, sourceServerVersion, sourceServer, targetServerVersion, targetServer, sourceServerType, targetServerType, state, databaseCount); + } + + /// Initializes a new instance of MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputDatabaseLevel. + /// Result identifier. + /// Name of the database. + /// Migration start time. + /// Migration end time. + /// Migration state that this database is in. + /// Number of incoming changes. + /// Number of applied changes. + /// Number of cdc inserts. + /// Number of cdc deletes. + /// Number of cdc updates. + /// Number of tables completed in full load. + /// Number of tables loading in full load. + /// Number of tables queued in full load. + /// Number of tables errored in full load. + /// Indicates if initial load (full load) has been completed. + /// CDC apply latency. + /// A new instance for mocking. + public static MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputDatabaseLevel MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputDatabaseLevel(string id = null, string databaseName = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, SyncDatabaseMigrationReportingState? migrationState = null, long? incomingChanges = null, long? appliedChanges = null, long? cdcInsertCounter = null, long? cdcDeleteCounter = null, long? cdcUpdateCounter = null, long? fullLoadCompletedTables = null, long? fullLoadLoadingTables = null, long? fullLoadQueuedTables = null, long? fullLoadErroredTables = null, bool? initializationCompleted = null, long? latency = null) + { + return new MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputDatabaseLevel(id, "DatabaseLevelOutput", databaseName, startedOn, endedOn, migrationState, incomingChanges, appliedChanges, cdcInsertCounter, cdcDeleteCounter, cdcUpdateCounter, fullLoadCompletedTables, fullLoadLoadingTables, fullLoadQueuedTables, fullLoadErroredTables, initializationCompleted, latency); + } + + /// Initializes a new instance of MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputTableLevel. + /// Result identifier. + /// Name of the table. + /// Name of the database. + /// Number of applied inserts. + /// Number of applied updates. + /// Number of applied deletes. + /// Estimate to finish full load. + /// Full load start time. + /// Full load end time. + /// Number of rows applied in full load. + /// Current state of the table migration. + /// Total number of applied changes. + /// Number of data errors occurred. + /// Last modified time on target. + /// A new instance for mocking. + public static MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputTableLevel MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputTableLevel(string id = null, string tableName = null, string databaseName = null, long? cdcInsertCounter = null, long? cdcUpdateCounter = null, long? cdcDeleteCounter = null, DateTimeOffset? fullLoadEstFinishOn = null, DateTimeOffset? fullLoadStartedOn = null, DateTimeOffset? fullLoadEndedOn = null, long? fullLoadTotalRows = null, SyncTableMigrationState? state = null, long? totalChangesApplied = null, long? dataErrorsCounter = null, DateTimeOffset? lastModifiedOn = null) + { + return new MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputTableLevel(id, "TableLevelOutput", tableName, databaseName, cdcInsertCounter, cdcUpdateCounter, cdcDeleteCounter, fullLoadEstFinishOn, fullLoadStartedOn, fullLoadEndedOn, fullLoadTotalRows, state, totalChangesApplied, dataErrorsCounter, lastModifiedOn); + } + + /// Initializes a new instance of MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputError. + /// Result identifier. + /// Migration error. + /// List of error events. + /// A new instance for mocking. + public static MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputError MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputError(string id = null, ReportableException error = null, IEnumerable events = null) + { + events ??= new List(); + + return new MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputError(id, "ErrorOutput", error, events?.ToList()); + } + + /// Initializes a new instance of MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputDatabaseError. + /// Result identifier. + /// Error message. + /// List of error events. + /// A new instance for mocking. + public static MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputDatabaseError MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputDatabaseError(string id = null, string errorMessage = null, IEnumerable events = null) + { + events ??= new List(); + + return new MigratePostgreSqlAzureDBForPostgreSqlSyncTaskOutputDatabaseError(id, "DatabaseLevelErrorOutput", errorMessage, events?.ToList()); + } + + /// Initializes a new instance of MigrateSqlServerSqlDBSyncTaskOutput. + /// Result identifier. + /// Result type. + /// A new instance for mocking. + public static MigrateSqlServerSqlDBSyncTaskOutput MigrateSqlServerSqlDBSyncTaskOutput(string id = null, string resultType = null) + { + return new UnknownMigrateSqlServerSqlDBSyncTaskOutput(id, resultType); + } + + /// Initializes a new instance of MigrateSqlServerSqlDBSyncTaskOutputMigrationLevel. + /// Result identifier. + /// Migration start time. + /// Migration end time. + /// Source server version. + /// Source server name. + /// Target server version. + /// Target server name. + /// Count of databases. + /// A new instance for mocking. + public static MigrateSqlServerSqlDBSyncTaskOutputMigrationLevel MigrateSqlServerSqlDBSyncTaskOutputMigrationLevel(string id = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, string sourceServerVersion = null, string sourceServer = null, string targetServerVersion = null, string targetServer = null, int? databaseCount = null) + { + return new MigrateSqlServerSqlDBSyncTaskOutputMigrationLevel(id, "MigrationLevelOutput", startedOn, endedOn, sourceServerVersion, sourceServer, targetServerVersion, targetServer, databaseCount); + } + + /// Initializes a new instance of MigrateSqlServerSqlDBSyncTaskOutputDatabaseLevel. + /// Result identifier. + /// Name of the database. + /// Migration start time. + /// Migration end time. + /// Migration state that this database is in. + /// Number of incoming changes. + /// Number of applied changes. + /// Number of cdc inserts. + /// Number of cdc deletes. + /// Number of cdc updates. + /// Number of tables completed in full load. + /// Number of tables loading in full load. + /// Number of tables queued in full load. + /// Number of tables errored in full load. + /// Indicates if initial load (full load) has been completed. + /// CDC apply latency. + /// A new instance for mocking. + public static MigrateSqlServerSqlDBSyncTaskOutputDatabaseLevel MigrateSqlServerSqlDBSyncTaskOutputDatabaseLevel(string id = null, string databaseName = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, SyncDatabaseMigrationReportingState? migrationState = null, long? incomingChanges = null, long? appliedChanges = null, long? cdcInsertCounter = null, long? cdcDeleteCounter = null, long? cdcUpdateCounter = null, long? fullLoadCompletedTables = null, long? fullLoadLoadingTables = null, long? fullLoadQueuedTables = null, long? fullLoadErroredTables = null, bool? initializationCompleted = null, long? latency = null) + { + return new MigrateSqlServerSqlDBSyncTaskOutputDatabaseLevel(id, "DatabaseLevelOutput", databaseName, startedOn, endedOn, migrationState, incomingChanges, appliedChanges, cdcInsertCounter, cdcDeleteCounter, cdcUpdateCounter, fullLoadCompletedTables, fullLoadLoadingTables, fullLoadQueuedTables, fullLoadErroredTables, initializationCompleted, latency); + } + + /// Initializes a new instance of MigrateSqlServerSqlDBSyncTaskOutputTableLevel. + /// Result identifier. + /// Name of the table. + /// Name of the database. + /// Number of applied inserts. + /// Number of applied updates. + /// Number of applied deletes. + /// Estimate to finish full load. + /// Full load start time. + /// Full load end time. + /// Number of rows applied in full load. + /// Current state of the table migration. + /// Total number of applied changes. + /// Number of data errors occurred. + /// Last modified time on target. + /// A new instance for mocking. + public static MigrateSqlServerSqlDBSyncTaskOutputTableLevel MigrateSqlServerSqlDBSyncTaskOutputTableLevel(string id = null, string tableName = null, string databaseName = null, long? cdcInsertCounter = null, long? cdcUpdateCounter = null, long? cdcDeleteCounter = null, DateTimeOffset? fullLoadEstFinishOn = null, DateTimeOffset? fullLoadStartedOn = null, DateTimeOffset? fullLoadEndedOn = null, long? fullLoadTotalRows = null, SyncTableMigrationState? state = null, long? totalChangesApplied = null, long? dataErrorsCounter = null, DateTimeOffset? lastModifiedOn = null) + { + return new MigrateSqlServerSqlDBSyncTaskOutputTableLevel(id, "TableLevelOutput", tableName, databaseName, cdcInsertCounter, cdcUpdateCounter, cdcDeleteCounter, fullLoadEstFinishOn, fullLoadStartedOn, fullLoadEndedOn, fullLoadTotalRows, state, totalChangesApplied, dataErrorsCounter, lastModifiedOn); + } + + /// Initializes a new instance of MigrateSqlServerSqlDBSyncTaskOutputError. + /// Result identifier. + /// Migration error. + /// A new instance for mocking. + public static MigrateSqlServerSqlDBSyncTaskOutputError MigrateSqlServerSqlDBSyncTaskOutputError(string id = null, ReportableException error = null) + { + return new MigrateSqlServerSqlDBSyncTaskOutputError(id, "ErrorOutput", error); + } + + /// Initializes a new instance of MigrateSqlServerSqlDBSyncTaskOutputDatabaseError. + /// Result identifier. + /// Error message. + /// List of error events. + /// A new instance for mocking. + public static MigrateSqlServerSqlDBSyncTaskOutputDatabaseError MigrateSqlServerSqlDBSyncTaskOutputDatabaseError(string id = null, string errorMessage = null, IEnumerable events = null) + { + events ??= new List(); + + return new MigrateSqlServerSqlDBSyncTaskOutputDatabaseError(id, "DatabaseLevelErrorOutput", errorMessage, events?.ToList()); + } + + /// Initializes a new instance of MigrateSqlServerSqlDBTaskOutput. + /// Result identifier. + /// Result type. + /// A new instance for mocking. + public static MigrateSqlServerSqlDBTaskOutput MigrateSqlServerSqlDBTaskOutput(string id = null, string resultType = null) + { + return new UnknownMigrateSqlServerSqlDBTaskOutput(id, resultType); + } + + /// Initializes a new instance of MigrateSqlServerSqlDBTaskOutputMigrationLevel. + /// Result identifier. + /// Migration start time. + /// Migration end time. + /// Duration of task execution in seconds. + /// Current status of migration. + /// Migration status message. + /// Migration progress message. + /// Selected databases as a map from database name to database id. + /// Summary of database results in the migration. + /// Migration Validation Results. + /// Migration Report Result, provides unique url for downloading your migration report. + /// Source server version. + /// Source server brand version. + /// Target server version. + /// Target server brand version. + /// Migration exceptions and warnings. + /// A new instance for mocking. + public static MigrateSqlServerSqlDBTaskOutputMigrationLevel MigrateSqlServerSqlDBTaskOutputMigrationLevel(string id = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, long? durationInSeconds = null, MigrationStatus? status = null, string statusMessage = null, string message = null, string databases = null, string databaseSummary = null, MigrationValidationResult migrationValidationResult = null, MigrationReportResult migrationReportResult = null, string sourceServerVersion = null, string sourceServerBrandVersion = null, string targetServerVersion = null, string targetServerBrandVersion = null, IEnumerable exceptionsAndWarnings = null) + { + exceptionsAndWarnings ??= new List(); + + return new MigrateSqlServerSqlDBTaskOutputMigrationLevel(id, "MigrationLevelOutput", startedOn, endedOn, durationInSeconds, status, statusMessage, message, databases, databaseSummary, migrationValidationResult, migrationReportResult, sourceServerVersion, sourceServerBrandVersion, targetServerVersion, targetServerBrandVersion, exceptionsAndWarnings?.ToList()); + } + + /// Initializes a new instance of MigrationValidationResult. + /// Migration validation result identifier. + /// Migration Identifier. + /// Validation summary results for each database. + /// Current status of validation at the migration level. Status from the database validation result status will be aggregated here. + /// A new instance for mocking. + public static MigrationValidationResult MigrationValidationResult(string id = null, string migrationId = null, IReadOnlyDictionary summaryResults = null, ValidationStatus? status = null) + { + summaryResults ??= new Dictionary(); + + return new MigrationValidationResult(id, migrationId, summaryResults, status); + } + + /// Initializes a new instance of MigrationValidationDatabaseSummaryResult. + /// Result identifier. + /// Migration Identifier. + /// Name of the source database. + /// Name of the target database. + /// Validation start time. + /// Validation end time. + /// Current status of validation at the database level. + /// A new instance for mocking. + public static MigrationValidationDatabaseSummaryResult MigrationValidationDatabaseSummaryResult(string id = null, string migrationId = null, string sourceDatabaseName = null, string targetDatabaseName = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, ValidationStatus? status = null) + { + return new MigrationValidationDatabaseSummaryResult(id, migrationId, sourceDatabaseName, targetDatabaseName, startedOn, endedOn, status); + } + + /// Initializes a new instance of MigrationReportResult. + /// Migration validation result identifier. + /// The url of the report. + /// A new instance for mocking. + public static MigrationReportResult MigrationReportResult(string id = null, Uri reportUri = null) + { + return new MigrationReportResult(id, reportUri); + } + + /// Initializes a new instance of MigrateSqlServerSqlDBTaskOutputDatabaseLevel. + /// Result identifier. + /// Name of the item. + /// Migration start time. + /// Migration end time. + /// Current state of migration. + /// Migration stage that this database is in. + /// Status message. + /// Migration progress message. + /// Number of objects. + /// Number of successfully completed objects. + /// Number of database/object errors. + /// Wildcard string prefix to use for querying all errors of the item. + /// Wildcard string prefix to use for querying all sub-tem results of the item. + /// Migration exceptions and warnings. + /// Summary of object results in the migration. + /// A new instance for mocking. + public static MigrateSqlServerSqlDBTaskOutputDatabaseLevel MigrateSqlServerSqlDBTaskOutputDatabaseLevel(string id = null, string databaseName = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, MigrationState? state = null, DatabaseMigrationStage? stage = null, string statusMessage = null, string message = null, long? numberOfObjects = null, long? numberOfObjectsCompleted = null, long? errorCount = null, string errorPrefix = null, string resultPrefix = null, IEnumerable exceptionsAndWarnings = null, string objectSummary = null) + { + exceptionsAndWarnings ??= new List(); + + return new MigrateSqlServerSqlDBTaskOutputDatabaseLevel(id, "DatabaseLevelOutput", databaseName, startedOn, endedOn, state, stage, statusMessage, message, numberOfObjects, numberOfObjectsCompleted, errorCount, errorPrefix, resultPrefix, exceptionsAndWarnings?.ToList(), objectSummary); + } + + /// Initializes a new instance of MigrateSqlServerSqlDBTaskOutputTableLevel. + /// Result identifier. + /// Name of the item. + /// Migration start time. + /// Migration end time. + /// Current state of migration. + /// Status message. + /// Number of items. + /// Number of successfully completed items. + /// Wildcard string prefix to use for querying all errors of the item. + /// Wildcard string prefix to use for querying all sub-tem results of the item. + /// A new instance for mocking. + public static MigrateSqlServerSqlDBTaskOutputTableLevel MigrateSqlServerSqlDBTaskOutputTableLevel(string id = null, string objectName = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, MigrationState? state = null, string statusMessage = null, long? itemsCount = null, long? itemsCompletedCount = null, string errorPrefix = null, string resultPrefix = null) + { + return new MigrateSqlServerSqlDBTaskOutputTableLevel(id, "TableLevelOutput", objectName, startedOn, endedOn, state, statusMessage, itemsCount, itemsCompletedCount, errorPrefix, resultPrefix); + } + + /// Initializes a new instance of MigrateSqlServerSqlDBTaskOutputError. + /// Result identifier. + /// Migration error. + /// A new instance for mocking. + public static MigrateSqlServerSqlDBTaskOutputError MigrateSqlServerSqlDBTaskOutputError(string id = null, ReportableException error = null) + { + return new MigrateSqlServerSqlDBTaskOutputError(id, "ErrorOutput", error); + } + + /// Initializes a new instance of MigrateSqlServerSqlDBTaskOutputValidationResult. + /// Result identifier. + /// Migration Identifier. + /// Validation summary results for each database. + /// Current status of validation at the migration level. Status from the database validation result status will be aggregated here. + /// A new instance for mocking. + public static MigrateSqlServerSqlDBTaskOutputValidationResult MigrateSqlServerSqlDBTaskOutputValidationResult(string id = null, string migrationId = null, IReadOnlyDictionary summaryResults = null, ValidationStatus? status = null) + { + summaryResults ??= new Dictionary(); + + return new MigrateSqlServerSqlDBTaskOutputValidationResult(id, "MigrationValidationOutput", migrationId, summaryResults, status); + } + + /// Initializes a new instance of MigrateSqlServerSqlDBTaskOutputDatabaseLevelValidationResult. + /// Result identifier. + /// Migration Identifier. + /// Name of the source database. + /// Name of the target database. + /// Validation start time. + /// Validation end time. + /// Provides data integrity validation result between the source and target tables that are migrated. + /// Provides schema comparison result between source and target database. + /// Results of some of the query execution result between source and target database. + /// Current status of validation at the database level. + /// A new instance for mocking. + public static MigrateSqlServerSqlDBTaskOutputDatabaseLevelValidationResult MigrateSqlServerSqlDBTaskOutputDatabaseLevelValidationResult(string id = null, string migrationId = null, string sourceDatabaseName = null, string targetDatabaseName = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, DataIntegrityValidationResult dataIntegrityValidationResult = null, SchemaComparisonValidationResult schemaValidationResult = null, QueryAnalysisValidationResult queryAnalysisValidationResult = null, ValidationStatus? status = null) + { + return new MigrateSqlServerSqlDBTaskOutputDatabaseLevelValidationResult(id, "MigrationDatabaseLevelValidationOutput", migrationId, sourceDatabaseName, targetDatabaseName, startedOn, endedOn, dataIntegrityValidationResult, schemaValidationResult, queryAnalysisValidationResult, status); + } + + /// Initializes a new instance of DataIntegrityValidationResult. + /// List of failed table names of source and target pair. + /// List of errors that happened while performing data integrity validation. + /// A new instance for mocking. + public static DataIntegrityValidationResult DataIntegrityValidationResult(IReadOnlyDictionary failedObjects = null, ValidationError validationErrors = null) + { + failedObjects ??= new Dictionary(); + + return new DataIntegrityValidationResult(failedObjects, validationErrors); + } + + /// Initializes a new instance of ValidationError. + /// Error Text. + /// Severity of the error. + /// A new instance for mocking. + public static ValidationError ValidationError(string text = null, Severity? severity = null) + { + return new ValidationError(text, severity); + } + + /// Initializes a new instance of SchemaComparisonValidationResult. + /// List of schema differences between the source and target databases. + /// List of errors that happened while performing schema compare validation. + /// Count of source database objects. + /// Count of target database objects. + /// A new instance for mocking. + public static SchemaComparisonValidationResult SchemaComparisonValidationResult(SchemaComparisonValidationResultType schemaDifferences = null, ValidationError validationErrors = null, IReadOnlyDictionary sourceDatabaseObjectCount = null, IReadOnlyDictionary targetDatabaseObjectCount = null) + { + sourceDatabaseObjectCount ??= new Dictionary(); + targetDatabaseObjectCount ??= new Dictionary(); + + return new SchemaComparisonValidationResult(schemaDifferences, validationErrors, sourceDatabaseObjectCount, targetDatabaseObjectCount); + } + + /// Initializes a new instance of SchemaComparisonValidationResultType. + /// Name of the object that has the difference. + /// Type of the object that has the difference. e.g (Table/View/StoredProcedure). + /// Update action type with respect to target. + /// A new instance for mocking. + public static SchemaComparisonValidationResultType SchemaComparisonValidationResultType(string objectName = null, ObjectType? objectType = null, UpdateActionType? updateAction = null) + { + return new SchemaComparisonValidationResultType(objectName, objectType, updateAction); + } + + /// Initializes a new instance of QueryAnalysisValidationResult. + /// List of queries executed and it's execution results in source and target. + /// Errors that are part of the execution. + /// A new instance for mocking. + public static QueryAnalysisValidationResult QueryAnalysisValidationResult(QueryExecutionResult queryResults = null, ValidationError validationErrors = null) + { + return new QueryAnalysisValidationResult(queryResults, validationErrors); + } + + /// Initializes a new instance of QueryExecutionResult. + /// Query text retrieved from the source server. + /// Total no. of statements in the batch. + /// Query analysis result from the source. + /// Query analysis result from the target. + /// A new instance for mocking. + public static QueryExecutionResult QueryExecutionResult(string queryText = null, long? statementsInBatch = null, ExecutionStatistics sourceResult = null, ExecutionStatistics targetResult = null) + { + return new QueryExecutionResult(queryText, statementsInBatch, sourceResult, targetResult); + } + + /// Initializes a new instance of ExecutionStatistics. + /// No. of query executions. + /// CPU Time in millisecond(s) for the query execution. + /// Time taken in millisecond(s) for executing the query. + /// Dictionary of sql query execution wait types and the respective statistics. + /// Indicates whether the query resulted in an error. + /// List of sql Errors. + /// A new instance for mocking. + public static ExecutionStatistics ExecutionStatistics(long? executionCount = null, float? cpuTimeMs = null, float? elapsedTimeMs = null, IReadOnlyDictionary waitStats = null, bool? hasErrors = null, IEnumerable sqlErrors = null) + { + waitStats ??= new Dictionary(); + sqlErrors ??= new List(); + + return new ExecutionStatistics(executionCount, cpuTimeMs, elapsedTimeMs, waitStats, hasErrors, sqlErrors?.ToList()); + } + + /// Initializes a new instance of WaitStatistics. + /// Type of the Wait. + /// Total wait time in millisecond(s). + /// Total no. of waits. + /// A new instance for mocking. + public static WaitStatistics WaitStatistics(string waitType = null, float? waitTimeMs = null, long? waitCount = null) + { + return new WaitStatistics(waitType, waitTimeMs, waitCount); + } + + /// Initializes a new instance of MigrateSqlServerSqlMISyncTaskOutput. + /// Result identifier. + /// Result type. + /// A new instance for mocking. + public static MigrateSqlServerSqlMISyncTaskOutput MigrateSqlServerSqlMISyncTaskOutput(string id = null, string resultType = null) + { + return new UnknownMigrateSqlServerSqlMISyncTaskOutput(id, resultType); + } + + /// Initializes a new instance of MigrateSqlServerSqlMISyncTaskOutputMigrationLevel. + /// Result identifier. + /// Count of databases. + /// Current state of migration. + /// Migration start time. + /// Migration end time. + /// Source server name. + /// Source server version. + /// Source server brand version. + /// Target server name. + /// Target server version. + /// Target server brand version. + /// Number of database level errors. + /// A new instance for mocking. + public static MigrateSqlServerSqlMISyncTaskOutputMigrationLevel MigrateSqlServerSqlMISyncTaskOutputMigrationLevel(string id = null, int? databaseCount = null, MigrationState? state = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, string sourceServerName = null, string sourceServerVersion = null, string sourceServerBrandVersion = null, string targetServerName = null, string targetServerVersion = null, string targetServerBrandVersion = null, int? databaseErrorCount = null) + { + return new MigrateSqlServerSqlMISyncTaskOutputMigrationLevel(id, "MigrationLevelOutput", databaseCount, state, startedOn, endedOn, sourceServerName, sourceServerVersion, sourceServerBrandVersion, targetServerName, targetServerVersion, targetServerBrandVersion, databaseErrorCount); + } + + /// Initializes a new instance of MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel. + /// Result identifier. + /// Name of the database. + /// Current state of database. + /// Database migration start time. + /// Database migration end time. + /// Details of full backup set. + /// Last applied backup set information. + /// Backup sets that are currently active (Either being uploaded or getting restored). + /// Name of container created in the Azure Storage account where backups are copied to. + /// prefix string to use for querying errors for this database. + /// Whether full backup has been applied to the target database or not. + /// Migration exceptions and warnings. + /// A new instance for mocking. + public static MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel(string id = null, string sourceDatabaseName = null, DatabaseMigrationState? migrationState = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, BackupSetInfo fullBackupSetInfo = null, BackupSetInfo lastRestoredBackupSetInfo = null, IEnumerable activeBackupSets = null, string containerName = null, string errorPrefix = null, bool? isFullBackupRestored = null, IEnumerable exceptionsAndWarnings = null) + { + activeBackupSets ??= new List(); + exceptionsAndWarnings ??= new List(); + + return new MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel(id, "DatabaseLevelOutput", sourceDatabaseName, migrationState, startedOn, endedOn, fullBackupSetInfo, lastRestoredBackupSetInfo, activeBackupSets?.ToList(), containerName, errorPrefix, isFullBackupRestored, exceptionsAndWarnings?.ToList()); + } + + /// Initializes a new instance of MigrateSqlServerSqlMISyncTaskOutputError. + /// Result identifier. + /// Migration error. + /// A new instance for mocking. + public static MigrateSqlServerSqlMISyncTaskOutputError MigrateSqlServerSqlMISyncTaskOutputError(string id = null, ReportableException error = null) + { + return new MigrateSqlServerSqlMISyncTaskOutputError(id, "ErrorOutput", error); + } + + /// Initializes a new instance of MigrateSqlServerSqlMITaskOutput. + /// Result identifier. + /// Result type. + /// A new instance for mocking. + public static MigrateSqlServerSqlMITaskOutput MigrateSqlServerSqlMITaskOutput(string id = null, string resultType = null) + { + return new UnknownMigrateSqlServerSqlMITaskOutput(id, resultType); + } + + /// Initializes a new instance of MigrateSqlServerSqlMITaskOutputMigrationLevel. + /// Result identifier. + /// Migration start time. + /// Migration end time. + /// Current status of migration. + /// Current state of migration. + /// Selected agent jobs as a map from name to id. + /// Selected logins as a map from name to id. + /// Migration progress message. + /// Map of server role migration results. + /// List of orphaned users. + /// Selected databases as a map from database name to database id. + /// Source server version. + /// Source server brand version. + /// Target server version. + /// Target server brand version. + /// Migration exceptions and warnings. + /// A new instance for mocking. + public static MigrateSqlServerSqlMITaskOutputMigrationLevel MigrateSqlServerSqlMITaskOutputMigrationLevel(string id = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, MigrationStatus? status = null, MigrationState? state = null, string agentJobs = null, string logins = null, string message = null, string serverRoleResults = null, IEnumerable orphanedUsersInfo = null, string databases = null, string sourceServerVersion = null, string sourceServerBrandVersion = null, string targetServerVersion = null, string targetServerBrandVersion = null, IEnumerable exceptionsAndWarnings = null) + { + orphanedUsersInfo ??= new List(); + exceptionsAndWarnings ??= new List(); + + return new MigrateSqlServerSqlMITaskOutputMigrationLevel(id, "MigrationLevelOutput", startedOn, endedOn, status, state, agentJobs, logins, message, serverRoleResults, orphanedUsersInfo?.ToList(), databases, sourceServerVersion, sourceServerBrandVersion, targetServerVersion, targetServerBrandVersion, exceptionsAndWarnings?.ToList()); + } + + /// Initializes a new instance of MigrateSqlServerSqlMITaskOutputDatabaseLevel. + /// Result identifier. + /// Name of the database. + /// Size of the database in megabytes. + /// Current state of migration. + /// Current stage of migration. + /// Migration start time. + /// Migration end time. + /// Migration progress message. + /// Migration exceptions and warnings. + /// A new instance for mocking. + public static MigrateSqlServerSqlMITaskOutputDatabaseLevel MigrateSqlServerSqlMITaskOutputDatabaseLevel(string id = null, string databaseName = null, double? sizeMB = null, MigrationState? state = null, DatabaseMigrationStage? stage = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, string message = null, IEnumerable exceptionsAndWarnings = null) + { + exceptionsAndWarnings ??= new List(); + + return new MigrateSqlServerSqlMITaskOutputDatabaseLevel(id, "DatabaseLevelOutput", databaseName, sizeMB, state, stage, startedOn, endedOn, message, exceptionsAndWarnings?.ToList()); + } + + /// Initializes a new instance of MigrateSqlServerSqlMITaskOutputAgentJobLevel. + /// Result identifier. + /// Agent Job name. + /// The state of the original Agent Job. + /// Current state of migration. + /// Migration start time. + /// Migration end time. + /// Migration progress message. + /// Migration errors and warnings per job. + /// A new instance for mocking. + public static MigrateSqlServerSqlMITaskOutputAgentJobLevel MigrateSqlServerSqlMITaskOutputAgentJobLevel(string id = null, string name = null, bool? isEnabled = null, MigrationState? state = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, string message = null, IEnumerable exceptionsAndWarnings = null) + { + exceptionsAndWarnings ??= new List(); + + return new MigrateSqlServerSqlMITaskOutputAgentJobLevel(id, "AgentJobLevelOutput", name, isEnabled, state, startedOn, endedOn, message, exceptionsAndWarnings?.ToList()); + } + + /// Initializes a new instance of MigrateSqlServerSqlMITaskOutputLoginLevel. + /// Result identifier. + /// Login name. + /// Current state of login. + /// Current stage of login. + /// Login migration start time. + /// Login migration end time. + /// Login migration progress message. + /// Login migration errors and warnings per login. + /// A new instance for mocking. + public static MigrateSqlServerSqlMITaskOutputLoginLevel MigrateSqlServerSqlMITaskOutputLoginLevel(string id = null, string loginName = null, MigrationState? state = null, LoginMigrationStage? stage = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, string message = null, IEnumerable exceptionsAndWarnings = null) + { + exceptionsAndWarnings ??= new List(); + + return new MigrateSqlServerSqlMITaskOutputLoginLevel(id, "LoginLevelOutput", loginName, state, stage, startedOn, endedOn, message, exceptionsAndWarnings?.ToList()); + } + + /// Initializes a new instance of MigrateSqlServerSqlMITaskOutputError. + /// Result identifier. + /// Migration error. + /// A new instance for mocking. + public static MigrateSqlServerSqlMITaskOutputError MigrateSqlServerSqlMITaskOutputError(string id = null, ReportableException error = null) + { + return new MigrateSqlServerSqlMITaskOutputError(id, "ErrorOutput", error); + } + + /// Initializes a new instance of MigrateSsisTaskOutput. + /// Result identifier. + /// Result type. + /// A new instance for mocking. + public static MigrateSsisTaskOutput MigrateSsisTaskOutput(string id = null, string resultType = null) + { + return new UnknownMigrateSsisTaskOutput(id, resultType); + } + + /// Initializes a new instance of MigrateSsisTaskOutputMigrationLevel. + /// Result identifier. + /// Migration start time. + /// Migration end time. + /// Current status of migration. + /// Migration progress message. + /// Source server version. + /// Source server brand version. + /// Target server version. + /// Target server brand version. + /// Migration exceptions and warnings. + /// Stage of SSIS migration. + /// A new instance for mocking. + public static MigrateSsisTaskOutputMigrationLevel MigrateSsisTaskOutputMigrationLevel(string id = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, MigrationStatus? status = null, string message = null, string sourceServerVersion = null, string sourceServerBrandVersion = null, string targetServerVersion = null, string targetServerBrandVersion = null, IEnumerable exceptionsAndWarnings = null, SsisMigrationStage? stage = null) + { + exceptionsAndWarnings ??= new List(); + + return new MigrateSsisTaskOutputMigrationLevel(id, "MigrationLevelOutput", startedOn, endedOn, status, message, sourceServerVersion, sourceServerBrandVersion, targetServerVersion, targetServerBrandVersion, exceptionsAndWarnings?.ToList(), stage); + } + + /// Initializes a new instance of MigrateSsisTaskOutputProjectLevel. + /// Result identifier. + /// Name of the folder. + /// Name of the project. + /// Current state of migration. + /// Stage of SSIS migration. + /// Migration start time. + /// Migration end time. + /// Migration progress message. + /// Migration exceptions and warnings. + /// A new instance for mocking. + public static MigrateSsisTaskOutputProjectLevel MigrateSsisTaskOutputProjectLevel(string id = null, string folderName = null, string projectName = null, MigrationState? state = null, SsisMigrationStage? stage = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, string message = null, IEnumerable exceptionsAndWarnings = null) + { + exceptionsAndWarnings ??= new List(); + + return new MigrateSsisTaskOutputProjectLevel(id, "SsisProjectLevelOutput", folderName, projectName, state, stage, startedOn, endedOn, message, exceptionsAndWarnings?.ToList()); + } + + /// Initializes a new instance of MongoDBCancelCommand. + /// Array of errors. This is ignored if submitted. + /// The state of the command. This is ignored if submitted. + /// Command input. + /// A new instance for mocking. + public static MongoDBCancelCommand MongoDBCancelCommand(IEnumerable errors = null, CommandState? state = null, string inputObjectName = null) + { + errors ??= new List(); + + return new MongoDBCancelCommand(CommandType.Cancel, errors?.ToList(), state, inputObjectName != null ? new MongoDBCommandInput(inputObjectName) : null); + } + + /// Initializes a new instance of MongoDBClusterInfo. + /// A list of non-system databases in the cluster. + /// Whether the cluster supports sharded collections. + /// The type of data source. + /// The version of the data source in the form x.y.z (e.g. 3.6.7). Not used if Type is BlobContainer. + /// A new instance for mocking. + public static MongoDBClusterInfo MongoDBClusterInfo(IEnumerable databases = null, bool supportsSharding = default, MongoDBClusterType clusterType = default, string version = null) + { + databases ??= new List(); + + return new MongoDBClusterInfo(databases?.ToList(), supportsSharding, clusterType, version); + } + + /// Initializes a new instance of MongoDBDatabaseInfo. + /// The average document size, or -1 if the average size is unknown. + /// The estimated total data size, in bytes, or -1 if the size is unknown. + /// The estimated total number of documents, or -1 if the document count is unknown. + /// The unqualified name of the database or collection. + /// The qualified name of the database or collection. For a collection, this is the database-qualified name. + /// A list of supported collections in a MongoDB database. + /// Whether the database has sharding enabled. Note that the migration task will enable sharding on the target if necessary. + /// or is null. + /// A new instance for mocking. + public static MongoDBDatabaseInfo MongoDBDatabaseInfo(long averageDocumentSize = default, long dataSize = default, long documentCount = default, string name = null, string qualifiedName = null, IEnumerable collections = null, bool supportsSharding = default) + { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + if (qualifiedName == null) + { + throw new ArgumentNullException(nameof(qualifiedName)); + } + collections ??= new List(); + + return new MongoDBDatabaseInfo(averageDocumentSize, dataSize, documentCount, name, qualifiedName, collections?.ToList(), supportsSharding); + } + + /// Initializes a new instance of MongoDBCollectionInfo. + /// The average document size, or -1 if the average size is unknown. + /// The estimated total data size, in bytes, or -1 if the size is unknown. + /// The estimated total number of documents, or -1 if the document count is unknown. + /// The unqualified name of the database or collection. + /// The qualified name of the database or collection. For a collection, this is the database-qualified name. + /// The name of the database containing the collection. + /// Whether the collection is a capped collection (i.e. whether it has a fixed size and acts like a circular buffer). + /// Whether the collection is system collection. + /// Whether the collection is a view of another collection. + /// The shard key on the collection, or null if the collection is not sharded. + /// Whether the database has sharding enabled. Note that the migration task will enable sharding on the target if necessary. + /// The name of the collection that this is a view of, if IsView is true. + /// or is null. + /// A new instance for mocking. + public static MongoDBCollectionInfo MongoDBCollectionInfo(long averageDocumentSize = default, long dataSize = default, long documentCount = default, string name = null, string qualifiedName = null, string databaseName = null, bool isCapped = default, bool isSystemCollection = default, bool isView = default, MongoDBShardKeyInfo shardKey = null, bool supportsSharding = default, string viewOf = null) + { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + if (qualifiedName == null) + { + throw new ArgumentNullException(nameof(qualifiedName)); + } + + return new MongoDBCollectionInfo(averageDocumentSize, dataSize, documentCount, name, qualifiedName, databaseName, isCapped, isSystemCollection, isView, shardKey, supportsSharding, viewOf); + } + + /// Initializes a new instance of MongoDBShardKeyInfo. + /// The fields within the shard key. + /// Whether the shard key is unique. + /// A new instance for mocking. + public static MongoDBShardKeyInfo MongoDBShardKeyInfo(IEnumerable fields = null, bool isUnique = default) + { + fields ??= new List(); + + return new MongoDBShardKeyInfo(fields?.ToList(), isUnique); + } + + /// Initializes a new instance of MongoDBObjectInfo. + /// The average document size, or -1 if the average size is unknown. + /// The estimated total data size, in bytes, or -1 if the size is unknown. + /// The estimated total number of documents, or -1 if the document count is unknown. + /// The unqualified name of the database or collection. + /// The qualified name of the database or collection. For a collection, this is the database-qualified name. + /// or is null. + /// A new instance for mocking. + public static MongoDBObjectInfo MongoDBObjectInfo(long averageDocumentSize = default, long dataSize = default, long documentCount = default, string name = null, string qualifiedName = null) + { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + if (qualifiedName == null) + { + throw new ArgumentNullException(nameof(qualifiedName)); + } + + return new MongoDBObjectInfo(averageDocumentSize, dataSize, documentCount, name, qualifiedName); + } + + /// Initializes a new instance of MongoDBCollectionProgress. + /// The number of document bytes copied during the Copying stage. + /// The number of documents copied during the Copying stage. + /// The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format). + /// The errors and warnings that have occurred for the current object. The keys are the error codes. + /// The number of oplog events awaiting replay. + /// The number of oplog events replayed so far. + /// The timestamp of the last oplog event received, or null if no oplog event has been received yet. + /// The timestamp of the last oplog event replayed, or null if no oplog event has been replayed yet. + /// The name of the progress object. For a collection, this is the unqualified collection name. For a database, this is the database name. For the overall migration, this is null. + /// The qualified name of the progress object. For a collection, this is the database-qualified name. For a database, this is the database name. For the overall migration, this is null. + /// + /// The total number of document bytes on the source at the beginning of the Copying stage, or -1 if the total size was unknown. + /// The total number of documents on the source at the beginning of the Copying stage, or -1 if the total count was unknown. + /// A new instance for mocking. + public static MongoDBCollectionProgress MongoDBCollectionProgress(long bytesCopied = default, long documentsCopied = default, string elapsedTime = null, IReadOnlyDictionary errors = null, long eventsPending = default, long eventsReplayed = default, DateTimeOffset? lastEventOn = null, DateTimeOffset? lastReplayOn = null, string name = null, string qualifiedName = null, MongoDBMigrationState state = default, long totalBytes = default, long totalDocuments = default) + { + errors ??= new Dictionary(); + + return new MongoDBCollectionProgress(bytesCopied, documentsCopied, elapsedTime, errors, eventsPending, eventsReplayed, lastEventOn, lastReplayOn, name, qualifiedName, MongoDBProgressResultType.Collection, state, totalBytes, totalDocuments); + } + + /// Initializes a new instance of MongoDBProgress. + /// The number of document bytes copied during the Copying stage. + /// The number of documents copied during the Copying stage. + /// The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format). + /// The errors and warnings that have occurred for the current object. The keys are the error codes. + /// The number of oplog events awaiting replay. + /// The number of oplog events replayed so far. + /// The timestamp of the last oplog event received, or null if no oplog event has been received yet. + /// The timestamp of the last oplog event replayed, or null if no oplog event has been replayed yet. + /// The name of the progress object. For a collection, this is the unqualified collection name. For a database, this is the database name. For the overall migration, this is null. + /// The qualified name of the progress object. For a collection, this is the database-qualified name. For a database, this is the database name. For the overall migration, this is null. + /// The type of progress object. + /// + /// The total number of document bytes on the source at the beginning of the Copying stage, or -1 if the total size was unknown. + /// The total number of documents on the source at the beginning of the Copying stage, or -1 if the total count was unknown. + /// A new instance for mocking. + public static MongoDBProgress MongoDBProgress(long bytesCopied = default, long documentsCopied = default, string elapsedTime = null, IReadOnlyDictionary errors = null, long eventsPending = default, long eventsReplayed = default, DateTimeOffset? lastEventOn = null, DateTimeOffset? lastReplayOn = null, string name = null, string qualifiedName = null, string resultType = "Unknown", MongoDBMigrationState state = default, long totalBytes = default, long totalDocuments = default) + { + errors ??= new Dictionary(); + + return new UnknownMongoDBProgress(bytesCopied, documentsCopied, elapsedTime, errors, eventsPending, eventsReplayed, lastEventOn, lastReplayOn, name, qualifiedName, resultType, state, totalBytes, totalDocuments); + } + + /// Initializes a new instance of MongoDBError. + /// The non-localized, machine-readable code that describes the error or warning. + /// The number of times the error or warning has occurred. + /// The localized, human-readable message that describes the error or warning. + /// The type of error or warning. + /// A new instance for mocking. + public static MongoDBError MongoDBError(string code = null, int? count = null, string message = null, MongoDBErrorType? errorType = null) + { + return new MongoDBError(code, count, message, errorType); + } + + /// Initializes a new instance of MongoDBDatabaseProgress. + /// The number of document bytes copied during the Copying stage. + /// The number of documents copied during the Copying stage. + /// The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format). + /// The errors and warnings that have occurred for the current object. The keys are the error codes. + /// The number of oplog events awaiting replay. + /// The number of oplog events replayed so far. + /// The timestamp of the last oplog event received, or null if no oplog event has been received yet. + /// The timestamp of the last oplog event replayed, or null if no oplog event has been replayed yet. + /// The name of the progress object. For a collection, this is the unqualified collection name. For a database, this is the database name. For the overall migration, this is null. + /// The qualified name of the progress object. For a collection, this is the database-qualified name. For a database, this is the database name. For the overall migration, this is null. + /// + /// The total number of document bytes on the source at the beginning of the Copying stage, or -1 if the total size was unknown. + /// The total number of documents on the source at the beginning of the Copying stage, or -1 if the total count was unknown. + /// The progress of the collections in the database. The keys are the unqualified names of the collections. + /// A new instance for mocking. + public static MongoDBDatabaseProgress MongoDBDatabaseProgress(long bytesCopied = default, long documentsCopied = default, string elapsedTime = null, IReadOnlyDictionary errors = null, long eventsPending = default, long eventsReplayed = default, DateTimeOffset? lastEventOn = null, DateTimeOffset? lastReplayOn = null, string name = null, string qualifiedName = null, MongoDBMigrationState state = default, long totalBytes = default, long totalDocuments = default, IReadOnlyDictionary collections = null) + { + errors ??= new Dictionary(); + collections ??= new Dictionary(); + + return new MongoDBDatabaseProgress(bytesCopied, documentsCopied, elapsedTime, errors, eventsPending, eventsReplayed, lastEventOn, lastReplayOn, name, qualifiedName, MongoDBProgressResultType.Database, state, totalBytes, totalDocuments, collections); + } + + /// Initializes a new instance of MongoDBFinishCommand. + /// Array of errors. This is ignored if submitted. + /// The state of the command. This is ignored if submitted. + /// Command input. + /// A new instance for mocking. + public static MongoDBFinishCommand MongoDBFinishCommand(IEnumerable errors = null, CommandState? state = null, MongoDBFinishCommandInput input = null) + { + errors ??= new List(); + + return new MongoDBFinishCommand(CommandType.Finish, errors?.ToList(), state, input); + } + + /// Initializes a new instance of MongoDBMigrationProgress. + /// The number of document bytes copied during the Copying stage. + /// The number of documents copied during the Copying stage. + /// The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format). + /// The errors and warnings that have occurred for the current object. The keys are the error codes. + /// The number of oplog events awaiting replay. + /// The number of oplog events replayed so far. + /// The timestamp of the last oplog event received, or null if no oplog event has been received yet. + /// The timestamp of the last oplog event replayed, or null if no oplog event has been replayed yet. + /// The name of the progress object. For a collection, this is the unqualified collection name. For a database, this is the database name. For the overall migration, this is null. + /// The qualified name of the progress object. For a collection, this is the database-qualified name. For a database, this is the database name. For the overall migration, this is null. + /// + /// The total number of document bytes on the source at the beginning of the Copying stage, or -1 if the total size was unknown. + /// The total number of documents on the source at the beginning of the Copying stage, or -1 if the total count was unknown. + /// The progress of the databases in the migration. The keys are the names of the databases. + /// A new instance for mocking. + public static MongoDBMigrationProgress MongoDBMigrationProgress(long bytesCopied = default, long documentsCopied = default, string elapsedTime = null, IReadOnlyDictionary errors = null, long eventsPending = default, long eventsReplayed = default, DateTimeOffset? lastEventOn = null, DateTimeOffset? lastReplayOn = null, string name = null, string qualifiedName = null, MongoDBMigrationState state = default, long totalBytes = default, long totalDocuments = default, IReadOnlyDictionary databases = null) + { + errors ??= new Dictionary(); + databases ??= new Dictionary(); + + return new MongoDBMigrationProgress(bytesCopied, documentsCopied, elapsedTime, errors, eventsPending, eventsReplayed, lastEventOn, lastReplayOn, name, qualifiedName, MongoDBProgressResultType.Migration, state, totalBytes, totalDocuments, databases); + } + + /// Initializes a new instance of MongoDBRestartCommand. + /// Array of errors. This is ignored if submitted. + /// The state of the command. This is ignored if submitted. + /// Command input. + /// A new instance for mocking. + public static MongoDBRestartCommand MongoDBRestartCommand(IEnumerable errors = null, CommandState? state = null, string inputObjectName = null) + { + errors ??= new List(); + + return new MongoDBRestartCommand(CommandType.Restart, errors?.ToList(), state, inputObjectName != null ? new MongoDBCommandInput(inputObjectName) : null); + } + + /// Initializes a new instance of ConnectToSourceOracleSyncTaskOutput. + /// Version of the source server. + /// List of schemas on source server. + /// Source server brand version. + /// Validation errors associated with the task. + /// A new instance for mocking. + public static ConnectToSourceOracleSyncTaskOutput ConnectToSourceOracleSyncTaskOutput(string sourceServerVersion = null, IEnumerable databases = null, string sourceServerBrandVersion = null, IEnumerable validationErrors = null) + { + databases ??= new List(); + validationErrors ??= new List(); + + return new ConnectToSourceOracleSyncTaskOutput(sourceServerVersion, databases?.ToList(), sourceServerBrandVersion, validationErrors?.ToList()); + } + + /// Initializes a new instance of ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutput. + /// Version of the target server. + /// List of databases on target server. + /// Target server brand version. + /// Validation errors associated with the task. + /// Mapping of schemas per database. + /// A new instance for mocking. + public static ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutput ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutput(string targetServerVersion = null, IEnumerable databases = null, string targetServerBrandVersion = null, IEnumerable validationErrors = null, IEnumerable databaseSchemaMap = null) + { + databases ??= new List(); + validationErrors ??= new List(); + databaseSchemaMap ??= new List(); + + return new ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutput(targetServerVersion, databases?.ToList(), targetServerBrandVersion, validationErrors?.ToList(), databaseSchemaMap?.ToList()); + } + + /// Initializes a new instance of ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem. + /// + /// + /// A new instance for mocking. + public static ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem(string database = null, IEnumerable schemas = null) + { + schemas ??= new List(); + + return new ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem(database, schemas?.ToList()); + } + + /// Initializes a new instance of GetUserTablesOracleTaskOutput. + /// The schema this result is for. + /// List of valid tables found for this schema. + /// Validation errors associated with the task. + /// A new instance for mocking. + public static GetUserTablesOracleTaskOutput GetUserTablesOracleTaskOutput(string schemaName = null, IEnumerable tables = null, IEnumerable validationErrors = null) + { + tables ??= new List(); + validationErrors ??= new List(); + + return new GetUserTablesOracleTaskOutput(schemaName, tables?.ToList(), validationErrors?.ToList()); + } + + /// Initializes a new instance of GetUserTablesPostgreSqlTaskOutput. + /// The database this result is for. + /// List of valid tables found for this database. + /// Validation errors associated with the task. + /// A new instance for mocking. + public static GetUserTablesPostgreSqlTaskOutput GetUserTablesPostgreSqlTaskOutput(string databaseName = null, IEnumerable tables = null, IEnumerable validationErrors = null) + { + tables ??= new List(); + validationErrors ??= new List(); + + return new GetUserTablesPostgreSqlTaskOutput(databaseName, tables?.ToList(), validationErrors?.ToList()); + } + + /// Initializes a new instance of ValidateOracleAzureDBPostgreSqlSyncTaskOutput. + /// Errors associated with a selected database object. + /// A new instance for mocking. + public static ValidateOracleAzureDBPostgreSqlSyncTaskOutput ValidateOracleAzureDBPostgreSqlSyncTaskOutput(IEnumerable validationErrors = null) + { + validationErrors ??= new List(); + + return new ValidateOracleAzureDBPostgreSqlSyncTaskOutput(validationErrors?.ToList()); + } + + /// Initializes a new instance of MigrateOracleAzureDBPostgreSqlSyncTaskOutput. + /// Result identifier. + /// Result type. + /// A new instance for mocking. + public static MigrateOracleAzureDBPostgreSqlSyncTaskOutput MigrateOracleAzureDBPostgreSqlSyncTaskOutput(string id = null, string resultType = null) + { + return new UnknownMigrateOracleAzureDBPostgreSqlSyncTaskOutput(id, resultType); + } + + /// Initializes a new instance of MigrateOracleAzureDBPostgreSqlSyncTaskOutputMigrationLevel. + /// Result identifier. + /// Migration start time. + /// Migration end time. + /// Source server version. + /// Source server name. + /// Target server version. + /// Target server name. + /// A new instance for mocking. + public static MigrateOracleAzureDBPostgreSqlSyncTaskOutputMigrationLevel MigrateOracleAzureDBPostgreSqlSyncTaskOutputMigrationLevel(string id = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, string sourceServerVersion = null, string sourceServer = null, string targetServerVersion = null, string targetServer = null) + { + return new MigrateOracleAzureDBPostgreSqlSyncTaskOutputMigrationLevel(id, "MigrationLevelOutput", startedOn, endedOn, sourceServerVersion, sourceServer, targetServerVersion, targetServer); + } + + /// Initializes a new instance of MigrateOracleAzureDBPostgreSqlSyncTaskOutputDatabaseLevel. + /// Result identifier. + /// Name of the database. + /// Migration start time. + /// Migration end time. + /// Migration state that this database is in. + /// Number of incoming changes. + /// Number of applied changes. + /// Number of cdc inserts. + /// Number of cdc deletes. + /// Number of cdc updates. + /// Number of tables completed in full load. + /// Number of tables loading in full load. + /// Number of tables queued in full load. + /// Number of tables errored in full load. + /// Indicates if initial load (full load) has been completed. + /// CDC apply latency. + /// A new instance for mocking. + public static MigrateOracleAzureDBPostgreSqlSyncTaskOutputDatabaseLevel MigrateOracleAzureDBPostgreSqlSyncTaskOutputDatabaseLevel(string id = null, string databaseName = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, SyncDatabaseMigrationReportingState? migrationState = null, long? incomingChanges = null, long? appliedChanges = null, long? cdcInsertCounter = null, long? cdcDeleteCounter = null, long? cdcUpdateCounter = null, long? fullLoadCompletedTables = null, long? fullLoadLoadingTables = null, long? fullLoadQueuedTables = null, long? fullLoadErroredTables = null, bool? initializationCompleted = null, long? latency = null) + { + return new MigrateOracleAzureDBPostgreSqlSyncTaskOutputDatabaseLevel(id, "DatabaseLevelOutput", databaseName, startedOn, endedOn, migrationState, incomingChanges, appliedChanges, cdcInsertCounter, cdcDeleteCounter, cdcUpdateCounter, fullLoadCompletedTables, fullLoadLoadingTables, fullLoadQueuedTables, fullLoadErroredTables, initializationCompleted, latency); + } + + /// Initializes a new instance of MigrateOracleAzureDBPostgreSqlSyncTaskOutputTableLevel. + /// Result identifier. + /// Name of the table. + /// Name of the database. + /// Number of applied inserts. + /// Number of applied updates. + /// Number of applied deletes. + /// Estimate to finish full load. + /// Full load start time. + /// Full load end time. + /// Number of rows applied in full load. + /// Current state of the table migration. + /// Total number of applied changes. + /// Number of data errors occurred. + /// Last modified time on target. + /// A new instance for mocking. + public static MigrateOracleAzureDBPostgreSqlSyncTaskOutputTableLevel MigrateOracleAzureDBPostgreSqlSyncTaskOutputTableLevel(string id = null, string tableName = null, string databaseName = null, long? cdcInsertCounter = null, long? cdcUpdateCounter = null, long? cdcDeleteCounter = null, DateTimeOffset? fullLoadEstFinishOn = null, DateTimeOffset? fullLoadStartedOn = null, DateTimeOffset? fullLoadEndedOn = null, long? fullLoadTotalRows = null, SyncTableMigrationState? state = null, long? totalChangesApplied = null, long? dataErrorsCounter = null, DateTimeOffset? lastModifiedOn = null) + { + return new MigrateOracleAzureDBPostgreSqlSyncTaskOutputTableLevel(id, "TableLevelOutput", tableName, databaseName, cdcInsertCounter, cdcUpdateCounter, cdcDeleteCounter, fullLoadEstFinishOn, fullLoadStartedOn, fullLoadEndedOn, fullLoadTotalRows, state, totalChangesApplied, dataErrorsCounter, lastModifiedOn); + } + + /// Initializes a new instance of MigrateOracleAzureDBPostgreSqlSyncTaskOutputError. + /// Result identifier. + /// Migration error. + /// A new instance for mocking. + public static MigrateOracleAzureDBPostgreSqlSyncTaskOutputError MigrateOracleAzureDBPostgreSqlSyncTaskOutputError(string id = null, ReportableException error = null) + { + return new MigrateOracleAzureDBPostgreSqlSyncTaskOutputError(id, "ErrorOutput", error); + } + + /// Initializes a new instance of MigrateOracleAzureDBPostgreSqlSyncTaskOutputDatabaseError. + /// Result identifier. + /// Error message. + /// List of error events. + /// A new instance for mocking. + public static MigrateOracleAzureDBPostgreSqlSyncTaskOutputDatabaseError MigrateOracleAzureDBPostgreSqlSyncTaskOutputDatabaseError(string id = null, string errorMessage = null, IEnumerable events = null) + { + events ??= new List(); + + return new MigrateOracleAzureDBPostgreSqlSyncTaskOutputDatabaseError(id, "DatabaseLevelErrorOutput", errorMessage, events?.ToList()); + } + + /// Initializes a new instance of OracleOciDriverInfo. + /// The name of the driver package. + /// The size in bytes of the driver package. + /// The MD5 Base64 encoded checksum for the driver package. + /// The checksum for the driver package provided by Oracle. + /// Version listed in the OCI assembly 'oci.dll'. + /// List of Oracle database versions supported by this driver. Only major minor of the version is listed. + /// A new instance for mocking. + public static OracleOciDriverInfo OracleOciDriverInfo(string driverName = null, string driverSize = null, string archiveChecksum = null, string oracleChecksum = null, string assemblyVersion = null, IEnumerable supportedOracleVersions = null) + { + supportedOracleVersions ??= new List(); + + return new OracleOciDriverInfo(driverName, driverSize, archiveChecksum, oracleChecksum, assemblyVersion, supportedOracleVersions?.ToList()); + } + + /// Initializes a new instance of CheckOciDriverTaskOutput. + /// Information about the installed driver if found and valid. + /// Validation errors. + /// A new instance for mocking. + public static CheckOciDriverTaskOutput CheckOciDriverTaskOutput(OracleOciDriverInfo installedDriver = null, IEnumerable validationErrors = null) + { + validationErrors ??= new List(); + + return new CheckOciDriverTaskOutput(installedDriver, validationErrors?.ToList()); + } + + /// Initializes a new instance of UploadOciDriverTaskOutput. + /// The name of the driver package that was validated and uploaded. + /// Validation errors. + /// A new instance for mocking. + public static UploadOciDriverTaskOutput UploadOciDriverTaskOutput(string driverPackageName = null, IEnumerable validationErrors = null) + { + validationErrors ??= new List(); + + return new UploadOciDriverTaskOutput(driverPackageName, validationErrors?.ToList()); + } + + /// Initializes a new instance of InstallOciDriverTaskOutput. + /// Validation errors. + /// A new instance for mocking. + public static InstallOciDriverTaskOutput InstallOciDriverTaskOutput(IEnumerable validationErrors = null) + { + validationErrors ??= new List(); + + return new InstallOciDriverTaskOutput(validationErrors?.ToList()); + } + + /// Initializes a new instance of CheckOciDriverTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Input for the service task to check for OCI drivers. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static CheckOciDriverTaskProperties CheckOciDriverTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, string inputServerVersion = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new CheckOciDriverTaskProperties(TaskType.ServiceCheckOci, errors?.ToList(), state, commands?.ToList(), clientData, inputServerVersion != null ? new CheckOciDriverTaskInput(inputServerVersion) : null, output?.ToList()); + } + + /// Initializes a new instance of UploadOciDriverTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Input for the service task to upload an OCI driver. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static UploadOciDriverTaskProperties UploadOciDriverTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, FileShare inputDriverShare = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new UploadOciDriverTaskProperties(TaskType.ServiceUploadOci, errors?.ToList(), state, commands?.ToList(), clientData, inputDriverShare != null ? new UploadOciDriverTaskInput(inputDriverShare) : null, output?.ToList()); + } + + /// Initializes a new instance of InstallOciDriverTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Input for the service task to install an OCI driver. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static InstallOciDriverTaskProperties InstallOciDriverTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, string inputDriverPackageName = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new InstallOciDriverTaskProperties(TaskType.ServiceInstallOci, errors?.ToList(), state, commands?.ToList(), clientData, inputDriverPackageName != null ? new InstallOciDriverTaskInput(inputDriverPackageName) : null, output?.ToList()); + } + + /// Initializes a new instance of ConnectToMongoDBTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Describes a connection to a MongoDB data source. + /// An array containing a single MongoDbClusterInfo object. + /// A new instance for mocking. + public static ConnectToMongoDBTaskProperties ConnectToMongoDBTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, MongoDBConnectionInfo input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ConnectToMongoDBTaskProperties(TaskType.ConnectMongoDB, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of ConnectToSourceSqlServerTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// + /// Task output. This is ignored if submitted. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// Task id. + /// A new instance for mocking. + public static ConnectToSourceSqlServerTaskProperties ConnectToSourceSqlServerTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, ConnectToSourceSqlServerTaskInput input = null, IEnumerable output = null, string taskId = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ConnectToSourceSqlServerTaskProperties(TaskType.ConnectToSourceSqlServer, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList(), taskId); + } + + /// Initializes a new instance of ConnectToSourceSqlServerSyncTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// + /// Task output. This is ignored if submitted. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// A new instance for mocking. + public static ConnectToSourceSqlServerSyncTaskProperties ConnectToSourceSqlServerSyncTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, ConnectToSourceSqlServerTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ConnectToSourceSqlServerSyncTaskProperties(TaskType.ConnectToSourceSqlServerSync, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of ConnectToSourcePostgreSqlSyncTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static ConnectToSourcePostgreSqlSyncTaskProperties ConnectToSourcePostgreSqlSyncTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, PostgreSqlConnectionInfo inputSourceConnectionInfo = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ConnectToSourcePostgreSqlSyncTaskProperties(TaskType.ConnectToSourcePostgreSqlSync, errors?.ToList(), state, commands?.ToList(), clientData, inputSourceConnectionInfo != null ? new ConnectToSourcePostgreSqlSyncTaskInput(inputSourceConnectionInfo) : null, output?.ToList()); + } + + /// Initializes a new instance of ConnectToSourceMySqlTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static ConnectToSourceMySqlTaskProperties ConnectToSourceMySqlTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, ConnectToSourceMySqlTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ConnectToSourceMySqlTaskProperties(TaskType.ConnectToSourceMySql, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of ConnectToSourceNonSqlTaskOutput. + /// Result identifier. + /// Server brand version. + /// Server properties. + /// List of databases on the server. + /// Validation errors associated with the task. + /// A new instance for mocking. + public static ConnectToSourceNonSqlTaskOutput ConnectToSourceNonSqlTaskOutput(string id = null, string sourceServerBrandVersion = null, ServerProperties serverProperties = null, IEnumerable databases = null, IEnumerable validationErrors = null) + { + databases ??= new List(); + validationErrors ??= new List(); + + return new ConnectToSourceNonSqlTaskOutput(id, sourceServerBrandVersion, serverProperties, databases?.ToList(), validationErrors?.ToList()); + } + + /// Initializes a new instance of ServerProperties. + /// Name of the server platform. + /// Name of the server. + /// Version of the database server. + /// Edition of the database server. + /// Version of the operating system. + /// Number of databases in the server. + /// A new instance for mocking. + public static ServerProperties ServerProperties(string serverPlatform = null, string serverName = null, string serverVersion = null, string serverEdition = null, string serverOperatingSystemVersion = null, int? serverDatabaseCount = null) + { + return new ServerProperties(serverPlatform, serverName, serverVersion, serverEdition, serverOperatingSystemVersion, serverDatabaseCount); + } + + /// Initializes a new instance of ConnectToSourceOracleSyncTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static ConnectToSourceOracleSyncTaskProperties ConnectToSourceOracleSyncTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, OracleConnectionInfo inputSourceConnectionInfo = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ConnectToSourceOracleSyncTaskProperties(TaskType.ConnectToSourceOracleSync, errors?.ToList(), state, commands?.ToList(), clientData, inputSourceConnectionInfo != null ? new ConnectToSourceOracleSyncTaskInput(inputSourceConnectionInfo) : null, output?.ToList()); + } + + /// Initializes a new instance of ConnectToTargetSqlDBTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// DateTime in UTC when the task was created. + /// A new instance for mocking. + public static ConnectToTargetSqlDBTaskProperties ConnectToTargetSqlDBTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, ConnectToTargetSqlDBTaskInput input = null, IEnumerable output = null, string createdOn = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ConnectToTargetSqlDBTaskProperties(TaskType.ConnectToTargetSqlDB, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList(), createdOn); + } + + /// Initializes a new instance of ConnectToTargetSqlDBSyncTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static ConnectToTargetSqlDBSyncTaskProperties ConnectToTargetSqlDBSyncTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, ConnectToTargetSqlDBSyncTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ConnectToTargetSqlDBSyncTaskProperties(TaskType.ConnectToTargetSqlDBSync, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of ConnectToTargetAzureDBForPostgreSqlSyncTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static ConnectToTargetAzureDBForPostgreSqlSyncTaskProperties ConnectToTargetAzureDBForPostgreSqlSyncTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, ConnectToTargetAzureDBForPostgreSqlSyncTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ConnectToTargetAzureDBForPostgreSqlSyncTaskProperties(TaskType.ConnectToTargetAzureDBForPostgreSqlSync, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskProperties ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, PostgreSqlConnectionInfo inputTargetConnectionInfo = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskProperties(TaskType.ConnectToTargetOracleAzureDBForPostgreSqlSync, errors?.ToList(), state, commands?.ToList(), clientData, inputTargetConnectionInfo != null ? new ConnectToTargetOracleAzureDBForPostgreSqlSyncTaskInput(inputTargetConnectionInfo) : null, output?.ToList()); + } + + /// Initializes a new instance of GetUserTablesSqlTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// Task id. + /// A new instance for mocking. + public static GetUserTablesSqlTaskProperties GetUserTablesSqlTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, GetUserTablesSqlTaskInput input = null, IEnumerable output = null, string taskId = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new GetUserTablesSqlTaskProperties(TaskType.GetUserTablesSql, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList(), taskId); + } + + /// Initializes a new instance of GetUserTablesSqlSyncTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static GetUserTablesSqlSyncTaskProperties GetUserTablesSqlSyncTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, GetUserTablesSqlSyncTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new GetUserTablesSqlSyncTaskProperties(TaskType.GetUserTablesAzureSqlDBSync, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of GetUserTablesOracleTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static GetUserTablesOracleTaskProperties GetUserTablesOracleTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, GetUserTablesOracleTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new GetUserTablesOracleTaskProperties(TaskType.GetUserTablesOracle, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of GetUserTablesPostgreSqlTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static GetUserTablesPostgreSqlTaskProperties GetUserTablesPostgreSqlTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, GetUserTablesPostgreSqlTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new GetUserTablesPostgreSqlTaskProperties(TaskType.GetUserTablesPostgreSql, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of GetUserTablesMySqlTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static GetUserTablesMySqlTaskProperties GetUserTablesMySqlTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, GetUserTablesMySqlTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new GetUserTablesMySqlTaskProperties(TaskType.GetUserTablesMySql, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of ConnectToTargetSqlMITaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static ConnectToTargetSqlMITaskProperties ConnectToTargetSqlMITaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, ConnectToTargetSqlMITaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ConnectToTargetSqlMITaskProperties(TaskType.ConnectToTargetAzureSqlDBMI, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of ConnectToTargetSqlMISyncTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static ConnectToTargetSqlMISyncTaskProperties ConnectToTargetSqlMISyncTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, ConnectToTargetSqlMISyncTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ConnectToTargetSqlMISyncTaskProperties(TaskType.ConnectToTargetAzureSqlDBMISyncLRS, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of ConnectToTargetAzureDBForMySqlTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static ConnectToTargetAzureDBForMySqlTaskProperties ConnectToTargetAzureDBForMySqlTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, ConnectToTargetAzureDBForMySqlTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ConnectToTargetAzureDBForMySqlTaskProperties(TaskType.ConnectToTargetAzureDBForMySql, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of MigrateMongoDBTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Describes how a MongoDB data migration should be performed. + /// + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// A new instance for mocking. + public static MigrateMongoDBTaskProperties MigrateMongoDBTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, MongoDBMigrationSettings input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new MigrateMongoDBTaskProperties(TaskType.MigrateMongoDB, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of MigrateSqlServerSqlMITaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// + /// Task output. This is ignored if submitted. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// task id. + /// DateTime in UTC when the task was created. + /// parent task id. + /// whether the task can be cloned or not. + /// A new instance for mocking. + public static MigrateSqlServerSqlMITaskProperties MigrateSqlServerSqlMITaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, MigrateSqlServerSqlMITaskInput input = null, IEnumerable output = null, string taskId = null, string createdOn = null, string parentTaskId = null, bool? isCloneable = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new MigrateSqlServerSqlMITaskProperties(TaskType.MigrateSqlServerAzureSqlDBMI, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList(), taskId, createdOn, parentTaskId, isCloneable); + } + + /// Initializes a new instance of MigrateSqlServerSqlMISyncTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// + /// Task output. This is ignored if submitted. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// DateTime in UTC when the task was created. + /// A new instance for mocking. + public static MigrateSqlServerSqlMISyncTaskProperties MigrateSqlServerSqlMISyncTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, MigrateSqlServerSqlMISyncTaskInput input = null, IEnumerable output = null, string createdOn = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new MigrateSqlServerSqlMISyncTaskProperties(TaskType.MigrateSqlServerAzureSqlDBMISyncLRS, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList(), createdOn); + } + + /// Initializes a new instance of MigrateSqlServerSqlDBTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// + /// Task output. This is ignored if submitted. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . + /// + /// task id. + /// whether the task can be cloned or not. + /// DateTime in UTC when the task was created. + /// A new instance for mocking. + public static MigrateSqlServerSqlDBTaskProperties MigrateSqlServerSqlDBTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, MigrateSqlServerSqlDBTaskInput input = null, IEnumerable output = null, string taskId = null, bool? isCloneable = null, string createdOn = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new MigrateSqlServerSqlDBTaskProperties(TaskType.MigrateSqlServerSqlDB, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList(), taskId, isCloneable, createdOn); + } + + /// Initializes a new instance of MigrateSqlServerSqlDBSyncTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// + /// Task output. This is ignored if submitted. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// A new instance for mocking. + public static MigrateSqlServerSqlDBSyncTaskProperties MigrateSqlServerSqlDBSyncTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, MigrateSqlServerSqlDBSyncTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new MigrateSqlServerSqlDBSyncTaskProperties(TaskType.MigrateSqlServerAzureSqlDBSync, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of MigrateMySqlAzureDBForMySqlSyncTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// + /// Task output. This is ignored if submitted. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// A new instance for mocking. + public static MigrateMySqlAzureDBForMySqlSyncTaskProperties MigrateMySqlAzureDBForMySqlSyncTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, MigrateMySqlAzureDBForMySqlSyncTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new MigrateMySqlAzureDBForMySqlSyncTaskProperties(TaskType.MigrateMySqlAzureDBForMySqlSync, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of MigrateMySqlAzureDBForMySqlOfflineTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// + /// Task output. This is ignored if submitted. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// whether the task can be cloned or not. + /// Task id. + /// A new instance for mocking. + public static MigrateMySqlAzureDBForMySqlOfflineTaskProperties MigrateMySqlAzureDBForMySqlOfflineTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, MigrateMySqlAzureDBForMySqlOfflineTaskInput input = null, IEnumerable output = null, bool? isCloneable = null, string taskId = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new MigrateMySqlAzureDBForMySqlOfflineTaskProperties(TaskType.MigrateMySqlAzureDBForMySql, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList(), isCloneable, taskId); + } + + /// Initializes a new instance of MigrateMySqlAzureDBForMySqlOfflineTaskOutput. + /// Result identifier. + /// Result type. + /// A new instance for mocking. + public static MigrateMySqlAzureDBForMySqlOfflineTaskOutput MigrateMySqlAzureDBForMySqlOfflineTaskOutput(string id = null, string resultType = null) + { + return new UnknownMigrateMySqlAzureDBForMySqlOfflineTaskOutput(id, resultType); + } + + /// Initializes a new instance of MigratePostgreSqlAzureDBForPostgreSqlSyncTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// + /// Task output. This is ignored if submitted. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// task id. + /// DateTime in UTC when the task was created. + /// whether the task can be cloned or not. + /// A new instance for mocking. + public static MigratePostgreSqlAzureDBForPostgreSqlSyncTaskProperties MigratePostgreSqlAzureDBForPostgreSqlSyncTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, MigratePostgreSqlAzureDBForPostgreSqlSyncTaskInput input = null, IEnumerable output = null, string taskId = null, string createdOn = null, bool? isCloneable = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new MigratePostgreSqlAzureDBForPostgreSqlSyncTaskProperties(TaskType.MigratePostgreSqlAzureDBForPostgreSqlSyncV2, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList(), taskId, createdOn, isCloneable); + } + + /// Initializes a new instance of MigrateOracleAzureDBForPostgreSqlSyncTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// + /// Task output. This is ignored if submitted. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// A new instance for mocking. + public static MigrateOracleAzureDBForPostgreSqlSyncTaskProperties MigrateOracleAzureDBForPostgreSqlSyncTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, MigrateOracleAzureDBPostgreSqlSyncTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new MigrateOracleAzureDBForPostgreSqlSyncTaskProperties(TaskType.MigrateOracleAzureDBForPostgreSqlSync, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of ValidateMigrationInputSqlServerSqlDBSyncTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static ValidateMigrationInputSqlServerSqlDBSyncTaskProperties ValidateMigrationInputSqlServerSqlDBSyncTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, ValidateSyncMigrationInputSqlServerTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ValidateMigrationInputSqlServerSqlDBSyncTaskProperties(TaskType.ValidateMigrationInputSqlServerSqlDBSync, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of ValidateSyncMigrationInputSqlServerTaskOutput. + /// Database identifier. + /// Name of database. + /// Errors associated with a selected database object. + /// A new instance for mocking. + public static ValidateSyncMigrationInputSqlServerTaskOutput ValidateSyncMigrationInputSqlServerTaskOutput(string id = null, string name = null, IEnumerable validationErrors = null) + { + validationErrors ??= new List(); + + return new ValidateSyncMigrationInputSqlServerTaskOutput(id, name, validationErrors?.ToList()); + } + + /// Initializes a new instance of ValidateMigrationInputSqlServerSqlMITaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static ValidateMigrationInputSqlServerSqlMITaskProperties ValidateMigrationInputSqlServerSqlMITaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, ValidateMigrationInputSqlServerSqlMITaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ValidateMigrationInputSqlServerSqlMITaskProperties(TaskType.ValidateMigrationInputSqlServerAzureSqlDBMI, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of ValidateMigrationInputSqlServerSqlMITaskOutput. + /// Result identifier. + /// Name of database. + /// Errors associated with the RestoreDatabaseName. + /// Errors associated with the BackupFolder path. + /// Errors associated with backup share user name and password credentials. + /// Errors associated with the storage account provided. + /// Errors associated with existing backup files. + /// Information about backup files when existing backup mode is used. + /// A new instance for mocking. + public static ValidateMigrationInputSqlServerSqlMITaskOutput ValidateMigrationInputSqlServerSqlMITaskOutput(string id = null, string name = null, IEnumerable restoreDatabaseNameErrors = null, IEnumerable backupFolderErrors = null, IEnumerable backupShareCredentialsErrors = null, IEnumerable backupStorageAccountErrors = null, IEnumerable existingBackupErrors = null, DatabaseBackupInfo databaseBackupInfo = null) + { + restoreDatabaseNameErrors ??= new List(); + backupFolderErrors ??= new List(); + backupShareCredentialsErrors ??= new List(); + backupStorageAccountErrors ??= new List(); + existingBackupErrors ??= new List(); + + return new ValidateMigrationInputSqlServerSqlMITaskOutput(id, name, restoreDatabaseNameErrors?.ToList(), backupFolderErrors?.ToList(), backupShareCredentialsErrors?.ToList(), backupStorageAccountErrors?.ToList(), existingBackupErrors?.ToList(), databaseBackupInfo); + } + + /// Initializes a new instance of DatabaseBackupInfo. + /// Database name. + /// Backup Type. + /// The list of backup files for the current database. + /// Position of current database backup in the file. + /// Database was damaged when backed up, but the backup operation was requested to continue despite errors. + /// Whether the backup set is compressed. + /// Number of files in the backup set. + /// Date and time when the backup operation finished. + /// A new instance for mocking. + public static DatabaseBackupInfo DatabaseBackupInfo(string databaseName = null, BackupType? backupType = null, IEnumerable backupFiles = null, int? position = null, bool? isDamaged = null, bool? isCompressed = null, int? familyCount = null, DateTimeOffset? backupFinishOn = null) + { + backupFiles ??= new List(); + + return new DatabaseBackupInfo(databaseName, backupType, backupFiles?.ToList(), position, isDamaged, isCompressed, familyCount, backupFinishOn); + } + + /// Initializes a new instance of ValidateMigrationInputSqlServerSqlMISyncTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static ValidateMigrationInputSqlServerSqlMISyncTaskProperties ValidateMigrationInputSqlServerSqlMISyncTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, ValidateMigrationInputSqlServerSqlMISyncTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ValidateMigrationInputSqlServerSqlMISyncTaskProperties(TaskType.ValidateMigrationInputSqlServerAzureSqlDBMISyncLRS, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of ValidateMigrationInputSqlServerSqlMISyncTaskOutput. + /// Database identifier. + /// Name of database. + /// Errors associated with a selected database object. + /// A new instance for mocking. + public static ValidateMigrationInputSqlServerSqlMISyncTaskOutput ValidateMigrationInputSqlServerSqlMISyncTaskOutput(string id = null, string name = null, IEnumerable validationErrors = null) + { + validationErrors ??= new List(); + + return new ValidateMigrationInputSqlServerSqlMISyncTaskOutput(id, name, validationErrors?.ToList()); + } + + /// Initializes a new instance of ValidateMongoDBTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Describes how a MongoDB data migration should be performed. + /// An array containing a single MongoDbMigrationProgress object. + /// A new instance for mocking. + public static ValidateMongoDBTaskProperties ValidateMongoDBTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, MongoDBMigrationSettings input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ValidateMongoDBTaskProperties(TaskType.ValidateMongoDB, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of ValidateOracleAzureDBForPostgreSqlSyncTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Input for the task that migrates Oracle databases to Azure Database for PostgreSQL for online migrations. + /// An array containing a single validation error response object. + /// A new instance for mocking. + public static ValidateOracleAzureDBForPostgreSqlSyncTaskProperties ValidateOracleAzureDBForPostgreSqlSyncTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, MigrateOracleAzureDBPostgreSqlSyncTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new ValidateOracleAzureDBForPostgreSqlSyncTaskProperties(TaskType.ValidateOracleAzureDBPostgreSqlSync, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of GetTdeCertificatesSqlTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// Task output. This is ignored if submitted. + /// A new instance for mocking. + public static GetTdeCertificatesSqlTaskProperties GetTdeCertificatesSqlTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, GetTdeCertificatesSqlTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new GetTdeCertificatesSqlTaskProperties(TaskType.GetTDECertificatesSql, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of MigrateSsisTaskProperties. + /// Array of errors. This is ignored if submitted. + /// The state of the task. This is ignored if submitted. + /// + /// Array of command properties. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// Key value pairs of client data to attach meta data information to task. + /// Task input. + /// + /// Task output. This is ignored if submitted. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// A new instance for mocking. + public static MigrateSsisTaskProperties MigrateSsisTaskProperties(IEnumerable errors = null, TaskState? state = null, IEnumerable commands = null, IDictionary clientData = null, MigrateSsisTaskInput input = null, IEnumerable output = null) + { + errors ??= new List(); + commands ??= new List(); + clientData ??= new Dictionary(); + output ??= new List(); + + return new MigrateSsisTaskProperties(TaskType.MigrateSsis, errors?.ToList(), state, commands?.ToList(), clientData, input, output?.ToList()); + } + + /// Initializes a new instance of MigrateMySqlAzureDBForMySqlOfflineTaskOutputMigrationLevel. + /// Result identifier. + /// Migration start time. + /// Migration end time. + /// Duration of task execution in seconds. + /// Current status of migration. + /// Migration status message. + /// Migration progress message. + /// Selected databases as a map from database name to database id. + /// Summary of database results in the migration. + /// Migration Report Result, provides unique url for downloading your migration report. + /// Source server version. + /// Source server brand version. + /// Target server version. + /// Target server brand version. + /// Migration exceptions and warnings. + /// Last time the storage was updated. + /// A new instance for mocking. + public static MigrateMySqlAzureDBForMySqlOfflineTaskOutputMigrationLevel MigrateMySqlAzureDBForMySqlOfflineTaskOutputMigrationLevel(string id = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, long? durationInSeconds = null, MigrationStatus? status = null, string statusMessage = null, string message = null, string databases = null, string databaseSummary = null, MigrationReportResult migrationReportResult = null, string sourceServerVersion = null, string sourceServerBrandVersion = null, string targetServerVersion = null, string targetServerBrandVersion = null, IEnumerable exceptionsAndWarnings = null, DateTimeOffset? lastStorageUpdate = null) + { + exceptionsAndWarnings ??= new List(); + + return new MigrateMySqlAzureDBForMySqlOfflineTaskOutputMigrationLevel(id, "MigrationLevelOutput", startedOn, endedOn, durationInSeconds, status, statusMessage, message, databases, databaseSummary, migrationReportResult, sourceServerVersion, sourceServerBrandVersion, targetServerVersion, targetServerBrandVersion, exceptionsAndWarnings?.ToList(), lastStorageUpdate); + } + + /// Initializes a new instance of MigrateMySqlAzureDBForMySqlOfflineTaskOutputDatabaseLevel. + /// Result identifier. + /// Name of the database. + /// Migration start time. + /// Migration end time. + /// Current state of migration. + /// Migration stage that this database is in. + /// Status message. + /// Migration progress message. + /// Number of objects. + /// Number of successfully completed objects. + /// Number of database/object errors. + /// Wildcard string prefix to use for querying all errors of the item. + /// Wildcard string prefix to use for querying all sub-tem results of the item. + /// Migration exceptions and warnings. + /// Last time the storage was updated. + /// Summary of object results in the migration. + /// A new instance for mocking. + public static MigrateMySqlAzureDBForMySqlOfflineTaskOutputDatabaseLevel MigrateMySqlAzureDBForMySqlOfflineTaskOutputDatabaseLevel(string id = null, string databaseName = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, MigrationState? state = null, DatabaseMigrationStage? stage = null, string statusMessage = null, string message = null, long? numberOfObjects = null, long? numberOfObjectsCompleted = null, long? errorCount = null, string errorPrefix = null, string resultPrefix = null, IEnumerable exceptionsAndWarnings = null, DateTimeOffset? lastStorageUpdate = null, string objectSummary = null) + { + exceptionsAndWarnings ??= new List(); + + return new MigrateMySqlAzureDBForMySqlOfflineTaskOutputDatabaseLevel(id, "DatabaseLevelOutput", databaseName, startedOn, endedOn, state, stage, statusMessage, message, numberOfObjects, numberOfObjectsCompleted, errorCount, errorPrefix, resultPrefix, exceptionsAndWarnings?.ToList(), lastStorageUpdate, objectSummary); + } + + /// Initializes a new instance of MigrateMySqlAzureDBForMySqlOfflineTaskOutputTableLevel. + /// Result identifier. + /// Name of the item. + /// Migration start time. + /// Migration end time. + /// Current state of migration. + /// Status message. + /// Number of items. + /// Number of successfully completed items. + /// Wildcard string prefix to use for querying all errors of the item. + /// Wildcard string prefix to use for querying all sub-tem results of the item. + /// Last time the storage was updated. + /// A new instance for mocking. + public static MigrateMySqlAzureDBForMySqlOfflineTaskOutputTableLevel MigrateMySqlAzureDBForMySqlOfflineTaskOutputTableLevel(string id = null, string objectName = null, DateTimeOffset? startedOn = null, DateTimeOffset? endedOn = null, MigrationState? state = null, string statusMessage = null, long? itemsCount = null, long? itemsCompletedCount = null, string errorPrefix = null, string resultPrefix = null, DateTimeOffset? lastStorageUpdate = null) + { + return new MigrateMySqlAzureDBForMySqlOfflineTaskOutputTableLevel(id, "TableLevelOutput", objectName, startedOn, endedOn, state, statusMessage, itemsCount, itemsCompletedCount, errorPrefix, resultPrefix, lastStorageUpdate); + } + + /// Initializes a new instance of MigrateMySqlAzureDBForMySqlOfflineTaskOutputError. + /// Result identifier. + /// Migration error. + /// A new instance for mocking. + public static MigrateMySqlAzureDBForMySqlOfflineTaskOutputError MigrateMySqlAzureDBForMySqlOfflineTaskOutputError(string id = null, ReportableException error = null) + { + return new MigrateMySqlAzureDBForMySqlOfflineTaskOutputError(id, "ErrorOutput", error); + } + } +} diff --git a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/autorest.md b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/autorest.md index 2ec5673cc32e..2115ffc87f08 100644 --- a/sdk/datamigration/Azure.ResourceManager.DataMigration/src/autorest.md +++ b/sdk/datamigration/Azure.ResourceManager.DataMigration/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false csharp: true library-name: DataMigration namespace: Azure.ResourceManager.DataMigration