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