From 5f12c5da4f0f2b805ad3bb4c241662531d9f38c2 Mon Sep 17 00:00:00 2001 From: Chengming <61542202+dvbb@users.noreply.github.com> Date: Mon, 29 May 2023 18:09:28 +0800 Subject: [PATCH] enable model factory (#36591) --- .../CHANGELOG.md | 9 +- ...urceManager.StorageMover.netstandard2.0.cs | 15 + .../Generated/ArmStorageMoverModelFactory.cs | 212 +++++++ .../src/autorest.md | 3 +- .../CHANGELOG.md | 9 +- ...ourceManager.StoragePool.netstandard2.0.cs | 18 + .../Generated/ArmStoragePoolModelFactory.cs | 250 +++++++++ .../src/autorest.md | 1 - .../CHANGELOG.md | 9 +- ...ourceManager.StorageSync.netstandard2.0.cs | 36 ++ .../Generated/ArmStorageSyncModelFactory.cs | 515 ++++++++++++++++++ .../src/autorest.md | 1 - .../CHANGELOG.md | 9 +- ...eManager.StreamAnalytics.netstandard2.0.cs | 33 ++ .../ArmStreamAnalyticsModelFactory.cs | 498 +++++++++++++++++ .../src/autorest.md | 1 - .../CHANGELOG.md | 9 +- ...urceManager.Subscription.netstandard2.0.cs | 14 + .../Generated/ArmSubscriptionModelFactory.cs | 155 ++++++ .../src/autorest.md | 1 - .../CHANGELOG.md | 9 +- ....ResourceManager.Support.netstandard2.0.cs | 9 + .../src/Generated/ArmSupportModelFactory.cs | 115 ++++ .../src/autorest.md | 1 - 24 files changed, 1901 insertions(+), 31 deletions(-) create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/ArmStorageMoverModelFactory.cs create mode 100644 sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/ArmStoragePoolModelFactory.cs create mode 100644 sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/ArmStorageSyncModelFactory.cs create mode 100644 sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/ArmStreamAnalyticsModelFactory.cs create mode 100644 sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/ArmSubscriptionModelFactory.cs create mode 100644 sdk/support/Azure.ResourceManager.Support/src/Generated/ArmSupportModelFactory.cs diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/CHANGELOG.md b/sdk/storagemover/Azure.ResourceManager.StorageMover/CHANGELOG.md index d60bff346a62..cc32b83eec46 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/CHANGELOG.md +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0-beta.1 (2023-05-31) ### 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-03-11) ### Other Changes diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.netstandard2.0.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.netstandard2.0.cs index 5b9de7123acf..87a0358df4f8 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.netstandard2.0.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.netstandard2.0.cs @@ -293,6 +293,21 @@ protected StorageMoverResource() { } } namespace Azure.ResourceManager.StorageMover.Models { + public static partial class ArmStorageMoverModelFactory + { + public static Azure.ResourceManager.StorageMover.Models.AzureStorageBlobContainerEndpointProperties AzureStorageBlobContainerEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), string storageAccountResourceId = null, string blobContainerName = null) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties EndpointBaseProperties(string endpointType = "Unknown", string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } + public static Azure.ResourceManager.StorageMover.JobDefinitionData JobDefinitionData(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.StorageMover.Models.StorageMoverCopyMode copyMode = default(Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode), string sourceName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string sourceSubpath = null, string targetName = null, Azure.Core.ResourceIdentifier targetResourceId = null, string targetSubpath = null, string latestJobRunName = null, Azure.Core.ResourceIdentifier latestJobRunResourceId = null, Azure.ResourceManager.StorageMover.Models.JobRunStatus? latestJobRunStatus = default(Azure.ResourceManager.StorageMover.Models.JobRunStatus?), string agentName = null, Azure.Core.ResourceIdentifier agentResourceId = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } + public static Azure.ResourceManager.StorageMover.JobRunData JobRunData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.StorageMover.Models.JobRunStatus? status = default(Azure.ResourceManager.StorageMover.Models.JobRunStatus?), Azure.ResourceManager.StorageMover.Models.JobRunScanStatus? scanStatus = default(Azure.ResourceManager.StorageMover.Models.JobRunScanStatus?), string agentName = null, Azure.Core.ResourceIdentifier agentResourceId = null, System.DateTimeOffset? executionStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? executionEndOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStatusUpdate = default(System.DateTimeOffset?), long? itemsScanned = default(long?), long? itemsExcluded = default(long?), long? itemsUnsupported = default(long?), long? itemsNoTransferNeeded = default(long?), long? itemsFailed = default(long?), long? itemsTransferred = default(long?), long? bytesScanned = default(long?), long? bytesExcluded = default(long?), long? bytesUnsupported = default(long?), long? bytesNoTransferNeeded = default(long?), long? bytesFailed = default(long?), long? bytesTransferred = default(long?), string sourceName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, System.BinaryData sourceProperties = null, string targetName = null, Azure.Core.ResourceIdentifier targetResourceId = null, System.BinaryData targetProperties = null, System.BinaryData jobDefinitionProperties = null, Azure.ResourceManager.StorageMover.Models.JobRunError error = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.JobRunError JobRunError(string code = null, string message = null, string target = null) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.JobRunResourceId JobRunResourceId(Azure.Core.ResourceIdentifier jobRunResourceIdValue = null) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.NfsMountEndpointProperties NfsMountEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), string host = null, Azure.ResourceManager.StorageMover.Models.NfsVersion? nfsVersion = default(Azure.ResourceManager.StorageMover.Models.NfsVersion?), string export = null) { throw null; } + public static Azure.ResourceManager.StorageMover.StorageMoverAgentData StorageMoverAgentData(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, string agentVersion = null, string arcResourceId = null, string arcVmUuid = null, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus? agentStatus = default(Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus?), System.DateTimeOffset? lastStatusUpdate = default(System.DateTimeOffset?), string localIPAddress = null, long? memoryInMB = default(long?), long? numberOfCores = default(long?), long? uptimeInSeconds = default(long?), Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails errorDetails = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails StorageMoverAgentPropertiesErrorDetails(string code = null, string message = null) { throw null; } + public static Azure.ResourceManager.StorageMover.StorageMoverData StorageMoverData(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 description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } + public static Azure.ResourceManager.StorageMover.StorageMoverEndpointData StorageMoverEndpointData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties properties = null) { throw null; } + public static Azure.ResourceManager.StorageMover.StorageMoverProjectData StorageMoverProjectData(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.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } + } public partial class AzureStorageBlobContainerEndpointProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties { public AzureStorageBlobContainerEndpointProperties(string storageAccountResourceId, string blobContainerName) { } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/ArmStorageMoverModelFactory.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/ArmStorageMoverModelFactory.cs new file mode 100644 index 000000000000..483e27e8e419 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/ArmStorageMoverModelFactory.cs @@ -0,0 +1,212 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.StorageMover; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// Model factory for models. + public static partial class ArmStorageMoverModelFactory + { + /// Initializes a new instance of StorageMoverData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// A description for the Storage Mover. + /// The provisioning state of this resource. + /// A new instance for mocking. + public static StorageMoverData StorageMoverData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string description = null, StorageMoverProvisioningState? provisioningState = null) + { + tags ??= new Dictionary(); + + return new StorageMoverData(id, name, resourceType, systemData, tags, location, description, provisioningState); + } + + /// Initializes a new instance of StorageMoverAgentData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description for the Agent. + /// The Agent version. + /// The fully qualified resource ID of the Hybrid Compute resource for the Agent. + /// The VM UUID of the Hybrid Compute resource for the Agent. + /// The Agent status. + /// The last updated time of the Agent status. + /// Local IP address reported by the Agent. + /// Available memory reported by the Agent, in MB. + /// Available compute cores reported by the Agent. + /// Uptime of the Agent in seconds. + /// + /// The provisioning state of this resource. + /// A new instance for mocking. + public static StorageMoverAgentData StorageMoverAgentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, string agentVersion = null, string arcResourceId = null, string arcVmUuid = null, StorageMoverAgentStatus? agentStatus = null, DateTimeOffset? lastStatusUpdate = null, string localIPAddress = null, long? memoryInMB = null, long? numberOfCores = null, long? uptimeInSeconds = null, StorageMoverAgentPropertiesErrorDetails errorDetails = null, StorageMoverProvisioningState? provisioningState = null) + { + return new StorageMoverAgentData(id, name, resourceType, systemData, description, agentVersion, arcResourceId, arcVmUuid, agentStatus, lastStatusUpdate, localIPAddress, memoryInMB, numberOfCores, uptimeInSeconds, errorDetails, provisioningState); + } + + /// Initializes a new instance of StorageMoverAgentPropertiesErrorDetails. + /// Error code reported by Agent. + /// Expanded description of reported error code. + /// A new instance for mocking. + public static StorageMoverAgentPropertiesErrorDetails StorageMoverAgentPropertiesErrorDetails(string code = null, string message = null) + { + return new StorageMoverAgentPropertiesErrorDetails(code, message); + } + + /// Initializes a new instance of StorageMoverEndpointData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The resource specific properties for the Storage Mover resource. + /// 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 StorageMoverEndpointData StorageMoverEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, EndpointBaseProperties properties = null) + { + return new StorageMoverEndpointData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of EndpointBaseProperties. + /// The Endpoint resource type. + /// A description for the Endpoint. + /// The provisioning state of this resource. + /// A new instance for mocking. + public static EndpointBaseProperties EndpointBaseProperties(string endpointType = "Unknown", string description = null, StorageMoverProvisioningState? provisioningState = null) + { + return new UnknownEndpointBaseProperties(endpointType, description, provisioningState); + } + + /// Initializes a new instance of StorageMoverProjectData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description for the Project. + /// The provisioning state of this resource. + /// A new instance for mocking. + public static StorageMoverProjectData StorageMoverProjectData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, StorageMoverProvisioningState? provisioningState = null) + { + return new StorageMoverProjectData(id, name, resourceType, systemData, description, provisioningState); + } + + /// Initializes a new instance of JobDefinitionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description for the Job Definition. + /// Strategy to use for copy. + /// The name of the source Endpoint. + /// Fully qualified resource ID of the source Endpoint. + /// The subpath to use when reading from the source Endpoint. + /// The name of the target Endpoint. + /// Fully qualified resource ID of the target Endpoint. + /// The subpath to use when writing to the target Endpoint. + /// The name of the Job Run in a non-terminal state, if exists. + /// The fully qualified resource ID of the Job Run in a non-terminal state, if exists. + /// The current status of the Job Run in a non-terminal state, if exists. + /// Name of the Agent to assign for new Job Runs of this Job Definition. + /// Fully qualified resource id of the Agent to assign for new Job Runs of this Job Definition. + /// The provisioning state of this resource. + /// A new instance for mocking. + public static JobDefinitionData JobDefinitionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, StorageMoverCopyMode copyMode = default, string sourceName = null, ResourceIdentifier sourceResourceId = null, string sourceSubpath = null, string targetName = null, ResourceIdentifier targetResourceId = null, string targetSubpath = null, string latestJobRunName = null, ResourceIdentifier latestJobRunResourceId = null, JobRunStatus? latestJobRunStatus = null, string agentName = null, ResourceIdentifier agentResourceId = null, StorageMoverProvisioningState? provisioningState = null) + { + return new JobDefinitionData(id, name, resourceType, systemData, description, copyMode, sourceName, sourceResourceId, sourceSubpath, targetName, targetResourceId, targetSubpath, latestJobRunName, latestJobRunResourceId, latestJobRunStatus, agentName, agentResourceId, provisioningState); + } + + /// Initializes a new instance of JobRunResourceId. + /// Fully qualified resource id of the Job Run. + /// A new instance for mocking. + public static JobRunResourceId JobRunResourceId(ResourceIdentifier jobRunResourceIdValue = null) + { + return new JobRunResourceId(jobRunResourceIdValue); + } + + /// Initializes a new instance of JobRunData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The state of the job execution. + /// The status of Agent's scanning of source. + /// Name of the Agent assigned to this run. + /// Fully qualified resource id of the Agent assigned to this run. + /// Start time of the run. Null if no Agent reported that the job has started. + /// End time of the run. Null if Agent has not reported that the job has ended. + /// The last updated time of the Job Run. + /// Number of items scanned so far in source. + /// Number of items that will not be transferred, as they are excluded by user configuration. + /// Number of items that will not be transferred, as they are unsupported on target. + /// Number of items that will not be transferred, as they are already found on target (e.g. mirror mode). + /// Number of items that were attempted to transfer and failed. + /// Number of items successfully transferred to target. + /// Bytes of data scanned so far in source. + /// Bytes of data that will not be transferred, as they are excluded by user configuration. + /// Bytes of data that will not be transferred, as they are unsupported on target. + /// Bytes of data that will not be transferred, as they are already found on target (e.g. mirror mode). + /// Bytes of data that were attempted to transfer and failed. + /// Bytes of data successfully transferred to target. + /// Name of source Endpoint resource. This resource may no longer exist. + /// Fully qualified resource id of source Endpoint. This id may no longer exist. + /// Copy of source Endpoint resource's properties at time of Job Run creation. + /// Name of target Endpoint resource. This resource may no longer exist. + /// Fully qualified resource id of of Endpoint. This id may no longer exist. + /// Copy of Endpoint resource's properties at time of Job Run creation. + /// Copy of parent Job Definition's properties at time of Job Run creation. + /// Error details. + /// The provisioning state of this resource. + /// A new instance for mocking. + public static JobRunData JobRunData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, JobRunStatus? status = null, JobRunScanStatus? scanStatus = null, string agentName = null, ResourceIdentifier agentResourceId = null, DateTimeOffset? executionStartOn = null, DateTimeOffset? executionEndOn = null, DateTimeOffset? lastStatusUpdate = null, long? itemsScanned = null, long? itemsExcluded = null, long? itemsUnsupported = null, long? itemsNoTransferNeeded = null, long? itemsFailed = null, long? itemsTransferred = null, long? bytesScanned = null, long? bytesExcluded = null, long? bytesUnsupported = null, long? bytesNoTransferNeeded = null, long? bytesFailed = null, long? bytesTransferred = null, string sourceName = null, ResourceIdentifier sourceResourceId = null, BinaryData sourceProperties = null, string targetName = null, ResourceIdentifier targetResourceId = null, BinaryData targetProperties = null, BinaryData jobDefinitionProperties = null, JobRunError error = null, StorageMoverProvisioningState? provisioningState = null) + { + return new JobRunData(id, name, resourceType, systemData, status, scanStatus, agentName, agentResourceId, executionStartOn, executionEndOn, lastStatusUpdate, itemsScanned, itemsExcluded, itemsUnsupported, itemsNoTransferNeeded, itemsFailed, itemsTransferred, bytesScanned, bytesExcluded, bytesUnsupported, bytesNoTransferNeeded, bytesFailed, bytesTransferred, sourceName, sourceResourceId, sourceProperties, targetName, targetResourceId, targetProperties, jobDefinitionProperties, error, provisioningState); + } + + /// Initializes a new instance of JobRunError. + /// Error code of the given entry. + /// Error message of the given entry. + /// Target of the given error entry. + /// A new instance for mocking. + public static JobRunError JobRunError(string code = null, string message = null, string target = null) + { + return new JobRunError(code, message, target); + } + + /// Initializes a new instance of AzureStorageBlobContainerEndpointProperties. + /// A description for the Endpoint. + /// The provisioning state of this resource. + /// The Azure Resource ID of the storage account that is the target destination. + /// The name of the Storage blob container that is the target destination. + /// A new instance for mocking. + public static AzureStorageBlobContainerEndpointProperties AzureStorageBlobContainerEndpointProperties(string description = null, StorageMoverProvisioningState? provisioningState = null, string storageAccountResourceId = null, string blobContainerName = null) + { + return new AzureStorageBlobContainerEndpointProperties(EndpointType.AzureStorageBlobContainer, description, provisioningState, storageAccountResourceId, blobContainerName); + } + + /// Initializes a new instance of NfsMountEndpointProperties. + /// A description for the Endpoint. + /// The provisioning state of this resource. + /// The host name or IP address of the server exporting the file system. + /// The NFS protocol version. + /// The directory being exported from the server. + /// A new instance for mocking. + public static NfsMountEndpointProperties NfsMountEndpointProperties(string description = null, StorageMoverProvisioningState? provisioningState = null, string host = null, NfsVersion? nfsVersion = null, string export = null) + { + return new NfsMountEndpointProperties(EndpointType.NfsMount, description, provisioningState, host, nfsVersion, export); + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/autorest.md b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/autorest.md index 7ea3ee5082f7..6c628e493225 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/autorest.md +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/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: StorageMover namespace: Azure.ResourceManager.StorageMover @@ -62,4 +61,4 @@ rename-rules: URI: Uri Etag: ETag|etag -``` \ No newline at end of file +``` diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/CHANGELOG.md b/sdk/storagepool/Azure.ResourceManager.StoragePool/CHANGELOG.md index 737ec1d20845..8179e5adf809 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/CHANGELOG.md +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0-beta.1 (2023-05-31) ### 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-20) ### Other Changes diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/api/Azure.ResourceManager.StoragePool.netstandard2.0.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/api/Azure.ResourceManager.StoragePool.netstandard2.0.cs index 64b183b21ef0..fc00359a6f3e 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/api/Azure.ResourceManager.StoragePool.netstandard2.0.cs +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/api/Azure.ResourceManager.StoragePool.netstandard2.0.cs @@ -120,6 +120,24 @@ public static partial class StoragePoolExtensions } namespace Azure.ResourceManager.StoragePool.Models { + public static partial class ArmStoragePoolModelFactory + { + public static Azure.ResourceManager.StoragePool.DiskPoolData DiskPoolData(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.StoragePool.Models.StoragePoolSku sku = null, string managedBy = null, System.Collections.Generic.IEnumerable managedByExtended = null, Azure.ResourceManager.StoragePool.Models.DiskPoolIscsiTargetProvisioningState provisioningState = default(Azure.ResourceManager.StoragePool.Models.DiskPoolIscsiTargetProvisioningState), System.Collections.Generic.IEnumerable availabilityZones = null, Azure.ResourceManager.StoragePool.Models.StoragePoolOperationalStatus status = default(Azure.ResourceManager.StoragePool.Models.StoragePoolOperationalStatus), System.Collections.Generic.IEnumerable disks = null, Azure.Core.ResourceIdentifier subnetId = null, System.Collections.Generic.IEnumerable additionalCapabilities = null) { throw null; } + public static Azure.ResourceManager.StoragePool.Models.DiskPoolIscsiTargetCreateOrUpdateContent DiskPoolIscsiTargetCreateOrUpdateContent(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string managedBy = null, System.Collections.Generic.IEnumerable managedByExtended = null, Azure.ResourceManager.StoragePool.Models.DiskPoolIscsiTargetAclMode aclMode = default(Azure.ResourceManager.StoragePool.Models.DiskPoolIscsiTargetAclMode), string targetIqn = null, System.Collections.Generic.IEnumerable staticAcls = null, System.Collections.Generic.IEnumerable luns = null) { throw null; } + public static Azure.ResourceManager.StoragePool.DiskPoolIscsiTargetData DiskPoolIscsiTargetData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string managedBy = null, System.Collections.Generic.IEnumerable managedByExtended = null, Azure.ResourceManager.StoragePool.Models.DiskPoolIscsiTargetAclMode aclMode = default(Azure.ResourceManager.StoragePool.Models.DiskPoolIscsiTargetAclMode), System.Collections.Generic.IEnumerable staticAcls = null, System.Collections.Generic.IEnumerable luns = null, string targetIqn = null, Azure.ResourceManager.StoragePool.Models.DiskPoolIscsiTargetProvisioningState provisioningState = default(Azure.ResourceManager.StoragePool.Models.DiskPoolIscsiTargetProvisioningState), Azure.ResourceManager.StoragePool.Models.StoragePoolOperationalStatus status = default(Azure.ResourceManager.StoragePool.Models.StoragePoolOperationalStatus), System.Collections.Generic.IEnumerable endpoints = null, int? port = default(int?), System.Collections.Generic.IEnumerable sessions = null) { throw null; } + public static Azure.ResourceManager.StoragePool.Models.DiskPoolIscsiTargetPatch DiskPoolIscsiTargetPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string managedBy = null, System.Collections.Generic.IEnumerable managedByExtended = null, System.Collections.Generic.IEnumerable staticAcls = null, System.Collections.Generic.IEnumerable luns = null) { throw null; } + public static Azure.ResourceManager.StoragePool.Models.DiskPoolZoneInfo DiskPoolZoneInfo(System.Collections.Generic.IEnumerable availabilityZones = null, System.Collections.Generic.IEnumerable additionalCapabilities = null, Azure.ResourceManager.StoragePool.Models.StoragePoolSku sku = null) { throw null; } + public static Azure.ResourceManager.StoragePool.Models.ManagedDiskIscsiLun ManagedDiskIscsiLun(string name = null, Azure.Core.ResourceIdentifier managedDiskAzureResourceId = null, int? lun = default(int?)) { throw null; } + public static Azure.ResourceManager.StoragePool.Models.OutboundEndpointDependency OutboundEndpointDependency(string domainName = null, System.Collections.Generic.IEnumerable endpointDetails = null) { throw null; } + public static Azure.ResourceManager.StoragePool.Models.OutboundEndpointDetail OutboundEndpointDetail(System.Net.IPAddress ipAddress = null, int? port = default(int?), double? latencyInMs = default(double?), bool? isAccessible = default(bool?)) { throw null; } + public static Azure.ResourceManager.StoragePool.Models.StoragePoolOutboundEnvironment StoragePoolOutboundEnvironment(string category = null, System.Collections.Generic.IEnumerable endpoints = null) { throw null; } + public static Azure.ResourceManager.StoragePool.Models.StoragePoolSkuCapability StoragePoolSkuCapability(string name = null, string value = null) { throw null; } + public static Azure.ResourceManager.StoragePool.Models.StoragePoolSkuInfo StoragePoolSkuInfo(string apiVersion = null, string resourceType = null, System.Collections.Generic.IEnumerable capabilities = null, Azure.ResourceManager.StoragePool.Models.StoragePoolSkuLocationInfo locationInfo = null, string name = null, string tier = null, System.Collections.Generic.IEnumerable restrictions = null) { throw null; } + public static Azure.ResourceManager.StoragePool.Models.StoragePoolSkuLocationInfo StoragePoolSkuLocationInfo(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IEnumerable zones = null, System.Collections.Generic.IEnumerable zoneDetails = null) { throw null; } + public static Azure.ResourceManager.StoragePool.Models.StoragePoolSkuRestrictionInfo StoragePoolSkuRestrictionInfo(System.Collections.Generic.IEnumerable locations = null, System.Collections.Generic.IEnumerable zones = null) { throw null; } + public static Azure.ResourceManager.StoragePool.Models.StoragePoolSkuRestrictions StoragePoolSkuRestrictions(Azure.ResourceManager.StoragePool.Models.StoragePoolSkuRestrictionsType? restrictionsType = default(Azure.ResourceManager.StoragePool.Models.StoragePoolSkuRestrictionsType?), System.Collections.Generic.IEnumerable values = null, Azure.ResourceManager.StoragePool.Models.StoragePoolSkuRestrictionInfo restrictionInfo = null, Azure.ResourceManager.StoragePool.Models.StoragePoolSkuRestrictionsReasonCode? reasonCode = default(Azure.ResourceManager.StoragePool.Models.StoragePoolSkuRestrictionsReasonCode?)) { throw null; } + public static Azure.ResourceManager.StoragePool.Models.StoragePoolSkuZoneDetails StoragePoolSkuZoneDetails(System.Collections.Generic.IEnumerable name = null, System.Collections.Generic.IEnumerable capabilities = null) { throw null; } + } public partial class DiskPoolCreateOrUpdateContent : Azure.ResourceManager.Models.ResourceData { public DiskPoolCreateOrUpdateContent(Azure.ResourceManager.StoragePool.Models.StoragePoolSku sku, Azure.Core.AzureLocation location, Azure.Core.ResourceIdentifier subnetId) { } diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/ArmStoragePoolModelFactory.cs b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/ArmStoragePoolModelFactory.cs new file mode 100644 index 000000000000..067020d34d40 --- /dev/null +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/Generated/ArmStoragePoolModelFactory.cs @@ -0,0 +1,250 @@ +// 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.Models; +using Azure.ResourceManager.Resources.Models; +using Azure.ResourceManager.StoragePool; + +namespace Azure.ResourceManager.StoragePool.Models +{ + /// Model factory for models. + public static partial class ArmStoragePoolModelFactory + { + /// Initializes a new instance of DiskPoolData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Determines the SKU of the Disk pool. + /// Azure resource id. Indicates if this resource is managed by another Azure resource. + /// List of Azure resource ids that manage this resource. + /// State of the operation on the resource. + /// Logical zone for Disk Pool resource; example: ["1"]. + /// Operational status of the Disk Pool. + /// List of Azure Managed Disks to attach to a Disk Pool. + /// Azure Resource ID of a Subnet for the Disk Pool. + /// List of additional capabilities for Disk Pool. + /// A new instance for mocking. + public static DiskPoolData DiskPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, StoragePoolSku sku = null, string managedBy = null, IEnumerable managedByExtended = null, DiskPoolIscsiTargetProvisioningState provisioningState = default, IEnumerable availabilityZones = null, StoragePoolOperationalStatus status = default, IEnumerable disks = null, ResourceIdentifier subnetId = null, IEnumerable additionalCapabilities = null) + { + tags ??= new Dictionary(); + managedByExtended ??= new List(); + availabilityZones ??= new List(); + disks ??= new List(); + additionalCapabilities ??= new List(); + + return new DiskPoolData(id, name, resourceType, systemData, tags, location, sku, managedBy, managedByExtended?.ToList(), provisioningState, availabilityZones?.ToList(), status, disks?.ToList(), subnetId, additionalCapabilities?.ToList()); + } + + /// Initializes a new instance of DiskPoolZoneInfo. + /// Logical zone for Disk Pool resource; example: ["1"]. + /// List of additional capabilities for Disk Pool. + /// Determines the SKU of VM deployed for Disk Pool. + /// A new instance for mocking. + public static DiskPoolZoneInfo DiskPoolZoneInfo(IEnumerable availabilityZones = null, IEnumerable additionalCapabilities = null, StoragePoolSku sku = null) + { + availabilityZones ??= new List(); + additionalCapabilities ??= new List(); + + return new DiskPoolZoneInfo(availabilityZones?.ToList(), additionalCapabilities?.ToList(), sku); + } + + /// Initializes a new instance of StoragePoolSkuInfo. + /// StoragePool RP API version. + /// StoragePool resource type. + /// List of additional capabilities for StoragePool resource. + /// Zones and zone capabilities in those locations where the SKU is available. + /// Sku name. + /// Sku tier. + /// The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. + /// A new instance for mocking. + public static StoragePoolSkuInfo StoragePoolSkuInfo(string apiVersion = null, string resourceType = null, IEnumerable capabilities = null, StoragePoolSkuLocationInfo locationInfo = null, string name = null, string tier = null, IEnumerable restrictions = null) + { + capabilities ??= new List(); + restrictions ??= new List(); + + return new StoragePoolSkuInfo(apiVersion, resourceType, capabilities?.ToList(), locationInfo, name, tier, restrictions?.ToList()); + } + + /// Initializes a new instance of StoragePoolSkuCapability. + /// Capability name. + /// Capability value. + /// A new instance for mocking. + public static StoragePoolSkuCapability StoragePoolSkuCapability(string name = null, string value = null) + { + return new StoragePoolSkuCapability(name, value); + } + + /// Initializes a new instance of StoragePoolSkuLocationInfo. + /// Location of the SKU. + /// List of availability zones where the SKU is supported. + /// Details of capabilities available to a SKU in specific zones. + /// A new instance for mocking. + public static StoragePoolSkuLocationInfo StoragePoolSkuLocationInfo(AzureLocation? location = null, IEnumerable zones = null, IEnumerable zoneDetails = null) + { + zones ??= new List(); + zoneDetails ??= new List(); + + return new StoragePoolSkuLocationInfo(location, zones?.ToList(), zoneDetails?.ToList()); + } + + /// Initializes a new instance of StoragePoolSkuZoneDetails. + /// The set of zones that the SKU is available in with the specified capabilities. + /// A list of capabilities that are available for the SKU in the specified list of zones. + /// A new instance for mocking. + public static StoragePoolSkuZoneDetails StoragePoolSkuZoneDetails(IEnumerable name = null, IEnumerable capabilities = null) + { + name ??= new List(); + capabilities ??= new List(); + + return new StoragePoolSkuZoneDetails(name?.ToList(), capabilities?.ToList()); + } + + /// Initializes a new instance of StoragePoolSkuRestrictions. + /// 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 information about the restriction where the SKU cannot be used. + /// The reason for restriction. + /// A new instance for mocking. + public static StoragePoolSkuRestrictions StoragePoolSkuRestrictions(StoragePoolSkuRestrictionsType? restrictionsType = null, IEnumerable values = null, StoragePoolSkuRestrictionInfo restrictionInfo = null, StoragePoolSkuRestrictionsReasonCode? reasonCode = null) + { + values ??= new List(); + + return new StoragePoolSkuRestrictions(restrictionsType, values?.ToList(), restrictionInfo, reasonCode); + } + + /// Initializes a new instance of StoragePoolSkuRestrictionInfo. + /// Locations where the SKU is restricted. + /// List of availability zones where the SKU is restricted. + /// A new instance for mocking. + public static StoragePoolSkuRestrictionInfo StoragePoolSkuRestrictionInfo(IEnumerable locations = null, IEnumerable zones = null) + { + locations ??= new List(); + zones ??= new List(); + + return new StoragePoolSkuRestrictionInfo(locations?.ToList(), zones?.ToList()); + } + + /// Initializes a new instance of StoragePoolOutboundEnvironment. + /// The type of service accessed by the App Service Environment, e.g., Azure Storage, Azure SQL Database, and Azure Active Directory. + /// The endpoints that the App Service Environment reaches the service at. + /// A new instance for mocking. + public static StoragePoolOutboundEnvironment StoragePoolOutboundEnvironment(string category = null, IEnumerable endpoints = null) + { + endpoints ??= new List(); + + return new StoragePoolOutboundEnvironment(category, endpoints?.ToList()); + } + + /// Initializes a new instance of OutboundEndpointDependency. + /// The domain name of the dependency. + /// The IP Addresses and Ports used when connecting to DomainName. + /// A new instance for mocking. + public static OutboundEndpointDependency OutboundEndpointDependency(string domainName = null, IEnumerable endpointDetails = null) + { + endpointDetails ??= new List(); + + return new OutboundEndpointDependency(domainName, endpointDetails?.ToList()); + } + + /// Initializes a new instance of OutboundEndpointDetail. + /// An IP Address that Domain Name currently resolves to. + /// The port an endpoint is connected to. + /// The time in milliseconds it takes for a TCP connection to be created from the App Service Environment to this IpAddress at this Port. + /// Whether it is possible to create a TCP connection from the App Service Environment to this IpAddress at this Port. + /// A new instance for mocking. + public static OutboundEndpointDetail OutboundEndpointDetail(IPAddress ipAddress = null, int? port = null, double? latencyInMs = null, bool? isAccessible = null) + { + return new OutboundEndpointDetail(ipAddress, port, latencyInMs, isAccessible); + } + + /// Initializes a new instance of DiskPoolIscsiTargetData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Azure resource id. Indicates if this resource is managed by another Azure resource. + /// List of Azure resource ids that manage this resource. + /// Mode for Target connectivity. + /// Access Control List (ACL) for an iSCSI Target; defines LUN masking policy. + /// List of LUNs to be exposed through iSCSI Target. + /// iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server". + /// State of the operation on the resource. + /// Operational status of the iSCSI Target. + /// List of private IPv4 addresses to connect to the iSCSI Target. + /// The port used by iSCSI Target portal group. + /// List of identifiers for active sessions on the iSCSI target. + /// A new instance for mocking. + public static DiskPoolIscsiTargetData DiskPoolIscsiTargetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string managedBy = null, IEnumerable managedByExtended = null, DiskPoolIscsiTargetAclMode aclMode = default, IEnumerable staticAcls = null, IEnumerable luns = null, string targetIqn = null, DiskPoolIscsiTargetProvisioningState provisioningState = default, StoragePoolOperationalStatus status = default, IEnumerable endpoints = null, int? port = null, IEnumerable sessions = null) + { + managedByExtended ??= new List(); + staticAcls ??= new List(); + luns ??= new List(); + endpoints ??= new List(); + sessions ??= new List(); + + return new DiskPoolIscsiTargetData(id, name, resourceType, systemData, managedBy, managedByExtended?.ToList(), aclMode, staticAcls?.ToList(), luns?.ToList(), targetIqn, provisioningState, status, endpoints?.ToList(), port, sessions?.ToList()); + } + + /// Initializes a new instance of ManagedDiskIscsiLun. + /// User defined name for iSCSI LUN; example: "lun0". + /// Azure Resource ID of the Managed Disk. + /// Specifies the Logical Unit Number of the iSCSI LUN. + /// A new instance for mocking. + public static ManagedDiskIscsiLun ManagedDiskIscsiLun(string name = null, ResourceIdentifier managedDiskAzureResourceId = null, int? lun = null) + { + return new ManagedDiskIscsiLun(name, managedDiskAzureResourceId, lun); + } + + /// Initializes a new instance of DiskPoolIscsiTargetCreateOrUpdateContent. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Azure resource id. Indicates if this resource is managed by another Azure resource. + /// List of Azure resource ids that manage this resource. + /// Mode for Target connectivity. + /// iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server". + /// Access Control List (ACL) for an iSCSI Target; defines LUN masking policy. + /// List of LUNs to be exposed through iSCSI Target. + /// A new instance for mocking. + public static DiskPoolIscsiTargetCreateOrUpdateContent DiskPoolIscsiTargetCreateOrUpdateContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string managedBy = null, IEnumerable managedByExtended = null, DiskPoolIscsiTargetAclMode aclMode = default, string targetIqn = null, IEnumerable staticAcls = null, IEnumerable luns = null) + { + managedByExtended ??= new List(); + staticAcls ??= new List(); + luns ??= new List(); + + return new DiskPoolIscsiTargetCreateOrUpdateContent(id, name, resourceType, systemData, managedBy, managedByExtended?.ToList(), aclMode, targetIqn, staticAcls?.ToList(), luns?.ToList()); + } + + /// Initializes a new instance of DiskPoolIscsiTargetPatch. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Azure resource id. Indicates if this resource is managed by another Azure resource. + /// List of Azure resource ids that manage this resource. + /// Access Control List (ACL) for an iSCSI Target; defines LUN masking policy. + /// List of LUNs to be exposed through iSCSI Target. + /// A new instance for mocking. + public static DiskPoolIscsiTargetPatch DiskPoolIscsiTargetPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string managedBy = null, IEnumerable managedByExtended = null, IEnumerable staticAcls = null, IEnumerable luns = null) + { + managedByExtended ??= new List(); + staticAcls ??= new List(); + luns ??= new List(); + + return new DiskPoolIscsiTargetPatch(id, name, resourceType, systemData, managedBy, managedByExtended?.ToList(), staticAcls?.ToList(), luns?.ToList()); + } + } +} diff --git a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/autorest.md b/sdk/storagepool/Azure.ResourceManager.StoragePool/src/autorest.md index 3a63d2fa8548..8121d8bed838 100644 --- a/sdk/storagepool/Azure.ResourceManager.StoragePool/src/autorest.md +++ b/sdk/storagepool/Azure.ResourceManager.StoragePool/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: StoragePool namespace: Azure.ResourceManager.StoragePool diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/CHANGELOG.md b/sdk/storagesync/Azure.ResourceManager.StorageSync/CHANGELOG.md index f1bd3ae5fe5c..18223909d657 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/CHANGELOG.md +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.2.0-beta.1 (Unreleased) +## 1.2.0-beta.1 (2023-05-31) ### 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.1 (2023-02-16) ### Other Changes diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/api/Azure.ResourceManager.StorageSync.netstandard2.0.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/api/Azure.ResourceManager.StorageSync.netstandard2.0.cs index c68d1e312a83..c4c749ef7c26 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/api/Azure.ResourceManager.StorageSync.netstandard2.0.cs +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/api/Azure.ResourceManager.StorageSync.netstandard2.0.cs @@ -364,6 +364,42 @@ protected StorageSyncWorkflowResource() { } } namespace Azure.ResourceManager.StorageSync.Models { + public static partial class ArmStorageSyncModelFactory + { + public static Azure.ResourceManager.StorageSync.Models.CloudEndpointAfsShareMetadataCertificatePublicKeys CloudEndpointAfsShareMetadataCertificatePublicKeys(string firstKey = null, string secondKey = null) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.CloudEndpointChangeEnumerationActivity CloudEndpointChangeEnumerationActivity(System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), Azure.ResourceManager.StorageSync.Models.CloudEndpointChangeEnumerationActivityState? operationState = default(Azure.ResourceManager.StorageSync.Models.CloudEndpointChangeEnumerationActivityState?), int? statusCode = default(int?), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), long? processedFilesCount = default(long?), long? processedDirectoriesCount = default(long?), long? totalFilesCount = default(long?), long? totalDirectoriesCount = default(long?), long? totalSizeInBytes = default(long?), int? progressPercent = default(int?), int? minutesRemaining = default(int?), Azure.ResourceManager.StorageSync.Models.CloudEndpointChangeEnumerationTotalCountsState? totalCountsState = default(Azure.ResourceManager.StorageSync.Models.CloudEndpointChangeEnumerationTotalCountsState?), int? deletesProgressPercent = default(int?)) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.CloudEndpointChangeEnumerationStatus CloudEndpointChangeEnumerationStatus(System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), Azure.ResourceManager.StorageSync.Models.CloudEndpointLastChangeEnumerationStatus lastEnumerationStatus = null, Azure.ResourceManager.StorageSync.Models.CloudEndpointChangeEnumerationActivity activity = null) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.CloudEndpointCreateOrUpdateContent CloudEndpointCreateOrUpdateContent(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 storageAccountResourceId = null, string azureFileShareName = null, System.Guid? storageAccountTenantId = default(System.Guid?), string friendlyName = null) { throw null; } + public static Azure.ResourceManager.StorageSync.CloudEndpointData CloudEndpointData(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 storageAccountResourceId = null, string azureFileShareName = null, System.Guid? storageAccountTenantId = default(System.Guid?), string partnershipId = null, string friendlyName = null, string isBackupEnabled = null, string provisioningState = null, string lastWorkflowId = null, string lastOperationName = null, Azure.ResourceManager.StorageSync.Models.CloudEndpointChangeEnumerationStatus changeEnumerationStatus = null) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.CloudEndpointLastChangeEnumerationStatus CloudEndpointLastChangeEnumerationStatus(System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? completedOn = default(System.DateTimeOffset?), long? namespaceFilesCount = default(long?), long? namespaceDirectoriesCount = default(long?), long? namespaceSizeInBytes = default(long?), System.DateTimeOffset? nextRunTimestamp = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.CloudEndpointPostBackupResult CloudEndpointPostBackupResult(string cloudEndpointName = null) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.CloudTieringCachePerformance CloudTieringCachePerformance(System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), long? cacheHitBytes = default(long?), long? cacheMissBytes = default(long?), int? cacheHitBytesPercent = default(int?)) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.CloudTieringDatePolicyStatus CloudTieringDatePolicyStatus(System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), System.DateTimeOffset? tieredFilesMostRecentAccessTimestamp = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.CloudTieringFilesNotTiering CloudTieringFilesNotTiering(System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), long? totalFileCount = default(long?), System.Collections.Generic.IEnumerable errors = null) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.CloudTieringLowDiskMode CloudTieringLowDiskMode(System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), Azure.ResourceManager.StorageSync.Models.CloudTieringLowDiskModeState? state = default(Azure.ResourceManager.StorageSync.Models.CloudTieringLowDiskModeState?)) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.CloudTieringSpaceSavings CloudTieringSpaceSavings(System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), long? volumeSizeInBytes = default(long?), long? cloudTotalSizeInBytes = default(long?), long? cachedSizeInBytes = default(long?), int? spaceSavingsPercent = default(int?), long? spaceSavingsInBytes = default(long?)) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.CloudTieringVolumeFreeSpacePolicyStatus CloudTieringVolumeFreeSpacePolicyStatus(System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), int? effectiveVolumeFreeSpacePolicy = default(int?), int? currentVolumeFreeSpacePercent = default(int?)) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.FilesNotTieringError FilesNotTieringError(int? errorCode = default(int?), long? fileCount = default(long?)) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.ServerEndpointBackgroundDataDownloadActivity ServerEndpointBackgroundDataDownloadActivity(System.DateTimeOffset? timestamp = default(System.DateTimeOffset?), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), int? percentProgress = default(int?), long? downloadedBytes = default(long?)) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.ServerEndpointCloudTieringStatus ServerEndpointCloudTieringStatus(System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), Azure.ResourceManager.StorageSync.Models.ServerEndpointHealthState? health = default(Azure.ResourceManager.StorageSync.Models.ServerEndpointHealthState?), System.DateTimeOffset? healthLastUpdatedOn = default(System.DateTimeOffset?), int? lastCloudTieringResult = default(int?), System.DateTimeOffset? lastSuccessTimestamp = default(System.DateTimeOffset?), Azure.ResourceManager.StorageSync.Models.CloudTieringSpaceSavings spaceSavings = null, Azure.ResourceManager.StorageSync.Models.CloudTieringCachePerformance cachePerformance = null, Azure.ResourceManager.StorageSync.Models.CloudTieringFilesNotTiering filesNotTiering = null, Azure.ResourceManager.StorageSync.Models.CloudTieringVolumeFreeSpacePolicyStatus volumeFreeSpacePolicyStatus = null, Azure.ResourceManager.StorageSync.Models.CloudTieringDatePolicyStatus datePolicyStatus = null, Azure.ResourceManager.StorageSync.Models.CloudTieringLowDiskMode lowDiskMode = null) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.ServerEndpointFilesNotSyncingError ServerEndpointFilesNotSyncingError(int? errorCode = default(int?), long? persistentCount = default(long?), long? transientCount = default(long?)) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.ServerEndpointRecallError ServerEndpointRecallError(int? errorCode = default(int?), long? count = default(long?)) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.ServerEndpointRecallStatus ServerEndpointRecallStatus(System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), long? totalRecallErrorsCount = default(long?), System.Collections.Generic.IEnumerable recallErrors = null) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.ServerEndpointSyncActivityStatus ServerEndpointSyncActivityStatus(System.DateTimeOffset? timestamp = default(System.DateTimeOffset?), long? perItemErrorCount = default(long?), long? appliedItemCount = default(long?), long? totalItemCount = default(long?), long? appliedBytes = default(long?), long? totalBytes = default(long?), Azure.ResourceManager.StorageSync.Models.ServerEndpointSyncMode? syncMode = default(Azure.ResourceManager.StorageSync.Models.ServerEndpointSyncMode?), int? sessionMinutesRemaining = default(int?)) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.ServerEndpointSyncSessionStatus ServerEndpointSyncSessionStatus(int? lastSyncResult = default(int?), System.DateTimeOffset? lastSyncTimestamp = default(System.DateTimeOffset?), System.DateTimeOffset? lastSyncSuccessTimestamp = default(System.DateTimeOffset?), long? lastSyncPerItemErrorCount = default(long?), long? persistentFilesNotSyncingCount = default(long?), long? transientFilesNotSyncingCount = default(long?), System.Collections.Generic.IEnumerable filesNotSyncingErrors = null, Azure.ResourceManager.StorageSync.Models.ServerEndpointSyncMode? lastSyncMode = default(Azure.ResourceManager.StorageSync.Models.ServerEndpointSyncMode?)) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.ServerEndpointSyncStatus ServerEndpointSyncStatus(Azure.ResourceManager.StorageSync.Models.ServerEndpointHealthState? downloadHealth = default(Azure.ResourceManager.StorageSync.Models.ServerEndpointHealthState?), Azure.ResourceManager.StorageSync.Models.ServerEndpointHealthState? uploadHealth = default(Azure.ResourceManager.StorageSync.Models.ServerEndpointHealthState?), Azure.ResourceManager.StorageSync.Models.ServerEndpointHealthState? combinedHealth = default(Azure.ResourceManager.StorageSync.Models.ServerEndpointHealthState?), Azure.ResourceManager.StorageSync.Models.ServerEndpointSyncActivityState? syncActivity = default(Azure.ResourceManager.StorageSync.Models.ServerEndpointSyncActivityState?), long? totalPersistentFilesNotSyncingCount = default(long?), System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), Azure.ResourceManager.StorageSync.Models.ServerEndpointSyncSessionStatus uploadStatus = null, Azure.ResourceManager.StorageSync.Models.ServerEndpointSyncSessionStatus downloadStatus = null, Azure.ResourceManager.StorageSync.Models.ServerEndpointSyncActivityStatus uploadActivity = null, Azure.ResourceManager.StorageSync.Models.ServerEndpointSyncActivityStatus downloadActivity = null, Azure.ResourceManager.StorageSync.Models.ServerEndpointOfflineDataTransferState? offlineDataTransferStatus = default(Azure.ResourceManager.StorageSync.Models.ServerEndpointOfflineDataTransferState?), Azure.ResourceManager.StorageSync.Models.ServerEndpointBackgroundDataDownloadActivity backgroundDataDownloadActivity = null) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.StorageSyncGroupCreateOrUpdateContent StorageSyncGroupCreateOrUpdateContent(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.BinaryData properties = null) { throw null; } + public static Azure.ResourceManager.StorageSync.StorageSyncGroupData StorageSyncGroupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? uniqueId = default(System.Guid?), string syncGroupStatus = null) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.StorageSyncNameAvailabilityResult StorageSyncNameAvailabilityResult(bool? isNameAvailable = default(bool?), Azure.ResourceManager.StorageSync.Models.StorageSyncNameUnavailableReason? reason = default(Azure.ResourceManager.StorageSync.Models.StorageSyncNameUnavailableReason?), string message = null) { throw null; } + public static Azure.ResourceManager.StorageSync.StorageSyncPrivateEndpointConnectionData StorageSyncPrivateEndpointConnectionData(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 privateEndpointId = null, Azure.ResourceManager.StorageSync.Models.StorageSyncPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.StorageSync.Models.StorageSyncPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.StorageSync.Models.StorageSyncPrivateEndpointConnectionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.StorageSyncPrivateLinkResource StorageSyncPrivateLinkResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.StorageSyncRegisteredServerCreateOrUpdateContent StorageSyncRegisteredServerCreateOrUpdateContent(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.BinaryData serverCertificate = null, string agentVersion = null, string serverOSVersion = null, string lastHeartbeat = null, string serverRole = null, System.Guid? clusterId = default(System.Guid?), string clusterName = null, System.Guid? serverId = default(System.Guid?), string friendlyName = null) { throw null; } + public static Azure.ResourceManager.StorageSync.StorageSyncRegisteredServerData StorageSyncRegisteredServerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.BinaryData serverCertificate = null, string agentVersion = null, Azure.ResourceManager.StorageSync.Models.RegisteredServerAgentVersionStatus? agentVersionStatus = default(Azure.ResourceManager.StorageSync.Models.RegisteredServerAgentVersionStatus?), System.DateTimeOffset? agentVersionExpireOn = default(System.DateTimeOffset?), string serverOSVersion = null, int? serverManagementErrorCode = default(int?), string lastHeartbeat = null, string provisioningState = null, string serverRole = null, System.Guid? clusterId = default(System.Guid?), string clusterName = null, System.Guid? serverId = default(System.Guid?), System.Guid? storageSyncServiceUid = default(System.Guid?), string lastWorkflowId = null, string lastOperationName = null, System.Uri discoveryEndpointUri = null, Azure.Core.AzureLocation? resourceLocation = default(Azure.Core.AzureLocation?), Azure.Core.AzureLocation? serviceLocation = default(Azure.Core.AzureLocation?), string friendlyName = null, System.Uri managementEndpointUri = null, System.Uri monitoringEndpointUri = null, string monitoringConfiguration = null, string serverName = null) { throw null; } + public static Azure.ResourceManager.StorageSync.Models.StorageSyncServerEndpointCreateOrUpdateContent StorageSyncServerEndpointCreateOrUpdateContent(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string serverLocalPath = null, Azure.ResourceManager.StorageSync.Models.StorageSyncFeatureStatus? cloudTiering = default(Azure.ResourceManager.StorageSync.Models.StorageSyncFeatureStatus?), int? volumeFreeSpacePercent = default(int?), int? tierFilesOlderThanDays = default(int?), string friendlyName = null, Azure.Core.ResourceIdentifier serverResourceId = null, Azure.ResourceManager.StorageSync.Models.StorageSyncFeatureStatus? offlineDataTransfer = default(Azure.ResourceManager.StorageSync.Models.StorageSyncFeatureStatus?), string offlineDataTransferShareName = null, Azure.ResourceManager.StorageSync.Models.InitialDownloadPolicy? initialDownloadPolicy = default(Azure.ResourceManager.StorageSync.Models.InitialDownloadPolicy?), Azure.ResourceManager.StorageSync.Models.LocalCacheMode? localCacheMode = default(Azure.ResourceManager.StorageSync.Models.LocalCacheMode?), Azure.ResourceManager.StorageSync.Models.InitialUploadPolicy? initialUploadPolicy = default(Azure.ResourceManager.StorageSync.Models.InitialUploadPolicy?)) { throw null; } + public static Azure.ResourceManager.StorageSync.StorageSyncServerEndpointData StorageSyncServerEndpointData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string serverLocalPath = null, Azure.ResourceManager.StorageSync.Models.StorageSyncFeatureStatus? cloudTiering = default(Azure.ResourceManager.StorageSync.Models.StorageSyncFeatureStatus?), int? volumeFreeSpacePercent = default(int?), int? tierFilesOlderThanDays = default(int?), string friendlyName = null, Azure.Core.ResourceIdentifier serverResourceId = null, string provisioningState = null, string lastWorkflowId = null, string lastOperationName = null, Azure.ResourceManager.StorageSync.Models.ServerEndpointSyncStatus syncStatus = null, Azure.ResourceManager.StorageSync.Models.StorageSyncFeatureStatus? offlineDataTransfer = default(Azure.ResourceManager.StorageSync.Models.StorageSyncFeatureStatus?), Azure.Core.ResourceIdentifier offlineDataTransferStorageAccountResourceId = null, System.Guid? offlineDataTransferStorageAccountTenantId = default(System.Guid?), string offlineDataTransferShareName = null, Azure.ResourceManager.StorageSync.Models.ServerEndpointCloudTieringStatus cloudTieringStatus = null, Azure.ResourceManager.StorageSync.Models.ServerEndpointRecallStatus recallStatus = null, Azure.ResourceManager.StorageSync.Models.InitialDownloadPolicy? initialDownloadPolicy = default(Azure.ResourceManager.StorageSync.Models.InitialDownloadPolicy?), Azure.ResourceManager.StorageSync.Models.LocalCacheMode? localCacheMode = default(Azure.ResourceManager.StorageSync.Models.LocalCacheMode?), Azure.ResourceManager.StorageSync.Models.InitialUploadPolicy? initialUploadPolicy = default(Azure.ResourceManager.StorageSync.Models.InitialUploadPolicy?), string serverName = null) { throw null; } + public static Azure.ResourceManager.StorageSync.StorageSyncServiceData StorageSyncServiceData(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.StorageSync.Models.IncomingTrafficPolicy? incomingTrafficPolicy = default(Azure.ResourceManager.StorageSync.Models.IncomingTrafficPolicy?), int? storageSyncServiceStatus = default(int?), System.Guid? storageSyncServiceUid = default(System.Guid?), string provisioningState = null, string lastWorkflowId = null, string lastOperationName = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null) { throw null; } + public static Azure.ResourceManager.StorageSync.StorageSyncWorkflowData StorageSyncWorkflowData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string lastStepName = null, Azure.ResourceManager.StorageSync.Models.StorageSyncWorkflowStatus? status = default(Azure.ResourceManager.StorageSync.Models.StorageSyncWorkflowStatus?), Azure.ResourceManager.StorageSync.Models.StorageSyncOperationDirection? operation = default(Azure.ResourceManager.StorageSync.Models.StorageSyncOperationDirection?), string steps = null, System.Guid? lastOperationId = default(System.Guid?), string commandName = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStatusUpdatedOn = default(System.DateTimeOffset?)) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ChangeDetectionMode : System.IEquatable { diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/ArmStorageSyncModelFactory.cs b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/ArmStorageSyncModelFactory.cs new file mode 100644 index 000000000000..66f27d616642 --- /dev/null +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/Generated/ArmStorageSyncModelFactory.cs @@ -0,0 +1,515 @@ +// 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.Models; +using Azure.ResourceManager.StorageSync; + +namespace Azure.ResourceManager.StorageSync.Models +{ + /// Model factory for models. + public static partial class ArmStorageSyncModelFactory + { + /// Initializes a new instance of StorageSyncNameAvailabilityResult. + /// Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used. + /// Gets the reason that a Storage Sync Service name could not be used. The Reason element is only returned if NameAvailable is false. + /// Gets an error message explaining the Reason value in more detail. + /// A new instance for mocking. + public static StorageSyncNameAvailabilityResult StorageSyncNameAvailabilityResult(bool? isNameAvailable = null, StorageSyncNameUnavailableReason? reason = null, string message = null) + { + return new StorageSyncNameAvailabilityResult(isNameAvailable, reason, message); + } + + /// Initializes a new instance of StorageSyncServiceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Incoming Traffic Policy. + /// Storage Sync service status. + /// Storage Sync service Uid. + /// StorageSyncService Provisioning State. + /// StorageSyncService lastWorkflowId. + /// Resource Last Operation Name. + /// List of private endpoint connection associated with the specified storage sync service. + /// A new instance for mocking. + public static StorageSyncServiceData StorageSyncServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, IncomingTrafficPolicy? incomingTrafficPolicy = null, int? storageSyncServiceStatus = null, Guid? storageSyncServiceUid = null, string provisioningState = null, string lastWorkflowId = null, string lastOperationName = null, IEnumerable privateEndpointConnections = null) + { + tags ??= new Dictionary(); + privateEndpointConnections ??= new List(); + + return new StorageSyncServiceData(id, name, resourceType, systemData, tags, location, incomingTrafficPolicy, storageSyncServiceStatus, storageSyncServiceUid, provisioningState, lastWorkflowId, lastOperationName, privateEndpointConnections?.ToList()); + } + + /// Initializes a new instance of StorageSyncPrivateEndpointConnectionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The resource of private end point. + /// A collection of information about the state of the connection between service consumer and provider. + /// The provisioning state of the private endpoint connection resource. + /// A new instance for mocking. + public static StorageSyncPrivateEndpointConnectionData StorageSyncPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier privateEndpointId = null, StorageSyncPrivateLinkServiceConnectionState connectionState = null, StorageSyncPrivateEndpointConnectionProvisioningState? provisioningState = null) + { + return new StorageSyncPrivateEndpointConnectionData(id, name, resourceType, systemData, privateEndpointId != null ? ResourceManagerModelFactory.SubResource(privateEndpointId) : null, connectionState, provisioningState); + } + + /// Initializes a new instance of StorageSyncPrivateLinkResource. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The private link resource group id. + /// The private link resource required member names. + /// The private link resource Private link DNS zone name. + /// A new instance for mocking. + public static StorageSyncPrivateLinkResource StorageSyncPrivateLinkResource(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string groupId = null, IEnumerable requiredMembers = null, IEnumerable requiredZoneNames = null) + { + requiredMembers ??= new List(); + requiredZoneNames ??= new List(); + + return new StorageSyncPrivateLinkResource(id, name, resourceType, systemData, groupId, requiredMembers?.ToList(), requiredZoneNames?.ToList()); + } + + /// Initializes a new instance of StorageSyncGroupData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Unique Id. + /// Sync group status. + /// A new instance for mocking. + public static StorageSyncGroupData StorageSyncGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Guid? uniqueId = null, string syncGroupStatus = null) + { + return new StorageSyncGroupData(id, name, resourceType, systemData, uniqueId, syncGroupStatus); + } + + /// Initializes a new instance of StorageSyncGroupCreateOrUpdateContent. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The parameters used to create the sync group. + /// A new instance for mocking. + public static StorageSyncGroupCreateOrUpdateContent StorageSyncGroupCreateOrUpdateContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, BinaryData properties = null) + { + return new StorageSyncGroupCreateOrUpdateContent(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of CloudEndpointCreateOrUpdateContent. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Storage Account Resource Id. + /// Azure file share name. + /// Storage Account Tenant Id. + /// Friendly Name. + /// A new instance for mocking. + public static CloudEndpointCreateOrUpdateContent CloudEndpointCreateOrUpdateContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier storageAccountResourceId = null, string azureFileShareName = null, Guid? storageAccountTenantId = null, string friendlyName = null) + { + return new CloudEndpointCreateOrUpdateContent(id, name, resourceType, systemData, storageAccountResourceId, azureFileShareName, storageAccountTenantId, friendlyName); + } + + /// Initializes a new instance of CloudEndpointData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Storage Account Resource Id. + /// Azure file share name. + /// Storage Account Tenant Id. + /// Partnership Id. + /// Friendly Name. + /// Backup Enabled. + /// CloudEndpoint Provisioning State. + /// CloudEndpoint lastWorkflowId. + /// Resource Last Operation Name. + /// Cloud endpoint change enumeration status. + /// A new instance for mocking. + public static CloudEndpointData CloudEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier storageAccountResourceId = null, string azureFileShareName = null, Guid? storageAccountTenantId = null, string partnershipId = null, string friendlyName = null, string isBackupEnabled = null, string provisioningState = null, string lastWorkflowId = null, string lastOperationName = null, CloudEndpointChangeEnumerationStatus changeEnumerationStatus = null) + { + return new CloudEndpointData(id, name, resourceType, systemData, storageAccountResourceId, azureFileShareName, storageAccountTenantId, partnershipId, friendlyName, isBackupEnabled, provisioningState, lastWorkflowId, lastOperationName, changeEnumerationStatus); + } + + /// Initializes a new instance of CloudEndpointChangeEnumerationStatus. + /// Last updated timestamp. + /// Status of last completed change enumeration. + /// Change enumeration activity. + /// A new instance for mocking. + public static CloudEndpointChangeEnumerationStatus CloudEndpointChangeEnumerationStatus(DateTimeOffset? lastUpdatedOn = null, CloudEndpointLastChangeEnumerationStatus lastEnumerationStatus = null, CloudEndpointChangeEnumerationActivity activity = null) + { + return new CloudEndpointChangeEnumerationStatus(lastUpdatedOn, lastEnumerationStatus, activity); + } + + /// Initializes a new instance of CloudEndpointLastChangeEnumerationStatus. + /// Timestamp when change enumeration started. + /// Timestamp when change enumeration completed. + /// Count of files in the namespace. + /// Count of directories in the namespace. + /// Namespace size in bytes. + /// Timestamp of when change enumeration is expected to run again. + /// A new instance for mocking. + public static CloudEndpointLastChangeEnumerationStatus CloudEndpointLastChangeEnumerationStatus(DateTimeOffset? startedOn = null, DateTimeOffset? completedOn = null, long? namespaceFilesCount = null, long? namespaceDirectoriesCount = null, long? namespaceSizeInBytes = null, DateTimeOffset? nextRunTimestamp = null) + { + return new CloudEndpointLastChangeEnumerationStatus(startedOn, completedOn, namespaceFilesCount, namespaceDirectoriesCount, namespaceSizeInBytes, nextRunTimestamp); + } + + /// Initializes a new instance of CloudEndpointChangeEnumerationActivity. + /// Last updated timestamp. + /// Change enumeration operation state. + /// When non-zero, indicates an issue that is delaying change enumeration. + /// Timestamp when change enumeration started. + /// Count of files processed. + /// Count of directories processed. + /// Total count of files enumerated. + /// Total count of directories enumerated. + /// Total enumerated size in bytes. + /// Progress percentage for change enumeration run, excluding processing of deletes. + /// Estimate of time remaining for the enumeration run. + /// Change enumeration total counts state. + /// Progress percentage for processing deletes. This is done separately from the rest of the enumeration run. + /// A new instance for mocking. + public static CloudEndpointChangeEnumerationActivity CloudEndpointChangeEnumerationActivity(DateTimeOffset? lastUpdatedOn = null, CloudEndpointChangeEnumerationActivityState? operationState = null, int? statusCode = null, DateTimeOffset? startedOn = null, long? processedFilesCount = null, long? processedDirectoriesCount = null, long? totalFilesCount = null, long? totalDirectoriesCount = null, long? totalSizeInBytes = null, int? progressPercent = null, int? minutesRemaining = null, CloudEndpointChangeEnumerationTotalCountsState? totalCountsState = null, int? deletesProgressPercent = null) + { + return new CloudEndpointChangeEnumerationActivity(lastUpdatedOn, operationState, statusCode, startedOn, processedFilesCount, processedDirectoriesCount, totalFilesCount, totalDirectoriesCount, totalSizeInBytes, progressPercent, minutesRemaining, totalCountsState, deletesProgressPercent); + } + + /// Initializes a new instance of CloudEndpointPostBackupResult. + /// cloud endpoint Name. + /// A new instance for mocking. + public static CloudEndpointPostBackupResult CloudEndpointPostBackupResult(string cloudEndpointName = null) + { + return new CloudEndpointPostBackupResult(cloudEndpointName); + } + + /// Initializes a new instance of CloudEndpointAfsShareMetadataCertificatePublicKeys. + /// The first public key. + /// The second public key. + /// A new instance for mocking. + public static CloudEndpointAfsShareMetadataCertificatePublicKeys CloudEndpointAfsShareMetadataCertificatePublicKeys(string firstKey = null, string secondKey = null) + { + return new CloudEndpointAfsShareMetadataCertificatePublicKeys(firstKey, secondKey); + } + + /// Initializes a new instance of StorageSyncServerEndpointCreateOrUpdateContent. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Server Local path. + /// Cloud Tiering. + /// Level of free space to be maintained by Cloud Tiering if it is enabled. + /// Tier files older than days. + /// Friendly Name. + /// Server Resource Id. + /// Offline data transfer. + /// Offline data transfer share name. + /// Policy for how namespace and files are recalled during FastDr. + /// Policy for enabling follow-the-sun business models: link local cache to cloud behavior to pre-populate before local access. + /// Policy for how the initial upload sync session is performed. + /// A new instance for mocking. + public static StorageSyncServerEndpointCreateOrUpdateContent StorageSyncServerEndpointCreateOrUpdateContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string serverLocalPath = null, StorageSyncFeatureStatus? cloudTiering = null, int? volumeFreeSpacePercent = null, int? tierFilesOlderThanDays = null, string friendlyName = null, ResourceIdentifier serverResourceId = null, StorageSyncFeatureStatus? offlineDataTransfer = null, string offlineDataTransferShareName = null, InitialDownloadPolicy? initialDownloadPolicy = null, LocalCacheMode? localCacheMode = null, InitialUploadPolicy? initialUploadPolicy = null) + { + return new StorageSyncServerEndpointCreateOrUpdateContent(id, name, resourceType, systemData, serverLocalPath, cloudTiering, volumeFreeSpacePercent, tierFilesOlderThanDays, friendlyName, serverResourceId, offlineDataTransfer, offlineDataTransferShareName, initialDownloadPolicy, localCacheMode, initialUploadPolicy); + } + + /// Initializes a new instance of StorageSyncServerEndpointData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Server Local path. + /// Cloud Tiering. + /// Level of free space to be maintained by Cloud Tiering if it is enabled. + /// Tier files older than days. + /// Friendly Name. + /// Server Resource Id. + /// ServerEndpoint Provisioning State. + /// ServerEndpoint lastWorkflowId. + /// Resource Last Operation Name. + /// Server Endpoint sync status. + /// Offline data transfer. + /// Offline data transfer storage account resource ID. + /// Offline data transfer storage account tenant ID. + /// Offline data transfer share name. + /// Cloud tiering status. Only populated if cloud tiering is enabled. + /// Recall status. Only populated if cloud tiering is enabled. + /// Policy for how namespace and files are recalled during FastDr. + /// Policy for enabling follow-the-sun business models: link local cache to cloud behavior to pre-populate before local access. + /// Policy for how the initial upload sync session is performed. + /// Server name. + /// A new instance for mocking. + public static StorageSyncServerEndpointData StorageSyncServerEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string serverLocalPath = null, StorageSyncFeatureStatus? cloudTiering = null, int? volumeFreeSpacePercent = null, int? tierFilesOlderThanDays = null, string friendlyName = null, ResourceIdentifier serverResourceId = null, string provisioningState = null, string lastWorkflowId = null, string lastOperationName = null, ServerEndpointSyncStatus syncStatus = null, StorageSyncFeatureStatus? offlineDataTransfer = null, ResourceIdentifier offlineDataTransferStorageAccountResourceId = null, Guid? offlineDataTransferStorageAccountTenantId = null, string offlineDataTransferShareName = null, ServerEndpointCloudTieringStatus cloudTieringStatus = null, ServerEndpointRecallStatus recallStatus = null, InitialDownloadPolicy? initialDownloadPolicy = null, LocalCacheMode? localCacheMode = null, InitialUploadPolicy? initialUploadPolicy = null, string serverName = null) + { + return new StorageSyncServerEndpointData(id, name, resourceType, systemData, serverLocalPath, cloudTiering, volumeFreeSpacePercent, tierFilesOlderThanDays, friendlyName, serverResourceId, provisioningState, lastWorkflowId, lastOperationName, syncStatus, offlineDataTransfer, offlineDataTransferStorageAccountResourceId, offlineDataTransferStorageAccountTenantId, offlineDataTransferShareName, cloudTieringStatus, recallStatus, initialDownloadPolicy, localCacheMode, initialUploadPolicy, serverName); + } + + /// Initializes a new instance of ServerEndpointSyncStatus. + /// Download Health Status. + /// Upload Health Status. + /// Combined Health Status. + /// Sync activity. + /// Total count of persistent files not syncing (combined upload + download). + /// Last Updated Timestamp. + /// Upload Status. + /// Download Status. + /// Upload sync activity. + /// Download sync activity. + /// Offline Data Transfer State. + /// Background data download activity. + /// A new instance for mocking. + public static ServerEndpointSyncStatus ServerEndpointSyncStatus(ServerEndpointHealthState? downloadHealth = null, ServerEndpointHealthState? uploadHealth = null, ServerEndpointHealthState? combinedHealth = null, ServerEndpointSyncActivityState? syncActivity = null, long? totalPersistentFilesNotSyncingCount = null, DateTimeOffset? lastUpdatedOn = null, ServerEndpointSyncSessionStatus uploadStatus = null, ServerEndpointSyncSessionStatus downloadStatus = null, ServerEndpointSyncActivityStatus uploadActivity = null, ServerEndpointSyncActivityStatus downloadActivity = null, ServerEndpointOfflineDataTransferState? offlineDataTransferStatus = null, ServerEndpointBackgroundDataDownloadActivity backgroundDataDownloadActivity = null) + { + return new ServerEndpointSyncStatus(downloadHealth, uploadHealth, combinedHealth, syncActivity, totalPersistentFilesNotSyncingCount, lastUpdatedOn, uploadStatus, downloadStatus, uploadActivity, downloadActivity, offlineDataTransferStatus, backgroundDataDownloadActivity); + } + + /// Initializes a new instance of ServerEndpointSyncSessionStatus. + /// Last sync result (HResult). + /// Last sync timestamp. + /// Last sync success timestamp. + /// Last sync per item error count. + /// Count of persistent files not syncing. + /// Count of transient files not syncing. + /// Array of per-item errors coming from the last sync session. + /// Sync mode. + /// A new instance for mocking. + public static ServerEndpointSyncSessionStatus ServerEndpointSyncSessionStatus(int? lastSyncResult = null, DateTimeOffset? lastSyncTimestamp = null, DateTimeOffset? lastSyncSuccessTimestamp = null, long? lastSyncPerItemErrorCount = null, long? persistentFilesNotSyncingCount = null, long? transientFilesNotSyncingCount = null, IEnumerable filesNotSyncingErrors = null, ServerEndpointSyncMode? lastSyncMode = null) + { + filesNotSyncingErrors ??= new List(); + + return new ServerEndpointSyncSessionStatus(lastSyncResult, lastSyncTimestamp, lastSyncSuccessTimestamp, lastSyncPerItemErrorCount, persistentFilesNotSyncingCount, transientFilesNotSyncingCount, filesNotSyncingErrors?.ToList(), lastSyncMode); + } + + /// Initializes a new instance of ServerEndpointFilesNotSyncingError. + /// Error code (HResult). + /// Count of persistent files not syncing with the specified error code. + /// Count of transient files not syncing with the specified error code. + /// A new instance for mocking. + public static ServerEndpointFilesNotSyncingError ServerEndpointFilesNotSyncingError(int? errorCode = null, long? persistentCount = null, long? transientCount = null) + { + return new ServerEndpointFilesNotSyncingError(errorCode, persistentCount, transientCount); + } + + /// Initializes a new instance of ServerEndpointSyncActivityStatus. + /// Timestamp when properties were updated. + /// Per item error count. + /// Applied item count. + /// Total item count (if available). + /// Applied bytes. + /// Total bytes (if available). + /// Sync mode. + /// Session minutes remaining (if available). + /// A new instance for mocking. + public static ServerEndpointSyncActivityStatus ServerEndpointSyncActivityStatus(DateTimeOffset? timestamp = null, long? perItemErrorCount = null, long? appliedItemCount = null, long? totalItemCount = null, long? appliedBytes = null, long? totalBytes = null, ServerEndpointSyncMode? syncMode = null, int? sessionMinutesRemaining = null) + { + return new ServerEndpointSyncActivityStatus(timestamp, perItemErrorCount, appliedItemCount, totalItemCount, appliedBytes, totalBytes, syncMode, sessionMinutesRemaining); + } + + /// Initializes a new instance of ServerEndpointBackgroundDataDownloadActivity. + /// Timestamp when properties were updated. + /// Timestamp when the operation started. + /// Progress percentage. + /// Running count of bytes downloaded. + /// A new instance for mocking. + public static ServerEndpointBackgroundDataDownloadActivity ServerEndpointBackgroundDataDownloadActivity(DateTimeOffset? timestamp = null, DateTimeOffset? startedOn = null, int? percentProgress = null, long? downloadedBytes = null) + { + return new ServerEndpointBackgroundDataDownloadActivity(timestamp, startedOn, percentProgress, downloadedBytes); + } + + /// Initializes a new instance of ServerEndpointCloudTieringStatus. + /// Last updated timestamp. + /// Cloud tiering health state. + /// The last updated timestamp of health state. + /// Last cloud tiering result (HResult). + /// Last cloud tiering success timestamp. + /// Information regarding how much local space cloud tiering is saving. + /// Information regarding how well the local cache on the server is performing. + /// Information regarding files that failed to be tiered. + /// Status of the volume free space policy. + /// Status of the date policy. + /// Information regarding the low disk mode state. + /// A new instance for mocking. + public static ServerEndpointCloudTieringStatus ServerEndpointCloudTieringStatus(DateTimeOffset? lastUpdatedOn = null, ServerEndpointHealthState? health = null, DateTimeOffset? healthLastUpdatedOn = null, int? lastCloudTieringResult = null, DateTimeOffset? lastSuccessTimestamp = null, CloudTieringSpaceSavings spaceSavings = null, CloudTieringCachePerformance cachePerformance = null, CloudTieringFilesNotTiering filesNotTiering = null, CloudTieringVolumeFreeSpacePolicyStatus volumeFreeSpacePolicyStatus = null, CloudTieringDatePolicyStatus datePolicyStatus = null, CloudTieringLowDiskMode lowDiskMode = null) + { + return new ServerEndpointCloudTieringStatus(lastUpdatedOn, health, healthLastUpdatedOn, lastCloudTieringResult, lastSuccessTimestamp, spaceSavings, cachePerformance, filesNotTiering, volumeFreeSpacePolicyStatus, datePolicyStatus, lowDiskMode); + } + + /// Initializes a new instance of CloudTieringSpaceSavings. + /// Last updated timestamp. + /// Volume size. + /// Total size of content in the azure file share. + /// Cached content size on the server. + /// Percentage of cached size over total size. + /// Count of bytes saved on the server. + /// A new instance for mocking. + public static CloudTieringSpaceSavings CloudTieringSpaceSavings(DateTimeOffset? lastUpdatedOn = null, long? volumeSizeInBytes = null, long? cloudTotalSizeInBytes = null, long? cachedSizeInBytes = null, int? spaceSavingsPercent = null, long? spaceSavingsInBytes = null) + { + return new CloudTieringSpaceSavings(lastUpdatedOn, volumeSizeInBytes, cloudTotalSizeInBytes, cachedSizeInBytes, spaceSavingsPercent, spaceSavingsInBytes); + } + + /// Initializes a new instance of CloudTieringCachePerformance. + /// Last updated timestamp. + /// Count of bytes that were served from the local server. + /// Count of bytes that were served from the cloud. + /// Percentage of total bytes (hit + miss) that were served from the local server. + /// A new instance for mocking. + public static CloudTieringCachePerformance CloudTieringCachePerformance(DateTimeOffset? lastUpdatedOn = null, long? cacheHitBytes = null, long? cacheMissBytes = null, int? cacheHitBytesPercent = null) + { + return new CloudTieringCachePerformance(lastUpdatedOn, cacheHitBytes, cacheMissBytes, cacheHitBytesPercent); + } + + /// Initializes a new instance of CloudTieringFilesNotTiering. + /// Last updated timestamp. + /// Last cloud tiering result (HResult). + /// Array of tiering errors. + /// A new instance for mocking. + public static CloudTieringFilesNotTiering CloudTieringFilesNotTiering(DateTimeOffset? lastUpdatedOn = null, long? totalFileCount = null, IEnumerable errors = null) + { + errors ??= new List(); + + return new CloudTieringFilesNotTiering(lastUpdatedOn, totalFileCount, errors?.ToList()); + } + + /// Initializes a new instance of FilesNotTieringError. + /// Error code (HResult). + /// Count of files with this error. + /// A new instance for mocking. + public static FilesNotTieringError FilesNotTieringError(int? errorCode = null, long? fileCount = null) + { + return new FilesNotTieringError(errorCode, fileCount); + } + + /// Initializes a new instance of CloudTieringVolumeFreeSpacePolicyStatus. + /// Last updated timestamp. + /// In the case where multiple server endpoints are present in a volume, an effective free space policy is applied. + /// Current volume free space percentage. + /// A new instance for mocking. + public static CloudTieringVolumeFreeSpacePolicyStatus CloudTieringVolumeFreeSpacePolicyStatus(DateTimeOffset? lastUpdatedOn = null, int? effectiveVolumeFreeSpacePolicy = null, int? currentVolumeFreeSpacePercent = null) + { + return new CloudTieringVolumeFreeSpacePolicyStatus(lastUpdatedOn, effectiveVolumeFreeSpacePolicy, currentVolumeFreeSpacePercent); + } + + /// Initializes a new instance of CloudTieringDatePolicyStatus. + /// Last updated timestamp. + /// Most recent access time of tiered files. + /// A new instance for mocking. + public static CloudTieringDatePolicyStatus CloudTieringDatePolicyStatus(DateTimeOffset? lastUpdatedOn = null, DateTimeOffset? tieredFilesMostRecentAccessTimestamp = null) + { + return new CloudTieringDatePolicyStatus(lastUpdatedOn, tieredFilesMostRecentAccessTimestamp); + } + + /// Initializes a new instance of CloudTieringLowDiskMode. + /// Last updated timestamp. + /// Low disk mode state. + /// A new instance for mocking. + public static CloudTieringLowDiskMode CloudTieringLowDiskMode(DateTimeOffset? lastUpdatedOn = null, CloudTieringLowDiskModeState? state = null) + { + return new CloudTieringLowDiskMode(lastUpdatedOn, state); + } + + /// Initializes a new instance of ServerEndpointRecallStatus. + /// Last updated timestamp. + /// Total count of recall errors. + /// Array of recall errors. + /// A new instance for mocking. + public static ServerEndpointRecallStatus ServerEndpointRecallStatus(DateTimeOffset? lastUpdatedOn = null, long? totalRecallErrorsCount = null, IEnumerable recallErrors = null) + { + recallErrors ??= new List(); + + return new ServerEndpointRecallStatus(lastUpdatedOn, totalRecallErrorsCount, recallErrors?.ToList()); + } + + /// Initializes a new instance of ServerEndpointRecallError. + /// Error code (HResult). + /// Count of occurences of the error. + /// A new instance for mocking. + public static ServerEndpointRecallError ServerEndpointRecallError(int? errorCode = null, long? count = null) + { + return new ServerEndpointRecallError(errorCode, count); + } + + /// Initializes a new instance of StorageSyncRegisteredServerData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Registered Server Certificate. + /// Registered Server Agent Version. + /// Registered Server Agent Version Status. + /// Registered Server Agent Version Expiration Date. + /// Registered Server OS Version. + /// Registered Server Management Error Code. + /// Registered Server last heart beat. + /// Registered Server Provisioning State. + /// Registered Server serverRole. + /// Registered Server clusterId. + /// Registered Server clusterName. + /// Registered Server serverId. + /// Registered Server storageSyncServiceUid. + /// Registered Server lastWorkflowId. + /// Resource Last Operation Name. + /// Resource discoveryEndpointUri. + /// Resource Location. + /// Service Location. + /// Friendly Name. + /// Management Endpoint Uri. + /// Telemetry Endpoint Uri. + /// Monitoring Configuration. + /// Server name. + /// A new instance for mocking. + public static StorageSyncRegisteredServerData StorageSyncRegisteredServerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, BinaryData serverCertificate = null, string agentVersion = null, RegisteredServerAgentVersionStatus? agentVersionStatus = null, DateTimeOffset? agentVersionExpireOn = null, string serverOSVersion = null, int? serverManagementErrorCode = null, string lastHeartbeat = null, string provisioningState = null, string serverRole = null, Guid? clusterId = null, string clusterName = null, Guid? serverId = null, Guid? storageSyncServiceUid = null, string lastWorkflowId = null, string lastOperationName = null, Uri discoveryEndpointUri = null, AzureLocation? resourceLocation = null, AzureLocation? serviceLocation = null, string friendlyName = null, Uri managementEndpointUri = null, Uri monitoringEndpointUri = null, string monitoringConfiguration = null, string serverName = null) + { + return new StorageSyncRegisteredServerData(id, name, resourceType, systemData, serverCertificate, agentVersion, agentVersionStatus, agentVersionExpireOn, serverOSVersion, serverManagementErrorCode, lastHeartbeat, provisioningState, serverRole, clusterId, clusterName, serverId, storageSyncServiceUid, lastWorkflowId, lastOperationName, discoveryEndpointUri, resourceLocation, serviceLocation, friendlyName, managementEndpointUri, monitoringEndpointUri, monitoringConfiguration, serverName); + } + + /// Initializes a new instance of StorageSyncRegisteredServerCreateOrUpdateContent. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Registered Server Certificate. + /// Registered Server Agent Version. + /// Registered Server OS Version. + /// Registered Server last heart beat. + /// Registered Server serverRole. + /// Registered Server clusterId. + /// Registered Server clusterName. + /// Registered Server serverId. + /// Friendly Name. + /// A new instance for mocking. + public static StorageSyncRegisteredServerCreateOrUpdateContent StorageSyncRegisteredServerCreateOrUpdateContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, BinaryData serverCertificate = null, string agentVersion = null, string serverOSVersion = null, string lastHeartbeat = null, string serverRole = null, Guid? clusterId = null, string clusterName = null, Guid? serverId = null, string friendlyName = null) + { + return new StorageSyncRegisteredServerCreateOrUpdateContent(id, name, resourceType, systemData, serverCertificate, agentVersion, serverOSVersion, lastHeartbeat, serverRole, clusterId, clusterName, serverId, friendlyName); + } + + /// Initializes a new instance of StorageSyncWorkflowData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// last step name. + /// workflow status. + /// operation direction. + /// workflow steps. + /// workflow last operation identifier. + /// workflow command name. + /// workflow created timestamp. + /// workflow last status timestamp. + /// A new instance for mocking. + public static StorageSyncWorkflowData StorageSyncWorkflowData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string lastStepName = null, StorageSyncWorkflowStatus? status = null, StorageSyncOperationDirection? operation = null, string steps = null, Guid? lastOperationId = null, string commandName = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastStatusUpdatedOn = null) + { + return new StorageSyncWorkflowData(id, name, resourceType, systemData, lastStepName, status, operation, steps, lastOperationId, commandName, createdOn, lastStatusUpdatedOn); + } + } +} diff --git a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/autorest.md b/sdk/storagesync/Azure.ResourceManager.StorageSync/src/autorest.md index 86f891fc5f5a..6fd5a5d303d5 100644 --- a/sdk/storagesync/Azure.ResourceManager.StorageSync/src/autorest.md +++ b/sdk/storagesync/Azure.ResourceManager.StorageSync/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: StorageSync namespace: Azure.ResourceManager.StorageSync diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/CHANGELOG.md b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/CHANGELOG.md index 0e19af2b9bd2..ce4add5c5022 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/CHANGELOG.md +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.2.0-beta.1 (Unreleased) +## 1.2.0-beta.1 (2023-05-31) ### 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.1 (2023-02-20) ### Other Changes diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/api/Azure.ResourceManager.StreamAnalytics.netstandard2.0.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/api/Azure.ResourceManager.StreamAnalytics.netstandard2.0.cs index 3d8c57d99120..20e99ec9a361 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/api/Azure.ResourceManager.StreamAnalytics.netstandard2.0.cs +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/api/Azure.ResourceManager.StreamAnalytics.netstandard2.0.cs @@ -353,6 +353,39 @@ public partial class AggregateFunctionProperties : Azure.ResourceManager.StreamA { public AggregateFunctionProperties() { } } + public static partial class ArmStreamAnalyticsModelFactory + { + public static Azure.ResourceManager.StreamAnalytics.Models.AggregateFunctionProperties AggregateFunctionProperties(Azure.ETag? etag = default(Azure.ETag?), System.Collections.Generic.IEnumerable inputs = null, string outputDataType = null, Azure.ResourceManager.StreamAnalytics.Models.StreamingJobFunctionBinding binding = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.LastOutputEventTimestamp LastOutputEventTimestamp(System.DateTimeOffset? lastOutputEventOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.ReferenceInputProperties ReferenceInputProperties(Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsDataSerialization serialization = null, System.Collections.Generic.IEnumerable diagnosticsConditions = null, Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.StreamAnalytics.Models.StreamingCompressionType? compressionType = default(Azure.ResourceManager.StreamAnalytics.Models.StreamingCompressionType?), string partitionKey = null, Azure.ResourceManager.StreamAnalytics.Models.StreamingJobInputWatermarkMode? watermarkMode = default(Azure.ResourceManager.StreamAnalytics.Models.StreamingJobInputWatermarkMode?), Azure.ResourceManager.StreamAnalytics.Models.ReferenceInputDataSource datasource = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.ScalarFunctionProperties ScalarFunctionProperties(Azure.ETag? etag = default(Azure.ETag?), System.Collections.Generic.IEnumerable inputs = null, string outputDataType = null, Azure.ResourceManager.StreamAnalytics.Models.StreamingJobFunctionBinding binding = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.StreamAnalyticsClusterData StreamAnalyticsClusterData(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.StreamAnalytics.Models.StreamAnalyticsClusterSku sku = null, Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsClusterProperties properties = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsClusterJob StreamAnalyticsClusterJob(Azure.Core.ResourceIdentifier id = null, int? streamingUnits = default(int?), Azure.ResourceManager.StreamAnalytics.Models.StreamingJobState? jobState = default(Azure.ResourceManager.StreamAnalytics.Models.StreamingJobState?)) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsClusterProperties StreamAnalyticsClusterProperties(System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.Guid? clusterId = default(System.Guid?), Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsClusterProvisioningState? provisioningState = default(Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsClusterProvisioningState?), int? capacityAllocated = default(int?), int? capacityAssigned = default(int?)) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsError StreamAnalyticsError(string code = null, string message = null, string target = null, System.Collections.Generic.IEnumerable details = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsErrorDetails StreamAnalyticsErrorDetails(string code = null, string target = null, string message = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.StreamAnalyticsPrivateEndpointData StreamAnalyticsPrivateEndpointData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsPrivateEndpointProperties properties = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsPrivateEndpointProperties StreamAnalyticsPrivateEndpointProperties(System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable manualPrivateLinkServiceConnections = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsPrivateLinkConnectionState StreamAnalyticsPrivateLinkConnectionState(string status = null, string description = null, string actionsRequired = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsPrivateLinkServiceConnection StreamAnalyticsPrivateLinkServiceConnection(Azure.Core.ResourceIdentifier privateLinkServiceId = null, System.Collections.Generic.IEnumerable groupIds = null, string requestMessage = null, Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsPrivateLinkConnectionState privateLinkServiceConnectionState = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryCompilationError StreamAnalyticsQueryCompilationError(string message = null, int? startLine = default(int?), int? startColumn = default(int?), int? endLine = default(int?), int? endColumn = default(int?), bool? isGlobal = default(bool?)) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryCompilationResult StreamAnalyticsQueryCompilationResult(System.Collections.Generic.IEnumerable errors = null, System.Collections.Generic.IEnumerable warnings = null, System.Collections.Generic.IEnumerable inputs = null, System.Collections.Generic.IEnumerable outputs = null, System.Collections.Generic.IEnumerable functions = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryTestingResult StreamAnalyticsQueryTestingResult(string code = null, string message = null, string target = null, System.Collections.Generic.IEnumerable details = null, Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryTestingResultStatus? status = default(Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsQueryTestingResultStatus?), System.Uri outputUri = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsResourceTestStatus StreamAnalyticsResourceTestStatus(string status = null, string code = null, string message = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsSampleInputResult StreamAnalyticsSampleInputResult(string code = null, string message = null, string target = null, System.Collections.Generic.IEnumerable details = null, Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsSampleInputResultStatus? status = default(Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsSampleInputResultStatus?), System.Collections.Generic.IEnumerable diagnostics = null, System.Uri eventsDownloadUri = null, System.DateTimeOffset? lastArrivedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsSubResource StreamAnalyticsSubResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?)) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsSubscriptionQuota StreamAnalyticsSubscriptionQuota(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), int? maxCount = default(int?), int? currentCount = default(int?)) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsTestDatasourceResult StreamAnalyticsTestDatasourceResult(string code = null, string message = null, string target = null, System.Collections.Generic.IEnumerable details = null, Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsTestDatasourceResultStatus? status = default(Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsTestDatasourceResultStatus?)) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.StreamingJobData StreamingJobData(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.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsSkuName? skuName = default(Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsSkuName?), System.Guid? jobId = default(System.Guid?), string provisioningState = null, string jobState = null, Azure.ResourceManager.StreamAnalytics.Models.StreamingJobType? jobType = default(Azure.ResourceManager.StreamAnalytics.Models.StreamingJobType?), Azure.ResourceManager.StreamAnalytics.Models.StreamingJobOutputStartMode? outputStartMode = default(Azure.ResourceManager.StreamAnalytics.Models.StreamingJobOutputStartMode?), System.DateTimeOffset? outputStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastOutputEventOn = default(System.DateTimeOffset?), Azure.ResourceManager.StreamAnalytics.Models.EventsOutOfOrderPolicy? eventsOutOfOrderPolicy = default(Azure.ResourceManager.StreamAnalytics.Models.EventsOutOfOrderPolicy?), Azure.ResourceManager.StreamAnalytics.Models.StreamingJobOutputErrorPolicy? outputErrorPolicy = default(Azure.ResourceManager.StreamAnalytics.Models.StreamingJobOutputErrorPolicy?), int? eventsOutOfOrderMaxDelayInSeconds = default(int?), int? eventsLateArrivalMaxDelayInSeconds = default(int?), Azure.Core.AzureLocation? dataLocalion = default(Azure.Core.AzureLocation?), Azure.ResourceManager.StreamAnalytics.Models.StreamingJobCompatibilityLevel? compatibilityLevel = default(Azure.ResourceManager.StreamAnalytics.Models.StreamingJobCompatibilityLevel?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable inputs = null, Azure.ResourceManager.StreamAnalytics.StreamingJobTransformationData transformation = null, System.Collections.Generic.IEnumerable outputs = null, System.Collections.Generic.IEnumerable functions = null, Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.StreamAnalytics.Models.StreamingJobStorageAccount jobStorageAccount = null, Azure.ResourceManager.StreamAnalytics.Models.StreamingJobContentStoragePolicy? contentStoragePolicy = default(Azure.ResourceManager.StreamAnalytics.Models.StreamingJobContentStoragePolicy?), Azure.ResourceManager.StreamAnalytics.Models.StreamingJobExternal externals = null, Azure.Core.ResourceIdentifier clusterId = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamingJobDiagnosticCondition StreamingJobDiagnosticCondition(System.DateTimeOffset? since = default(System.DateTimeOffset?), string code = null, string message = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.StreamingJobFunctionData StreamingJobFunctionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ResourceManager.StreamAnalytics.Models.StreamingJobFunctionProperties properties = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamingJobFunctionProperties StreamingJobFunctionProperties(string functionPropertiesType = null, Azure.ETag? etag = default(Azure.ETag?), System.Collections.Generic.IEnumerable inputs = null, string outputDataType = null, Azure.ResourceManager.StreamAnalytics.Models.StreamingJobFunctionBinding binding = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.StreamingJobInputData StreamingJobInputData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ResourceManager.StreamAnalytics.Models.StreamingJobInputProperties properties = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamingJobInputProperties StreamingJobInputProperties(string inputPropertiesType = null, Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsDataSerialization serialization = null, System.Collections.Generic.IEnumerable diagnosticsConditions = null, Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.StreamAnalytics.Models.StreamingCompressionType? compressionType = default(Azure.ResourceManager.StreamAnalytics.Models.StreamingCompressionType?), string partitionKey = null, Azure.ResourceManager.StreamAnalytics.Models.StreamingJobInputWatermarkMode? watermarkMode = default(Azure.ResourceManager.StreamAnalytics.Models.StreamingJobInputWatermarkMode?)) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.StreamingJobOutputData StreamingJobOutputData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ResourceManager.StreamAnalytics.Models.StreamingJobOutputDataSource datasource = null, System.TimeSpan? timeFrame = default(System.TimeSpan?), float? sizeWindow = default(float?), Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsDataSerialization serialization = null, System.Collections.Generic.IEnumerable diagnosticsConditions = null, Azure.ETag? etag = default(Azure.ETag?), System.Collections.Generic.IEnumerable lastOutputEventTimestamps = null, Azure.ResourceManager.StreamAnalytics.Models.StreamingJobOutputWatermarkProperties watermarkSettings = null) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.StreamingJobTransformationData StreamingJobTransformationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), int? streamingUnits = default(int?), System.Collections.Generic.IEnumerable validStreamingUnits = null, string query = null, Azure.ETag? etag = default(Azure.ETag?)) { throw null; } + public static Azure.ResourceManager.StreamAnalytics.Models.StreamInputProperties StreamInputProperties(Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsDataSerialization serialization = null, System.Collections.Generic.IEnumerable diagnosticsConditions = null, Azure.ETag? etag = default(Azure.ETag?), Azure.ResourceManager.StreamAnalytics.Models.StreamingCompressionType? compressionType = default(Azure.ResourceManager.StreamAnalytics.Models.StreamingCompressionType?), string partitionKey = null, Azure.ResourceManager.StreamAnalytics.Models.StreamingJobInputWatermarkMode? watermarkMode = default(Azure.ResourceManager.StreamAnalytics.Models.StreamingJobInputWatermarkMode?), Azure.ResourceManager.StreamAnalytics.Models.StreamInputDataSource datasource = null) { throw null; } + } public partial class AvroFormatSerialization : Azure.ResourceManager.StreamAnalytics.Models.StreamAnalyticsDataSerialization { public AvroFormatSerialization() { } diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/ArmStreamAnalyticsModelFactory.cs b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/ArmStreamAnalyticsModelFactory.cs new file mode 100644 index 000000000000..98e10a1efce2 --- /dev/null +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/Generated/ArmStreamAnalyticsModelFactory.cs @@ -0,0 +1,498 @@ +// 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.Models; +using Azure.ResourceManager.StreamAnalytics; + +namespace Azure.ResourceManager.StreamAnalytics.Models +{ + /// Model factory for models. + public static partial class ArmStreamAnalyticsModelFactory + { + /// Initializes a new instance of StreamingJobFunctionData. + /// Resource Id. + /// Resource name. + /// Resource type. + /// + /// The properties that are associated with a function. + /// 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 StreamingJobFunctionData StreamingJobFunctionData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, StreamingJobFunctionProperties properties = null) + { + return new StreamingJobFunctionData(id, name, resourceType, properties); + } + + /// Initializes a new instance of StreamingJobFunctionProperties. + /// Indicates the type of function. + /// The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + /// + /// Describes the output of a function. + /// + /// The physical binding of the function. For example, in the Azure Machine Learning web service’s case, this describes the endpoint. + /// 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 StreamingJobFunctionProperties StreamingJobFunctionProperties(string functionPropertiesType = null, ETag? etag = null, IEnumerable inputs = null, string outputDataType = null, StreamingJobFunctionBinding binding = null) + { + inputs ??= new List(); + + return new UnknownFunctionProperties(functionPropertiesType, etag, inputs?.ToList(), outputDataType != null ? new StreamingJobFunctionOutput(outputDataType) : null, binding); + } + + /// Initializes a new instance of StreamAnalyticsSubResource. + /// Resource Id. + /// Resource name. + /// Resource type. + /// A new instance for mocking. + public static StreamAnalyticsSubResource StreamAnalyticsSubResource(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null) + { + return new StreamAnalyticsSubResource(id, name, resourceType); + } + + /// Initializes a new instance of StreamAnalyticsError. + /// Error code. + /// Error message. + /// Error target. + /// Error details. + /// A new instance for mocking. + public static StreamAnalyticsError StreamAnalyticsError(string code = null, string message = null, string target = null, IEnumerable details = null) + { + details ??= new List(); + + return new StreamAnalyticsError(code, message, target, details?.ToList()); + } + + /// Initializes a new instance of StreamAnalyticsErrorDetails. + /// Error code. + /// Error target. + /// Error message. + /// A new instance for mocking. + public static StreamAnalyticsErrorDetails StreamAnalyticsErrorDetails(string code = null, string target = null, string message = null) + { + return new StreamAnalyticsErrorDetails(code, target, message); + } + + /// Initializes a new instance of StreamAnalyticsResourceTestStatus. + /// The status of the test operation. + /// Error code associated with the error that occurred. + /// Describes the error in detail. + /// A new instance for mocking. + public static StreamAnalyticsResourceTestStatus StreamAnalyticsResourceTestStatus(string status = null, string code = null, string message = null) + { + return new StreamAnalyticsResourceTestStatus(status, code, message); + } + + /// Initializes a new instance of StreamingJobInputData. + /// Resource Id. + /// Resource name. + /// Resource type. + /// + /// The properties that are associated with an input. Required on PUT (CreateOrReplace) requests. + /// 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 StreamingJobInputData StreamingJobInputData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, StreamingJobInputProperties properties = null) + { + return new StreamingJobInputData(id, name, resourceType, properties); + } + + /// Initializes a new instance of StreamingJobInputProperties. + /// Indicates whether the input is a source of reference data or stream data. Required on PUT (CreateOrReplace) requests. + /// + /// Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace) requests. + /// 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 . + /// + /// Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention. + /// The current entity tag for the input. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + /// Describes how input data is compressed. + /// partitionKey Describes a key in the input data which is used for partitioning the input data. + /// Settings which determine whether to read watermark events. + /// A new instance for mocking. + public static StreamingJobInputProperties StreamingJobInputProperties(string inputPropertiesType = null, StreamAnalyticsDataSerialization serialization = null, IEnumerable diagnosticsConditions = null, ETag? etag = null, StreamingCompressionType? compressionType = null, string partitionKey = null, StreamingJobInputWatermarkMode? watermarkMode = null) + { + diagnosticsConditions ??= new List(); + + return new UnknownInputProperties(inputPropertiesType, serialization, diagnosticsConditions != null ? new StreamingJobDiagnostics(diagnosticsConditions?.ToList()) : null, etag, compressionType.HasValue ? new StreamingCompression(compressionType.Value) : null, partitionKey, watermarkMode != null ? new StreamingJobInputWatermarkProperties(watermarkMode) : null); + } + + /// Initializes a new instance of StreamingJobDiagnosticCondition. + /// The UTC timestamp of when the condition started. Customers should be able to find a corresponding event in the ops log around this time. + /// The opaque diagnostic code. + /// The human-readable message describing the condition in detail. Localized in the Accept-Language of the client request. + /// A new instance for mocking. + public static StreamingJobDiagnosticCondition StreamingJobDiagnosticCondition(DateTimeOffset? since = null, string code = null, string message = null) + { + return new StreamingJobDiagnosticCondition(since, code, message); + } + + /// Initializes a new instance of StreamingJobOutputData. + /// Resource Id. + /// Resource name. + /// Resource type. + /// + /// Describes the data source that output will be written to. Required on PUT (CreateOrReplace) requests. + /// 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 . + /// + /// The time frame for filtering Stream Analytics job outputs. + /// The size window to constrain a Stream Analytics output to. + /// + /// Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace) requests. + /// 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 . + /// + /// Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention. + /// The current entity tag for the output. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + /// A list of the last output event times for each output partition. The index of the array corresponds to the partition number. + /// Settings which determine whether to send watermarks to downstream. + /// A new instance for mocking. + public static StreamingJobOutputData StreamingJobOutputData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, StreamingJobOutputDataSource datasource = null, TimeSpan? timeFrame = null, float? sizeWindow = null, StreamAnalyticsDataSerialization serialization = null, IEnumerable diagnosticsConditions = null, ETag? etag = null, IEnumerable lastOutputEventTimestamps = null, StreamingJobOutputWatermarkProperties watermarkSettings = null) + { + diagnosticsConditions ??= new List(); + lastOutputEventTimestamps ??= new List(); + + return new StreamingJobOutputData(id, name, resourceType, datasource, timeFrame, sizeWindow, serialization, diagnosticsConditions != null ? new StreamingJobDiagnostics(diagnosticsConditions?.ToList()) : null, etag, lastOutputEventTimestamps?.ToList(), watermarkSettings); + } + + /// Initializes a new instance of LastOutputEventTimestamp. + /// The last output event time. + /// The time that the last update happened. + /// A new instance for mocking. + public static LastOutputEventTimestamp LastOutputEventTimestamp(DateTimeOffset? lastOutputEventOn = null, DateTimeOffset? lastUpdatedOn = null) + { + return new LastOutputEventTimestamp(lastOutputEventOn, lastUpdatedOn); + } + + /// Initializes a new instance of StreamingJobData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Describes the managed identity assigned to this job that can be used to authenticate with inputs and outputs. Current supported identity types: SystemAssigned, UserAssigned, SystemAssigned,UserAssigned. + /// Describes the SKU of the streaming job. Required on PUT (CreateOrReplace) requests. + /// A GUID uniquely identifying the streaming job. This GUID is generated upon creation of the streaming job. + /// Describes the provisioning status of the streaming job. + /// Describes the state of the streaming job. + /// Describes the type of the job. Valid modes are `Cloud` and 'Edge'. + /// This property should only be utilized when it is desired that the job be started immediately upon creation. Value may be JobStartTime, CustomTime, or LastOutputEventTime to indicate whether the starting point of the output event stream should start whenever the job is started, start at a custom user time stamp specified via the outputStartTime property, or start from the last event output time. + /// Value is either an ISO-8601 formatted time stamp that indicates the starting point of the output event stream, or null to indicate that the output event stream will start whenever the streaming job is started. This property must have a value if outputStartMode is set to CustomTime. + /// Value is either an ISO-8601 formatted timestamp indicating the last output event time of the streaming job or null indicating that output has not yet been produced. In case of multiple outputs or multiple streams, this shows the latest value in that set. + /// Indicates the policy to apply to events that arrive out of order in the input event stream. + /// Indicates the policy to apply to events that arrive at the output and cannot be written to the external storage due to being malformed (missing column values, column values of wrong type or size). + /// The maximum tolerable delay in seconds where out-of-order events can be adjusted to be back in order. + /// The maximum tolerable delay in seconds where events arriving late could be included. Supported range is -1 to 1814399 (20.23:59:59 days) and -1 is used to specify wait indefinitely. If the property is absent, it is interpreted to have a value of -1. + /// The data locale of the stream analytics job. Value should be the name of a supported .NET Culture from the set https://msdn.microsoft.com/en-us/library/system.globalization.culturetypes(v=vs.110).aspx. Defaults to 'en-US' if none specified. + /// Controls certain runtime behaviors of the streaming job. + /// Value is an ISO-8601 formatted UTC timestamp indicating when the streaming job was created. + /// A list of one or more inputs to the streaming job. The name property for each input is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual input. + /// Indicates the query and the number of streaming units to use for the streaming job. The name property of the transformation is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual transformation. + /// A list of one or more outputs for the streaming job. The name property for each output is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual output. + /// A list of one or more functions for the streaming job. The name property for each function is required when specifying this property in a PUT request. This property cannot be modify via a PATCH operation. You must use the PATCH API available for the individual transformation. + /// The current entity tag for the streaming job. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + /// The properties that are associated with an Azure Storage account with MSI. + /// Valid values are JobStorageAccount and SystemAccount. If set to JobStorageAccount, this requires the user to also specify jobStorageAccount property. . + /// The storage account where the custom code artifacts are located. + /// The cluster which streaming jobs will run on. + /// A new instance for mocking. + public static StreamingJobData StreamingJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, StreamAnalyticsSkuName? skuName = null, Guid? jobId = null, string provisioningState = null, string jobState = null, StreamingJobType? jobType = null, StreamingJobOutputStartMode? outputStartMode = null, DateTimeOffset? outputStartOn = null, DateTimeOffset? lastOutputEventOn = null, EventsOutOfOrderPolicy? eventsOutOfOrderPolicy = null, StreamingJobOutputErrorPolicy? outputErrorPolicy = null, int? eventsOutOfOrderMaxDelayInSeconds = null, int? eventsLateArrivalMaxDelayInSeconds = null, AzureLocation? dataLocalion = null, StreamingJobCompatibilityLevel? compatibilityLevel = null, DateTimeOffset? createdOn = null, IEnumerable inputs = null, StreamingJobTransformationData transformation = null, IEnumerable outputs = null, IEnumerable functions = null, ETag? etag = null, StreamingJobStorageAccount jobStorageAccount = null, StreamingJobContentStoragePolicy? contentStoragePolicy = null, StreamingJobExternal externals = null, ResourceIdentifier clusterId = null) + { + tags ??= new Dictionary(); + inputs ??= new List(); + outputs ??= new List(); + functions ??= new List(); + + return new StreamingJobData(id, name, resourceType, systemData, tags, location, identity, skuName != null ? new StreamAnalyticsSku(skuName) : null, jobId, provisioningState, jobState, jobType, outputStartMode, outputStartOn, lastOutputEventOn, eventsOutOfOrderPolicy, outputErrorPolicy, eventsOutOfOrderMaxDelayInSeconds, eventsLateArrivalMaxDelayInSeconds, dataLocalion, compatibilityLevel, createdOn, inputs?.ToList(), transformation, outputs?.ToList(), functions?.ToList(), etag, jobStorageAccount, contentStoragePolicy, externals, clusterId != null ? new ClusterInfo(clusterId) : null); + } + + /// Initializes a new instance of StreamingJobTransformationData. + /// Resource Id. + /// Resource name. + /// Resource type. + /// Specifies the number of streaming units that the streaming job uses. + /// Specifies the valid streaming units a streaming job can scale to. + /// Specifies the query that will be run in the streaming job. You can learn more about the Stream Analytics Query Language (SAQL) here: https://msdn.microsoft.com/library/azure/dn834998 . Required on PUT (CreateOrReplace) requests. + /// The current entity tag for the transformation. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + /// A new instance for mocking. + public static StreamingJobTransformationData StreamingJobTransformationData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, int? streamingUnits = null, IEnumerable validStreamingUnits = null, string query = null, ETag? etag = null) + { + validStreamingUnits ??= new List(); + + return new StreamingJobTransformationData(id, name, resourceType, streamingUnits, validStreamingUnits?.ToList(), query, etag); + } + + /// Initializes a new instance of StreamAnalyticsSubscriptionQuota. + /// Resource Id. + /// Resource name. + /// Resource type. + /// The max permitted usage of this resource. + /// The current usage of this resource. + /// A new instance for mocking. + public static StreamAnalyticsSubscriptionQuota StreamAnalyticsSubscriptionQuota(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, int? maxCount = null, int? currentCount = null) + { + return new StreamAnalyticsSubscriptionQuota(id, name, resourceType, maxCount, currentCount); + } + + /// Initializes a new instance of StreamAnalyticsQueryTestingResult. + /// Error code. + /// Error message. + /// Error target. + /// Error details. + /// The status of the query testing request. + /// The SAS URL to the outputs payload. + /// A new instance for mocking. + public static StreamAnalyticsQueryTestingResult StreamAnalyticsQueryTestingResult(string code = null, string message = null, string target = null, IEnumerable details = null, StreamAnalyticsQueryTestingResultStatus? status = null, Uri outputUri = null) + { + details ??= new List(); + + return new StreamAnalyticsQueryTestingResult(code, message, target, details?.ToList(), status, outputUri); + } + + /// Initializes a new instance of StreamAnalyticsQueryCompilationResult. + /// Error messages produced by the compiler. + /// Warning messages produced by the compiler. + /// All input names used by the query. + /// All output names used by the query. + /// All function names used by the query. + /// A new instance for mocking. + public static StreamAnalyticsQueryCompilationResult StreamAnalyticsQueryCompilationResult(IEnumerable errors = null, IEnumerable warnings = null, IEnumerable inputs = null, IEnumerable outputs = null, IEnumerable functions = null) + { + errors ??= new List(); + warnings ??= new List(); + inputs ??= new List(); + outputs ??= new List(); + functions ??= new List(); + + return new StreamAnalyticsQueryCompilationResult(errors?.ToList(), warnings?.ToList(), inputs?.ToList(), outputs?.ToList(), functions?.ToList()); + } + + /// Initializes a new instance of StreamAnalyticsQueryCompilationError. + /// The content of the error message. + /// Describes the error location in the original query. Not set if isGlobal is true. + /// Describes the error location in the original query. Not set if isGlobal is true. + /// Describes the error location in the original query. Not set if isGlobal is true. + /// Describes the error location in the original query. Not set if isGlobal is true. + /// Whether the error is not for a specific part but for the entire query. + /// A new instance for mocking. + public static StreamAnalyticsQueryCompilationError StreamAnalyticsQueryCompilationError(string message = null, int? startLine = null, int? startColumn = null, int? endLine = null, int? endColumn = null, bool? isGlobal = null) + { + return new StreamAnalyticsQueryCompilationError(message, startLine, startColumn, endLine, endColumn, isGlobal); + } + + /// Initializes a new instance of StreamAnalyticsSampleInputResult. + /// Error code. + /// Error message. + /// Error target. + /// Error details. + /// The status of the sample input request. + /// Diagnostics messages. E.g. message indicating some partitions from the input have no data. + /// A SAS URL to download the sampled input data. + /// The timestamp for the last event in the data. It is in DateTime format. + /// A new instance for mocking. + public static StreamAnalyticsSampleInputResult StreamAnalyticsSampleInputResult(string code = null, string message = null, string target = null, IEnumerable details = null, StreamAnalyticsSampleInputResultStatus? status = null, IEnumerable diagnostics = null, Uri eventsDownloadUri = null, DateTimeOffset? lastArrivedOn = null) + { + details ??= new List(); + diagnostics ??= new List(); + + return new StreamAnalyticsSampleInputResult(code, message, target, details?.ToList(), status, diagnostics?.ToList(), eventsDownloadUri, lastArrivedOn); + } + + /// Initializes a new instance of StreamAnalyticsTestDatasourceResult. + /// Error code. + /// Error message. + /// Error target. + /// Error details. + /// The status of the sample output request. + /// A new instance for mocking. + public static StreamAnalyticsTestDatasourceResult StreamAnalyticsTestDatasourceResult(string code = null, string message = null, string target = null, IEnumerable details = null, StreamAnalyticsTestDatasourceResultStatus? status = null) + { + details ??= new List(); + + return new StreamAnalyticsTestDatasourceResult(code, message, target, details?.ToList(), status); + } + + /// Initializes a new instance of StreamAnalyticsClusterData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The SKU of the cluster. This determines the size/capacity of the cluster. Required on PUT (CreateOrUpdate) requests. + /// The current entity tag for the cluster. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + /// The properties associated with a Stream Analytics cluster. + /// A new instance for mocking. + public static StreamAnalyticsClusterData StreamAnalyticsClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, StreamAnalyticsClusterSku sku = null, ETag? etag = null, StreamAnalyticsClusterProperties properties = null) + { + tags ??= new Dictionary(); + + return new StreamAnalyticsClusterData(id, name, resourceType, systemData, tags, location, sku, etag, properties); + } + + /// Initializes a new instance of StreamAnalyticsClusterProperties. + /// The date this cluster was created. + /// Unique identifier for the cluster. + /// The status of the cluster provisioning. The three terminal states are: Succeeded, Failed and Canceled. + /// Represents the number of streaming units currently being used on the cluster. + /// Represents the sum of the SUs of all streaming jobs associated with the cluster. If all of the jobs were running, this would be the capacity allocated. + /// A new instance for mocking. + public static StreamAnalyticsClusterProperties StreamAnalyticsClusterProperties(DateTimeOffset? createdOn = null, Guid? clusterId = null, StreamAnalyticsClusterProvisioningState? provisioningState = null, int? capacityAllocated = null, int? capacityAssigned = null) + { + return new StreamAnalyticsClusterProperties(createdOn, clusterId, provisioningState, capacityAllocated, capacityAssigned); + } + + /// Initializes a new instance of StreamAnalyticsClusterJob. + /// Resource ID of the streaming job. + /// The number of streaming units that are used by the streaming job. + /// The current execution state of the streaming job. + /// A new instance for mocking. + public static StreamAnalyticsClusterJob StreamAnalyticsClusterJob(ResourceIdentifier id = null, int? streamingUnits = null, StreamingJobState? jobState = null) + { + return new StreamAnalyticsClusterJob(id, streamingUnits, jobState); + } + + /// Initializes a new instance of StreamAnalyticsPrivateEndpointData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The properties associated with a private endpoint. + /// Unique opaque string (generally a GUID) that represents the metadata state of the resource (private endpoint) and changes whenever the resource is updated. Required on PUT (CreateOrUpdate) requests. + /// A new instance for mocking. + public static StreamAnalyticsPrivateEndpointData StreamAnalyticsPrivateEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, StreamAnalyticsPrivateEndpointProperties properties = null, ETag? etag = null) + { + return new StreamAnalyticsPrivateEndpointData(id, name, resourceType, systemData, properties, etag); + } + + /// Initializes a new instance of StreamAnalyticsPrivateEndpointProperties. + /// The date when this private endpoint was created. + /// A list of connections to the remote resource. Immutable after it is set. + /// A new instance for mocking. + public static StreamAnalyticsPrivateEndpointProperties StreamAnalyticsPrivateEndpointProperties(DateTimeOffset? createdOn = null, IEnumerable manualPrivateLinkServiceConnections = null) + { + manualPrivateLinkServiceConnections ??= new List(); + + return new StreamAnalyticsPrivateEndpointProperties(createdOn, manualPrivateLinkServiceConnections?.ToList()); + } + + /// Initializes a new instance of StreamAnalyticsPrivateLinkServiceConnection. + /// The resource id of the private link service. Required on PUT (CreateOrUpdate) requests. + /// The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to. Required on PUT (CreateOrUpdate) requests. + /// A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars. + /// A collection of read-only information about the state of the connection to the private remote resource. + /// A new instance for mocking. + public static StreamAnalyticsPrivateLinkServiceConnection StreamAnalyticsPrivateLinkServiceConnection(ResourceIdentifier privateLinkServiceId = null, IEnumerable groupIds = null, string requestMessage = null, StreamAnalyticsPrivateLinkConnectionState privateLinkServiceConnectionState = null) + { + groupIds ??= new List(); + + return new StreamAnalyticsPrivateLinkServiceConnection(privateLinkServiceId, groupIds?.ToList(), requestMessage, privateLinkServiceConnectionState); + } + + /// Initializes a new instance of StreamAnalyticsPrivateLinkConnectionState. + /// Indicates whether the connection has been Approved/Rejected/Removed by the owner of the remote resource/service. + /// The reason for approval/rejection of the connection. + /// A message indicating if changes on the service provider require any updates on the consumer. + /// A new instance for mocking. + public static StreamAnalyticsPrivateLinkConnectionState StreamAnalyticsPrivateLinkConnectionState(string status = null, string description = null, string actionsRequired = null) + { + return new StreamAnalyticsPrivateLinkConnectionState(status, description, actionsRequired); + } + + /// Initializes a new instance of ScalarFunctionProperties. + /// The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + /// + /// Describes the output of a function. + /// + /// The physical binding of the function. For example, in the Azure Machine Learning web service’s case, this describes the endpoint. + /// 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 ScalarFunctionProperties ScalarFunctionProperties(ETag? etag = null, IEnumerable inputs = null, string outputDataType = null, StreamingJobFunctionBinding binding = null) + { + inputs ??= new List(); + + return new ScalarFunctionProperties("Scalar", etag, inputs?.ToList(), outputDataType != null ? new StreamingJobFunctionOutput(outputDataType) : null, binding); + } + + /// Initializes a new instance of AggregateFunctionProperties. + /// The current entity tag for the function. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + /// + /// Describes the output of a function. + /// + /// The physical binding of the function. For example, in the Azure Machine Learning web service’s case, this describes the endpoint. + /// 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 AggregateFunctionProperties AggregateFunctionProperties(ETag? etag = null, IEnumerable inputs = null, string outputDataType = null, StreamingJobFunctionBinding binding = null) + { + inputs ??= new List(); + + return new AggregateFunctionProperties("Aggregate", etag, inputs?.ToList(), outputDataType != null ? new StreamingJobFunctionOutput(outputDataType) : null, binding); + } + + /// Initializes a new instance of StreamInputProperties. + /// + /// Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace) requests. + /// 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 . + /// + /// Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention. + /// The current entity tag for the input. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + /// Describes how input data is compressed. + /// partitionKey Describes a key in the input data which is used for partitioning the input data. + /// Settings which determine whether to read watermark events. + /// + /// Describes an input data source that contains stream data. Required on PUT (CreateOrReplace) requests. + /// 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 StreamInputProperties StreamInputProperties(StreamAnalyticsDataSerialization serialization = null, IEnumerable diagnosticsConditions = null, ETag? etag = null, StreamingCompressionType? compressionType = null, string partitionKey = null, StreamingJobInputWatermarkMode? watermarkMode = null, StreamInputDataSource datasource = null) + { + diagnosticsConditions ??= new List(); + + return new StreamInputProperties("Stream", serialization, diagnosticsConditions != null ? new StreamingJobDiagnostics(diagnosticsConditions?.ToList()) : null, etag, compressionType.HasValue ? new StreamingCompression(compressionType.Value) : null, partitionKey, watermarkMode != null ? new StreamingJobInputWatermarkProperties(watermarkMode) : null, datasource); + } + + /// Initializes a new instance of ReferenceInputProperties. + /// + /// Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace) requests. + /// 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 . + /// + /// Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention. + /// The current entity tag for the input. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency. + /// Describes how input data is compressed. + /// partitionKey Describes a key in the input data which is used for partitioning the input data. + /// Settings which determine whether to read watermark events. + /// + /// Describes an input data source that contains reference data. Required on PUT (CreateOrReplace) requests. + /// 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 ReferenceInputProperties ReferenceInputProperties(StreamAnalyticsDataSerialization serialization = null, IEnumerable diagnosticsConditions = null, ETag? etag = null, StreamingCompressionType? compressionType = null, string partitionKey = null, StreamingJobInputWatermarkMode? watermarkMode = null, ReferenceInputDataSource datasource = null) + { + diagnosticsConditions ??= new List(); + + return new ReferenceInputProperties("Reference", serialization, diagnosticsConditions != null ? new StreamingJobDiagnostics(diagnosticsConditions?.ToList()) : null, etag, compressionType.HasValue ? new StreamingCompression(compressionType.Value) : null, partitionKey, watermarkMode != null ? new StreamingJobInputWatermarkProperties(watermarkMode) : null, datasource); + } + } +} diff --git a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/autorest.md b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/autorest.md index 5bcb395b92f3..e771607288c9 100644 --- a/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/src/autorest.md +++ b/sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/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: StreamAnalytics namespace: Azure.ResourceManager.StreamAnalytics diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/CHANGELOG.md b/sdk/subscription/Azure.ResourceManager.Subscription/CHANGELOG.md index 0f4da17b717c..9d4b997f7fcc 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/CHANGELOG.md +++ b/sdk/subscription/Azure.ResourceManager.Subscription/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0-beta.1 (2023-05-31) ### 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-20) ### Other Changes diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/api/Azure.ResourceManager.Subscription.netstandard2.0.cs b/sdk/subscription/Azure.ResourceManager.Subscription/api/Azure.ResourceManager.Subscription.netstandard2.0.cs index e4891d89bf9d..99397d1a7235 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/api/Azure.ResourceManager.Subscription.netstandard2.0.cs +++ b/sdk/subscription/Azure.ResourceManager.Subscription/api/Azure.ResourceManager.Subscription.netstandard2.0.cs @@ -161,6 +161,20 @@ internal AcceptOwnershipStatus() { } public System.Guid? SubscriptionTenantId { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary Tags { get { throw null; } } } + public static partial class ArmSubscriptionModelFactory + { + public static Azure.ResourceManager.Subscription.Models.AcceptOwnershipStatus AcceptOwnershipStatus(string subscriptionId = null, Azure.ResourceManager.Subscription.Models.AcceptOwnershipState? acceptOwnershipState = default(Azure.ResourceManager.Subscription.Models.AcceptOwnershipState?), Azure.ResourceManager.Subscription.Models.AcceptOwnershipProvisioningState? provisioningState = default(Azure.ResourceManager.Subscription.Models.AcceptOwnershipProvisioningState?), string billingOwner = null, System.Guid? subscriptionTenantId = default(System.Guid?), string displayName = null, System.Collections.Generic.IReadOnlyDictionary tags = null) { throw null; } + public static Azure.ResourceManager.Subscription.BillingAccountPolicyData BillingAccountPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Subscription.Models.BillingAccountPolicyProperties properties = null) { throw null; } + public static Azure.ResourceManager.Subscription.Models.BillingAccountPolicyProperties BillingAccountPolicyProperties(System.Collections.Generic.IEnumerable serviceTenants = null, bool? allowTransfers = default(bool?)) { throw null; } + public static Azure.ResourceManager.Subscription.Models.CanceledSubscriptionId CanceledSubscriptionId(string subscriptionId = null) { throw null; } + public static Azure.ResourceManager.Subscription.Models.EnabledSubscriptionId EnabledSubscriptionId(string subscriptionId = null) { throw null; } + public static Azure.ResourceManager.Subscription.Models.RenamedSubscriptionId RenamedSubscriptionId(string subscriptionId = null) { throw null; } + public static Azure.ResourceManager.Subscription.Models.ServiceTenant ServiceTenant(System.Guid? tenantId = default(System.Guid?), string tenantName = null) { throw null; } + public static Azure.ResourceManager.Subscription.SubscriptionAliasData SubscriptionAliasData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Subscription.Models.SubscriptionAliasProperties properties = null) { throw null; } + public static Azure.ResourceManager.Subscription.Models.SubscriptionAliasProperties SubscriptionAliasProperties(string subscriptionId = null, string displayName = null, Azure.ResourceManager.Subscription.Models.SubscriptionProvisioningState? provisioningState = default(Azure.ResourceManager.Subscription.Models.SubscriptionProvisioningState?), System.Uri acceptOwnershipUri = null, Azure.ResourceManager.Subscription.Models.AcceptOwnershipState? acceptOwnershipState = default(Azure.ResourceManager.Subscription.Models.AcceptOwnershipState?), string billingScope = null, Azure.ResourceManager.Subscription.Models.SubscriptionWorkload? workload = default(Azure.ResourceManager.Subscription.Models.SubscriptionWorkload?), string resellerId = null, string subscriptionOwnerId = null, string managementGroupId = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary tags = null) { throw null; } + public static Azure.ResourceManager.Subscription.TenantPolicyData TenantPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Subscription.Models.TenantPolicyProperties properties = null) { throw null; } + public static Azure.ResourceManager.Subscription.Models.TenantPolicyProperties TenantPolicyProperties(string policyId = null, bool? blockSubscriptionsLeavingTenant = default(bool?), bool? blockSubscriptionsIntoTenant = default(bool?), System.Collections.Generic.IEnumerable exemptedPrincipals = null) { throw null; } + } public partial class BillingAccountPolicyProperties { internal BillingAccountPolicyProperties() { } diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/ArmSubscriptionModelFactory.cs b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/ArmSubscriptionModelFactory.cs new file mode 100644 index 000000000000..8918a2d13cbb --- /dev/null +++ b/sdk/subscription/Azure.ResourceManager.Subscription/src/Generated/ArmSubscriptionModelFactory.cs @@ -0,0 +1,155 @@ +// 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.Models; +using Azure.ResourceManager.Subscription; + +namespace Azure.ResourceManager.Subscription.Models +{ + /// Model factory for models. + public static partial class ArmSubscriptionModelFactory + { + /// Initializes a new instance of CanceledSubscriptionId. + /// The ID of the canceled subscription. + /// A new instance for mocking. + public static CanceledSubscriptionId CanceledSubscriptionId(string subscriptionId = null) + { + return new CanceledSubscriptionId(subscriptionId); + } + + /// Initializes a new instance of RenamedSubscriptionId. + /// The ID of the subscriptions that is being renamed. + /// A new instance for mocking. + public static RenamedSubscriptionId RenamedSubscriptionId(string subscriptionId = null) + { + return new RenamedSubscriptionId(subscriptionId); + } + + /// Initializes a new instance of EnabledSubscriptionId. + /// The ID of the subscriptions that is being enabled. + /// A new instance for mocking. + public static EnabledSubscriptionId EnabledSubscriptionId(string subscriptionId = null) + { + return new EnabledSubscriptionId(subscriptionId); + } + + /// Initializes a new instance of SubscriptionAliasData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Subscription Alias response properties. + /// A new instance for mocking. + public static SubscriptionAliasData SubscriptionAliasData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SubscriptionAliasProperties properties = null) + { + return new SubscriptionAliasData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of SubscriptionAliasProperties. + /// Newly created subscription Id. + /// The display name of the subscription. + /// The provisioning state of the resource. + /// Url to accept ownership of the subscription. + /// The accept ownership state of the resource. + /// + /// Billing scope of the subscription. + /// For CustomerLed and FieldLed - /billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName} + /// For PartnerLed - /billingAccounts/{billingAccountName}/customers/{customerName} + /// For Legacy EA - /billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName} + /// + /// The workload type of the subscription. It can be either Production or DevTest. + /// Reseller Id. + /// Owner Id of the subscription. + /// The Management Group Id. + /// Created Time. + /// Tags for the subscription. + /// A new instance for mocking. + public static SubscriptionAliasProperties SubscriptionAliasProperties(string subscriptionId = null, string displayName = null, SubscriptionProvisioningState? provisioningState = null, Uri acceptOwnershipUri = null, AcceptOwnershipState? acceptOwnershipState = null, string billingScope = null, SubscriptionWorkload? workload = null, string resellerId = null, string subscriptionOwnerId = null, string managementGroupId = null, DateTimeOffset? createdOn = null, IReadOnlyDictionary tags = null) + { + tags ??= new Dictionary(); + + return new SubscriptionAliasProperties(subscriptionId, displayName, provisioningState, acceptOwnershipUri, acceptOwnershipState, billingScope, workload, resellerId, subscriptionOwnerId, managementGroupId, createdOn, tags); + } + + /// Initializes a new instance of AcceptOwnershipStatus. + /// Newly created subscription Id. + /// The accept ownership state of the resource. + /// The provisioning state of the resource. + /// UPN of the billing owner. + /// Tenant Id of the subscription. + /// The display name of the subscription. + /// Tags for the subscription. + /// A new instance for mocking. + public static AcceptOwnershipStatus AcceptOwnershipStatus(string subscriptionId = null, AcceptOwnershipState? acceptOwnershipState = null, AcceptOwnershipProvisioningState? provisioningState = null, string billingOwner = null, Guid? subscriptionTenantId = null, string displayName = null, IReadOnlyDictionary tags = null) + { + tags ??= new Dictionary(); + + return new AcceptOwnershipStatus(subscriptionId, acceptOwnershipState, provisioningState, billingOwner, subscriptionTenantId, displayName, tags); + } + + /// Initializes a new instance of TenantPolicyData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Tenant policy properties. + /// A new instance for mocking. + public static TenantPolicyData TenantPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, TenantPolicyProperties properties = null) + { + return new TenantPolicyData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of TenantPolicyProperties. + /// Policy Id. + /// Blocks the leaving of subscriptions from user's tenant. + /// Blocks the entering of subscriptions into user's tenant. + /// List of user objectIds that are exempted from the set subscription tenant policies for the user's tenant. + /// A new instance for mocking. + public static TenantPolicyProperties TenantPolicyProperties(string policyId = null, bool? blockSubscriptionsLeavingTenant = null, bool? blockSubscriptionsIntoTenant = null, IEnumerable exemptedPrincipals = null) + { + exemptedPrincipals ??= new List(); + + return new TenantPolicyProperties(policyId, blockSubscriptionsLeavingTenant, blockSubscriptionsIntoTenant, exemptedPrincipals?.ToList()); + } + + /// Initializes a new instance of BillingAccountPolicyData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Billing account policies response properties. + /// A new instance for mocking. + public static BillingAccountPolicyData BillingAccountPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, BillingAccountPolicyProperties properties = null) + { + return new BillingAccountPolicyData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of BillingAccountPolicyProperties. + /// Service tenant for the billing account. + /// Determine if the transfers are allowed for the billing account. + /// A new instance for mocking. + public static BillingAccountPolicyProperties BillingAccountPolicyProperties(IEnumerable serviceTenants = null, bool? allowTransfers = null) + { + serviceTenants ??= new List(); + + return new BillingAccountPolicyProperties(serviceTenants?.ToList(), allowTransfers); + } + + /// Initializes a new instance of ServiceTenant. + /// Service tenant id. + /// Service tenant name. + /// A new instance for mocking. + public static ServiceTenant ServiceTenant(Guid? tenantId = null, string tenantName = null) + { + return new ServiceTenant(tenantId, tenantName); + } + } +} diff --git a/sdk/subscription/Azure.ResourceManager.Subscription/src/autorest.md b/sdk/subscription/Azure.ResourceManager.Subscription/src/autorest.md index 820faa6018b5..67da99c083c3 100644 --- a/sdk/subscription/Azure.ResourceManager.Subscription/src/autorest.md +++ b/sdk/subscription/Azure.ResourceManager.Subscription/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: Subscription namespace: Azure.ResourceManager.Subscription diff --git a/sdk/support/Azure.ResourceManager.Support/CHANGELOG.md b/sdk/support/Azure.ResourceManager.Support/CHANGELOG.md index 6c1dd810b8f2..fcdede79c0ae 100644 --- a/sdk/support/Azure.ResourceManager.Support/CHANGELOG.md +++ b/sdk/support/Azure.ResourceManager.Support/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0-beta.1 (2023-05-31) ### 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-17) ### Other Changes diff --git a/sdk/support/Azure.ResourceManager.Support/api/Azure.ResourceManager.Support.netstandard2.0.cs b/sdk/support/Azure.ResourceManager.Support/api/Azure.ResourceManager.Support.netstandard2.0.cs index 2b9c9cba8a92..40a36713f7b8 100644 --- a/sdk/support/Azure.ResourceManager.Support/api/Azure.ResourceManager.Support.netstandard2.0.cs +++ b/sdk/support/Azure.ResourceManager.Support/api/Azure.ResourceManager.Support.netstandard2.0.cs @@ -171,6 +171,15 @@ protected SupportTicketResource() { } } namespace Azure.ResourceManager.Support.Models { + public static partial class ArmSupportModelFactory + { + public static Azure.ResourceManager.Support.ProblemClassificationData ProblemClassificationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null) { throw null; } + public static Azure.ResourceManager.Support.SupportAzureServiceData SupportAzureServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable resourceTypes = null) { throw null; } + public static Azure.ResourceManager.Support.Models.SupportNameAvailabilityResult SupportNameAvailabilityResult(bool? isNameAvailable = default(bool?), string reason = null, string message = null) { throw null; } + public static Azure.ResourceManager.Support.Models.SupportServiceLevelAgreement SupportServiceLevelAgreement(System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), int? slaInMinutes = default(int?)) { throw null; } + public static Azure.ResourceManager.Support.SupportTicketCommunicationData SupportTicketCommunicationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Support.Models.SupportTicketCommunicationType? communicationType = default(Azure.ResourceManager.Support.Models.SupportTicketCommunicationType?), Azure.ResourceManager.Support.Models.SupportTicketCommunicationDirection? communicationDirection = default(Azure.ResourceManager.Support.Models.SupportTicketCommunicationDirection?), string sender = null, string subject = null, string body = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.Support.SupportTicketData SupportTicketData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string supportTicketId = null, string description = null, string problemClassificationId = null, string problemClassificationDisplayName = null, Azure.ResourceManager.Support.Models.SupportSeverityLevel? severity = default(Azure.ResourceManager.Support.Models.SupportSeverityLevel?), string enrollmentId = null, bool? require24X7Response = default(bool?), Azure.ResourceManager.Support.Models.SupportContactProfile contactDetails = null, Azure.ResourceManager.Support.Models.SupportServiceLevelAgreement serviceLevelAgreement = null, string supportEngineerEmailAddress = null, string supportPlanType = null, string title = null, System.DateTimeOffset? problemStartOn = default(System.DateTimeOffset?), string serviceId = null, string serviceDisplayName = null, string status = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), Azure.Core.ResourceIdentifier technicalTicketDetailsResourceId = null, Azure.ResourceManager.Support.Models.QuotaTicketDetails quotaTicketDetails = null) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct PreferredContactMethod : System.IEquatable { diff --git a/sdk/support/Azure.ResourceManager.Support/src/Generated/ArmSupportModelFactory.cs b/sdk/support/Azure.ResourceManager.Support/src/Generated/ArmSupportModelFactory.cs new file mode 100644 index 000000000000..f4529204f6ea --- /dev/null +++ b/sdk/support/Azure.ResourceManager.Support/src/Generated/ArmSupportModelFactory.cs @@ -0,0 +1,115 @@ +// 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.Models; +using Azure.ResourceManager.Support; + +namespace Azure.ResourceManager.Support.Models +{ + /// Model factory for models. + public static partial class ArmSupportModelFactory + { + /// Initializes a new instance of SupportAzureServiceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Localized name of the Azure service. + /// ARM Resource types. + /// A new instance for mocking. + public static SupportAzureServiceData SupportAzureServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null, IEnumerable resourceTypes = null) + { + resourceTypes ??= new List(); + + return new SupportAzureServiceData(id, name, resourceType, systemData, displayName, resourceTypes?.ToList()); + } + + /// Initializes a new instance of ProblemClassificationData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Localized name of problem classification. + /// A new instance for mocking. + public static ProblemClassificationData ProblemClassificationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string displayName = null) + { + return new ProblemClassificationData(id, name, resourceType, systemData, displayName); + } + + /// Initializes a new instance of SupportNameAvailabilityResult. + /// Indicates whether the name is available. + /// The reason why the name is not available. + /// The detailed error message describing why the name is not available. + /// A new instance for mocking. + public static SupportNameAvailabilityResult SupportNameAvailabilityResult(bool? isNameAvailable = null, string reason = null, string message = null) + { + return new SupportNameAvailabilityResult(isNameAvailable, reason, message); + } + + /// Initializes a new instance of SupportTicketData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// System generated support ticket Id that is unique. + /// Detailed description of the question or issue. + /// Each Azure service has its own set of issue categories, also known as problem classification. This parameter is the unique Id for the type of problem you are experiencing. + /// Localized name of problem classification. + /// A value that indicates the urgency of the case, which in turn determines the response time according to the service level agreement of the technical support plan you have with Azure. Note: 'Highest critical impact', also known as the 'Emergency - Severe impact' level in the Azure portal is reserved only for our Premium customers. + /// Enrollment Id associated with the support ticket. + /// Indicates if this requires a 24x7 response from Azure. + /// Contact information of the user requesting to create a support ticket. + /// Service Level Agreement information for this support ticket. + /// Information about the support engineer working on this support ticket. + /// Support plan type associated with the support ticket. + /// Title of the support ticket. + /// Time in UTC (ISO 8601 format) when the problem started. + /// This is the resource Id of the Azure service resource associated with the support ticket. + /// Localized name of the Azure service. + /// Status of the support ticket. + /// Time in UTC (ISO 8601 format) when the support ticket was created. + /// Time in UTC (ISO 8601 format) when the support ticket was last modified. + /// Additional ticket details associated with a technical support ticket request. + /// Additional ticket details associated with a quota support ticket request. + /// A new instance for mocking. + public static SupportTicketData SupportTicketData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string supportTicketId = null, string description = null, string problemClassificationId = null, string problemClassificationDisplayName = null, SupportSeverityLevel? severity = null, string enrollmentId = null, bool? require24X7Response = null, SupportContactProfile contactDetails = null, SupportServiceLevelAgreement serviceLevelAgreement = null, string supportEngineerEmailAddress = null, string supportPlanType = null, string title = null, DateTimeOffset? problemStartOn = null, string serviceId = null, string serviceDisplayName = null, string status = null, DateTimeOffset? createdOn = null, DateTimeOffset? modifiedOn = null, ResourceIdentifier technicalTicketDetailsResourceId = null, QuotaTicketDetails quotaTicketDetails = null) + { + return new SupportTicketData(id, name, resourceType, systemData, supportTicketId, description, problemClassificationId, problemClassificationDisplayName, severity, enrollmentId, require24X7Response, contactDetails, serviceLevelAgreement, supportEngineerEmailAddress != null ? new SupportEngineer(supportEngineerEmailAddress) : null, supportPlanType, title, problemStartOn, serviceId, serviceDisplayName, status, createdOn, modifiedOn, technicalTicketDetailsResourceId != null ? new TechnicalTicketDetails(technicalTicketDetailsResourceId) : null, quotaTicketDetails); + } + + /// Initializes a new instance of SupportServiceLevelAgreement. + /// Time in UTC (ISO 8601 format) when the service level agreement starts. + /// Time in UTC (ISO 8601 format) when the service level agreement expires. + /// Service Level Agreement in minutes. + /// A new instance for mocking. + public static SupportServiceLevelAgreement SupportServiceLevelAgreement(DateTimeOffset? startOn = null, DateTimeOffset? expireOn = null, int? slaInMinutes = null) + { + return new SupportServiceLevelAgreement(startOn, expireOn, slaInMinutes); + } + + /// Initializes a new instance of SupportTicketCommunicationData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Communication type. + /// Direction of communication. + /// Email address of the sender. This property is required if called by a service principal. + /// Subject of the communication. + /// Body of the communication. + /// Time in UTC (ISO 8601 format) when the communication was created. + /// A new instance for mocking. + public static SupportTicketCommunicationData SupportTicketCommunicationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SupportTicketCommunicationType? communicationType = null, SupportTicketCommunicationDirection? communicationDirection = null, string sender = null, string subject = null, string body = null, DateTimeOffset? createdOn = null) + { + return new SupportTicketCommunicationData(id, name, resourceType, systemData, communicationType, communicationDirection, sender, subject, body, createdOn); + } + } +} diff --git a/sdk/support/Azure.ResourceManager.Support/src/autorest.md b/sdk/support/Azure.ResourceManager.Support/src/autorest.md index b80fef93e611..2b256d4679e4 100644 --- a/sdk/support/Azure.ResourceManager.Support/src/autorest.md +++ b/sdk/support/Azure.ResourceManager.Support/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: Support namespace: Azure.ResourceManager.Support