diff --git a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/CHANGELOG.md b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/CHANGELOG.md index a41c206b3786..5e3dc29a6936 100644 --- a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/CHANGELOG.md +++ b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0-beta.1 (2023-05-30) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.0.1 (2023-02-16) ### Other Changes diff --git a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/api/Azure.ResourceManager.MarketplaceOrdering.netstandard2.0.cs b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/api/Azure.ResourceManager.MarketplaceOrdering.netstandard2.0.cs index 287a3ed8dff9..191030e74ff6 100644 --- a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/api/Azure.ResourceManager.MarketplaceOrdering.netstandard2.0.cs +++ b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/api/Azure.ResourceManager.MarketplaceOrdering.netstandard2.0.cs @@ -90,4 +90,8 @@ namespace Azure.ResourceManager.MarketplaceOrdering.Models public static bool operator !=(Azure.ResourceManager.MarketplaceOrdering.Models.AgreementOfferType left, Azure.ResourceManager.MarketplaceOrdering.Models.AgreementOfferType right) { throw null; } public override string ToString() { throw null; } } + public static partial class ArmMarketplaceOrderingModelFactory + { + public static Azure.ResourceManager.MarketplaceOrdering.MarketplaceAgreementTermData MarketplaceAgreementTermData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string publisher = null, string product = null, string plan = null, System.Uri licenseTextLink = null, System.Uri privacyPolicyLink = null, System.Uri marketplaceTermsLink = null, System.DateTimeOffset? retrievedOn = default(System.DateTimeOffset?), string signature = null, bool? isAccepted = default(bool?)) { throw null; } + } } diff --git a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/ArmMarketplaceOrderingModelFactory.cs b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/ArmMarketplaceOrderingModelFactory.cs new file mode 100644 index 000000000000..919e6c3d1a16 --- /dev/null +++ b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/Generated/ArmMarketplaceOrderingModelFactory.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; +using Azure.ResourceManager.MarketplaceOrdering; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MarketplaceOrdering.Models +{ + /// Model factory for models. + public static partial class ArmMarketplaceOrderingModelFactory + { + /// Initializes a new instance of MarketplaceAgreementTermData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Publisher identifier string of image being deployed. + /// Offer identifier string of image being deployed. + /// Plan identifier string of image being deployed. + /// Link to HTML with Microsoft and Publisher terms. + /// Link to the privacy policy of the publisher. + /// Link to HTML with Azure Marketplace terms. + /// Date and time in UTC of when the terms were accepted. This is empty if Accepted is false. + /// Terms signature. + /// If any version of the terms have been accepted, otherwise false. + /// A new instance for mocking. + public static MarketplaceAgreementTermData MarketplaceAgreementTermData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string publisher = null, string product = null, string plan = null, Uri licenseTextLink = null, Uri privacyPolicyLink = null, Uri marketplaceTermsLink = null, DateTimeOffset? retrievedOn = null, string signature = null, bool? isAccepted = null) + { + return new MarketplaceAgreementTermData(id, name, resourceType, systemData, publisher, product, plan, licenseTextLink, privacyPolicyLink, marketplaceTermsLink, retrievedOn, signature, isAccepted); + } + } +} diff --git a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/autorest.md b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/autorest.md index e87c559e329a..264d3908847d 100644 --- a/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/src/autorest.md +++ b/sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/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: MarketplaceOrdering namespace: Azure.ResourceManager.MarketplaceOrdering diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/CHANGELOG.md b/sdk/mediaservices/Azure.ResourceManager.Media/CHANGELOG.md index f6d569b3d8bd..ed7710253b68 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/CHANGELOG.md +++ b/sdk/mediaservices/Azure.ResourceManager.Media/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.3.0-beta.1 (Unreleased) +## 1.3.0-beta.1 (2023-05-30) ### 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.2.0 (2023-03-22) ### Features Added diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/api/Azure.ResourceManager.Media.netstandard2.0.cs b/sdk/mediaservices/Azure.ResourceManager.Media/api/Azure.ResourceManager.Media.netstandard2.0.cs index 569fe560330e..df1bc87b166a 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/api/Azure.ResourceManager.Media.netstandard2.0.cs +++ b/sdk/mediaservices/Azure.ResourceManager.Media/api/Azure.ResourceManager.Media.netstandard2.0.cs @@ -784,6 +784,48 @@ public AkamaiSignatureHeaderAuthenticationKey() { } public System.DateTimeOffset? ExpireOn { get { throw null; } set { } } public string Identifier { get { throw null; } set { } } } + public static partial class ArmMediaModelFactory + { + public static Azure.ResourceManager.Media.Models.AccountEncryption AccountEncryption(Azure.ResourceManager.Media.Models.AccountEncryptionKeyType keyType = default(Azure.ResourceManager.Media.Models.AccountEncryptionKeyType), Azure.ResourceManager.Media.Models.KeyVaultProperties keyVaultProperties = null, Azure.ResourceManager.Media.Models.ResourceIdentity identity = null, string status = null) { throw null; } + public static Azure.ResourceManager.Media.Models.AudioTrack AudioTrack(string fileName = null, string displayName = null, string languageCode = null, Azure.ResourceManager.Media.Models.HlsSettings hlsSettings = null, string dashRole = null, int? mpeg4TrackId = default(int?), int? bitRate = default(int?)) { throw null; } + public static Azure.ResourceManager.Media.ContentKeyPolicyData ContentKeyPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? policyId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null, System.Collections.Generic.IEnumerable options = null) { throw null; } + public static Azure.ResourceManager.Media.Models.ContentKeyPolicyOption ContentKeyPolicyOption(System.Guid? policyOptionId = default(System.Guid?), string name = null, Azure.ResourceManager.Media.Models.ContentKeyPolicyConfiguration configuration = null, Azure.ResourceManager.Media.Models.ContentKeyPolicyRestriction restriction = null) { throw null; } + public static Azure.ResourceManager.Media.Models.ContentKeyPolicyProperties ContentKeyPolicyProperties(System.Guid? policyId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string description = null, System.Collections.Generic.IEnumerable options = null) { throw null; } + public static Azure.ResourceManager.Media.Models.EdgeUsageDataCollectionPolicy EdgeUsageDataCollectionPolicy(string dataCollectionFrequency = null, string dataReportingFrequency = null, System.TimeSpan? maxAllowedUnreportedUsageDuration = default(System.TimeSpan?), Azure.ResourceManager.Media.Models.EdgeUsageDataEventHub eventHubDetails = null) { throw null; } + public static Azure.ResourceManager.Media.Models.EdgeUsageDataEventHub EdgeUsageDataEventHub(string name = null, string @namespace = null, string token = null) { throw null; } + public static Azure.ResourceManager.Media.Models.KeyVaultProperties KeyVaultProperties(string keyIdentifier = null, string currentKeyIdentifier = null) { throw null; } + public static Azure.ResourceManager.Media.MediaAssetData MediaAssetData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? assetId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string alternateId = null, string description = null, string container = null, string storageAccountName = null, Azure.ResourceManager.Media.Models.MediaAssetStorageEncryptionFormat? storageEncryptionFormat = default(Azure.ResourceManager.Media.Models.MediaAssetStorageEncryptionFormat?), string encryptionScope = null) { throw null; } + public static Azure.ResourceManager.Media.Models.MediaAssetFileEncryptionMetadata MediaAssetFileEncryptionMetadata(string initializationVector = null, string assetFileName = null, System.Guid assetFileId = default(System.Guid)) { throw null; } + public static Azure.ResourceManager.Media.MediaAssetFilterData MediaAssetFilterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Media.Models.PresentationTimeRange presentationTimeRange = null, int? firstQualityBitrate = default(int?), System.Collections.Generic.IEnumerable tracks = null) { throw null; } + public static Azure.ResourceManager.Media.Models.MediaAssetStreamingLocator MediaAssetStreamingLocator(string name = null, string assetName = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.Guid? streamingLocatorId = default(System.Guid?), string streamingPolicyName = null, string defaultContentKeyPolicyName = null) { throw null; } + public static Azure.ResourceManager.Media.MediaAssetTrackData MediaAssetTrackData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Media.Models.MediaAssetTrackBase track = null, Azure.ResourceManager.Media.Models.MediaServicesProvisioningState? provisioningState = default(Azure.ResourceManager.Media.Models.MediaServicesProvisioningState?)) { throw null; } + public static Azure.ResourceManager.Media.MediaJobData MediaJobData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Media.Models.MediaJobState? state = default(Azure.ResourceManager.Media.Models.MediaJobState?), string description = null, Azure.ResourceManager.Media.Models.MediaJobInputBasicProperties input = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable outputs = null, Azure.ResourceManager.Media.Models.MediaJobPriority? priority = default(Azure.ResourceManager.Media.Models.MediaJobPriority?), System.Collections.Generic.IDictionary correlationData = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.Media.Models.MediaJobError MediaJobError(Azure.ResourceManager.Media.Models.MediaJobErrorCode? code = default(Azure.ResourceManager.Media.Models.MediaJobErrorCode?), string message = null, Azure.ResourceManager.Media.Models.MediaJobErrorCategory? category = default(Azure.ResourceManager.Media.Models.MediaJobErrorCategory?), Azure.ResourceManager.Media.Models.MediaJobRetry? retry = default(Azure.ResourceManager.Media.Models.MediaJobRetry?), System.Collections.Generic.IEnumerable details = null) { throw null; } + public static Azure.ResourceManager.Media.Models.MediaJobErrorDetail MediaJobErrorDetail(string code = null, string message = null) { throw null; } + public static Azure.ResourceManager.Media.Models.MediaJobOutput MediaJobOutput(string odataType = null, Azure.ResourceManager.Media.Models.MediaJobError error = null, Azure.ResourceManager.Media.Models.MediaTransformPreset presetOverride = null, Azure.ResourceManager.Media.Models.MediaJobState? state = default(Azure.ResourceManager.Media.Models.MediaJobState?), int? progress = default(int?), string label = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.Media.Models.MediaJobOutputAsset MediaJobOutputAsset(Azure.ResourceManager.Media.Models.MediaJobError error = null, Azure.ResourceManager.Media.Models.MediaTransformPreset presetOverride = null, Azure.ResourceManager.Media.Models.MediaJobState? state = default(Azure.ResourceManager.Media.Models.MediaJobState?), int? progress = default(int?), string label = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string assetName = null) { throw null; } + public static Azure.ResourceManager.Media.MediaLiveEventData MediaLiveEventData(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.Media.Models.LiveEventInput input = null, Azure.ResourceManager.Media.Models.LiveEventPreview preview = null, Azure.ResourceManager.Media.Models.LiveEventEncoding encoding = null, System.Collections.Generic.IEnumerable transcriptions = null, string provisioningState = null, Azure.ResourceManager.Media.Models.LiveEventResourceState? resourceState = default(Azure.ResourceManager.Media.Models.LiveEventResourceState?), Azure.ResourceManager.Media.Models.CrossSiteAccessPolicies crossSiteAccessPolicies = null, bool? useStaticHostname = default(bool?), string hostnamePrefix = null, System.Collections.Generic.IEnumerable streamOptions = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.Media.MediaLiveOutputData MediaLiveOutputData(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 assetName = null, System.TimeSpan? archiveWindowLength = default(System.TimeSpan?), System.TimeSpan? rewindWindowLength = default(System.TimeSpan?), string manifestName = null, int? hlsFragmentsPerTsSegment = default(int?), long? outputSnapTime = default(long?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string provisioningState = null, Azure.ResourceManager.Media.Models.LiveOutputResourceState? resourceState = default(Azure.ResourceManager.Media.Models.LiveOutputResourceState?)) { throw null; } + public static Azure.ResourceManager.Media.MediaServicesAccountData MediaServicesAccountData(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, System.Guid? mediaServicesAccountId = default(System.Guid?), System.Collections.Generic.IEnumerable storageAccounts = null, Azure.ResourceManager.Media.Models.MediaStorageAuthentication? storageAuthentication = default(Azure.ResourceManager.Media.Models.MediaStorageAuthentication?), Azure.ResourceManager.Media.Models.AccountEncryption encryption = null, Azure.ResourceManager.Media.Models.MediaAccessControl keyDeliveryAccessControl = null, Azure.ResourceManager.Media.Models.MediaServicesPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Media.Models.MediaServicesPublicNetworkAccess?), Azure.ResourceManager.Media.Models.MediaServicesProvisioningState? provisioningState = default(Azure.ResourceManager.Media.Models.MediaServicesProvisioningState?), System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Media.Models.MediaServicesMinimumTlsVersion? minimumTlsVersion = default(Azure.ResourceManager.Media.Models.MediaServicesMinimumTlsVersion?)) { throw null; } + public static Azure.ResourceManager.Media.MediaServicesAccountFilterData MediaServicesAccountFilterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Media.Models.PresentationTimeRange presentationTimeRange = null, int? firstQualityBitrate = default(int?), System.Collections.Generic.IEnumerable tracks = null) { throw null; } + public static Azure.ResourceManager.Media.Models.MediaServicesEdgePolicies MediaServicesEdgePolicies(Azure.ResourceManager.Media.Models.EdgeUsageDataCollectionPolicy usageDataCollectionPolicy = null) { throw null; } + public static Azure.ResourceManager.Media.Models.MediaServicesNameAvailabilityResult MediaServicesNameAvailabilityResult(bool isNameAvailable = false, string reason = null, string message = null) { throw null; } + public static Azure.ResourceManager.Media.MediaServicesPrivateEndpointConnectionData MediaServicesPrivateEndpointConnectionData(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.Media.Models.MediaPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.Media.Models.MediaPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.Media.Models.MediaPrivateEndpointConnectionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.Media.MediaServicesPrivateLinkResourceData MediaServicesPrivateLinkResourceData(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.Media.Models.MediaServicesStorageAccount MediaServicesStorageAccount(Azure.Core.ResourceIdentifier id = null, Azure.ResourceManager.Media.Models.MediaServicesStorageAccountType accountType = default(Azure.ResourceManager.Media.Models.MediaServicesStorageAccountType), Azure.ResourceManager.Media.Models.ResourceIdentity identity = null, string status = null) { throw null; } + public static Azure.ResourceManager.Media.MediaTransformData MediaTransformData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string description = null, System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable outputs = null) { throw null; } + public static Azure.ResourceManager.Media.Models.StorageEncryptedAssetDecryptionInfo StorageEncryptedAssetDecryptionInfo(byte[] key = null, System.Collections.Generic.IEnumerable assetFileEncryptionMetadata = null) { throw null; } + public static Azure.ResourceManager.Media.Models.StreamingEndpointCapacity StreamingEndpointCapacity(string scaleType = null, int? @default = default(int?), int? minimum = default(int?), int? maximum = default(int?)) { throw null; } + public static Azure.ResourceManager.Media.Models.StreamingEndpointCurrentSku StreamingEndpointCurrentSku(string name = null, int? capacity = default(int?)) { throw null; } + public static Azure.ResourceManager.Media.StreamingEndpointData StreamingEndpointData(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.Media.Models.StreamingEndpointCurrentSku sku = null, string description = null, int? scaleUnits = default(int?), string availabilitySetName = null, Azure.ResourceManager.Media.Models.StreamingEndpointAccessControl accessControl = null, long? maxCacheAge = default(long?), System.Collections.Generic.IEnumerable customHostNames = null, string hostName = null, bool? isCdnEnabled = default(bool?), string cdnProvider = null, string cdnProfile = null, string provisioningState = null, Azure.ResourceManager.Media.Models.StreamingEndpointResourceState? resourceState = default(Azure.ResourceManager.Media.Models.StreamingEndpointResourceState?), Azure.ResourceManager.Media.Models.CrossSiteAccessPolicies crossSiteAccessPolicies = null, System.DateTimeOffset? freeTrialEndOn = default(System.DateTimeOffset?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.Media.Models.StreamingEndpointSkuInfo StreamingEndpointSkuInfo(Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?), Azure.ResourceManager.Media.Models.StreamingEndpointCapacity capacity = null, string skuName = null) { throw null; } + public static Azure.ResourceManager.Media.Models.StreamingLocatorContentKey StreamingLocatorContentKey(System.Guid id = default(System.Guid), Azure.ResourceManager.Media.Models.StreamingLocatorContentKeyType? keyType = default(Azure.ResourceManager.Media.Models.StreamingLocatorContentKeyType?), string labelReferenceInStreamingPolicy = null, string value = null, string policyName = null, System.Collections.Generic.IEnumerable tracks = null) { throw null; } + public static Azure.ResourceManager.Media.StreamingLocatorData StreamingLocatorData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string assetName = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), System.Guid? streamingLocatorId = default(System.Guid?), string streamingPolicyName = null, string defaultContentKeyPolicyName = null, System.Collections.Generic.IEnumerable contentKeys = null, string alternativeMediaId = null, System.Collections.Generic.IEnumerable filters = null) { throw null; } + public static Azure.ResourceManager.Media.Models.StreamingPath StreamingPath(Azure.ResourceManager.Media.Models.StreamingPolicyStreamingProtocol streamingProtocol = default(Azure.ResourceManager.Media.Models.StreamingPolicyStreamingProtocol), Azure.ResourceManager.Media.Models.StreamingPathEncryptionScheme encryptionScheme = default(Azure.ResourceManager.Media.Models.StreamingPathEncryptionScheme), System.Collections.Generic.IEnumerable paths = null) { throw null; } + public static Azure.ResourceManager.Media.Models.StreamingPathsResult StreamingPathsResult(System.Collections.Generic.IEnumerable streamingPaths = null, System.Collections.Generic.IEnumerable downloadPaths = null) { throw null; } + public static Azure.ResourceManager.Media.StreamingPolicyData StreamingPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), string defaultContentKeyPolicyName = null, Azure.ResourceManager.Media.Models.EnvelopeEncryption envelopeEncryption = null, Azure.ResourceManager.Media.Models.CommonEncryptionCenc commonEncryptionCenc = null, Azure.ResourceManager.Media.Models.CommonEncryptionCbcs commonEncryptionCbcs = null, Azure.ResourceManager.Media.Models.MediaEnabledProtocols noEncryptionEnabledProtocols = null) { throw null; } + public static Azure.ResourceManager.Media.Models.TextTrack TextTrack(string fileName = null, string displayName = null, string languageCode = null, Azure.ResourceManager.Media.Models.PlayerVisibility? playerVisibility = default(Azure.ResourceManager.Media.Models.PlayerVisibility?), Azure.ResourceManager.Media.Models.HlsSettings hlsSettings = null) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AudioAnalysisMode : System.IEquatable { diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/ArmMediaModelFactory.cs b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/ArmMediaModelFactory.cs new file mode 100644 index 000000000000..eb246d30aed2 --- /dev/null +++ b/sdk/mediaservices/Azure.ResourceManager.Media/src/Generated/ArmMediaModelFactory.cs @@ -0,0 +1,635 @@ +// 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.Media; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Media.Models +{ + /// Model factory for models. + public static partial class ArmMediaModelFactory + { + /// Initializes a new instance of MediaServicesAccountFilterData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The presentation time range. + /// The first quality. + /// The tracks selection conditions. + /// A new instance for mocking. + public static MediaServicesAccountFilterData MediaServicesAccountFilterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, PresentationTimeRange presentationTimeRange = null, int? firstQualityBitrate = null, IEnumerable tracks = null) + { + tracks ??= new List(); + + return new MediaServicesAccountFilterData(id, name, resourceType, systemData, presentationTimeRange, firstQualityBitrate.HasValue ? new FirstQuality(firstQualityBitrate.Value) : null, tracks?.ToList()); + } + + /// Initializes a new instance of MediaServicesAccountData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The Managed Identity for the Media Services account. + /// The Media Services account ID. + /// The storage accounts for this resource. + /// + /// The account encryption properties. + /// The Key Delivery properties for Media Services account. + /// Whether or not public network access is allowed for resources under the Media Services account. + /// Provisioning state of the Media Services account. + /// The Private Endpoint Connections created for the Media Service account. + /// The minimum TLS version allowed for this account's requests. This is an optional property. If unspecified, a secure default value will be used. + /// A new instance for mocking. + public static MediaServicesAccountData MediaServicesAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, Guid? mediaServicesAccountId = null, IEnumerable storageAccounts = null, MediaStorageAuthentication? storageAuthentication = null, AccountEncryption encryption = null, MediaAccessControl keyDeliveryAccessControl = null, MediaServicesPublicNetworkAccess? publicNetworkAccess = null, MediaServicesProvisioningState? provisioningState = null, IEnumerable privateEndpointConnections = null, MediaServicesMinimumTlsVersion? minimumTlsVersion = null) + { + tags ??= new Dictionary(); + storageAccounts ??= new List(); + privateEndpointConnections ??= new List(); + + return new MediaServicesAccountData(id, name, resourceType, systemData, tags, location, identity, mediaServicesAccountId, storageAccounts?.ToList(), storageAuthentication, encryption, keyDeliveryAccessControl != null ? new MediaKeyDelivery(keyDeliveryAccessControl) : null, publicNetworkAccess, provisioningState, privateEndpointConnections?.ToList(), minimumTlsVersion); + } + + /// Initializes a new instance of MediaServicesStorageAccount. + /// The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts. + /// The type of the storage account. + /// The storage account identity. + /// The current status of the storage account mapping. + /// A new instance for mocking. + public static MediaServicesStorageAccount MediaServicesStorageAccount(ResourceIdentifier id = null, MediaServicesStorageAccountType accountType = default, ResourceIdentity identity = null, string status = null) + { + return new MediaServicesStorageAccount(id, accountType, identity, status); + } + + /// Initializes a new instance of AccountEncryption. + /// The type of key used to encrypt the Account Key. + /// The properties of the key used to encrypt the account. + /// The Key Vault identity. + /// The current status of the Key Vault mapping. + /// A new instance for mocking. + public static AccountEncryption AccountEncryption(AccountEncryptionKeyType keyType = default, KeyVaultProperties keyVaultProperties = null, ResourceIdentity identity = null, string status = null) + { + return new AccountEncryption(keyType, keyVaultProperties, identity, status); + } + + /// Initializes a new instance of KeyVaultProperties. + /// The URL of the Key Vault key used to encrypt the account. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey). + /// The current key used to encrypt the Media Services account, including the key version. + /// A new instance for mocking. + public static KeyVaultProperties KeyVaultProperties(string keyIdentifier = null, string currentKeyIdentifier = null) + { + return new KeyVaultProperties(keyIdentifier, currentKeyIdentifier); + } + + /// Initializes a new instance of MediaServicesPrivateEndpointConnectionData. + /// 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 MediaServicesPrivateEndpointConnectionData MediaServicesPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier privateEndpointId = null, MediaPrivateLinkServiceConnectionState connectionState = null, MediaPrivateEndpointConnectionProvisioningState? provisioningState = null) + { + return new MediaServicesPrivateEndpointConnectionData(id, name, resourceType, systemData, privateEndpointId != null ? ResourceManagerModelFactory.SubResource(privateEndpointId) : null, connectionState, provisioningState); + } + + /// Initializes a new instance of MediaServicesEdgePolicies. + /// + /// A new instance for mocking. + public static MediaServicesEdgePolicies MediaServicesEdgePolicies(EdgeUsageDataCollectionPolicy usageDataCollectionPolicy = null) + { + return new MediaServicesEdgePolicies(usageDataCollectionPolicy); + } + + /// Initializes a new instance of EdgeUsageDataCollectionPolicy. + /// Usage data collection frequency in ISO 8601 duration format e.g. PT10M , PT5H. + /// Usage data reporting frequency in ISO 8601 duration format e.g. PT10M , PT5H. + /// Maximum time for which the functionality of the device will not be hampered for not reporting the usage data. + /// Details of Event Hub where the usage will be reported. + /// A new instance for mocking. + public static EdgeUsageDataCollectionPolicy EdgeUsageDataCollectionPolicy(string dataCollectionFrequency = null, string dataReportingFrequency = null, TimeSpan? maxAllowedUnreportedUsageDuration = null, EdgeUsageDataEventHub eventHubDetails = null) + { + return new EdgeUsageDataCollectionPolicy(dataCollectionFrequency, dataReportingFrequency, maxAllowedUnreportedUsageDuration, eventHubDetails); + } + + /// Initializes a new instance of EdgeUsageDataEventHub. + /// Name of the Event Hub where usage will be reported. + /// Namespace of the Event Hub where usage will be reported. + /// SAS token needed to interact with Event Hub. + /// A new instance for mocking. + public static EdgeUsageDataEventHub EdgeUsageDataEventHub(string name = null, string @namespace = null, string token = null) + { + return new EdgeUsageDataEventHub(name, @namespace, token); + } + + /// Initializes a new instance of MediaServicesPrivateLinkResourceData. + /// 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 MediaServicesPrivateLinkResourceData MediaServicesPrivateLinkResourceData(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 MediaServicesPrivateLinkResourceData(id, name, resourceType, systemData, groupId, requiredMembers?.ToList(), requiredZoneNames?.ToList()); + } + + /// Initializes a new instance of MediaServicesNameAvailabilityResult. + /// Specifies if the name is available. + /// Specifies the reason if the name is not available. + /// Specifies the detailed reason if the name is not available. + /// A new instance for mocking. + public static MediaServicesNameAvailabilityResult MediaServicesNameAvailabilityResult(bool isNameAvailable = default, string reason = null, string message = null) + { + return new MediaServicesNameAvailabilityResult(isNameAvailable, reason, message); + } + + /// Initializes a new instance of MediaAssetData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The Asset ID. + /// The creation date of the Asset. + /// The last modified date of the Asset. + /// The alternate ID of the Asset. + /// The Asset description. + /// The name of the asset blob container. + /// The name of the storage account. + /// The Asset encryption format. One of None or MediaStorageEncryption. + /// The Asset container encryption scope in the storage account. + /// A new instance for mocking. + public static MediaAssetData MediaAssetData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Guid? assetId = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string alternateId = null, string description = null, string container = null, string storageAccountName = null, MediaAssetStorageEncryptionFormat? storageEncryptionFormat = null, string encryptionScope = null) + { + return new MediaAssetData(id, name, resourceType, systemData, assetId, createdOn, lastModifiedOn, alternateId, description, container, storageAccountName, storageEncryptionFormat, encryptionScope); + } + + /// Initializes a new instance of StorageEncryptedAssetDecryptionInfo. + /// The Asset File storage encryption key. + /// Asset File encryption metadata. + /// A new instance for mocking. + public static StorageEncryptedAssetDecryptionInfo StorageEncryptedAssetDecryptionInfo(byte[] key = null, IEnumerable assetFileEncryptionMetadata = null) + { + assetFileEncryptionMetadata ??= new List(); + + return new StorageEncryptedAssetDecryptionInfo(key, assetFileEncryptionMetadata?.ToList()); + } + + /// Initializes a new instance of MediaAssetFileEncryptionMetadata. + /// The Asset File initialization vector. + /// The Asset File name. + /// The Asset File Id. + /// A new instance for mocking. + public static MediaAssetFileEncryptionMetadata MediaAssetFileEncryptionMetadata(string initializationVector = null, string assetFileName = null, Guid assetFileId = default) + { + return new MediaAssetFileEncryptionMetadata(initializationVector, assetFileName, assetFileId); + } + + /// Initializes a new instance of MediaAssetStreamingLocator. + /// Streaming Locator name. + /// Asset Name. + /// The creation time of the Streaming Locator. + /// The start time of the Streaming Locator. + /// The end time of the Streaming Locator. + /// StreamingLocatorId of the Streaming Locator. + /// Name of the Streaming Policy used by this Streaming Locator. + /// Name of the default ContentKeyPolicy used by this Streaming Locator. + /// A new instance for mocking. + public static MediaAssetStreamingLocator MediaAssetStreamingLocator(string name = null, string assetName = null, DateTimeOffset? createdOn = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, Guid? streamingLocatorId = null, string streamingPolicyName = null, string defaultContentKeyPolicyName = null) + { + return new MediaAssetStreamingLocator(name, assetName, createdOn, startOn, endOn, streamingLocatorId, streamingPolicyName, defaultContentKeyPolicyName); + } + + /// Initializes a new instance of MediaAssetFilterData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The presentation time range. + /// The first quality. + /// The tracks selection conditions. + /// A new instance for mocking. + public static MediaAssetFilterData MediaAssetFilterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, PresentationTimeRange presentationTimeRange = null, int? firstQualityBitrate = null, IEnumerable tracks = null) + { + tracks ??= new List(); + + return new MediaAssetFilterData(id, name, resourceType, systemData, presentationTimeRange, firstQualityBitrate.HasValue ? new FirstQuality(firstQualityBitrate.Value) : null, tracks?.ToList()); + } + + /// Initializes a new instance of MediaAssetTrackData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// Detailed information about a track in the asset. + /// 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 . + /// + /// Provisioning state of the asset track. + /// A new instance for mocking. + public static MediaAssetTrackData MediaAssetTrackData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MediaAssetTrackBase track = null, MediaServicesProvisioningState? provisioningState = null) + { + return new MediaAssetTrackData(id, name, resourceType, systemData, track, provisioningState); + } + + /// Initializes a new instance of ContentKeyPolicyData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The legacy Policy ID. + /// The creation date of the Policy. + /// The last modified date of the Policy. + /// A description for the Policy. + /// The Key Policy options. + /// A new instance for mocking. + public static ContentKeyPolicyData ContentKeyPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Guid? policyId = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null, IEnumerable options = null) + { + options ??= new List(); + + return new ContentKeyPolicyData(id, name, resourceType, systemData, policyId, createdOn, lastModifiedOn, description, options?.ToList()); + } + + /// Initializes a new instance of ContentKeyPolicyProperties. + /// The legacy Policy ID. + /// The creation date of the Policy. + /// The last modified date of the Policy. + /// A description for the Policy. + /// The Key Policy options. + /// A new instance for mocking. + public static ContentKeyPolicyProperties ContentKeyPolicyProperties(Guid? policyId = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string description = null, IEnumerable options = null) + { + options ??= new List(); + + return new ContentKeyPolicyProperties(policyId, createdOn, lastModifiedOn, description, options?.ToList()); + } + + /// Initializes a new instance of ContentKeyPolicyOption. + /// The legacy Policy Option ID. + /// The Policy Option description. + /// + /// The key delivery configuration. + /// 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 requirements that must be met to deliver keys with this configuration + /// 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 ContentKeyPolicyOption ContentKeyPolicyOption(Guid? policyOptionId = null, string name = null, ContentKeyPolicyConfiguration configuration = null, ContentKeyPolicyRestriction restriction = null) + { + return new ContentKeyPolicyOption(policyOptionId, name, configuration, restriction); + } + + /// Initializes a new instance of MediaTransformData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format. + /// An optional verbose description of the Transform. + /// The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format. + /// An array of one or more TransformOutputs that the Transform should generate. + /// A new instance for mocking. + public static MediaTransformData MediaTransformData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? createdOn = null, string description = null, DateTimeOffset? lastModifiedOn = null, IEnumerable outputs = null) + { + outputs ??= new List(); + + return new MediaTransformData(id, name, resourceType, systemData, createdOn, description, lastModifiedOn, outputs?.ToList()); + } + + /// Initializes a new instance of MediaJobData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format. + /// The current state of the job. + /// Optional customer supplied description of the Job. + /// + /// The inputs for the Job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , and . + /// + /// The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format. + /// + /// The outputs for the Job. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal. + /// Customer provided key, value pairs that will be returned in Job and JobOutput state events. + /// The UTC date and time at which this Job began processing. + /// The UTC date and time at which this Job finished processing. + /// A new instance for mocking. + public static MediaJobData MediaJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? createdOn = null, MediaJobState? state = null, string description = null, MediaJobInputBasicProperties input = null, DateTimeOffset? lastModifiedOn = null, IEnumerable outputs = null, MediaJobPriority? priority = null, IDictionary correlationData = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null) + { + outputs ??= new List(); + correlationData ??= new Dictionary(); + + return new MediaJobData(id, name, resourceType, systemData, createdOn, state, description, input, lastModifiedOn, outputs?.ToList(), priority, correlationData, startOn, endOn); + } + + /// Initializes a new instance of MediaJobOutput. + /// The discriminator for derived types. + /// If the JobOutput is in the Error state, it contains the details of the error. + /// + /// A preset used to override the preset in the corresponding transform output. + /// 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 the state of the JobOutput. + /// If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property. + /// A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform. + /// The UTC date and time at which this Job Output began processing. + /// The UTC date and time at which this Job Output finished processing. + /// A new instance for mocking. + public static MediaJobOutput MediaJobOutput(string odataType = null, MediaJobError error = null, MediaTransformPreset presetOverride = null, MediaJobState? state = null, int? progress = null, string label = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null) + { + return new UnknownJobOutput(odataType, error, presetOverride, state, progress, label, startOn, endOn); + } + + /// Initializes a new instance of MediaJobError. + /// Error code describing the error. + /// A human-readable language-dependent representation of the error. + /// Helps with categorization of errors. + /// Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. + /// An array of details about specific errors that led to this reported error. + /// A new instance for mocking. + public static MediaJobError MediaJobError(MediaJobErrorCode? code = null, string message = null, MediaJobErrorCategory? category = null, MediaJobRetry? retry = null, IEnumerable details = null) + { + details ??= new List(); + + return new MediaJobError(code, message, category, retry, details?.ToList()); + } + + /// Initializes a new instance of MediaJobErrorDetail. + /// Code describing the error detail. + /// A human-readable representation of the error. + /// A new instance for mocking. + public static MediaJobErrorDetail MediaJobErrorDetail(string code = null, string message = null) + { + return new MediaJobErrorDetail(code, message); + } + + /// Initializes a new instance of StreamingPolicyData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Creation time of Streaming Policy. + /// Default ContentKey used by current Streaming Policy. + /// Configuration of EnvelopeEncryption. + /// Configuration of CommonEncryptionCenc. + /// Configuration of CommonEncryptionCbcs. + /// Configurations of NoEncryption. + /// A new instance for mocking. + public static StreamingPolicyData StreamingPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? createdOn = null, string defaultContentKeyPolicyName = null, EnvelopeEncryption envelopeEncryption = null, CommonEncryptionCenc commonEncryptionCenc = null, CommonEncryptionCbcs commonEncryptionCbcs = null, MediaEnabledProtocols noEncryptionEnabledProtocols = null) + { + return new StreamingPolicyData(id, name, resourceType, systemData, createdOn, defaultContentKeyPolicyName, envelopeEncryption, commonEncryptionCenc, commonEncryptionCbcs, noEncryptionEnabledProtocols != null ? new NoEncryption(noEncryptionEnabledProtocols) : null); + } + + /// Initializes a new instance of StreamingLocatorData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Asset Name. + /// The creation time of the Streaming Locator. + /// The start time of the Streaming Locator. + /// The end time of the Streaming Locator. + /// The StreamingLocatorId of the Streaming Locator. + /// Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and 'Predefined_MultiDrmStreaming'. + /// Name of the default ContentKeyPolicy used by this Streaming Locator. + /// The ContentKeys used by this Streaming Locator. + /// Alternative Media ID of this Streaming Locator. + /// A list of asset or account filters which apply to this streaming locator. + /// A new instance for mocking. + public static StreamingLocatorData StreamingLocatorData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string assetName = null, DateTimeOffset? createdOn = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, Guid? streamingLocatorId = null, string streamingPolicyName = null, string defaultContentKeyPolicyName = null, IEnumerable contentKeys = null, string alternativeMediaId = null, IEnumerable filters = null) + { + contentKeys ??= new List(); + filters ??= new List(); + + return new StreamingLocatorData(id, name, resourceType, systemData, assetName, createdOn, startOn, endOn, streamingLocatorId, streamingPolicyName, defaultContentKeyPolicyName, contentKeys?.ToList(), alternativeMediaId, filters?.ToList()); + } + + /// Initializes a new instance of StreamingLocatorContentKey. + /// ID of Content Key. + /// Encryption type of Content Key. + /// Label of Content Key as specified in the Streaming Policy. + /// Value of Content Key. + /// ContentKeyPolicy used by Content Key. + /// Tracks which use this Content Key. + /// A new instance for mocking. + public static StreamingLocatorContentKey StreamingLocatorContentKey(Guid id = default, StreamingLocatorContentKeyType? keyType = null, string labelReferenceInStreamingPolicy = null, string value = null, string policyName = null, IEnumerable tracks = null) + { + tracks ??= new List(); + + return new StreamingLocatorContentKey(id, keyType, labelReferenceInStreamingPolicy, value, policyName, tracks?.ToList()); + } + + /// Initializes a new instance of StreamingPathsResult. + /// Streaming Paths supported by current Streaming Locator. + /// Download Paths supported by current Streaming Locator. + /// A new instance for mocking. + public static StreamingPathsResult StreamingPathsResult(IEnumerable streamingPaths = null, IEnumerable downloadPaths = null) + { + streamingPaths ??= new List(); + downloadPaths ??= new List(); + + return new StreamingPathsResult(streamingPaths?.ToList(), downloadPaths?.ToList()); + } + + /// Initializes a new instance of StreamingPath. + /// Streaming protocol. + /// Encryption scheme. + /// Streaming paths for each protocol and encryptionScheme pair. + /// A new instance for mocking. + public static StreamingPath StreamingPath(StreamingPolicyStreamingProtocol streamingProtocol = default, StreamingPathEncryptionScheme encryptionScheme = default, IEnumerable paths = null) + { + paths ??= new List(); + + return new StreamingPath(streamingProtocol, encryptionScheme, paths?.ToList()); + } + + /// Initializes a new instance of MediaLiveEventData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// A description for the live event. + /// Live event input settings. It defines how the live event receives input from a contribution encoder. + /// Live event preview settings. Preview allows live event producers to preview the live streaming content without creating any live output. + /// Encoding settings for the live event. It configures whether a live encoder is used for the live event and settings for the live encoder if it is used. + /// Live transcription settings for the live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature. + /// The provisioning state of the live event. + /// The resource state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information. + /// Live event cross site access policies. + /// Specifies whether a static hostname would be assigned to the live event preview and ingest endpoints. This value can only be updated if the live event is in Standby state. + /// When useStaticHostname is set to true, the hostnamePrefix specifies the first part of the hostname assigned to the live event preview and ingest endpoints. The final hostname would be a combination of this prefix, the media service account name and a short code for the Azure Media Services data center. + /// The options to use for the LiveEvent. This value is specified at creation time and cannot be updated. The valid values for the array entry values are 'Default' and 'LowLatency'. + /// The creation time for the live event. + /// The last modified time of the live event. + /// A new instance for mocking. + public static MediaLiveEventData MediaLiveEventData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string description = null, LiveEventInput input = null, LiveEventPreview preview = null, LiveEventEncoding encoding = null, IEnumerable transcriptions = null, string provisioningState = null, LiveEventResourceState? resourceState = null, CrossSiteAccessPolicies crossSiteAccessPolicies = null, bool? useStaticHostname = null, string hostnamePrefix = null, IEnumerable streamOptions = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null) + { + tags ??= new Dictionary(); + transcriptions ??= new List(); + streamOptions ??= new List(); + + return new MediaLiveEventData(id, name, resourceType, systemData, tags, location, description, input, preview, encoding, transcriptions?.ToList(), provisioningState, resourceState, crossSiteAccessPolicies, useStaticHostname, hostnamePrefix, streamOptions?.ToList(), createdOn, lastModifiedOn); + } + + /// Initializes a new instance of MediaLiveOutputData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The description of the live output. + /// The asset that the live output will write to. + /// ISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window. + /// ISO 8601 time between 1 minute to the duration of archiveWindowLength to control seek-able window length during Live. The service won't use this property once LiveOutput stops. The archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event enables LL. + /// The manifest file name. If not provided, the service will generate one automatically. + /// HTTP Live Streaming (HLS) packing setting for the live output. + /// The initial timestamp that the live output will start at, any content before this value will not be archived. + /// The creation time the live output. + /// The time the live output was last modified. + /// The provisioning state of the live output. + /// The resource state of the live output. + /// A new instance for mocking. + public static MediaLiveOutputData MediaLiveOutputData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, string assetName = null, TimeSpan? archiveWindowLength = null, TimeSpan? rewindWindowLength = null, string manifestName = null, int? hlsFragmentsPerTsSegment = null, long? outputSnapTime = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string provisioningState = null, LiveOutputResourceState? resourceState = null) + { + return new MediaLiveOutputData(id, name, resourceType, systemData, description, assetName, archiveWindowLength, rewindWindowLength, manifestName, hlsFragmentsPerTsSegment != null ? new Hls(hlsFragmentsPerTsSegment) : null, outputSnapTime, createdOn, lastModifiedOn, provisioningState, resourceState); + } + + /// Initializes a new instance of StreamingEndpointData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The streaming endpoint sku. + /// The streaming endpoint description. + /// The number of scale units. Use the Scale operation to adjust this value. + /// This feature is deprecated, do not set a value for this property. + /// The access control definition of the streaming endpoint. + /// Max cache age. + /// The custom host names of the streaming endpoint. + /// The streaming endpoint host name. + /// The CDN enabled flag. + /// The CDN provider name. + /// The CDN profile name. + /// The provisioning state of the streaming endpoint. + /// The resource state of the streaming endpoint. + /// The streaming endpoint access policies. + /// The free trial expiration time. + /// The exact time the streaming endpoint was created. + /// The exact time the streaming endpoint was last modified. + /// A new instance for mocking. + public static StreamingEndpointData StreamingEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, StreamingEndpointCurrentSku sku = null, string description = null, int? scaleUnits = null, string availabilitySetName = null, StreamingEndpointAccessControl accessControl = null, long? maxCacheAge = null, IEnumerable customHostNames = null, string hostName = null, bool? isCdnEnabled = null, string cdnProvider = null, string cdnProfile = null, string provisioningState = null, StreamingEndpointResourceState? resourceState = null, CrossSiteAccessPolicies crossSiteAccessPolicies = null, DateTimeOffset? freeTrialEndOn = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null) + { + tags ??= new Dictionary(); + customHostNames ??= new List(); + + return new StreamingEndpointData(id, name, resourceType, systemData, tags, location, sku, description, scaleUnits, availabilitySetName, accessControl, maxCacheAge, customHostNames?.ToList(), hostName, isCdnEnabled, cdnProvider, cdnProfile, provisioningState, resourceState, crossSiteAccessPolicies, freeTrialEndOn, createdOn, lastModifiedOn); + } + + /// Initializes a new instance of StreamingEndpointCurrentSku. + /// The streaming endpoint sku name. + /// The streaming endpoint sku capacity. + /// A new instance for mocking. + public static StreamingEndpointCurrentSku StreamingEndpointCurrentSku(string name = null, int? capacity = null) + { + return new StreamingEndpointCurrentSku(name, capacity); + } + + /// Initializes a new instance of StreamingEndpointSkuInfo. + /// + /// The streaming endpoint sku capacity. + /// The streaming endpoint sku. + /// A new instance for mocking. + public static StreamingEndpointSkuInfo StreamingEndpointSkuInfo(ResourceType? resourceType = null, StreamingEndpointCapacity capacity = null, string skuName = null) + { + return new StreamingEndpointSkuInfo(resourceType, capacity, skuName != null ? new StreamingEndpointSku(skuName) : null); + } + + /// Initializes a new instance of StreamingEndpointCapacity. + /// + /// The streaming endpoint default capacity. + /// The streaming endpoint minimum capacity. + /// The streaming endpoint maximum capacity. + /// A new instance for mocking. + public static StreamingEndpointCapacity StreamingEndpointCapacity(string scaleType = null, int? @default = null, int? minimum = null, int? maximum = null) + { + return new StreamingEndpointCapacity(scaleType, @default, minimum, maximum); + } + + /// Initializes a new instance of AudioTrack. + /// The file name to the source file. This file is located in the storage container of the asset. + /// The display name of the audio track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA. + /// The RFC5646 language code for the audio track. + /// The HLS specific setting for the audio track. + /// The DASH specific setting for the audio track. + /// The MPEG-4 audio track ID for the audio track. + /// The stream bit rate for the audio track. + /// A new instance for mocking. + public static AudioTrack AudioTrack(string fileName = null, string displayName = null, string languageCode = null, HlsSettings hlsSettings = null, string dashRole = null, int? mpeg4TrackId = null, int? bitRate = null) + { + return new AudioTrack("#Microsoft.Media.AudioTrack", fileName, displayName, languageCode, hlsSettings, dashRole != null ? new TrackDashSettings(dashRole) : null, mpeg4TrackId, bitRate); + } + + /// Initializes a new instance of TextTrack. + /// The file name to the source file. This file is located in the storage container of the asset. + /// The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA. + /// The RFC5646 language code for the text track. + /// When PlayerVisibility is set to "Visible", the text track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to "Hidden", the text will not be available to the client. The default value is "Visible". + /// The HLS specific setting for the text track. + /// A new instance for mocking. + public static TextTrack TextTrack(string fileName = null, string displayName = null, string languageCode = null, PlayerVisibility? playerVisibility = null, HlsSettings hlsSettings = null) + { + return new TextTrack("#Microsoft.Media.TextTrack", fileName, displayName, languageCode, playerVisibility, hlsSettings); + } + + /// Initializes a new instance of MediaJobOutputAsset. + /// If the JobOutput is in the Error state, it contains the details of the error. + /// + /// A preset used to override the preset in the corresponding transform output. + /// 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 the state of the JobOutput. + /// If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property. + /// A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform. + /// The UTC date and time at which this Job Output began processing. + /// The UTC date and time at which this Job Output finished processing. + /// The name of the output Asset. + /// A new instance for mocking. + public static MediaJobOutputAsset MediaJobOutputAsset(MediaJobError error = null, MediaTransformPreset presetOverride = null, MediaJobState? state = null, int? progress = null, string label = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, string assetName = null) + { + return new MediaJobOutputAsset("#Microsoft.Media.JobOutputAsset", error, presetOverride, state, progress, label, startOn, endOn, assetName); + } + } +} diff --git a/sdk/mediaservices/Azure.ResourceManager.Media/src/autorest.md b/sdk/mediaservices/Azure.ResourceManager.Media/src/autorest.md index bd3e8087da0a..1c303a1f12db 100644 --- a/sdk/mediaservices/Azure.ResourceManager.Media/src/autorest.md +++ b/sdk/mediaservices/Azure.ResourceManager.Media/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: Media namespace: Azure.ResourceManager.Media diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/CHANGELOG.md b/sdk/mixedreality/Azure.ResourceManager.MixedReality/CHANGELOG.md index d1fdfd0d522d..1551d1d0d6b8 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/CHANGELOG.md +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0-beta.1 (2023-05-30) ### 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/mixedreality/Azure.ResourceManager.MixedReality/api/Azure.ResourceManager.MixedReality.netstandard2.0.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/api/Azure.ResourceManager.MixedReality.netstandard2.0.cs index 547475da5079..575ea096303c 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/api/Azure.ResourceManager.MixedReality.netstandard2.0.cs +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/api/Azure.ResourceManager.MixedReality.netstandard2.0.cs @@ -120,6 +120,13 @@ protected SpatialAnchorsAccountResource() { } } namespace Azure.ResourceManager.MixedReality.Models { + public static partial class ArmMixedRealityModelFactory + { + public static Azure.ResourceManager.MixedReality.Models.MixedRealityAccountKeys MixedRealityAccountKeys(string primaryKey = null, string secondaryKey = null) { throw null; } + public static Azure.ResourceManager.MixedReality.Models.MixedRealityNameAvailabilityResult MixedRealityNameAvailabilityResult(bool isNameAvailable = false, Azure.ResourceManager.MixedReality.Models.MixedRealityNameUnavailableReason? reason = default(Azure.ResourceManager.MixedReality.Models.MixedRealityNameUnavailableReason?), string message = null) { throw null; } + public static Azure.ResourceManager.MixedReality.RemoteRenderingAccountData RemoteRenderingAccountData(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.Models.ManagedServiceIdentity plan = null, Azure.ResourceManager.MixedReality.Models.MixedRealitySku sku = null, Azure.ResourceManager.MixedReality.Models.MixedRealitySku kind = null, string storageAccountName = null, System.Guid? accountId = default(System.Guid?), string accountDomain = null) { throw null; } + public static Azure.ResourceManager.MixedReality.SpatialAnchorsAccountData SpatialAnchorsAccountData(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.Models.ManagedServiceIdentity plan = null, Azure.ResourceManager.MixedReality.Models.MixedRealitySku sku = null, Azure.ResourceManager.MixedReality.Models.MixedRealitySku kind = null, string storageAccountName = null, System.Guid? accountId = default(System.Guid?), string accountDomain = null) { throw null; } + } public partial class MixedRealityAccountKeyRegenerateContent { public MixedRealityAccountKeyRegenerateContent() { } diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/ArmMixedRealityModelFactory.cs b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/ArmMixedRealityModelFactory.cs new file mode 100644 index 000000000000..86090ae3ff4a --- /dev/null +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/Generated/ArmMixedRealityModelFactory.cs @@ -0,0 +1,82 @@ +// 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.MixedReality; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.MixedReality.Models +{ + /// Model factory for models. + public static partial class ArmMixedRealityModelFactory + { + /// Initializes a new instance of MixedRealityNameAvailabilityResult. + /// if name Available. + /// Resource Name To Verify. + /// detail message. + /// A new instance for mocking. + public static MixedRealityNameAvailabilityResult MixedRealityNameAvailabilityResult(bool isNameAvailable = default, MixedRealityNameUnavailableReason? reason = null, string message = null) + { + return new MixedRealityNameAvailabilityResult(isNameAvailable, reason, message); + } + + /// Initializes a new instance of SpatialAnchorsAccountData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The identity associated with this account. Current supported identity types: SystemAssigned. + /// The plan associated with this account. Current supported identity types: SystemAssigned. + /// The sku associated with this account. + /// The kind of account, if supported. + /// The name of the storage account associated with this accountId. + /// unique id of certain account. + /// Correspond domain name of certain Spatial Anchors Account. + /// A new instance for mocking. + public static SpatialAnchorsAccountData SpatialAnchorsAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, ManagedServiceIdentity plan = null, MixedRealitySku sku = null, MixedRealitySku kind = null, string storageAccountName = null, Guid? accountId = null, string accountDomain = null) + { + tags ??= new Dictionary(); + + return new SpatialAnchorsAccountData(id, name, resourceType, systemData, tags, location, identity, plan, sku, kind, storageAccountName, accountId, accountDomain); + } + + /// Initializes a new instance of MixedRealityAccountKeys. + /// value of primary key. + /// value of secondary key. + /// A new instance for mocking. + public static MixedRealityAccountKeys MixedRealityAccountKeys(string primaryKey = null, string secondaryKey = null) + { + return new MixedRealityAccountKeys(primaryKey, secondaryKey); + } + + /// Initializes a new instance of RemoteRenderingAccountData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The identity associated with this account. Current supported identity types: SystemAssigned. + /// The plan associated with this account. Current supported identity types: SystemAssigned. + /// The sku associated with this account. + /// The kind of account, if supported. + /// The name of the storage account associated with this accountId. + /// unique id of certain account. + /// Correspond domain name of certain Spatial Anchors Account. + /// A new instance for mocking. + public static RemoteRenderingAccountData RemoteRenderingAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, ManagedServiceIdentity plan = null, MixedRealitySku sku = null, MixedRealitySku kind = null, string storageAccountName = null, Guid? accountId = null, string accountDomain = null) + { + tags ??= new Dictionary(); + + return new RemoteRenderingAccountData(id, name, resourceType, systemData, tags, location, identity, plan, sku, kind, storageAccountName, accountId, accountDomain); + } + } +} diff --git a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/autorest.md b/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/autorest.md index 88b2393d0568..71f18a21fd14 100644 --- a/sdk/mixedreality/Azure.ResourceManager.MixedReality/src/autorest.md +++ b/sdk/mixedreality/Azure.ResourceManager.MixedReality/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: MixedReality namespace: Azure.ResourceManager.MixedReality diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/CHANGELOG.md b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/CHANGELOG.md index 8640382738fa..db086773a737 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/CHANGELOG.md +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.2 (2023-05-30) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.0.0-beta.1 (2023-02-01) ### General New Features diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/api/Azure.ResourceManager.MobileNetwork.netstandard2.0.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/api/Azure.ResourceManager.MobileNetwork.netstandard2.0.cs index 5f2ec90cf481..039c96d55171 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/api/Azure.ResourceManager.MobileNetwork.netstandard2.0.cs +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/api/Azure.ResourceManager.MobileNetwork.netstandard2.0.cs @@ -588,6 +588,26 @@ public Ambr(string uplink, string downlink) { } public string Downlink { get { throw null; } set { } } public string Uplink { get { throw null; } set { } } } + public static partial class ArmMobileNetworkModelFactory + { + public static Azure.ResourceManager.MobileNetwork.Models.AsyncOperationStatus AsyncOperationStatus(string id = null, string name = null, string status = null, string resourceId = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), double? percentComplete = default(double?), System.BinaryData properties = null, Azure.ResponseError error = null) { throw null; } + public static Azure.ResourceManager.MobileNetwork.AttachedDataNetworkData AttachedDataNetworkData(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.MobileNetwork.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.MobileNetwork.Models.ProvisioningState?), Azure.ResourceManager.MobileNetwork.Models.InterfaceProperties userPlaneDataInterface = null, System.Collections.Generic.IEnumerable dnsAddresses = null, Azure.ResourceManager.MobileNetwork.Models.NaptConfiguration naptConfiguration = null, System.Collections.Generic.IEnumerable userEquipmentAddressPoolPrefix = null, System.Collections.Generic.IEnumerable userEquipmentStaticAddressPoolPrefix = null) { throw null; } + public static Azure.ResourceManager.MobileNetwork.Models.CertificateProvisioning CertificateProvisioning(Azure.ResourceManager.MobileNetwork.Models.CertificateProvisioningState? state = default(Azure.ResourceManager.MobileNetwork.Models.CertificateProvisioningState?), string reason = null) { throw null; } + public static Azure.ResourceManager.MobileNetwork.DataNetworkData DataNetworkData(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.MobileNetwork.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.MobileNetwork.Models.ProvisioningState?), string description = null) { throw null; } + public static Azure.ResourceManager.MobileNetwork.Models.HttpsServerCertificate HttpsServerCertificate(System.Uri certificateUri = null, Azure.ResourceManager.MobileNetwork.Models.CertificateProvisioning provisioning = null) { throw null; } + public static Azure.ResourceManager.MobileNetwork.Models.Installation Installation(Azure.ResourceManager.MobileNetwork.Models.InstallationState? state = default(Azure.ResourceManager.MobileNetwork.Models.InstallationState?), Azure.Core.ResourceIdentifier operationId = null) { throw null; } + public static Azure.ResourceManager.MobileNetwork.MobileNetworkData MobileNetworkData(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.MobileNetwork.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.MobileNetwork.Models.ProvisioningState?), Azure.ResourceManager.MobileNetwork.Models.PlmnId publicLandMobileNetworkIdentifier = null, string serviceKey = null) { throw null; } + public static Azure.ResourceManager.MobileNetwork.PacketCoreControlPlaneData PacketCoreControlPlaneData(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.MobileNetwork.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.MobileNetwork.Models.ProvisioningState?), Azure.ResourceManager.MobileNetwork.Models.Installation installation = null, System.Collections.Generic.IEnumerable sites = null, Azure.ResourceManager.MobileNetwork.Models.PlatformConfiguration platform = null, Azure.ResourceManager.MobileNetwork.Models.CoreNetworkType? coreNetworkTechnology = default(Azure.ResourceManager.MobileNetwork.Models.CoreNetworkType?), string version = null, string rollbackVersion = null, Azure.ResourceManager.MobileNetwork.Models.InterfaceProperties controlPlaneAccessInterface = null, Azure.ResourceManager.MobileNetwork.Models.BillingSku sku = default(Azure.ResourceManager.MobileNetwork.Models.BillingSku), int? ueMtu = default(int?), Azure.ResourceManager.MobileNetwork.Models.LocalDiagnosticsAccessConfiguration localDiagnosticsAccess = null, System.BinaryData interopSettings = null) { throw null; } + public static Azure.ResourceManager.MobileNetwork.PacketCoreControlPlaneVersionData PacketCoreControlPlaneVersionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MobileNetwork.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.MobileNetwork.Models.ProvisioningState?), System.Collections.Generic.IEnumerable platforms = null) { throw null; } + public static Azure.ResourceManager.MobileNetwork.PacketCoreDataPlaneData PacketCoreDataPlaneData(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.MobileNetwork.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.MobileNetwork.Models.ProvisioningState?), Azure.ResourceManager.MobileNetwork.Models.InterfaceProperties userPlaneAccessInterface = null) { throw null; } + public static Azure.ResourceManager.MobileNetwork.Models.PlatformConfiguration PlatformConfiguration(Azure.ResourceManager.MobileNetwork.Models.PlatformType platformType = default(Azure.ResourceManager.MobileNetwork.Models.PlatformType), Azure.Core.ResourceIdentifier azureStackEdgeDeviceId = null, System.Collections.Generic.IEnumerable azureStackEdgeDevices = null, Azure.Core.ResourceIdentifier azureStackHciClusterId = null, Azure.Core.ResourceIdentifier connectedClusterId = null, Azure.Core.ResourceIdentifier customLocationId = null) { throw null; } + public static Azure.ResourceManager.MobileNetwork.ServiceData ServiceData(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.MobileNetwork.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.MobileNetwork.Models.ProvisioningState?), int servicePrecedence = 0, Azure.ResourceManager.MobileNetwork.Models.QosPolicy serviceQosPolicy = null, System.Collections.Generic.IEnumerable pccRules = null) { throw null; } + public static Azure.ResourceManager.MobileNetwork.SimData SimData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MobileNetwork.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.MobileNetwork.Models.ProvisioningState?), Azure.ResourceManager.MobileNetwork.Models.SimState? simState = default(Azure.ResourceManager.MobileNetwork.Models.SimState?), System.Collections.Generic.IReadOnlyDictionary siteProvisioningState = null, string internationalMobileSubscriberIdentity = null, string integratedCircuitCardIdentifier = null, string deviceType = null, Azure.Core.ResourceIdentifier simPolicyId = null, System.Collections.Generic.IEnumerable staticIPConfiguration = null, string vendorName = null, string vendorKeyFingerprint = null, string authenticationKey = null, string operatorKeyCode = null) { throw null; } + public static Azure.ResourceManager.MobileNetwork.SimGroupData SimGroupData(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.MobileNetwork.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.MobileNetwork.Models.ProvisioningState?), System.Uri keyUri = null, Azure.Core.ResourceIdentifier mobileNetworkId = null) { throw null; } + public static Azure.ResourceManager.MobileNetwork.SimPolicyData SimPolicyData(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.MobileNetwork.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.MobileNetwork.Models.ProvisioningState?), System.Collections.Generic.IReadOnlyDictionary siteProvisioningState = null, Azure.ResourceManager.MobileNetwork.Models.Ambr ueAmbr = null, Azure.Core.ResourceIdentifier defaultSliceId = null, int? rfspIndex = default(int?), int? registrationTimer = default(int?), System.Collections.Generic.IEnumerable sliceConfigurations = null) { throw null; } + public static Azure.ResourceManager.MobileNetwork.SiteData SiteData(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.MobileNetwork.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.MobileNetwork.Models.ProvisioningState?), System.Collections.Generic.IEnumerable networkFunctions = null) { throw null; } + public static Azure.ResourceManager.MobileNetwork.SliceData SliceData(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.MobileNetwork.Models.ProvisioningState? provisioningState = default(Azure.ResourceManager.MobileNetwork.Models.ProvisioningState?), Azure.ResourceManager.MobileNetwork.Models.Snssai snssai = null, string description = null) { throw null; } + } public partial class AsyncOperationStatus { internal AsyncOperationStatus() { } diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/ArmMobileNetworkModelFactory.cs b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/ArmMobileNetworkModelFactory.cs new file mode 100644 index 000000000000..8d9d85353830 --- /dev/null +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/Generated/ArmMobileNetworkModelFactory.cs @@ -0,0 +1,337 @@ +// 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.MobileNetwork; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Resources.Models; + +namespace Azure.ResourceManager.MobileNetwork.Models +{ + /// Model factory for models. + public static partial class ArmMobileNetworkModelFactory + { + + /// Initializes a new instance of AttachedDataNetworkData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The provisioning state of the attached data network resource. + /// The user plane interface on the data network. For 5G networks, this is the N6 interface. For 4G networks, this is the SGi interface. + /// The DNS servers to signal to UEs to use for this attached data network. This configuration is mandatory - if you don't want DNS servers, you must provide an empty array. + /// + /// The network address and port translation (NAPT) configuration. + /// If this is not specified, the attached data network will use a default NAPT configuration with NAPT enabled. + /// + /// + /// The user equipment (UE) address pool prefixes for the attached data network from which the packet core instance will dynamically assign IP addresses to UEs. + /// The packet core instance assigns an IP address to a UE when the UE sets up a PDU session. + /// You must define at least one of userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix. If you define both, they must be of the same size. + /// + /// + /// The user equipment (UE) address pool prefixes for the attached data network from which the packet core instance will assign static IP addresses to UEs. + /// The packet core instance assigns an IP address to a UE when the UE sets up a PDU session. The static IP address for a specific UE is set in StaticIPConfiguration on the corresponding SIM resource. + /// At least one of userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined. If both are defined, they must be of the same size. + /// + /// A new instance for mocking. + public static AttachedDataNetworkData AttachedDataNetworkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ProvisioningState? provisioningState = null, InterfaceProperties userPlaneDataInterface = null, IEnumerable dnsAddresses = null, NaptConfiguration naptConfiguration = null, IEnumerable userEquipmentAddressPoolPrefix = null, IEnumerable userEquipmentStaticAddressPoolPrefix = null) + { + tags ??= new Dictionary(); + dnsAddresses ??= new List(); + userEquipmentAddressPoolPrefix ??= new List(); + userEquipmentStaticAddressPoolPrefix ??= new List(); + + return new AttachedDataNetworkData(id, name, resourceType, systemData, tags, location, provisioningState, userPlaneDataInterface, dnsAddresses?.ToList(), naptConfiguration, userEquipmentAddressPoolPrefix?.ToList(), userEquipmentStaticAddressPoolPrefix?.ToList()); + } + + /// Initializes a new instance of DataNetworkData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The provisioning state of the data network resource. + /// An optional description for this data network. + /// A new instance for mocking. + public static DataNetworkData DataNetworkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ProvisioningState? provisioningState = null, string description = null) + { + tags ??= new Dictionary(); + + return new DataNetworkData(id, name, resourceType, systemData, tags, location, provisioningState, description); + } + + /// Initializes a new instance of MobileNetworkData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The provisioning state of the mobile network resource. + /// The unique public land mobile network identifier for the network. This is made up of the mobile country code and mobile network code, as defined in https://www.itu.int/rec/T-REC-E.212. The values 001-01 and 001-001 can be used for testing and the values 999-99 and 999-999 can be used on internal private networks. + /// The mobile network resource identifier. + /// A new instance for mocking. + public static MobileNetworkData MobileNetworkData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ProvisioningState? provisioningState = null, PlmnId publicLandMobileNetworkIdentifier = null, string serviceKey = null) + { + tags ??= new Dictionary(); + + return new MobileNetworkData(id, name, resourceType, systemData, tags, location, provisioningState, publicLandMobileNetworkIdentifier, serviceKey); + } + + /// Initializes a new instance of PacketCoreControlPlaneData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The identity used to retrieve the ingress certificate from Azure key vault. + /// The provisioning state of the packet core control plane resource. + /// The installation state of the packet core control plane resource. + /// Site(s) under which this packet core control plane should be deployed. The sites must be in the same location as the packet core control plane. + /// The platform where the packet core is deployed. + /// The core network technology generation (5G core or EPC / 4G core). + /// The version of the packet core software that is deployed. + /// The previous version of the packet core software that was deployed. Used when performing the rollback action. + /// The control plane interface on the access network. For 5G networks, this is the N2 interface. For 4G networks, this is the S1-MME interface. + /// The SKU defining the throughput and SIM allowances for this packet core control plane deployment. + /// The MTU (in bytes) signaled to the UE. The same MTU is set on the user plane data links for all data networks. The MTU set on the user plane access link is calculated to be 60 bytes greater than this value to allow for GTP encapsulation. + /// The kubernetes ingress configuration to control access to packet core diagnostics over local APIs. + /// Settings to allow interoperability with third party components e.g. RANs and UEs. + /// A new instance for mocking. + public static PacketCoreControlPlaneData PacketCoreControlPlaneData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, ProvisioningState? provisioningState = null, Installation installation = null, IEnumerable sites = null, PlatformConfiguration platform = null, CoreNetworkType? coreNetworkTechnology = null, string version = null, string rollbackVersion = null, InterfaceProperties controlPlaneAccessInterface = null, BillingSku sku = default, int? ueMtu = null, LocalDiagnosticsAccessConfiguration localDiagnosticsAccess = null, BinaryData interopSettings = null) + { + tags ??= new Dictionary(); + sites ??= new List(); + + return new PacketCoreControlPlaneData(id, name, resourceType, systemData, tags, location, identity, provisioningState, installation, sites?.ToList(), platform, coreNetworkTechnology, version, rollbackVersion, controlPlaneAccessInterface, sku, ueMtu, localDiagnosticsAccess, interopSettings); + } + + /// Initializes a new instance of Installation. + /// Installation state. + /// A reference to an in-progress installation operation. + /// A new instance for mocking. + public static Installation Installation(InstallationState? state = null, ResourceIdentifier operationId = null) + { + return new Installation(state, operationId != null ? ResourceManagerModelFactory.SubResource(operationId) : null); + } + + /// Initializes a new instance of PlatformConfiguration. + /// The platform type where packet core is deployed. + /// The Azure Stack Edge device where the packet core is deployed. If the device is part of a fault tolerant pair, either device in the pair can be specified. + /// The Azure Stack Edge devices where the packet core is deployed. If the packet core is deployed across multiple devices, all devices will appear in this list. + /// The Azure Stack HCI cluster where the packet core is deployed. + /// Azure Arc connected cluster where the packet core is deployed. + /// Azure Arc custom location where the packet core is deployed. + /// A new instance for mocking. + public static PlatformConfiguration PlatformConfiguration(PlatformType platformType = default, ResourceIdentifier azureStackEdgeDeviceId = null, IEnumerable azureStackEdgeDevices = null, ResourceIdentifier azureStackHciClusterId = null, ResourceIdentifier connectedClusterId = null, ResourceIdentifier customLocationId = null) + { + azureStackEdgeDevices ??= new List(); + + return new PlatformConfiguration(platformType, azureStackEdgeDeviceId != null ? ResourceManagerModelFactory.WritableSubResource(azureStackEdgeDeviceId) : null, azureStackEdgeDevices?.ToList(), azureStackHciClusterId != null ? ResourceManagerModelFactory.WritableSubResource(azureStackHciClusterId) : null, connectedClusterId != null ? ResourceManagerModelFactory.WritableSubResource(connectedClusterId) : null, customLocationId != null ? ResourceManagerModelFactory.WritableSubResource(customLocationId) : null); + } + + /// Initializes a new instance of HttpsServerCertificate. + /// The certificate URL, unversioned. For example: https://contosovault.vault.azure.net/certificates/ingress. + /// The provisioning state of the certificate. + /// A new instance for mocking. + public static HttpsServerCertificate HttpsServerCertificate(Uri certificateUri = null, CertificateProvisioning provisioning = null) + { + return new HttpsServerCertificate(certificateUri, provisioning); + } + + /// Initializes a new instance of CertificateProvisioning. + /// The certificate's provisioning state. + /// Reason for certificate provisioning failure. + /// A new instance for mocking. + public static CertificateProvisioning CertificateProvisioning(CertificateProvisioningState? state = null, string reason = null) + { + return new CertificateProvisioning(state, reason); + } + + /// Initializes a new instance of AsyncOperationStatus. + /// Fully qualified ID for the async operation. + /// Name of the async operation. + /// The operation status. + /// Fully qualified ID for the resource that this async operation status relates to. + /// The start time of the operation. + /// The end time of the operation. + /// Percentage of the operation that is complete. + /// Properties returned by the resource provider on a successful operation. + /// If present, details of the operation error. + /// A new instance for mocking. + public static AsyncOperationStatus AsyncOperationStatus(string id = null, string name = null, string status = null, string resourceId = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, double? percentComplete = null, BinaryData properties = null, ResponseError error = null) + { + return new AsyncOperationStatus(id, name, status, resourceId, startOn, endOn, percentComplete, properties, error); + } + + /// Initializes a new instance of PacketCoreControlPlaneVersionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The provisioning state of the packet core control plane version resource. + /// Platform specific packet core control plane version properties. + /// A new instance for mocking. + public static PacketCoreControlPlaneVersionData PacketCoreControlPlaneVersionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ProvisioningState? provisioningState = null, IEnumerable platforms = null) + { + platforms ??= new List(); + + return new PacketCoreControlPlaneVersionData(id, name, resourceType, systemData, provisioningState, platforms?.ToList()); + } + + /// Initializes a new instance of PacketCoreDataPlaneData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The provisioning state of the packet core data plane resource. + /// The user plane interface on the access network. For 5G networks, this is the N3 interface. For 4G networks, this is the S1-U interface. + /// A new instance for mocking. + public static PacketCoreDataPlaneData PacketCoreDataPlaneData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ProvisioningState? provisioningState = null, InterfaceProperties userPlaneAccessInterface = null) + { + tags ??= new Dictionary(); + + return new PacketCoreDataPlaneData(id, name, resourceType, systemData, tags, location, provisioningState, userPlaneAccessInterface); + } + + /// Initializes a new instance of ServiceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The provisioning state of the service resource. + /// A precedence value that is used to decide between services when identifying the QoS values to use for a particular SIM. A lower value means a higher priority. This value should be unique among all services configured in the mobile network. + /// The QoS policy to use for packets matching this service. This can be overridden for particular flows using the ruleQosPolicy field in a PccRuleConfiguration. If this field is null then the UE's SIM policy will define the QoS settings. + /// The set of data flow policy rules that make up this service. + /// A new instance for mocking. + public static ServiceData ServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ProvisioningState? provisioningState = null, int servicePrecedence = default, QosPolicy serviceQosPolicy = null, IEnumerable pccRules = null) + { + tags ??= new Dictionary(); + pccRules ??= new List(); + + return new ServiceData(id, name, resourceType, systemData, tags, location, provisioningState, servicePrecedence, serviceQosPolicy, pccRules?.ToList()); + } + + /// Initializes a new instance of SimData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The provisioning state of the SIM resource. + /// The state of the SIM resource. + /// A dictionary of sites to the provisioning state of this SIM on that site. + /// The international mobile subscriber identity (IMSI) for the SIM. + /// The integrated circuit card ID (ICCID) for the SIM. + /// An optional free-form text field that can be used to record the device type this SIM is associated with, for example 'Video camera'. The Azure portal allows SIMs to be grouped and filtered based on this value. + /// The SIM policy used by this SIM. The SIM policy must be in the same location as the SIM. + /// A list of static IP addresses assigned to this SIM. Each address is assigned at a defined network scope, made up of {attached data network, slice}. + /// The name of the SIM vendor who provided this SIM, if any. + /// The public key fingerprint of the SIM vendor who provided this SIM, if any. + /// The Ki value for the SIM. + /// The Opc value for the SIM. + /// A new instance for mocking. + public static SimData SimData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ProvisioningState? provisioningState = null, SimState? simState = null, IReadOnlyDictionary siteProvisioningState = null, string internationalMobileSubscriberIdentity = null, string integratedCircuitCardIdentifier = null, string deviceType = null, ResourceIdentifier simPolicyId = null, IEnumerable staticIPConfiguration = null, string vendorName = null, string vendorKeyFingerprint = null, string authenticationKey = null, string operatorKeyCode = null) + { + siteProvisioningState ??= new Dictionary(); + staticIPConfiguration ??= new List(); + + return new SimData(id, name, resourceType, systemData, provisioningState, simState, siteProvisioningState, internationalMobileSubscriberIdentity, integratedCircuitCardIdentifier, deviceType, simPolicyId != null ? ResourceManagerModelFactory.WritableSubResource(simPolicyId) : null, staticIPConfiguration?.ToList(), vendorName, vendorKeyFingerprint, authenticationKey, operatorKeyCode); + } + + /// Initializes a new instance of SimGroupData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The identity used to retrieve the encryption key from Azure key vault. + /// The provisioning state of the SIM group resource. + /// A key to encrypt the SIM data that belongs to this SIM group. + /// Mobile network that this SIM group belongs to. The mobile network must be in the same location as the SIM group. + /// A new instance for mocking. + public static SimGroupData SimGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, ProvisioningState? provisioningState = null, Uri keyUri = null, ResourceIdentifier mobileNetworkId = null) + { + tags ??= new Dictionary(); + + return new SimGroupData(id, name, resourceType, systemData, tags, location, identity, provisioningState, keyUri != null ? new KeyVaultKey(keyUri) : null, mobileNetworkId != null ? ResourceManagerModelFactory.WritableSubResource(mobileNetworkId) : null); + } + + /// Initializes a new instance of SimPolicyData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The provisioning state of the SIM policy resource. + /// A dictionary of sites to the provisioning state of this SIM policy on that site. + /// Aggregate maximum bit rate across all non-GBR QoS flows of all PDU sessions of a given UE. See 3GPP TS23.501 section 5.7.2.6 for a full description of the UE-AMBR. + /// The default slice to use if the UE does not explicitly specify it. This slice must exist in the `sliceConfigurations` map. The slice must be in the same location as the SIM policy. + /// RAT/Frequency Selection Priority Index, defined in 3GPP TS 36.413. This is an optional setting and by default is unspecified. + /// Interval for the UE periodic registration update procedure, in seconds. + /// The allowed slices and the settings to use for them. The list must not contain duplicate items and must contain at least one item. + /// A new instance for mocking. + public static SimPolicyData SimPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ProvisioningState? provisioningState = null, IReadOnlyDictionary siteProvisioningState = null, Ambr ueAmbr = null, ResourceIdentifier defaultSliceId = null, int? rfspIndex = null, int? registrationTimer = null, IEnumerable sliceConfigurations = null) + { + tags ??= new Dictionary(); + siteProvisioningState ??= new Dictionary(); + sliceConfigurations ??= new List(); + + return new SimPolicyData(id, name, resourceType, systemData, tags, location, provisioningState, siteProvisioningState, ueAmbr, defaultSliceId != null ? ResourceManagerModelFactory.WritableSubResource(defaultSliceId) : null, rfspIndex, registrationTimer, sliceConfigurations?.ToList()); + } + + /// Initializes a new instance of SiteData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The provisioning state of the site resource. + /// An array of IDs of the network functions deployed in the site. Deleting the site will delete any network functions that are deployed in the site. + /// A new instance for mocking. + public static SiteData SiteData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ProvisioningState? provisioningState = null, IEnumerable networkFunctions = null) + { + tags ??= new Dictionary(); + networkFunctions ??= new List(); + + return new SiteData(id, name, resourceType, systemData, tags, location, provisioningState, networkFunctions?.ToList()); + } + + /// Initializes a new instance of SliceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The provisioning state of the network slice resource. + /// Single-network slice selection assistance information (S-NSSAI). Unique at the scope of a mobile network. + /// An optional description for this network slice. + /// A new instance for mocking. + public static SliceData SliceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ProvisioningState? provisioningState = null, Snssai snssai = null, string description = null) + { + tags ??= new Dictionary(); + + return new SliceData(id, name, resourceType, systemData, tags, location, provisioningState, snssai, description); + } + } +} diff --git a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/autorest.md b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/autorest.md index f86750806290..6767948ec236 100644 --- a/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/src/autorest.md +++ b/sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/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: MobileNetwork namespace: Azure.ResourceManager.MobileNetwork @@ -47,4 +46,4 @@ rename-rules: URI: Uri Etag: ETag|etag -``` \ No newline at end of file +``` diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md b/sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md index 5515a8ca0d5f..25ca4e4e2f84 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md +++ b/sdk/monitor/Azure.ResourceManager.Monitor/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.3.0-beta.1 (Unreleased) +## 1.3.0-beta.1 (2023-05-30) ### 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.2.0 (2023-04-24) ### Features Added diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/api/Azure.ResourceManager.Monitor.netstandard2.0.cs b/sdk/monitor/Azure.ResourceManager.Monitor/api/Azure.ResourceManager.Monitor.netstandard2.0.cs index 5d7a2c05d0ca..3daf1482a7bc 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/api/Azure.ResourceManager.Monitor.netstandard2.0.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/api/Azure.ResourceManager.Monitor.netstandard2.0.cs @@ -945,6 +945,67 @@ public AlertRulePatch() { } public static bool operator !=(Azure.ResourceManager.Monitor.Models.AlertSeverity left, Azure.ResourceManager.Monitor.Models.AlertSeverity right) { throw null; } public override string ToString() { throw null; } } + public static partial class ArmMonitorModelFactory + { + public static Azure.ResourceManager.Monitor.ActionGroupData ActionGroupData(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 groupShortName = null, bool? isEnabled = default(bool?), System.Collections.Generic.IEnumerable emailReceivers = null, System.Collections.Generic.IEnumerable smsReceivers = null, System.Collections.Generic.IEnumerable webhookReceivers = null, System.Collections.Generic.IEnumerable itsmReceivers = null, System.Collections.Generic.IEnumerable azureAppPushReceivers = null, System.Collections.Generic.IEnumerable automationRunbookReceivers = null, System.Collections.Generic.IEnumerable voiceReceivers = null, System.Collections.Generic.IEnumerable logicAppReceivers = null, System.Collections.Generic.IEnumerable azureFunctionReceivers = null, System.Collections.Generic.IEnumerable armRoleReceivers = null, System.Collections.Generic.IEnumerable eventHubReceivers = null) { throw null; } + public static Azure.ResourceManager.Monitor.ActivityLogAlertData ActivityLogAlertData(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), System.Collections.Generic.IEnumerable scopes = null, System.Collections.Generic.IEnumerable conditionAllOf = null, System.Collections.Generic.IEnumerable actionsActionGroups = null, bool? isEnabled = default(bool?), string description = null) { throw null; } + public static Azure.ResourceManager.Monitor.AlertRuleData AlertRuleData(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 alertRuleName = null, string description = null, string provisioningState = null, bool isEnabled = false, Azure.ResourceManager.Monitor.Models.AlertRuleCondition condition = null, Azure.ResourceManager.Monitor.Models.AlertRuleAction action = null, System.Collections.Generic.IEnumerable actions = null, System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.Monitor.Models.AutoscaleNotification AutoscaleNotification(Azure.ResourceManager.Monitor.Models.MonitorOperationType operation = default(Azure.ResourceManager.Monitor.Models.MonitorOperationType), Azure.ResourceManager.Monitor.Models.EmailNotification email = null, System.Collections.Generic.IEnumerable webhooks = null) { throw null; } + public static Azure.ResourceManager.Monitor.AutoscaleSettingData AutoscaleSettingData(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), System.Collections.Generic.IEnumerable profiles = null, System.Collections.Generic.IEnumerable notifications = null, bool? isEnabled = default(bool?), Azure.ResourceManager.Monitor.Models.PredictiveAutoscalePolicy predictiveAutoscalePolicy = null, string autoscaleSettingName = null, Azure.Core.ResourceIdentifier targetResourceId = null, Azure.Core.AzureLocation? targetResourceLocation = default(Azure.Core.AzureLocation?)) { throw null; } + public static Azure.ResourceManager.Monitor.Models.AutoscaleSettingPredicativeResult AutoscaleSettingPredicativeResult(string timespan = null, System.TimeSpan? interval = default(System.TimeSpan?), string metricName = null, Azure.Core.ResourceIdentifier targetResourceId = null, System.Collections.Generic.IEnumerable data = null) { throw null; } + public static Azure.ResourceManager.Monitor.DataCollectionEndpointData DataCollectionEndpointData(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.Monitor.Models.DataCollectionEndpointResourceKind? kind = default(Azure.ResourceManager.Monitor.Models.DataCollectionEndpointResourceKind?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ETag? etag = default(Azure.ETag?), string description = null, string immutableId = null, string configurationAccessEndpoint = null, string logsIngestionEndpoint = null, string metricsIngestionEndpoint = null, Azure.ResourceManager.Monitor.Models.MonitorPublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Monitor.Models.MonitorPublicNetworkAccess?), Azure.ResourceManager.Monitor.Models.DataCollectionEndpointProvisioningState? provisioningState = default(Azure.ResourceManager.Monitor.Models.DataCollectionEndpointProvisioningState?), System.Collections.Generic.IEnumerable privateLinkScopedResources = null, Azure.ResourceManager.Monitor.Models.DataCollectionEndpointFailoverConfiguration failoverConfiguration = null, Azure.ResourceManager.Monitor.Models.DataCollectionEndpointMetadata metadata = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.DataCollectionEndpointFailoverConfiguration DataCollectionEndpointFailoverConfiguration(string activeLocation = null, System.Collections.Generic.IEnumerable locations = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.DataCollectionEndpointMetadata DataCollectionEndpointMetadata(string provisionedBy = null, string provisionedByResourceId = null) { throw null; } + public static Azure.ResourceManager.Monitor.DataCollectionRuleAssociationData DataCollectionRuleAssociationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ETag? etag = default(Azure.ETag?), string description = null, Azure.Core.ResourceIdentifier dataCollectionRuleId = null, Azure.Core.ResourceIdentifier dataCollectionEndpointId = null, Azure.ResourceManager.Monitor.Models.DataCollectionRuleAssociationProvisioningState? provisioningState = default(Azure.ResourceManager.Monitor.Models.DataCollectionRuleAssociationProvisioningState?), Azure.ResourceManager.Monitor.Models.DataCollectionRuleAssociationMetadata metadata = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.DataCollectionRuleAssociationMetadata DataCollectionRuleAssociationMetadata(string provisionedBy = null, string provisionedByResourceId = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.DataCollectionRuleBcdrFailoverConfigurationSpec DataCollectionRuleBcdrFailoverConfigurationSpec(string activeLocation = null, System.Collections.Generic.IEnumerable locations = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.DataCollectionRuleBcdrLocationSpec DataCollectionRuleBcdrLocationSpec(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Monitor.Models.DataCollectionRuleBcdrLocationSpecProvisioningStatus? provisioningStatus = default(Azure.ResourceManager.Monitor.Models.DataCollectionRuleBcdrLocationSpecProvisioningStatus?)) { throw null; } + public static Azure.ResourceManager.Monitor.DataCollectionRuleData DataCollectionRuleData(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.Monitor.Models.DataCollectionRuleResourceKind? kind = default(Azure.ResourceManager.Monitor.Models.DataCollectionRuleResourceKind?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ETag? etag = default(Azure.ETag?), string description = null, string immutableId = null, Azure.Core.ResourceIdentifier dataCollectionEndpointId = null, Azure.ResourceManager.Monitor.Models.DataCollectionRuleMetadata metadata = null, System.Collections.Generic.IDictionary streamDeclarations = null, Azure.ResourceManager.Monitor.Models.DataCollectionRuleDataSources dataSources = null, Azure.ResourceManager.Monitor.Models.DataCollectionRuleDestinations destinations = null, System.Collections.Generic.IEnumerable dataFlows = null, Azure.ResourceManager.Monitor.Models.DataCollectionRuleProvisioningState? provisioningState = default(Azure.ResourceManager.Monitor.Models.DataCollectionRuleProvisioningState?)) { throw null; } + public static Azure.ResourceManager.Monitor.Models.DataCollectionRuleMetadata DataCollectionRuleMetadata(string provisionedBy = null, string provisionedByResourceId = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.DataCollectionRulePrivateLinkScopedResourceInfo DataCollectionRulePrivateLinkScopedResourceInfo(Azure.Core.ResourceIdentifier resourceId = null, string scopeId = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.DataCollectionRuleRelatedResourceMetadata DataCollectionRuleRelatedResourceMetadata(string provisionedBy = null, string provisionedByResourceId = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.DataContainer DataContainer(Azure.ResourceManager.Monitor.Models.DataContainerWorkspace workspace = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.DataContainerWorkspace DataContainerWorkspace(Azure.Core.ResourceIdentifier id = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string customerId = null) { throw null; } + public static Azure.ResourceManager.Monitor.DiagnosticSettingData DiagnosticSettingData(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 storageAccountId = null, Azure.Core.ResourceIdentifier serviceBusRuleId = null, Azure.Core.ResourceIdentifier eventHubAuthorizationRuleId = null, string eventHubName = null, System.Collections.Generic.IEnumerable metrics = null, System.Collections.Generic.IEnumerable logs = null, Azure.Core.ResourceIdentifier workspaceId = null, Azure.Core.ResourceIdentifier marketplacePartnerId = null, string logAnalyticsDestinationType = null) { throw null; } + public static Azure.ResourceManager.Monitor.DiagnosticSettingsCategoryData DiagnosticSettingsCategoryData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Monitor.Models.MonitorCategoryType? categoryType = default(Azure.ResourceManager.Monitor.Models.MonitorCategoryType?), System.Collections.Generic.IEnumerable categoryGroups = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.EventDataHttpRequestInfo EventDataHttpRequestInfo(string clientRequestId = null, System.Net.IPAddress clientIPAddress = null, string method = null, System.Uri uri = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.EventDataInfo EventDataInfo(Azure.ResourceManager.Monitor.Models.SenderAuthorization authorization = null, System.Collections.Generic.IReadOnlyDictionary claims = null, string caller = null, string description = null, string id = null, string eventDataId = null, string correlationId = null, Azure.ResourceManager.Monitor.Models.MonitorLocalizableString eventName = null, Azure.ResourceManager.Monitor.Models.MonitorLocalizableString category = null, Azure.ResourceManager.Monitor.Models.EventDataHttpRequestInfo httpRequest = null, Azure.ResourceManager.Monitor.Models.MonitorEventLevel? level = default(Azure.ResourceManager.Monitor.Models.MonitorEventLevel?), string resourceGroupName = null, Azure.ResourceManager.Monitor.Models.MonitorLocalizableString resourceProviderName = null, Azure.Core.ResourceIdentifier resourceId = null, Azure.ResourceManager.Monitor.Models.MonitorLocalizableString resourceType = null, string operationId = null, Azure.ResourceManager.Monitor.Models.MonitorLocalizableString operationName = null, System.Collections.Generic.IReadOnlyDictionary properties = null, Azure.ResourceManager.Monitor.Models.MonitorLocalizableString status = null, Azure.ResourceManager.Monitor.Models.MonitorLocalizableString subStatus = null, System.DateTimeOffset? eventTimestamp = default(System.DateTimeOffset?), System.DateTimeOffset? submissionTimestamp = default(System.DateTimeOffset?), string subscriptionId = null, System.Guid? tenantId = default(System.Guid?)) { throw null; } + public static Azure.ResourceManager.Monitor.Models.LogAnalyticsDestination LogAnalyticsDestination(Azure.Core.ResourceIdentifier workspaceResourceId = null, string workspaceId = null, string name = null) { throw null; } + public static Azure.ResourceManager.Monitor.LogProfileData LogProfileData(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.Core.ResourceIdentifier storageAccountId = null, Azure.Core.ResourceIdentifier serviceBusRuleId = null, System.Collections.Generic.IEnumerable locations = null, System.Collections.Generic.IEnumerable categories = null, Azure.ResourceManager.Monitor.Models.RetentionPolicy retentionPolicy = null) { throw null; } + public static Azure.ResourceManager.Monitor.MetricAlertData MetricAlertData(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, int severity = 0, bool isEnabled = false, System.Collections.Generic.IEnumerable scopes = null, System.TimeSpan evaluationFrequency = default(System.TimeSpan), System.TimeSpan windowSize = default(System.TimeSpan), Azure.Core.ResourceType? targetResourceType = default(Azure.Core.ResourceType?), Azure.Core.AzureLocation? targetResourceRegion = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Monitor.Models.MetricAlertCriteria criteria = null, bool? isAutoMitigateEnabled = default(bool?), System.Collections.Generic.IEnumerable actions = null, System.DateTimeOffset? lastUpdatedOn = default(System.DateTimeOffset?), bool? isMigrated = default(bool?)) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MetricAlertStatus MetricAlertStatus(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Monitor.Models.MetricAlertStatusProperties properties = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MetricAlertStatusProperties MetricAlertStatusProperties(System.Collections.Generic.IReadOnlyDictionary dimensions = null, string status = null, System.DateTimeOffset? timestamp = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorBaselineMetadata MonitorBaselineMetadata(string name = null, string value = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorEmailReceiver MonitorEmailReceiver(string name = null, string emailAddress = null, bool? useCommonAlertSchema = default(bool?), Azure.ResourceManager.Monitor.Models.MonitorReceiverStatus? status = default(Azure.ResourceManager.Monitor.Models.MonitorReceiverStatus?)) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorIncident MonitorIncident(string name = null, string ruleName = null, bool? isActive = default(bool?), System.DateTimeOffset? activatedOn = default(System.DateTimeOffset?), System.DateTimeOffset? resolvedOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitoringAccountDestination MonitoringAccountDestination(Azure.Core.ResourceIdentifier accountResourceId = null, string accountId = null, string name = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorLocalizableString MonitorLocalizableString(string value = null, string localizedValue = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorMetadataValue MonitorMetadataValue(Azure.ResourceManager.Monitor.Models.MonitorLocalizableString name = null, string value = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorMetric MonitorMetric(string id = null, string metricType = null, Azure.ResourceManager.Monitor.Models.MonitorLocalizableString name = null, string displayDescription = null, string errorCode = null, string errorMessage = null, Azure.ResourceManager.Monitor.Models.MonitorMetricUnit unit = default(Azure.ResourceManager.Monitor.Models.MonitorMetricUnit), System.Collections.Generic.IEnumerable timeseries = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorMetricAvailability MonitorMetricAvailability(System.TimeSpan? timeGrain = default(System.TimeSpan?), System.TimeSpan? retention = default(System.TimeSpan?)) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorMetricDefinition MonitorMetricDefinition(bool? isDimensionRequired = default(bool?), string resourceId = null, string @namespace = null, Azure.ResourceManager.Monitor.Models.MonitorLocalizableString name = null, string displayDescription = null, string category = null, Azure.ResourceManager.Monitor.Models.MonitorMetricClass? metricClass = default(Azure.ResourceManager.Monitor.Models.MonitorMetricClass?), Azure.ResourceManager.Monitor.Models.MonitorMetricUnit? unit = default(Azure.ResourceManager.Monitor.Models.MonitorMetricUnit?), Azure.ResourceManager.Monitor.Models.MonitorAggregationType? primaryAggregationType = default(Azure.ResourceManager.Monitor.Models.MonitorAggregationType?), System.Collections.Generic.IEnumerable supportedAggregationTypes = null, System.Collections.Generic.IEnumerable metricAvailabilities = null, string id = null, System.Collections.Generic.IEnumerable dimensions = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorMetricNamespace MonitorMetricNamespace(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Monitor.Models.MonitorNamespaceClassification? classification = default(Azure.ResourceManager.Monitor.Models.MonitorNamespaceClassification?), string metricNamespaceNameValue = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorMetricSingleDimension MonitorMetricSingleDimension(string name = null, string value = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorMetricValue MonitorMetricValue(System.DateTimeOffset timeStamp = default(System.DateTimeOffset), double? average = default(double?), double? minimum = default(double?), double? maximum = default(double?), double? total = default(double?), double? count = default(double?)) { throw null; } + public static Azure.ResourceManager.Monitor.MonitorPrivateEndpointConnectionData MonitorPrivateEndpointConnectionData(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.Monitor.Models.MonitorPrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.Monitor.Models.MonitorPrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.Monitor.Models.MonitorPrivateEndpointConnectionProvisioningState?)) { throw null; } + public static Azure.ResourceManager.Monitor.MonitorPrivateLinkResourceData MonitorPrivateLinkResourceData(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.Monitor.MonitorPrivateLinkScopeData MonitorPrivateLinkScopeData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string provisioningState = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Monitor.Models.MonitorPrivateLinkAccessModeSettings accessModeSettings = null) { throw null; } + public static Azure.ResourceManager.Monitor.MonitorPrivateLinkScopedResourceData MonitorPrivateLinkScopedResourceData(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 linkedResourceId = null, string provisioningState = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorPrivateLinkScopeOperationStatus MonitorPrivateLinkScopeOperationStatus(string id = null, string name = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string status = null, Azure.ResponseError error = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorSingleBaseline MonitorSingleBaseline(Azure.ResourceManager.Monitor.Models.MonitorBaselineSensitivity sensitivity = default(Azure.ResourceManager.Monitor.Models.MonitorBaselineSensitivity), System.Collections.Generic.IEnumerable lowThresholds = null, System.Collections.Generic.IEnumerable highThresholds = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorSingleMetricBaseline MonitorSingleMetricBaseline(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string timespan = null, System.TimeSpan interval = default(System.TimeSpan), string @namespace = null, System.Collections.Generic.IEnumerable baselines = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorSmsReceiver MonitorSmsReceiver(string name = null, string countryCode = null, string phoneNumber = null, Azure.ResourceManager.Monitor.Models.MonitorReceiverStatus? status = default(Azure.ResourceManager.Monitor.Models.MonitorReceiverStatus?)) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorTimeSeriesBaseline MonitorTimeSeriesBaseline(string aggregation = null, System.Collections.Generic.IEnumerable dimensions = null, System.Collections.Generic.IEnumerable timestamps = null, System.Collections.Generic.IEnumerable data = null, System.Collections.Generic.IEnumerable metadataValues = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.MonitorTimeSeriesElement MonitorTimeSeriesElement(System.Collections.Generic.IEnumerable metadatavalues = null, System.Collections.Generic.IEnumerable data = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.NotificationActionDetail NotificationActionDetail(string mechanismType = null, string name = null, string status = null, string subState = null, System.DateTimeOffset? sendOn = default(System.DateTimeOffset?), string detail = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.NotificationContext NotificationContext(string notificationSource = null, string contextType = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.NotificationStatus NotificationStatus(Azure.ResourceManager.Monitor.Models.NotificationContext context = null, string state = null, System.DateTimeOffset? completedOn = default(System.DateTimeOffset?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable actionDetails = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.PredictiveValue PredictiveValue(System.DateTimeOffset timeStamp = default(System.DateTimeOffset), double value = 0) { throw null; } + public static Azure.ResourceManager.Monitor.ScheduledQueryRuleData ScheduledQueryRuleData(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.Monitor.Models.ScheduledQueryRuleKind? kind = default(Azure.ResourceManager.Monitor.Models.ScheduledQueryRuleKind?), Azure.ETag? etag = default(Azure.ETag?), string createdWithApiVersion = null, bool? isLegacyLogAnalyticsRule = default(bool?), string description = null, string displayName = null, Azure.ResourceManager.Monitor.Models.AlertSeverity? severity = default(Azure.ResourceManager.Monitor.Models.AlertSeverity?), bool? isEnabled = default(bool?), System.Collections.Generic.IEnumerable scopes = null, System.TimeSpan? evaluationFrequency = default(System.TimeSpan?), System.TimeSpan? windowSize = default(System.TimeSpan?), System.TimeSpan? overrideQueryTimeRange = default(System.TimeSpan?), System.Collections.Generic.IEnumerable targetResourceTypes = null, System.Collections.Generic.IEnumerable criteriaAllOf = null, System.TimeSpan? muteActionsDuration = default(System.TimeSpan?), Azure.ResourceManager.Monitor.Models.ScheduledQueryRuleActions actions = null, bool? isWorkspaceAlertsStorageConfigured = default(bool?), bool? checkWorkspaceAlertsStorageConfigured = default(bool?), bool? skipQueryValidation = default(bool?), bool? autoMitigate = default(bool?)) { throw null; } + public static Azure.ResourceManager.Monitor.Models.SenderAuthorization SenderAuthorization(string action = null, string role = null, string scope = null) { throw null; } + public static Azure.ResourceManager.Monitor.Models.SubscriptionMonitorMetric SubscriptionMonitorMetric(string id = null, string subscriptionScopeMetricType = null, Azure.ResourceManager.Monitor.Models.MonitorLocalizableString name = null, string displayDescription = null, string errorCode = null, string errorMessage = null, Azure.ResourceManager.Monitor.Models.MonitorMetricUnit unit = default(Azure.ResourceManager.Monitor.Models.MonitorMetricUnit), System.Collections.Generic.IEnumerable timeseries = null) { throw null; } + public static Azure.ResourceManager.Monitor.VmInsightsOnboardingStatusData VmInsightsOnboardingStatusData(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 resourceId = null, Azure.ResourceManager.Monitor.Models.OnboardingStatus? onboardingStatus = default(Azure.ResourceManager.Monitor.Models.OnboardingStatus?), Azure.ResourceManager.Monitor.Models.DataStatus? dataStatus = default(Azure.ResourceManager.Monitor.Models.DataStatus?), System.Collections.Generic.IEnumerable data = null) { throw null; } + } public partial class ArmResourceGetMonitorMetricBaselinesOptions { public ArmResourceGetMonitorMetricBaselinesOptions() { } diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ArmMonitorModelFactory.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ArmMonitorModelFactory.cs new file mode 100644 index 000000000000..eab4e662b2c5 --- /dev/null +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/ArmMonitorModelFactory.cs @@ -0,0 +1,975 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using Azure; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Monitor; + +namespace Azure.ResourceManager.Monitor.Models +{ + /// Model factory for models. + public static partial class ArmMonitorModelFactory + { + /// Initializes a new instance of AutoscaleSettingData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified. + /// the collection of notifications. + /// the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'false'. + /// the predictive autoscale policy mode. + /// the name of the autoscale setting. + /// the resource identifier of the resource that the autoscale setting should be added to. + /// the location of the resource that the autoscale setting should be added to. + /// A new instance for mocking. + public static AutoscaleSettingData AutoscaleSettingData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, IEnumerable profiles = null, IEnumerable notifications = null, bool? isEnabled = null, PredictiveAutoscalePolicy predictiveAutoscalePolicy = null, string autoscaleSettingName = null, ResourceIdentifier targetResourceId = null, AzureLocation? targetResourceLocation = null) + { + tags ??= new Dictionary(); + profiles ??= new List(); + notifications ??= new List(); + + return new AutoscaleSettingData(id, name, resourceType, systemData, tags, location, profiles?.ToList(), notifications?.ToList(), isEnabled, predictiveAutoscalePolicy, autoscaleSettingName, targetResourceId, targetResourceLocation); + } + + /// Initializes a new instance of AutoscaleNotification. + /// the operation associated with the notification and its value must be "scale". + /// the email notification. + /// the collection of webhook notifications. + /// A new instance for mocking. + public static AutoscaleNotification AutoscaleNotification(MonitorOperationType operation = default, EmailNotification email = null, IEnumerable webhooks = null) + { + webhooks ??= new List(); + + return new AutoscaleNotification(operation, email, webhooks?.ToList()); + } + + /// Initializes a new instance of AutoscaleSettingPredicativeResult. + /// The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested. + /// The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made. + /// The metrics being queried. + /// resource of the predictive metric. + /// the value of the collection. + /// A new instance for mocking. + public static AutoscaleSettingPredicativeResult AutoscaleSettingPredicativeResult(string timespan = null, TimeSpan? interval = null, string metricName = null, ResourceIdentifier targetResourceId = null, IEnumerable data = null) + { + data ??= new List(); + + return new AutoscaleSettingPredicativeResult(timespan, interval, metricName, targetResourceId, data?.ToList()); + } + + /// Initializes a new instance of PredictiveValue. + /// the timestamp for the metric value in ISO 8601 format. + /// Predictive value in this time bucket. + /// A new instance for mocking. + public static PredictiveValue PredictiveValue(DateTimeOffset timeStamp = default, double value = default) + { + return new PredictiveValue(timeStamp, value); + } + + /// Initializes a new instance of MonitorIncident. + /// Incident name. + /// Rule name that is associated with the incident. + /// A boolean to indicate whether the incident is active or resolved. + /// The time at which the incident was activated in ISO8601 format. + /// The time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active. + /// A new instance for mocking. + public static MonitorIncident MonitorIncident(string name = null, string ruleName = null, bool? isActive = null, DateTimeOffset? activatedOn = null, DateTimeOffset? resolvedOn = null) + { + return new MonitorIncident(name, ruleName, isActive, activatedOn, resolvedOn); + } + + /// Initializes a new instance of AlertRuleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// the name of the alert rule. + /// the description of the alert rule that will be included in the alert email. + /// the provisioning state. + /// the flag that indicates whether the alert rule is enabled. + /// + /// the condition that results in the alert rule being activated. + /// 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 . + /// + /// + /// action that is performed when the alert rule becomes active, and when an alert condition is resolved. + /// 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 array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + /// 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 . + /// + /// Last time the rule was updated in ISO8601 format. + /// A new instance for mocking. + public static AlertRuleData AlertRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string alertRuleName = null, string description = null, string provisioningState = null, bool isEnabled = default, AlertRuleCondition condition = null, AlertRuleAction action = null, IEnumerable actions = null, DateTimeOffset? lastUpdatedOn = null) + { + tags ??= new Dictionary(); + actions ??= new List(); + + return new AlertRuleData(id, name, resourceType, systemData, tags, location, alertRuleName, description, provisioningState, isEnabled, condition, action, actions?.ToList(), lastUpdatedOn); + } + + /// Initializes a new instance of LogProfileData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// the resource id of the storage account to which you would like to send the Activity Log. + /// The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'. + /// List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location. + /// the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.'. + /// the retention policy for the events in the log. + /// A new instance for mocking. + public static LogProfileData LogProfileData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ResourceIdentifier storageAccountId = null, ResourceIdentifier serviceBusRuleId = null, IEnumerable locations = null, IEnumerable categories = null, RetentionPolicy retentionPolicy = null) + { + tags ??= new Dictionary(); + locations ??= new List(); + categories ??= new List(); + + return new LogProfileData(id, name, resourceType, systemData, tags, location, storageAccountId, serviceBusRuleId, locations?.ToList(), categories?.ToList(), retentionPolicy); + } + + /// Initializes a new instance of DiagnosticSettingData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The resource ID of the storage account to which you would like to send Diagnostic Logs. + /// The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility. + /// The resource Id for the event hub authorization rule. + /// The name of the event hub. If none is specified, the default event hub will be selected. + /// The list of metric settings. + /// The list of logs settings. + /// The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2. + /// The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs. + /// A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.). + /// A new instance for mocking. + public static DiagnosticSettingData DiagnosticSettingData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier storageAccountId = null, ResourceIdentifier serviceBusRuleId = null, ResourceIdentifier eventHubAuthorizationRuleId = null, string eventHubName = null, IEnumerable metrics = null, IEnumerable logs = null, ResourceIdentifier workspaceId = null, ResourceIdentifier marketplacePartnerId = null, string logAnalyticsDestinationType = null) + { + metrics ??= new List(); + logs ??= new List(); + + return new DiagnosticSettingData(id, name, resourceType, systemData, storageAccountId, serviceBusRuleId, eventHubAuthorizationRuleId, eventHubName, metrics?.ToList(), logs?.ToList(), workspaceId, marketplacePartnerId, logAnalyticsDestinationType); + } + + /// Initializes a new instance of DiagnosticSettingsCategoryData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The type of the diagnostic settings category. + /// the collection of what category groups are supported. + /// A new instance for mocking. + public static DiagnosticSettingsCategoryData DiagnosticSettingsCategoryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MonitorCategoryType? categoryType = null, IEnumerable categoryGroups = null) + { + categoryGroups ??= new List(); + + return new DiagnosticSettingsCategoryData(id, name, resourceType, systemData, categoryType, categoryGroups?.ToList()); + } + + /// Initializes a new instance of ActionGroupData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The short name of the action group. This will be used in SMS messages. + /// Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. + /// The list of email receivers that are part of this action group. + /// The list of SMS receivers that are part of this action group. + /// The list of webhook receivers that are part of this action group. + /// The list of ITSM receivers that are part of this action group. + /// The list of AzureAppPush receivers that are part of this action group. + /// The list of AutomationRunbook receivers that are part of this action group. + /// The list of voice receivers that are part of this action group. + /// The list of logic app receivers that are part of this action group. + /// The list of azure function receivers that are part of this action group. + /// The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported. + /// The list of event hub receivers that are part of this action group. + /// A new instance for mocking. + public static ActionGroupData ActionGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string groupShortName = null, bool? isEnabled = null, IEnumerable emailReceivers = null, IEnumerable smsReceivers = null, IEnumerable webhookReceivers = null, IEnumerable itsmReceivers = null, IEnumerable azureAppPushReceivers = null, IEnumerable automationRunbookReceivers = null, IEnumerable voiceReceivers = null, IEnumerable logicAppReceivers = null, IEnumerable azureFunctionReceivers = null, IEnumerable armRoleReceivers = null, IEnumerable eventHubReceivers = null) + { + tags ??= new Dictionary(); + emailReceivers ??= new List(); + smsReceivers ??= new List(); + webhookReceivers ??= new List(); + itsmReceivers ??= new List(); + azureAppPushReceivers ??= new List(); + automationRunbookReceivers ??= new List(); + voiceReceivers ??= new List(); + logicAppReceivers ??= new List(); + azureFunctionReceivers ??= new List(); + armRoleReceivers ??= new List(); + eventHubReceivers ??= new List(); + + return new ActionGroupData(id, name, resourceType, systemData, tags, location, groupShortName, isEnabled, emailReceivers?.ToList(), smsReceivers?.ToList(), webhookReceivers?.ToList(), itsmReceivers?.ToList(), azureAppPushReceivers?.ToList(), automationRunbookReceivers?.ToList(), voiceReceivers?.ToList(), logicAppReceivers?.ToList(), azureFunctionReceivers?.ToList(), armRoleReceivers?.ToList(), eventHubReceivers?.ToList()); + } + + /// Initializes a new instance of MonitorEmailReceiver. + /// The name of the email receiver. Names must be unique across all receivers within an action group. + /// The email address of this receiver. + /// Indicates whether to use common alert schema. + /// The receiver status of the e-mail. + /// A new instance for mocking. + public static MonitorEmailReceiver MonitorEmailReceiver(string name = null, string emailAddress = null, bool? useCommonAlertSchema = null, MonitorReceiverStatus? status = null) + { + return new MonitorEmailReceiver(name, emailAddress, useCommonAlertSchema, status); + } + + /// Initializes a new instance of MonitorSmsReceiver. + /// The name of the SMS receiver. Names must be unique across all receivers within an action group. + /// The country code of the SMS receiver. + /// The phone number of the SMS receiver. + /// The status of the receiver. + /// A new instance for mocking. + public static MonitorSmsReceiver MonitorSmsReceiver(string name = null, string countryCode = null, string phoneNumber = null, MonitorReceiverStatus? status = null) + { + return new MonitorSmsReceiver(name, countryCode, phoneNumber, status); + } + + /// Initializes a new instance of NotificationStatus. + /// The context info. + /// The overall state. + /// The completed time. + /// The created time. + /// The list of action detail. + /// A new instance for mocking. + public static NotificationStatus NotificationStatus(NotificationContext context = null, string state = null, DateTimeOffset? completedOn = null, DateTimeOffset? createdOn = null, IEnumerable actionDetails = null) + { + actionDetails ??= new List(); + + return new NotificationStatus(context, state, completedOn, createdOn, actionDetails?.ToList()); + } + + /// Initializes a new instance of NotificationContext. + /// The source of the notification request. + /// The context id type. + /// A new instance for mocking. + public static NotificationContext NotificationContext(string notificationSource = null, string contextType = null) + { + return new NotificationContext(notificationSource, contextType); + } + + /// Initializes a new instance of NotificationActionDetail. + /// The mechanism type. + /// The name of the action. + /// The status of the action. + /// The substatus of the action. + /// The send time. + /// The detail of the friendly error message. + /// A new instance for mocking. + public static NotificationActionDetail NotificationActionDetail(string mechanismType = null, string name = null, string status = null, string subState = null, DateTimeOffset? sendOn = null, string detail = null) + { + return new NotificationActionDetail(mechanismType, name, status, subState, sendOn, detail); + } + + /// Initializes a new instance of EventDataInfo. + /// The sender authorization information. + /// key value pairs to identify ARM permissions. + /// the email address of the user who has performed the operation, the UPN claim or SPN claim based on availability. + /// the description of the event. + /// the Id of this event as required by ARM for RBAC. It contains the EventDataID and a timestamp information. + /// the event data Id. This is a unique identifier for an event. + /// the correlation Id, usually a GUID in the string format. The correlation Id is shared among the events that belong to the same uber operation. + /// the event name. This value should not be confused with OperationName. For practical purposes, OperationName might be more appealing to end users. + /// the event category. + /// the HTTP request info. Usually includes the 'clientRequestId', 'clientIpAddress' (IP address of the user who initiated the event) and 'method' (HTTP method e.g. PUT). + /// the event level. + /// the resource group name of the impacted resource. + /// the resource provider name of the impacted resource. + /// the resource uri that uniquely identifies the resource that caused this event. + /// the resource type. + /// It is usually a GUID shared among the events corresponding to single operation. This value should not be confused with EventName. + /// the operation name. + /// the set of <Key, Value> pairs (usually a Dictionary<String, String>) that includes details about the event. + /// a string describing the status of the operation. Some typical values are: Started, In progress, Succeeded, Failed, Resolved. + /// the event sub status. Most of the time, when included, this captures the HTTP status code of the REST call. Common values are: OK (HTTP Status Code: 200), Created (HTTP Status Code: 201), Accepted (HTTP Status Code: 202), No Content (HTTP Status Code: 204), Bad Request(HTTP Status Code: 400), Not Found (HTTP Status Code: 404), Conflict (HTTP Status Code: 409), Internal Server Error (HTTP Status Code: 500), Service Unavailable (HTTP Status Code:503), Gateway Timeout (HTTP Status Code: 504). + /// the timestamp of when the event was generated by the Azure service processing the request corresponding the event. It in ISO 8601 format. + /// the timestamp of when the event became available for querying via this API. It is in ISO 8601 format. This value should not be confused eventTimestamp. As there might be a delay between the occurrence time of the event, and the time that the event is submitted to the Azure logging infrastructure. + /// the Azure subscription Id usually a GUID. + /// the Azure tenant Id. + /// A new instance for mocking. + public static EventDataInfo EventDataInfo(SenderAuthorization authorization = null, IReadOnlyDictionary claims = null, string caller = null, string description = null, string id = null, string eventDataId = null, string correlationId = null, MonitorLocalizableString eventName = null, MonitorLocalizableString category = null, EventDataHttpRequestInfo httpRequest = null, MonitorEventLevel? level = null, string resourceGroupName = null, MonitorLocalizableString resourceProviderName = null, ResourceIdentifier resourceId = null, MonitorLocalizableString resourceType = null, string operationId = null, MonitorLocalizableString operationName = null, IReadOnlyDictionary properties = null, MonitorLocalizableString status = null, MonitorLocalizableString subStatus = null, DateTimeOffset? eventTimestamp = null, DateTimeOffset? submissionTimestamp = null, string subscriptionId = null, Guid? tenantId = null) + { + claims ??= new Dictionary(); + properties ??= new Dictionary(); + + return new EventDataInfo(authorization, claims, caller, description, id, eventDataId, correlationId, eventName, category, httpRequest, level, resourceGroupName, resourceProviderName, resourceId, resourceType, operationId, operationName, properties, status, subStatus, eventTimestamp, submissionTimestamp, subscriptionId, tenantId); + } + + /// Initializes a new instance of SenderAuthorization. + /// the permissible actions. For instance: microsoft.support/supporttickets/write. + /// the role of the user. For instance: Subscription Admin. + /// the scope. + /// A new instance for mocking. + public static SenderAuthorization SenderAuthorization(string action = null, string role = null, string scope = null) + { + return new SenderAuthorization(action, role, scope); + } + + /// Initializes a new instance of MonitorLocalizableString. + /// the invariant value. + /// the locale specific value. + /// A new instance for mocking. + public static MonitorLocalizableString MonitorLocalizableString(string value = null, string localizedValue = null) + { + return new MonitorLocalizableString(value, localizedValue); + } + + /// Initializes a new instance of EventDataHttpRequestInfo. + /// the client request id. + /// the client Ip Address. + /// the Http request method. + /// the Uri. + /// A new instance for mocking. + public static EventDataHttpRequestInfo EventDataHttpRequestInfo(string clientRequestId = null, IPAddress clientIPAddress = null, string method = null, Uri uri = null) + { + return new EventDataHttpRequestInfo(clientRequestId, clientIPAddress, method, uri); + } + + /// Initializes a new instance of MonitorMetricDefinition. + /// Flag to indicate whether the dimension is required. + /// the resource identifier of the resource that emitted the metric. + /// the namespace the metric belongs to. + /// the name and the display name of the metric, i.e. it is a localizable string. + /// Detailed description of this metric. + /// Custom category name for this metric. + /// The class of the metric. + /// The unit of the metric. + /// the primary aggregation type value defining how to use the values for display. + /// the collection of what aggregation types are supported. + /// the collection of what aggregation intervals are available to be queried. + /// the resource identifier of the metric definition. + /// the name and the display name of the dimension, i.e. it is a localizable string. + /// A new instance for mocking. + public static MonitorMetricDefinition MonitorMetricDefinition(bool? isDimensionRequired = null, string resourceId = null, string @namespace = null, MonitorLocalizableString name = null, string displayDescription = null, string category = null, MonitorMetricClass? metricClass = null, MonitorMetricUnit? unit = null, MonitorAggregationType? primaryAggregationType = null, IEnumerable supportedAggregationTypes = null, IEnumerable metricAvailabilities = null, string id = null, IEnumerable dimensions = null) + { + supportedAggregationTypes ??= new List(); + metricAvailabilities ??= new List(); + dimensions ??= new List(); + + return new MonitorMetricDefinition(isDimensionRequired, resourceId, @namespace, name, displayDescription, category, metricClass, unit, primaryAggregationType, supportedAggregationTypes?.ToList(), metricAvailabilities?.ToList(), id, dimensions?.ToList()); + } + + /// Initializes a new instance of MonitorMetricAvailability. + /// the time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc. + /// the retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc. + /// A new instance for mocking. + public static MonitorMetricAvailability MonitorMetricAvailability(TimeSpan? timeGrain = null, TimeSpan? retention = null) + { + return new MonitorMetricAvailability(timeGrain, retention); + } + + /// Initializes a new instance of SubscriptionMonitorMetric. + /// the metric Id. + /// the resource type of the metric resource. + /// the name and the display name of the metric, i.e. it is localizable string. + /// Detailed description of this metric. + /// 'Success' or the error details on query failures for this metric. + /// Error message encountered querying this specific metric. + /// The unit of the metric. + /// the time series returned when a data query is performed. + /// A new instance for mocking. + public static SubscriptionMonitorMetric SubscriptionMonitorMetric(string id = null, string subscriptionScopeMetricType = null, MonitorLocalizableString name = null, string displayDescription = null, string errorCode = null, string errorMessage = null, MonitorMetricUnit unit = default, IEnumerable timeseries = null) + { + timeseries ??= new List(); + + return new SubscriptionMonitorMetric(id, subscriptionScopeMetricType, name, displayDescription, errorCode, errorMessage, unit, timeseries?.ToList()); + } + + /// Initializes a new instance of MonitorTimeSeriesElement. + /// the metadata values returned if $filter was specified in the call. + /// An array of data points representing the metric values. This is only returned if a result type of data is specified. + /// A new instance for mocking. + public static MonitorTimeSeriesElement MonitorTimeSeriesElement(IEnumerable metadatavalues = null, IEnumerable data = null) + { + metadatavalues ??= new List(); + data ??= new List(); + + return new MonitorTimeSeriesElement(metadatavalues?.ToList(), data?.ToList()); + } + + /// Initializes a new instance of MonitorMetadataValue. + /// the name of the metadata. + /// the value of the metadata. + /// A new instance for mocking. + public static MonitorMetadataValue MonitorMetadataValue(MonitorLocalizableString name = null, string value = null) + { + return new MonitorMetadataValue(name, value); + } + + /// Initializes a new instance of MonitorMetricValue. + /// the timestamp for the metric value in ISO 8601 format. + /// the average value in the time range. + /// the least value in the time range. + /// the greatest value in the time range. + /// the sum of all of the values in the time range. + /// the number of samples in the time range. Can be used to determine the number of values that contributed to the average value. + /// A new instance for mocking. + public static MonitorMetricValue MonitorMetricValue(DateTimeOffset timeStamp = default, double? average = null, double? minimum = null, double? maximum = null, double? total = null, double? count = null) + { + return new MonitorMetricValue(timeStamp, average, minimum, maximum, total, count); + } + + /// Initializes a new instance of MonitorMetric. + /// the metric Id. + /// the resource type of the metric resource. + /// the name and the display name of the metric, i.e. it is localizable string. + /// Detailed description of this metric. + /// 'Success' or the error details on query failures for this metric. + /// Error message encountered querying this specific metric. + /// The unit of the metric. + /// the time series returned when a data query is performed. + /// A new instance for mocking. + public static MonitorMetric MonitorMetric(string id = null, string metricType = null, MonitorLocalizableString name = null, string displayDescription = null, string errorCode = null, string errorMessage = null, MonitorMetricUnit unit = default, IEnumerable timeseries = null) + { + timeseries ??= new List(); + + return new MonitorMetric(id, metricType, name, displayDescription, errorCode, errorMessage, unit, timeseries?.ToList()); + } + + /// Initializes a new instance of MonitorSingleMetricBaseline. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested. + /// The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made. + /// The namespace of the metrics been queried. + /// The baseline for each time series that was queried. + /// A new instance for mocking. + public static MonitorSingleMetricBaseline MonitorSingleMetricBaseline(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string timespan = null, TimeSpan interval = default, string @namespace = null, IEnumerable baselines = null) + { + baselines ??= new List(); + + return new MonitorSingleMetricBaseline(id, name, resourceType, systemData, timespan, interval, @namespace, baselines?.ToList()); + } + + /// Initializes a new instance of MonitorTimeSeriesBaseline. + /// The aggregation type of the metric. + /// The dimensions of this time series. + /// The list of timestamps of the baselines. + /// The baseline values for each sensitivity. + /// The baseline metadata values. + /// A new instance for mocking. + public static MonitorTimeSeriesBaseline MonitorTimeSeriesBaseline(string aggregation = null, IEnumerable dimensions = null, IEnumerable timestamps = null, IEnumerable data = null, IEnumerable metadataValues = null) + { + dimensions ??= new List(); + timestamps ??= new List(); + data ??= new List(); + metadataValues ??= new List(); + + return new MonitorTimeSeriesBaseline(aggregation, dimensions?.ToList(), timestamps?.ToList(), data?.ToList(), metadataValues?.ToList()); + } + + /// Initializes a new instance of MonitorMetricSingleDimension. + /// Name of the dimension. + /// Value of the dimension. + /// or is null. + /// A new instance for mocking. + public static MonitorMetricSingleDimension MonitorMetricSingleDimension(string name = null, string value = null) + { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + if (value == null) + { + throw new ArgumentNullException(nameof(value)); + } + + return new MonitorMetricSingleDimension(name, value); + } + + /// Initializes a new instance of MonitorSingleBaseline. + /// the sensitivity of the baseline. + /// The low thresholds of the baseline. + /// The high thresholds of the baseline. + /// A new instance for mocking. + public static MonitorSingleBaseline MonitorSingleBaseline(MonitorBaselineSensitivity sensitivity = default, IEnumerable lowThresholds = null, IEnumerable highThresholds = null) + { + lowThresholds ??= new List(); + highThresholds ??= new List(); + + return new MonitorSingleBaseline(sensitivity, lowThresholds?.ToList(), highThresholds?.ToList()); + } + + /// Initializes a new instance of MonitorBaselineMetadata. + /// Name of the baseline metadata. + /// Value of the baseline metadata. + /// or is null. + /// A new instance for mocking. + public static MonitorBaselineMetadata MonitorBaselineMetadata(string name = null, string value = null) + { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + if (value == null) + { + throw new ArgumentNullException(nameof(value)); + } + + return new MonitorBaselineMetadata(name, value); + } + + /// Initializes a new instance of MetricAlertData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// the description of the metric alert that will be included in the alert email. + /// Alert severity {0, 1, 2, 3, 4}. + /// the flag that indicates whether the metric alert is enabled. + /// the list of resource id's that this metric alert is scoped to. + /// how often the metric alert is evaluated represented in ISO 8601 duration format. + /// the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. + /// the resource type of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource. + /// the region of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource. + /// + /// defines the specific alert criteria information. + /// 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 flag that indicates whether the alert should be auto resolved or not. The default is true. + /// the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. + /// Last time the rule was updated in ISO8601 format. + /// the value indicating whether this alert rule is migrated. + /// A new instance for mocking. + public static MetricAlertData MetricAlertData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string description = null, int severity = default, bool isEnabled = default, IEnumerable scopes = null, TimeSpan evaluationFrequency = default, TimeSpan windowSize = default, ResourceType? targetResourceType = null, AzureLocation? targetResourceRegion = null, MetricAlertCriteria criteria = null, bool? isAutoMitigateEnabled = null, IEnumerable actions = null, DateTimeOffset? lastUpdatedOn = null, bool? isMigrated = null) + { + tags ??= new Dictionary(); + scopes ??= new List(); + actions ??= new List(); + + return new MetricAlertData(id, name, resourceType, systemData, tags, location, description, severity, isEnabled, scopes?.ToList(), evaluationFrequency, windowSize, targetResourceType, targetResourceRegion, criteria, isAutoMitigateEnabled, actions?.ToList(), lastUpdatedOn, isMigrated); + } + + /// Initializes a new instance of MetricAlertStatus. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The alert status properties of the metric alert status. + /// A new instance for mocking. + public static MetricAlertStatus MetricAlertStatus(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MetricAlertStatusProperties properties = null) + { + return new MetricAlertStatus(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of MetricAlertStatusProperties. + /// An object describing the type of the dimensions. + /// status value. + /// UTC time when the status was checked. + /// A new instance for mocking. + public static MetricAlertStatusProperties MetricAlertStatusProperties(IReadOnlyDictionary dimensions = null, string status = null, DateTimeOffset? timestamp = null) + { + dimensions ??= new Dictionary(); + + return new MetricAlertStatusProperties(dimensions, status, timestamp); + } + + /// Initializes a new instance of ScheduledQueryRuleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Indicates the type of scheduled query rule. The default is LogAlert. + /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields. + /// The api-version used when creating this alert rule. + /// True if alert rule is legacy Log Analytic rule. + /// The description of the scheduled query rule. + /// The display name of the alert rule. + /// Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only for rules of the kind LogAlert. + /// The flag which indicates whether this scheduled query rule is enabled. Value should be true or false. + /// The list of resource id's that this scheduled query rule is scoped to. + /// How often the scheduled query rule is evaluated represented in ISO 8601 duration format. Relevant and required only for rules of the kind LogAlert. + /// The period of time (in ISO 8601 duration format) on which the Alert query will be executed (bin size). Relevant and required only for rules of the kind LogAlert. + /// If specified then overrides the query time range (default is WindowSize*NumberOfEvaluationPeriods). Relevant only for rules of the kind LogAlert. + /// List of resource type of the target resource(s) on which the alert is created/updated. For example if the scope is a resource group and targetResourceTypes is Microsoft.Compute/virtualMachines, then a different alert will be fired for each virtual machine in the resource group which meet the alert criteria. Relevant only for rules of the kind LogAlert. + /// The rule criteria that defines the conditions of the scheduled query rule. + /// Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired. Relevant only for rules of the kind LogAlert. + /// Actions to invoke when the alert fires. + /// The flag which indicates whether this scheduled query rule has been configured to be stored in the customer's storage. The default is false. + /// The flag which indicates whether this scheduled query rule should be stored in the customer's storage. The default is false. Relevant only for rules of the kind LogAlert. + /// The flag which indicates whether the provided query should be validated or not. The default is false. Relevant only for rules of the kind LogAlert. + /// The flag that indicates whether the alert should be automatically resolved or not. The default is true. Relevant only for rules of the kind LogAlert. + /// A new instance for mocking. + public static ScheduledQueryRuleData ScheduledQueryRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ScheduledQueryRuleKind? kind = null, ETag? etag = null, string createdWithApiVersion = null, bool? isLegacyLogAnalyticsRule = null, string description = null, string displayName = null, AlertSeverity? severity = null, bool? isEnabled = null, IEnumerable scopes = null, TimeSpan? evaluationFrequency = null, TimeSpan? windowSize = null, TimeSpan? overrideQueryTimeRange = null, IEnumerable targetResourceTypes = null, IEnumerable criteriaAllOf = null, TimeSpan? muteActionsDuration = null, ScheduledQueryRuleActions actions = null, bool? isWorkspaceAlertsStorageConfigured = null, bool? checkWorkspaceAlertsStorageConfigured = null, bool? skipQueryValidation = null, bool? autoMitigate = null) + { + tags ??= new Dictionary(); + scopes ??= new List(); + targetResourceTypes ??= new List(); + criteriaAllOf ??= new List(); + + return new ScheduledQueryRuleData(id, name, resourceType, systemData, tags, location, kind, etag, createdWithApiVersion, isLegacyLogAnalyticsRule, description, displayName, severity, isEnabled, scopes?.ToList(), evaluationFrequency, windowSize, overrideQueryTimeRange, targetResourceTypes?.ToList(), criteriaAllOf != null ? new ScheduledQueryRuleCriteria(criteriaAllOf?.ToList()) : null, muteActionsDuration, actions, isWorkspaceAlertsStorageConfigured, checkWorkspaceAlertsStorageConfigured, skipQueryValidation, autoMitigate); + } + + /// Initializes a new instance of MonitorMetricNamespace. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Kind of namespace. + /// Properties which include the fully qualified namespace name. + /// A new instance for mocking. + public static MonitorMetricNamespace MonitorMetricNamespace(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MonitorNamespaceClassification? classification = null, string metricNamespaceNameValue = null) + { + return new MonitorMetricNamespace(id, name, resourceType, systemData, classification, metricNamespaceNameValue != null ? new MetricNamespaceName(metricNamespaceNameValue) : null); + } + + /// Initializes a new instance of VmInsightsOnboardingStatusData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Azure Resource Manager identifier of the resource whose onboarding status is being represented. + /// The onboarding status for the resource. Note that, a higher level scope, e.g., resource group or subscription, is considered onboarded if at least one resource under it is onboarded. + /// The status of VM Insights data from the resource. When reported as `present` the data array will contain information about the data containers to which data for the specified resource is being routed. + /// Containers that currently store VM Insights data for the specified resource. + /// A new instance for mocking. + public static VmInsightsOnboardingStatusData VmInsightsOnboardingStatusData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier resourceId = null, OnboardingStatus? onboardingStatus = null, DataStatus? dataStatus = null, IEnumerable data = null) + { + data ??= new List(); + + return new VmInsightsOnboardingStatusData(id, name, resourceType, systemData, resourceId, onboardingStatus, dataStatus, data?.ToList()); + } + + /// Initializes a new instance of DataContainer. + /// Log Analytics workspace information. + /// is null. + /// A new instance for mocking. + public static DataContainer DataContainer(DataContainerWorkspace workspace = null) + { + if (workspace == null) + { + throw new ArgumentNullException(nameof(workspace)); + } + + return new DataContainer(workspace); + } + + /// Initializes a new instance of DataContainerWorkspace. + /// Azure Resource Manager identifier of the Log Analytics Workspace. + /// Location of the Log Analytics workspace. + /// Log Analytics workspace identifier. + /// or is null. + /// A new instance for mocking. + public static DataContainerWorkspace DataContainerWorkspace(ResourceIdentifier id = null, AzureLocation location = default, string customerId = null) + { + if (id == null) + { + throw new ArgumentNullException(nameof(id)); + } + if (customerId == null) + { + throw new ArgumentNullException(nameof(customerId)); + } + + return new DataContainerWorkspace(id, location, customerId); + } + + /// Initializes a new instance of MonitorPrivateLinkScopeData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Current state of this PrivateLinkScope: whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Provisioning ,Succeeded, Canceled and Failed. + /// List of private endpoint connections. + /// Access mode settings. + /// A new instance for mocking. + public static MonitorPrivateLinkScopeData MonitorPrivateLinkScopeData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string provisioningState = null, IEnumerable privateEndpointConnections = null, MonitorPrivateLinkAccessModeSettings accessModeSettings = null) + { + tags ??= new Dictionary(); + privateEndpointConnections ??= new List(); + + return new MonitorPrivateLinkScopeData(id, name, resourceType, systemData, tags, location, provisioningState, privateEndpointConnections?.ToList(), accessModeSettings); + } + + /// Initializes a new instance of MonitorPrivateEndpointConnectionData. + /// 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 MonitorPrivateEndpointConnectionData MonitorPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier privateEndpointId = null, MonitorPrivateLinkServiceConnectionState connectionState = null, MonitorPrivateEndpointConnectionProvisioningState? provisioningState = null) + { + return new MonitorPrivateEndpointConnectionData(id, name, resourceType, systemData, privateEndpointId != null ? ResourceManagerModelFactory.SubResource(privateEndpointId) : null, connectionState, provisioningState); + } + + /// Initializes a new instance of MonitorPrivateLinkScopeOperationStatus. + /// The operation Id. + /// The operation name. + /// Start time of the job in standard ISO8601 format. + /// End time of the job in standard ISO8601 format. + /// The status of the operation. + /// The error detail of the operation if any. + /// A new instance for mocking. + public static MonitorPrivateLinkScopeOperationStatus MonitorPrivateLinkScopeOperationStatus(string id = null, string name = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, string status = null, ResponseError error = null) + { + return new MonitorPrivateLinkScopeOperationStatus(id, name, startOn, endOn, status, error); + } + + /// Initializes a new instance of MonitorPrivateLinkResourceData. + /// 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 MonitorPrivateLinkResourceData MonitorPrivateLinkResourceData(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 MonitorPrivateLinkResourceData(id, name, resourceType, systemData, groupId, requiredMembers?.ToList(), requiredZoneNames?.ToList()); + } + + /// Initializes a new instance of MonitorPrivateLinkScopedResourceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The resource id of the scoped Azure monitor resource. + /// State of the private endpoint connection. + /// A new instance for mocking. + public static MonitorPrivateLinkScopedResourceData MonitorPrivateLinkScopedResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier linkedResourceId = null, string provisioningState = null) + { + return new MonitorPrivateLinkScopedResourceData(id, name, resourceType, systemData, linkedResourceId, provisioningState); + } + + /// Initializes a new instance of ActivityLogAlertData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item. + /// The condition that will cause this alert to activate. + /// The actions that will activate when the condition is met. + /// Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated. + /// A description of this Activity Log Alert rule. + /// A new instance for mocking. + public static ActivityLogAlertData ActivityLogAlertData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, IEnumerable scopes = null, IEnumerable conditionAllOf = null, IEnumerable actionsActionGroups = null, bool? isEnabled = null, string description = null) + { + tags ??= new Dictionary(); + scopes ??= new List(); + conditionAllOf ??= new List(); + actionsActionGroups ??= new List(); + + return new ActivityLogAlertData(id, name, resourceType, systemData, tags, location, scopes?.ToList(), conditionAllOf != null ? new AlertRuleAllOfCondition(conditionAllOf?.ToList()) : null, actionsActionGroups != null ? new ActionList(actionsActionGroups?.ToList()) : null, isEnabled, description); + } + + /// Initializes a new instance of DataCollectionEndpointData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The kind of the resource. + /// Managed service identity of the resource. + /// Resource entity tag (ETag). + /// Description of the data collection endpoint. + /// The immutable ID of this data collection endpoint resource. This property is READ-ONLY. + /// The endpoint used by clients to access their configuration. + /// The endpoint used by clients to ingest logs. + /// The endpoint used by clients to ingest metrics. + /// Network access control rules for the endpoints. + /// The resource provisioning state. This property is READ-ONLY. + /// List of Azure Monitor Private Link Scope Resources to which this data collection endpoint resource is associated. This property is READ-ONLY. + /// Failover configuration on this endpoint. This property is READ-ONLY. + /// Metadata for the resource. This property is READ-ONLY. + /// A new instance for mocking. + public static DataCollectionEndpointData DataCollectionEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, DataCollectionEndpointResourceKind? kind = null, ManagedServiceIdentity identity = null, ETag? etag = null, string description = null, string immutableId = null, string configurationAccessEndpoint = null, string logsIngestionEndpoint = null, string metricsIngestionEndpoint = null, MonitorPublicNetworkAccess? publicNetworkAccess = null, DataCollectionEndpointProvisioningState? provisioningState = null, IEnumerable privateLinkScopedResources = null, DataCollectionEndpointFailoverConfiguration failoverConfiguration = null, DataCollectionEndpointMetadata metadata = null) + { + tags ??= new Dictionary(); + privateLinkScopedResources ??= new List(); + + return new DataCollectionEndpointData(id, name, resourceType, systemData, tags, location, kind, identity, etag, description, immutableId, configurationAccessEndpoint != null ? new DataCollectionEndpointConfigurationAccess(configurationAccessEndpoint) : null, logsIngestionEndpoint != null ? new DataCollectionEndpointLogsIngestion(logsIngestionEndpoint) : null, metricsIngestionEndpoint != null ? new DataCollectionEndpointMetricsIngestion(metricsIngestionEndpoint) : null, publicNetworkAccess != null ? new DataCollectionEndpointNetworkAcls(publicNetworkAccess) : null, provisioningState, privateLinkScopedResources?.ToList(), failoverConfiguration, metadata); + } + + /// Initializes a new instance of DataCollectionRulePrivateLinkScopedResourceInfo. + /// The resourceId of the Azure Monitor Private Link Scope Scoped Resource through which this DCE is associated with a Azure Monitor Private Link Scope. + /// The immutableId of the Azure Monitor Private Link Scope Resource to which the association is. + /// A new instance for mocking. + public static DataCollectionRulePrivateLinkScopedResourceInfo DataCollectionRulePrivateLinkScopedResourceInfo(ResourceIdentifier resourceId = null, string scopeId = null) + { + return new DataCollectionRulePrivateLinkScopedResourceInfo(resourceId, scopeId); + } + + /// Initializes a new instance of DataCollectionEndpointFailoverConfiguration. + /// Active location where data flow will occur. + /// Locations that are configured for failover. + /// A new instance for mocking. + public static DataCollectionEndpointFailoverConfiguration DataCollectionEndpointFailoverConfiguration(string activeLocation = null, IEnumerable locations = null) + { + locations ??= new List(); + + return new DataCollectionEndpointFailoverConfiguration(activeLocation, locations?.ToList()); + } + + /// Initializes a new instance of DataCollectionRuleBcdrFailoverConfigurationSpec. + /// Active location where data flow will occur. + /// Locations that are configured for failover. + /// A new instance for mocking. + public static DataCollectionRuleBcdrFailoverConfigurationSpec DataCollectionRuleBcdrFailoverConfigurationSpec(string activeLocation = null, IEnumerable locations = null) + { + locations ??= new List(); + + return new DataCollectionRuleBcdrFailoverConfigurationSpec(activeLocation, locations?.ToList()); + } + + /// Initializes a new instance of DataCollectionRuleBcdrLocationSpec. + /// Name of location. + /// The resource provisioning state in this location. + /// A new instance for mocking. + public static DataCollectionRuleBcdrLocationSpec DataCollectionRuleBcdrLocationSpec(AzureLocation? location = null, DataCollectionRuleBcdrLocationSpecProvisioningStatus? provisioningStatus = null) + { + return new DataCollectionRuleBcdrLocationSpec(location, provisioningStatus); + } + + /// Initializes a new instance of DataCollectionEndpointMetadata. + /// Azure offering managing this resource on-behalf-of customer. + /// Resource Id of azure offering managing this resource on-behalf-of customer. + /// A new instance for mocking. + public static DataCollectionEndpointMetadata DataCollectionEndpointMetadata(string provisionedBy = null, string provisionedByResourceId = null) + { + return new DataCollectionEndpointMetadata(provisionedBy, provisionedByResourceId); + } + + /// Initializes a new instance of DataCollectionRuleRelatedResourceMetadata. + /// Azure offering managing this resource on-behalf-of customer. + /// Resource Id of azure offering managing this resource on-behalf-of customer. + /// A new instance for mocking. + public static DataCollectionRuleRelatedResourceMetadata DataCollectionRuleRelatedResourceMetadata(string provisionedBy = null, string provisionedByResourceId = null) + { + return new DataCollectionRuleRelatedResourceMetadata(provisionedBy, provisionedByResourceId); + } + + /// Initializes a new instance of DataCollectionRuleAssociationData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Resource entity tag (ETag). + /// Description of the association. + /// The resource ID of the data collection rule that is to be associated. + /// The resource ID of the data collection endpoint that is to be associated. + /// The resource provisioning state. + /// Metadata about the resource. + /// A new instance for mocking. + public static DataCollectionRuleAssociationData DataCollectionRuleAssociationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ETag? etag = null, string description = null, ResourceIdentifier dataCollectionRuleId = null, ResourceIdentifier dataCollectionEndpointId = null, DataCollectionRuleAssociationProvisioningState? provisioningState = null, DataCollectionRuleAssociationMetadata metadata = null) + { + return new DataCollectionRuleAssociationData(id, name, resourceType, systemData, etag, description, dataCollectionRuleId, dataCollectionEndpointId, provisioningState, metadata); + } + + /// Initializes a new instance of DataCollectionRuleAssociationMetadata. + /// Azure offering managing this resource on-behalf-of customer. + /// Resource Id of azure offering managing this resource on-behalf-of customer. + /// A new instance for mocking. + public static DataCollectionRuleAssociationMetadata DataCollectionRuleAssociationMetadata(string provisionedBy = null, string provisionedByResourceId = null) + { + return new DataCollectionRuleAssociationMetadata(provisionedBy, provisionedByResourceId); + } + + /// Initializes a new instance of DataCollectionRuleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The kind of the resource. + /// Managed service identity of the resource. + /// Resource entity tag (ETag). + /// Description of the data collection rule. + /// The immutable ID of this data collection rule. This property is READ-ONLY. + /// The resource ID of the data collection endpoint that this rule can be used with. + /// Metadata about the resource. + /// Declaration of custom streams used in this rule. + /// + /// The specification of data sources. + /// This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint. + /// + /// The specification of destinations. + /// The specification of data flows. + /// The resource provisioning state. + /// A new instance for mocking. + public static DataCollectionRuleData DataCollectionRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, DataCollectionRuleResourceKind? kind = null, ManagedServiceIdentity identity = null, ETag? etag = null, string description = null, string immutableId = null, ResourceIdentifier dataCollectionEndpointId = null, DataCollectionRuleMetadata metadata = null, IDictionary streamDeclarations = null, DataCollectionRuleDataSources dataSources = null, DataCollectionRuleDestinations destinations = null, IEnumerable dataFlows = null, DataCollectionRuleProvisioningState? provisioningState = null) + { + tags ??= new Dictionary(); + streamDeclarations ??= new Dictionary(); + dataFlows ??= new List(); + + return new DataCollectionRuleData(id, name, resourceType, systemData, tags, location, kind, identity, etag, description, immutableId, dataCollectionEndpointId, metadata, streamDeclarations, dataSources, destinations, dataFlows?.ToList(), provisioningState); + } + + /// Initializes a new instance of DataCollectionRuleMetadata. + /// Azure offering managing this resource on-behalf-of customer. + /// Resource Id of azure offering managing this resource on-behalf-of customer. + /// A new instance for mocking. + public static DataCollectionRuleMetadata DataCollectionRuleMetadata(string provisionedBy = null, string provisionedByResourceId = null) + { + return new DataCollectionRuleMetadata(provisionedBy, provisionedByResourceId); + } + + /// Initializes a new instance of LogAnalyticsDestination. + /// The resource ID of the Log Analytics workspace. + /// The Customer ID of the Log Analytics workspace. + /// + /// A friendly name for the destination. + /// This name should be unique across all destinations (regardless of type) within the data collection rule. + /// + /// A new instance for mocking. + public static LogAnalyticsDestination LogAnalyticsDestination(ResourceIdentifier workspaceResourceId = null, string workspaceId = null, string name = null) + { + return new LogAnalyticsDestination(workspaceResourceId, workspaceId, name); + } + + /// Initializes a new instance of MonitoringAccountDestination. + /// The resource ID of the monitoring account. + /// The immutable ID of the account. + /// + /// A friendly name for the destination. + /// This name should be unique across all destinations (regardless of type) within the data collection rule. + /// + /// A new instance for mocking. + public static MonitoringAccountDestination MonitoringAccountDestination(ResourceIdentifier accountResourceId = null, string accountId = null, string name = null) + { + return new MonitoringAccountDestination(accountResourceId, accountId, name); + } + } +} diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/autorest.md b/sdk/monitor/Azure.ResourceManager.Monitor/src/autorest.md index 0f6816c53b55..b23dc51571d0 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/autorest.md +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/autorest.md @@ -5,7 +5,6 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml azure-arm: true -generate-model-factory: false library-name: Monitor namespace: Azure.ResourceManager.Monitor require: https://github.com/Azure/azure-rest-api-specs/blob/fce14bf881523f16b14d8ecf325e004465cdcf56/specification/monitor/resource-manager/readme.md diff --git a/sdk/mysql/Azure.ResourceManager.MySql/CHANGELOG.md b/sdk/mysql/Azure.ResourceManager.MySql/CHANGELOG.md index a829717d893e..918f1541c5e6 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/CHANGELOG.md +++ b/sdk/mysql/Azure.ResourceManager.MySql/CHANGELOG.md @@ -1,15 +1,16 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.1.0-beta.1 (2023-05-30) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Enable the model factory feature for model mocking, more information can be found [here](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-mocking-factory-builder). ### Other Changes +- Upgraded dependent Azure.Core to 1.32.0. +- Upgraded dependent Azure.ResourceManager to 1.6.0. + ## 1.0.1 (2023-02-16) ### Other Changes diff --git a/sdk/mysql/Azure.ResourceManager.MySql/api/Azure.ResourceManager.MySql.netstandard2.0.cs b/sdk/mysql/Azure.ResourceManager.MySql/api/Azure.ResourceManager.MySql.netstandard2.0.cs index bd485c793696..651822633cce 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/api/Azure.ResourceManager.MySql.netstandard2.0.cs +++ b/sdk/mysql/Azure.ResourceManager.MySql/api/Azure.ResourceManager.MySql.netstandard2.0.cs @@ -852,6 +852,28 @@ protected MySqlFlexibleServerResource() { } } namespace Azure.ResourceManager.MySql.FlexibleServers.Models { + public static partial class ArmFlexibleServersModelFactory + { + public static Azure.ResourceManager.MySql.FlexibleServers.MySqlFlexibleServerBackupData MySqlFlexibleServerBackupData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string backupType = null, System.DateTimeOffset? completedOn = default(System.DateTimeOffset?), string source = null) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerBackupProperties MySqlFlexibleServerBackupProperties(int? backupRetentionDays = default(int?), Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerEnableStatusEnum? geoRedundantBackup = default(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerEnableStatusEnum?), System.DateTimeOffset? earliestRestoreOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerCapabilityProperties MySqlFlexibleServerCapabilityProperties(string zone = null, System.Collections.Generic.IEnumerable supportedHAMode = null, System.Collections.Generic.IEnumerable supportedGeoBackupRegions = null, System.Collections.Generic.IEnumerable supportedFlexibleServerEditions = null) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.MySqlFlexibleServerConfigurationData MySqlFlexibleServerConfigurationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string value = null, string description = null, string defaultValue = null, string dataType = null, string allowedValues = null, Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerConfigurationSource? source = default(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerConfigurationSource?), Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerConfigReadOnlyState? isReadOnly = default(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerConfigReadOnlyState?), Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerConfigPendingRestartState? isConfigPendingRestart = default(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerConfigPendingRestartState?), Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerConfigDynamicState? isDynamicConfig = default(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerConfigDynamicState?)) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerConfigurations MySqlFlexibleServerConfigurations(System.Collections.Generic.IEnumerable values = null) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.MySqlFlexibleServerData MySqlFlexibleServerData(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.MySql.FlexibleServers.Models.MySqlFlexibleServerSku sku = null, string administratorLogin = null, string administratorLoginPassword = null, Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerVersion? version = default(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerVersion?), string availabilityZone = null, Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerCreateMode? createMode = default(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerCreateMode?), Azure.Core.ResourceIdentifier sourceServerResourceId = null, System.DateTimeOffset? restorePointInTime = default(System.DateTimeOffset?), Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerReplicationRole? replicationRole = default(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerReplicationRole?), int? replicaCapacity = default(int?), Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerDataEncryption dataEncryption = null, Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerState? state = default(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerState?), string fullyQualifiedDomainName = null, Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerStorage storage = null, Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerBackupProperties backup = null, Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerHighAvailability highAvailability = null, Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerNetwork network = null, Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerMaintenanceWindow maintenanceWindow = null) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.MySqlFlexibleServerDatabaseData MySqlFlexibleServerDatabaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string charset = null, string collation = null) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerDelegatedSubnetUsage MySqlFlexibleServerDelegatedSubnetUsage(string subnetName = null, long? usage = default(long?)) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerEditionCapability MySqlFlexibleServerEditionCapability(string name = null, System.Collections.Generic.IEnumerable supportedStorageEditions = null, System.Collections.Generic.IEnumerable supportedServerVersions = null) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.MySqlFlexibleServerFirewallRuleData MySqlFlexibleServerFirewallRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Net.IPAddress startIPAddress = null, System.Net.IPAddress endIPAddress = null) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerHighAvailability MySqlFlexibleServerHighAvailability(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerHighAvailabilityMode? mode = default(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerHighAvailabilityMode?), Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerHighAvailabilityState? state = default(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerHighAvailabilityState?), string standbyAvailabilityZone = null) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerNameAvailabilityResult MySqlFlexibleServerNameAvailabilityResult(string message = null, bool? isNameAvailable = default(bool?), string reason = null) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerNetwork MySqlFlexibleServerNetwork(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerEnableStatusEnum? publicNetworkAccess = default(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerEnableStatusEnum?), Azure.Core.ResourceIdentifier delegatedSubnetResourceId = null, Azure.Core.ResourceIdentifier privateDnsZoneResourceId = null) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerPrivateDnsZoneSuffixResponse MySqlFlexibleServerPrivateDnsZoneSuffixResponse(string privateDnsZoneSuffix = null) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerServerVersionCapability MySqlFlexibleServerServerVersionCapability(string name = null, System.Collections.Generic.IEnumerable supportedSkus = null) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerSkuCapability MySqlFlexibleServerSkuCapability(string name = null, long? vCores = default(long?), long? supportedIops = default(long?), long? supportedMemoryPerVCoreInMB = default(long?)) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerStorage MySqlFlexibleServerStorage(int? storageSizeInGB = default(int?), int? iops = default(int?), Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerEnableStatusEnum? autoGrow = default(Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerEnableStatusEnum?), string storageSku = null) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerStorageEditionCapability MySqlFlexibleServerStorageEditionCapability(string name = null, long? minStorageSize = default(long?), long? maxStorageSize = default(long?), long? minBackupRetentionDays = default(long?), long? maxBackupRetentionDays = default(long?)) { throw null; } + public static Azure.ResourceManager.MySql.FlexibleServers.Models.MySqlFlexibleServerVirtualNetworkSubnetUsageResult MySqlFlexibleServerVirtualNetworkSubnetUsageResult(System.Collections.Generic.IEnumerable delegatedSubnetsUsage = null) { throw null; } + } public partial class MySqlFlexibleServerBackupProperties { public MySqlFlexibleServerBackupProperties() { } @@ -1250,6 +1272,35 @@ internal MySqlFlexibleServerVirtualNetworkSubnetUsageResult() { } } namespace Azure.ResourceManager.MySql.Models { + public static partial class ArmMySqlModelFactory + { + public static Azure.ResourceManager.MySql.MySqlAdvisorData MySqlAdvisorData(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.MySql.MySqlConfigurationData MySqlConfigurationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string value = null, string description = null, string defaultValue = null, string dataType = null, string allowedValues = null, string source = null) { throw null; } + public static Azure.ResourceManager.MySql.MySqlDatabaseData MySqlDatabaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string charset = null, string collation = null) { throw null; } + public static Azure.ResourceManager.MySql.MySqlFirewallRuleData MySqlFirewallRuleData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Net.IPAddress startIPAddress = null, System.Net.IPAddress endIPAddress = null) { throw null; } + public static Azure.ResourceManager.MySql.Models.MySqlLogFile MySqlLogFile(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, long? sizeInKB = default(long?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastModifiedOn = default(System.DateTimeOffset?), string logFileType = null, System.Uri uri = null) { throw null; } + public static Azure.ResourceManager.MySql.Models.MySqlNameAvailabilityResult MySqlNameAvailabilityResult(string message = null, bool? isNameAvailable = default(bool?), string reason = null) { throw null; } + public static Azure.ResourceManager.MySql.Models.MySqlPerformanceTier MySqlPerformanceTier(string id = null, int? maxBackupRetentionDays = default(int?), int? minBackupRetentionDays = default(int?), int? maxStorageInMB = default(int?), int? minLargeStorageInMB = default(int?), int? maxLargeStorageInMB = default(int?), int? minStorageInMB = default(int?), System.Collections.Generic.IEnumerable serviceLevelObjectives = null) { throw null; } + public static Azure.ResourceManager.MySql.Models.MySqlPerformanceTierServiceLevelObjectives MySqlPerformanceTierServiceLevelObjectives(string id = null, string edition = null, int? vCores = default(int?), string hardwareGeneration = null, int? maxBackupRetentionDays = default(int?), int? minBackupRetentionDays = default(int?), int? maxStorageInMB = default(int?), int? minStorageInMB = default(int?)) { throw null; } + public static Azure.ResourceManager.MySql.MySqlPrivateEndpointConnectionData MySqlPrivateEndpointConnectionData(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.MySql.Models.MySqlPrivateLinkServiceConnectionStateProperty connectionState = null, string provisioningState = null) { throw null; } + public static Azure.ResourceManager.MySql.MySqlPrivateLinkResourceData MySqlPrivateLinkResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MySql.Models.MySqlPrivateLinkResourceProperties properties = null) { throw null; } + public static Azure.ResourceManager.MySql.Models.MySqlPrivateLinkResourceProperties MySqlPrivateLinkResourceProperties(string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null) { throw null; } + public static Azure.ResourceManager.MySql.Models.MySqlPrivateLinkServiceConnectionStateProperty MySqlPrivateLinkServiceConnectionStateProperty(string status = null, string description = null, string actionsRequired = null) { throw null; } + public static Azure.ResourceManager.MySql.Models.MySqlQueryPerformanceInsightResetDataResult MySqlQueryPerformanceInsightResetDataResult(Azure.ResourceManager.MySql.Models.MySqlQueryPerformanceInsightResetDataResultState? status = default(Azure.ResourceManager.MySql.Models.MySqlQueryPerformanceInsightResetDataResultState?), string message = null) { throw null; } + public static Azure.ResourceManager.MySql.MySqlQueryStatisticData MySqlQueryStatisticData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string queryId = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string aggregationFunction = null, System.Collections.Generic.IEnumerable databaseNames = null, long? queryExecutionCount = default(long?), string metricName = null, string metricDisplayName = null, double? metricValue = default(double?), string metricValueUnit = null) { throw null; } + public static Azure.ResourceManager.MySql.MySqlQueryTextData MySqlQueryTextData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string queryId = null, string queryText = null) { throw null; } + public static Azure.ResourceManager.MySql.MySqlRecommendationActionData MySqlRecommendationActionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string advisorName = null, System.Guid? sessionId = default(System.Guid?), int? actionId = default(int?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? expireOn = default(System.DateTimeOffset?), string reason = null, string recommendationType = null, System.Collections.Generic.IDictionary details = null) { throw null; } + public static Azure.ResourceManager.MySql.Models.MySqlRecoverableServerResourceData MySqlRecoverableServerResourceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? lastAvailableBackupOn = default(System.DateTimeOffset?), string serviceLevelObjective = null, string edition = null, int? vCores = default(int?), string hardwareGeneration = null, string version = null) { throw null; } + public static Azure.ResourceManager.MySql.MySqlServerAdministratorData MySqlServerAdministratorData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MySql.Models.MySqlAdministratorType? administratorType = default(Azure.ResourceManager.MySql.Models.MySqlAdministratorType?), string loginAccountName = null, System.Guid? secureId = default(System.Guid?), System.Guid? tenantId = default(System.Guid?)) { throw null; } + public static Azure.ResourceManager.MySql.MySqlServerData MySqlServerData(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.MySql.Models.MySqlSku sku = null, string administratorLogin = null, Azure.ResourceManager.MySql.Models.MySqlServerVersion? version = default(Azure.ResourceManager.MySql.Models.MySqlServerVersion?), Azure.ResourceManager.MySql.Models.MySqlSslEnforcementEnum? sslEnforcement = default(Azure.ResourceManager.MySql.Models.MySqlSslEnforcementEnum?), Azure.ResourceManager.MySql.Models.MySqlMinimalTlsVersionEnum? minimalTlsVersion = default(Azure.ResourceManager.MySql.Models.MySqlMinimalTlsVersionEnum?), string byokEnforcement = null, Azure.ResourceManager.MySql.Models.MySqlInfrastructureEncryption? infrastructureEncryption = default(Azure.ResourceManager.MySql.Models.MySqlInfrastructureEncryption?), Azure.ResourceManager.MySql.Models.MySqlServerState? userVisibleState = default(Azure.ResourceManager.MySql.Models.MySqlServerState?), string fullyQualifiedDomainName = null, System.DateTimeOffset? earliestRestoreOn = default(System.DateTimeOffset?), Azure.ResourceManager.MySql.Models.MySqlStorageProfile storageProfile = null, string replicationRole = null, Azure.Core.ResourceIdentifier masterServerId = null, int? replicaCapacity = default(int?), Azure.ResourceManager.MySql.Models.MySqlPublicNetworkAccessEnum? publicNetworkAccess = default(Azure.ResourceManager.MySql.Models.MySqlPublicNetworkAccessEnum?), System.Collections.Generic.IEnumerable privateEndpointConnections = null) { throw null; } + public static Azure.ResourceManager.MySql.MySqlServerKeyData MySqlServerKeyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string kind = null, Azure.ResourceManager.MySql.Models.MySqlServerKeyType? serverKeyType = default(Azure.ResourceManager.MySql.Models.MySqlServerKeyType?), System.Uri uri = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?)) { throw null; } + public static Azure.ResourceManager.MySql.Models.MySqlServerPrivateEndpointConnection MySqlServerPrivateEndpointConnection(Azure.Core.ResourceIdentifier id = null, Azure.ResourceManager.MySql.Models.MySqlServerPrivateEndpointConnectionProperties properties = null) { throw null; } + public static Azure.ResourceManager.MySql.Models.MySqlServerPrivateEndpointConnectionProperties MySqlServerPrivateEndpointConnectionProperties(Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.MySql.Models.MySqlServerPrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = null, Azure.ResourceManager.MySql.Models.MySqlPrivateEndpointProvisioningState? provisioningState = default(Azure.ResourceManager.MySql.Models.MySqlPrivateEndpointProvisioningState?)) { throw null; } + public static Azure.ResourceManager.MySql.Models.MySqlServerPrivateLinkServiceConnectionStateProperty MySqlServerPrivateLinkServiceConnectionStateProperty(Azure.ResourceManager.MySql.Models.MySqlPrivateLinkServiceConnectionStateStatus status = default(Azure.ResourceManager.MySql.Models.MySqlPrivateLinkServiceConnectionStateStatus), string description = null, Azure.ResourceManager.MySql.Models.MySqlPrivateLinkServiceConnectionStateRequiredAction? actionsRequired = default(Azure.ResourceManager.MySql.Models.MySqlPrivateLinkServiceConnectionStateRequiredAction?)) { throw null; } + public static Azure.ResourceManager.MySql.MySqlServerSecurityAlertPolicyData MySqlServerSecurityAlertPolicyData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.MySql.Models.MySqlServerSecurityAlertPolicyState? state = default(Azure.ResourceManager.MySql.Models.MySqlServerSecurityAlertPolicyState?), System.Collections.Generic.IEnumerable disabledAlerts = null, System.Collections.Generic.IEnumerable emailAddresses = null, bool? sendToEmailAccountAdmins = default(bool?), string storageEndpoint = null, string storageAccountAccessKey = null, int? retentionDays = default(int?)) { throw null; } + public static Azure.ResourceManager.MySql.MySqlVirtualNetworkRuleData MySqlVirtualNetworkRuleData(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 virtualNetworkSubnetId = null, bool? ignoreMissingVnetServiceEndpoint = default(bool?), Azure.ResourceManager.MySql.Models.MySqlVirtualNetworkRuleState? state = default(Azure.ResourceManager.MySql.Models.MySqlVirtualNetworkRuleState?)) { throw null; } + public static Azure.ResourceManager.MySql.MySqlWaitStatisticData MySqlWaitStatisticData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string eventName = null, string eventTypeName = null, long? queryId = default(long?), string databaseName = null, long? userId = default(long?), long? count = default(long?), double? totalTimeInMinutes = default(double?)) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct MySqlAdministratorType : System.IEquatable { diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/ArmMySqlModelFactory.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/ArmMySqlModelFactory.cs new file mode 100644 index 000000000000..1aa140c43b57 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySql/Generated/ArmMySqlModelFactory.cs @@ -0,0 +1,412 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.MySql; + +namespace Azure.ResourceManager.MySql.Models +{ + /// Model factory for models. + public static partial class ArmMySqlModelFactory + { + + /// Initializes a new instance of MySqlServerData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The Azure Active Directory identity of the server. Current supported identity types: SystemAssigned. + /// The SKU (pricing tier) of the server. + /// The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). + /// Server version. + /// Enable ssl enforcement or not when connect to server. + /// Enforce a minimal Tls version for the server. + /// Status showing whether the server data encryption is enabled with customer-managed keys. + /// Status showing whether the server enabled infrastructure encryption. + /// A state of a server that is visible to user. + /// The fully qualified domain name of a server. + /// Earliest restore point creation time (ISO8601 format). + /// Storage profile of a server. + /// The replication role of the server. + /// The master server id of a replica server. + /// The maximum number of replicas that a master server can have. + /// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. + /// List of private endpoint connections on a server. + /// A new instance for mocking. + public static MySqlServerData MySqlServerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, MySqlSku sku = null, string administratorLogin = null, MySqlServerVersion? version = null, MySqlSslEnforcementEnum? sslEnforcement = null, MySqlMinimalTlsVersionEnum? minimalTlsVersion = null, string byokEnforcement = null, MySqlInfrastructureEncryption? infrastructureEncryption = null, MySqlServerState? userVisibleState = null, string fullyQualifiedDomainName = null, DateTimeOffset? earliestRestoreOn = null, MySqlStorageProfile storageProfile = null, string replicationRole = null, ResourceIdentifier masterServerId = null, int? replicaCapacity = null, MySqlPublicNetworkAccessEnum? publicNetworkAccess = null, IEnumerable privateEndpointConnections = null) + { + tags ??= new Dictionary(); + privateEndpointConnections ??= new List(); + + return new MySqlServerData(id, name, resourceType, systemData, tags, location, identity, sku, administratorLogin, version, sslEnforcement, minimalTlsVersion, byokEnforcement, infrastructureEncryption, userVisibleState, fullyQualifiedDomainName, earliestRestoreOn, storageProfile, replicationRole, masterServerId, replicaCapacity, publicNetworkAccess, privateEndpointConnections?.ToList()); + } + + /// Initializes a new instance of MySqlServerPrivateEndpointConnection. + /// Resource Id of the private endpoint connection. + /// Private endpoint connection properties. + /// A new instance for mocking. + public static MySqlServerPrivateEndpointConnection MySqlServerPrivateEndpointConnection(ResourceIdentifier id = null, MySqlServerPrivateEndpointConnectionProperties properties = null) + { + return new MySqlServerPrivateEndpointConnection(id, properties); + } + + /// Initializes a new instance of MySqlServerPrivateEndpointConnectionProperties. + /// Private endpoint which the connection belongs to. + /// Connection state of the private endpoint connection. + /// State of the private endpoint connection. + /// A new instance for mocking. + public static MySqlServerPrivateEndpointConnectionProperties MySqlServerPrivateEndpointConnectionProperties(ResourceIdentifier privateEndpointId = null, MySqlServerPrivateLinkServiceConnectionStateProperty privateLinkServiceConnectionState = null, MySqlPrivateEndpointProvisioningState? provisioningState = null) + { + return new MySqlServerPrivateEndpointConnectionProperties(privateEndpointId != null ? ResourceManagerModelFactory.WritableSubResource(privateEndpointId) : null, privateLinkServiceConnectionState, provisioningState); + } + + /// Initializes a new instance of MySqlServerPrivateLinkServiceConnectionStateProperty. + /// The private link service connection status. + /// The private link service connection description. + /// The actions required for private link service connection. + /// A new instance for mocking. + public static MySqlServerPrivateLinkServiceConnectionStateProperty MySqlServerPrivateLinkServiceConnectionStateProperty(MySqlPrivateLinkServiceConnectionStateStatus status = default, string description = null, MySqlPrivateLinkServiceConnectionStateRequiredAction? actionsRequired = null) + { + return new MySqlServerPrivateLinkServiceConnectionStateProperty(status, description, actionsRequired); + } + + /// Initializes a new instance of MySqlFirewallRuleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The start IP address of the server firewall rule. Must be IPv4 format. + /// The end IP address of the server firewall rule. Must be IPv4 format. + /// A new instance for mocking. + public static MySqlFirewallRuleData MySqlFirewallRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IPAddress startIPAddress = null, IPAddress endIPAddress = null) + { + return new MySqlFirewallRuleData(id, name, resourceType, systemData, startIPAddress, endIPAddress); + } + + /// Initializes a new instance of MySqlVirtualNetworkRuleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The ARM resource id of the virtual network subnet. + /// Create firewall rule before the virtual network has vnet service endpoint enabled. + /// Virtual Network Rule State. + /// A new instance for mocking. + public static MySqlVirtualNetworkRuleData MySqlVirtualNetworkRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier virtualNetworkSubnetId = null, bool? ignoreMissingVnetServiceEndpoint = null, MySqlVirtualNetworkRuleState? state = null) + { + return new MySqlVirtualNetworkRuleData(id, name, resourceType, systemData, virtualNetworkSubnetId, ignoreMissingVnetServiceEndpoint, state); + } + + /// Initializes a new instance of MySqlDatabaseData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The charset of the database. + /// The collation of the database. + /// A new instance for mocking. + public static MySqlDatabaseData MySqlDatabaseData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string charset = null, string collation = null) + { + return new MySqlDatabaseData(id, name, resourceType, systemData, charset, collation); + } + + /// Initializes a new instance of MySqlConfigurationData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Value of the configuration. + /// Description of the configuration. + /// Default value of the configuration. + /// Data type of the configuration. + /// Allowed values of the configuration. + /// Source of the configuration. + /// A new instance for mocking. + public static MySqlConfigurationData MySqlConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string value = null, string description = null, string defaultValue = null, string dataType = null, string allowedValues = null, string source = null) + { + return new MySqlConfigurationData(id, name, resourceType, systemData, value, description, defaultValue, dataType, allowedValues, source); + } + + /// Initializes a new instance of MySqlLogFile. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Size of the log file. + /// Creation timestamp of the log file. + /// Last modified timestamp of the log file. + /// Type of the log file. + /// The url to download the log file from. + /// A new instance for mocking. + public static MySqlLogFile MySqlLogFile(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, long? sizeInKB = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string logFileType = null, Uri uri = null) + { + return new MySqlLogFile(id, name, resourceType, systemData, sizeInKB, createdOn, lastModifiedOn, logFileType, uri); + } + + /// Initializes a new instance of MySqlServerAdministratorData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The type of administrator. + /// The server administrator login account name. + /// The server administrator Sid (Secure ID). + /// The server Active Directory Administrator tenant id. + /// A new instance for mocking. + public static MySqlServerAdministratorData MySqlServerAdministratorData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MySqlAdministratorType? administratorType = null, string loginAccountName = null, Guid? secureId = null, Guid? tenantId = null) + { + return new MySqlServerAdministratorData(id, name, resourceType, systemData, administratorType, loginAccountName, secureId, tenantId); + } + + /// Initializes a new instance of MySqlRecoverableServerResourceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The last available backup date time. + /// The service level objective. + /// Edition of the performance tier. + /// vCore associated with the service level objective. + /// Hardware generation associated with the service level objective. + /// The MySQL version. + /// A new instance for mocking. + public static MySqlRecoverableServerResourceData MySqlRecoverableServerResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? lastAvailableBackupOn = null, string serviceLevelObjective = null, string edition = null, int? vCores = null, string hardwareGeneration = null, string version = null) + { + return new MySqlRecoverableServerResourceData(id, name, resourceType, systemData, lastAvailableBackupOn, serviceLevelObjective, edition, vCores, hardwareGeneration, version); + } + + /// Initializes a new instance of MySqlPerformanceTier. + /// ID of the performance tier. + /// Maximum Backup retention in days for the performance tier edition. + /// Minimum Backup retention in days for the performance tier edition. + /// Max storage allowed for a server. + /// Max storage allowed for a server. + /// Max storage allowed for a server. + /// Max storage allowed for a server. + /// Service level objectives associated with the performance tier. + /// A new instance for mocking. + public static MySqlPerformanceTier MySqlPerformanceTier(string id = null, int? maxBackupRetentionDays = null, int? minBackupRetentionDays = null, int? maxStorageInMB = null, int? minLargeStorageInMB = null, int? maxLargeStorageInMB = null, int? minStorageInMB = null, IEnumerable serviceLevelObjectives = null) + { + serviceLevelObjectives ??= new List(); + + return new MySqlPerformanceTier(id, maxBackupRetentionDays, minBackupRetentionDays, maxStorageInMB, minLargeStorageInMB, maxLargeStorageInMB, minStorageInMB, serviceLevelObjectives?.ToList()); + } + + /// Initializes a new instance of MySqlPerformanceTierServiceLevelObjectives. + /// ID for the service level objective. + /// Edition of the performance tier. + /// vCore associated with the service level objective. + /// Hardware generation associated with the service level objective. + /// Maximum Backup retention in days for the performance tier edition. + /// Minimum Backup retention in days for the performance tier edition. + /// Max storage allowed for a server. + /// Max storage allowed for a server. + /// A new instance for mocking. + public static MySqlPerformanceTierServiceLevelObjectives MySqlPerformanceTierServiceLevelObjectives(string id = null, string edition = null, int? vCores = null, string hardwareGeneration = null, int? maxBackupRetentionDays = null, int? minBackupRetentionDays = null, int? maxStorageInMB = null, int? minStorageInMB = null) + { + return new MySqlPerformanceTierServiceLevelObjectives(id, edition, vCores, hardwareGeneration, maxBackupRetentionDays, minBackupRetentionDays, maxStorageInMB, minStorageInMB); + } + + /// Initializes a new instance of MySqlNameAvailabilityResult. + /// Error Message. + /// Indicates whether the resource name is available. + /// Reason for name being unavailable. + /// A new instance for mocking. + public static MySqlNameAvailabilityResult MySqlNameAvailabilityResult(string message = null, bool? isNameAvailable = null, string reason = null) + { + return new MySqlNameAvailabilityResult(message, isNameAvailable, reason); + } + + /// Initializes a new instance of MySqlServerSecurityAlertPolicyData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Specifies the state of the policy, whether it is enabled or disabled. + /// Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly. + /// Specifies an array of e-mail addresses to which the alert is sent. + /// Specifies that the alert is sent to the account administrators. + /// Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs. + /// Specifies the identifier key of the Threat Detection audit storage account. + /// Specifies the number of days to keep in the Threat Detection audit logs. + /// A new instance for mocking. + public static MySqlServerSecurityAlertPolicyData MySqlServerSecurityAlertPolicyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MySqlServerSecurityAlertPolicyState? state = null, IEnumerable disabledAlerts = null, IEnumerable emailAddresses = null, bool? sendToEmailAccountAdmins = null, string storageEndpoint = null, string storageAccountAccessKey = null, int? retentionDays = null) + { + disabledAlerts ??= new List(); + emailAddresses ??= new List(); + + return new MySqlServerSecurityAlertPolicyData(id, name, resourceType, systemData, state, disabledAlerts?.ToList(), emailAddresses?.ToList(), sendToEmailAccountAdmins, storageEndpoint, storageAccountAccessKey, retentionDays); + } + + /// Initializes a new instance of MySqlQueryTextData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Query identifier unique to the server. + /// Query text. + /// A new instance for mocking. + public static MySqlQueryTextData MySqlQueryTextData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string queryId = null, string queryText = null) + { + return new MySqlQueryTextData(id, name, resourceType, systemData, queryId, queryText); + } + + /// Initializes a new instance of MySqlQueryStatisticData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Database query identifier. + /// Observation start time. + /// Observation end time. + /// Aggregation function name. + /// The list of database names. + /// Number of query executions in this time interval. + /// Metric name. + /// Metric display name. + /// Metric value. + /// Metric value unit. + /// A new instance for mocking. + public static MySqlQueryStatisticData MySqlQueryStatisticData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string queryId = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, string aggregationFunction = null, IEnumerable databaseNames = null, long? queryExecutionCount = null, string metricName = null, string metricDisplayName = null, double? metricValue = null, string metricValueUnit = null) + { + databaseNames ??= new List(); + + return new MySqlQueryStatisticData(id, name, resourceType, systemData, queryId, startOn, endOn, aggregationFunction, databaseNames?.ToList(), queryExecutionCount, metricName, metricDisplayName, metricValue, metricValueUnit); + } + + /// Initializes a new instance of MySqlWaitStatisticData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Observation start time. + /// Observation end time. + /// Wait event name. + /// Wait event type name. + /// Database query identifier. + /// Database Name. + /// Database user identifier. + /// Wait event count observed in this time interval. + /// Total time of wait in milliseconds in this time interval. + /// A new instance for mocking. + public static MySqlWaitStatisticData MySqlWaitStatisticData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, string eventName = null, string eventTypeName = null, long? queryId = null, string databaseName = null, long? userId = null, long? count = null, double? totalTimeInMinutes = null) + { + return new MySqlWaitStatisticData(id, name, resourceType, systemData, startOn, endOn, eventName, eventTypeName, queryId, databaseName, userId, count, totalTimeInMinutes); + } + + /// Initializes a new instance of MySqlQueryPerformanceInsightResetDataResult. + /// Indicates result of the operation. + /// operation message. + /// A new instance for mocking. + public static MySqlQueryPerformanceInsightResetDataResult MySqlQueryPerformanceInsightResetDataResult(MySqlQueryPerformanceInsightResetDataResultState? status = null, string message = null) + { + return new MySqlQueryPerformanceInsightResetDataResult(status, message); + } + + /// Initializes a new instance of MySqlAdvisorData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The properties of a recommendation action advisor. + /// A new instance for mocking. + public static MySqlAdvisorData MySqlAdvisorData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, BinaryData properties = null) + { + return new MySqlAdvisorData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of MySqlRecommendationActionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Advisor name. + /// Recommendation action session identifier. + /// Recommendation action identifier. + /// Recommendation action creation time. + /// Recommendation action expiration time. + /// Recommendation action reason. + /// Recommendation action type. + /// Recommendation action details. + /// A new instance for mocking. + public static MySqlRecommendationActionData MySqlRecommendationActionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string advisorName = null, Guid? sessionId = null, int? actionId = null, DateTimeOffset? createdOn = null, DateTimeOffset? expireOn = null, string reason = null, string recommendationType = null, IDictionary details = null) + { + details ??= new Dictionary(); + + return new MySqlRecommendationActionData(id, name, resourceType, systemData, advisorName, sessionId, actionId, createdOn, expireOn, reason, recommendationType, details); + } + + /// Initializes a new instance of MySqlPrivateEndpointConnectionData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Private endpoint which the connection belongs to. + /// Connection state of the private endpoint connection. + /// State of the private endpoint connection. + /// A new instance for mocking. + public static MySqlPrivateEndpointConnectionData MySqlPrivateEndpointConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ResourceIdentifier privateEndpointId = null, MySqlPrivateLinkServiceConnectionStateProperty connectionState = null, string provisioningState = null) + { + return new MySqlPrivateEndpointConnectionData(id, name, resourceType, systemData, privateEndpointId != null ? ResourceManagerModelFactory.WritableSubResource(privateEndpointId) : null, connectionState, provisioningState); + } + + /// Initializes a new instance of MySqlPrivateLinkServiceConnectionStateProperty. + /// The private link service connection status. + /// The private link service connection description. + /// The actions required for private link service connection. + /// A new instance for mocking. + public static MySqlPrivateLinkServiceConnectionStateProperty MySqlPrivateLinkServiceConnectionStateProperty(string status = null, string description = null, string actionsRequired = null) + { + return new MySqlPrivateLinkServiceConnectionStateProperty(status, description, actionsRequired); + } + + /// Initializes a new instance of MySqlPrivateLinkResourceData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The private link resource group id. + /// A new instance for mocking. + public static MySqlPrivateLinkResourceData MySqlPrivateLinkResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MySqlPrivateLinkResourceProperties properties = null) + { + return new MySqlPrivateLinkResourceData(id, name, resourceType, systemData, properties); + } + + /// Initializes a new instance of MySqlPrivateLinkResourceProperties. + /// The private link resource group id. + /// The private link resource required member names. + /// A new instance for mocking. + public static MySqlPrivateLinkResourceProperties MySqlPrivateLinkResourceProperties(string groupId = null, IEnumerable requiredMembers = null) + { + requiredMembers ??= new List(); + + return new MySqlPrivateLinkResourceProperties(groupId, requiredMembers?.ToList()); + } + + /// Initializes a new instance of MySqlServerKeyData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Kind of encryption protector used to protect the key. + /// The key type like 'AzureKeyVault'. + /// The URI of the key. + /// The key creation date. + /// A new instance for mocking. + public static MySqlServerKeyData MySqlServerKeyData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string kind = null, MySqlServerKeyType? serverKeyType = null, Uri uri = null, DateTimeOffset? createdOn = null) + { + return new MySqlServerKeyData(id, name, resourceType, systemData, kind, serverKeyType, uri, createdOn); + } + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/ArmFlexibleServersModelFactory.cs b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/ArmFlexibleServersModelFactory.cs new file mode 100644 index 000000000000..0f67d2b6cf78 --- /dev/null +++ b/sdk/mysql/Azure.ResourceManager.MySql/src/MySqlFlexibleServers/Generated/ArmFlexibleServersModelFactory.cs @@ -0,0 +1,265 @@ +// 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.MySql.FlexibleServers; + +namespace Azure.ResourceManager.MySql.FlexibleServers.Models +{ + /// Model factory for models. + public static partial class ArmFlexibleServersModelFactory + { + /// Initializes a new instance of MySqlFlexibleServerData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// The cmk identity for the server. Current supported identity types: UserAssigned. + /// The SKU (pricing tier) of the server. + /// The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). + /// The password of the administrator login (required for server creation). + /// Server version. + /// availability Zone information of the server. + /// The mode to create a new MySQL server. + /// The source MySQL server id. + /// Restore point creation time (ISO8601 format), specifying the time to restore from. + /// The replication role. + /// The maximum number of replicas that a primary server can have. + /// The Data Encryption for CMK. + /// The state of a server. + /// The fully qualified domain name of a server. + /// Storage related properties of a server. + /// Backup related properties of a server. + /// High availability related properties of a server. + /// Network related properties of a server. + /// Maintenance window of a server. + /// A new instance for mocking. + public static MySqlFlexibleServerData MySqlFlexibleServerData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, MySqlFlexibleServerSku sku = null, string administratorLogin = null, string administratorLoginPassword = null, MySqlFlexibleServerVersion? version = null, string availabilityZone = null, MySqlFlexibleServerCreateMode? createMode = null, ResourceIdentifier sourceServerResourceId = null, DateTimeOffset? restorePointInTime = null, MySqlFlexibleServerReplicationRole? replicationRole = null, int? replicaCapacity = null, MySqlFlexibleServerDataEncryption dataEncryption = null, MySqlFlexibleServerState? state = null, string fullyQualifiedDomainName = null, MySqlFlexibleServerStorage storage = null, MySqlFlexibleServerBackupProperties backup = null, MySqlFlexibleServerHighAvailability highAvailability = null, MySqlFlexibleServerNetwork network = null, MySqlFlexibleServerMaintenanceWindow maintenanceWindow = null) + { + tags ??= new Dictionary(); + + return new MySqlFlexibleServerData(id, name, resourceType, systemData, tags, location, identity, sku, administratorLogin, administratorLoginPassword, version, availabilityZone, createMode, sourceServerResourceId, restorePointInTime, replicationRole, replicaCapacity, dataEncryption, state, fullyQualifiedDomainName, storage, backup, highAvailability, network, maintenanceWindow); + } + + /// Initializes a new instance of MySqlFlexibleServerStorage. + /// Max storage size allowed for a server. + /// Storage IOPS for a server. + /// Enable Storage Auto Grow or not. + /// The sku name of the server storage. + /// A new instance for mocking. + public static MySqlFlexibleServerStorage MySqlFlexibleServerStorage(int? storageSizeInGB = null, int? iops = null, MySqlFlexibleServerEnableStatusEnum? autoGrow = null, string storageSku = null) + { + return new MySqlFlexibleServerStorage(storageSizeInGB, iops, autoGrow, storageSku); + } + + /// Initializes a new instance of MySqlFlexibleServerBackupProperties. + /// Backup retention days for the server. + /// Whether or not geo redundant backup is enabled. + /// Earliest restore point creation time (ISO8601 format). + /// A new instance for mocking. + public static MySqlFlexibleServerBackupProperties MySqlFlexibleServerBackupProperties(int? backupRetentionDays = null, MySqlFlexibleServerEnableStatusEnum? geoRedundantBackup = null, DateTimeOffset? earliestRestoreOn = null) + { + return new MySqlFlexibleServerBackupProperties(backupRetentionDays, geoRedundantBackup, earliestRestoreOn); + } + + /// Initializes a new instance of MySqlFlexibleServerHighAvailability. + /// High availability mode for a server. + /// The state of server high availability. + /// Availability zone of the standby server. + /// A new instance for mocking. + public static MySqlFlexibleServerHighAvailability MySqlFlexibleServerHighAvailability(MySqlFlexibleServerHighAvailabilityMode? mode = null, MySqlFlexibleServerHighAvailabilityState? state = null, string standbyAvailabilityZone = null) + { + return new MySqlFlexibleServerHighAvailability(mode, state, standbyAvailabilityZone); + } + + /// Initializes a new instance of MySqlFlexibleServerNetwork. + /// Whether or not public network access is allowed for this server. Value is 'Disabled' when server has VNet integration. + /// Delegated subnet resource id used to setup vnet for a server. + /// Private DNS zone resource id. + /// A new instance for mocking. + public static MySqlFlexibleServerNetwork MySqlFlexibleServerNetwork(MySqlFlexibleServerEnableStatusEnum? publicNetworkAccess = null, ResourceIdentifier delegatedSubnetResourceId = null, ResourceIdentifier privateDnsZoneResourceId = null) + { + return new MySqlFlexibleServerNetwork(publicNetworkAccess, delegatedSubnetResourceId, privateDnsZoneResourceId); + } + + /// Initializes a new instance of MySqlFlexibleServerBackupData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Backup type. + /// Backup completed time (ISO8601 format). + /// Backup source. + /// A new instance for mocking. + public static MySqlFlexibleServerBackupData MySqlFlexibleServerBackupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string backupType = null, DateTimeOffset? completedOn = null, string source = null) + { + return new MySqlFlexibleServerBackupData(id, name, resourceType, systemData, backupType, completedOn, source); + } + + /// Initializes a new instance of MySqlFlexibleServerFirewallRuleData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The start IP address of the server firewall rule. Must be IPv4 format. + /// The end IP address of the server firewall rule. Must be IPv4 format. + /// A new instance for mocking. + public static MySqlFlexibleServerFirewallRuleData MySqlFlexibleServerFirewallRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IPAddress startIPAddress = null, IPAddress endIPAddress = null) + { + return new MySqlFlexibleServerFirewallRuleData(id, name, resourceType, systemData, startIPAddress, endIPAddress); + } + + /// Initializes a new instance of MySqlFlexibleServerDatabaseData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The charset of the database. + /// The collation of the database. + /// A new instance for mocking. + public static MySqlFlexibleServerDatabaseData MySqlFlexibleServerDatabaseData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string charset = null, string collation = null) + { + return new MySqlFlexibleServerDatabaseData(id, name, resourceType, systemData, charset, collation); + } + + /// Initializes a new instance of MySqlFlexibleServerConfigurationData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Value of the configuration. + /// Description of the configuration. + /// Default value of the configuration. + /// Data type of the configuration. + /// Allowed values of the configuration. + /// Source of the configuration. + /// If is the configuration read only. + /// If is the configuration pending restart or not. + /// If is the configuration dynamic. + /// A new instance for mocking. + public static MySqlFlexibleServerConfigurationData MySqlFlexibleServerConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string value = null, string description = null, string defaultValue = null, string dataType = null, string allowedValues = null, MySqlFlexibleServerConfigurationSource? source = null, MySqlFlexibleServerConfigReadOnlyState? isReadOnly = null, MySqlFlexibleServerConfigPendingRestartState? isConfigPendingRestart = null, MySqlFlexibleServerConfigDynamicState? isDynamicConfig = null) + { + return new MySqlFlexibleServerConfigurationData(id, name, resourceType, systemData, value, description, defaultValue, dataType, allowedValues, source, isReadOnly, isConfigPendingRestart, isDynamicConfig); + } + + /// Initializes a new instance of MySqlFlexibleServerConfigurations. + /// The list of server configurations. + /// A new instance for mocking. + public static MySqlFlexibleServerConfigurations MySqlFlexibleServerConfigurations(IEnumerable values = null) + { + values ??= new List(); + + return new MySqlFlexibleServerConfigurations(values?.ToList()); + } + + /// Initializes a new instance of MySqlFlexibleServerCapabilityProperties. + /// zone name. + /// Supported high availability mode. + /// supported geo backup regions. + /// A list of supported flexible server editions. + /// A new instance for mocking. + public static MySqlFlexibleServerCapabilityProperties MySqlFlexibleServerCapabilityProperties(string zone = null, IEnumerable supportedHAMode = null, IEnumerable supportedGeoBackupRegions = null, IEnumerable supportedFlexibleServerEditions = null) + { + supportedHAMode ??= new List(); + supportedGeoBackupRegions ??= new List(); + supportedFlexibleServerEditions ??= new List(); + + return new MySqlFlexibleServerCapabilityProperties(zone, supportedHAMode?.ToList(), supportedGeoBackupRegions?.ToList(), supportedFlexibleServerEditions?.ToList()); + } + + /// Initializes a new instance of MySqlFlexibleServerEditionCapability. + /// Server edition name. + /// A list of supported storage editions. + /// A list of supported server versions. + /// A new instance for mocking. + public static MySqlFlexibleServerEditionCapability MySqlFlexibleServerEditionCapability(string name = null, IEnumerable supportedStorageEditions = null, IEnumerable supportedServerVersions = null) + { + supportedStorageEditions ??= new List(); + supportedServerVersions ??= new List(); + + return new MySqlFlexibleServerEditionCapability(name, supportedStorageEditions?.ToList(), supportedServerVersions?.ToList()); + } + + /// Initializes a new instance of MySqlFlexibleServerStorageEditionCapability. + /// storage edition name. + /// The minimal supported storage size. + /// The maximum supported storage size. + /// Minimal backup retention days. + /// Maximum backup retention days. + /// A new instance for mocking. + public static MySqlFlexibleServerStorageEditionCapability MySqlFlexibleServerStorageEditionCapability(string name = null, long? minStorageSize = null, long? maxStorageSize = null, long? minBackupRetentionDays = null, long? maxBackupRetentionDays = null) + { + return new MySqlFlexibleServerStorageEditionCapability(name, minStorageSize, maxStorageSize, minBackupRetentionDays, maxBackupRetentionDays); + } + + /// Initializes a new instance of MySqlFlexibleServerServerVersionCapability. + /// server version. + /// A list of supported Skus. + /// A new instance for mocking. + public static MySqlFlexibleServerServerVersionCapability MySqlFlexibleServerServerVersionCapability(string name = null, IEnumerable supportedSkus = null) + { + supportedSkus ??= new List(); + + return new MySqlFlexibleServerServerVersionCapability(name, supportedSkus?.ToList()); + } + + /// Initializes a new instance of MySqlFlexibleServerSkuCapability. + /// vCore name. + /// supported vCores. + /// supported IOPS. + /// supported memory per vCore in MB. + /// A new instance for mocking. + public static MySqlFlexibleServerSkuCapability MySqlFlexibleServerSkuCapability(string name = null, long? vCores = null, long? supportedIops = null, long? supportedMemoryPerVCoreInMB = null) + { + return new MySqlFlexibleServerSkuCapability(name, vCores, supportedIops, supportedMemoryPerVCoreInMB); + } + + /// Initializes a new instance of MySqlFlexibleServerVirtualNetworkSubnetUsageResult. + /// A list of delegated subnet usage. + /// A new instance for mocking. + public static MySqlFlexibleServerVirtualNetworkSubnetUsageResult MySqlFlexibleServerVirtualNetworkSubnetUsageResult(IEnumerable delegatedSubnetsUsage = null) + { + delegatedSubnetsUsage ??= new List(); + + return new MySqlFlexibleServerVirtualNetworkSubnetUsageResult(delegatedSubnetsUsage?.ToList()); + } + + /// Initializes a new instance of MySqlFlexibleServerDelegatedSubnetUsage. + /// name of the subnet. + /// Number of used delegated subnets. + /// A new instance for mocking. + public static MySqlFlexibleServerDelegatedSubnetUsage MySqlFlexibleServerDelegatedSubnetUsage(string subnetName = null, long? usage = null) + { + return new MySqlFlexibleServerDelegatedSubnetUsage(subnetName, usage); + } + + /// Initializes a new instance of MySqlFlexibleServerNameAvailabilityResult. + /// Error Message. + /// Indicates whether the resource name is available. + /// Reason for name being unavailable. + /// A new instance for mocking. + public static MySqlFlexibleServerNameAvailabilityResult MySqlFlexibleServerNameAvailabilityResult(string message = null, bool? isNameAvailable = null, string reason = null) + { + return new MySqlFlexibleServerNameAvailabilityResult(message, isNameAvailable, reason); + } + + /// Initializes a new instance of MySqlFlexibleServerPrivateDnsZoneSuffixResponse. + /// Represents the private DNS zone suffix. + /// A new instance for mocking. + public static MySqlFlexibleServerPrivateDnsZoneSuffixResponse MySqlFlexibleServerPrivateDnsZoneSuffixResponse(string privateDnsZoneSuffix = null) + { + return new MySqlFlexibleServerPrivateDnsZoneSuffixResponse(privateDnsZoneSuffix); + } + } +} diff --git a/sdk/mysql/Azure.ResourceManager.MySql/src/autorest.md b/sdk/mysql/Azure.ResourceManager.MySql/src/autorest.md index a5b87ba1fb71..841395f1f29e 100644 --- a/sdk/mysql/Azure.ResourceManager.MySql/src/autorest.md +++ b/sdk/mysql/Azure.ResourceManager.MySql/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 clear-output-folder: true skip-csproj: true