diff --git a/eng/ApiListing.exclude-attributes.txt b/eng/ApiListing.exclude-attributes.txt index 0d94bcad13cc..6f3b06f145e0 100644 --- a/eng/ApiListing.exclude-attributes.txt +++ b/eng/ApiListing.exclude-attributes.txt @@ -13,6 +13,6 @@ T:Azure.Core.CodeGenTypeAttribute T:Azure.Core.CodeGenClientAttribute T:Azure.Core.CodeGenMemberSerializationAttribute T:Azure.Core.CodeGenMemberSerializationHooksAttribute -T:Azure.Core.CodeGenSuppressAttribute T:Azure.Core.CodeGenSuppressTypeAttribute +T:Azure.Core.CodeGenSerializationAttribute T:System.ClientModel.Primitives.ModelReaderWriterBuildableAttribute \ No newline at end of file diff --git a/sdk/storage/Azure.ResourceManager.Storage/api/Azure.ResourceManager.Storage.net8.0.cs b/sdk/storage/Azure.ResourceManager.Storage/api/Azure.ResourceManager.Storage.net8.0.cs index e663d50930e9..126f1966b2c4 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/api/Azure.ResourceManager.Storage.net8.0.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/api/Azure.ResourceManager.Storage.net8.0.cs @@ -252,6 +252,7 @@ public partial class FileServiceData : Azure.ResourceManager.Models.ResourceData { public FileServiceData() { } public System.Collections.Generic.IList CorsRules { get { throw null; } } + public Azure.ResourceManager.Storage.Models.ProtocolSettings ProtocolSettings { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.SmbSetting ProtocolSmbSetting { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.DeleteRetentionPolicy ShareDeleteRetentionPolicy { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageSku Sku { get { throw null; } } @@ -614,6 +615,7 @@ public StorageAccountData(Azure.Core.AzureLocation location) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.ResourceManager.Storage.Models.StorageProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } + public bool? PublishIPv6Endpoint { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageRoutingPreference RoutingPreference { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy SasPolicy { get { throw null; } } public Azure.ResourceManager.Storage.Models.StorageAccountEndpoints SecondaryEndpoints { get { throw null; } } @@ -623,6 +625,8 @@ public StorageAccountData(Azure.Core.AzureLocation location) { } public Azure.ResourceManager.Storage.Models.StorageAccountStatus? StatusOfSecondary { get { throw null; } } public Azure.ResourceManager.Storage.Models.StorageAccountProvisioningState? StorageAccountProvisioningState { get { throw null; } } public Azure.ResourceManager.Storage.Models.StorageAccountSkuConversionStatus StorageAccountSkuConversionStatus { get { throw null; } set { } } + public Azure.ResourceManager.Storage.Models.ZonePlacementPolicy? ZonePlacementPolicy { get { throw null; } set { } } + public System.Collections.Generic.IList Zones { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Storage.StorageAccountData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -1289,7 +1293,9 @@ public static partial class ArmStorageModelFactory public static Azure.ResourceManager.Storage.Models.FileServiceAccountLimits FileServiceAccountLimits(int? maxFileShares = default(int?), int? maxProvisionedStorageGiB = default(int?), int? maxProvisionedIops = default(int?), int? maxProvisionedBandwidthMiBPerSec = default(int?)) { throw null; } public static Azure.ResourceManager.Storage.Models.FileServiceAccountUsage FileServiceAccountUsage(Azure.ResourceManager.Storage.Models.FileServiceAccountUsageElements liveShares = null, Azure.ResourceManager.Storage.Models.FileServiceAccountUsageElements softDeletedShares = null) { throw null; } public static Azure.ResourceManager.Storage.Models.FileServiceAccountUsageElements FileServiceAccountUsageElements(int? fileShareCount = default(int?), int? provisionedStorageGiB = default(int?), int? provisionedIops = default(int?), int? provisionedBandwidthMiBPerSec = default(int?)) { throw null; } - public static Azure.ResourceManager.Storage.FileServiceData FileServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Storage.Models.StorageSku sku = null, System.Collections.Generic.IEnumerable corsRules = null, Azure.ResourceManager.Storage.Models.DeleteRetentionPolicy shareDeleteRetentionPolicy = null, Azure.ResourceManager.Storage.Models.SmbSetting protocolSmbSetting = null) { throw null; } + public static Azure.ResourceManager.Storage.FileServiceData FileServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Storage.Models.StorageSku sku = null, System.Collections.Generic.IEnumerable corsRules = null, Azure.ResourceManager.Storage.Models.DeleteRetentionPolicy shareDeleteRetentionPolicy = null, Azure.ResourceManager.Storage.Models.ProtocolSettings protocolSettings = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Storage.FileServiceData FileServiceData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.Storage.Models.StorageSku sku, System.Collections.Generic.IEnumerable corsRules, Azure.ResourceManager.Storage.Models.DeleteRetentionPolicy shareDeleteRetentionPolicy, Azure.ResourceManager.Storage.Models.SmbSetting protocolSmbSetting) { throw null; } public static Azure.ResourceManager.Storage.FileServiceUsageData FileServiceUsageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Storage.Models.FileServiceUsageProperties properties = null) { throw null; } public static Azure.ResourceManager.Storage.Models.FileServiceUsageProperties FileServiceUsageProperties(Azure.ResourceManager.Storage.Models.FileServiceAccountLimits storageAccountLimits = null, Azure.ResourceManager.Storage.Models.FileShareLimits fileShareLimits = null, Azure.ResourceManager.Storage.Models.FileShareRecommendations fileShareRecommendations = null, Azure.ResourceManager.Storage.Models.BurstingConstants burstingConstants = null, Azure.ResourceManager.Storage.Models.FileServiceAccountUsage storageAccountUsage = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -1328,16 +1334,24 @@ public static partial class ArmStorageModelFactory public static Azure.ResourceManager.Storage.QueueServiceData QueueServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IEnumerable corsRules = null) { throw null; } public static Azure.ResourceManager.Storage.Models.RestorePolicy RestorePolicy(bool isEnabled = false, int? days = default(int?), System.DateTimeOffset? lastEnabledOn = default(System.DateTimeOffset?), System.DateTimeOffset? minRestoreOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Storage.Models.ServiceSasContent ServiceSasContent(string canonicalizedResource = null, Azure.ResourceManager.Storage.Models.ServiceSasSignedResourceType? resource = default(Azure.ResourceManager.Storage.Models.ServiceSasSignedResourceType?), Azure.ResourceManager.Storage.Models.StorageAccountSasPermission? permissions = default(Azure.ResourceManager.Storage.Models.StorageAccountSasPermission?), string ipAddressOrRange = null, Azure.ResourceManager.Storage.Models.StorageAccountHttpProtocol? protocols = default(Azure.ResourceManager.Storage.Models.StorageAccountHttpProtocol?), System.DateTimeOffset? sharedAccessStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? sharedAccessExpiryOn = default(System.DateTimeOffset?), string identifier = null, string partitionKeyStart = null, string partitionKeyEnd = null, string rowKeyStart = null, string rowKeyEnd = null, string keyToSign = null, string cacheControl = null, string contentDisposition = null, string contentEncoding = null, string contentLanguage = null, string contentType = null) { throw null; } + public static Azure.ResourceManager.Storage.Models.SkuInformationLocationInfoItem SkuInformationLocationInfoItem(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IEnumerable zones = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.Storage.Models.StorageAccountCreateOrUpdateContent StorageAccountCreateOrUpdateContent(Azure.ResourceManager.Storage.Models.StorageSku sku, Azure.ResourceManager.Storage.Models.StorageKind kind, Azure.Core.AzureLocation location, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation, System.Collections.Generic.IDictionary tags, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope, Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess, Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy, int? keyExpirationPeriodInDays, Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption, Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier, Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isHnsEnabled, Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState, Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference, bool? allowBlobPublicAccess, Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType) { throw null; } - public static Azure.ResourceManager.Storage.Models.StorageAccountCreateOrUpdateContent StorageAccountCreateOrUpdateContent(Azure.ResourceManager.Storage.Models.StorageSku sku = null, Azure.ResourceManager.Storage.Models.StorageKind kind = default(Azure.ResourceManager.Storage.Models.StorageKind), Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope = default(Azure.ResourceManager.Storage.Models.AllowedCopyScope?), Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess?), Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy = null, int? keyExpirationPeriodInDays = default(int?), Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain = null, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption = null, Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet = null, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier = default(Azure.ResourceManager.Storage.Models.StorageAccountAccessTier?), Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = null, bool? enableHttpsTrafficOnly = default(bool?), bool? isSftpEnabled = default(bool?), bool? isLocalUserEnabled = default(bool?), bool? isExtendedGroupEnabled = default(bool?), bool? isHnsEnabled = default(bool?), Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState = default(Azure.ResourceManager.Storage.Models.LargeFileSharesState?), Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference = null, bool? allowBlobPublicAccess = default(bool?), Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion = default(Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion?), bool? allowSharedKeyAccess = default(bool?), bool? isNfsV3Enabled = default(bool?), bool? allowCrossTenantReplication = default(bool?), bool? isDefaultToOAuthAuthentication = default(bool?), Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning = null, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType = default(Azure.ResourceManager.Storage.Models.StorageDnsEndpointType?)) { throw null; } - public static Azure.ResourceManager.Storage.StorageAccountData StorageAccountData(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.Storage.Models.StorageSku sku = null, Azure.ResourceManager.Storage.Models.StorageKind? kind = default(Azure.ResourceManager.Storage.Models.StorageKind?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, Azure.ResourceManager.Storage.Models.StorageAccountProvisioningState? storageAccountProvisioningState = default(Azure.ResourceManager.Storage.Models.StorageAccountProvisioningState?), Azure.ResourceManager.Storage.Models.StorageAccountEndpoints primaryEndpoints = null, Azure.Core.AzureLocation? primaryLocation = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfPrimary = default(Azure.ResourceManager.Storage.Models.StorageAccountStatus?), System.DateTimeOffset? lastGeoFailoverOn = default(System.DateTimeOffset?), Azure.Core.AzureLocation? secondaryLocation = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfSecondary = default(Azure.ResourceManager.Storage.Models.StorageAccountStatus?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain = null, Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy = null, int? keyExpirationPeriodInDays = default(int?), Azure.ResourceManager.Storage.Models.StorageAccountKeyCreationTime keyCreationTime = null, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints secondaryEndpoints = null, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption = null, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier = default(Azure.ResourceManager.Storage.Models.StorageAccountAccessTier?), Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = null, bool? enableHttpsTrafficOnly = default(bool?), Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet = null, bool? isSftpEnabled = default(bool?), bool? isLocalUserEnabled = default(bool?), bool? isExtendedGroupEnabled = default(bool?), bool? isHnsEnabled = default(bool?), Azure.ResourceManager.Storage.Models.GeoReplicationStatistics geoReplicationStats = null, bool? isFailoverInProgress = default(bool?), Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState = default(Azure.ResourceManager.Storage.Models.LargeFileSharesState?), System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference = null, Azure.ResourceManager.Storage.Models.BlobRestoreStatus blobRestoreStatus = null, bool? allowBlobPublicAccess = default(bool?), Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion = default(Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion?), bool? allowSharedKeyAccess = default(bool?), bool? isNfsV3Enabled = default(bool?), bool? allowCrossTenantReplication = default(bool?), bool? isDefaultToOAuthAuthentication = default(bool?), Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess?), Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning = null, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope = default(Azure.ResourceManager.Storage.Models.AllowedCopyScope?), Azure.ResourceManager.Storage.Models.StorageAccountSkuConversionStatus storageAccountSkuConversionStatus = null, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType = default(Azure.ResourceManager.Storage.Models.StorageDnsEndpointType?), bool? isSkuConversionBlocked = default(bool?), bool? isAccountMigrationInProgress = default(bool?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Storage.Models.StorageAccountCreateOrUpdateContent StorageAccountCreateOrUpdateContent(Azure.ResourceManager.Storage.Models.StorageSku sku, Azure.ResourceManager.Storage.Models.StorageKind kind, Azure.Core.AzureLocation location, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation, System.Collections.Generic.IDictionary tags, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope, Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess, Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy, int? keyExpirationPeriodInDays, Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption, Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier, Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isExtendedGroupEnabled, bool? isHnsEnabled, Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState, Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference, bool? allowBlobPublicAccess, Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType) { throw null; } + public static Azure.ResourceManager.Storage.Models.StorageAccountCreateOrUpdateContent StorageAccountCreateOrUpdateContent(Azure.ResourceManager.Storage.Models.StorageSku sku = null, Azure.ResourceManager.Storage.Models.StorageKind kind = default(Azure.ResourceManager.Storage.Models.StorageKind), Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, System.Collections.Generic.IEnumerable zones = null, Azure.ResourceManager.Storage.Models.ZonePlacementPolicy? zonePlacementPolicy = default(Azure.ResourceManager.Storage.Models.ZonePlacementPolicy?), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope = default(Azure.ResourceManager.Storage.Models.AllowedCopyScope?), Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess?), Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy = null, int? keyExpirationPeriodInDays = default(int?), Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain = null, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption = null, Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet = null, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier = default(Azure.ResourceManager.Storage.Models.StorageAccountAccessTier?), Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = null, bool? enableHttpsTrafficOnly = default(bool?), bool? isSftpEnabled = default(bool?), bool? isLocalUserEnabled = default(bool?), bool? isExtendedGroupEnabled = default(bool?), bool? isHnsEnabled = default(bool?), Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState = default(Azure.ResourceManager.Storage.Models.LargeFileSharesState?), Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference = null, bool? publishIPv6Endpoint = default(bool?), bool? allowBlobPublicAccess = default(bool?), Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion = default(Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion?), bool? allowSharedKeyAccess = default(bool?), bool? isNfsV3Enabled = default(bool?), bool? allowCrossTenantReplication = default(bool?), bool? isDefaultToOAuthAuthentication = default(bool?), Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning = null, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType = default(Azure.ResourceManager.Storage.Models.StorageDnsEndpointType?)) { throw null; } + public static Azure.ResourceManager.Storage.StorageAccountData StorageAccountData(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.Storage.Models.StorageSku sku = null, Azure.ResourceManager.Storage.Models.StorageKind? kind = default(Azure.ResourceManager.Storage.Models.StorageKind?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, System.Collections.Generic.IEnumerable zones = null, Azure.ResourceManager.Storage.Models.ZonePlacementPolicy? zonePlacementPolicy = default(Azure.ResourceManager.Storage.Models.ZonePlacementPolicy?), Azure.ResourceManager.Storage.Models.StorageAccountProvisioningState? storageAccountProvisioningState = default(Azure.ResourceManager.Storage.Models.StorageAccountProvisioningState?), Azure.ResourceManager.Storage.Models.StorageAccountEndpoints primaryEndpoints = null, Azure.Core.AzureLocation? primaryLocation = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfPrimary = default(Azure.ResourceManager.Storage.Models.StorageAccountStatus?), System.DateTimeOffset? lastGeoFailoverOn = default(System.DateTimeOffset?), Azure.Core.AzureLocation? secondaryLocation = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfSecondary = default(Azure.ResourceManager.Storage.Models.StorageAccountStatus?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain = null, Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy = null, int? keyExpirationPeriodInDays = default(int?), Azure.ResourceManager.Storage.Models.StorageAccountKeyCreationTime keyCreationTime = null, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints secondaryEndpoints = null, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption = null, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier = default(Azure.ResourceManager.Storage.Models.StorageAccountAccessTier?), Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = null, bool? enableHttpsTrafficOnly = default(bool?), Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet = null, bool? isSftpEnabled = default(bool?), bool? isLocalUserEnabled = default(bool?), bool? isExtendedGroupEnabled = default(bool?), bool? isHnsEnabled = default(bool?), Azure.ResourceManager.Storage.Models.GeoReplicationStatistics geoReplicationStats = null, bool? isFailoverInProgress = default(bool?), Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState = default(Azure.ResourceManager.Storage.Models.LargeFileSharesState?), System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference = null, bool? publishIPv6Endpoint = default(bool?), Azure.ResourceManager.Storage.Models.BlobRestoreStatus blobRestoreStatus = null, bool? allowBlobPublicAccess = default(bool?), Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion = default(Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion?), bool? allowSharedKeyAccess = default(bool?), bool? isNfsV3Enabled = default(bool?), bool? allowCrossTenantReplication = default(bool?), bool? isDefaultToOAuthAuthentication = default(bool?), Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess?), Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning = null, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope = default(Azure.ResourceManager.Storage.Models.AllowedCopyScope?), Azure.ResourceManager.Storage.Models.StorageAccountSkuConversionStatus storageAccountSkuConversionStatus = null, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType = default(Azure.ResourceManager.Storage.Models.StorageDnsEndpointType?), bool? isSkuConversionBlocked = default(bool?), bool? isAccountMigrationInProgress = default(bool?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Storage.StorageAccountData StorageAccountData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.Storage.Models.StorageSku sku, Azure.ResourceManager.Storage.Models.StorageKind? kind, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation, Azure.ResourceManager.Storage.Models.StorageAccountProvisioningState? storageAccountProvisioningState, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints primaryEndpoints, Azure.Core.AzureLocation? primaryLocation, Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfPrimary, System.DateTimeOffset? lastGeoFailoverOn, Azure.Core.AzureLocation? secondaryLocation, Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfSecondary, System.DateTimeOffset? createdOn, Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain, Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy, int? keyExpirationPeriodInDays, Azure.ResourceManager.Storage.Models.StorageAccountKeyCreationTime keyCreationTime, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints secondaryEndpoints, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier, Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isExtendedGroupEnabled, bool? isHnsEnabled, Azure.ResourceManager.Storage.Models.GeoReplicationStatistics geoReplicationStats, bool? isFailoverInProgress, Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState, System.Collections.Generic.IEnumerable privateEndpointConnections, Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference, Azure.ResourceManager.Storage.Models.BlobRestoreStatus blobRestoreStatus, bool? allowBlobPublicAccess, Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess, Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope, Azure.ResourceManager.Storage.Models.StorageAccountSkuConversionStatus storageAccountSkuConversionStatus, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType, bool? isSkuConversionBlocked, bool? isAccountMigrationInProgress) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.Storage.StorageAccountData StorageAccountData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.Storage.Models.StorageSku sku, Azure.ResourceManager.Storage.Models.StorageKind? kind, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation, Azure.ResourceManager.Storage.Models.StorageProvisioningState? provisioningState, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints primaryEndpoints, Azure.Core.AzureLocation? primaryLocation, Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfPrimary, System.DateTimeOffset? lastGeoFailoverOn, Azure.Core.AzureLocation? secondaryLocation, Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfSecondary, System.DateTimeOffset? createdOn, Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain, Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy, int? keyExpirationPeriodInDays, Azure.ResourceManager.Storage.Models.StorageAccountKeyCreationTime keyCreationTime, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints secondaryEndpoints, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier, Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isHnsEnabled, Azure.ResourceManager.Storage.Models.GeoReplicationStatistics geoReplicationStats, bool? isFailoverInProgress, Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState, System.Collections.Generic.IEnumerable privateEndpointConnections, Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference, Azure.ResourceManager.Storage.Models.BlobRestoreStatus blobRestoreStatus, bool? allowBlobPublicAccess, Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess, Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope, Azure.ResourceManager.Storage.Models.StorageAccountSkuConversionStatus storageAccountSkuConversionStatus, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.Storage.StorageAccountData StorageAccountData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.Storage.Models.StorageSku sku, Azure.ResourceManager.Storage.Models.StorageKind? kind, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation, Azure.ResourceManager.Storage.Models.StorageProvisioningState? provisioningState, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints primaryEndpoints, Azure.Core.AzureLocation? primaryLocation, Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfPrimary, System.DateTimeOffset? lastGeoFailoverOn, Azure.Core.AzureLocation? secondaryLocation, Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfSecondary, System.DateTimeOffset? createdOn, Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain, Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy, int? keyExpirationPeriodInDays, Azure.ResourceManager.Storage.Models.StorageAccountKeyCreationTime keyCreationTime, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints secondaryEndpoints, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier, Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isExtendedGroupEnabled, bool? isHnsEnabled, Azure.ResourceManager.Storage.Models.GeoReplicationStatistics geoReplicationStats, bool? isFailoverInProgress, Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState, System.Collections.Generic.IEnumerable privateEndpointConnections, Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference, Azure.ResourceManager.Storage.Models.BlobRestoreStatus blobRestoreStatus, bool? allowBlobPublicAccess, Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess, Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope, Azure.ResourceManager.Storage.Models.StorageAccountSkuConversionStatus storageAccountSkuConversionStatus, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType, bool? isSkuConversionBlocked, bool? isAccountMigrationInProgress) { throw null; } - public static Azure.ResourceManager.Storage.Models.StorageAccountEndpoints StorageAccountEndpoints(System.Uri blobUri = null, System.Uri queueUri = null, System.Uri tableUri = null, System.Uri fileUri = null, System.Uri webUri = null, System.Uri dfsUri = null, Azure.ResourceManager.Storage.Models.StorageAccountMicrosoftEndpoints microsoftEndpoints = null, Azure.ResourceManager.Storage.Models.StorageAccountInternetEndpoints internetEndpoints = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Storage.Models.StorageAccountEndpoints StorageAccountEndpoints(System.Uri blobUri, System.Uri queueUri, System.Uri tableUri, System.Uri fileUri, System.Uri webUri, System.Uri dfsUri, Azure.ResourceManager.Storage.Models.StorageAccountMicrosoftEndpoints microsoftEndpoints, Azure.ResourceManager.Storage.Models.StorageAccountInternetEndpoints internetEndpoints) { throw null; } + public static Azure.ResourceManager.Storage.Models.StorageAccountEndpoints StorageAccountEndpoints(System.Uri blobUri = null, System.Uri queueUri = null, System.Uri tableUri = null, System.Uri fileUri = null, System.Uri webUri = null, System.Uri dfsUri = null, Azure.ResourceManager.Storage.Models.StorageAccountMicrosoftEndpoints microsoftEndpoints = null, Azure.ResourceManager.Storage.Models.StorageAccountInternetEndpoints internetEndpoints = null, Azure.ResourceManager.Storage.Models.StorageAccountIPv6Endpoints ipv6Endpoints = null) { throw null; } public static Azure.ResourceManager.Storage.Models.StorageAccountInternetEndpoints StorageAccountInternetEndpoints(System.Uri blobUri = null, System.Uri fileUri = null, System.Uri webUri = null, System.Uri dfsUri = null) { throw null; } + public static Azure.ResourceManager.Storage.Models.StorageAccountIPv6Endpoints StorageAccountIPv6Endpoints(string blob = null, string queue = null, string table = null, string file = null, string web = null, string dfs = null, Azure.ResourceManager.Storage.Models.StorageAccountMicrosoftEndpoints microsoftEndpoints = null, Azure.ResourceManager.Storage.Models.StorageAccountInternetEndpoints internetEndpoints = null) { throw null; } public static Azure.ResourceManager.Storage.Models.StorageAccountKey StorageAccountKey(string keyName = null, string value = null, Azure.ResourceManager.Storage.Models.StorageAccountKeyPermission? permissions = default(Azure.ResourceManager.Storage.Models.StorageAccountKeyPermission?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Storage.Models.StorageAccountKeyCreationTime StorageAccountKeyCreationTime(System.DateTimeOffset? key1 = default(System.DateTimeOffset?), System.DateTimeOffset? key2 = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Storage.Models.StorageAccountKeyVaultProperties StorageAccountKeyVaultProperties(string keyName = null, string keyVersion = null, System.Uri keyVaultUri = null, string currentVersionedKeyIdentifier = null, System.DateTimeOffset? lastKeyRotationTimestamp = default(System.DateTimeOffset?), System.DateTimeOffset? currentVersionedKeyExpirationTimestamp = default(System.DateTimeOffset?)) { throw null; } @@ -1356,7 +1370,9 @@ public static partial class ArmStorageModelFactory public static Azure.ResourceManager.Storage.StorageQueueData StorageQueueData(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 metadata = null, int? approximateMessageCount = default(int?)) { throw null; } public static Azure.ResourceManager.Storage.Models.StorageSku StorageSku(Azure.ResourceManager.Storage.Models.StorageSkuName name = default(Azure.ResourceManager.Storage.Models.StorageSkuName), Azure.ResourceManager.Storage.Models.StorageSkuTier? tier = default(Azure.ResourceManager.Storage.Models.StorageSkuTier?)) { throw null; } public static Azure.ResourceManager.Storage.Models.StorageSkuCapability StorageSkuCapability(string name = null, string value = null) { throw null; } - public static Azure.ResourceManager.Storage.Models.StorageSkuInformation StorageSkuInformation(Azure.ResourceManager.Storage.Models.StorageSkuName name = default(Azure.ResourceManager.Storage.Models.StorageSkuName), Azure.ResourceManager.Storage.Models.StorageSkuTier? tier = default(Azure.ResourceManager.Storage.Models.StorageSkuTier?), string resourceType = null, Azure.ResourceManager.Storage.Models.StorageKind? kind = default(Azure.ResourceManager.Storage.Models.StorageKind?), System.Collections.Generic.IEnumerable locations = null, System.Collections.Generic.IEnumerable capabilities = null, System.Collections.Generic.IEnumerable restrictions = null) { throw null; } + public static Azure.ResourceManager.Storage.Models.StorageSkuInformation StorageSkuInformation(Azure.ResourceManager.Storage.Models.StorageSkuName name = default(Azure.ResourceManager.Storage.Models.StorageSkuName), Azure.ResourceManager.Storage.Models.StorageSkuTier? tier = default(Azure.ResourceManager.Storage.Models.StorageSkuTier?), string resourceType = null, Azure.ResourceManager.Storage.Models.StorageKind? kind = default(Azure.ResourceManager.Storage.Models.StorageKind?), System.Collections.Generic.IEnumerable locations = null, System.Collections.Generic.IEnumerable locationInfo = null, System.Collections.Generic.IEnumerable capabilities = null, System.Collections.Generic.IEnumerable restrictions = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Storage.Models.StorageSkuInformation StorageSkuInformation(Azure.ResourceManager.Storage.Models.StorageSkuName name, Azure.ResourceManager.Storage.Models.StorageSkuTier? tier, string resourceType, Azure.ResourceManager.Storage.Models.StorageKind? kind, System.Collections.Generic.IEnumerable locations, System.Collections.Generic.IEnumerable capabilities, System.Collections.Generic.IEnumerable restrictions) { throw null; } public static Azure.ResourceManager.Storage.Models.StorageSkuRestriction StorageSkuRestriction(string restrictionType = null, System.Collections.Generic.IEnumerable values = null, Azure.ResourceManager.Storage.Models.StorageRestrictionReasonCode? reasonCode = default(Azure.ResourceManager.Storage.Models.StorageRestrictionReasonCode?)) { throw null; } public static Azure.ResourceManager.Storage.StorageTaskAssignmentData StorageTaskAssignmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Storage.Models.StorageTaskAssignmentProperties properties = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -1852,8 +1868,12 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer } public partial class ExecutionTrigger : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public ExecutionTrigger(Azure.ResourceManager.Storage.Models.ExecutionTriggerType triggerType, Azure.ResourceManager.Storage.Models.ExecutionTriggerParameters parameters) { } + public ExecutionTrigger(Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType taskExecutionTriggerType, Azure.ResourceManager.Storage.Models.ExecutionTriggerParameters parameters) { } public Azure.ResourceManager.Storage.Models.ExecutionTriggerParameters Parameters { get { throw null; } set { } } + public Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType TaskExecutionTriggerType { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.ResourceManager.Storage.Models.ExecutionTriggerType TriggerType { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Storage.Models.ExecutionTrigger System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1892,6 +1912,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public enum ExecutionTriggerType { RunOnce = 0, @@ -1901,6 +1922,8 @@ public partial class ExecutionTriggerUpdate : System.ClientModel.Primitives.IJso { public ExecutionTriggerUpdate() { } public Azure.ResourceManager.Storage.Models.ExecutionTriggerParametersUpdate Parameters { get { throw null; } set { } } + public Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType? TaskExecutionTriggerType { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.ResourceManager.Storage.Models.ExecutionTriggerType? TriggerType { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Storage.Models.ExecutionTriggerUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2069,6 +2092,7 @@ public FilesIdentityBasedAuthentication(Azure.ResourceManager.Storage.Models.Dir public Azure.ResourceManager.Storage.Models.StorageActiveDirectoryProperties ActiveDirectoryProperties { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.DefaultSharePermission? DefaultSharePermission { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.DirectoryServiceOption DirectoryServiceOptions { get { throw null; } set { } } + public bool? IsSmbOAuthEnabled { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -2827,6 +2851,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class ProtocolSettings : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ProtocolSettings() { } + public bool? Required { get { throw null; } set { } } + public Azure.ResourceManager.Storage.Models.SmbSetting SmbSetting { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Storage.Models.ProtocolSettings System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Storage.Models.ProtocolSettings System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ResourceAssociationAccessMode : System.IEquatable { @@ -2927,6 +2963,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.Storage.Models.ServiceSasSignedResourceType left, Azure.ResourceManager.Storage.Models.ServiceSasSignedResourceType right) { throw null; } public override string ToString() { throw null; } } + public partial class SkuInformationLocationInfoItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal SkuInformationLocationInfoItem() { } + public Azure.Core.AzureLocation? Location { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Zones { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Storage.Models.SkuInformationLocationInfoItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Storage.Models.SkuInformationLocationInfoItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class SmbSetting : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SmbSetting() { } @@ -2934,6 +2982,7 @@ public SmbSetting() { } public string ChannelEncryption { get { throw null; } set { } } public bool? IsMultiChannelEnabled { get { throw null; } set { } } public string KerberosTicketEncryption { get { throw null; } set { } } + public bool? Required { get { throw null; } set { } } public string Versions { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Storage.Models.SmbSetting System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2978,10 +3027,13 @@ public StorageAccountCreateOrUpdateContent(Azure.ResourceManager.Storage.Models. public Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? MinimumTlsVersion { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet NetworkRuleSet { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } + public bool? PublishIPv6Endpoint { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageRoutingPreference RoutingPreference { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy SasPolicy { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageSku Sku { get { throw null; } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public Azure.ResourceManager.Storage.Models.ZonePlacementPolicy? ZonePlacementPolicy { get { throw null; } set { } } + public System.Collections.Generic.IList Zones { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Storage.Models.StorageAccountCreateOrUpdateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -3037,6 +3089,7 @@ internal StorageAccountEndpoints() { } public System.Uri DfsUri { get { throw null; } } public System.Uri FileUri { get { throw null; } } public Azure.ResourceManager.Storage.Models.StorageAccountInternetEndpoints InternetEndpoints { get { throw null; } } + public Azure.ResourceManager.Storage.Models.StorageAccountIPv6Endpoints IPv6Endpoints { get { throw null; } } public Azure.ResourceManager.Storage.Models.StorageAccountMicrosoftEndpoints MicrosoftEndpoints { get { throw null; } } public System.Uri QueueUri { get { throw null; } } public System.Uri TableUri { get { throw null; } } @@ -3101,6 +3154,24 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class StorageAccountIPv6Endpoints : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StorageAccountIPv6Endpoints() { } + public string Blob { get { throw null; } } + public string Dfs { get { throw null; } } + public string File { get { throw null; } } + public Azure.ResourceManager.Storage.Models.StorageAccountInternetEndpoints InternetEndpoints { get { throw null; } } + public Azure.ResourceManager.Storage.Models.StorageAccountMicrosoftEndpoints MicrosoftEndpoints { get { throw null; } } + public string Queue { get { throw null; } } + public string Table { get { throw null; } } + public string Web { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Storage.Models.StorageAccountIPv6Endpoints System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Storage.Models.StorageAccountIPv6Endpoints System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class StorageAccountKey : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal StorageAccountKey() { } @@ -3273,6 +3344,7 @@ public StorageAccountNetworkRuleSet(Azure.ResourceManager.Storage.Models.Storage public Azure.ResourceManager.Storage.Models.StorageNetworkBypass? Bypass { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageNetworkDefaultAction DefaultAction { get { throw null; } set { } } public System.Collections.Generic.IList IPRules { get { throw null; } } + public System.Collections.Generic.IList IPv6Rules { get { throw null; } } public System.Collections.Generic.IList ResourceAccessRules { get { throw null; } } public System.Collections.Generic.IList VirtualNetworkRules { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -3328,10 +3400,13 @@ public StorageAccountPatch() { } public Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? MinimumTlsVersion { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet NetworkRuleSet { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } + public bool? PublishIPv6Endpoint { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageRoutingPreference RoutingPreference { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy SasPolicy { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageSku Sku { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public Azure.ResourceManager.Storage.Models.ZonePlacementPolicy? ZonePlacementPolicy { get { throw null; } set { } } + public System.Collections.Generic.IList Zones { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Storage.Models.StorageAccountPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -3509,9 +3584,13 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer } public partial class StorageActiveDirectoryProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { + public StorageActiveDirectoryProperties() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public StorageActiveDirectoryProperties(string domainName, System.Guid domainGuid) { } public Azure.ResourceManager.Storage.Models.ActiveDirectoryAccountType? AccountType { get { throw null; } set { } } + public System.Guid? ActiveDirectoryDomainGuid { get { throw null; } set { } } public string AzureStorageSid { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public System.Guid DomainGuid { get { throw null; } set { } } public string DomainName { get { throw null; } set { } } public string DomainSid { get { throw null; } set { } } @@ -3958,6 +4037,7 @@ public partial class StorageSkuInformation : System.ClientModel.Primitives.IJson internal StorageSkuInformation() { } public System.Collections.Generic.IReadOnlyList Capabilities { get { throw null; } } public Azure.ResourceManager.Storage.Models.StorageKind? Kind { get { throw null; } } + public System.Collections.Generic.IReadOnlyList LocationInfo { get { throw null; } } public System.Collections.Generic.IReadOnlyList Locations { get { throw null; } } public Azure.ResourceManager.Storage.Models.StorageSkuName Name { get { throw null; } } public string ResourceType { get { throw null; } } @@ -4271,6 +4351,24 @@ public enum StorageUsageUnit CountsPerSecond = 4, BytesPerSecond = 5, } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct TaskExecutionTriggerType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public TaskExecutionTriggerType(string value) { throw null; } + public static Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType OnSchedule { get { throw null; } } + public static Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType RunOnce { get { throw null; } } + public bool Equals(Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType left, Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType right) { throw null; } + public static implicit operator Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType left, Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType right) { throw null; } + public override string ToString() { throw null; } + } public partial class UpdateHistoryEntry : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal UpdateHistoryEntry() { } @@ -4289,4 +4387,22 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ZonePlacementPolicy : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ZonePlacementPolicy(string value) { throw null; } + public static Azure.ResourceManager.Storage.Models.ZonePlacementPolicy Any { get { throw null; } } + public static Azure.ResourceManager.Storage.Models.ZonePlacementPolicy None { get { throw null; } } + public bool Equals(Azure.ResourceManager.Storage.Models.ZonePlacementPolicy other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Storage.Models.ZonePlacementPolicy left, Azure.ResourceManager.Storage.Models.ZonePlacementPolicy right) { throw null; } + public static implicit operator Azure.ResourceManager.Storage.Models.ZonePlacementPolicy (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Storage.Models.ZonePlacementPolicy left, Azure.ResourceManager.Storage.Models.ZonePlacementPolicy right) { throw null; } + public override string ToString() { throw null; } + } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/api/Azure.ResourceManager.Storage.netstandard2.0.cs b/sdk/storage/Azure.ResourceManager.Storage/api/Azure.ResourceManager.Storage.netstandard2.0.cs index e663d50930e9..126f1966b2c4 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/api/Azure.ResourceManager.Storage.netstandard2.0.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/api/Azure.ResourceManager.Storage.netstandard2.0.cs @@ -252,6 +252,7 @@ public partial class FileServiceData : Azure.ResourceManager.Models.ResourceData { public FileServiceData() { } public System.Collections.Generic.IList CorsRules { get { throw null; } } + public Azure.ResourceManager.Storage.Models.ProtocolSettings ProtocolSettings { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.SmbSetting ProtocolSmbSetting { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.DeleteRetentionPolicy ShareDeleteRetentionPolicy { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageSku Sku { get { throw null; } } @@ -614,6 +615,7 @@ public StorageAccountData(Azure.Core.AzureLocation location) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.ResourceManager.Storage.Models.StorageProvisioningState? ProvisioningState { get { throw null; } } public Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } + public bool? PublishIPv6Endpoint { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageRoutingPreference RoutingPreference { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy SasPolicy { get { throw null; } } public Azure.ResourceManager.Storage.Models.StorageAccountEndpoints SecondaryEndpoints { get { throw null; } } @@ -623,6 +625,8 @@ public StorageAccountData(Azure.Core.AzureLocation location) { } public Azure.ResourceManager.Storage.Models.StorageAccountStatus? StatusOfSecondary { get { throw null; } } public Azure.ResourceManager.Storage.Models.StorageAccountProvisioningState? StorageAccountProvisioningState { get { throw null; } } public Azure.ResourceManager.Storage.Models.StorageAccountSkuConversionStatus StorageAccountSkuConversionStatus { get { throw null; } set { } } + public Azure.ResourceManager.Storage.Models.ZonePlacementPolicy? ZonePlacementPolicy { get { throw null; } set { } } + public System.Collections.Generic.IList Zones { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Storage.StorageAccountData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -1289,7 +1293,9 @@ public static partial class ArmStorageModelFactory public static Azure.ResourceManager.Storage.Models.FileServiceAccountLimits FileServiceAccountLimits(int? maxFileShares = default(int?), int? maxProvisionedStorageGiB = default(int?), int? maxProvisionedIops = default(int?), int? maxProvisionedBandwidthMiBPerSec = default(int?)) { throw null; } public static Azure.ResourceManager.Storage.Models.FileServiceAccountUsage FileServiceAccountUsage(Azure.ResourceManager.Storage.Models.FileServiceAccountUsageElements liveShares = null, Azure.ResourceManager.Storage.Models.FileServiceAccountUsageElements softDeletedShares = null) { throw null; } public static Azure.ResourceManager.Storage.Models.FileServiceAccountUsageElements FileServiceAccountUsageElements(int? fileShareCount = default(int?), int? provisionedStorageGiB = default(int?), int? provisionedIops = default(int?), int? provisionedBandwidthMiBPerSec = default(int?)) { throw null; } - public static Azure.ResourceManager.Storage.FileServiceData FileServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Storage.Models.StorageSku sku = null, System.Collections.Generic.IEnumerable corsRules = null, Azure.ResourceManager.Storage.Models.DeleteRetentionPolicy shareDeleteRetentionPolicy = null, Azure.ResourceManager.Storage.Models.SmbSetting protocolSmbSetting = null) { throw null; } + public static Azure.ResourceManager.Storage.FileServiceData FileServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Storage.Models.StorageSku sku = null, System.Collections.Generic.IEnumerable corsRules = null, Azure.ResourceManager.Storage.Models.DeleteRetentionPolicy shareDeleteRetentionPolicy = null, Azure.ResourceManager.Storage.Models.ProtocolSettings protocolSettings = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Storage.FileServiceData FileServiceData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.Storage.Models.StorageSku sku, System.Collections.Generic.IEnumerable corsRules, Azure.ResourceManager.Storage.Models.DeleteRetentionPolicy shareDeleteRetentionPolicy, Azure.ResourceManager.Storage.Models.SmbSetting protocolSmbSetting) { throw null; } public static Azure.ResourceManager.Storage.FileServiceUsageData FileServiceUsageData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Storage.Models.FileServiceUsageProperties properties = null) { throw null; } public static Azure.ResourceManager.Storage.Models.FileServiceUsageProperties FileServiceUsageProperties(Azure.ResourceManager.Storage.Models.FileServiceAccountLimits storageAccountLimits = null, Azure.ResourceManager.Storage.Models.FileShareLimits fileShareLimits = null, Azure.ResourceManager.Storage.Models.FileShareRecommendations fileShareRecommendations = null, Azure.ResourceManager.Storage.Models.BurstingConstants burstingConstants = null, Azure.ResourceManager.Storage.Models.FileServiceAccountUsage storageAccountUsage = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -1328,16 +1334,24 @@ public static partial class ArmStorageModelFactory public static Azure.ResourceManager.Storage.QueueServiceData QueueServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IEnumerable corsRules = null) { throw null; } public static Azure.ResourceManager.Storage.Models.RestorePolicy RestorePolicy(bool isEnabled = false, int? days = default(int?), System.DateTimeOffset? lastEnabledOn = default(System.DateTimeOffset?), System.DateTimeOffset? minRestoreOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Storage.Models.ServiceSasContent ServiceSasContent(string canonicalizedResource = null, Azure.ResourceManager.Storage.Models.ServiceSasSignedResourceType? resource = default(Azure.ResourceManager.Storage.Models.ServiceSasSignedResourceType?), Azure.ResourceManager.Storage.Models.StorageAccountSasPermission? permissions = default(Azure.ResourceManager.Storage.Models.StorageAccountSasPermission?), string ipAddressOrRange = null, Azure.ResourceManager.Storage.Models.StorageAccountHttpProtocol? protocols = default(Azure.ResourceManager.Storage.Models.StorageAccountHttpProtocol?), System.DateTimeOffset? sharedAccessStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? sharedAccessExpiryOn = default(System.DateTimeOffset?), string identifier = null, string partitionKeyStart = null, string partitionKeyEnd = null, string rowKeyStart = null, string rowKeyEnd = null, string keyToSign = null, string cacheControl = null, string contentDisposition = null, string contentEncoding = null, string contentLanguage = null, string contentType = null) { throw null; } + public static Azure.ResourceManager.Storage.Models.SkuInformationLocationInfoItem SkuInformationLocationInfoItem(Azure.Core.AzureLocation? location = default(Azure.Core.AzureLocation?), System.Collections.Generic.IEnumerable zones = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.Storage.Models.StorageAccountCreateOrUpdateContent StorageAccountCreateOrUpdateContent(Azure.ResourceManager.Storage.Models.StorageSku sku, Azure.ResourceManager.Storage.Models.StorageKind kind, Azure.Core.AzureLocation location, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation, System.Collections.Generic.IDictionary tags, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope, Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess, Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy, int? keyExpirationPeriodInDays, Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption, Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier, Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isHnsEnabled, Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState, Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference, bool? allowBlobPublicAccess, Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType) { throw null; } - public static Azure.ResourceManager.Storage.Models.StorageAccountCreateOrUpdateContent StorageAccountCreateOrUpdateContent(Azure.ResourceManager.Storage.Models.StorageSku sku = null, Azure.ResourceManager.Storage.Models.StorageKind kind = default(Azure.ResourceManager.Storage.Models.StorageKind), Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope = default(Azure.ResourceManager.Storage.Models.AllowedCopyScope?), Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess?), Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy = null, int? keyExpirationPeriodInDays = default(int?), Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain = null, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption = null, Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet = null, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier = default(Azure.ResourceManager.Storage.Models.StorageAccountAccessTier?), Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = null, bool? enableHttpsTrafficOnly = default(bool?), bool? isSftpEnabled = default(bool?), bool? isLocalUserEnabled = default(bool?), bool? isExtendedGroupEnabled = default(bool?), bool? isHnsEnabled = default(bool?), Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState = default(Azure.ResourceManager.Storage.Models.LargeFileSharesState?), Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference = null, bool? allowBlobPublicAccess = default(bool?), Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion = default(Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion?), bool? allowSharedKeyAccess = default(bool?), bool? isNfsV3Enabled = default(bool?), bool? allowCrossTenantReplication = default(bool?), bool? isDefaultToOAuthAuthentication = default(bool?), Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning = null, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType = default(Azure.ResourceManager.Storage.Models.StorageDnsEndpointType?)) { throw null; } - public static Azure.ResourceManager.Storage.StorageAccountData StorageAccountData(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.Storage.Models.StorageSku sku = null, Azure.ResourceManager.Storage.Models.StorageKind? kind = default(Azure.ResourceManager.Storage.Models.StorageKind?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, Azure.ResourceManager.Storage.Models.StorageAccountProvisioningState? storageAccountProvisioningState = default(Azure.ResourceManager.Storage.Models.StorageAccountProvisioningState?), Azure.ResourceManager.Storage.Models.StorageAccountEndpoints primaryEndpoints = null, Azure.Core.AzureLocation? primaryLocation = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfPrimary = default(Azure.ResourceManager.Storage.Models.StorageAccountStatus?), System.DateTimeOffset? lastGeoFailoverOn = default(System.DateTimeOffset?), Azure.Core.AzureLocation? secondaryLocation = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfSecondary = default(Azure.ResourceManager.Storage.Models.StorageAccountStatus?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain = null, Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy = null, int? keyExpirationPeriodInDays = default(int?), Azure.ResourceManager.Storage.Models.StorageAccountKeyCreationTime keyCreationTime = null, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints secondaryEndpoints = null, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption = null, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier = default(Azure.ResourceManager.Storage.Models.StorageAccountAccessTier?), Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = null, bool? enableHttpsTrafficOnly = default(bool?), Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet = null, bool? isSftpEnabled = default(bool?), bool? isLocalUserEnabled = default(bool?), bool? isExtendedGroupEnabled = default(bool?), bool? isHnsEnabled = default(bool?), Azure.ResourceManager.Storage.Models.GeoReplicationStatistics geoReplicationStats = null, bool? isFailoverInProgress = default(bool?), Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState = default(Azure.ResourceManager.Storage.Models.LargeFileSharesState?), System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference = null, Azure.ResourceManager.Storage.Models.BlobRestoreStatus blobRestoreStatus = null, bool? allowBlobPublicAccess = default(bool?), Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion = default(Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion?), bool? allowSharedKeyAccess = default(bool?), bool? isNfsV3Enabled = default(bool?), bool? allowCrossTenantReplication = default(bool?), bool? isDefaultToOAuthAuthentication = default(bool?), Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess?), Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning = null, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope = default(Azure.ResourceManager.Storage.Models.AllowedCopyScope?), Azure.ResourceManager.Storage.Models.StorageAccountSkuConversionStatus storageAccountSkuConversionStatus = null, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType = default(Azure.ResourceManager.Storage.Models.StorageDnsEndpointType?), bool? isSkuConversionBlocked = default(bool?), bool? isAccountMigrationInProgress = default(bool?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Storage.Models.StorageAccountCreateOrUpdateContent StorageAccountCreateOrUpdateContent(Azure.ResourceManager.Storage.Models.StorageSku sku, Azure.ResourceManager.Storage.Models.StorageKind kind, Azure.Core.AzureLocation location, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation, System.Collections.Generic.IDictionary tags, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope, Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess, Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy, int? keyExpirationPeriodInDays, Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption, Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier, Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isExtendedGroupEnabled, bool? isHnsEnabled, Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState, Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference, bool? allowBlobPublicAccess, Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType) { throw null; } + public static Azure.ResourceManager.Storage.Models.StorageAccountCreateOrUpdateContent StorageAccountCreateOrUpdateContent(Azure.ResourceManager.Storage.Models.StorageSku sku = null, Azure.ResourceManager.Storage.Models.StorageKind kind = default(Azure.ResourceManager.Storage.Models.StorageKind), Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, System.Collections.Generic.IEnumerable zones = null, Azure.ResourceManager.Storage.Models.ZonePlacementPolicy? zonePlacementPolicy = default(Azure.ResourceManager.Storage.Models.ZonePlacementPolicy?), System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope = default(Azure.ResourceManager.Storage.Models.AllowedCopyScope?), Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess?), Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy = null, int? keyExpirationPeriodInDays = default(int?), Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain = null, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption = null, Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet = null, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier = default(Azure.ResourceManager.Storage.Models.StorageAccountAccessTier?), Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = null, bool? enableHttpsTrafficOnly = default(bool?), bool? isSftpEnabled = default(bool?), bool? isLocalUserEnabled = default(bool?), bool? isExtendedGroupEnabled = default(bool?), bool? isHnsEnabled = default(bool?), Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState = default(Azure.ResourceManager.Storage.Models.LargeFileSharesState?), Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference = null, bool? publishIPv6Endpoint = default(bool?), bool? allowBlobPublicAccess = default(bool?), Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion = default(Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion?), bool? allowSharedKeyAccess = default(bool?), bool? isNfsV3Enabled = default(bool?), bool? allowCrossTenantReplication = default(bool?), bool? isDefaultToOAuthAuthentication = default(bool?), Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning = null, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType = default(Azure.ResourceManager.Storage.Models.StorageDnsEndpointType?)) { throw null; } + public static Azure.ResourceManager.Storage.StorageAccountData StorageAccountData(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.Storage.Models.StorageSku sku = null, Azure.ResourceManager.Storage.Models.StorageKind? kind = default(Azure.ResourceManager.Storage.Models.StorageKind?), Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = null, System.Collections.Generic.IEnumerable zones = null, Azure.ResourceManager.Storage.Models.ZonePlacementPolicy? zonePlacementPolicy = default(Azure.ResourceManager.Storage.Models.ZonePlacementPolicy?), Azure.ResourceManager.Storage.Models.StorageAccountProvisioningState? storageAccountProvisioningState = default(Azure.ResourceManager.Storage.Models.StorageAccountProvisioningState?), Azure.ResourceManager.Storage.Models.StorageAccountEndpoints primaryEndpoints = null, Azure.Core.AzureLocation? primaryLocation = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfPrimary = default(Azure.ResourceManager.Storage.Models.StorageAccountStatus?), System.DateTimeOffset? lastGeoFailoverOn = default(System.DateTimeOffset?), Azure.Core.AzureLocation? secondaryLocation = default(Azure.Core.AzureLocation?), Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfSecondary = default(Azure.ResourceManager.Storage.Models.StorageAccountStatus?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain = null, Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy = null, int? keyExpirationPeriodInDays = default(int?), Azure.ResourceManager.Storage.Models.StorageAccountKeyCreationTime keyCreationTime = null, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints secondaryEndpoints = null, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption = null, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier = default(Azure.ResourceManager.Storage.Models.StorageAccountAccessTier?), Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = null, bool? enableHttpsTrafficOnly = default(bool?), Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet = null, bool? isSftpEnabled = default(bool?), bool? isLocalUserEnabled = default(bool?), bool? isExtendedGroupEnabled = default(bool?), bool? isHnsEnabled = default(bool?), Azure.ResourceManager.Storage.Models.GeoReplicationStatistics geoReplicationStats = null, bool? isFailoverInProgress = default(bool?), Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState = default(Azure.ResourceManager.Storage.Models.LargeFileSharesState?), System.Collections.Generic.IEnumerable privateEndpointConnections = null, Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference = null, bool? publishIPv6Endpoint = default(bool?), Azure.ResourceManager.Storage.Models.BlobRestoreStatus blobRestoreStatus = null, bool? allowBlobPublicAccess = default(bool?), Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion = default(Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion?), bool? allowSharedKeyAccess = default(bool?), bool? isNfsV3Enabled = default(bool?), bool? allowCrossTenantReplication = default(bool?), bool? isDefaultToOAuthAuthentication = default(bool?), Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess = default(Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess?), Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning = null, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope = default(Azure.ResourceManager.Storage.Models.AllowedCopyScope?), Azure.ResourceManager.Storage.Models.StorageAccountSkuConversionStatus storageAccountSkuConversionStatus = null, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType = default(Azure.ResourceManager.Storage.Models.StorageDnsEndpointType?), bool? isSkuConversionBlocked = default(bool?), bool? isAccountMigrationInProgress = default(bool?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Storage.StorageAccountData StorageAccountData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.Storage.Models.StorageSku sku, Azure.ResourceManager.Storage.Models.StorageKind? kind, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation, Azure.ResourceManager.Storage.Models.StorageAccountProvisioningState? storageAccountProvisioningState, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints primaryEndpoints, Azure.Core.AzureLocation? primaryLocation, Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfPrimary, System.DateTimeOffset? lastGeoFailoverOn, Azure.Core.AzureLocation? secondaryLocation, Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfSecondary, System.DateTimeOffset? createdOn, Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain, Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy, int? keyExpirationPeriodInDays, Azure.ResourceManager.Storage.Models.StorageAccountKeyCreationTime keyCreationTime, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints secondaryEndpoints, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier, Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isExtendedGroupEnabled, bool? isHnsEnabled, Azure.ResourceManager.Storage.Models.GeoReplicationStatistics geoReplicationStats, bool? isFailoverInProgress, Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState, System.Collections.Generic.IEnumerable privateEndpointConnections, Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference, Azure.ResourceManager.Storage.Models.BlobRestoreStatus blobRestoreStatus, bool? allowBlobPublicAccess, Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess, Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope, Azure.ResourceManager.Storage.Models.StorageAccountSkuConversionStatus storageAccountSkuConversionStatus, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType, bool? isSkuConversionBlocked, bool? isAccountMigrationInProgress) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.Storage.StorageAccountData StorageAccountData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.Storage.Models.StorageSku sku, Azure.ResourceManager.Storage.Models.StorageKind? kind, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation, Azure.ResourceManager.Storage.Models.StorageProvisioningState? provisioningState, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints primaryEndpoints, Azure.Core.AzureLocation? primaryLocation, Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfPrimary, System.DateTimeOffset? lastGeoFailoverOn, Azure.Core.AzureLocation? secondaryLocation, Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfSecondary, System.DateTimeOffset? createdOn, Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain, Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy, int? keyExpirationPeriodInDays, Azure.ResourceManager.Storage.Models.StorageAccountKeyCreationTime keyCreationTime, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints secondaryEndpoints, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier, Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isHnsEnabled, Azure.ResourceManager.Storage.Models.GeoReplicationStatistics geoReplicationStats, bool? isFailoverInProgress, Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState, System.Collections.Generic.IEnumerable privateEndpointConnections, Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference, Azure.ResourceManager.Storage.Models.BlobRestoreStatus blobRestoreStatus, bool? allowBlobPublicAccess, Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess, Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope, Azure.ResourceManager.Storage.Models.StorageAccountSkuConversionStatus storageAccountSkuConversionStatus, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.ResourceManager.Storage.StorageAccountData StorageAccountData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.Storage.Models.StorageSku sku, Azure.ResourceManager.Storage.Models.StorageKind? kind, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation, Azure.ResourceManager.Storage.Models.StorageProvisioningState? provisioningState, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints primaryEndpoints, Azure.Core.AzureLocation? primaryLocation, Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfPrimary, System.DateTimeOffset? lastGeoFailoverOn, Azure.Core.AzureLocation? secondaryLocation, Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfSecondary, System.DateTimeOffset? createdOn, Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain, Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy, int? keyExpirationPeriodInDays, Azure.ResourceManager.Storage.Models.StorageAccountKeyCreationTime keyCreationTime, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints secondaryEndpoints, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier, Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isExtendedGroupEnabled, bool? isHnsEnabled, Azure.ResourceManager.Storage.Models.GeoReplicationStatistics geoReplicationStats, bool? isFailoverInProgress, Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState, System.Collections.Generic.IEnumerable privateEndpointConnections, Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference, Azure.ResourceManager.Storage.Models.BlobRestoreStatus blobRestoreStatus, bool? allowBlobPublicAccess, Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess, Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope, Azure.ResourceManager.Storage.Models.StorageAccountSkuConversionStatus storageAccountSkuConversionStatus, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType, bool? isSkuConversionBlocked, bool? isAccountMigrationInProgress) { throw null; } - public static Azure.ResourceManager.Storage.Models.StorageAccountEndpoints StorageAccountEndpoints(System.Uri blobUri = null, System.Uri queueUri = null, System.Uri tableUri = null, System.Uri fileUri = null, System.Uri webUri = null, System.Uri dfsUri = null, Azure.ResourceManager.Storage.Models.StorageAccountMicrosoftEndpoints microsoftEndpoints = null, Azure.ResourceManager.Storage.Models.StorageAccountInternetEndpoints internetEndpoints = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Storage.Models.StorageAccountEndpoints StorageAccountEndpoints(System.Uri blobUri, System.Uri queueUri, System.Uri tableUri, System.Uri fileUri, System.Uri webUri, System.Uri dfsUri, Azure.ResourceManager.Storage.Models.StorageAccountMicrosoftEndpoints microsoftEndpoints, Azure.ResourceManager.Storage.Models.StorageAccountInternetEndpoints internetEndpoints) { throw null; } + public static Azure.ResourceManager.Storage.Models.StorageAccountEndpoints StorageAccountEndpoints(System.Uri blobUri = null, System.Uri queueUri = null, System.Uri tableUri = null, System.Uri fileUri = null, System.Uri webUri = null, System.Uri dfsUri = null, Azure.ResourceManager.Storage.Models.StorageAccountMicrosoftEndpoints microsoftEndpoints = null, Azure.ResourceManager.Storage.Models.StorageAccountInternetEndpoints internetEndpoints = null, Azure.ResourceManager.Storage.Models.StorageAccountIPv6Endpoints ipv6Endpoints = null) { throw null; } public static Azure.ResourceManager.Storage.Models.StorageAccountInternetEndpoints StorageAccountInternetEndpoints(System.Uri blobUri = null, System.Uri fileUri = null, System.Uri webUri = null, System.Uri dfsUri = null) { throw null; } + public static Azure.ResourceManager.Storage.Models.StorageAccountIPv6Endpoints StorageAccountIPv6Endpoints(string blob = null, string queue = null, string table = null, string file = null, string web = null, string dfs = null, Azure.ResourceManager.Storage.Models.StorageAccountMicrosoftEndpoints microsoftEndpoints = null, Azure.ResourceManager.Storage.Models.StorageAccountInternetEndpoints internetEndpoints = null) { throw null; } public static Azure.ResourceManager.Storage.Models.StorageAccountKey StorageAccountKey(string keyName = null, string value = null, Azure.ResourceManager.Storage.Models.StorageAccountKeyPermission? permissions = default(Azure.ResourceManager.Storage.Models.StorageAccountKeyPermission?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Storage.Models.StorageAccountKeyCreationTime StorageAccountKeyCreationTime(System.DateTimeOffset? key1 = default(System.DateTimeOffset?), System.DateTimeOffset? key2 = default(System.DateTimeOffset?)) { throw null; } public static Azure.ResourceManager.Storage.Models.StorageAccountKeyVaultProperties StorageAccountKeyVaultProperties(string keyName = null, string keyVersion = null, System.Uri keyVaultUri = null, string currentVersionedKeyIdentifier = null, System.DateTimeOffset? lastKeyRotationTimestamp = default(System.DateTimeOffset?), System.DateTimeOffset? currentVersionedKeyExpirationTimestamp = default(System.DateTimeOffset?)) { throw null; } @@ -1356,7 +1370,9 @@ public static partial class ArmStorageModelFactory public static Azure.ResourceManager.Storage.StorageQueueData StorageQueueData(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 metadata = null, int? approximateMessageCount = default(int?)) { throw null; } public static Azure.ResourceManager.Storage.Models.StorageSku StorageSku(Azure.ResourceManager.Storage.Models.StorageSkuName name = default(Azure.ResourceManager.Storage.Models.StorageSkuName), Azure.ResourceManager.Storage.Models.StorageSkuTier? tier = default(Azure.ResourceManager.Storage.Models.StorageSkuTier?)) { throw null; } public static Azure.ResourceManager.Storage.Models.StorageSkuCapability StorageSkuCapability(string name = null, string value = null) { throw null; } - public static Azure.ResourceManager.Storage.Models.StorageSkuInformation StorageSkuInformation(Azure.ResourceManager.Storage.Models.StorageSkuName name = default(Azure.ResourceManager.Storage.Models.StorageSkuName), Azure.ResourceManager.Storage.Models.StorageSkuTier? tier = default(Azure.ResourceManager.Storage.Models.StorageSkuTier?), string resourceType = null, Azure.ResourceManager.Storage.Models.StorageKind? kind = default(Azure.ResourceManager.Storage.Models.StorageKind?), System.Collections.Generic.IEnumerable locations = null, System.Collections.Generic.IEnumerable capabilities = null, System.Collections.Generic.IEnumerable restrictions = null) { throw null; } + public static Azure.ResourceManager.Storage.Models.StorageSkuInformation StorageSkuInformation(Azure.ResourceManager.Storage.Models.StorageSkuName name = default(Azure.ResourceManager.Storage.Models.StorageSkuName), Azure.ResourceManager.Storage.Models.StorageSkuTier? tier = default(Azure.ResourceManager.Storage.Models.StorageSkuTier?), string resourceType = null, Azure.ResourceManager.Storage.Models.StorageKind? kind = default(Azure.ResourceManager.Storage.Models.StorageKind?), System.Collections.Generic.IEnumerable locations = null, System.Collections.Generic.IEnumerable locationInfo = null, System.Collections.Generic.IEnumerable capabilities = null, System.Collections.Generic.IEnumerable restrictions = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Storage.Models.StorageSkuInformation StorageSkuInformation(Azure.ResourceManager.Storage.Models.StorageSkuName name, Azure.ResourceManager.Storage.Models.StorageSkuTier? tier, string resourceType, Azure.ResourceManager.Storage.Models.StorageKind? kind, System.Collections.Generic.IEnumerable locations, System.Collections.Generic.IEnumerable capabilities, System.Collections.Generic.IEnumerable restrictions) { throw null; } public static Azure.ResourceManager.Storage.Models.StorageSkuRestriction StorageSkuRestriction(string restrictionType = null, System.Collections.Generic.IEnumerable values = null, Azure.ResourceManager.Storage.Models.StorageRestrictionReasonCode? reasonCode = default(Azure.ResourceManager.Storage.Models.StorageRestrictionReasonCode?)) { throw null; } public static Azure.ResourceManager.Storage.StorageTaskAssignmentData StorageTaskAssignmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Storage.Models.StorageTaskAssignmentProperties properties = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -1852,8 +1868,12 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer } public partial class ExecutionTrigger : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public ExecutionTrigger(Azure.ResourceManager.Storage.Models.ExecutionTriggerType triggerType, Azure.ResourceManager.Storage.Models.ExecutionTriggerParameters parameters) { } + public ExecutionTrigger(Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType taskExecutionTriggerType, Azure.ResourceManager.Storage.Models.ExecutionTriggerParameters parameters) { } public Azure.ResourceManager.Storage.Models.ExecutionTriggerParameters Parameters { get { throw null; } set { } } + public Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType TaskExecutionTriggerType { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.ResourceManager.Storage.Models.ExecutionTriggerType TriggerType { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Storage.Models.ExecutionTrigger System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1892,6 +1912,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public enum ExecutionTriggerType { RunOnce = 0, @@ -1901,6 +1922,8 @@ public partial class ExecutionTriggerUpdate : System.ClientModel.Primitives.IJso { public ExecutionTriggerUpdate() { } public Azure.ResourceManager.Storage.Models.ExecutionTriggerParametersUpdate Parameters { get { throw null; } set { } } + public Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType? TaskExecutionTriggerType { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public Azure.ResourceManager.Storage.Models.ExecutionTriggerType? TriggerType { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Storage.Models.ExecutionTriggerUpdate System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2069,6 +2092,7 @@ public FilesIdentityBasedAuthentication(Azure.ResourceManager.Storage.Models.Dir public Azure.ResourceManager.Storage.Models.StorageActiveDirectoryProperties ActiveDirectoryProperties { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.DefaultSharePermission? DefaultSharePermission { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.DirectoryServiceOption DirectoryServiceOptions { get { throw null; } set { } } + public bool? IsSmbOAuthEnabled { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -2827,6 +2851,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class ProtocolSettings : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ProtocolSettings() { } + public bool? Required { get { throw null; } set { } } + public Azure.ResourceManager.Storage.Models.SmbSetting SmbSetting { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Storage.Models.ProtocolSettings System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Storage.Models.ProtocolSettings System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct ResourceAssociationAccessMode : System.IEquatable { @@ -2927,6 +2963,18 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.Storage.Models.ServiceSasSignedResourceType left, Azure.ResourceManager.Storage.Models.ServiceSasSignedResourceType right) { throw null; } public override string ToString() { throw null; } } + public partial class SkuInformationLocationInfoItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal SkuInformationLocationInfoItem() { } + public Azure.Core.AzureLocation? Location { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Zones { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Storage.Models.SkuInformationLocationInfoItem System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Storage.Models.SkuInformationLocationInfoItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class SmbSetting : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SmbSetting() { } @@ -2934,6 +2982,7 @@ public SmbSetting() { } public string ChannelEncryption { get { throw null; } set { } } public bool? IsMultiChannelEnabled { get { throw null; } set { } } public string KerberosTicketEncryption { get { throw null; } set { } } + public bool? Required { get { throw null; } set { } } public string Versions { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Storage.Models.SmbSetting System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -2978,10 +3027,13 @@ public StorageAccountCreateOrUpdateContent(Azure.ResourceManager.Storage.Models. public Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? MinimumTlsVersion { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet NetworkRuleSet { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } + public bool? PublishIPv6Endpoint { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageRoutingPreference RoutingPreference { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy SasPolicy { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageSku Sku { get { throw null; } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public Azure.ResourceManager.Storage.Models.ZonePlacementPolicy? ZonePlacementPolicy { get { throw null; } set { } } + public System.Collections.Generic.IList Zones { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Storage.Models.StorageAccountCreateOrUpdateContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -3037,6 +3089,7 @@ internal StorageAccountEndpoints() { } public System.Uri DfsUri { get { throw null; } } public System.Uri FileUri { get { throw null; } } public Azure.ResourceManager.Storage.Models.StorageAccountInternetEndpoints InternetEndpoints { get { throw null; } } + public Azure.ResourceManager.Storage.Models.StorageAccountIPv6Endpoints IPv6Endpoints { get { throw null; } } public Azure.ResourceManager.Storage.Models.StorageAccountMicrosoftEndpoints MicrosoftEndpoints { get { throw null; } } public System.Uri QueueUri { get { throw null; } } public System.Uri TableUri { get { throw null; } } @@ -3101,6 +3154,24 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class StorageAccountIPv6Endpoints : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal StorageAccountIPv6Endpoints() { } + public string Blob { get { throw null; } } + public string Dfs { get { throw null; } } + public string File { get { throw null; } } + public Azure.ResourceManager.Storage.Models.StorageAccountInternetEndpoints InternetEndpoints { get { throw null; } } + public Azure.ResourceManager.Storage.Models.StorageAccountMicrosoftEndpoints MicrosoftEndpoints { get { throw null; } } + public string Queue { get { throw null; } } + public string Table { get { throw null; } } + public string Web { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Storage.Models.StorageAccountIPv6Endpoints System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Storage.Models.StorageAccountIPv6Endpoints System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class StorageAccountKey : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal StorageAccountKey() { } @@ -3273,6 +3344,7 @@ public StorageAccountNetworkRuleSet(Azure.ResourceManager.Storage.Models.Storage public Azure.ResourceManager.Storage.Models.StorageNetworkBypass? Bypass { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageNetworkDefaultAction DefaultAction { get { throw null; } set { } } public System.Collections.Generic.IList IPRules { get { throw null; } } + public System.Collections.Generic.IList IPv6Rules { get { throw null; } } public System.Collections.Generic.IList ResourceAccessRules { get { throw null; } } public System.Collections.Generic.IList VirtualNetworkRules { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -3328,10 +3400,13 @@ public StorageAccountPatch() { } public Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? MinimumTlsVersion { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet NetworkRuleSet { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? PublicNetworkAccess { get { throw null; } set { } } + public bool? PublishIPv6Endpoint { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageRoutingPreference RoutingPreference { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy SasPolicy { get { throw null; } set { } } public Azure.ResourceManager.Storage.Models.StorageSku Sku { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public Azure.ResourceManager.Storage.Models.ZonePlacementPolicy? ZonePlacementPolicy { get { throw null; } set { } } + public System.Collections.Generic.IList Zones { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Storage.Models.StorageAccountPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -3509,9 +3584,13 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer } public partial class StorageActiveDirectoryProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { + public StorageActiveDirectoryProperties() { } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public StorageActiveDirectoryProperties(string domainName, System.Guid domainGuid) { } public Azure.ResourceManager.Storage.Models.ActiveDirectoryAccountType? AccountType { get { throw null; } set { } } + public System.Guid? ActiveDirectoryDomainGuid { get { throw null; } set { } } public string AzureStorageSid { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public System.Guid DomainGuid { get { throw null; } set { } } public string DomainName { get { throw null; } set { } } public string DomainSid { get { throw null; } set { } } @@ -3958,6 +4037,7 @@ public partial class StorageSkuInformation : System.ClientModel.Primitives.IJson internal StorageSkuInformation() { } public System.Collections.Generic.IReadOnlyList Capabilities { get { throw null; } } public Azure.ResourceManager.Storage.Models.StorageKind? Kind { get { throw null; } } + public System.Collections.Generic.IReadOnlyList LocationInfo { get { throw null; } } public System.Collections.Generic.IReadOnlyList Locations { get { throw null; } } public Azure.ResourceManager.Storage.Models.StorageSkuName Name { get { throw null; } } public string ResourceType { get { throw null; } } @@ -4271,6 +4351,24 @@ public enum StorageUsageUnit CountsPerSecond = 4, BytesPerSecond = 5, } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct TaskExecutionTriggerType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public TaskExecutionTriggerType(string value) { throw null; } + public static Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType OnSchedule { get { throw null; } } + public static Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType RunOnce { get { throw null; } } + public bool Equals(Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType left, Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType right) { throw null; } + public static implicit operator Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType left, Azure.ResourceManager.Storage.Models.TaskExecutionTriggerType right) { throw null; } + public override string ToString() { throw null; } + } public partial class UpdateHistoryEntry : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal UpdateHistoryEntry() { } @@ -4289,4 +4387,22 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ZonePlacementPolicy : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ZonePlacementPolicy(string value) { throw null; } + public static Azure.ResourceManager.Storage.Models.ZonePlacementPolicy Any { get { throw null; } } + public static Azure.ResourceManager.Storage.Models.ZonePlacementPolicy None { get { throw null; } } + public bool Equals(Azure.ResourceManager.Storage.Models.ZonePlacementPolicy other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Storage.Models.ZonePlacementPolicy left, Azure.ResourceManager.Storage.Models.ZonePlacementPolicy right) { throw null; } + public static implicit operator Azure.ResourceManager.Storage.Models.ZonePlacementPolicy (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Storage.Models.ZonePlacementPolicy left, Azure.ResourceManager.Storage.Models.ZonePlacementPolicy right) { throw null; } + public override string ToString() { throw null; } + } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Customize/ArmStorageModelFactory.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Customize/ArmStorageModelFactory.cs index dd91901416e2..4514c4685502 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Customize/ArmStorageModelFactory.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Customize/ArmStorageModelFactory.cs @@ -151,5 +151,19 @@ public static StorageTaskAssignmentProperties StorageTaskAssignmentProperties(Re [EditorBrowsable(EditorBrowsableState.Never)] public static StorageTaskAssignmentPatchProperties StorageTaskAssignmentPatchProperties(string taskId, bool? isEnabled, string description, StorageTaskAssignmentUpdateExecutionContext executionContext, string reportPrefix, StorageProvisioningState? provisioningState, StorageTaskReportProperties runStatus) => StorageTaskAssignmentPatchProperties(taskId, isEnabled, description, executionContext, reportPrefix, provisioningState.ToString(), runStatus); + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Sku name and tier. + /// Specifies CORS rules for the File service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the File service. + /// The file service properties for share soft delete. + /// Protocol settings for file service. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static FileServiceData FileServiceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, StorageSku sku, IEnumerable corsRules, DeleteRetentionPolicy shareDeleteRetentionPolicy, SmbSetting protocolSmbSetting) + => FileServiceData(id, name, resourceType, systemData, sku, corsRules, shareDeleteRetentionPolicy, new ProtocolSettings(protocolSmbSetting, null, null)); } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Customize/FileServiceData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Customize/FileServiceData.cs new file mode 100644 index 000000000000..c7b063b675e0 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Customize/FileServiceData.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Storage.Models; + +namespace Azure.ResourceManager.Storage +{ + /// + /// A class representing the FileService data model. + /// The properties of File services in storage account. + /// + public partial class FileServiceData : ResourceData + { + /// Setting for SMB protocol. + [WirePath("properties.protocolSettings.smb")] + public SmbSetting ProtocolSmbSetting + { + get => ProtocolSettings is null ? default : ProtocolSettings.SmbSetting; + set + { + if (ProtocolSettings is null) + ProtocolSettings = new ProtocolSettings(); + ProtocolSettings.SmbSetting = value; + } + } + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Customize/Models/ExecutionTrigger.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Customize/Models/ExecutionTrigger.cs new file mode 100644 index 000000000000..2fda1d925a5e --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Customize/Models/ExecutionTrigger.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Storage.Models +{ + /// Execution trigger for storage task assignment. + public partial class ExecutionTrigger + { + /// Initializes a new instance of . + /// The trigger type of the storage task assignment execution. + /// The trigger parameters of the storage task assignment execution. + /// is null. + [EditorBrowsable(EditorBrowsableState.Never)] + public ExecutionTrigger(ExecutionTriggerType triggerType, ExecutionTriggerParameters parameters) + { + Argument.AssertNotNull(parameters, nameof(parameters)); + + TaskExecutionTriggerType = triggerType.ToString(); + Parameters = parameters; + } + + /// The trigger type of the storage task assignment execution. + [EditorBrowsable(EditorBrowsableState.Never)] + [WirePath("type")] + public ExecutionTriggerType TriggerType + { + get => TaskExecutionTriggerType.ToString().ToExecutionTriggerType(); + set => TaskExecutionTriggerType = value.ToString(); + } + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTriggerType.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Customize/Models/ExecutionTriggerType.Serialization.cs similarity index 97% rename from sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTriggerType.Serialization.cs rename to sdk/storage/Azure.ResourceManager.Storage/src/Customize/Models/ExecutionTriggerType.Serialization.cs index b041106b2116..fee7dbc02e25 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTriggerType.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Customize/Models/ExecutionTriggerType.Serialization.cs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable using System; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTriggerType.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Customize/Models/ExecutionTriggerType.cs similarity index 84% rename from sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTriggerType.cs rename to sdk/storage/Azure.ResourceManager.Storage/src/Customize/Models/ExecutionTriggerType.cs index aa3bcdb5e39f..e539df9665e6 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTriggerType.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Customize/Models/ExecutionTriggerType.cs @@ -1,13 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// - #nullable disable +using System.ComponentModel; + namespace Azure.ResourceManager.Storage.Models { /// The trigger type of the storage task assignment execution. + [EditorBrowsable(EditorBrowsableState.Never)] public enum ExecutionTriggerType { /// RunOnce. diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Customize/Models/ExecutionTriggerUpdate.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Customize/Models/ExecutionTriggerUpdate.cs new file mode 100644 index 000000000000..2525c7df7832 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Customize/Models/ExecutionTriggerUpdate.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Storage.Models +{ + /// Execution trigger update for storage task assignment. + public partial class ExecutionTriggerUpdate + { + /// The trigger type of the storage task assignment execution. + [EditorBrowsable(EditorBrowsableState.Never)] + [WirePath("type")] + public ExecutionTriggerType? TriggerType + { + get => TaskExecutionTriggerType.ToString().ToExecutionTriggerType(); + set => TaskExecutionTriggerType = value.ToString(); + } + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Customize/Models/StorageActiveDirectoryProperties.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Customize/Models/StorageActiveDirectoryProperties.cs index 08a33bff1bd0..306c30e4e3c0 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Customize/Models/StorageActiveDirectoryProperties.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Customize/Models/StorageActiveDirectoryProperties.cs @@ -4,26 +4,34 @@ #nullable disable using System; -using System.Runtime.CompilerServices; -using System.Text.Json; -using Azure.Core; +using System.ComponentModel; namespace Azure.ResourceManager.Storage.Models { - [CodeGenSerialization(nameof(DomainGuid), DeserializationValueHook = nameof(DeserializeNullableGuid))] public partial class StorageActiveDirectoryProperties { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - private static void DeserializeNullableGuid(JsonProperty property, ref Guid domainGuid) + /// Initializes a new instance of . + /// Specifies the primary domain that the AD DNS server is authoritative for. + /// Specifies the domain GUID. + /// is null. + [EditorBrowsable(EditorBrowsableState.Never)] + public StorageActiveDirectoryProperties(string domainName, Guid domainGuid) { - if (string.IsNullOrEmpty(property.Value.GetString())) - { - domainGuid = Guid.Empty; - } - else - { - domainGuid = property.Value.GetGuid(); - } + Argument.AssertNotNull(domainName, nameof(domainName)); + + DomainName = domainName; + DomainGuid = domainGuid; + } + /// + /// Specifies the domain GUID. + /// This property is deprecated. Use instead. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + [WirePath("domainGuid")] + public Guid DomainGuid + { + get => ActiveDirectoryDomainGuid ?? Guid.Empty; + set => ActiveDirectoryDomainGuid = value == Guid.Empty ? null : value; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ArmStorageModelFactory.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ArmStorageModelFactory.cs index b08a628bedf0..24d68549a55d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ArmStorageModelFactory.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ArmStorageModelFactory.cs @@ -302,9 +302,9 @@ public static LeaseContainerResponse LeaseContainerResponse(string leaseId = nul /// Sku name and tier. /// Specifies CORS rules for the File service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the File service. /// The file service properties for share soft delete. - /// Protocol settings for file service. + /// Protocol settings for file service. /// A new instance for mocking. - public static FileServiceData FileServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, StorageSku sku = null, IEnumerable corsRules = null, DeleteRetentionPolicy shareDeleteRetentionPolicy = null, SmbSetting protocolSmbSetting = null) + public static FileServiceData FileServiceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, StorageSku sku = null, IEnumerable corsRules = null, DeleteRetentionPolicy shareDeleteRetentionPolicy = null, ProtocolSettings protocolSettings = null) { corsRules ??= new List(); @@ -316,7 +316,7 @@ public static FileServiceData FileServiceData(ResourceIdentifier id = null, stri sku, corsRules != null ? new StorageCorsRules(corsRules?.ToList(), serializedAdditionalRawData: null) : null, shareDeleteRetentionPolicy, - protocolSmbSetting != null ? new ProtocolSettings(protocolSmbSetting, serializedAdditionalRawData: null) : null, + protocolSettings, serializedAdditionalRawData: null); } @@ -576,12 +576,14 @@ public static StorageQueueData StorageQueueData(ResourceIdentifier id = null, st /// The type of the resource, usually it is 'storageAccounts'. /// Indicates the type of storage account. /// The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). + /// /// The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc. /// The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. /// A new instance for mocking. - public static StorageSkuInformation StorageSkuInformation(StorageSkuName name = default, StorageSkuTier? tier = null, string resourceType = null, StorageKind? kind = null, IEnumerable locations = null, IEnumerable capabilities = null, IEnumerable restrictions = null) + public static StorageSkuInformation StorageSkuInformation(StorageSkuName name = default, StorageSkuTier? tier = null, string resourceType = null, StorageKind? kind = null, IEnumerable locations = null, IEnumerable locationInfo = null, IEnumerable capabilities = null, IEnumerable restrictions = null) { locations ??= new List(); + locationInfo ??= new List(); capabilities ??= new List(); restrictions ??= new List(); @@ -591,11 +593,23 @@ public static StorageSkuInformation StorageSkuInformation(StorageSkuName name = resourceType, kind, locations?.ToList(), + locationInfo?.ToList(), capabilities?.ToList(), restrictions?.ToList(), serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Describes the location for the product where storage account resource can be created. + /// Describes the available zones for the product where storage account resource can be created. + /// A new instance for mocking. + public static SkuInformationLocationInfoItem SkuInformationLocationInfoItem(AzureLocation? location = null, IEnumerable zones = null) + { + zones ??= new List(); + + return new SkuInformationLocationInfoItem(location, zones?.ToList(), serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The name of capability, The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc. /// A string value to indicate states of given capability. Possibly 'true' or 'false'. @@ -641,6 +655,8 @@ public static StorageAccountNameAvailabilityResult StorageAccountNameAvailabilit /// Required. Indicates the type of storage account. /// Required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. /// Optional. Set the extended location of the resource. If not set, the storage account will be created in Azure main region. Otherwise it will be created in the specified extended location. + /// Optional. Gets or sets the pinned logical availability zone for the storage account. + /// Optional. Gets or sets the zonal placement details for the storage account. /// Gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. /// The identity of the resource. /// Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. @@ -659,6 +675,7 @@ public static StorageAccountNameAvailabilityResult StorageAccountNameAvailabilit /// Account HierarchicalNamespace enabled if sets to true. /// Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. /// Maintains information about the network routing choice opted by the user for data transfer. + /// Maintains information about the Internet protocol opted by the user. /// Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. /// Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. /// Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. @@ -668,8 +685,9 @@ public static StorageAccountNameAvailabilityResult StorageAccountNameAvailabilit /// The property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the new containers in the account by default. /// Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. /// A new instance for mocking. - public static StorageAccountCreateOrUpdateContent StorageAccountCreateOrUpdateContent(StorageSku sku = null, StorageKind kind = default, AzureLocation location = default, ExtendedLocation extendedLocation = null, IDictionary tags = null, ManagedServiceIdentity identity = null, AllowedCopyScope? allowedCopyScope = null, StoragePublicNetworkAccess? publicNetworkAccess = null, StorageAccountSasPolicy sasPolicy = null, int? keyExpirationPeriodInDays = null, StorageCustomDomain customDomain = null, StorageAccountEncryption encryption = null, StorageAccountNetworkRuleSet networkRuleSet = null, StorageAccountAccessTier? accessTier = null, FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = null, bool? enableHttpsTrafficOnly = null, bool? isSftpEnabled = null, bool? isLocalUserEnabled = null, bool? isExtendedGroupEnabled = null, bool? isHnsEnabled = null, LargeFileSharesState? largeFileSharesState = null, StorageRoutingPreference routingPreference = null, bool? allowBlobPublicAccess = null, StorageMinimumTlsVersion? minimumTlsVersion = null, bool? allowSharedKeyAccess = null, bool? isNfsV3Enabled = null, bool? allowCrossTenantReplication = null, bool? isDefaultToOAuthAuthentication = null, ImmutableStorageAccount immutableStorageWithVersioning = null, StorageDnsEndpointType? dnsEndpointType = null) + public static StorageAccountCreateOrUpdateContent StorageAccountCreateOrUpdateContent(StorageSku sku = null, StorageKind kind = default, AzureLocation location = default, ExtendedLocation extendedLocation = null, IEnumerable zones = null, ZonePlacementPolicy? zonePlacementPolicy = null, IDictionary tags = null, ManagedServiceIdentity identity = null, AllowedCopyScope? allowedCopyScope = null, StoragePublicNetworkAccess? publicNetworkAccess = null, StorageAccountSasPolicy sasPolicy = null, int? keyExpirationPeriodInDays = null, StorageCustomDomain customDomain = null, StorageAccountEncryption encryption = null, StorageAccountNetworkRuleSet networkRuleSet = null, StorageAccountAccessTier? accessTier = null, FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = null, bool? enableHttpsTrafficOnly = null, bool? isSftpEnabled = null, bool? isLocalUserEnabled = null, bool? isExtendedGroupEnabled = null, bool? isHnsEnabled = null, LargeFileSharesState? largeFileSharesState = null, StorageRoutingPreference routingPreference = null, bool? publishIPv6Endpoint = null, bool? allowBlobPublicAccess = null, StorageMinimumTlsVersion? minimumTlsVersion = null, bool? allowSharedKeyAccess = null, bool? isNfsV3Enabled = null, bool? allowCrossTenantReplication = null, bool? isDefaultToOAuthAuthentication = null, ImmutableStorageAccount immutableStorageWithVersioning = null, StorageDnsEndpointType? dnsEndpointType = null) { + zones ??= new List(); tags ??= new Dictionary(); return new StorageAccountCreateOrUpdateContent( @@ -677,6 +695,8 @@ public static StorageAccountCreateOrUpdateContent StorageAccountCreateOrUpdateCo kind, location, extendedLocation, + zones?.ToList(), + zonePlacementPolicy != null ? new Placement(zonePlacementPolicy, serializedAdditionalRawData: null) : null, tags, identity, allowedCopyScope, @@ -695,6 +715,7 @@ public static StorageAccountCreateOrUpdateContent StorageAccountCreateOrUpdateCo isHnsEnabled, largeFileSharesState, routingPreference, + publishIPv6Endpoint != null ? new DualStackEndpointPreference(publishIPv6Endpoint, serializedAdditionalRawData: null) : null, allowBlobPublicAccess, minimumTlsVersion, allowSharedKeyAccess, @@ -747,6 +768,8 @@ public static StorageAccountKeyVaultProperties StorageAccountKeyVaultProperties( /// Gets the Kind. /// The identity of the resource. /// The extendedLocation of the resource. + /// Optional. Gets or sets the pinned logical availability zone for the storage account. + /// Optional. Gets or sets the zonal placement details for the storage account. /// Gets the status of the storage account at the time the operation was called. /// Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint. /// Gets the location of the primary data center for the storage account. @@ -774,6 +797,7 @@ public static StorageAccountKeyVaultProperties StorageAccountKeyVaultProperties( /// Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. /// List of private endpoint connection associated with the specified storage account. /// Maintains information about the network routing choice opted by the user for data transfer. + /// Maintains information about the Internet protocol opted by the user. /// Blob restore status. /// Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. /// Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. @@ -789,9 +813,10 @@ public static StorageAccountKeyVaultProperties StorageAccountKeyVaultProperties( /// This property will be set to true or false on an event of ongoing migration. Default value is null. /// If customer initiated account migration is in progress, the value will be true else it will be null. /// A new instance for mocking. - public static StorageAccountData StorageAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, StorageSku sku = null, StorageKind? kind = null, ManagedServiceIdentity identity = null, ExtendedLocation extendedLocation = null, StorageAccountProvisioningState? storageAccountProvisioningState = null, StorageAccountEndpoints primaryEndpoints = null, AzureLocation? primaryLocation = null, StorageAccountStatus? statusOfPrimary = null, DateTimeOffset? lastGeoFailoverOn = null, AzureLocation? secondaryLocation = null, StorageAccountStatus? statusOfSecondary = null, DateTimeOffset? createdOn = null, StorageCustomDomain customDomain = null, StorageAccountSasPolicy sasPolicy = null, int? keyExpirationPeriodInDays = null, StorageAccountKeyCreationTime keyCreationTime = null, StorageAccountEndpoints secondaryEndpoints = null, StorageAccountEncryption encryption = null, StorageAccountAccessTier? accessTier = null, FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = null, bool? enableHttpsTrafficOnly = null, StorageAccountNetworkRuleSet networkRuleSet = null, bool? isSftpEnabled = null, bool? isLocalUserEnabled = null, bool? isExtendedGroupEnabled = null, bool? isHnsEnabled = null, GeoReplicationStatistics geoReplicationStats = null, bool? isFailoverInProgress = null, LargeFileSharesState? largeFileSharesState = null, IEnumerable privateEndpointConnections = null, StorageRoutingPreference routingPreference = null, BlobRestoreStatus blobRestoreStatus = null, bool? allowBlobPublicAccess = null, StorageMinimumTlsVersion? minimumTlsVersion = null, bool? allowSharedKeyAccess = null, bool? isNfsV3Enabled = null, bool? allowCrossTenantReplication = null, bool? isDefaultToOAuthAuthentication = null, StoragePublicNetworkAccess? publicNetworkAccess = null, ImmutableStorageAccount immutableStorageWithVersioning = null, AllowedCopyScope? allowedCopyScope = null, StorageAccountSkuConversionStatus storageAccountSkuConversionStatus = null, StorageDnsEndpointType? dnsEndpointType = null, bool? isSkuConversionBlocked = null, bool? isAccountMigrationInProgress = null) + public static StorageAccountData StorageAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, StorageSku sku = null, StorageKind? kind = null, ManagedServiceIdentity identity = null, ExtendedLocation extendedLocation = null, IEnumerable zones = null, ZonePlacementPolicy? zonePlacementPolicy = null, StorageAccountProvisioningState? storageAccountProvisioningState = null, StorageAccountEndpoints primaryEndpoints = null, AzureLocation? primaryLocation = null, StorageAccountStatus? statusOfPrimary = null, DateTimeOffset? lastGeoFailoverOn = null, AzureLocation? secondaryLocation = null, StorageAccountStatus? statusOfSecondary = null, DateTimeOffset? createdOn = null, StorageCustomDomain customDomain = null, StorageAccountSasPolicy sasPolicy = null, int? keyExpirationPeriodInDays = null, StorageAccountKeyCreationTime keyCreationTime = null, StorageAccountEndpoints secondaryEndpoints = null, StorageAccountEncryption encryption = null, StorageAccountAccessTier? accessTier = null, FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = null, bool? enableHttpsTrafficOnly = null, StorageAccountNetworkRuleSet networkRuleSet = null, bool? isSftpEnabled = null, bool? isLocalUserEnabled = null, bool? isExtendedGroupEnabled = null, bool? isHnsEnabled = null, GeoReplicationStatistics geoReplicationStats = null, bool? isFailoverInProgress = null, LargeFileSharesState? largeFileSharesState = null, IEnumerable privateEndpointConnections = null, StorageRoutingPreference routingPreference = null, bool? publishIPv6Endpoint = null, BlobRestoreStatus blobRestoreStatus = null, bool? allowBlobPublicAccess = null, StorageMinimumTlsVersion? minimumTlsVersion = null, bool? allowSharedKeyAccess = null, bool? isNfsV3Enabled = null, bool? allowCrossTenantReplication = null, bool? isDefaultToOAuthAuthentication = null, StoragePublicNetworkAccess? publicNetworkAccess = null, ImmutableStorageAccount immutableStorageWithVersioning = null, AllowedCopyScope? allowedCopyScope = null, StorageAccountSkuConversionStatus storageAccountSkuConversionStatus = null, StorageDnsEndpointType? dnsEndpointType = null, bool? isSkuConversionBlocked = null, bool? isAccountMigrationInProgress = null) { tags ??= new Dictionary(); + zones ??= new List(); privateEndpointConnections ??= new List(); return new StorageAccountData( @@ -805,6 +830,8 @@ public static StorageAccountData StorageAccountData(ResourceIdentifier id = null kind, identity, extendedLocation, + zones?.ToList(), + zonePlacementPolicy != null ? new Placement(zonePlacementPolicy, serializedAdditionalRawData: null) : null, storageAccountProvisioningState, primaryEndpoints, primaryLocation, @@ -832,6 +859,7 @@ public static StorageAccountData StorageAccountData(ResourceIdentifier id = null largeFileSharesState, privateEndpointConnections?.ToList(), routingPreference, + publishIPv6Endpoint != null ? new DualStackEndpointPreference(publishIPv6Endpoint, serializedAdditionalRawData: null) : null, blobRestoreStatus, allowBlobPublicAccess, minimumTlsVersion, @@ -858,8 +886,9 @@ public static StorageAccountData StorageAccountData(ResourceIdentifier id = null /// Gets the dfs endpoint. /// Gets the microsoft routing storage endpoints. /// Gets the internet routing storage endpoints. + /// Gets the IPv6 storage endpoints. /// A new instance for mocking. - public static StorageAccountEndpoints StorageAccountEndpoints(Uri blobUri = null, Uri queueUri = null, Uri tableUri = null, Uri fileUri = null, Uri webUri = null, Uri dfsUri = null, StorageAccountMicrosoftEndpoints microsoftEndpoints = null, StorageAccountInternetEndpoints internetEndpoints = null) + public static StorageAccountEndpoints StorageAccountEndpoints(Uri blobUri = null, Uri queueUri = null, Uri tableUri = null, Uri fileUri = null, Uri webUri = null, Uri dfsUri = null, StorageAccountMicrosoftEndpoints microsoftEndpoints = null, StorageAccountInternetEndpoints internetEndpoints = null, StorageAccountIPv6Endpoints ipv6Endpoints = null) { return new StorageAccountEndpoints( blobUri, @@ -870,6 +899,7 @@ public static StorageAccountEndpoints StorageAccountEndpoints(Uri blobUri = null dfsUri, microsoftEndpoints, internetEndpoints, + ipv6Endpoints, serializedAdditionalRawData: null); } @@ -904,6 +934,30 @@ public static StorageAccountInternetEndpoints StorageAccountInternetEndpoints(Ur return new StorageAccountInternetEndpoints(blobUri, fileUri, webUri, dfsUri, serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Gets the blob endpoint. + /// Gets the queue endpoint. + /// Gets the table endpoint. + /// Gets the file endpoint. + /// Gets the web endpoint. + /// Gets the dfs endpoint. + /// Gets the microsoft routing storage endpoints. + /// Gets the internet routing storage endpoints. + /// A new instance for mocking. + public static StorageAccountIPv6Endpoints StorageAccountIPv6Endpoints(string blob = null, string queue = null, string table = null, string file = null, string web = null, string dfs = null, StorageAccountMicrosoftEndpoints microsoftEndpoints = null, StorageAccountInternetEndpoints internetEndpoints = null) + { + return new StorageAccountIPv6Endpoints( + blob, + queue, + table, + file, + web, + dfs, + microsoftEndpoints, + internetEndpoints, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// /// @@ -1628,6 +1682,134 @@ public static StorageTaskReportInstance StorageTaskReportInstance(ResourceIdenti serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The SKU name. Required for account creation; optional for update. Note that in older versions, SKU name was called accountType. + /// The SKU tier. This is based on the SKU name. + /// The type of the resource, usually it is 'storageAccounts'. + /// Indicates the type of storage account. + /// The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). + /// The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc. + /// The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static StorageSkuInformation StorageSkuInformation(StorageSkuName name, StorageSkuTier? tier, string resourceType, StorageKind? kind, IEnumerable locations, IEnumerable capabilities, IEnumerable restrictions) + { + return StorageSkuInformation(name: name, tier: tier, resourceType: resourceType, kind: kind, locations: locations, locationInfo: default, capabilities: capabilities, restrictions: restrictions); + } + + /// Initializes a new instance of . + /// Required. Gets or sets the SKU name. + /// Required. Indicates the type of storage account. + /// Required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. + /// Optional. Set the extended location of the resource. If not set, the storage account will be created in Azure main region. Otherwise it will be created in the specified extended location. + /// Gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. + /// The identity of the resource. + /// Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. + /// Allow, disallow, or let Network Security Perimeter configuration to evaluate public network access to Storage Account. Value is optional but if passed in, must be 'Enabled', 'Disabled' or 'SecuredByPerimeter'. + /// SasPolicy assigned to the storage account. + /// KeyPolicy assigned to the storage account. + /// User domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. + /// Encryption settings to be used for server-side encryption for the storage account. + /// Network rule set. + /// Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' access tier is the default value for premium block blobs storage account type and it cannot be changed for the premium block blobs storage account type. + /// Provides the identity based authentication settings for Azure Files. + /// Allows https traffic only to storage service if sets to true. The default value is true since API version 2019-04-01. + /// Enables Secure File Transfer Protocol, if set to true. + /// Enables local users feature, if set to true. + /// Enables extended group support with local users feature, if set to true. + /// Account HierarchicalNamespace enabled if sets to true. + /// Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. + /// Maintains information about the network routing choice opted by the user for data transfer. + /// Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. + /// Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. + /// Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. + /// NFS 3.0 protocol support enabled if set to true. + /// Allow or disallow cross AAD tenant object replication. Set this property to true for new or existing accounts only if object replication policies will involve storage accounts in different AAD tenants. The default interpretation is false for new accounts to follow best security practices by default. + /// A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property. + /// The property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the new containers in the account by default. + /// Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static StorageAccountCreateOrUpdateContent StorageAccountCreateOrUpdateContent(StorageSku sku, StorageKind kind, AzureLocation location, ExtendedLocation extendedLocation, IDictionary tags, ManagedServiceIdentity identity, AllowedCopyScope? allowedCopyScope, StoragePublicNetworkAccess? publicNetworkAccess, StorageAccountSasPolicy sasPolicy, int? keyExpirationPeriodInDays, StorageCustomDomain customDomain, StorageAccountEncryption encryption, StorageAccountNetworkRuleSet networkRuleSet, StorageAccountAccessTier? accessTier, FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isExtendedGroupEnabled, bool? isHnsEnabled, LargeFileSharesState? largeFileSharesState, StorageRoutingPreference routingPreference, bool? allowBlobPublicAccess, StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, ImmutableStorageAccount immutableStorageWithVersioning, StorageDnsEndpointType? dnsEndpointType) + { + return StorageAccountCreateOrUpdateContent(sku: sku, kind: kind, location: location, extendedLocation: extendedLocation, zones: default, zonePlacementPolicy: default, tags: tags, identity: identity, allowedCopyScope: allowedCopyScope, publicNetworkAccess: publicNetworkAccess, sasPolicy: sasPolicy, keyExpirationPeriodInDays: keyExpirationPeriodInDays, customDomain: customDomain, encryption: encryption, networkRuleSet: networkRuleSet, accessTier: accessTier, azureFilesIdentityBasedAuthentication: azureFilesIdentityBasedAuthentication, enableHttpsTrafficOnly: enableHttpsTrafficOnly, isSftpEnabled: isSftpEnabled, isLocalUserEnabled: isLocalUserEnabled, isExtendedGroupEnabled: isExtendedGroupEnabled, isHnsEnabled: isHnsEnabled, largeFileSharesState: largeFileSharesState, routingPreference: routingPreference, publishIPv6Endpoint: default, allowBlobPublicAccess: allowBlobPublicAccess, minimumTlsVersion: minimumTlsVersion, allowSharedKeyAccess: allowSharedKeyAccess, isNfsV3Enabled: isNfsV3Enabled, allowCrossTenantReplication: allowCrossTenantReplication, isDefaultToOAuthAuthentication: isDefaultToOAuthAuthentication, immutableStorageWithVersioning: immutableStorageWithVersioning, dnsEndpointType: dnsEndpointType); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Gets the SKU. + /// Gets the Kind. + /// The identity of the resource. + /// The extendedLocation of the resource. + /// Gets the status of the storage account at the time the operation was called. + /// Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint. + /// Gets the location of the primary data center for the storage account. + /// Gets the status indicating whether the primary location of the storage account is available or unavailable. + /// Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS. + /// Gets the location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS. + /// Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. + /// Gets the creation date and time of the storage account in UTC. + /// Gets the custom domain the user assigned to this storage account. + /// SasPolicy assigned to the storage account. + /// KeyPolicy assigned to the storage account. + /// Storage account keys creation time. + /// Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS. + /// Encryption settings to be used for server-side encryption for the storage account. + /// Required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' access tier is the default value for premium block blobs storage account type and it cannot be changed for the premium block blobs storage account type. + /// Provides the identity based authentication settings for Azure Files. + /// Allows https traffic only to storage service if sets to true. + /// Network rule set. + /// Enables Secure File Transfer Protocol, if set to true. + /// Enables local users feature, if set to true. + /// Enables extended group support with local users feature, if set to true. + /// Account HierarchicalNamespace enabled if sets to true. + /// Geo Replication Stats. + /// If the failover is in progress, the value will be true, otherwise, it will be null. + /// Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. + /// List of private endpoint connection associated with the specified storage account. + /// Maintains information about the network routing choice opted by the user for data transfer. + /// Blob restore status. + /// Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. + /// Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. + /// Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. + /// NFS 3.0 protocol support enabled if set to true. + /// Allow or disallow cross AAD tenant object replication. Set this property to true for new or existing accounts only if object replication policies will involve storage accounts in different AAD tenants. The default interpretation is false for new accounts to follow best security practices by default. + /// A boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property. + /// Allow, disallow, or let Network Security Perimeter configuration to evaluate public network access to Storage Account. + /// The property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the containers in the account by default. + /// Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. + /// This property is readOnly and is set by server during asynchronous storage account sku conversion operations. + /// Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. + /// This property will be set to true or false on an event of ongoing migration. Default value is null. + /// If customer initiated account migration is in progress, the value will be true else it will be null. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static StorageAccountData StorageAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, StorageSku sku, StorageKind? kind, ManagedServiceIdentity identity, ExtendedLocation extendedLocation, StorageAccountProvisioningState? storageAccountProvisioningState, StorageAccountEndpoints primaryEndpoints, AzureLocation? primaryLocation, StorageAccountStatus? statusOfPrimary, DateTimeOffset? lastGeoFailoverOn, AzureLocation? secondaryLocation, StorageAccountStatus? statusOfSecondary, DateTimeOffset? createdOn, StorageCustomDomain customDomain, StorageAccountSasPolicy sasPolicy, int? keyExpirationPeriodInDays, StorageAccountKeyCreationTime keyCreationTime, StorageAccountEndpoints secondaryEndpoints, StorageAccountEncryption encryption, StorageAccountAccessTier? accessTier, FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, StorageAccountNetworkRuleSet networkRuleSet, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isExtendedGroupEnabled, bool? isHnsEnabled, GeoReplicationStatistics geoReplicationStats, bool? isFailoverInProgress, LargeFileSharesState? largeFileSharesState, IEnumerable privateEndpointConnections, StorageRoutingPreference routingPreference, BlobRestoreStatus blobRestoreStatus, bool? allowBlobPublicAccess, StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, StoragePublicNetworkAccess? publicNetworkAccess, ImmutableStorageAccount immutableStorageWithVersioning, AllowedCopyScope? allowedCopyScope, StorageAccountSkuConversionStatus storageAccountSkuConversionStatus, StorageDnsEndpointType? dnsEndpointType, bool? isSkuConversionBlocked, bool? isAccountMigrationInProgress) + { + return StorageAccountData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, sku: sku, kind: kind, identity: identity, extendedLocation: extendedLocation, zones: default, zonePlacementPolicy: default, storageAccountProvisioningState: storageAccountProvisioningState, primaryEndpoints: primaryEndpoints, primaryLocation: primaryLocation, statusOfPrimary: statusOfPrimary, lastGeoFailoverOn: lastGeoFailoverOn, secondaryLocation: secondaryLocation, statusOfSecondary: statusOfSecondary, createdOn: createdOn, customDomain: customDomain, sasPolicy: sasPolicy, keyExpirationPeriodInDays: keyExpirationPeriodInDays, keyCreationTime: keyCreationTime, secondaryEndpoints: secondaryEndpoints, encryption: encryption, accessTier: accessTier, azureFilesIdentityBasedAuthentication: azureFilesIdentityBasedAuthentication, enableHttpsTrafficOnly: enableHttpsTrafficOnly, networkRuleSet: networkRuleSet, isSftpEnabled: isSftpEnabled, isLocalUserEnabled: isLocalUserEnabled, isExtendedGroupEnabled: isExtendedGroupEnabled, isHnsEnabled: isHnsEnabled, geoReplicationStats: geoReplicationStats, isFailoverInProgress: isFailoverInProgress, largeFileSharesState: largeFileSharesState, privateEndpointConnections: privateEndpointConnections, routingPreference: routingPreference, publishIPv6Endpoint: default, blobRestoreStatus: blobRestoreStatus, allowBlobPublicAccess: allowBlobPublicAccess, minimumTlsVersion: minimumTlsVersion, allowSharedKeyAccess: allowSharedKeyAccess, isNfsV3Enabled: isNfsV3Enabled, allowCrossTenantReplication: allowCrossTenantReplication, isDefaultToOAuthAuthentication: isDefaultToOAuthAuthentication, publicNetworkAccess: publicNetworkAccess, immutableStorageWithVersioning: immutableStorageWithVersioning, allowedCopyScope: allowedCopyScope, storageAccountSkuConversionStatus: storageAccountSkuConversionStatus, dnsEndpointType: dnsEndpointType, isSkuConversionBlocked: isSkuConversionBlocked, isAccountMigrationInProgress: isAccountMigrationInProgress); + } + + /// Initializes a new instance of . + /// Gets the blob endpoint. + /// Gets the queue endpoint. + /// Gets the table endpoint. + /// Gets the file endpoint. + /// Gets the web endpoint. + /// Gets the dfs endpoint. + /// Gets the microsoft routing storage endpoints. + /// Gets the internet routing storage endpoints. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static StorageAccountEndpoints StorageAccountEndpoints(Uri blobUri, Uri queueUri, Uri tableUri, Uri fileUri, Uri webUri, Uri dfsUri, StorageAccountMicrosoftEndpoints microsoftEndpoints, StorageAccountInternetEndpoints internetEndpoints) + { + return StorageAccountEndpoints(blobUri: blobUri, queueUri: queueUri, tableUri: tableUri, fileUri: fileUri, webUri: webUri, dfsUri: dfsUri, microsoftEndpoints: microsoftEndpoints, internetEndpoints: internetEndpoints, ipv6Endpoints: default); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -1710,7 +1892,7 @@ public static ObjectReplicationPolicyData ObjectReplicationPolicyData(ResourceId [EditorBrowsable(EditorBrowsableState.Never)] public static StorageAccountCreateOrUpdateContent StorageAccountCreateOrUpdateContent(StorageSku sku, StorageKind kind, AzureLocation location, ExtendedLocation extendedLocation, IDictionary tags, ManagedServiceIdentity identity, AllowedCopyScope? allowedCopyScope, StoragePublicNetworkAccess? publicNetworkAccess, StorageAccountSasPolicy sasPolicy, int? keyExpirationPeriodInDays, StorageCustomDomain customDomain, StorageAccountEncryption encryption, StorageAccountNetworkRuleSet networkRuleSet, StorageAccountAccessTier? accessTier, FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isHnsEnabled, LargeFileSharesState? largeFileSharesState, StorageRoutingPreference routingPreference, bool? allowBlobPublicAccess, StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, ImmutableStorageAccount immutableStorageWithVersioning, StorageDnsEndpointType? dnsEndpointType) { - return StorageAccountCreateOrUpdateContent(sku: sku, kind: kind, location: location, extendedLocation: extendedLocation, tags: tags, identity: identity, allowedCopyScope: allowedCopyScope, publicNetworkAccess: publicNetworkAccess, sasPolicy: sasPolicy, keyExpirationPeriodInDays: keyExpirationPeriodInDays, customDomain: customDomain, encryption: encryption, networkRuleSet: networkRuleSet, accessTier: accessTier, azureFilesIdentityBasedAuthentication: azureFilesIdentityBasedAuthentication, enableHttpsTrafficOnly: enableHttpsTrafficOnly, isSftpEnabled: isSftpEnabled, isLocalUserEnabled: isLocalUserEnabled, isExtendedGroupEnabled: default, isHnsEnabled: isHnsEnabled, largeFileSharesState: largeFileSharesState, routingPreference: routingPreference, allowBlobPublicAccess: allowBlobPublicAccess, minimumTlsVersion: minimumTlsVersion, allowSharedKeyAccess: allowSharedKeyAccess, isNfsV3Enabled: isNfsV3Enabled, allowCrossTenantReplication: allowCrossTenantReplication, isDefaultToOAuthAuthentication: isDefaultToOAuthAuthentication, immutableStorageWithVersioning: immutableStorageWithVersioning, dnsEndpointType: dnsEndpointType); + return StorageAccountCreateOrUpdateContent(sku: sku, kind: kind, location: location, extendedLocation: extendedLocation, zones: default, zonePlacementPolicy: default, tags: tags, identity: identity, allowedCopyScope: allowedCopyScope, publicNetworkAccess: publicNetworkAccess, sasPolicy: sasPolicy, keyExpirationPeriodInDays: keyExpirationPeriodInDays, customDomain: customDomain, encryption: encryption, networkRuleSet: networkRuleSet, accessTier: accessTier, azureFilesIdentityBasedAuthentication: azureFilesIdentityBasedAuthentication, enableHttpsTrafficOnly: enableHttpsTrafficOnly, isSftpEnabled: isSftpEnabled, isLocalUserEnabled: isLocalUserEnabled, isExtendedGroupEnabled: default, isHnsEnabled: isHnsEnabled, largeFileSharesState: largeFileSharesState, routingPreference: routingPreference, publishIPv6Endpoint: default, allowBlobPublicAccess: allowBlobPublicAccess, minimumTlsVersion: minimumTlsVersion, allowSharedKeyAccess: allowSharedKeyAccess, isNfsV3Enabled: isNfsV3Enabled, allowCrossTenantReplication: allowCrossTenantReplication, isDefaultToOAuthAuthentication: isDefaultToOAuthAuthentication, immutableStorageWithVersioning: immutableStorageWithVersioning, dnsEndpointType: dnsEndpointType); } /// Initializes a new instance of . diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerCollection.cs index 0daa85d0f55e..d17f4fc182d8 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string conta /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string containerName, Cancell /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -290,7 +290,7 @@ public virtual AsyncPageable GetAllAsync(int? maxpagesize /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -323,7 +323,7 @@ public virtual Pageable GetAll(int? maxpagesize = null, s /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -366,7 +366,7 @@ public virtual async Task> ExistsAsync(string containerName, Canc /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -409,7 +409,7 @@ public virtual Response Exists(string containerName, CancellationToken can /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -454,7 +454,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerResource.cs index ed62058a35a5..badcab85acbb 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainerResource.cs @@ -109,7 +109,7 @@ public virtual ImmutabilityPolicyResource GetImmutabilityPolicy() /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -149,7 +149,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -189,7 +189,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -233,7 +233,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -277,7 +277,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual async Task> UpdateAsync(BlobConta /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -361,7 +361,7 @@ public virtual Response Update(BlobContainerData data, Ca /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual async Task> SetLegalHoldAsync(LegalHold legal /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -445,7 +445,7 @@ public virtual Response SetLegalHold(LegalHold legalHold, Cancellatio /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -487,7 +487,7 @@ public virtual async Task> ClearLegalHoldAsync(LegalHold leg /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -529,7 +529,7 @@ public virtual Response ClearLegalHold(LegalHold legalHold, Cancellat /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -568,7 +568,7 @@ public virtual async Task> LeaseAsync(LeaseCont /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -607,7 +607,7 @@ public virtual Response Lease(LeaseContainerContent cont /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -649,7 +649,7 @@ public virtual async Task EnableVersionLevelImmutabilityAsync(Wait /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobInventoryPolicyResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobInventoryPolicyResource.cs index 5aa0773d0ed5..312ebb5eee82 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobInventoryPolicyResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobInventoryPolicyResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobServiceResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobServiceResource.cs index 2706edc9f1a4..ea6b977caafe 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobServiceResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobServiceResource.cs @@ -107,7 +107,7 @@ public virtual BlobContainerCollection GetBlobContainers() /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -138,7 +138,7 @@ public virtual async Task> GetBlobContainerAsync /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual Response GetBlobContainer(string container /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(CancellationTo /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -249,7 +249,7 @@ public virtual Response Get(CancellationToken cancellationT /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -297,7 +297,7 @@ public virtual async Task> CreateOrUpdateAsync /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/DeletedAccountCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/DeletedAccountCollection.cs index 41a085b8a0f9..882b10cacf74 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/DeletedAccountCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/DeletedAccountCollection.cs @@ -62,7 +62,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -108,7 +108,7 @@ public virtual async Task> GetAsync(AzureLocati /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(AzureLocation location, stri /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -198,7 +198,7 @@ public virtual async Task> ExistsAsync(AzureLocation location, st /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -242,7 +242,7 @@ public virtual Response Exists(AzureLocation location, string deletedAccou /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/DeletedAccountResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/DeletedAccountResource.cs index 58ced42a8b80..60fc1fecd9da 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/DeletedAccountResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/DeletedAccountResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScopeCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScopeCollection.cs index 19a58fc924cc..4e0bc1b6df6d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScopeCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScopeCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string enc /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string encryptionScopeName, /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -290,7 +290,7 @@ public virtual AsyncPageable GetAllAsync(int? maxpagesi /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -323,7 +323,7 @@ public virtual Pageable GetAll(int? maxpagesize = null, /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -366,7 +366,7 @@ public virtual async Task> ExistsAsync(string encryptionScopeName /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -409,7 +409,7 @@ public virtual Response Exists(string encryptionScopeName, CancellationTok /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -454,7 +454,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScopeResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScopeResource.cs index 2b3ddb3eeea2..06845e92fbb7 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScopeResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScopeResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task> UpdateAsync(Encrypt /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Extensions/MockableStorageResourceGroupResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Extensions/MockableStorageResourceGroupResource.cs index b0602d581914..2b38e0eda7c9 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Extensions/MockableStorageResourceGroupResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Extensions/MockableStorageResourceGroupResource.cs @@ -54,7 +54,7 @@ public virtual StorageAccountCollection GetStorageAccounts() /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -86,7 +86,7 @@ public virtual async Task> GetStorageAccountAsy /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Extensions/MockableStorageSubscriptionResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Extensions/MockableStorageSubscriptionResource.cs index 004c408fb928..00954a02e56e 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Extensions/MockableStorageSubscriptionResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Extensions/MockableStorageSubscriptionResource.cs @@ -74,7 +74,7 @@ public virtual DeletedAccountCollection GetDeletedAccounts() /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -106,7 +106,7 @@ public virtual async Task> GetDeletedAccountAsy /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -138,7 +138,7 @@ public virtual Response GetDeletedAccount(AzureLocation /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// @@ -163,7 +163,7 @@ public virtual AsyncPageable GetSkusAsync(CancellationTok /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// @@ -188,7 +188,7 @@ public virtual Pageable GetSkus(CancellationToken cancell /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -230,7 +230,7 @@ public virtual async Task> CheckS /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -272,7 +272,7 @@ public virtual Response CheckStorageAccoun /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -302,7 +302,7 @@ public virtual AsyncPageable GetStorageAccountsAsync(Can /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -332,7 +332,7 @@ public virtual Pageable GetStorageAccounts(CancellationT /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual AsyncPageable GetDeletedAccountsAsync(Can /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -392,7 +392,7 @@ public virtual Pageable GetDeletedAccounts(CancellationT /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// @@ -418,7 +418,7 @@ public virtual AsyncPageable GetUsagesByLocationAsync(AzureLocatio /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Extensions/StorageExtensions.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Extensions/StorageExtensions.cs index 727fdd14ef86..2a7b3050b707 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Extensions/StorageExtensions.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Extensions/StorageExtensions.cs @@ -462,7 +462,7 @@ public static StorageAccountCollection GetStorageAccounts(this ResourceGroupReso /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -501,7 +501,7 @@ public static async Task> GetStorageAccountAsyn /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -557,7 +557,7 @@ public static DeletedAccountCollection GetDeletedAccounts(this SubscriptionResou /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -596,7 +596,7 @@ public static async Task> GetDeletedAccountAsyn /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -635,7 +635,7 @@ public static Response GetDeletedAccount(this Subscripti /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// @@ -667,7 +667,7 @@ public static AsyncPageable GetSkusAsync(this Subscriptio /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// @@ -699,7 +699,7 @@ public static Pageable GetSkus(this SubscriptionResource /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -735,7 +735,7 @@ public static async Task> CheckSt /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -771,7 +771,7 @@ public static Response CheckStorageAccount /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -807,7 +807,7 @@ public static AsyncPageable GetStorageAccountsAsync(this /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -843,7 +843,7 @@ public static Pageable GetStorageAccounts(this Subscript /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -879,7 +879,7 @@ public static AsyncPageable GetDeletedAccountsAsync(this /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -915,7 +915,7 @@ public static Pageable GetDeletedAccounts(this Subscript /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// @@ -948,7 +948,7 @@ public static AsyncPageable GetUsagesByLocationAsync(this Subscrip /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceData.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceData.Serialization.cs index e35fbb7037b4..350d9410d341 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceData.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceData.Serialization.cs @@ -301,16 +301,11 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("ProtocolSmbSetting", out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProtocolSettings), out propertyOverride); if (hasPropertyOverride) { builder.Append(" protocolSettings: "); - builder.AppendLine("{"); - builder.AppendLine(" protocolSettings: {"); - builder.Append(" smb: "); builder.AppendLine(propertyOverride); - builder.AppendLine(" }"); - builder.AppendLine(" }"); } else { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceData.cs index 3030a44685c8..991f1bd362d6 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceData.cs @@ -96,18 +96,7 @@ public IList CorsRules [WirePath("properties.shareDeleteRetentionPolicy")] public DeleteRetentionPolicy ShareDeleteRetentionPolicy { get; set; } /// Protocol settings for file service. - internal ProtocolSettings ProtocolSettings { get; set; } - /// Setting for SMB protocol. - [WirePath("properties.protocolSettings.smb")] - public SmbSetting ProtocolSmbSetting - { - get => ProtocolSettings is null ? default : ProtocolSettings.SmbSetting; - set - { - if (ProtocolSettings is null) - ProtocolSettings = new ProtocolSettings(); - ProtocolSettings.SmbSetting = value; - } - } + [WirePath("properties.protocolSettings")] + public ProtocolSettings ProtocolSettings { get; set; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceResource.cs index cea0ab9154dd..4fd7d46c8fb7 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceResource.cs @@ -114,7 +114,7 @@ public virtual FileShareCollection GetFileShares() /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -147,7 +147,7 @@ public virtual async Task> GetFileShareAsync(string /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response GetFileShare(string shareName, string /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -220,7 +220,7 @@ public virtual async Task> GetAsync(CancellationTo /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -260,7 +260,7 @@ public virtual Response Get(CancellationToken cancellationT /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -308,7 +308,7 @@ public virtual async Task> CreateOrUpdateAsync /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceUsageResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceUsageResource.cs index 3165cede6372..fae22e1cf328 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceUsageResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileServiceUsageResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareCollection.cs index 658c83228e7a..2037f2293c7b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateAsync(W /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -168,7 +168,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnti /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetAsync(string shareName /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -262,7 +262,7 @@ public virtual Response Get(string shareName, string expand = /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -295,7 +295,7 @@ public virtual AsyncPageable GetAllAsync(int? maxpagesize = n /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -328,7 +328,7 @@ public virtual Pageable GetAll(int? maxpagesize = null, strin /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -373,7 +373,7 @@ public virtual async Task> ExistsAsync(string shareName, string e /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -418,7 +418,7 @@ public virtual Response Exists(string shareName, string expand = null, str /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -465,7 +465,7 @@ public virtual async Task> GetIfExistsAsync( /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareResource.cs index 3eaf12462702..45ad359d77b1 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShareResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(string expand = /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -186,7 +186,7 @@ public virtual Response Get(string expand = null, string xMsS /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -232,7 +232,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, string /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -278,7 +278,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, string xMsSnapshot = nul /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual async Task> UpdateAsync(FileShareData /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual Response Update(FileShareData data, Cancellati /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -404,7 +404,7 @@ public virtual async Task RestoreAsync(DeletedShare deletedShare, Canc /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -446,7 +446,7 @@ public virtual Response Restore(DeletedShare deletedShare, CancellationToken can /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -486,7 +486,7 @@ public virtual async Task> LeaseAsync(LeaseShareCon /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ImmutabilityPolicyResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ImmutabilityPolicyResource.cs index 94f3060e29e0..cf95254325d1 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ImmutabilityPolicyResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ImmutabilityPolicyResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(ETag? i /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(ETag? ifMatch = null, Ca /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task> DeleteAsync( /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -273,7 +273,7 @@ public virtual ArmOperation Delete(WaitUntil waitUnt /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -371,7 +371,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -410,7 +410,7 @@ public virtual async Task> LockImmutability /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual Response LockImmutabilityPolicy(ETag /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -489,7 +489,7 @@ public virtual async Task> ExtendImmutabili /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ActiveDirectoryAccountType.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ActiveDirectoryAccountType.cs index 5ba9eadedd98..4f2aefde5057 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ActiveDirectoryAccountType.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ActiveDirectoryAccountType.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Storage.Models { - /// Specifies the Active Directory account type for Azure Storage. + /// Specifies the Active Directory account type for Azure Storage. If directoryServiceOptions is set to AD (AD DS authentication), this property is optional. If provided, samAccountName should also be provided. For directoryServiceOptions AADDS (Entra DS authentication) or AADKERB (Entra authentication), this property can be omitted. public readonly partial struct ActiveDirectoryAccountType : IEquatable { private readonly string _value; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/AzureResourceManagerStorageContext.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/AzureResourceManagerStorageContext.cs index 8bae91b2f32a..a90d5730912b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/AzureResourceManagerStorageContext.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/AzureResourceManagerStorageContext.cs @@ -43,6 +43,8 @@ namespace Azure.ResourceManager.Storage [ModelReaderWriterBuildable(typeof(DeletedAccountResource))] [ModelReaderWriterBuildable(typeof(DeletedShare))] [ModelReaderWriterBuildable(typeof(DeleteRetentionPolicy))] + [ModelReaderWriterBuildable(typeof(DualStackEndpointPreference))] + [ModelReaderWriterBuildable(typeof(EncryptionInTransit))] [ModelReaderWriterBuildable(typeof(EncryptionScopeData))] [ModelReaderWriterBuildable(typeof(EncryptionScopeKeyVaultProperties))] [ModelReaderWriterBuildable(typeof(EncryptionScopeListResult))] @@ -113,6 +115,7 @@ namespace Azure.ResourceManager.Storage [ModelReaderWriterBuildable(typeof(NetworkSecurityPerimeterConfigurationResource))] [ModelReaderWriterBuildable(typeof(NetworkSecurityPerimeterProvisioningIssue))] [ModelReaderWriterBuildable(typeof(NetworkSecurityPerimeterProvisioningIssueProperties))] + [ModelReaderWriterBuildable(typeof(NfsSetting))] [ModelReaderWriterBuildable(typeof(NspAccessRule))] [ModelReaderWriterBuildable(typeof(NspAccessRuleProperties))] [ModelReaderWriterBuildable(typeof(ObjectReplicationPolicies))] @@ -121,6 +124,7 @@ namespace Azure.ResourceManager.Storage [ModelReaderWriterBuildable(typeof(ObjectReplicationPolicyPropertiesMetrics))] [ModelReaderWriterBuildable(typeof(ObjectReplicationPolicyResource))] [ModelReaderWriterBuildable(typeof(ObjectReplicationPolicyRule))] + [ModelReaderWriterBuildable(typeof(Placement))] [ModelReaderWriterBuildable(typeof(ProtectedAppendWritesHistory))] [ModelReaderWriterBuildable(typeof(ProtocolSettings))] [ModelReaderWriterBuildable(typeof(QueueServiceData))] @@ -128,6 +132,8 @@ namespace Azure.ResourceManager.Storage [ModelReaderWriterBuildable(typeof(ResponseError))] [ModelReaderWriterBuildable(typeof(RestorePolicy))] [ModelReaderWriterBuildable(typeof(ServiceSasContent))] + [ModelReaderWriterBuildable(typeof(SkuInformationLocationInfoItem))] + [ModelReaderWriterBuildable(typeof(SmbOAuthSettings))] [ModelReaderWriterBuildable(typeof(SmbSetting))] [ModelReaderWriterBuildable(typeof(StorageAccountCreateOrUpdateContent))] [ModelReaderWriterBuildable(typeof(StorageAccountData))] @@ -138,6 +144,7 @@ namespace Azure.ResourceManager.Storage [ModelReaderWriterBuildable(typeof(StorageAccountGetKeysResult))] [ModelReaderWriterBuildable(typeof(StorageAccountInternetEndpoints))] [ModelReaderWriterBuildable(typeof(StorageAccountIPRule))] + [ModelReaderWriterBuildable(typeof(StorageAccountIPv6Endpoints))] [ModelReaderWriterBuildable(typeof(StorageAccountKey))] [ModelReaderWriterBuildable(typeof(StorageAccountKeyCreationTime))] [ModelReaderWriterBuildable(typeof(StorageAccountKeyPolicy))] diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DualStackEndpointPreference.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DualStackEndpointPreference.Serialization.cs new file mode 100644 index 000000000000..cf7812cc6c2e --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DualStackEndpointPreference.Serialization.cs @@ -0,0 +1,167 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Storage.Models +{ + internal partial class DualStackEndpointPreference : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(DualStackEndpointPreference)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(PublishIPv6Endpoint)) + { + writer.WritePropertyName("publishIpv6Endpoint"u8); + writer.WriteBooleanValue(PublishIPv6Endpoint.Value); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + DualStackEndpointPreference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(DualStackEndpointPreference)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeDualStackEndpointPreference(document.RootElement, options); + } + + internal static DualStackEndpointPreference DeserializeDualStackEndpointPreference(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + bool? publishIPv6Endpoint = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("publishIpv6Endpoint"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + publishIPv6Endpoint = property.Value.GetBoolean(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new DualStackEndpointPreference(publishIPv6Endpoint, serializedAdditionalRawData); + } + + private BinaryData SerializeBicep(ModelReaderWriterOptions options) + { + StringBuilder builder = new StringBuilder(); + BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; + IDictionary propertyOverrides = null; + bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); + bool hasPropertyOverride = false; + string propertyOverride = null; + + builder.AppendLine("{"); + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(PublishIPv6Endpoint), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" publishIpv6Endpoint: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(PublishIPv6Endpoint)) + { + builder.Append(" publishIpv6Endpoint: "); + var boolValue = PublishIPv6Endpoint.Value == true ? "true" : "false"; + builder.AppendLine($"{boolValue}"); + } + } + + builder.AppendLine("}"); + return BinaryData.FromString(builder.ToString()); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageContext.Default); + case "bicep": + return SerializeBicep(options); + default: + throw new FormatException($"The model {nameof(DualStackEndpointPreference)} does not support writing '{options.Format}' format."); + } + } + + DualStackEndpointPreference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeDualStackEndpointPreference(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(DualStackEndpointPreference)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DualStackEndpointPreference.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DualStackEndpointPreference.cs new file mode 100644 index 000000000000..52184b5d7ddc --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/DualStackEndpointPreference.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Storage.Models +{ + /// Dual-stack endpoint preference defines whether IPv6 endpoints are going to be published. + internal partial class DualStackEndpointPreference + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public DualStackEndpointPreference() + { + } + + /// Initializes a new instance of . + /// A boolean flag which indicates whether IPv6 storage endpoints are to be published. + /// Keeps track of any properties unknown to the library. + internal DualStackEndpointPreference(bool? publishIPv6Endpoint, IDictionary serializedAdditionalRawData) + { + PublishIPv6Endpoint = publishIPv6Endpoint; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// A boolean flag which indicates whether IPv6 storage endpoints are to be published. + [WirePath("publishIpv6Endpoint")] + public bool? PublishIPv6Endpoint { get; set; } + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionInTransit.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionInTransit.Serialization.cs new file mode 100644 index 000000000000..b2fb9bed4672 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionInTransit.Serialization.cs @@ -0,0 +1,167 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Storage.Models +{ + internal partial class EncryptionInTransit : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(EncryptionInTransit)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Required)) + { + writer.WritePropertyName("required"u8); + writer.WriteBooleanValue(Required.Value); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + EncryptionInTransit IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(EncryptionInTransit)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeEncryptionInTransit(document.RootElement, options); + } + + internal static EncryptionInTransit DeserializeEncryptionInTransit(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + bool? required = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("required"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + required = property.Value.GetBoolean(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new EncryptionInTransit(required, serializedAdditionalRawData); + } + + private BinaryData SerializeBicep(ModelReaderWriterOptions options) + { + StringBuilder builder = new StringBuilder(); + BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; + IDictionary propertyOverrides = null; + bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); + bool hasPropertyOverride = false; + string propertyOverride = null; + + builder.AppendLine("{"); + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Required), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" required: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(Required)) + { + builder.Append(" required: "); + var boolValue = Required.Value == true ? "true" : "false"; + builder.AppendLine($"{boolValue}"); + } + } + + builder.AppendLine("}"); + return BinaryData.FromString(builder.ToString()); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageContext.Default); + case "bicep": + return SerializeBicep(options); + default: + throw new FormatException($"The model {nameof(EncryptionInTransit)} does not support writing '{options.Format}' format."); + } + } + + EncryptionInTransit IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeEncryptionInTransit(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(EncryptionInTransit)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionInTransit.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionInTransit.cs new file mode 100644 index 000000000000..88fd8cded8ec --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/EncryptionInTransit.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Storage.Models +{ + /// Encryption in transit setting. + internal partial class EncryptionInTransit + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public EncryptionInTransit() + { + } + + /// Initializes a new instance of . + /// Indicates whether encryption in transit is required. + /// Keeps track of any properties unknown to the library. + internal EncryptionInTransit(bool? required, IDictionary serializedAdditionalRawData) + { + Required = required; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Indicates whether encryption in transit is required. + [WirePath("required")] + public bool? Required { get; set; } + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTrigger.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTrigger.Serialization.cs index c2dea2be2093..f9edead4b76c 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTrigger.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTrigger.Serialization.cs @@ -36,7 +36,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WritePropertyName("type"u8); - writer.WriteStringValue(TriggerType.ToSerialString()); + writer.WriteStringValue(TaskExecutionTriggerType.ToString()); writer.WritePropertyName("parameters"u8); writer.WriteObjectValue(Parameters, options); if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -76,7 +76,7 @@ internal static ExecutionTrigger DeserializeExecutionTrigger(JsonElement element { return null; } - ExecutionTriggerType type = default; + TaskExecutionTriggerType type = default; ExecutionTriggerParameters parameters = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -84,7 +84,7 @@ internal static ExecutionTrigger DeserializeExecutionTrigger(JsonElement element { if (property.NameEquals("type"u8)) { - type = property.Value.GetString().ToExecutionTriggerType(); + type = new TaskExecutionTriggerType(property.Value.GetString()); continue; } if (property.NameEquals("parameters"u8)) @@ -112,7 +112,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine("{"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(TriggerType), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(TaskExecutionTriggerType), out propertyOverride); if (hasPropertyOverride) { builder.Append(" type: "); @@ -121,7 +121,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) else { builder.Append(" type: "); - builder.AppendLine($"'{TriggerType.ToSerialString()}'"); + builder.AppendLine($"'{TaskExecutionTriggerType.ToString()}'"); } hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Parameters), out propertyOverride); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTrigger.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTrigger.cs index 6eec914a2685..426032b68991 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTrigger.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTrigger.cs @@ -46,24 +46,24 @@ public partial class ExecutionTrigger private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The trigger type of the storage task assignment execution. + /// The trigger type of the storage task assignment execution. /// The trigger parameters of the storage task assignment execution. /// is null. - public ExecutionTrigger(ExecutionTriggerType triggerType, ExecutionTriggerParameters parameters) + public ExecutionTrigger(TaskExecutionTriggerType taskExecutionTriggerType, ExecutionTriggerParameters parameters) { Argument.AssertNotNull(parameters, nameof(parameters)); - TriggerType = triggerType; + TaskExecutionTriggerType = taskExecutionTriggerType; Parameters = parameters; } /// Initializes a new instance of . - /// The trigger type of the storage task assignment execution. + /// The trigger type of the storage task assignment execution. /// The trigger parameters of the storage task assignment execution. /// Keeps track of any properties unknown to the library. - internal ExecutionTrigger(ExecutionTriggerType triggerType, ExecutionTriggerParameters parameters, IDictionary serializedAdditionalRawData) + internal ExecutionTrigger(TaskExecutionTriggerType taskExecutionTriggerType, ExecutionTriggerParameters parameters, IDictionary serializedAdditionalRawData) { - TriggerType = triggerType; + TaskExecutionTriggerType = taskExecutionTriggerType; Parameters = parameters; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -75,7 +75,7 @@ internal ExecutionTrigger() /// The trigger type of the storage task assignment execution. [WirePath("type")] - public ExecutionTriggerType TriggerType { get; set; } + public TaskExecutionTriggerType TaskExecutionTriggerType { get; set; } /// The trigger parameters of the storage task assignment execution. [WirePath("parameters")] public ExecutionTriggerParameters Parameters { get; set; } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTriggerUpdate.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTriggerUpdate.Serialization.cs index d39d077194ca..221da1af31d9 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTriggerUpdate.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTriggerUpdate.Serialization.cs @@ -34,10 +34,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ExecutionTriggerUpdate)} does not support writing '{format}' format."); } - if (Optional.IsDefined(TriggerType)) + if (Optional.IsDefined(TaskExecutionTriggerType)) { writer.WritePropertyName("type"u8); - writer.WriteStringValue(TriggerType.Value.ToSerialString()); + writer.WriteStringValue(TaskExecutionTriggerType.Value.ToString()); } if (Optional.IsDefined(Parameters)) { @@ -81,7 +81,7 @@ internal static ExecutionTriggerUpdate DeserializeExecutionTriggerUpdate(JsonEle { return null; } - ExecutionTriggerType? type = default; + TaskExecutionTriggerType? type = default; ExecutionTriggerParametersUpdate parameters = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -93,7 +93,7 @@ internal static ExecutionTriggerUpdate DeserializeExecutionTriggerUpdate(JsonEle { continue; } - type = property.Value.GetString().ToExecutionTriggerType(); + type = new TaskExecutionTriggerType(property.Value.GetString()); continue; } if (property.NameEquals("parameters"u8)) diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTriggerUpdate.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTriggerUpdate.cs index 7f1c0ed023bd..4235cf9f9d11 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTriggerUpdate.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ExecutionTriggerUpdate.cs @@ -51,19 +51,19 @@ public ExecutionTriggerUpdate() } /// Initializes a new instance of . - /// The trigger type of the storage task assignment execution. + /// The trigger type of the storage task assignment execution. /// The trigger parameters of the storage task assignment execution. /// Keeps track of any properties unknown to the library. - internal ExecutionTriggerUpdate(ExecutionTriggerType? triggerType, ExecutionTriggerParametersUpdate parameters, IDictionary serializedAdditionalRawData) + internal ExecutionTriggerUpdate(TaskExecutionTriggerType? taskExecutionTriggerType, ExecutionTriggerParametersUpdate parameters, IDictionary serializedAdditionalRawData) { - TriggerType = triggerType; + TaskExecutionTriggerType = taskExecutionTriggerType; Parameters = parameters; _serializedAdditionalRawData = serializedAdditionalRawData; } /// The trigger type of the storage task assignment execution. [WirePath("type")] - public ExecutionTriggerType? TriggerType { get; set; } + public TaskExecutionTriggerType? TaskExecutionTriggerType { get; set; } /// The trigger parameters of the storage task assignment execution. [WirePath("parameters")] public ExecutionTriggerParametersUpdate Parameters { get; set; } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FilesIdentityBasedAuthentication.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FilesIdentityBasedAuthentication.Serialization.cs index e001d7fe535e..02f363ab4c26 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FilesIdentityBasedAuthentication.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FilesIdentityBasedAuthentication.Serialization.cs @@ -47,6 +47,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("defaultSharePermission"u8); writer.WriteStringValue(DefaultSharePermission.Value.ToString()); } + if (Optional.IsDefined(SmbOAuthSettings)) + { + writer.WritePropertyName("smbOAuthSettings"u8); + writer.WriteObjectValue(SmbOAuthSettings, options); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -87,6 +92,7 @@ internal static FilesIdentityBasedAuthentication DeserializeFilesIdentityBasedAu DirectoryServiceOption directoryServiceOptions = default; StorageActiveDirectoryProperties activeDirectoryProperties = default; DefaultSharePermission? defaultSharePermission = default; + SmbOAuthSettings smbOAuthSettings = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -114,13 +120,22 @@ internal static FilesIdentityBasedAuthentication DeserializeFilesIdentityBasedAu defaultSharePermission = new DefaultSharePermission(property.Value.GetString()); continue; } + if (property.NameEquals("smbOAuthSettings"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + smbOAuthSettings = SmbOAuthSettings.DeserializeSmbOAuthSettings(property.Value, options); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new FilesIdentityBasedAuthentication(directoryServiceOptions, activeDirectoryProperties, defaultSharePermission, serializedAdditionalRawData); + return new FilesIdentityBasedAuthentication(directoryServiceOptions, activeDirectoryProperties, defaultSharePermission, smbOAuthSettings, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -176,6 +191,24 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("IsSmbOAuthEnabled", out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" smbOAuthSettings: "); + builder.AppendLine("{"); + builder.Append(" isSmbOAuthEnabled: "); + builder.AppendLine(propertyOverride); + builder.AppendLine(" }"); + } + else + { + if (Optional.IsDefined(SmbOAuthSettings)) + { + builder.Append(" smbOAuthSettings: "); + BicepSerializationHelpers.AppendChildObject(builder, SmbOAuthSettings, options, 2, false, " smbOAuthSettings: "); + } + } + builder.AppendLine("}"); return BinaryData.FromString(builder.ToString()); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FilesIdentityBasedAuthentication.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FilesIdentityBasedAuthentication.cs index ed5d87c5812e..e98375f73312 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FilesIdentityBasedAuthentication.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/FilesIdentityBasedAuthentication.cs @@ -54,14 +54,16 @@ public FilesIdentityBasedAuthentication(DirectoryServiceOption directoryServiceO /// Initializes a new instance of . /// Indicates the directory service used. Note that this enum may be extended in the future. - /// Required if directoryServiceOptions are AD, optional if they are AADKERB. + /// Additional information about the directory service. Required if directoryServiceOptions is AD (AD DS authentication). Optional for directoryServiceOptions AADDS (Entra DS authentication) and AADKERB (Entra authentication). /// Default share permission for users using Kerberos authentication if RBAC role is not assigned. + /// Required for Managed Identities access using OAuth over SMB. /// Keeps track of any properties unknown to the library. - internal FilesIdentityBasedAuthentication(DirectoryServiceOption directoryServiceOptions, StorageActiveDirectoryProperties activeDirectoryProperties, DefaultSharePermission? defaultSharePermission, IDictionary serializedAdditionalRawData) + internal FilesIdentityBasedAuthentication(DirectoryServiceOption directoryServiceOptions, StorageActiveDirectoryProperties activeDirectoryProperties, DefaultSharePermission? defaultSharePermission, SmbOAuthSettings smbOAuthSettings, IDictionary serializedAdditionalRawData) { DirectoryServiceOptions = directoryServiceOptions; ActiveDirectoryProperties = activeDirectoryProperties; DefaultSharePermission = defaultSharePermission; + SmbOAuthSettings = smbOAuthSettings; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -73,11 +75,25 @@ internal FilesIdentityBasedAuthentication() /// Indicates the directory service used. Note that this enum may be extended in the future. [WirePath("directoryServiceOptions")] public DirectoryServiceOption DirectoryServiceOptions { get; set; } - /// Required if directoryServiceOptions are AD, optional if they are AADKERB. + /// Additional information about the directory service. Required if directoryServiceOptions is AD (AD DS authentication). Optional for directoryServiceOptions AADDS (Entra DS authentication) and AADKERB (Entra authentication). [WirePath("activeDirectoryProperties")] public StorageActiveDirectoryProperties ActiveDirectoryProperties { get; set; } /// Default share permission for users using Kerberos authentication if RBAC role is not assigned. [WirePath("defaultSharePermission")] public DefaultSharePermission? DefaultSharePermission { get; set; } + /// Required for Managed Identities access using OAuth over SMB. + internal SmbOAuthSettings SmbOAuthSettings { get; set; } + /// Specifies if managed identities can access SMB shares using OAuth. The default interpretation is false for this property. + [WirePath("smbOAuthSettings.isSmbOAuthEnabled")] + public bool? IsSmbOAuthEnabled + { + get => SmbOAuthSettings is null ? default : SmbOAuthSettings.IsSmbOAuthEnabled; + set + { + if (SmbOAuthSettings is null) + SmbOAuthSettings = new SmbOAuthSettings(); + SmbOAuthSettings.IsSmbOAuthEnabled = value; + } + } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/NfsSetting.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/NfsSetting.Serialization.cs new file mode 100644 index 000000000000..9a29009b4be8 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/NfsSetting.Serialization.cs @@ -0,0 +1,169 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Storage.Models +{ + internal partial class NfsSetting : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(NfsSetting)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(EncryptionInTransit)) + { + writer.WritePropertyName("encryptionInTransit"u8); + writer.WriteObjectValue(EncryptionInTransit, options); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + NfsSetting IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(NfsSetting)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeNfsSetting(document.RootElement, options); + } + + internal static NfsSetting DeserializeNfsSetting(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + EncryptionInTransit encryptionInTransit = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("encryptionInTransit"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + encryptionInTransit = EncryptionInTransit.DeserializeEncryptionInTransit(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new NfsSetting(encryptionInTransit, serializedAdditionalRawData); + } + + private BinaryData SerializeBicep(ModelReaderWriterOptions options) + { + StringBuilder builder = new StringBuilder(); + BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; + IDictionary propertyOverrides = null; + bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); + bool hasPropertyOverride = false; + string propertyOverride = null; + + builder.AppendLine("{"); + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("Required", out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" encryptionInTransit: "); + builder.AppendLine("{"); + builder.Append(" required: "); + builder.AppendLine(propertyOverride); + builder.AppendLine(" }"); + } + else + { + if (Optional.IsDefined(EncryptionInTransit)) + { + builder.Append(" encryptionInTransit: "); + BicepSerializationHelpers.AppendChildObject(builder, EncryptionInTransit, options, 2, false, " encryptionInTransit: "); + } + } + + builder.AppendLine("}"); + return BinaryData.FromString(builder.ToString()); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageContext.Default); + case "bicep": + return SerializeBicep(options); + default: + throw new FormatException($"The model {nameof(NfsSetting)} does not support writing '{options.Format}' format."); + } + } + + NfsSetting IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeNfsSetting(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(NfsSetting)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/NfsSetting.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/NfsSetting.cs new file mode 100644 index 000000000000..c33e80747baa --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/NfsSetting.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Storage.Models +{ + /// Setting for NFS protocol. + internal partial class NfsSetting + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public NfsSetting() + { + } + + /// Initializes a new instance of . + /// Encryption in transit setting. + /// Keeps track of any properties unknown to the library. + internal NfsSetting(EncryptionInTransit encryptionInTransit, IDictionary serializedAdditionalRawData) + { + EncryptionInTransit = encryptionInTransit; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Encryption in transit setting. + internal EncryptionInTransit EncryptionInTransit { get; set; } + /// Indicates whether encryption in transit is required. + [WirePath("encryptionInTransit.required")] + public bool? Required + { + get => EncryptionInTransit is null ? default : EncryptionInTransit.Required; + set + { + if (EncryptionInTransit is null) + EncryptionInTransit = new EncryptionInTransit(); + EncryptionInTransit.Required = value; + } + } + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/Placement.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/Placement.Serialization.cs new file mode 100644 index 000000000000..b6310644de5a --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/Placement.Serialization.cs @@ -0,0 +1,166 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Storage.Models +{ + internal partial class Placement : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(Placement)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(ZonePlacementPolicy)) + { + writer.WritePropertyName("zonePlacementPolicy"u8); + writer.WriteStringValue(ZonePlacementPolicy.Value.ToString()); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + Placement IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(Placement)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePlacement(document.RootElement, options); + } + + internal static Placement DeserializePlacement(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ZonePlacementPolicy? zonePlacementPolicy = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("zonePlacementPolicy"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + zonePlacementPolicy = new ZonePlacementPolicy(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new Placement(zonePlacementPolicy, serializedAdditionalRawData); + } + + private BinaryData SerializeBicep(ModelReaderWriterOptions options) + { + StringBuilder builder = new StringBuilder(); + BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; + IDictionary propertyOverrides = null; + bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); + bool hasPropertyOverride = false; + string propertyOverride = null; + + builder.AppendLine("{"); + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ZonePlacementPolicy), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" zonePlacementPolicy: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(ZonePlacementPolicy)) + { + builder.Append(" zonePlacementPolicy: "); + builder.AppendLine($"'{ZonePlacementPolicy.Value.ToString()}'"); + } + } + + builder.AppendLine("}"); + return BinaryData.FromString(builder.ToString()); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageContext.Default); + case "bicep": + return SerializeBicep(options); + default: + throw new FormatException($"The model {nameof(Placement)} does not support writing '{options.Format}' format."); + } + } + + Placement IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializePlacement(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(Placement)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/Placement.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/Placement.cs new file mode 100644 index 000000000000..596765d82363 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/Placement.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Storage.Models +{ + /// The complex type of the zonal placement details. + internal partial class Placement + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public Placement() + { + } + + /// Initializes a new instance of . + /// The availability zone pinning policy for the storage account. + /// Keeps track of any properties unknown to the library. + internal Placement(ZonePlacementPolicy? zonePlacementPolicy, IDictionary serializedAdditionalRawData) + { + ZonePlacementPolicy = zonePlacementPolicy; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The availability zone pinning policy for the storage account. + [WirePath("zonePlacementPolicy")] + public ZonePlacementPolicy? ZonePlacementPolicy { get; set; } + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ProtocolSettings.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ProtocolSettings.Serialization.cs index 50028ff3f5de..b182eb643dc5 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ProtocolSettings.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ProtocolSettings.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Storage.Models { - internal partial class ProtocolSettings : IUtf8JsonSerializable, IJsonModel + public partial class ProtocolSettings : IUtf8JsonSerializable, IJsonModel { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); @@ -40,6 +40,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("smb"u8); writer.WriteObjectValue(SmbSetting, options); } + if (Optional.IsDefined(Nfs)) + { + writer.WritePropertyName("nfs"u8); + writer.WriteObjectValue(Nfs, options); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -78,6 +83,7 @@ internal static ProtocolSettings DeserializeProtocolSettings(JsonElement element return null; } SmbSetting smb = default; + NfsSetting nfs = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -91,13 +97,22 @@ internal static ProtocolSettings DeserializeProtocolSettings(JsonElement element smb = SmbSetting.DeserializeSmbSetting(property.Value, options); continue; } + if (property.NameEquals("nfs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nfs = NfsSetting.DeserializeNfsSetting(property.Value, options); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new ProtocolSettings(smb, serializedAdditionalRawData); + return new ProtocolSettings(smb, nfs, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -126,6 +141,26 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("Required", out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" nfs: "); + builder.AppendLine("{"); + builder.AppendLine(" encryptionInTransit: {"); + builder.Append(" required: "); + builder.AppendLine(propertyOverride); + builder.AppendLine(" }"); + builder.AppendLine(" }"); + } + else + { + if (Optional.IsDefined(Nfs)) + { + builder.Append(" nfs: "); + BicepSerializationHelpers.AppendChildObject(builder, Nfs, options, 2, false, " nfs: "); + } + } + builder.AppendLine("}"); return BinaryData.FromString(builder.ToString()); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ProtocolSettings.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ProtocolSettings.cs index 187eeac54cd7..527943f4f989 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ProtocolSettings.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ProtocolSettings.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Storage.Models { /// Protocol settings for file service. - internal partial class ProtocolSettings + public partial class ProtocolSettings { /// /// Keeps track of any properties unknown to the library. @@ -52,15 +52,31 @@ public ProtocolSettings() /// Initializes a new instance of . /// Setting for SMB protocol. + /// Setting for NFS protocol. /// Keeps track of any properties unknown to the library. - internal ProtocolSettings(SmbSetting smbSetting, IDictionary serializedAdditionalRawData) + internal ProtocolSettings(SmbSetting smbSetting, NfsSetting nfs, IDictionary serializedAdditionalRawData) { SmbSetting = smbSetting; + Nfs = nfs; _serializedAdditionalRawData = serializedAdditionalRawData; } /// Setting for SMB protocol. [WirePath("smb")] public SmbSetting SmbSetting { get; set; } + /// Setting for NFS protocol. + internal NfsSetting Nfs { get; set; } + /// Indicates whether encryption in transit is required. + [WirePath("nfs.encryptionInTransit.required")] + public bool? Required + { + get => Nfs is null ? default : Nfs.Required; + set + { + if (Nfs is null) + Nfs = new NfsSetting(); + Nfs.Required = value; + } + } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SkuInformationLocationInfoItem.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SkuInformationLocationInfoItem.Serialization.cs new file mode 100644 index 000000000000..97936e2d7b4d --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SkuInformationLocationInfoItem.Serialization.cs @@ -0,0 +1,228 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Storage.Models +{ + public partial class SkuInformationLocationInfoItem : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SkuInformationLocationInfoItem)} does not support writing '{format}' format."); + } + + if (options.Format != "W" && Optional.IsDefined(Location)) + { + writer.WritePropertyName("location"u8); + writer.WriteStringValue(Location.Value); + } + if (options.Format != "W" && Optional.IsCollectionDefined(Zones)) + { + writer.WritePropertyName("zones"u8); + writer.WriteStartArray(); + foreach (var item in Zones) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + SkuInformationLocationInfoItem IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SkuInformationLocationInfoItem)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSkuInformationLocationInfoItem(document.RootElement, options); + } + + internal static SkuInformationLocationInfoItem DeserializeSkuInformationLocationInfoItem(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + AzureLocation? location = default; + IReadOnlyList zones = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("location"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("zones"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + zones = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SkuInformationLocationInfoItem(location, zones ?? new ChangeTrackingList(), serializedAdditionalRawData); + } + + private BinaryData SerializeBicep(ModelReaderWriterOptions options) + { + StringBuilder builder = new StringBuilder(); + BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; + IDictionary propertyOverrides = null; + bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); + bool hasPropertyOverride = false; + string propertyOverride = null; + + builder.AppendLine("{"); + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Location), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" location: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(Location)) + { + builder.Append(" location: "); + builder.AppendLine($"'{Location.Value.ToString()}'"); + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Zones), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" zones: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsCollectionDefined(Zones)) + { + if (Zones.Any()) + { + builder.Append(" zones: "); + builder.AppendLine("["); + foreach (var item in Zones) + { + if (item == null) + { + builder.Append("null"); + continue; + } + if (item.Contains(Environment.NewLine)) + { + builder.AppendLine(" '''"); + builder.AppendLine($"{item}'''"); + } + else + { + builder.AppendLine($" '{item}'"); + } + } + builder.AppendLine(" ]"); + } + } + } + + builder.AppendLine("}"); + return BinaryData.FromString(builder.ToString()); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageContext.Default); + case "bicep": + return SerializeBicep(options); + default: + throw new FormatException($"The model {nameof(SkuInformationLocationInfoItem)} does not support writing '{options.Format}' format."); + } + } + + SkuInformationLocationInfoItem IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeSkuInformationLocationInfoItem(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SkuInformationLocationInfoItem)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SkuInformationLocationInfoItem.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SkuInformationLocationInfoItem.cs new file mode 100644 index 000000000000..1d75e70bd8f1 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SkuInformationLocationInfoItem.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Storage.Models +{ + /// The SkuInformationLocationInfoItem. + public partial class SkuInformationLocationInfoItem + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal SkuInformationLocationInfoItem() + { + Zones = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Describes the location for the product where storage account resource can be created. + /// Describes the available zones for the product where storage account resource can be created. + /// Keeps track of any properties unknown to the library. + internal SkuInformationLocationInfoItem(AzureLocation? location, IReadOnlyList zones, IDictionary serializedAdditionalRawData) + { + Location = location; + Zones = zones; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Describes the location for the product where storage account resource can be created. + [WirePath("location")] + public AzureLocation? Location { get; } + /// Describes the available zones for the product where storage account resource can be created. + [WirePath("zones")] + public IReadOnlyList Zones { get; } + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbOAuthSettings.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbOAuthSettings.Serialization.cs new file mode 100644 index 000000000000..0a9d7c797421 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbOAuthSettings.Serialization.cs @@ -0,0 +1,167 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Storage.Models +{ + internal partial class SmbOAuthSettings : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SmbOAuthSettings)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(IsSmbOAuthEnabled)) + { + writer.WritePropertyName("isSmbOAuthEnabled"u8); + writer.WriteBooleanValue(IsSmbOAuthEnabled.Value); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + SmbOAuthSettings IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SmbOAuthSettings)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSmbOAuthSettings(document.RootElement, options); + } + + internal static SmbOAuthSettings DeserializeSmbOAuthSettings(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + bool? isSmbOAuthEnabled = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("isSmbOAuthEnabled"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isSmbOAuthEnabled = property.Value.GetBoolean(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SmbOAuthSettings(isSmbOAuthEnabled, serializedAdditionalRawData); + } + + private BinaryData SerializeBicep(ModelReaderWriterOptions options) + { + StringBuilder builder = new StringBuilder(); + BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; + IDictionary propertyOverrides = null; + bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); + bool hasPropertyOverride = false; + string propertyOverride = null; + + builder.AppendLine("{"); + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IsSmbOAuthEnabled), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" isSmbOAuthEnabled: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(IsSmbOAuthEnabled)) + { + builder.Append(" isSmbOAuthEnabled: "); + var boolValue = IsSmbOAuthEnabled.Value == true ? "true" : "false"; + builder.AppendLine($"{boolValue}"); + } + } + + builder.AppendLine("}"); + return BinaryData.FromString(builder.ToString()); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageContext.Default); + case "bicep": + return SerializeBicep(options); + default: + throw new FormatException($"The model {nameof(SmbOAuthSettings)} does not support writing '{options.Format}' format."); + } + } + + SmbOAuthSettings IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeSmbOAuthSettings(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SmbOAuthSettings)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbOAuthSettings.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbOAuthSettings.cs new file mode 100644 index 000000000000..6ba2fc1d2539 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbOAuthSettings.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Storage.Models +{ + /// Setting property for Managed Identity access over SMB using OAuth. + internal partial class SmbOAuthSettings + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public SmbOAuthSettings() + { + } + + /// Initializes a new instance of . + /// Specifies if managed identities can access SMB shares using OAuth. The default interpretation is false for this property. + /// Keeps track of any properties unknown to the library. + internal SmbOAuthSettings(bool? isSmbOAuthEnabled, IDictionary serializedAdditionalRawData) + { + IsSmbOAuthEnabled = isSmbOAuthEnabled; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Specifies if managed identities can access SMB shares using OAuth. The default interpretation is false for this property. + [WirePath("isSmbOAuthEnabled")] + public bool? IsSmbOAuthEnabled { get; set; } + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbSetting.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbSetting.Serialization.cs index 8161b2c8298a..e84e96f6c4f7 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbSetting.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbSetting.Serialization.cs @@ -60,6 +60,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("channelEncryption"u8); writer.WriteStringValue(ChannelEncryption); } + if (Optional.IsDefined(EncryptionInTransit)) + { + writer.WritePropertyName("encryptionInTransit"u8); + writer.WriteObjectValue(EncryptionInTransit, options); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -102,6 +107,7 @@ internal static SmbSetting DeserializeSmbSetting(JsonElement element, ModelReade string authenticationMethods = default; string kerberosTicketEncryption = default; string channelEncryption = default; + EncryptionInTransit encryptionInTransit = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -135,6 +141,15 @@ internal static SmbSetting DeserializeSmbSetting(JsonElement element, ModelReade channelEncryption = property.Value.GetString(); continue; } + if (property.NameEquals("encryptionInTransit"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + encryptionInTransit = EncryptionInTransit.DeserializeEncryptionInTransit(property.Value, options); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -147,6 +162,7 @@ internal static SmbSetting DeserializeSmbSetting(JsonElement element, ModelReade authenticationMethods, kerberosTicketEncryption, channelEncryption, + encryptionInTransit, serializedAdditionalRawData); } @@ -271,6 +287,24 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("Required", out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" encryptionInTransit: "); + builder.AppendLine("{"); + builder.Append(" required: "); + builder.AppendLine(propertyOverride); + builder.AppendLine(" }"); + } + else + { + if (Optional.IsDefined(EncryptionInTransit)) + { + builder.Append(" encryptionInTransit: "); + BicepSerializationHelpers.AppendChildObject(builder, EncryptionInTransit, options, 2, false, " encryptionInTransit: "); + } + } + builder.AppendLine("}"); return BinaryData.FromString(builder.ToString()); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbSetting.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbSetting.cs index 9c4b16175b1e..4b8cab983cc4 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbSetting.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/SmbSetting.cs @@ -56,14 +56,16 @@ public SmbSetting() /// SMB authentication methods supported by server. Valid values are NTLMv2, Kerberos. Should be passed as a string with delimiter ';'. /// Kerberos ticket encryption supported by server. Valid values are RC4-HMAC, AES-256. Should be passed as a string with delimiter ';'. /// SMB channel encryption supported by server. Valid values are AES-128-CCM, AES-128-GCM, AES-256-GCM. Should be passed as a string with delimiter ';'. + /// Encryption in transit setting. /// Keeps track of any properties unknown to the library. - internal SmbSetting(Multichannel multichannel, string versions, string authenticationMethods, string kerberosTicketEncryption, string channelEncryption, IDictionary serializedAdditionalRawData) + internal SmbSetting(Multichannel multichannel, string versions, string authenticationMethods, string kerberosTicketEncryption, string channelEncryption, EncryptionInTransit encryptionInTransit, IDictionary serializedAdditionalRawData) { Multichannel = multichannel; Versions = versions; AuthenticationMethods = authenticationMethods; KerberosTicketEncryption = kerberosTicketEncryption; ChannelEncryption = channelEncryption; + EncryptionInTransit = encryptionInTransit; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -94,5 +96,19 @@ public bool? IsMultiChannelEnabled /// SMB channel encryption supported by server. Valid values are AES-128-CCM, AES-128-GCM, AES-256-GCM. Should be passed as a string with delimiter ';'. [WirePath("channelEncryption")] public string ChannelEncryption { get; set; } + /// Encryption in transit setting. + internal EncryptionInTransit EncryptionInTransit { get; set; } + /// Indicates whether encryption in transit is required. + [WirePath("encryptionInTransit.required")] + public bool? Required + { + get => EncryptionInTransit is null ? default : EncryptionInTransit.Required; + set + { + if (EncryptionInTransit is null) + EncryptionInTransit = new EncryptionInTransit(); + EncryptionInTransit.Required = value; + } + } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountCreateOrUpdateContent.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountCreateOrUpdateContent.Serialization.cs index fdd1df763991..3224fb03e2ce 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountCreateOrUpdateContent.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountCreateOrUpdateContent.Serialization.cs @@ -48,6 +48,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("extendedLocation"u8); ((IJsonModel)ExtendedLocation).Write(writer, options); } + if (Optional.IsCollectionDefined(Zones)) + { + writer.WritePropertyName("zones"u8); + writer.WriteStartArray(); + foreach (var item in Zones) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Placement)) + { + writer.WritePropertyName("placement"u8); + writer.WriteObjectValue(Placement, options); + } if (Optional.IsCollectionDefined(Tags)) { writer.WritePropertyName("tags"u8); @@ -146,6 +161,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("routingPreference"u8); writer.WriteObjectValue(RoutingPreference, options); } + if (Optional.IsDefined(DualStackEndpointPreference)) + { + writer.WritePropertyName("dualStackEndpointPreference"u8); + writer.WriteObjectValue(DualStackEndpointPreference, options); + } if (Optional.IsDefined(AllowBlobPublicAccess)) { writer.WritePropertyName("allowBlobPublicAccess"u8); @@ -228,6 +248,8 @@ internal static StorageAccountCreateOrUpdateContent DeserializeStorageAccountCre StorageKind kind = default; AzureLocation location = default; ExtendedLocation extendedLocation = default; + IList zones = default; + Placement placement = default; IDictionary tags = default; ManagedServiceIdentity identity = default; AllowedCopyScope? allowedCopyScope = default; @@ -246,6 +268,7 @@ internal static StorageAccountCreateOrUpdateContent DeserializeStorageAccountCre bool? isHnsEnabled = default; LargeFileSharesState? largeFileSharesState = default; StorageRoutingPreference routingPreference = default; + DualStackEndpointPreference dualStackEndpointPreference = default; bool? allowBlobPublicAccess = default; StorageMinimumTlsVersion? minimumTlsVersion = default; bool? allowSharedKeyAccess = default; @@ -282,6 +305,29 @@ internal static StorageAccountCreateOrUpdateContent DeserializeStorageAccountCre extendedLocation = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), options, AzureResourceManagerStorageContext.Default); continue; } + if (property.NameEquals("zones"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + zones = array; + continue; + } + if (property.NameEquals("placement"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + placement = Placement.DeserializePlacement(property.Value, options); + continue; + } if (property.NameEquals("tags"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -458,6 +504,15 @@ internal static StorageAccountCreateOrUpdateContent DeserializeStorageAccountCre routingPreference = StorageRoutingPreference.DeserializeStorageRoutingPreference(property0.Value, options); continue; } + if (property0.NameEquals("dualStackEndpointPreference"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + dualStackEndpointPreference = DualStackEndpointPreference.DeserializeDualStackEndpointPreference(property0.Value, options); + continue; + } if (property0.NameEquals("allowBlobPublicAccess"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -544,6 +599,8 @@ internal static StorageAccountCreateOrUpdateContent DeserializeStorageAccountCre kind, location, extendedLocation, + zones ?? new ChangeTrackingList(), + placement, tags ?? new ChangeTrackingDictionary(), identity, allowedCopyScope, @@ -562,6 +619,7 @@ internal static StorageAccountCreateOrUpdateContent DeserializeStorageAccountCre isHnsEnabled, largeFileSharesState, routingPreference, + dualStackEndpointPreference, allowBlobPublicAccess, minimumTlsVersion, allowSharedKeyAccess, diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountCreateOrUpdateContent.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountCreateOrUpdateContent.cs index 52a1a086e33d..2dc6bc0dda13 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountCreateOrUpdateContent.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountCreateOrUpdateContent.cs @@ -60,6 +60,7 @@ public StorageAccountCreateOrUpdateContent(StorageSku sku, StorageKind kind, Azu Sku = sku; Kind = kind; Location = location; + Zones = new ChangeTrackingList(); Tags = new ChangeTrackingDictionary(); } @@ -68,6 +69,8 @@ public StorageAccountCreateOrUpdateContent(StorageSku sku, StorageKind kind, Azu /// Required. Indicates the type of storage account. /// Required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. /// Optional. Set the extended location of the resource. If not set, the storage account will be created in Azure main region. Otherwise it will be created in the specified extended location. + /// Optional. Gets or sets the pinned logical availability zone for the storage account. + /// Optional. Gets or sets the zonal placement details for the storage account. /// Gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. /// The identity of the resource. /// Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. @@ -86,6 +89,7 @@ public StorageAccountCreateOrUpdateContent(StorageSku sku, StorageKind kind, Azu /// Account HierarchicalNamespace enabled if sets to true. /// Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. /// Maintains information about the network routing choice opted by the user for data transfer. + /// Maintains information about the Internet protocol opted by the user. /// Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. /// Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. /// Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. @@ -95,12 +99,14 @@ public StorageAccountCreateOrUpdateContent(StorageSku sku, StorageKind kind, Azu /// The property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the new containers in the account by default. /// Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. /// Keeps track of any properties unknown to the library. - internal StorageAccountCreateOrUpdateContent(StorageSku sku, StorageKind kind, AzureLocation location, ExtendedLocation extendedLocation, IDictionary tags, ManagedServiceIdentity identity, AllowedCopyScope? allowedCopyScope, StoragePublicNetworkAccess? publicNetworkAccess, StorageAccountSasPolicy sasPolicy, StorageAccountKeyPolicy keyPolicy, StorageCustomDomain customDomain, StorageAccountEncryption encryption, StorageAccountNetworkRuleSet networkRuleSet, StorageAccountAccessTier? accessTier, FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isExtendedGroupEnabled, bool? isHnsEnabled, LargeFileSharesState? largeFileSharesState, StorageRoutingPreference routingPreference, bool? allowBlobPublicAccess, StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, ImmutableStorageAccount immutableStorageWithVersioning, StorageDnsEndpointType? dnsEndpointType, IDictionary serializedAdditionalRawData) + internal StorageAccountCreateOrUpdateContent(StorageSku sku, StorageKind kind, AzureLocation location, ExtendedLocation extendedLocation, IList zones, Placement placement, IDictionary tags, ManagedServiceIdentity identity, AllowedCopyScope? allowedCopyScope, StoragePublicNetworkAccess? publicNetworkAccess, StorageAccountSasPolicy sasPolicy, StorageAccountKeyPolicy keyPolicy, StorageCustomDomain customDomain, StorageAccountEncryption encryption, StorageAccountNetworkRuleSet networkRuleSet, StorageAccountAccessTier? accessTier, FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isExtendedGroupEnabled, bool? isHnsEnabled, LargeFileSharesState? largeFileSharesState, StorageRoutingPreference routingPreference, DualStackEndpointPreference dualStackEndpointPreference, bool? allowBlobPublicAccess, StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, ImmutableStorageAccount immutableStorageWithVersioning, StorageDnsEndpointType? dnsEndpointType, IDictionary serializedAdditionalRawData) { Sku = sku; Kind = kind; Location = location; ExtendedLocation = extendedLocation; + Zones = zones; + Placement = placement; Tags = tags; Identity = identity; AllowedCopyScope = allowedCopyScope; @@ -119,6 +125,7 @@ internal StorageAccountCreateOrUpdateContent(StorageSku sku, StorageKind kind, A IsHnsEnabled = isHnsEnabled; LargeFileSharesState = largeFileSharesState; RoutingPreference = routingPreference; + DualStackEndpointPreference = dualStackEndpointPreference; AllowBlobPublicAccess = allowBlobPublicAccess; MinimumTlsVersion = minimumTlsVersion; AllowSharedKeyAccess = allowSharedKeyAccess; @@ -147,6 +154,24 @@ internal StorageAccountCreateOrUpdateContent() /// Optional. Set the extended location of the resource. If not set, the storage account will be created in Azure main region. Otherwise it will be created in the specified extended location. [WirePath("extendedLocation")] public ExtendedLocation ExtendedLocation { get; set; } + /// Optional. Gets or sets the pinned logical availability zone for the storage account. + [WirePath("zones")] + public IList Zones { get; } + /// Optional. Gets or sets the zonal placement details for the storage account. + internal Placement Placement { get; set; } + /// The availability zone pinning policy for the storage account. + [WirePath("placement.zonePlacementPolicy")] + public ZonePlacementPolicy? ZonePlacementPolicy + { + get => Placement is null ? default : Placement.ZonePlacementPolicy; + set + { + if (Placement is null) + Placement = new Placement(); + Placement.ZonePlacementPolicy = value; + } + } + /// Gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. [WirePath("tags")] public IDictionary Tags { get; } @@ -211,6 +236,21 @@ public int? KeyExpirationPeriodInDays /// Maintains information about the network routing choice opted by the user for data transfer. [WirePath("properties.routingPreference")] public StorageRoutingPreference RoutingPreference { get; set; } + /// Maintains information about the Internet protocol opted by the user. + internal DualStackEndpointPreference DualStackEndpointPreference { get; set; } + /// A boolean flag which indicates whether IPv6 storage endpoints are to be published. + [WirePath("properties.dualStackEndpointPreference.publishIpv6Endpoint")] + public bool? PublishIPv6Endpoint + { + get => DualStackEndpointPreference is null ? default : DualStackEndpointPreference.PublishIPv6Endpoint; + set + { + if (DualStackEndpointPreference is null) + DualStackEndpointPreference = new DualStackEndpointPreference(); + DualStackEndpointPreference.PublishIPv6Endpoint = value; + } + } + /// Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. [WirePath("properties.allowBlobPublicAccess")] public bool? AllowBlobPublicAccess { get; set; } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEndpoints.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEndpoints.Serialization.cs index d71fdb71f4cc..0677d8a4fd2b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEndpoints.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEndpoints.Serialization.cs @@ -75,6 +75,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("internetEndpoints"u8); writer.WriteObjectValue(InternetEndpoints, options); } + if (Optional.IsDefined(IPv6Endpoints)) + { + writer.WritePropertyName("ipv6Endpoints"u8); + writer.WriteObjectValue(IPv6Endpoints, options); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -120,6 +125,7 @@ internal static StorageAccountEndpoints DeserializeStorageAccountEndpoints(JsonE Uri dfs = default; StorageAccountMicrosoftEndpoints microsoftEndpoints = default; StorageAccountInternetEndpoints internetEndpoints = default; + StorageAccountIPv6Endpoints ipv6Endpoints = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -196,6 +202,15 @@ internal static StorageAccountEndpoints DeserializeStorageAccountEndpoints(JsonE internetEndpoints = StorageAccountInternetEndpoints.DeserializeStorageAccountInternetEndpoints(property.Value, options); continue; } + if (property.NameEquals("ipv6Endpoints"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + ipv6Endpoints = StorageAccountIPv6Endpoints.DeserializeStorageAccountIPv6Endpoints(property.Value, options); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -211,6 +226,7 @@ internal static StorageAccountEndpoints DeserializeStorageAccountEndpoints(JsonE dfs, microsoftEndpoints, internetEndpoints, + ipv6Endpoints, serializedAdditionalRawData); } @@ -345,6 +361,21 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IPv6Endpoints), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" ipv6Endpoints: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(IPv6Endpoints)) + { + builder.Append(" ipv6Endpoints: "); + BicepSerializationHelpers.AppendChildObject(builder, IPv6Endpoints, options, 2, false, " ipv6Endpoints: "); + } + } + builder.AppendLine("}"); return BinaryData.FromString(builder.ToString()); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEndpoints.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEndpoints.cs index 3b0702538935..3940d9f95fe4 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEndpoints.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountEndpoints.cs @@ -59,8 +59,9 @@ internal StorageAccountEndpoints() /// Gets the dfs endpoint. /// Gets the microsoft routing storage endpoints. /// Gets the internet routing storage endpoints. + /// Gets the IPv6 storage endpoints. /// Keeps track of any properties unknown to the library. - internal StorageAccountEndpoints(Uri blobUri, Uri queueUri, Uri tableUri, Uri fileUri, Uri webUri, Uri dfsUri, StorageAccountMicrosoftEndpoints microsoftEndpoints, StorageAccountInternetEndpoints internetEndpoints, IDictionary serializedAdditionalRawData) + internal StorageAccountEndpoints(Uri blobUri, Uri queueUri, Uri tableUri, Uri fileUri, Uri webUri, Uri dfsUri, StorageAccountMicrosoftEndpoints microsoftEndpoints, StorageAccountInternetEndpoints internetEndpoints, StorageAccountIPv6Endpoints ipv6Endpoints, IDictionary serializedAdditionalRawData) { BlobUri = blobUri; QueueUri = queueUri; @@ -70,6 +71,7 @@ internal StorageAccountEndpoints(Uri blobUri, Uri queueUri, Uri tableUri, Uri fi DfsUri = dfsUri; MicrosoftEndpoints = microsoftEndpoints; InternetEndpoints = internetEndpoints; + IPv6Endpoints = ipv6Endpoints; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -97,5 +99,8 @@ internal StorageAccountEndpoints(Uri blobUri, Uri queueUri, Uri tableUri, Uri fi /// Gets the internet routing storage endpoints. [WirePath("internetEndpoints")] public StorageAccountInternetEndpoints InternetEndpoints { get; } + /// Gets the IPv6 storage endpoints. + [WirePath("ipv6Endpoints")] + public StorageAccountIPv6Endpoints IPv6Endpoints { get; } } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountIPRule.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountIPRule.cs index a826f696e9dd..810ca55b292b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountIPRule.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountIPRule.cs @@ -46,7 +46,7 @@ public partial class StorageAccountIPRule private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. + /// Specifies the IP or IP range in CIDR format. /// is null. public StorageAccountIPRule(string ipAddressOrRange) { @@ -56,7 +56,7 @@ public StorageAccountIPRule(string ipAddressOrRange) } /// Initializes a new instance of . - /// Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. + /// Specifies the IP or IP range in CIDR format. /// The action of IP ACL rule. /// Keeps track of any properties unknown to the library. internal StorageAccountIPRule(string ipAddressOrRange, StorageAccountNetworkRuleAction? action, IDictionary serializedAdditionalRawData) @@ -71,7 +71,7 @@ internal StorageAccountIPRule() { } - /// Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. + /// Specifies the IP or IP range in CIDR format. [WirePath("value")] public string IPAddressOrRange { get; set; } /// The action of IP ACL rule. diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountIPv6Endpoints.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountIPv6Endpoints.Serialization.cs new file mode 100644 index 000000000000..154f2d9e5813 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountIPv6Endpoints.Serialization.cs @@ -0,0 +1,409 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Storage.Models +{ + public partial class StorageAccountIPv6Endpoints : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(StorageAccountIPv6Endpoints)} does not support writing '{format}' format."); + } + + if (options.Format != "W" && Optional.IsDefined(Blob)) + { + writer.WritePropertyName("blob"u8); + writer.WriteStringValue(Blob); + } + if (options.Format != "W" && Optional.IsDefined(Queue)) + { + writer.WritePropertyName("queue"u8); + writer.WriteStringValue(Queue); + } + if (options.Format != "W" && Optional.IsDefined(Table)) + { + writer.WritePropertyName("table"u8); + writer.WriteStringValue(Table); + } + if (options.Format != "W" && Optional.IsDefined(File)) + { + writer.WritePropertyName("file"u8); + writer.WriteStringValue(File); + } + if (options.Format != "W" && Optional.IsDefined(Web)) + { + writer.WritePropertyName("web"u8); + writer.WriteStringValue(Web); + } + if (options.Format != "W" && Optional.IsDefined(Dfs)) + { + writer.WritePropertyName("dfs"u8); + writer.WriteStringValue(Dfs); + } + if (Optional.IsDefined(MicrosoftEndpoints)) + { + writer.WritePropertyName("microsoftEndpoints"u8); + writer.WriteObjectValue(MicrosoftEndpoints, options); + } + if (Optional.IsDefined(InternetEndpoints)) + { + writer.WritePropertyName("internetEndpoints"u8); + writer.WriteObjectValue(InternetEndpoints, options); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + StorageAccountIPv6Endpoints IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(StorageAccountIPv6Endpoints)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeStorageAccountIPv6Endpoints(document.RootElement, options); + } + + internal static StorageAccountIPv6Endpoints DeserializeStorageAccountIPv6Endpoints(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string blob = default; + string queue = default; + string table = default; + string file = default; + string web = default; + string dfs = default; + StorageAccountMicrosoftEndpoints microsoftEndpoints = default; + StorageAccountInternetEndpoints internetEndpoints = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("blob"u8)) + { + blob = property.Value.GetString(); + continue; + } + if (property.NameEquals("queue"u8)) + { + queue = property.Value.GetString(); + continue; + } + if (property.NameEquals("table"u8)) + { + table = property.Value.GetString(); + continue; + } + if (property.NameEquals("file"u8)) + { + file = property.Value.GetString(); + continue; + } + if (property.NameEquals("web"u8)) + { + web = property.Value.GetString(); + continue; + } + if (property.NameEquals("dfs"u8)) + { + dfs = property.Value.GetString(); + continue; + } + if (property.NameEquals("microsoftEndpoints"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + microsoftEndpoints = StorageAccountMicrosoftEndpoints.DeserializeStorageAccountMicrosoftEndpoints(property.Value, options); + continue; + } + if (property.NameEquals("internetEndpoints"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + internetEndpoints = StorageAccountInternetEndpoints.DeserializeStorageAccountInternetEndpoints(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new StorageAccountIPv6Endpoints( + blob, + queue, + table, + file, + web, + dfs, + microsoftEndpoints, + internetEndpoints, + serializedAdditionalRawData); + } + + private BinaryData SerializeBicep(ModelReaderWriterOptions options) + { + StringBuilder builder = new StringBuilder(); + BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; + IDictionary propertyOverrides = null; + bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); + bool hasPropertyOverride = false; + string propertyOverride = null; + + builder.AppendLine("{"); + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Blob), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" blob: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(Blob)) + { + builder.Append(" blob: "); + if (Blob.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{Blob}'''"); + } + else + { + builder.AppendLine($"'{Blob}'"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Queue), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" queue: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(Queue)) + { + builder.Append(" queue: "); + if (Queue.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{Queue}'''"); + } + else + { + builder.AppendLine($"'{Queue}'"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Table), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" table: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(Table)) + { + builder.Append(" table: "); + if (Table.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{Table}'''"); + } + else + { + builder.AppendLine($"'{Table}'"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(File), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" file: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(File)) + { + builder.Append(" file: "); + if (File.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{File}'''"); + } + else + { + builder.AppendLine($"'{File}'"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Web), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" web: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(Web)) + { + builder.Append(" web: "); + if (Web.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{Web}'''"); + } + else + { + builder.AppendLine($"'{Web}'"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Dfs), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" dfs: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(Dfs)) + { + builder.Append(" dfs: "); + if (Dfs.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{Dfs}'''"); + } + else + { + builder.AppendLine($"'{Dfs}'"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(MicrosoftEndpoints), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" microsoftEndpoints: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(MicrosoftEndpoints)) + { + builder.Append(" microsoftEndpoints: "); + BicepSerializationHelpers.AppendChildObject(builder, MicrosoftEndpoints, options, 2, false, " microsoftEndpoints: "); + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(InternetEndpoints), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" internetEndpoints: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(InternetEndpoints)) + { + builder.Append(" internetEndpoints: "); + BicepSerializationHelpers.AppendChildObject(builder, InternetEndpoints, options, 2, false, " internetEndpoints: "); + } + } + + builder.AppendLine("}"); + return BinaryData.FromString(builder.ToString()); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageContext.Default); + case "bicep": + return SerializeBicep(options); + default: + throw new FormatException($"The model {nameof(StorageAccountIPv6Endpoints)} does not support writing '{options.Format}' format."); + } + } + + StorageAccountIPv6Endpoints IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeStorageAccountIPv6Endpoints(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(StorageAccountIPv6Endpoints)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountIPv6Endpoints.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountIPv6Endpoints.cs new file mode 100644 index 000000000000..bed909bd427e --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountIPv6Endpoints.cs @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Storage.Models +{ + /// The URIs that are used to perform a retrieval of a public blob, queue, table, web or dfs object via an IPv6 endpoint. + public partial class StorageAccountIPv6Endpoints + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal StorageAccountIPv6Endpoints() + { + } + + /// Initializes a new instance of . + /// Gets the blob endpoint. + /// Gets the queue endpoint. + /// Gets the table endpoint. + /// Gets the file endpoint. + /// Gets the web endpoint. + /// Gets the dfs endpoint. + /// Gets the microsoft routing storage endpoints. + /// Gets the internet routing storage endpoints. + /// Keeps track of any properties unknown to the library. + internal StorageAccountIPv6Endpoints(string blob, string queue, string table, string file, string web, string dfs, StorageAccountMicrosoftEndpoints microsoftEndpoints, StorageAccountInternetEndpoints internetEndpoints, IDictionary serializedAdditionalRawData) + { + Blob = blob; + Queue = queue; + Table = table; + File = file; + Web = web; + Dfs = dfs; + MicrosoftEndpoints = microsoftEndpoints; + InternetEndpoints = internetEndpoints; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets the blob endpoint. + [WirePath("blob")] + public string Blob { get; } + /// Gets the queue endpoint. + [WirePath("queue")] + public string Queue { get; } + /// Gets the table endpoint. + [WirePath("table")] + public string Table { get; } + /// Gets the file endpoint. + [WirePath("file")] + public string File { get; } + /// Gets the web endpoint. + [WirePath("web")] + public string Web { get; } + /// Gets the dfs endpoint. + [WirePath("dfs")] + public string Dfs { get; } + /// Gets the microsoft routing storage endpoints. + [WirePath("microsoftEndpoints")] + public StorageAccountMicrosoftEndpoints MicrosoftEndpoints { get; } + /// Gets the internet routing storage endpoints. + [WirePath("internetEndpoints")] + public StorageAccountInternetEndpoints InternetEndpoints { get; } + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.Serialization.cs index 3a3ee521aea8..dc052f71bc46 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.Serialization.cs @@ -71,6 +71,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndArray(); } + if (Optional.IsCollectionDefined(IPv6Rules)) + { + writer.WritePropertyName("ipv6Rules"u8); + writer.WriteStartArray(); + foreach (var item in IPv6Rules) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } writer.WritePropertyName("defaultAction"u8); writer.WriteStringValue(DefaultAction.ToSerialString()); if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -114,6 +124,7 @@ internal static StorageAccountNetworkRuleSet DeserializeStorageAccountNetworkRul IList resourceAccessRules = default; IList virtualNetworkRules = default; IList ipRules = default; + IList ipv6Rules = default; StorageNetworkDefaultAction defaultAction = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -170,6 +181,20 @@ internal static StorageAccountNetworkRuleSet DeserializeStorageAccountNetworkRul ipRules = array; continue; } + if (property.NameEquals("ipv6Rules"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(StorageAccountIPRule.DeserializeStorageAccountIPRule(item, options)); + } + ipv6Rules = array; + continue; + } if (property.NameEquals("defaultAction"u8)) { defaultAction = property.Value.GetString().ToStorageNetworkDefaultAction(); @@ -186,6 +211,7 @@ internal static StorageAccountNetworkRuleSet DeserializeStorageAccountNetworkRul resourceAccessRules ?? new ChangeTrackingList(), virtualNetworkRules ?? new ChangeTrackingList(), ipRules ?? new ChangeTrackingList(), + ipv6Rules ?? new ChangeTrackingList(), defaultAction, serializedAdditionalRawData); } @@ -285,6 +311,29 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(IPv6Rules), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" ipv6Rules: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsCollectionDefined(IPv6Rules)) + { + if (IPv6Rules.Any()) + { + builder.Append(" ipv6Rules: "); + builder.AppendLine("["); + foreach (var item in IPv6Rules) + { + BicepSerializationHelpers.AppendChildObject(builder, item, options, 4, true, " ipv6Rules: "); + } + builder.AppendLine(" ]"); + } + } + } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DefaultAction), out propertyOverride); if (hasPropertyOverride) { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.cs index 7123675047f0..82bbe5a569fd 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountNetworkRuleSet.cs @@ -52,6 +52,7 @@ public StorageAccountNetworkRuleSet(StorageNetworkDefaultAction defaultAction) ResourceAccessRules = new ChangeTrackingList(); VirtualNetworkRules = new ChangeTrackingList(); IPRules = new ChangeTrackingList(); + IPv6Rules = new ChangeTrackingList(); DefaultAction = defaultAction; } @@ -60,14 +61,16 @@ public StorageAccountNetworkRuleSet(StorageNetworkDefaultAction defaultAction) /// Sets the resource access rules. /// Sets the virtual network rules. /// Sets the IP ACL rules. + /// Sets the IPv6 ACL rules. /// Specifies the default action of allow or deny when no other rules match. /// Keeps track of any properties unknown to the library. - internal StorageAccountNetworkRuleSet(StorageNetworkBypass? bypass, IList resourceAccessRules, IList virtualNetworkRules, IList ipRules, StorageNetworkDefaultAction defaultAction, IDictionary serializedAdditionalRawData) + internal StorageAccountNetworkRuleSet(StorageNetworkBypass? bypass, IList resourceAccessRules, IList virtualNetworkRules, IList ipRules, IList ipv6Rules, StorageNetworkDefaultAction defaultAction, IDictionary serializedAdditionalRawData) { Bypass = bypass; ResourceAccessRules = resourceAccessRules; VirtualNetworkRules = virtualNetworkRules; IPRules = ipRules; + IPv6Rules = ipv6Rules; DefaultAction = defaultAction; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -89,6 +92,9 @@ internal StorageAccountNetworkRuleSet() /// Sets the IP ACL rules. [WirePath("ipRules")] public IList IPRules { get; } + /// Sets the IPv6 ACL rules. + [WirePath("ipv6Rules")] + public IList IPv6Rules { get; } /// Specifies the default action of allow or deny when no other rules match. [WirePath("defaultAction")] public StorageNetworkDefaultAction DefaultAction { get; set; } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountPatch.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountPatch.Serialization.cs index 3aed6d823e99..568439cea2a4 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountPatch.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountPatch.Serialization.cs @@ -62,6 +62,21 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("kind"u8); writer.WriteStringValue(Kind.Value.ToString()); } + if (Optional.IsCollectionDefined(Zones)) + { + writer.WritePropertyName("zones"u8); + writer.WriteStartArray(); + foreach (var item in Zones) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Placement)) + { + writer.WritePropertyName("placement"u8); + writer.WriteObjectValue(Placement, options); + } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); if (Optional.IsDefined(CustomDomain)) @@ -129,6 +144,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("routingPreference"u8); writer.WriteObjectValue(RoutingPreference, options); } + if (Optional.IsDefined(DualStackEndpointPreference)) + { + writer.WritePropertyName("dualStackEndpointPreference"u8); + writer.WriteObjectValue(DualStackEndpointPreference, options); + } if (Optional.IsDefined(AllowBlobPublicAccess)) { writer.WritePropertyName("allowBlobPublicAccess"u8); @@ -216,6 +236,8 @@ internal static StorageAccountPatch DeserializeStorageAccountPatch(JsonElement e IDictionary tags = default; ManagedServiceIdentity identity = default; StorageKind? kind = default; + IList zones = default; + Placement placement = default; StorageCustomDomain customDomain = default; StorageAccountEncryption encryption = default; StorageAccountSasPolicy sasPolicy = default; @@ -229,6 +251,7 @@ internal static StorageAccountPatch DeserializeStorageAccountPatch(JsonElement e StorageAccountNetworkRuleSet networkAcls = default; LargeFileSharesState? largeFileSharesState = default; StorageRoutingPreference routingPreference = default; + DualStackEndpointPreference dualStackEndpointPreference = default; bool? allowBlobPublicAccess = default; StorageMinimumTlsVersion? minimumTlsVersion = default; bool? allowSharedKeyAccess = default; @@ -283,6 +306,29 @@ internal static StorageAccountPatch DeserializeStorageAccountPatch(JsonElement e kind = new StorageKind(property.Value.GetString()); continue; } + if (property.NameEquals("zones"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + zones = array; + continue; + } + if (property.NameEquals("placement"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + placement = Placement.DeserializePlacement(property.Value, options); + continue; + } if (property.NameEquals("properties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -409,6 +455,15 @@ internal static StorageAccountPatch DeserializeStorageAccountPatch(JsonElement e routingPreference = StorageRoutingPreference.DeserializeStorageRoutingPreference(property0.Value, options); continue; } + if (property0.NameEquals("dualStackEndpointPreference"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + dualStackEndpointPreference = DualStackEndpointPreference.DeserializeDualStackEndpointPreference(property0.Value, options); + continue; + } if (property0.NameEquals("allowBlobPublicAccess"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -504,6 +559,8 @@ internal static StorageAccountPatch DeserializeStorageAccountPatch(JsonElement e tags ?? new ChangeTrackingDictionary(), identity, kind, + zones ?? new ChangeTrackingList(), + placement, customDomain, encryption, sasPolicy, @@ -517,6 +574,7 @@ internal static StorageAccountPatch DeserializeStorageAccountPatch(JsonElement e networkAcls, largeFileSharesState, routingPreference, + dualStackEndpointPreference, allowBlobPublicAccess, minimumTlsVersion, allowSharedKeyAccess, diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountPatch.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountPatch.cs index d74c3b9efb5a..5d0fd8efaf65 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountPatch.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageAccountPatch.cs @@ -50,6 +50,7 @@ public partial class StorageAccountPatch public StorageAccountPatch() { Tags = new ChangeTrackingDictionary(); + Zones = new ChangeTrackingList(); } /// Initializes a new instance of . @@ -57,6 +58,8 @@ public StorageAccountPatch() /// Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. /// The identity of the resource. /// Optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. + /// Optional. Gets or sets the pinned logical availability zone for the storage account. + /// Optional. Gets or sets the zonal placement details for the storage account. /// Custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. /// Not applicable. Azure Storage encryption at rest is enabled by default for all storage accounts and cannot be disabled. /// SasPolicy assigned to the storage account. @@ -70,6 +73,7 @@ public StorageAccountPatch() /// Network rule set. /// Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. /// Maintains information about the network routing choice opted by the user for data transfer. + /// Maintains information about the Internet protocol opted by the user. /// Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. /// Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. /// Indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true. @@ -80,12 +84,14 @@ public StorageAccountPatch() /// Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. /// Allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. /// Keeps track of any properties unknown to the library. - internal StorageAccountPatch(StorageSku sku, IDictionary tags, ManagedServiceIdentity identity, StorageKind? kind, StorageCustomDomain customDomain, StorageAccountEncryption encryption, StorageAccountSasPolicy sasPolicy, StorageAccountKeyPolicy keyPolicy, StorageAccountAccessTier? accessTier, FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isExtendedGroupEnabled, StorageAccountNetworkRuleSet networkRuleSet, LargeFileSharesState? largeFileSharesState, StorageRoutingPreference routingPreference, bool? allowBlobPublicAccess, StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, StoragePublicNetworkAccess? publicNetworkAccess, ImmutableStorageAccount immutableStorageWithVersioning, AllowedCopyScope? allowedCopyScope, StorageDnsEndpointType? dnsEndpointType, IDictionary serializedAdditionalRawData) + internal StorageAccountPatch(StorageSku sku, IDictionary tags, ManagedServiceIdentity identity, StorageKind? kind, IList zones, Placement placement, StorageCustomDomain customDomain, StorageAccountEncryption encryption, StorageAccountSasPolicy sasPolicy, StorageAccountKeyPolicy keyPolicy, StorageAccountAccessTier? accessTier, FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isExtendedGroupEnabled, StorageAccountNetworkRuleSet networkRuleSet, LargeFileSharesState? largeFileSharesState, StorageRoutingPreference routingPreference, DualStackEndpointPreference dualStackEndpointPreference, bool? allowBlobPublicAccess, StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, StoragePublicNetworkAccess? publicNetworkAccess, ImmutableStorageAccount immutableStorageWithVersioning, AllowedCopyScope? allowedCopyScope, StorageDnsEndpointType? dnsEndpointType, IDictionary serializedAdditionalRawData) { Sku = sku; Tags = tags; Identity = identity; Kind = kind; + Zones = zones; + Placement = placement; CustomDomain = customDomain; Encryption = encryption; SasPolicy = sasPolicy; @@ -99,6 +105,7 @@ internal StorageAccountPatch(StorageSku sku, IDictionary tags, M NetworkRuleSet = networkRuleSet; LargeFileSharesState = largeFileSharesState; RoutingPreference = routingPreference; + DualStackEndpointPreference = dualStackEndpointPreference; AllowBlobPublicAccess = allowBlobPublicAccess; MinimumTlsVersion = minimumTlsVersion; AllowSharedKeyAccess = allowSharedKeyAccess; @@ -123,6 +130,24 @@ internal StorageAccountPatch(StorageSku sku, IDictionary tags, M /// Optional. Indicates the type of storage account. Currently only StorageV2 value supported by server. [WirePath("kind")] public StorageKind? Kind { get; set; } + /// Optional. Gets or sets the pinned logical availability zone for the storage account. + [WirePath("zones")] + public IList Zones { get; } + /// Optional. Gets or sets the zonal placement details for the storage account. + internal Placement Placement { get; set; } + /// The availability zone pinning policy for the storage account. + [WirePath("placement.zonePlacementPolicy")] + public ZonePlacementPolicy? ZonePlacementPolicy + { + get => Placement is null ? default : Placement.ZonePlacementPolicy; + set + { + if (Placement is null) + Placement = new Placement(); + Placement.ZonePlacementPolicy = value; + } + } + /// Custom domain assigned to the storage account by the user. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property. [WirePath("properties.customDomain")] public StorageCustomDomain CustomDomain { get; set; } @@ -172,6 +197,21 @@ public int? KeyExpirationPeriodInDays /// Maintains information about the network routing choice opted by the user for data transfer. [WirePath("properties.routingPreference")] public StorageRoutingPreference RoutingPreference { get; set; } + /// Maintains information about the Internet protocol opted by the user. + internal DualStackEndpointPreference DualStackEndpointPreference { get; set; } + /// A boolean flag which indicates whether IPv6 storage endpoints are to be published. + [WirePath("properties.dualStackEndpointPreference.publishIpv6Endpoint")] + public bool? PublishIPv6Endpoint + { + get => DualStackEndpointPreference is null ? default : DualStackEndpointPreference.PublishIPv6Endpoint; + set + { + if (DualStackEndpointPreference is null) + DualStackEndpointPreference = new DualStackEndpointPreference(); + DualStackEndpointPreference.PublishIPv6Endpoint = value; + } + } + /// Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. [WirePath("properties.allowBlobPublicAccess")] public bool? AllowBlobPublicAccess { get; set; } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageActiveDirectoryProperties.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageActiveDirectoryProperties.Serialization.cs index 08bdbfe6bab6..982ca93233b0 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageActiveDirectoryProperties.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageActiveDirectoryProperties.Serialization.cs @@ -35,8 +35,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(StorageActiveDirectoryProperties)} does not support writing '{format}' format."); } - writer.WritePropertyName("domainName"u8); - writer.WriteStringValue(DomainName); + if (Optional.IsDefined(DomainName)) + { + writer.WritePropertyName("domainName"u8); + writer.WriteStringValue(DomainName); + } if (Optional.IsDefined(NetBiosDomainName)) { writer.WritePropertyName("netBiosDomainName"u8); @@ -47,8 +50,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("forestName"u8); writer.WriteStringValue(ForestName); } - writer.WritePropertyName("domainGuid"u8); - writer.WriteStringValue(DomainGuid); + if (Optional.IsDefined(ActiveDirectoryDomainGuid)) + { + writer.WritePropertyName("domainGuid"u8); + writer.WriteStringValue(ActiveDirectoryDomainGuid.Value); + } if (Optional.IsDefined(DomainSid)) { writer.WritePropertyName("domainSid"u8); @@ -109,7 +115,7 @@ internal static StorageActiveDirectoryProperties DeserializeStorageActiveDirecto string domainName = default; string netBiosDomainName = default; string forestName = default; - Guid domainGuid = default; + Guid? domainGuid = default; string domainSid = default; string azureStorageSid = default; string samAccountName = default; @@ -135,7 +141,11 @@ internal static StorageActiveDirectoryProperties DeserializeStorageActiveDirecto } if (property.NameEquals("domainGuid"u8)) { - DeserializeNullableGuid(property, ref domainGuid); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + domainGuid = property.Value.GetGuid(); continue; } if (property.NameEquals("domainSid"u8)) @@ -260,7 +270,7 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DomainGuid), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ActiveDirectoryDomainGuid), out propertyOverride); if (hasPropertyOverride) { builder.Append(" domainGuid: "); @@ -268,8 +278,11 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } else { - builder.Append(" domainGuid: "); - builder.AppendLine($"'{DomainGuid.ToString()}'"); + if (Optional.IsDefined(ActiveDirectoryDomainGuid)) + { + builder.Append(" domainGuid: "); + builder.AppendLine($"'{ActiveDirectoryDomainGuid.Value.ToString()}'"); + } } hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DomainSid), out propertyOverride); diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageActiveDirectoryProperties.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageActiveDirectoryProperties.cs index 86274808f50a..db87076b5f72 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageActiveDirectoryProperties.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageActiveDirectoryProperties.cs @@ -46,33 +46,26 @@ public partial class StorageActiveDirectoryProperties private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// Specifies the primary domain that the AD DNS server is authoritative for. - /// Specifies the domain GUID. - /// is null. - public StorageActiveDirectoryProperties(string domainName, Guid domainGuid) + public StorageActiveDirectoryProperties() { - Argument.AssertNotNull(domainName, nameof(domainName)); - - DomainName = domainName; - DomainGuid = domainGuid; } /// Initializes a new instance of . - /// Specifies the primary domain that the AD DNS server is authoritative for. - /// Specifies the NetBIOS domain name. - /// Specifies the Active Directory forest to get. - /// Specifies the domain GUID. - /// Specifies the security identifier (SID). - /// Specifies the security identifier (SID) for Azure Storage. - /// Specifies the Active Directory SAMAccountName for Azure Storage. - /// Specifies the Active Directory account type for Azure Storage. + /// Specifies the primary domain that the AD DNS server is authoritative for. This property is required if directoryServiceOptions is set to AD (AD DS authentication). If directoryServiceOptions is set to AADDS (Entra DS authentication), providing this property is optional, as it will be inferred automatically if omitted. If directoryServiceOptions is set to AADKERB (Entra authentication), this property is optional; it is needed to support configuration of directory- and file-level permissions via Windows File Explorer, but is not required for authentication. + /// Specifies the NetBIOS domain name. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted. + /// Specifies the Active Directory forest to get. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted. + /// Specifies the domain GUID. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. If directoryServiceOptions is set to AADDS (Entra DS authentication), this property can be omitted. If directoryServiceOptions is set to AADKERB (Entra authentication), this property is optional; it is needed to support configuration of directory- and file-level permissions via Windows File Explorer, but is not required for authentication. + /// Specifies the security identifier (SID) of the AD domain. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted. + /// Specifies the security identifier (SID) for Azure Storage. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted. + /// Specifies the Active Directory SAMAccountName for Azure Storage. If directoryServiceOptions is set to AD (AD DS authentication), this property is optional. If provided, accountType should also be provided. For directoryServiceOptions AADDS (Entra DS authentication) or AADKERB (Entra authentication), this property can be omitted. + /// Specifies the Active Directory account type for Azure Storage. If directoryServiceOptions is set to AD (AD DS authentication), this property is optional. If provided, samAccountName should also be provided. For directoryServiceOptions AADDS (Entra DS authentication) or AADKERB (Entra authentication), this property can be omitted. /// Keeps track of any properties unknown to the library. - internal StorageActiveDirectoryProperties(string domainName, string netBiosDomainName, string forestName, Guid domainGuid, string domainSid, string azureStorageSid, string samAccountName, ActiveDirectoryAccountType? accountType, IDictionary serializedAdditionalRawData) + internal StorageActiveDirectoryProperties(string domainName, string netBiosDomainName, string forestName, Guid? activeDirectoryDomainGuid, string domainSid, string azureStorageSid, string samAccountName, ActiveDirectoryAccountType? accountType, IDictionary serializedAdditionalRawData) { DomainName = domainName; NetBiosDomainName = netBiosDomainName; ForestName = forestName; - DomainGuid = domainGuid; + ActiveDirectoryDomainGuid = activeDirectoryDomainGuid; DomainSid = domainSid; AzureStorageSid = azureStorageSid; SamAccountName = samAccountName; @@ -80,33 +73,28 @@ internal StorageActiveDirectoryProperties(string domainName, string netBiosDomai _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal StorageActiveDirectoryProperties() - { - } - - /// Specifies the primary domain that the AD DNS server is authoritative for. + /// Specifies the primary domain that the AD DNS server is authoritative for. This property is required if directoryServiceOptions is set to AD (AD DS authentication). If directoryServiceOptions is set to AADDS (Entra DS authentication), providing this property is optional, as it will be inferred automatically if omitted. If directoryServiceOptions is set to AADKERB (Entra authentication), this property is optional; it is needed to support configuration of directory- and file-level permissions via Windows File Explorer, but is not required for authentication. [WirePath("domainName")] public string DomainName { get; set; } - /// Specifies the NetBIOS domain name. + /// Specifies the NetBIOS domain name. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted. [WirePath("netBiosDomainName")] public string NetBiosDomainName { get; set; } - /// Specifies the Active Directory forest to get. + /// Specifies the Active Directory forest to get. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted. [WirePath("forestName")] public string ForestName { get; set; } - /// Specifies the domain GUID. + /// Specifies the domain GUID. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. If directoryServiceOptions is set to AADDS (Entra DS authentication), this property can be omitted. If directoryServiceOptions is set to AADKERB (Entra authentication), this property is optional; it is needed to support configuration of directory- and file-level permissions via Windows File Explorer, but is not required for authentication. [WirePath("domainGuid")] - public Guid DomainGuid { get; set; } - /// Specifies the security identifier (SID). + public Guid? ActiveDirectoryDomainGuid { get; set; } + /// Specifies the security identifier (SID) of the AD domain. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted. [WirePath("domainSid")] public string DomainSid { get; set; } - /// Specifies the security identifier (SID) for Azure Storage. + /// Specifies the security identifier (SID) for Azure Storage. If directoryServiceOptions is set to AD (AD DS authentication), this property is required. Otherwise, it can be omitted. [WirePath("azureStorageSid")] public string AzureStorageSid { get; set; } - /// Specifies the Active Directory SAMAccountName for Azure Storage. + /// Specifies the Active Directory SAMAccountName for Azure Storage. If directoryServiceOptions is set to AD (AD DS authentication), this property is optional. If provided, accountType should also be provided. For directoryServiceOptions AADDS (Entra DS authentication) or AADKERB (Entra authentication), this property can be omitted. [WirePath("samAccountName")] public string SamAccountName { get; set; } - /// Specifies the Active Directory account type for Azure Storage. + /// Specifies the Active Directory account type for Azure Storage. If directoryServiceOptions is set to AD (AD DS authentication), this property is optional. If provided, samAccountName should also be provided. For directoryServiceOptions AADDS (Entra DS authentication) or AADKERB (Entra authentication), this property can be omitted. [WirePath("accountType")] public ActiveDirectoryAccountType? AccountType { get; set; } } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuInformation.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuInformation.Serialization.cs index d98433cbe284..cfe6fd475929 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuInformation.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuInformation.Serialization.cs @@ -63,6 +63,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndArray(); } + if (Optional.IsCollectionDefined(LocationInfo)) + { + writer.WritePropertyName("locationInfo"u8); + writer.WriteStartArray(); + foreach (var item in LocationInfo) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } if (options.Format != "W" && Optional.IsCollectionDefined(Capabilities)) { writer.WritePropertyName("capabilities"u8); @@ -125,6 +135,7 @@ internal static StorageSkuInformation DeserializeStorageSkuInformation(JsonEleme string resourceType = default; StorageKind? kind = default; IReadOnlyList locations = default; + IReadOnlyList locationInfo = default; IReadOnlyList capabilities = default; IReadOnlyList restrictions = default; IDictionary serializedAdditionalRawData = default; @@ -173,6 +184,20 @@ internal static StorageSkuInformation DeserializeStorageSkuInformation(JsonEleme locations = array; continue; } + if (property.NameEquals("locationInfo"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(SkuInformationLocationInfoItem.DeserializeSkuInformationLocationInfoItem(item, options)); + } + locationInfo = array; + continue; + } if (property.NameEquals("capabilities"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -213,6 +238,7 @@ internal static StorageSkuInformation DeserializeStorageSkuInformation(JsonEleme resourceType, kind, locations ?? new ChangeTrackingList(), + locationInfo ?? new ChangeTrackingList(), capabilities ?? new ChangeTrackingList(), restrictions ?? new ChangeTrackingList(), serializedAdditionalRawData); @@ -330,6 +356,29 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(LocationInfo), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" locationInfo: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsCollectionDefined(LocationInfo)) + { + if (LocationInfo.Any()) + { + builder.Append(" locationInfo: "); + builder.AppendLine("["); + foreach (var item in LocationInfo) + { + BicepSerializationHelpers.AppendChildObject(builder, item, options, 4, true, " locationInfo: "); + } + builder.AppendLine(" ]"); + } + } + } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Capabilities), out propertyOverride); if (hasPropertyOverride) { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuInformation.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuInformation.cs index 6c89fb96af8b..91e6e81432ba 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuInformation.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/StorageSkuInformation.cs @@ -51,6 +51,7 @@ internal StorageSkuInformation(StorageSkuName name) { Name = name; Locations = new ChangeTrackingList(); + LocationInfo = new ChangeTrackingList(); Capabilities = new ChangeTrackingList(); Restrictions = new ChangeTrackingList(); } @@ -61,16 +62,18 @@ internal StorageSkuInformation(StorageSkuName name) /// The type of the resource, usually it is 'storageAccounts'. /// Indicates the type of storage account. /// The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). + /// /// The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc. /// The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. /// Keeps track of any properties unknown to the library. - internal StorageSkuInformation(StorageSkuName name, StorageSkuTier? tier, string resourceType, StorageKind? kind, IReadOnlyList locations, IReadOnlyList capabilities, IReadOnlyList restrictions, IDictionary serializedAdditionalRawData) + internal StorageSkuInformation(StorageSkuName name, StorageSkuTier? tier, string resourceType, StorageKind? kind, IReadOnlyList locations, IReadOnlyList locationInfo, IReadOnlyList capabilities, IReadOnlyList restrictions, IDictionary serializedAdditionalRawData) { Name = name; Tier = tier; ResourceType = resourceType; Kind = kind; Locations = locations; + LocationInfo = locationInfo; Capabilities = capabilities; Restrictions = restrictions; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -96,6 +99,9 @@ internal StorageSkuInformation() /// The set of locations that the SKU is available. This will be supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). [WirePath("locations")] public IReadOnlyList Locations { get; } + /// Gets the location info. + [WirePath("locationInfo")] + public IReadOnlyList LocationInfo { get; } /// The capability information in the specified SKU, including file encryption, network ACLs, change notification, etc. [WirePath("capabilities")] public IReadOnlyList Capabilities { get; } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/TaskExecutionTriggerType.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/TaskExecutionTriggerType.cs new file mode 100644 index 000000000000..dbcdf3a892b3 --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/TaskExecutionTriggerType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Storage.Models +{ + /// The trigger type of the storage task assignment execution. + public readonly partial struct TaskExecutionTriggerType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public TaskExecutionTriggerType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string RunOnceValue = "RunOnce"; + private const string OnScheduleValue = "OnSchedule"; + + /// RunOnce. + public static TaskExecutionTriggerType RunOnce { get; } = new TaskExecutionTriggerType(RunOnceValue); + /// OnSchedule. + public static TaskExecutionTriggerType OnSchedule { get; } = new TaskExecutionTriggerType(OnScheduleValue); + /// Determines if two values are the same. + public static bool operator ==(TaskExecutionTriggerType left, TaskExecutionTriggerType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(TaskExecutionTriggerType left, TaskExecutionTriggerType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator TaskExecutionTriggerType(string value) => new TaskExecutionTriggerType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is TaskExecutionTriggerType other && Equals(other); + /// + public bool Equals(TaskExecutionTriggerType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ZonePlacementPolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ZonePlacementPolicy.cs new file mode 100644 index 000000000000..3a0d0e521bfc --- /dev/null +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Models/ZonePlacementPolicy.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Storage.Models +{ + /// The availability zone pinning policy for the storage account. + public readonly partial struct ZonePlacementPolicy : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ZonePlacementPolicy(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AnyValue = "Any"; + private const string NoneValue = "None"; + + /// Any. + public static ZonePlacementPolicy Any { get; } = new ZonePlacementPolicy(AnyValue); + /// None. + public static ZonePlacementPolicy None { get; } = new ZonePlacementPolicy(NoneValue); + /// Determines if two values are the same. + public static bool operator ==(ZonePlacementPolicy left, ZonePlacementPolicy right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ZonePlacementPolicy left, ZonePlacementPolicy right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ZonePlacementPolicy(string value) => new ZonePlacementPolicy(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ZonePlacementPolicy other && Equals(other); + /// + public bool Equals(ZonePlacementPolicy other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/NetworkSecurityPerimeterConfigurationCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/NetworkSecurityPerimeterConfigurationCollection.cs index 10da398287d4..1494925c8d91 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/NetworkSecurityPerimeterConfigurationCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/NetworkSecurityPerimeterConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(strin /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual AsyncPageable GetA /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual Pageable GetAll(Ca /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual async Task> ExistsAsync(string networkSecurityPeri /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -298,7 +298,7 @@ public virtual Response Exists(string networkSecurityPerimeterConfiguratio /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -343,7 +343,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/NetworkSecurityPerimeterConfigurationResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/NetworkSecurityPerimeterConfigurationResource.cs index 1ced8ef9ad3a..810babce4817 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/NetworkSecurityPerimeterConfigurationResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/NetworkSecurityPerimeterConfigurationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cance /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task ReconcileAsync(WaitUntil waitUntil, Canc /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyCollection.cs index d0880300ebd9..03402c0fcbdb 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string objectReplic /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(Cancel /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -357,7 +357,7 @@ public virtual async Task> ExistsAsync(string objectReplicationPo /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -400,7 +400,7 @@ public virtual Response Exists(string objectReplicationPolicyId, Cancellat /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -445,7 +445,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyResource.cs index e3a455848fdc..c9885a38f82d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicyResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateA /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/QueueServiceResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/QueueServiceResource.cs index 893294fa771f..65c232bbb602 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/QueueServiceResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/QueueServiceResource.cs @@ -107,7 +107,7 @@ public virtual StorageQueueCollection GetStorageQueues() /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -138,7 +138,7 @@ public virtual async Task> GetStorageQueueAsync(s /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual Response GetStorageQueue(string queueName, /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -249,7 +249,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -297,7 +297,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobContainersRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobContainersRestOperations.cs index 991014a5e664..069b85991beb 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobContainersRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobContainersRestOperations.cs @@ -32,7 +32,7 @@ public BlobContainersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobInventoryPoliciesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobInventoryPoliciesRestOperations.cs index 9a5829e45bb7..ed59413bf3b2 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobInventoryPoliciesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobInventoryPoliciesRestOperations.cs @@ -32,7 +32,7 @@ public BlobInventoryPoliciesRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobServicesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobServicesRestOperations.cs index 42760308f7c5..76502a1c2363 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobServicesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/BlobServicesRestOperations.cs @@ -32,7 +32,7 @@ public BlobServicesRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/DeletedAccountsRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/DeletedAccountsRestOperations.cs index ae960a4efb35..859032b27180 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/DeletedAccountsRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/DeletedAccountsRestOperations.cs @@ -32,7 +32,7 @@ public DeletedAccountsRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/EncryptionScopesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/EncryptionScopesRestOperations.cs index a28bc25faab4..a277e8782f1f 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/EncryptionScopesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/EncryptionScopesRestOperations.cs @@ -32,7 +32,7 @@ public EncryptionScopesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileServicesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileServicesRestOperations.cs index 845b78d91ad6..26802d5dba6b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileServicesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileServicesRestOperations.cs @@ -32,7 +32,7 @@ public FileServicesRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileSharesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileSharesRestOperations.cs index 316964bfe073..3f1bb8e3b734 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileSharesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/FileSharesRestOperations.cs @@ -32,7 +32,7 @@ public FileSharesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/LocalUsersRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/LocalUsersRestOperations.cs index 49a979f12db8..361568a14c9e 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/LocalUsersRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/LocalUsersRestOperations.cs @@ -32,7 +32,7 @@ public LocalUsersRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/ManagementPoliciesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/ManagementPoliciesRestOperations.cs index 64316e935221..fa55b6d09cbb 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/ManagementPoliciesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/ManagementPoliciesRestOperations.cs @@ -32,7 +32,7 @@ public ManagementPoliciesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs index ac75ed398a6f..131b583a1c24 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/NetworkSecurityPerimeterConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public NetworkSecurityPerimeterConfigurationsRestOperations(HttpPipeline pipelin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/ObjectReplicationPoliciesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/ObjectReplicationPoliciesRestOperations.cs index 071ceea03831..4044bb2d0031 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/ObjectReplicationPoliciesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/ObjectReplicationPoliciesRestOperations.cs @@ -32,7 +32,7 @@ public ObjectReplicationPoliciesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 56060fdcc3c4..0a58844c47ef 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 6bf899fcb070..82ffce8af5b7 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -32,7 +32,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/QueueRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/QueueRestOperations.cs index 250d30624bb4..4eaae9585861 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/QueueRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/QueueRestOperations.cs @@ -32,7 +32,7 @@ public QueueRestOperations(HttpPipeline pipeline, string applicationId, Uri endp { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/QueueServicesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/QueueServicesRestOperations.cs index 0aba0afc2987..04d8d9be384d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/QueueServicesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/QueueServicesRestOperations.cs @@ -32,7 +32,7 @@ public QueueServicesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/SkusRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/SkusRestOperations.cs index 925ffdb430e7..247249d87e3a 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/SkusRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/SkusRestOperations.cs @@ -32,7 +32,7 @@ public SkusRestOperations(HttpPipeline pipeline, string applicationId, Uri endpo { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageAccountsRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageAccountsRestOperations.cs index 0613f09273fc..1978d568edb4 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageAccountsRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageAccountsRestOperations.cs @@ -32,7 +32,7 @@ public StorageAccountsRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageTaskAssignmentInstancesReportRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageTaskAssignmentInstancesReportRestOperations.cs index f97111d573cc..2a9078d4f5ad 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageTaskAssignmentInstancesReportRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageTaskAssignmentInstancesReportRestOperations.cs @@ -32,7 +32,7 @@ public StorageTaskAssignmentInstancesReportRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageTaskAssignmentsInstancesReportRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageTaskAssignmentsInstancesReportRestOperations.cs index 687447e781e1..e5b545878e17 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageTaskAssignmentsInstancesReportRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageTaskAssignmentsInstancesReportRestOperations.cs @@ -32,7 +32,7 @@ public StorageTaskAssignmentsInstancesReportRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageTaskAssignmentsRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageTaskAssignmentsRestOperations.cs index bbfbe0938b23..b5f7563d1b9b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageTaskAssignmentsRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/StorageTaskAssignmentsRestOperations.cs @@ -32,7 +32,7 @@ public StorageTaskAssignmentsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/TableRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/TableRestOperations.cs index 52f868e1d47d..726e6bbba4a9 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/TableRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/TableRestOperations.cs @@ -32,7 +32,7 @@ public TableRestOperations(HttpPipeline pipeline, string applicationId, Uri endp { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/TableServicesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/TableServicesRestOperations.cs index d7134a51b31a..101a961028ed 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/TableServicesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/TableServicesRestOperations.cs @@ -32,7 +32,7 @@ public TableServicesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/UsagesRestOperations.cs index a76670070698..e7e70bd9e768 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/RestOperations/UsagesRestOperations.cs @@ -32,7 +32,7 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountCollection.cs index 13cbab541fdc..fae8f773269c 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountCollection.cs @@ -66,7 +66,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -164,7 +164,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetAsync(string acco /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string accountName, StorageA /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string accountName, Storag /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -404,7 +404,7 @@ public virtual Response Exists(string accountName, StorageAccountExpand? e /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -450,7 +450,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountData.Serialization.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountData.Serialization.cs index 14a718674f66..842c8cb3b3de 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountData.Serialization.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountData.Serialization.cs @@ -60,6 +60,21 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("extendedLocation"u8); ((IJsonModel)ExtendedLocation).Write(writer, options); } + if (Optional.IsCollectionDefined(Zones)) + { + writer.WritePropertyName("zones"u8); + writer.WriteStartArray(); + foreach (var item in Zones) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Placement)) + { + writer.WritePropertyName("placement"u8); + writer.WriteObjectValue(Placement, options); + } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); if (options.Format != "W" && Optional.IsDefined(StorageAccountProvisioningState)) @@ -202,6 +217,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("routingPreference"u8); writer.WriteObjectValue(RoutingPreference, options); } + if (Optional.IsDefined(DualStackEndpointPreference)) + { + writer.WritePropertyName("dualStackEndpointPreference"u8); + writer.WriteObjectValue(DualStackEndpointPreference, options); + } if (options.Format != "W" && Optional.IsDefined(BlobRestoreStatus)) { writer.WritePropertyName("blobRestoreStatus"u8); @@ -299,6 +319,8 @@ internal static StorageAccountData DeserializeStorageAccountData(JsonElement ele StorageKind? kind = default; ManagedServiceIdentity identity = default; ExtendedLocation extendedLocation = default; + IList zones = default; + Placement placement = default; IDictionary tags = default; AzureLocation location = default; ResourceIdentifier id = default; @@ -332,6 +354,7 @@ internal static StorageAccountData DeserializeStorageAccountData(JsonElement ele LargeFileSharesState? largeFileSharesState = default; IReadOnlyList privateEndpointConnections = default; StorageRoutingPreference routingPreference = default; + DualStackEndpointPreference dualStackEndpointPreference = default; BlobRestoreStatus blobRestoreStatus = default; bool? allowBlobPublicAccess = default; StorageMinimumTlsVersion? minimumTlsVersion = default; @@ -386,6 +409,29 @@ internal static StorageAccountData DeserializeStorageAccountData(JsonElement ele extendedLocation = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), options, AzureResourceManagerStorageContext.Default); continue; } + if (property.NameEquals("zones"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + zones = array; + continue; + } + if (property.NameEquals("placement"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + placement = Placement.DeserializePlacement(property.Value, options); + continue; + } if (property.NameEquals("tags"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -686,6 +732,15 @@ internal static StorageAccountData DeserializeStorageAccountData(JsonElement ele routingPreference = StorageRoutingPreference.DeserializeStorageRoutingPreference(property0.Value, options); continue; } + if (property0.NameEquals("dualStackEndpointPreference"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + dualStackEndpointPreference = DualStackEndpointPreference.DeserializeDualStackEndpointPreference(property0.Value, options); + continue; + } if (property0.NameEquals("blobRestoreStatus"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -832,6 +887,8 @@ internal static StorageAccountData DeserializeStorageAccountData(JsonElement ele kind, identity, extendedLocation, + zones ?? new ChangeTrackingList(), + placement, provisioningState, primaryEndpoints, primaryLocation, @@ -859,6 +916,7 @@ internal static StorageAccountData DeserializeStorageAccountData(JsonElement ele largeFileSharesState, privateEndpointConnections ?? new ChangeTrackingList(), routingPreference, + dualStackEndpointPreference, blobRestoreStatus, allowBlobPublicAccess, minimumTlsVersion, @@ -1019,6 +1077,60 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Zones), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" zones: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsCollectionDefined(Zones)) + { + if (Zones.Any()) + { + builder.Append(" zones: "); + builder.AppendLine("["); + foreach (var item in Zones) + { + if (item == null) + { + builder.Append("null"); + continue; + } + if (item.Contains(Environment.NewLine)) + { + builder.AppendLine(" '''"); + builder.AppendLine($"{item}'''"); + } + else + { + builder.AppendLine($" '{item}'"); + } + } + builder.AppendLine(" ]"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("ZonePlacementPolicy", out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" placement: "); + builder.AppendLine("{"); + builder.Append(" zonePlacementPolicy: "); + builder.AppendLine(propertyOverride); + builder.AppendLine(" }"); + } + else + { + if (Optional.IsDefined(Placement)) + { + builder.Append(" placement: "); + BicepSerializationHelpers.AppendChildObject(builder, Placement, options, 2, false, " placement: "); + } + } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride); if (hasPropertyOverride) { @@ -1477,6 +1589,26 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("PublishIPv6Endpoint", out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" dualStackEndpointPreference: "); + builder.AppendLine("{"); + builder.AppendLine(" dualStackEndpointPreference: {"); + builder.Append(" publishIpv6Endpoint: "); + builder.AppendLine(propertyOverride); + builder.AppendLine(" }"); + builder.AppendLine(" }"); + } + else + { + if (Optional.IsDefined(DualStackEndpointPreference)) + { + builder.Append(" dualStackEndpointPreference: "); + BicepSerializationHelpers.AppendChildObject(builder, DualStackEndpointPreference, options, 4, false, " dualStackEndpointPreference: "); + } + } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(BlobRestoreStatus), out propertyOverride); if (hasPropertyOverride) { diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountData.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountData.cs index 62aa804b7eb0..4fe04f009d2d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountData.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountData.cs @@ -56,6 +56,7 @@ public partial class StorageAccountData : TrackedResourceData /// The location. public StorageAccountData(AzureLocation location) : base(location) { + Zones = new ChangeTrackingList(); PrivateEndpointConnections = new ChangeTrackingList(); } @@ -70,6 +71,8 @@ public StorageAccountData(AzureLocation location) : base(location) /// Gets the Kind. /// The identity of the resource. /// The extendedLocation of the resource. + /// Optional. Gets or sets the pinned logical availability zone for the storage account. + /// Optional. Gets or sets the zonal placement details for the storage account. /// Gets the status of the storage account at the time the operation was called. /// Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint. /// Gets the location of the primary data center for the storage account. @@ -97,6 +100,7 @@ public StorageAccountData(AzureLocation location) : base(location) /// Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. /// List of private endpoint connection associated with the specified storage account. /// Maintains information about the network routing choice opted by the user for data transfer. + /// Maintains information about the Internet protocol opted by the user. /// Blob restore status. /// Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is false for this property. /// Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. @@ -112,12 +116,14 @@ public StorageAccountData(AzureLocation location) : base(location) /// This property will be set to true or false on an event of ongoing migration. Default value is null. /// If customer initiated account migration is in progress, the value will be true else it will be null. /// Keeps track of any properties unknown to the library. - internal StorageAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, StorageSku sku, StorageKind? kind, ManagedServiceIdentity identity, ExtendedLocation extendedLocation, StorageAccountProvisioningState? storageAccountProvisioningState, StorageAccountEndpoints primaryEndpoints, AzureLocation? primaryLocation, StorageAccountStatus? statusOfPrimary, DateTimeOffset? lastGeoFailoverOn, AzureLocation? secondaryLocation, StorageAccountStatus? statusOfSecondary, DateTimeOffset? createdOn, StorageCustomDomain customDomain, StorageAccountSasPolicy sasPolicy, StorageAccountKeyPolicy keyPolicy, StorageAccountKeyCreationTime keyCreationTime, StorageAccountEndpoints secondaryEndpoints, StorageAccountEncryption encryption, StorageAccountAccessTier? accessTier, FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, StorageAccountNetworkRuleSet networkRuleSet, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isExtendedGroupEnabled, bool? isHnsEnabled, GeoReplicationStatistics geoReplicationStats, bool? isFailoverInProgress, LargeFileSharesState? largeFileSharesState, IReadOnlyList privateEndpointConnections, StorageRoutingPreference routingPreference, BlobRestoreStatus blobRestoreStatus, bool? allowBlobPublicAccess, StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, StoragePublicNetworkAccess? publicNetworkAccess, ImmutableStorageAccount immutableStorageWithVersioning, AllowedCopyScope? allowedCopyScope, StorageAccountSkuConversionStatus storageAccountSkuConversionStatus, StorageDnsEndpointType? dnsEndpointType, bool? isSkuConversionBlocked, bool? isAccountMigrationInProgress, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + internal StorageAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, StorageSku sku, StorageKind? kind, ManagedServiceIdentity identity, ExtendedLocation extendedLocation, IList zones, Placement placement, StorageAccountProvisioningState? storageAccountProvisioningState, StorageAccountEndpoints primaryEndpoints, AzureLocation? primaryLocation, StorageAccountStatus? statusOfPrimary, DateTimeOffset? lastGeoFailoverOn, AzureLocation? secondaryLocation, StorageAccountStatus? statusOfSecondary, DateTimeOffset? createdOn, StorageCustomDomain customDomain, StorageAccountSasPolicy sasPolicy, StorageAccountKeyPolicy keyPolicy, StorageAccountKeyCreationTime keyCreationTime, StorageAccountEndpoints secondaryEndpoints, StorageAccountEncryption encryption, StorageAccountAccessTier? accessTier, FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication, bool? enableHttpsTrafficOnly, StorageAccountNetworkRuleSet networkRuleSet, bool? isSftpEnabled, bool? isLocalUserEnabled, bool? isExtendedGroupEnabled, bool? isHnsEnabled, GeoReplicationStatistics geoReplicationStats, bool? isFailoverInProgress, LargeFileSharesState? largeFileSharesState, IReadOnlyList privateEndpointConnections, StorageRoutingPreference routingPreference, DualStackEndpointPreference dualStackEndpointPreference, BlobRestoreStatus blobRestoreStatus, bool? allowBlobPublicAccess, StorageMinimumTlsVersion? minimumTlsVersion, bool? allowSharedKeyAccess, bool? isNfsV3Enabled, bool? allowCrossTenantReplication, bool? isDefaultToOAuthAuthentication, StoragePublicNetworkAccess? publicNetworkAccess, ImmutableStorageAccount immutableStorageWithVersioning, AllowedCopyScope? allowedCopyScope, StorageAccountSkuConversionStatus storageAccountSkuConversionStatus, StorageDnsEndpointType? dnsEndpointType, bool? isSkuConversionBlocked, bool? isAccountMigrationInProgress, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; Kind = kind; Identity = identity; ExtendedLocation = extendedLocation; + Zones = zones; + Placement = placement; StorageAccountProvisioningState = storageAccountProvisioningState; PrimaryEndpoints = primaryEndpoints; PrimaryLocation = primaryLocation; @@ -145,6 +151,7 @@ internal StorageAccountData(ResourceIdentifier id, string name, ResourceType res LargeFileSharesState = largeFileSharesState; PrivateEndpointConnections = privateEndpointConnections; RoutingPreference = routingPreference; + DualStackEndpointPreference = dualStackEndpointPreference; BlobRestoreStatus = blobRestoreStatus; AllowBlobPublicAccess = allowBlobPublicAccess; MinimumTlsVersion = minimumTlsVersion; @@ -179,6 +186,24 @@ internal StorageAccountData() /// The extendedLocation of the resource. [WirePath("extendedLocation")] public ExtendedLocation ExtendedLocation { get; set; } + /// Optional. Gets or sets the pinned logical availability zone for the storage account. + [WirePath("zones")] + public IList Zones { get; } + /// Optional. Gets or sets the zonal placement details for the storage account. + internal Placement Placement { get; set; } + /// The availability zone pinning policy for the storage account. + [WirePath("placement.zonePlacementPolicy")] + public ZonePlacementPolicy? ZonePlacementPolicy + { + get => Placement is null ? default : Placement.ZonePlacementPolicy; + set + { + if (Placement is null) + Placement = new Placement(); + Placement.ZonePlacementPolicy = value; + } + } + /// Gets the status of the storage account at the time the operation was called. [WirePath("properties.provisioningState")] public StorageAccountProvisioningState? StorageAccountProvisioningState { get; } @@ -266,6 +291,21 @@ public int? KeyExpirationPeriodInDays /// Maintains information about the network routing choice opted by the user for data transfer. [WirePath("properties.routingPreference")] public StorageRoutingPreference RoutingPreference { get; set; } + /// Maintains information about the Internet protocol opted by the user. + internal DualStackEndpointPreference DualStackEndpointPreference { get; set; } + /// A boolean flag which indicates whether IPv6 storage endpoints are to be published. + [WirePath("properties.dualStackEndpointPreference.publishIpv6Endpoint")] + public bool? PublishIPv6Endpoint + { + get => DualStackEndpointPreference is null ? default : DualStackEndpointPreference.PublishIPv6Endpoint; + set + { + if (DualStackEndpointPreference is null) + DualStackEndpointPreference = new DualStackEndpointPreference(); + DualStackEndpointPreference.PublishIPv6Endpoint = value; + } + } + /// Blob restore status. [WirePath("properties.blobRestoreStatus")] public BlobRestoreStatus BlobRestoreStatus { get; } diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserCollection.cs index 0be58874caef..22cd03f29891 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string username, Ca /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(int? m /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Pageable GetAll(int? maxpagesize /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual async Task> ExistsAsync(string username, Cancellat /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -407,7 +407,7 @@ public virtual Response Exists(string username, CancellationToken cancella /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -452,7 +452,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserResource.cs index 486562bdcb7a..eecbd68ffe48 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountLocalUserResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> UpdateA /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -366,7 +366,7 @@ public virtual ArmOperation Update(WaitUntil wa /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -404,7 +404,7 @@ public virtual async Task> GetKeysAsync(CancellationToke /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -442,7 +442,7 @@ public virtual Response GetKeys(CancellationToken cancellationTok /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -480,7 +480,7 @@ public virtual async Task> Regenerat /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountManagementPolicyResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountManagementPolicyResource.cs index b255283df0b8..e9b163a5a702 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountManagementPolicyResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountManagementPolicyResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetA /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(Cancellation /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountMigrationCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountMigrationCollection.cs index 9658017e3eb0..47ff24d3317c 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountMigrationCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountMigrationCollection.cs @@ -62,7 +62,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -103,7 +103,7 @@ public virtual async Task> GetAsync(St /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual Response Get(StorageAccountMigra /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual async Task> ExistsAsync(StorageAccountMigrationNam /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -222,7 +222,7 @@ public virtual Response Exists(StorageAccountMigrationName migrationName, /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -263,7 +263,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountMigrationResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountMigrationResource.cs index e17e2af3f90c..0c2441e79e80 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountMigrationResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountMigrationResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountResource.cs index e5a63a3ccdd7..89c08db6af8e 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccountResource.cs @@ -140,7 +140,7 @@ public virtual StorageAccountMigrationCollection GetStorageAccountMigrations() /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual async Task> GetStorageA /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -219,7 +219,7 @@ public virtual StoragePrivateEndpointConnectionCollection GetStoragePrivateEndpo /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -250,7 +250,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual ObjectReplicationPolicyCollection GetObjectReplicationPolicies() /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual async Task> GetObjectRe /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -357,7 +357,7 @@ public virtual StorageAccountLocalUserCollection GetStorageAccountLocalUsers() /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -388,7 +388,7 @@ public virtual async Task> GetStorageA /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -426,7 +426,7 @@ public virtual EncryptionScopeCollection GetEncryptionScopes() /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -457,7 +457,7 @@ public virtual async Task> GetEncryptionScopeA /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -502,7 +502,7 @@ public virtual NetworkSecurityPerimeterConfigurationCollection GetNetworkSecurit /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -533,7 +533,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -571,7 +571,7 @@ public virtual StorageTaskAssignmentCollection GetStorageTaskAssignments() /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -602,7 +602,7 @@ public virtual async Task> GetStorageTas /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -633,7 +633,7 @@ public virtual Response GetStorageTaskAssignment( /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -674,7 +674,7 @@ public virtual async Task> GetAsync(StorageAcco /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -715,7 +715,7 @@ public virtual Response Get(StorageAccountExpand? expand /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -759,7 +759,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -803,7 +803,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -845,7 +845,7 @@ public virtual async Task> UpdateAsync(StorageA /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -887,7 +887,7 @@ public virtual Response Update(StorageAccountPatch patch /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -917,7 +917,7 @@ public virtual AsyncPageable GetKeysAsync(StorageListKeyExpan /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -947,7 +947,7 @@ public virtual Pageable GetKeys(StorageListKeyExpand? expand /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -980,7 +980,7 @@ public virtual AsyncPageable RegenerateKeyAsync(StorageAccoun /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1013,7 +1013,7 @@ public virtual Pageable RegenerateKey(StorageAccountRegenerat /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1055,7 +1055,7 @@ public virtual async Task> GetAccountSasAsync(Acco /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1097,7 +1097,7 @@ public virtual Response GetAccountSas(AccountSasContent con /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1139,7 +1139,7 @@ public virtual async Task> GetServiceSasAsync(Serv /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1181,7 +1181,7 @@ public virtual Response GetServiceSas(ServiceSasContent con /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1224,7 +1224,7 @@ public virtual async Task FailoverAsync(WaitUntil waitUntil, Stora /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1267,7 +1267,7 @@ public virtual ArmOperation Failover(WaitUntil waitUntil, StorageAccountFailover /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1313,7 +1313,7 @@ public virtual async Task EnableHierarchicalNamespaceAsync(WaitUnt /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1359,7 +1359,7 @@ public virtual ArmOperation EnableHierarchicalNamespace(WaitUntil waitUntil, str /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1401,7 +1401,7 @@ public virtual async Task AbortHierarchicalNamespaceMigrationAsync /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1443,7 +1443,7 @@ public virtual ArmOperation AbortHierarchicalNamespaceMigration(WaitUntil waitUn /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1489,7 +1489,7 @@ public virtual async Task CustomerInitiatedMigrationAsync(WaitUnti /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1535,7 +1535,7 @@ public virtual ArmOperation CustomerInitiatedMigration(WaitUntil waitUntil, Stor /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1573,7 +1573,7 @@ public virtual async Task RevokeUserDelegationKeysAsync(CancellationTo /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1611,7 +1611,7 @@ public virtual Response RevokeUserDelegationKeys(CancellationToken cancellationT /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// @@ -1636,7 +1636,7 @@ public virtual AsyncPageable GetPrivateLinkResou /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// @@ -1661,7 +1661,7 @@ public virtual Pageable GetPrivateLinkResources( /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// @@ -1689,7 +1689,7 @@ public virtual AsyncPageable GetStorageTaskAssignment /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// @@ -1717,7 +1717,7 @@ public virtual Pageable GetStorageTaskAssignmentsInst /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1779,7 +1779,7 @@ public virtual async Task> AddTagAsync(string k /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1841,7 +1841,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1898,7 +1898,7 @@ public virtual async Task> SetTagsAsync(IDictio /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1955,7 +1955,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -2015,7 +2015,7 @@ public virtual async Task> RemoveTagAsync(strin /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionCollection.cs index 208f661032c9..388ef2285d33 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUp /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string pri /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsy /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual Pageable GetAll(Cancell /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -357,7 +357,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -400,7 +400,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -445,7 +445,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionResource.cs index e5e630f42c15..10a2d7fd780e 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StoragePrivateEndpointConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancellati /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueCollection.cs index 176301fe26e8..3d80a726798f 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string queueN /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string queueName, Cancellation /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int? maxpagesize /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? maxpagesize = null, st /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string queueName, Cancella /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string queueName, CancellationToken cancell /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueResource.cs index 355771c62d4c..a52e523ba171 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueueResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(StorageQue /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageTaskAssignmentCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageTaskAssignmentCollection.cs index 462c8f3d95a7..212b963755b9 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageTaskAssignmentCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageTaskAssignmentCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string storageTaskAss /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(int? max /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual Pageable GetAll(int? maxpagesize = /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -357,7 +357,7 @@ public virtual async Task> ExistsAsync(string storageTaskAssignme /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -400,7 +400,7 @@ public virtual Response Exists(string storageTaskAssignmentName, Cancellat /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -445,7 +445,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageTaskAssignmentResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageTaskAssignmentResource.cs index 624fc3adcfdd..914e2a4d1c56 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageTaskAssignmentResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageTaskAssignmentResource.cs @@ -107,7 +107,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -147,7 +147,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual ArmOperation Update(WaitUntil wait /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// @@ -391,7 +391,7 @@ public virtual AsyncPageable GetStorageTaskAssignment /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableCollection.cs index 5238bab6ae7b..978e253b0243 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateAsync(WaitU /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, s /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string tableName, Ca /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string tableName, CancellationToken c /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken cancel /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken cancellationToke /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string tableName, Cancella /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string tableName, CancellationToken cancell /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfExistsAsync(stri /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableResource.cs index 93557abb52e9..56600377107a 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationToken ca /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellationToken = /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(TableData data, C /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableServiceResource.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableServiceResource.cs index 46793fee9ed5..4932413f5c6b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableServiceResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableServiceResource.cs @@ -107,7 +107,7 @@ public virtual TableCollection GetTables() /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -138,7 +138,7 @@ public virtual async Task> GetTableAsync(string tableNam /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual Response GetTable(string tableName, CancellationTo /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -249,7 +249,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource @@ -297,7 +297,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2024-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/autorest.md b/sdk/storage/Azure.ResourceManager.Storage/src/autorest.md index 2dd7fd95a412..74b5e160ecb3 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/autorest.md +++ b/sdk/storage/Azure.ResourceManager.Storage/src/autorest.md @@ -6,7 +6,7 @@ Run `dotnet build /t:GenerateCode` to generate code. azure-arm: true csharp: true namespace: Azure.ResourceManager.Storage -require: https://github.com/Azure/azure-rest-api-specs/blob/2219e4e4e0409bcb88a2b82e8febe1a3baecaf18/specification/storage/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/ba99beec358a40ee08dae7f12f6a989aad6ce6d1/specification/storage/resource-manager/readme.md #tag: package-2024-01 output-folder: $(this-folder)/Generated clear-output-folder: true @@ -171,6 +171,7 @@ rename-mapping: BlobInventoryPolicyRule.enabled: IsEnabled BlobInventoryPolicySchema.enabled: IsEnabled ActiveDirectoryProperties: StorageActiveDirectoryProperties + ActiveDirectoryProperties.domainGuid: ActiveDirectoryDomainGuid AccountType: ActiveDirectoryAccountType StorageAccount.properties.failoverInProgress: IsFailoverInProgress StorageAccount.properties.isNfsV3Enabled: IsNfsV3Enabled @@ -263,7 +264,9 @@ rename-mapping: StorageTaskReportProperties.finishTime: FinishedOn|date-time TriggerParameters: ExecutionTriggerParameters TriggerParametersUpdate: ExecutionTriggerParametersUpdate - TriggerType: ExecutionTriggerType + TriggerType: TaskExecutionTriggerType + ExecutionTrigger.type: TaskExecutionTriggerType + ExecutionTriggerUpdate.type: TaskExecutionTriggerType ObjectReplicationPolicyPropertiesMetrics.enabled: IsMetricsEnabled AccountLimits: FileServiceAccountLimits AccountUsage: FileServiceAccountUsage diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_BlobContainerCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_BlobContainerCollection.cs index 3b2576978be9..82d86af98a10 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_BlobContainerCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_BlobContainerCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_BlobContainerCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutContainerWithDefaultEncryptionScope() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersPutDefaultEncryptionScope.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersPutDefaultEncryptionScope.json // this example is just showing the usage of "BlobContainers_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task CreateOrUpdate_PutContainerWithDefaultEncryptionScope() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutContainerWithObjectLevelWorm() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersPutObjectLevelWorm.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersPutObjectLevelWorm.json // this example is just showing the usage of "BlobContainers_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -102,7 +102,7 @@ public async Task CreateOrUpdate_PutContainerWithObjectLevelWorm() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutContainers() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersPut.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersPut.json // this example is just showing the usage of "BlobContainers_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -138,7 +138,7 @@ public async Task CreateOrUpdate_PutContainers() [Ignore("Only validating compilation of examples")] public async Task Get_GetBlobContainersGetWithAllowProtectedAppendWritesAll() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersGetWithAllowProtectedAppendWritesAll.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersGetWithAllowProtectedAppendWritesAll.json // this example is just showing the usage of "BlobContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -172,7 +172,7 @@ public async Task Get_GetBlobContainersGetWithAllowProtectedAppendWritesAll() [Ignore("Only validating compilation of examples")] public async Task Get_GetContainers() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersGet.json // this example is just showing the usage of "BlobContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -206,7 +206,7 @@ public async Task Get_GetContainers() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListContainers() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersList.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersList.json // this example is just showing the usage of "BlobContainers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -242,7 +242,7 @@ public async Task GetAll_ListContainers() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListDeletedContainers() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/DeletedBlobContainersList.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/DeletedBlobContainersList.json // this example is just showing the usage of "BlobContainers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -279,7 +279,7 @@ public async Task GetAll_ListDeletedContainers() [Ignore("Only validating compilation of examples")] public async Task Exists_GetBlobContainersGetWithAllowProtectedAppendWritesAll() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersGetWithAllowProtectedAppendWritesAll.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersGetWithAllowProtectedAppendWritesAll.json // this example is just showing the usage of "BlobContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -309,7 +309,7 @@ public async Task Exists_GetBlobContainersGetWithAllowProtectedAppendWritesAll() [Ignore("Only validating compilation of examples")] public async Task Exists_GetContainers() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersGet.json // this example is just showing the usage of "BlobContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -339,7 +339,7 @@ public async Task Exists_GetContainers() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetBlobContainersGetWithAllowProtectedAppendWritesAll() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersGetWithAllowProtectedAppendWritesAll.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersGetWithAllowProtectedAppendWritesAll.json // this example is just showing the usage of "BlobContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -381,7 +381,7 @@ public async Task GetIfExists_GetBlobContainersGetWithAllowProtectedAppendWrites [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetContainers() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersGet.json // this example is just showing the usage of "BlobContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_BlobContainerResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_BlobContainerResource.cs index 42a45149f6b2..51b9ebf43489 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_BlobContainerResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_BlobContainerResource.cs @@ -20,7 +20,7 @@ public partial class Sample_BlobContainerResource [Ignore("Only validating compilation of examples")] public async Task Get_GetBlobContainersGetWithAllowProtectedAppendWritesAll() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersGetWithAllowProtectedAppendWritesAll.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersGetWithAllowProtectedAppendWritesAll.json // this example is just showing the usage of "BlobContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetBlobContainersGetWithAllowProtectedAppendWritesAll() [Ignore("Only validating compilation of examples")] public async Task Get_GetContainers() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersGet.json // this example is just showing the usage of "BlobContainers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetContainers() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteContainers() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersDelete.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersDelete.json // this example is just showing the usage of "BlobContainers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -109,7 +109,7 @@ public async Task Delete_DeleteContainers() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateContainers() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersPatch.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersPatch.json // this example is just showing the usage of "BlobContainers_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -148,7 +148,7 @@ public async Task Update_UpdateContainers() [Ignore("Only validating compilation of examples")] public async Task SetLegalHold_SetLegalHoldContainers() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersSetLegalHold.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersSetLegalHold.json // this example is just showing the usage of "BlobContainers_SetLegalHold" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -176,7 +176,7 @@ public async Task SetLegalHold_SetLegalHoldContainers() [Ignore("Only validating compilation of examples")] public async Task SetLegalHold_SetLegalHoldContainersWithAllowProtectedAppendWritesAll() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersSetLegalHoldAllowProtectedAppendWritesAll.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersSetLegalHoldAllowProtectedAppendWritesAll.json // this example is just showing the usage of "BlobContainers_SetLegalHold" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -207,7 +207,7 @@ public async Task SetLegalHold_SetLegalHoldContainersWithAllowProtectedAppendWri [Ignore("Only validating compilation of examples")] public async Task ClearLegalHold_ClearLegalHoldContainers() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersClearLegalHold.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersClearLegalHold.json // this example is just showing the usage of "BlobContainers_ClearLegalHold" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -235,7 +235,7 @@ public async Task ClearLegalHold_ClearLegalHoldContainers() [Ignore("Only validating compilation of examples")] public async Task Lease_AcquireALeaseOnAContainer() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersLease_Acquire.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersLease_Acquire.json // this example is just showing the usage of "BlobContainers_Lease" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -269,7 +269,7 @@ public async Task Lease_AcquireALeaseOnAContainer() [Ignore("Only validating compilation of examples")] public async Task Lease_BreakALeaseOnAContainer() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersLease_Break.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersLease_Break.json // this example is just showing the usage of "BlobContainers_Lease" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -303,7 +303,7 @@ public async Task Lease_BreakALeaseOnAContainer() [Ignore("Only validating compilation of examples")] public async Task EnableVersionLevelImmutability_VersionLevelWormContainerMigration() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/ObjectLevelWormContainerMigration.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/ObjectLevelWormContainerMigration.json // this example is just showing the usage of "BlobContainers_ObjectLevelWorm" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_BlobInventoryPolicyResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_BlobInventoryPolicyResource.cs index 078f6b14fa9f..ddd8c076767a 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_BlobInventoryPolicyResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_BlobInventoryPolicyResource.cs @@ -20,7 +20,7 @@ public partial class Sample_BlobInventoryPolicyResource [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetBlobInventoryPolicy() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetBlobInventoryPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetBlobInventoryPolicy.json // this example is just showing the usage of "BlobInventoryPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_StorageAccountGetBlobInventoryPolicy() [Ignore("Only validating compilation of examples")] public async Task Delete_StorageAccountDeleteBlobInventoryPolicy() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountDeleteBlobInventoryPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountDeleteBlobInventoryPolicy.json // this example is just showing the usage of "BlobInventoryPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_StorageAccountDeleteBlobInventoryPolicy() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountSetBlobInventoryPolicy() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetBlobInventoryPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountSetBlobInventoryPolicy.json // this example is just showing the usage of "BlobInventoryPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task CreateOrUpdate_StorageAccountSetBlobInventoryPolicy() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountSetBlobInventoryPolicyIncludeDeleteAndNewSchemaForHnsAccount() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetBlobInventoryPolicyIncludeDeleteAndNewSchemaForHnsAccount.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountSetBlobInventoryPolicyIncludeDeleteAndNewSchemaForHnsAccount.json // this example is just showing the usage of "BlobInventoryPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -179,7 +179,7 @@ public async Task CreateOrUpdate_StorageAccountSetBlobInventoryPolicyIncludeDele [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountSetBlobInventoryPolicyIncludeDeleteAndNewSchemaForNonHnsAccount() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetBlobInventoryPolicyIncludeDeleteAndNewSchemaForNonHnsAccount.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountSetBlobInventoryPolicyIncludeDeleteAndNewSchemaForNonHnsAccount.json // this example is just showing the usage of "BlobInventoryPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_BlobServiceResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_BlobServiceResource.cs index 6b4705b8a7dd..ad8c86743564 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_BlobServiceResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_BlobServiceResource.cs @@ -20,7 +20,7 @@ public partial class Sample_BlobServiceResource [Ignore("Only validating compilation of examples")] public async Task Get_GetBlobServices() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobServicesGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobServicesGet.json // this example is just showing the usage of "BlobServices_GetServiceProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetBlobServices() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_BlobServicesPutAllowPermanentDelete() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobServicesPutAllowPermanentDelete.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobServicesPutAllowPermanentDelete.json // this example is just showing the usage of "BlobServices_SetServiceProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task CreateOrUpdate_BlobServicesPutAllowPermanentDelete() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_BlobServicesPutLastAccessTimeBasedTracking() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobServicesPutLastAccessTimeBasedTracking.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobServicesPutLastAccessTimeBasedTracking.json // this example is just showing the usage of "BlobServices_SetServiceProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -131,7 +131,7 @@ public async Task CreateOrUpdate_BlobServicesPutLastAccessTimeBasedTracking() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutBlobServices() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobServicesPut.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobServicesPut.json // this example is just showing the usage of "BlobServices_SetServiceProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_DeletedAccountCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_DeletedAccountCollection.cs index 3a11216195ab..dc4cdd80a800 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_DeletedAccountCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_DeletedAccountCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_DeletedAccountCollection [Ignore("Only validating compilation of examples")] public async Task Get_DeletedAccountGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/DeletedAccountGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/DeletedAccountGet.json // this example is just showing the usage of "DeletedAccounts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_DeletedAccountGet() [Ignore("Only validating compilation of examples")] public async Task Exists_DeletedAccountGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/DeletedAccountGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/DeletedAccountGet.json // this example is just showing the usage of "DeletedAccounts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Exists_DeletedAccountGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_DeletedAccountGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/DeletedAccountGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/DeletedAccountGet.json // this example is just showing the usage of "DeletedAccounts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_DeletedAccountResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_DeletedAccountResource.cs index 203f52ded5e6..cf7dff4040ee 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_DeletedAccountResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_DeletedAccountResource.cs @@ -19,7 +19,7 @@ public partial class Sample_DeletedAccountResource [Ignore("Only validating compilation of examples")] public async Task Get_DeletedAccountGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/DeletedAccountGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/DeletedAccountGet.json // this example is just showing the usage of "DeletedAccounts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_EncryptionScopeCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_EncryptionScopeCollection.cs index 1a6459c4bd9d..0259ce4662a6 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_EncryptionScopeCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_EncryptionScopeCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_EncryptionScopeCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountPutEncryptionScope() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountPutEncryptionScope.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountPutEncryptionScope.json // this example is just showing the usage of "EncryptionScopes_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task CreateOrUpdate_StorageAccountPutEncryptionScope() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountPutEncryptionScopeWithInfrastructureEncryption() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountPutEncryptionScopeWithInfrastructureEncryption.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountPutEncryptionScopeWithInfrastructureEncryption.json // this example is just showing the usage of "EncryptionScopes_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task CreateOrUpdate_StorageAccountPutEncryptionScopeWithInfrastruct [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetEncryptionScope() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetEncryptionScope.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetEncryptionScope.json // this example is just showing the usage of "EncryptionScopes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task Get_StorageAccountGetEncryptionScope() [Ignore("Only validating compilation of examples")] public async Task GetAll_StorageAccountEncryptionScopeList() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountEncryptionScopeList.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountEncryptionScopeList.json // this example is just showing the usage of "EncryptionScopes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -164,7 +164,7 @@ public async Task GetAll_StorageAccountEncryptionScopeList() [Ignore("Only validating compilation of examples")] public async Task Exists_StorageAccountGetEncryptionScope() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetEncryptionScope.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetEncryptionScope.json // this example is just showing the usage of "EncryptionScopes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -194,7 +194,7 @@ public async Task Exists_StorageAccountGetEncryptionScope() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_StorageAccountGetEncryptionScope() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetEncryptionScope.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetEncryptionScope.json // this example is just showing the usage of "EncryptionScopes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_EncryptionScopeResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_EncryptionScopeResource.cs index 952319419ae5..f3ceb060a4c1 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_EncryptionScopeResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_EncryptionScopeResource.cs @@ -20,7 +20,7 @@ public partial class Sample_EncryptionScopeResource [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetEncryptionScope() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetEncryptionScope.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetEncryptionScope.json // this example is just showing the usage of "EncryptionScopes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_StorageAccountGetEncryptionScope() [Ignore("Only validating compilation of examples")] public async Task Update_StorageAccountPatchEncryptionScope() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountPatchEncryptionScope.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountPatchEncryptionScope.json // this example is just showing the usage of "EncryptionScopes_Patch" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_FileServiceResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_FileServiceResource.cs index ee2026954e9f..8892a498c553 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_FileServiceResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_FileServiceResource.cs @@ -20,7 +20,7 @@ public partial class Sample_FileServiceResource [Ignore("Only validating compilation of examples")] public async Task Get_GetFileServices() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileServicesGet.json // this example is just showing the usage of "FileServices_GetServiceProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetFileServices() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutFileServices() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesPut.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileServicesPut.json // this example is just showing the usage of "FileServices_SetServiceProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task CreateOrUpdate_PutFileServices() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutFileServicesEnableSMBMultichannel() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesPut_EnableSMBMultichannel.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileServicesPut_EnableSMBMultichannel.json // this example is just showing the usage of "FileServices_SetServiceProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -104,9 +104,12 @@ public async Task CreateOrUpdate_PutFileServicesEnableSMBMultichannel() // invoke the operation FileServiceData data = new FileServiceData { - ProtocolSmbSetting = new SmbSetting + ProtocolSettings = new ProtocolSettings { - IsMultiChannelEnabled = true, + SmbSetting = new SmbSetting + { + IsMultiChannelEnabled = true, + }, }, }; ArmOperation lro = await fileService.CreateOrUpdateAsync(WaitUntil.Completed, data); @@ -123,7 +126,7 @@ public async Task CreateOrUpdate_PutFileServicesEnableSMBMultichannel() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutFileServicesEnableSecureSmbFeatures() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesPut_EnableSecureSmbFeatures.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileServicesPut_EnableSecureSmbFeatures.json // this example is just showing the usage of "FileServices_SetServiceProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -142,12 +145,57 @@ public async Task CreateOrUpdate_PutFileServicesEnableSecureSmbFeatures() // invoke the operation FileServiceData data = new FileServiceData { - ProtocolSmbSetting = new SmbSetting + ProtocolSettings = new ProtocolSettings { - Versions = "SMB2.1;SMB3.0;SMB3.1.1", - AuthenticationMethods = "NTLMv2;Kerberos", - KerberosTicketEncryption = "RC4-HMAC;AES-256", - ChannelEncryption = "AES-128-CCM;AES-128-GCM;AES-256-GCM", + SmbSetting = new SmbSetting + { + Versions = "SMB2.1;SMB3.0;SMB3.1.1", + AuthenticationMethods = "NTLMv2;Kerberos", + KerberosTicketEncryption = "RC4-HMAC;AES-256", + ChannelEncryption = "AES-128-CCM;AES-128-GCM;AES-256-GCM", + }, + }, + }; + ArmOperation lro = await fileService.CreateOrUpdateAsync(WaitUntil.Completed, data); + FileServiceResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + FileServiceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_PutFileServicesEncryptionInTransitRequired() + { + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileServicesPut_EncryptionInTransitRequired.json + // this example is just showing the usage of "FileServices_SetServiceProperties" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this FileServiceResource created on azure + // for more information of creating FileServiceResource, please refer to the document of FileServiceResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "res4410"; + string accountName = "sto8607"; + ResourceIdentifier fileServiceResourceId = FileServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); + FileServiceResource fileService = client.GetFileServiceResource(fileServiceResourceId); + + // invoke the operation + FileServiceData data = new FileServiceData + { + ProtocolSettings = new ProtocolSettings + { + SmbSetting = new SmbSetting + { + Required = true, + }, + Required = true, }, }; ArmOperation lro = await fileService.CreateOrUpdateAsync(WaitUntil.Completed, data); diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_FileServiceUsageResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_FileServiceUsageResource.cs index 83a0ed2d121e..d6d2ff8e5598 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_FileServiceUsageResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_FileServiceUsageResource.cs @@ -19,7 +19,7 @@ public partial class Sample_FileServiceUsageResource [Ignore("Only validating compilation of examples")] public async Task Get_GetFileServiceUsage() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileServicesGetUsage.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileServicesGetUsage.json // this example is just showing the usage of "FileServices_GetServiceUsage" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_FileShareCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_FileShareCollection.cs index a5c71f919578..a39156149771 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_FileShareCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_FileShareCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_FileShareCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNFSShares() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPut_NFS.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesPut_NFS.json // this example is just showing the usage of "FileShares_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task CreateOrUpdate_CreateNFSShares() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutShares() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPut.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesPut.json // this example is just showing the usage of "FileShares_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task CreateOrUpdate_PutShares() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutSharesWithAccessTier() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPut_AccessTier.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesPut_AccessTier.json // this example is just showing the usage of "FileShares_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +134,7 @@ public async Task CreateOrUpdate_PutSharesWithAccessTier() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutSharesWithPaidBursting() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPut_PaidBursting.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesPut_PaidBursting.json // this example is just showing the usage of "FileShares_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task CreateOrUpdate_PutSharesWithPaidBursting() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutSharesProvisionedV2() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPut_ProvisionedV2.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesPut_ProvisionedV2.json // this example is just showing the usage of "FileShares_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -219,7 +219,7 @@ public async Task CreateOrUpdate_PutSharesProvisionedV2() [Ignore("Only validating compilation of examples")] public async Task Get_GetSharePaidBursting() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_PaidBursting.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet_PaidBursting.json // this example is just showing the usage of "FileShares_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -253,7 +253,7 @@ public async Task Get_GetSharePaidBursting() [Ignore("Only validating compilation of examples")] public async Task Get_GetShareProvisionedV2() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_ProvisionedV2.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet_ProvisionedV2.json // this example is just showing the usage of "FileShares_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -287,7 +287,7 @@ public async Task Get_GetShareProvisionedV2() [Ignore("Only validating compilation of examples")] public async Task Get_GetShareStats() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_Stats.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet_Stats.json // this example is just showing the usage of "FileShares_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -322,7 +322,7 @@ public async Task Get_GetShareStats() [Ignore("Only validating compilation of examples")] public async Task Get_GetShares() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet.json // this example is just showing the usage of "FileShares_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -356,7 +356,7 @@ public async Task Get_GetShares() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListDeletedShares() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/DeletedFileSharesList.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/DeletedFileSharesList.json // this example is just showing the usage of "FileShares_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -393,7 +393,7 @@ public async Task GetAll_ListDeletedShares() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListShareSnapshots() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileShareSnapshotsList.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileShareSnapshotsList.json // this example is just showing the usage of "FileShares_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -430,7 +430,7 @@ public async Task GetAll_ListShareSnapshots() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListShares() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesList.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesList.json // this example is just showing the usage of "FileShares_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -466,7 +466,7 @@ public async Task GetAll_ListShares() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSharesPaidBursting() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesList_PaidBursting.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesList_PaidBursting.json // this example is just showing the usage of "FileShares_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -502,7 +502,7 @@ public async Task GetAll_ListSharesPaidBursting() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSharesProvisionedV2() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesList_ProvisionedV2.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesList_ProvisionedV2.json // this example is just showing the usage of "FileShares_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -538,7 +538,7 @@ public async Task GetAll_ListSharesProvisionedV2() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSharePaidBursting() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_PaidBursting.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet_PaidBursting.json // this example is just showing the usage of "FileShares_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -568,7 +568,7 @@ public async Task Exists_GetSharePaidBursting() [Ignore("Only validating compilation of examples")] public async Task Exists_GetShareProvisionedV2() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_ProvisionedV2.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet_ProvisionedV2.json // this example is just showing the usage of "FileShares_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -598,7 +598,7 @@ public async Task Exists_GetShareProvisionedV2() [Ignore("Only validating compilation of examples")] public async Task Exists_GetShareStats() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_Stats.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet_Stats.json // this example is just showing the usage of "FileShares_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -629,7 +629,7 @@ public async Task Exists_GetShareStats() [Ignore("Only validating compilation of examples")] public async Task Exists_GetShares() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet.json // this example is just showing the usage of "FileShares_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -659,7 +659,7 @@ public async Task Exists_GetShares() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSharePaidBursting() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_PaidBursting.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet_PaidBursting.json // this example is just showing the usage of "FileShares_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -701,7 +701,7 @@ public async Task GetIfExists_GetSharePaidBursting() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetShareProvisionedV2() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_ProvisionedV2.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet_ProvisionedV2.json // this example is just showing the usage of "FileShares_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -743,7 +743,7 @@ public async Task GetIfExists_GetShareProvisionedV2() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetShareStats() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_Stats.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet_Stats.json // this example is just showing the usage of "FileShares_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -786,7 +786,7 @@ public async Task GetIfExists_GetShareStats() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetShares() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet.json // this example is just showing the usage of "FileShares_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_FileShareResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_FileShareResource.cs index c1baa0784c98..226c99140a24 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_FileShareResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_FileShareResource.cs @@ -20,7 +20,7 @@ public partial class Sample_FileShareResource [Ignore("Only validating compilation of examples")] public async Task Get_GetSharePaidBursting() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_PaidBursting.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet_PaidBursting.json // this example is just showing the usage of "FileShares_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetSharePaidBursting() [Ignore("Only validating compilation of examples")] public async Task Get_GetShareProvisionedV2() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_ProvisionedV2.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet_ProvisionedV2.json // this example is just showing the usage of "FileShares_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetShareProvisionedV2() [Ignore("Only validating compilation of examples")] public async Task Get_GetShareStats() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet_Stats.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet_Stats.json // this example is just showing the usage of "FileShares_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Get_GetShareStats() [Ignore("Only validating compilation of examples")] public async Task Get_GetShares() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesGet.json // this example is just showing the usage of "FileShares_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +145,7 @@ public async Task Get_GetShares() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteShares() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesDelete.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesDelete.json // this example is just showing the usage of "FileShares_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -172,7 +172,7 @@ public async Task Delete_DeleteShares() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateShareAcls() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileShareAclsPatch.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileShareAclsPatch.json // this example is just showing the usage of "FileShares_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -216,7 +216,7 @@ public async Task Update_UpdateShareAcls() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateSharePaidBursting() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPatch_PaidBursting.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesPatch_PaidBursting.json // this example is just showing the usage of "FileShares_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -256,7 +256,7 @@ public async Task Update_UpdateSharePaidBursting() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateShareProvisionedV2() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPatch_ProvisionedV2.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesPatch_ProvisionedV2.json // this example is just showing the usage of "FileShares_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -293,7 +293,7 @@ public async Task Update_UpdateShareProvisionedV2() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateShares() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesPatch.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesPatch.json // this example is just showing the usage of "FileShares_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -331,7 +331,7 @@ public async Task Update_UpdateShares() [Ignore("Only validating compilation of examples")] public async Task Restore_RestoreShares() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesRestore.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesRestore.json // this example is just showing the usage of "FileShares_Restore" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -359,7 +359,7 @@ public async Task Restore_RestoreShares() [Ignore("Only validating compilation of examples")] public async Task Lease_AcquireALeaseOnAShare() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesLease_Acquire.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesLease_Acquire.json // this example is just showing the usage of "FileShares_Lease" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -393,7 +393,7 @@ public async Task Lease_AcquireALeaseOnAShare() [Ignore("Only validating compilation of examples")] public async Task Lease_BreakALeaseOnAShare() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/FileSharesLease_Break.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/FileSharesLease_Break.json // this example is just showing the usage of "FileShares_Lease" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_ImmutabilityPolicyResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_ImmutabilityPolicyResource.cs index ebec0fca72c3..1075a110d24d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_ImmutabilityPolicyResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_ImmutabilityPolicyResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ImmutabilityPolicyResource [Ignore("Only validating compilation of examples")] public async Task Get_GetImmutabilityPolicy() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersGetImmutabilityPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersGetImmutabilityPolicy.json // this example is just showing the usage of "BlobContainers_GetImmutabilityPolicy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_GetImmutabilityPolicy() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteImmutabilityPolicy() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersDeleteImmutabilityPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersDeleteImmutabilityPolicy.json // this example is just showing the usage of "BlobContainers_DeleteImmutabilityPolicy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Delete_DeleteImmutabilityPolicy() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateImmutabilityPolicy() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersPutImmutabilityPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersPutImmutabilityPolicy.json // this example is just showing the usage of "BlobContainers_CreateOrUpdateImmutabilityPolicy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task CreateOrUpdate_CreateOrUpdateImmutabilityPolicy() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateImmutabilityPolicyWithAllowProtectedAppendWritesAll() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersPutImmutabilityPolicyAllowProtectedAppendWritesAll.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersPutImmutabilityPolicyAllowProtectedAppendWritesAll.json // this example is just showing the usage of "BlobContainers_CreateOrUpdateImmutabilityPolicy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -157,7 +157,7 @@ public async Task CreateOrUpdate_CreateOrUpdateImmutabilityPolicyWithAllowProtec [Ignore("Only validating compilation of examples")] public async Task LockImmutabilityPolicy_LockImmutabilityPolicy() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersLockImmutabilityPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersLockImmutabilityPolicy.json // this example is just showing the usage of "BlobContainers_LockImmutabilityPolicy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -189,7 +189,7 @@ public async Task LockImmutabilityPolicy_LockImmutabilityPolicy() [Ignore("Only validating compilation of examples")] public async Task ExtendImmutabilityPolicy_ExtendImmutabilityPolicy() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobContainersExtendImmutabilityPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobContainersExtendImmutabilityPolicy.json // this example is just showing the usage of "BlobContainers_ExtendImmutabilityPolicy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_NetworkSecurityPerimeterConfigurationCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_NetworkSecurityPerimeterConfigurationCollection.cs index ae8dfd1d6723..c1466e36fbca 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_NetworkSecurityPerimeterConfigurationCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_NetworkSecurityPerimeterConfigurationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkSecurityPerimeterConfigurationCollection [Ignore("Only validating compilation of examples")] public async Task Get_NetworkSecurityPerimeterConfigurationGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/NetworkSecurityPerimeterConfigurationGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/NetworkSecurityPerimeterConfigurationGet.json // this example is just showing the usage of "NetworkSecurityPerimeterConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_NetworkSecurityPerimeterConfigurationGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_NetworkSecurityPerimeterConfigurationList() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/NetworkSecurityPerimeterConfigurationList.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/NetworkSecurityPerimeterConfigurationList.json // this example is just showing the usage of "NetworkSecurityPerimeterConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task GetAll_NetworkSecurityPerimeterConfigurationList() [Ignore("Only validating compilation of examples")] public async Task Exists_NetworkSecurityPerimeterConfigurationGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/NetworkSecurityPerimeterConfigurationGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/NetworkSecurityPerimeterConfigurationGet.json // this example is just showing the usage of "NetworkSecurityPerimeterConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Exists_NetworkSecurityPerimeterConfigurationGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_NetworkSecurityPerimeterConfigurationGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/NetworkSecurityPerimeterConfigurationGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/NetworkSecurityPerimeterConfigurationGet.json // this example is just showing the usage of "NetworkSecurityPerimeterConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_NetworkSecurityPerimeterConfigurationResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_NetworkSecurityPerimeterConfigurationResource.cs index 9738a7b4e555..baee7da1dd73 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_NetworkSecurityPerimeterConfigurationResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_NetworkSecurityPerimeterConfigurationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkSecurityPerimeterConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Get_NetworkSecurityPerimeterConfigurationGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/NetworkSecurityPerimeterConfigurationGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/NetworkSecurityPerimeterConfigurationGet.json // this example is just showing the usage of "NetworkSecurityPerimeterConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_NetworkSecurityPerimeterConfigurationGet() [Ignore("Only validating compilation of examples")] public async Task Reconcile_NetworkSecurityPerimeterConfigurationReconcile() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/NetworkSecurityPerimeterConfigurationReconcile.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/NetworkSecurityPerimeterConfigurationReconcile.json // this example is just showing the usage of "NetworkSecurityPerimeterConfigurations_Reconcile" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_ObjectReplicationPolicyCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_ObjectReplicationPolicyCollection.cs index a6844e36ae72..264b09c4bb08 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_ObjectReplicationPolicyCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_ObjectReplicationPolicyCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ObjectReplicationPolicyCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountCreateObjectReplicationPolicyOnDestination() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateObjectReplicationPolicyOnDestination.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreateObjectReplicationPolicyOnDestination.json // this example is just showing the usage of "ObjectReplicationPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -68,7 +68,7 @@ public async Task CreateOrUpdate_StorageAccountCreateObjectReplicationPolicyOnDe [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountCreateObjectReplicationPolicyOnSource() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateObjectReplicationPolicyOnSource.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreateObjectReplicationPolicyOnSource.json // this example is just showing the usage of "ObjectReplicationPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task CreateOrUpdate_StorageAccountCreateObjectReplicationPolicyOnSo [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountUpdateObjectReplicationPolicyOnDestination() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdateObjectReplicationPolicyOnDestination.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountUpdateObjectReplicationPolicyOnDestination.json // this example is just showing the usage of "ObjectReplicationPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -167,7 +167,7 @@ public async Task CreateOrUpdate_StorageAccountUpdateObjectReplicationPolicyOnDe [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountUpdateObjectReplicationPolicyOnSource() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdateObjectReplicationPolicyOnSource.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountUpdateObjectReplicationPolicyOnSource.json // this example is just showing the usage of "ObjectReplicationPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -219,7 +219,7 @@ public async Task CreateOrUpdate_StorageAccountUpdateObjectReplicationPolicyOnSo [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetObjectReplicationPolicies() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetObjectReplicationPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetObjectReplicationPolicy.json // this example is just showing the usage of "ObjectReplicationPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -253,7 +253,7 @@ public async Task Get_StorageAccountGetObjectReplicationPolicies() [Ignore("Only validating compilation of examples")] public async Task GetAll_StorageAccountListObjectReplicationPolicies() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListObjectReplicationPolicies.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountListObjectReplicationPolicies.json // this example is just showing the usage of "ObjectReplicationPolicies_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -289,7 +289,7 @@ public async Task GetAll_StorageAccountListObjectReplicationPolicies() [Ignore("Only validating compilation of examples")] public async Task Exists_StorageAccountGetObjectReplicationPolicies() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetObjectReplicationPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetObjectReplicationPolicy.json // this example is just showing the usage of "ObjectReplicationPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -319,7 +319,7 @@ public async Task Exists_StorageAccountGetObjectReplicationPolicies() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_StorageAccountGetObjectReplicationPolicies() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetObjectReplicationPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetObjectReplicationPolicy.json // this example is just showing the usage of "ObjectReplicationPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_ObjectReplicationPolicyResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_ObjectReplicationPolicyResource.cs index fefc4fed5ca7..c48191e39b1d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_ObjectReplicationPolicyResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_ObjectReplicationPolicyResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ObjectReplicationPolicyResource [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetObjectReplicationPolicies() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetObjectReplicationPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetObjectReplicationPolicy.json // this example is just showing the usage of "ObjectReplicationPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_StorageAccountGetObjectReplicationPolicies() [Ignore("Only validating compilation of examples")] public async Task Delete_StorageAccountDeleteObjectReplicationPolicies() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountDeleteObjectReplicationPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountDeleteObjectReplicationPolicy.json // this example is just showing the usage of "ObjectReplicationPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_StorageAccountDeleteObjectReplicationPolicies() [Ignore("Only validating compilation of examples")] public async Task Update_StorageAccountCreateObjectReplicationPolicyOnDestination() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateObjectReplicationPolicyOnDestination.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreateObjectReplicationPolicyOnDestination.json // this example is just showing the usage of "ObjectReplicationPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Update_StorageAccountCreateObjectReplicationPolicyOnDestinatio [Ignore("Only validating compilation of examples")] public async Task Update_StorageAccountCreateObjectReplicationPolicyOnSource() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateObjectReplicationPolicyOnSource.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreateObjectReplicationPolicyOnSource.json // this example is just showing the usage of "ObjectReplicationPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -170,7 +170,7 @@ public async Task Update_StorageAccountCreateObjectReplicationPolicyOnSource() [Ignore("Only validating compilation of examples")] public async Task Update_StorageAccountUpdateObjectReplicationPolicyOnDestination() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdateObjectReplicationPolicyOnDestination.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountUpdateObjectReplicationPolicyOnDestination.json // this example is just showing the usage of "ObjectReplicationPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -216,7 +216,7 @@ public async Task Update_StorageAccountUpdateObjectReplicationPolicyOnDestinatio [Ignore("Only validating compilation of examples")] public async Task Update_StorageAccountUpdateObjectReplicationPolicyOnSource() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdateObjectReplicationPolicyOnSource.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountUpdateObjectReplicationPolicyOnSource.json // this example is just showing the usage of "ObjectReplicationPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_QueueServiceResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_QueueServiceResource.cs index b1cd8d31b809..a357167c5fe1 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_QueueServiceResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_QueueServiceResource.cs @@ -20,7 +20,7 @@ public partial class Sample_QueueServiceResource [Ignore("Only validating compilation of examples")] public async Task Get_QueueServicesGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueServicesGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueServicesGet.json // this example is just showing the usage of "QueueServices_GetServiceProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_QueueServicesGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_QueueServicesPut() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueServicesPut.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueServicesPut.json // this example is just showing the usage of "QueueServices_SetServiceProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountCollection.cs index ac69057508c5..7634b9def45e 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_StorageAccountCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_NfsV3AccountCreate() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/NfsV3AccountCreate.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/NfsV3AccountCreate.json // this example is just showing the usage of "StorageAccounts_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -70,7 +70,7 @@ public async Task CreateOrUpdate_NfsV3AccountCreate() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountCreate() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreate.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreate.json // this example is just showing the usage of "StorageAccounts_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -148,7 +148,7 @@ public async Task CreateOrUpdate_StorageAccountCreate() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountCreateAllowedCopyScopeToAAD() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateAllowedCopyScopeToAAD.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreateAllowedCopyScopeToAAD.json // this example is just showing the usage of "StorageAccounts_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -221,7 +221,7 @@ public async Task CreateOrUpdate_StorageAccountCreateAllowedCopyScopeToAAD() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountCreateAllowedCopyScopeToPrivateLink() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateAllowedCopyScopeToPrivateLink.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreateAllowedCopyScopeToPrivateLink.json // this example is just showing the usage of "StorageAccounts_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -294,7 +294,7 @@ public async Task CreateOrUpdate_StorageAccountCreateAllowedCopyScopeToPrivateLi [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountCreateDisallowPublicNetworkAccess() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateDisallowPublicNetworkAccess.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreateDisallowPublicNetworkAccess.json // this example is just showing the usage of "StorageAccounts_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -371,7 +371,7 @@ public async Task CreateOrUpdate_StorageAccountCreateDisallowPublicNetworkAccess [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountCreateDnsEndpointTypeToAzureDnsZone() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateDnsEndpointTypeToAzureDnsZone.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreateDnsEndpointTypeToAzureDnsZone.json // this example is just showing the usage of "StorageAccounts_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -450,7 +450,7 @@ public async Task CreateOrUpdate_StorageAccountCreateDnsEndpointTypeToAzureDnsZo [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountCreateDnsEndpointTypeToStandard() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateDnsEndpointTypeToStandard.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreateDnsEndpointTypeToStandard.json // this example is just showing the usage of "StorageAccounts_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -529,7 +529,7 @@ public async Task CreateOrUpdate_StorageAccountCreateDnsEndpointTypeToStandard() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountCreateEnablePublicNetworkAccess() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateEnablePublicNetworkAccess.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreateEnablePublicNetworkAccess.json // this example is just showing the usage of "StorageAccounts_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -606,7 +606,7 @@ public async Task CreateOrUpdate_StorageAccountCreateEnablePublicNetworkAccess() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountCreatePremiumBlockBlobStorage() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreatePremiumBlockBlobStorage.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreatePremiumBlockBlobStorage.json // this example is just showing the usage of "StorageAccounts_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -668,7 +668,7 @@ public async Task CreateOrUpdate_StorageAccountCreatePremiumBlockBlobStorage() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountCreateUserAssignedEncryptionIdentityWithCMK() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateUserAssignedEncryptionIdentityWithCMK.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreateUserAssignedEncryptionIdentityWithCMK.json // this example is just showing the usage of "StorageAccounts_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -739,7 +739,7 @@ public async Task CreateOrUpdate_StorageAccountCreateUserAssignedEncryptionIdent [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountCreateUserAssignedIdentityWithFederatedIdentityClientId() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateUserAssignedIdentityWithFederatedIdentityClientId.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreateUserAssignedIdentityWithFederatedIdentityClientId.json // this example is just showing the usage of "StorageAccounts_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -811,7 +811,7 @@ public async Task CreateOrUpdate_StorageAccountCreateUserAssignedIdentityWithFed [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountCreateWithImmutabilityPolicy() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCreateWithImmutabilityPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreateWithImmutabilityPolicy.json // this example is just showing the usage of "StorageAccounts_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -858,11 +858,169 @@ public async Task CreateOrUpdate_StorageAccountCreateWithImmutabilityPolicy() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_StorageAccountCreatePlacement() + { + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreate_placement.json + // this example is just showing the usage of "StorageAccounts_Create" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "res9101"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this StorageAccountResource + StorageAccountCollection collection = resourceGroupResource.GetStorageAccounts(); + + // invoke the operation + string accountName = "sto4445"; + StorageAccountCreateOrUpdateContent content = new StorageAccountCreateOrUpdateContent(new StorageSku(StorageSkuName.StandardGrs), StorageKind.Storage, new AzureLocation("eastus")) + { + ExtendedLocation = new ExtendedLocation + { + Name = "losangeles001", + }, + ZonePlacementPolicy = ZonePlacementPolicy.Any, + Tags = +{ +["key1"] = "value1", +["key2"] = "value2" +}, + SasPolicy = new StorageAccountSasPolicy("1.15:59:59", ExpirationAction.Log), + KeyExpirationPeriodInDays = 20, + Encryption = new StorageAccountEncryption + { + Services = new StorageAccountEncryptionServices + { + Blob = new StorageEncryptionService + { + IsEnabled = true, + KeyType = StorageEncryptionKeyType.Account, + }, + File = new StorageEncryptionService + { + IsEnabled = true, + KeyType = StorageEncryptionKeyType.Account, + }, + }, + KeySource = StorageAccountKeySource.Storage, + RequireInfrastructureEncryption = false, + }, + IsSftpEnabled = true, + IsHnsEnabled = true, + RoutingPreference = new StorageRoutingPreference + { + RoutingChoice = StorageRoutingChoice.MicrosoftRouting, + IsMicrosoftEndpointsPublished = true, + IsInternetEndpointsPublished = true, + }, + AllowBlobPublicAccess = false, + MinimumTlsVersion = StorageMinimumTlsVersion.Tls1_2, + AllowSharedKeyAccess = true, + IsDefaultToOAuthAuthentication = false, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, accountName, content); + StorageAccountResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StorageAccountData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_StorageAccountCreateZones() + { + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCreate_zones.json + // this example is just showing the usage of "StorageAccounts_Create" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "res9101"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this StorageAccountResource + StorageAccountCollection collection = resourceGroupResource.GetStorageAccounts(); + + // invoke the operation + string accountName = "sto4445"; + StorageAccountCreateOrUpdateContent content = new StorageAccountCreateOrUpdateContent(new StorageSku(StorageSkuName.StandardGrs), StorageKind.Storage, new AzureLocation("eastus")) + { + ExtendedLocation = new ExtendedLocation + { + Name = "losangeles001", + }, + Zones = { "1" }, + Tags = +{ +["key1"] = "value1", +["key2"] = "value2" +}, + SasPolicy = new StorageAccountSasPolicy("1.15:59:59", ExpirationAction.Log), + KeyExpirationPeriodInDays = 20, + Encryption = new StorageAccountEncryption + { + Services = new StorageAccountEncryptionServices + { + Blob = new StorageEncryptionService + { + IsEnabled = true, + KeyType = StorageEncryptionKeyType.Account, + }, + File = new StorageEncryptionService + { + IsEnabled = true, + KeyType = StorageEncryptionKeyType.Account, + }, + }, + KeySource = StorageAccountKeySource.Storage, + RequireInfrastructureEncryption = false, + }, + IsSftpEnabled = true, + IsHnsEnabled = true, + RoutingPreference = new StorageRoutingPreference + { + RoutingChoice = StorageRoutingChoice.MicrosoftRouting, + IsMicrosoftEndpointsPublished = true, + IsInternetEndpointsPublished = true, + }, + AllowBlobPublicAccess = false, + MinimumTlsVersion = StorageMinimumTlsVersion.Tls1_2, + AllowSharedKeyAccess = true, + IsDefaultToOAuthAuthentication = false, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, accountName, content); + StorageAccountResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StorageAccountData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetAsyncSkuConversionStatus() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetAsyncSkuConversionStatus.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetAsyncSkuConversionStatus.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -895,7 +1053,7 @@ public async Task Get_StorageAccountGetAsyncSkuConversionStatus() [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetProperties() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetProperties.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetProperties.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -928,7 +1086,7 @@ public async Task Get_StorageAccountGetProperties() [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetPropertiesCMKEnabled() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKEnabled.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPropertiesCMKEnabled.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -961,7 +1119,7 @@ public async Task Get_StorageAccountGetPropertiesCMKEnabled() [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetPropertiesCMKVersionExpirationTime() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKVersionExpirationTime.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPropertiesCMKVersionExpirationTime.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -994,7 +1152,7 @@ public async Task Get_StorageAccountGetPropertiesCMKVersionExpirationTime() [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1028,7 +1186,7 @@ public async Task Get_StorageAccountGetPropertiesGeoReplicationStatscanFailoverF [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1062,7 +1220,7 @@ public async Task Get_StorageAccountGetPropertiesGeoReplicationStatscanFailoverT [Ignore("Only validating compilation of examples")] public async Task GetAll_StorageAccountListByResourceGroup() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListByResourceGroup.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountListByResourceGroup.json // this example is just showing the usage of "StorageAccounts_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1097,7 +1255,7 @@ public async Task GetAll_StorageAccountListByResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_StorageAccountGetAsyncSkuConversionStatus() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetAsyncSkuConversionStatus.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetAsyncSkuConversionStatus.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1126,7 +1284,7 @@ public async Task Exists_StorageAccountGetAsyncSkuConversionStatus() [Ignore("Only validating compilation of examples")] public async Task Exists_StorageAccountGetProperties() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetProperties.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetProperties.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1155,7 +1313,7 @@ public async Task Exists_StorageAccountGetProperties() [Ignore("Only validating compilation of examples")] public async Task Exists_StorageAccountGetPropertiesCMKEnabled() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKEnabled.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPropertiesCMKEnabled.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1184,7 +1342,7 @@ public async Task Exists_StorageAccountGetPropertiesCMKEnabled() [Ignore("Only validating compilation of examples")] public async Task Exists_StorageAccountGetPropertiesCMKVersionExpirationTime() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKVersionExpirationTime.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPropertiesCMKVersionExpirationTime.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1213,7 +1371,7 @@ public async Task Exists_StorageAccountGetPropertiesCMKVersionExpirationTime() [Ignore("Only validating compilation of examples")] public async Task Exists_StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1243,7 +1401,7 @@ public async Task Exists_StorageAccountGetPropertiesGeoReplicationStatscanFailov [Ignore("Only validating compilation of examples")] public async Task Exists_StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1273,7 +1431,7 @@ public async Task Exists_StorageAccountGetPropertiesGeoReplicationStatscanFailov [Ignore("Only validating compilation of examples")] public async Task GetIfExists_StorageAccountGetAsyncSkuConversionStatus() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetAsyncSkuConversionStatus.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetAsyncSkuConversionStatus.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1314,7 +1472,7 @@ public async Task GetIfExists_StorageAccountGetAsyncSkuConversionStatus() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_StorageAccountGetProperties() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetProperties.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetProperties.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1355,7 +1513,7 @@ public async Task GetIfExists_StorageAccountGetProperties() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_StorageAccountGetPropertiesCMKEnabled() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKEnabled.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPropertiesCMKEnabled.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1396,7 +1554,7 @@ public async Task GetIfExists_StorageAccountGetPropertiesCMKEnabled() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_StorageAccountGetPropertiesCMKVersionExpirationTime() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKVersionExpirationTime.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPropertiesCMKVersionExpirationTime.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1437,7 +1595,7 @@ public async Task GetIfExists_StorageAccountGetPropertiesCMKVersionExpirationTim [Ignore("Only validating compilation of examples")] public async Task GetIfExists_StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1479,7 +1637,7 @@ public async Task GetIfExists_StorageAccountGetPropertiesGeoReplicationStatscanF [Ignore("Only validating compilation of examples")] public async Task GetIfExists_StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountLocalUserCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountLocalUserCollection.cs index 8acf78961fdc..6cc83d235c3d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountLocalUserCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountLocalUserCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_StorageAccountLocalUserCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateLocalUser() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserCreate.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserCreate.json // this example is just showing the usage of "LocalUsers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -68,7 +68,7 @@ public async Task CreateOrUpdate_CreateLocalUser() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNFSv3EnabledLocalUser() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserCreateNFSv3Enabled.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserCreateNFSv3Enabled.json // this example is just showing the usage of "LocalUsers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -108,7 +108,7 @@ public async Task CreateOrUpdate_CreateNFSv3EnabledLocalUser() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateLocalUser() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserUpdate.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserUpdate.json // this example is just showing the usage of "LocalUsers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -154,7 +154,7 @@ public async Task CreateOrUpdate_UpdateLocalUser() [Ignore("Only validating compilation of examples")] public async Task Get_GetLocalUser() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserGet.json // this example is just showing the usage of "LocalUsers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -188,7 +188,7 @@ public async Task Get_GetLocalUser() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListLocalUsers() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUsersList.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUsersList.json // this example is just showing the usage of "LocalUsers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -224,7 +224,7 @@ public async Task GetAll_ListLocalUsers() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListNFSv3EnabledLocalUsers() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUsersListNFSv3Enabled.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUsersListNFSv3Enabled.json // this example is just showing the usage of "LocalUsers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -261,7 +261,7 @@ public async Task GetAll_ListNFSv3EnabledLocalUsers() [Ignore("Only validating compilation of examples")] public async Task Exists_GetLocalUser() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserGet.json // this example is just showing the usage of "LocalUsers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -291,7 +291,7 @@ public async Task Exists_GetLocalUser() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetLocalUser() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserGet.json // this example is just showing the usage of "LocalUsers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountLocalUserResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountLocalUserResource.cs index 277bde868067..4a7bde0e5fb8 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountLocalUserResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountLocalUserResource.cs @@ -20,7 +20,7 @@ public partial class Sample_StorageAccountLocalUserResource [Ignore("Only validating compilation of examples")] public async Task Get_GetLocalUser() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserGet.json // this example is just showing the usage of "LocalUsers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetLocalUser() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteLocalUser() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserDelete.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserDelete.json // this example is just showing the usage of "LocalUsers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteLocalUser() [Ignore("Only validating compilation of examples")] public async Task Update_CreateLocalUser() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserCreate.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserCreate.json // this example is just showing the usage of "LocalUsers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Update_CreateLocalUser() [Ignore("Only validating compilation of examples")] public async Task Update_CreateNFSv3EnabledLocalUser() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserCreateNFSv3Enabled.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserCreateNFSv3Enabled.json // this example is just showing the usage of "LocalUsers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -160,7 +160,7 @@ public async Task Update_CreateNFSv3EnabledLocalUser() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateLocalUser() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserUpdate.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserUpdate.json // this example is just showing the usage of "LocalUsers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -203,7 +203,7 @@ public async Task Update_UpdateLocalUser() [Ignore("Only validating compilation of examples")] public async Task GetKeys_ListLocalUserKeys() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserListKeys.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserListKeys.json // this example is just showing the usage of "LocalUsers_ListKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -230,7 +230,7 @@ public async Task GetKeys_ListLocalUserKeys() [Ignore("Only validating compilation of examples")] public async Task RegeneratePassword_RegenerateLocalUserPassword() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/LocalUserRegeneratePassword.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/LocalUserRegeneratePassword.json // this example is just showing the usage of "LocalUsers_RegeneratePassword" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountManagementPolicyResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountManagementPolicyResource.cs index 3b196259fefd..bcf811d80f2b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountManagementPolicyResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountManagementPolicyResource.cs @@ -20,7 +20,7 @@ public partial class Sample_StorageAccountManagementPolicyResource [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetManagementPolicies() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetManagementPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetManagementPolicy.json // this example is just showing the usage of "ManagementPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_StorageAccountGetManagementPolicies() [Ignore("Only validating compilation of examples")] public async Task Delete_StorageAccountDeleteManagementPolicies() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountDeleteManagementPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountDeleteManagementPolicy.json // this example is just showing the usage of "ManagementPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_StorageAccountDeleteManagementPolicies() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountSetManagementPolicies() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetManagementPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountSetManagementPolicy.json // this example is just showing the usage of "ManagementPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -171,7 +171,7 @@ public async Task CreateOrUpdate_StorageAccountSetManagementPolicies() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountSetManagementPolicyColdTierActions() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetManagementPolicyColdTierActions.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountSetManagementPolicyColdTierActions.json // this example is just showing the usage of "ManagementPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -247,7 +247,7 @@ public async Task CreateOrUpdate_StorageAccountSetManagementPolicyColdTierAction [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountSetManagementPolicyForBlockAndAppendBlobs() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetManagementPolicyForBlockAndAppendBlobs.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountSetManagementPolicyForBlockAndAppendBlobs.json // this example is just showing the usage of "ManagementPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -309,7 +309,7 @@ public async Task CreateOrUpdate_StorageAccountSetManagementPolicyForBlockAndApp [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountSetManagementPolicyHotTierActions() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetManagementPolicyHotTierActions.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountSetManagementPolicyHotTierActions.json // this example is just showing the usage of "ManagementPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -371,7 +371,7 @@ public async Task CreateOrUpdate_StorageAccountSetManagementPolicyHotTierActions [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountSetManagementPolicyWithSnapshotAndVersion() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetManagementPolicyWithSnapshotAndVersion.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountSetManagementPolicyWithSnapshotAndVersion.json // this example is just showing the usage of "ManagementPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -445,7 +445,7 @@ public async Task CreateOrUpdate_StorageAccountSetManagementPolicyWithSnapshotAn [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountSetManagementPolicyBaseBlobDaysAfterCreationActions() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetManagementPolicy_BaseBlobDaysAfterCreationActions.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountSetManagementPolicy_BaseBlobDaysAfterCreationActions.json // this example is just showing the usage of "ManagementPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -507,7 +507,7 @@ public async Task CreateOrUpdate_StorageAccountSetManagementPolicyBaseBlobDaysAf [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountSetManagementPolicyLastAccessTimeBasedBlobActions() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetManagementPolicy_LastAccessTimeBasedBlobActions.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountSetManagementPolicy_LastAccessTimeBasedBlobActions.json // this example is just showing the usage of "ManagementPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -574,7 +574,7 @@ public async Task CreateOrUpdate_StorageAccountSetManagementPolicyLastAccessTime [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountSetManagementPolicyLastTierChangeTimeActions() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountSetManagementPolicy_LastTierChangeTimeActions.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountSetManagementPolicy_LastTierChangeTimeActions.json // this example is just showing the usage of "ManagementPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountMigrationCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountMigrationCollection.cs index 8be6170e8a7f..b13ee34c0182 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountMigrationCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountMigrationCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_StorageAccountMigrationCollection [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetMigrationFailed() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetMigrationFailed.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetMigrationFailed.json // this example is just showing the usage of "StorageAccounts_GetCustomerInitiatedMigration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_StorageAccountGetMigrationFailed() [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetMigrationInProgress() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetMigrationInProgress.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetMigrationInProgress.json // this example is just showing the usage of "StorageAccounts_GetCustomerInitiatedMigration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Get_StorageAccountGetMigrationInProgress() [Ignore("Only validating compilation of examples")] public async Task Exists_StorageAccountGetMigrationFailed() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetMigrationFailed.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetMigrationFailed.json // this example is just showing the usage of "StorageAccounts_GetCustomerInitiatedMigration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -118,7 +118,7 @@ public async Task Exists_StorageAccountGetMigrationFailed() [Ignore("Only validating compilation of examples")] public async Task Exists_StorageAccountGetMigrationInProgress() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetMigrationInProgress.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetMigrationInProgress.json // this example is just showing the usage of "StorageAccounts_GetCustomerInitiatedMigration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -148,7 +148,7 @@ public async Task Exists_StorageAccountGetMigrationInProgress() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_StorageAccountGetMigrationFailed() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetMigrationFailed.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetMigrationFailed.json // this example is just showing the usage of "StorageAccounts_GetCustomerInitiatedMigration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -190,7 +190,7 @@ public async Task GetIfExists_StorageAccountGetMigrationFailed() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_StorageAccountGetMigrationInProgress() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetMigrationInProgress.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetMigrationInProgress.json // this example is just showing the usage of "StorageAccounts_GetCustomerInitiatedMigration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountMigrationResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountMigrationResource.cs index 354e423f660c..a67a023924a4 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountMigrationResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountMigrationResource.cs @@ -20,7 +20,7 @@ public partial class Sample_StorageAccountMigrationResource [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetMigrationFailed() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetMigrationFailed.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetMigrationFailed.json // this example is just showing the usage of "StorageAccounts_GetCustomerInitiatedMigration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_StorageAccountGetMigrationFailed() [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetMigrationInProgress() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetMigrationInProgress.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetMigrationInProgress.json // this example is just showing the usage of "StorageAccounts_GetCustomerInitiatedMigration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountResource.cs index ff8ef6f7d42f..247c66271cd0 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageAccountResource.cs @@ -21,7 +21,7 @@ public partial class Sample_StorageAccountResource [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetAsyncSkuConversionStatus() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetAsyncSkuConversionStatus.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetAsyncSkuConversionStatus.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_StorageAccountGetAsyncSkuConversionStatus() [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetProperties() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetProperties.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetProperties.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task Get_StorageAccountGetProperties() [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetPropertiesCMKEnabled() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKEnabled.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPropertiesCMKEnabled.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,7 +111,7 @@ public async Task Get_StorageAccountGetPropertiesCMKEnabled() [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetPropertiesCMKVersionExpirationTime() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesCMKVersionExpirationTime.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPropertiesCMKVersionExpirationTime.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -141,7 +141,7 @@ public async Task Get_StorageAccountGetPropertiesCMKVersionExpirationTime() [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverFalse.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -172,7 +172,7 @@ public async Task Get_StorageAccountGetPropertiesGeoReplicationStatscanFailoverF [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPropertiesGeoReplicationStatscanFailoverTrue.json // this example is just showing the usage of "StorageAccounts_GetProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -203,7 +203,7 @@ public async Task Get_StorageAccountGetPropertiesGeoReplicationStatscanFailoverT [Ignore("Only validating compilation of examples")] public async Task Delete_StorageAccountDelete() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountDelete.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountDelete.json // this example is just showing the usage of "StorageAccounts_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -229,7 +229,7 @@ public async Task Delete_StorageAccountDelete() [Ignore("Only validating compilation of examples")] public async Task Update_StorageAccountEnableAD() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountEnableAD.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountEnableAD.json // this example is just showing the usage of "StorageAccounts_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -250,10 +250,12 @@ public async Task Update_StorageAccountEnableAD() { AzureFilesIdentityBasedAuthentication = new FilesIdentityBasedAuthentication(DirectoryServiceOption.AD) { - ActiveDirectoryProperties = new StorageActiveDirectoryProperties("adtest.com", Guid.Parse("aebfc118-9fa9-4732-a21f-d98e41a77ae1")) + ActiveDirectoryProperties = new StorageActiveDirectoryProperties { + DomainName = "adtest.com", NetBiosDomainName = "adtest.com", ForestName = "adtest.com", + ActiveDirectoryDomainGuid = Guid.Parse("aebfc118-9fa9-4732-a21f-d98e41a77ae1"), DomainSid = "S-1-5-21-2400535526-2334094090-2402026252", AzureStorageSid = "S-1-5-21-2400535526-2334094090-2402026252-0012", SamAccountName = "sam12498", @@ -274,7 +276,7 @@ public async Task Update_StorageAccountEnableAD() [Ignore("Only validating compilation of examples")] public async Task Update_StorageAccountEnableCMK() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountEnableCMK.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountEnableCMK.json // this example is just showing the usage of "StorageAccounts_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -326,11 +328,48 @@ public async Task Update_StorageAccountEnableCMK() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_StorageAccountEnableSmbOAuth() + { + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountEnableSmbOAuth.json + // this example is just showing the usage of "StorageAccounts_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageAccountResource created on azure + // for more information of creating StorageAccountResource, please refer to the document of StorageAccountResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "res9407"; + string accountName = "sto8596"; + ResourceIdentifier storageAccountResourceId = StorageAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); + StorageAccountResource storageAccount = client.GetStorageAccountResource(storageAccountResourceId); + + // invoke the operation + StorageAccountPatch patch = new StorageAccountPatch + { + AzureFilesIdentityBasedAuthentication = new FilesIdentityBasedAuthentication(DirectoryServiceOption.None) + { + IsSmbOAuthEnabled = true, + }, + }; + StorageAccountResource result = await storageAccount.UpdateAsync(patch); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StorageAccountData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Update_StorageAccountUpdate() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdate.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountUpdate.json // this example is just showing the usage of "StorageAccounts_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -403,7 +442,7 @@ public async Task Update_StorageAccountUpdate() [Ignore("Only validating compilation of examples")] public async Task Update_StorageAccountUpdateAllowedCopyScopeToAAD() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdateAllowedCopyScopeToAAD.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountUpdateAllowedCopyScopeToAAD.json // this example is just showing the usage of "StorageAccounts_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -473,7 +512,7 @@ public async Task Update_StorageAccountUpdateAllowedCopyScopeToAAD() [Ignore("Only validating compilation of examples")] public async Task Update_StorageAccountUpdateDisablePublicNetworkAccess() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdateDisablePublicNetworkAccess.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountUpdateDisablePublicNetworkAccess.json // this example is just showing the usage of "StorageAccounts_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -539,11 +578,52 @@ public async Task Update_StorageAccountUpdateDisablePublicNetworkAccess() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_StorageAccountUpdateEnableIpv6Features() + { + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountLeverageIPv6Ability.json + // this example is just showing the usage of "StorageAccounts_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageAccountResource created on azure + // for more information of creating StorageAccountResource, please refer to the document of StorageAccountResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "res9407"; + string accountName = "sto8596"; + ResourceIdentifier storageAccountResourceId = StorageAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); + StorageAccountResource storageAccount = client.GetStorageAccountResource(storageAccountResourceId); + + // invoke the operation + StorageAccountPatch patch = new StorageAccountPatch + { + NetworkRuleSet = new StorageAccountNetworkRuleSet(StorageNetworkDefaultAction.Deny) + { + IPv6Rules = {new StorageAccountIPRule("2001:0db8:85a3::/64") +{ +Action = StorageAccountNetworkRuleAction.Allow, +}}, + }, + PublishIPv6Endpoint = true, + }; + StorageAccountResource result = await storageAccount.UpdateAsync(patch); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StorageAccountData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Update_StorageAccountUpdateUserAssignedEncryptionIdentityWithCMK() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdateUserAssignedEncryptionIdentityWithCMK.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountUpdateUserAssignedEncryptionIdentityWithCMK.json // this example is just showing the usage of "StorageAccounts_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -612,7 +692,7 @@ public async Task Update_StorageAccountUpdateUserAssignedEncryptionIdentityWithC [Ignore("Only validating compilation of examples")] public async Task Update_StorageAccountUpdateUserAssignedIdentityWithFederatedIdentityClientId() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdateUserAssignedIdentityWithFederatedIdentityClientId.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountUpdateUserAssignedIdentityWithFederatedIdentityClientId.json // this example is just showing the usage of "StorageAccounts_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -682,7 +762,7 @@ public async Task Update_StorageAccountUpdateUserAssignedIdentityWithFederatedId [Ignore("Only validating compilation of examples")] public async Task Update_StorageAccountUpdateWithImmutabilityPolicy() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountUpdateWithImmutabilityPolicy.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountUpdateWithImmutabilityPolicy.json // this example is just showing the usage of "StorageAccounts_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -721,11 +801,159 @@ public async Task Update_StorageAccountUpdateWithImmutabilityPolicy() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_StorageAccountUpdatePlacement() + { + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountUpdate_placement.json + // this example is just showing the usage of "StorageAccounts_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageAccountResource created on azure + // for more information of creating StorageAccountResource, please refer to the document of StorageAccountResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "res9407"; + string accountName = "sto8596"; + ResourceIdentifier storageAccountResourceId = StorageAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); + StorageAccountResource storageAccount = client.GetStorageAccountResource(storageAccountResourceId); + + // invoke the operation + StorageAccountPatch patch = new StorageAccountPatch + { + ZonePlacementPolicy = ZonePlacementPolicy.Any, + Encryption = new StorageAccountEncryption + { + Services = new StorageAccountEncryptionServices + { + Blob = new StorageEncryptionService + { + IsEnabled = true, + KeyType = StorageEncryptionKeyType.Account, + }, + File = new StorageEncryptionService + { + IsEnabled = true, + KeyType = StorageEncryptionKeyType.Account, + }, + }, + KeySource = StorageAccountKeySource.Storage, + }, + SasPolicy = new StorageAccountSasPolicy("1.15:59:59", ExpirationAction.Log), + KeyExpirationPeriodInDays = 20, + IsSftpEnabled = true, + IsLocalUserEnabled = true, + IsExtendedGroupEnabled = true, + NetworkRuleSet = new StorageAccountNetworkRuleSet(StorageNetworkDefaultAction.Allow) + { + ResourceAccessRules = {new StorageAccountResourceAccessRule +{ +TenantId = Guid.Parse("72f988bf-86f1-41af-91ab-2d7cd011db47"), +ResourceId = new ResourceIdentifier("/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace"), +}}, + }, + RoutingPreference = new StorageRoutingPreference + { + RoutingChoice = StorageRoutingChoice.MicrosoftRouting, + IsMicrosoftEndpointsPublished = true, + IsInternetEndpointsPublished = true, + }, + AllowBlobPublicAccess = false, + MinimumTlsVersion = StorageMinimumTlsVersion.Tls1_2, + AllowSharedKeyAccess = true, + IsDefaultToOAuthAuthentication = false, + }; + StorageAccountResource result = await storageAccount.UpdateAsync(patch); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StorageAccountData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_StorageAccountUpdateZones() + { + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountUpdate_zones.json + // this example is just showing the usage of "StorageAccounts_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageAccountResource created on azure + // for more information of creating StorageAccountResource, please refer to the document of StorageAccountResource + string subscriptionId = "{subscription-id}"; + string resourceGroupName = "res9407"; + string accountName = "sto8596"; + ResourceIdentifier storageAccountResourceId = StorageAccountResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, accountName); + StorageAccountResource storageAccount = client.GetStorageAccountResource(storageAccountResourceId); + + // invoke the operation + StorageAccountPatch patch = new StorageAccountPatch + { + Zones = { "1" }, + Encryption = new StorageAccountEncryption + { + Services = new StorageAccountEncryptionServices + { + Blob = new StorageEncryptionService + { + IsEnabled = true, + KeyType = StorageEncryptionKeyType.Account, + }, + File = new StorageEncryptionService + { + IsEnabled = true, + KeyType = StorageEncryptionKeyType.Account, + }, + }, + KeySource = StorageAccountKeySource.Storage, + }, + SasPolicy = new StorageAccountSasPolicy("1.15:59:59", ExpirationAction.Log), + KeyExpirationPeriodInDays = 20, + IsSftpEnabled = true, + IsLocalUserEnabled = true, + IsExtendedGroupEnabled = true, + NetworkRuleSet = new StorageAccountNetworkRuleSet(StorageNetworkDefaultAction.Allow) + { + ResourceAccessRules = {new StorageAccountResourceAccessRule +{ +TenantId = Guid.Parse("72f988bf-86f1-41af-91ab-2d7cd011db47"), +ResourceId = new ResourceIdentifier("/subscriptions/a7e99807-abbf-4642-bdec-2c809a96a8bc/resourceGroups/res9407/providers/Microsoft.Synapse/workspaces/testworkspace"), +}}, + }, + RoutingPreference = new StorageRoutingPreference + { + RoutingChoice = StorageRoutingChoice.MicrosoftRouting, + IsMicrosoftEndpointsPublished = true, + IsInternetEndpointsPublished = true, + }, + AllowBlobPublicAccess = false, + MinimumTlsVersion = StorageMinimumTlsVersion.Tls1_2, + AllowSharedKeyAccess = true, + IsDefaultToOAuthAuthentication = false, + }; + StorageAccountResource result = await storageAccount.UpdateAsync(patch); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StorageAccountData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task GetKeys_StorageAccountListKeys() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListKeys.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountListKeys.json // this example is just showing the usage of "StorageAccounts_ListKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -754,7 +982,7 @@ public async Task GetKeys_StorageAccountListKeys() [Ignore("Only validating compilation of examples")] public async Task RegenerateKey_StorageAccountRegenerateKerbKey() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountRegenerateKerbKey.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountRegenerateKerbKey.json // this example is just showing the usage of "StorageAccounts_RegenerateKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -784,7 +1012,7 @@ public async Task RegenerateKey_StorageAccountRegenerateKerbKey() [Ignore("Only validating compilation of examples")] public async Task RegenerateKey_StorageAccountRegenerateKey() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountRegenerateKey.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountRegenerateKey.json // this example is just showing the usage of "StorageAccounts_RegenerateKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -814,7 +1042,7 @@ public async Task RegenerateKey_StorageAccountRegenerateKey() [Ignore("Only validating compilation of examples")] public async Task GetAccountSas_StorageAccountListAccountSAS() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListAccountSAS.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountListAccountSAS.json // this example is just showing the usage of "StorageAccounts_ListAccountSas" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -846,7 +1074,7 @@ public async Task GetAccountSas_StorageAccountListAccountSAS() [Ignore("Only validating compilation of examples")] public async Task GetServiceSas_StorageAccountListServiceSAS() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListServiceSAS.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountListServiceSAS.json // this example is just showing the usage of "StorageAccounts_ListServiceSas" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -878,7 +1106,7 @@ public async Task GetServiceSas_StorageAccountListServiceSAS() [Ignore("Only validating compilation of examples")] public async Task Failover_StorageAccountFailover() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountFailover.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountFailover.json // this example is just showing the usage of "StorageAccounts_Failover" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -904,7 +1132,7 @@ public async Task Failover_StorageAccountFailover() [Ignore("Only validating compilation of examples")] public async Task Failover_StorageAccountFailoverPlanned() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountFailoverPlanned.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountFailoverPlanned.json // this example is just showing the usage of "StorageAccounts_Failover" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -931,7 +1159,7 @@ public async Task Failover_StorageAccountFailoverPlanned() [Ignore("Only validating compilation of examples")] public async Task EnableHierarchicalNamespace_StorageAccountHierarchicalNamespaceMigration() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountHierarchicalNamespaceMigration.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountHierarchicalNamespaceMigration.json // this example is just showing the usage of "StorageAccounts_HierarchicalNamespaceMigration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -958,7 +1186,7 @@ public async Task EnableHierarchicalNamespace_StorageAccountHierarchicalNamespac [Ignore("Only validating compilation of examples")] public async Task AbortHierarchicalNamespaceMigration_StorageAccountAbortHierarchicalNamespaceMigration() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountAbortHierarchicalNamespaceMigration.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountAbortHierarchicalNamespaceMigration.json // this example is just showing the usage of "StorageAccounts_AbortHierarchicalNamespaceMigration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -984,7 +1212,7 @@ public async Task AbortHierarchicalNamespaceMigration_StorageAccountAbortHierarc [Ignore("Only validating compilation of examples")] public async Task CustomerInitiatedMigration_StorageAccountPostMigration() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountPostMigration.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountPostMigration.json // this example is just showing the usage of "StorageAccounts_CustomerInitiatedMigration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1011,7 +1239,7 @@ public async Task CustomerInitiatedMigration_StorageAccountPostMigration() [Ignore("Only validating compilation of examples")] public async Task RestoreBlobRanges_BlobRangesRestore() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/BlobRangesRestore.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/BlobRangesRestore.json // this example is just showing the usage of "StorageAccounts_RestoreBlobRanges" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1043,7 +1271,7 @@ public async Task RestoreBlobRanges_BlobRangesRestore() [Ignore("Only validating compilation of examples")] public async Task RevokeUserDelegationKeys_StorageAccountRevokeUserDelegationKeys() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountRevokeUserDelegationKeys.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountRevokeUserDelegationKeys.json // this example is just showing the usage of "StorageAccounts_RevokeUserDelegationKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1069,7 +1297,7 @@ public async Task RevokeUserDelegationKeys_StorageAccountRevokeUserDelegationKey [Ignore("Only validating compilation of examples")] public async Task GetPrivateLinkResources_StorageAccountListPrivateLinkResources() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListPrivateLinkResources.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountListPrivateLinkResources.json // this example is just showing the usage of "PrivateLinkResources_ListByStorageAccount" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -1098,7 +1326,7 @@ public async Task GetPrivateLinkResources_StorageAccountListPrivateLinkResources [Ignore("Only validating compilation of examples")] public async Task GetStorageTaskAssignmentsInstancesReports_ListStorageTaskAssignmentsInstancesReportSummary() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsList/ListStorageTaskAssignmentsInstancesReportSummary.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsList/ListStorageTaskAssignmentsInstancesReportSummary.json // this example is just showing the usage of "StorageTaskAssignmentsInstancesReport_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StoragePrivateEndpointConnectionCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StoragePrivateEndpointConnectionCollection.cs index bf4bb090ee30..f601ce5c8879 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StoragePrivateEndpointConnectionCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StoragePrivateEndpointConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_StoragePrivateEndpointConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageAccountPutPrivateEndpointConnection() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountPutPrivateEndpointConnection.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountPutPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -63,7 +63,7 @@ public async Task CreateOrUpdate_StorageAccountPutPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetPrivateEndpointConnection() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPrivateEndpointConnection.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task Get_StorageAccountGetPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task GetAll_StorageAccountListPrivateEndpointConnections() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListPrivateEndpointConnections.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountListPrivateEndpointConnections.json // this example is just showing the usage of "PrivateEndpointConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task GetAll_StorageAccountListPrivateEndpointConnections() [Ignore("Only validating compilation of examples")] public async Task Exists_StorageAccountGetPrivateEndpointConnection() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPrivateEndpointConnection.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -163,7 +163,7 @@ public async Task Exists_StorageAccountGetPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_StorageAccountGetPrivateEndpointConnection() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPrivateEndpointConnection.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StoragePrivateEndpointConnectionResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StoragePrivateEndpointConnectionResource.cs index bc5b65de4398..f5796c827157 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StoragePrivateEndpointConnectionResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StoragePrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_StoragePrivateEndpointConnectionResource [Ignore("Only validating compilation of examples")] public async Task Get_StorageAccountGetPrivateEndpointConnection() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountGetPrivateEndpointConnection.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_StorageAccountGetPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Delete_StorageAccountDeletePrivateEndpointConnection() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountDeletePrivateEndpointConnection.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountDeletePrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_StorageAccountDeletePrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Update_StorageAccountPutPrivateEndpointConnection() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountPutPrivateEndpointConnection.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountPutPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageQueueCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageQueueCollection.cs index 5700f3c9f394..bce1daa8f098 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageQueueCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageQueueCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_StorageQueueCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_QueueOperationPut() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationPut.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueOperationPut.json // this example is just showing the usage of "Queue_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task CreateOrUpdate_QueueOperationPut() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_QueueOperationPutWithMetadata() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationPutWithMetadata.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueOperationPutWithMetadata.json // this example is just showing the usage of "Queue_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task CreateOrUpdate_QueueOperationPutWithMetadata() [Ignore("Only validating compilation of examples")] public async Task Get_QueueOperationGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueOperationGet.json // this example is just showing the usage of "Queue_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task Get_QueueOperationGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_QueueOperationList() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationList.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueOperationList.json // this example is just showing the usage of "Queue_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -168,7 +168,7 @@ public async Task GetAll_QueueOperationList() [Ignore("Only validating compilation of examples")] public async Task Exists_QueueOperationGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueOperationGet.json // this example is just showing the usage of "Queue_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -198,7 +198,7 @@ public async Task Exists_QueueOperationGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_QueueOperationGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueOperationGet.json // this example is just showing the usage of "Queue_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageQueueResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageQueueResource.cs index 8d73e2d027f6..290aeca229ff 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageQueueResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageQueueResource.cs @@ -19,7 +19,7 @@ public partial class Sample_StorageQueueResource [Ignore("Only validating compilation of examples")] public async Task Get_QueueOperationGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueOperationGet.json // this example is just showing the usage of "Queue_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_QueueOperationGet() [Ignore("Only validating compilation of examples")] public async Task Delete_QueueOperationDelete() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationDelete.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueOperationDelete.json // this example is just showing the usage of "Queue_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -77,7 +77,7 @@ public async Task Delete_QueueOperationDelete() [Ignore("Only validating compilation of examples")] public async Task Update_QueueOperationPatch() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/QueueOperationPatch.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/QueueOperationPatch.json // this example is just showing the usage of "Queue_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageTaskAssignmentCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageTaskAssignmentCollection.cs index 44daf8208a75..a4ccc930a56b 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageTaskAssignmentCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageTaskAssignmentCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_StorageTaskAssignmentCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutStorageTaskAssignment() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/PutStorageTaskAssignment.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsCrud/PutStorageTaskAssignment.json // this example is just showing the usage of "StorageTaskAssignments_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -41,7 +41,7 @@ public async Task CreateOrUpdate_PutStorageTaskAssignment() // invoke the operation string storageTaskAssignmentName = "myassignment1"; - StorageTaskAssignmentData data = new StorageTaskAssignmentData(new StorageTaskAssignmentProperties(new ResourceIdentifier("/subscriptions/1f31ba14-ce16-4281-b9b4-3e78da6e1616/resourceGroups/res4228/providers/Microsoft.StorageActions/storageTasks/mytask1"), true, "My Storage task assignment", new StorageTaskAssignmentExecutionContext(new ExecutionTrigger(ExecutionTriggerType.RunOnce, new ExecutionTriggerParameters + StorageTaskAssignmentData data = new StorageTaskAssignmentData(new StorageTaskAssignmentProperties(new ResourceIdentifier("/subscriptions/1f31ba14-ce16-4281-b9b4-3e78da6e1616/resourceGroups/res4228/providers/Microsoft.StorageActions/storageTasks/mytask1"), true, "My Storage task assignment", new StorageTaskAssignmentExecutionContext(new ExecutionTrigger(TaskExecutionTriggerType.RunOnce, new ExecutionTriggerParameters { StartOn = DateTimeOffset.Parse("2022-11-15T21:52:47.8145095Z"), })) @@ -66,7 +66,7 @@ public async Task CreateOrUpdate_PutStorageTaskAssignment() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutStorageTaskAssignmentRequiredProperties() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/PutStorageTaskAssignmentRequiredProperties.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsCrud/PutStorageTaskAssignmentRequiredProperties.json // this example is just showing the usage of "StorageTaskAssignments_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task CreateOrUpdate_PutStorageTaskAssignmentRequiredProperties() // invoke the operation string storageTaskAssignmentName = "myassignment1"; - StorageTaskAssignmentData data = new StorageTaskAssignmentData(new StorageTaskAssignmentProperties(new ResourceIdentifier("/subscriptions/1f31ba14-ce16-4281-b9b4-3e78da6e1616/resourceGroups/res4228/providers/Microsoft.StorageActions/storageTasks/mytask1"), true, "My Storage task assignment", new StorageTaskAssignmentExecutionContext(new ExecutionTrigger(ExecutionTriggerType.RunOnce, new ExecutionTriggerParameters + StorageTaskAssignmentData data = new StorageTaskAssignmentData(new StorageTaskAssignmentProperties(new ResourceIdentifier("/subscriptions/1f31ba14-ce16-4281-b9b4-3e78da6e1616/resourceGroups/res4228/providers/Microsoft.StorageActions/storageTasks/mytask1"), true, "My Storage task assignment", new StorageTaskAssignmentExecutionContext(new ExecutionTrigger(TaskExecutionTriggerType.RunOnce, new ExecutionTriggerParameters { StartOn = DateTimeOffset.Parse("2022-11-15T21:52:47.8145095Z"), })), new StorageTaskAssignmentReport("container1"))); @@ -105,7 +105,7 @@ public async Task CreateOrUpdate_PutStorageTaskAssignmentRequiredProperties() [Ignore("Only validating compilation of examples")] public async Task Get_GetStorageTaskAssignment() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/GetStorageTaskAssignment.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsCrud/GetStorageTaskAssignment.json // this example is just showing the usage of "StorageTaskAssignments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -139,7 +139,7 @@ public async Task Get_GetStorageTaskAssignment() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListStorageTaskAssignmentsForAccount() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsList/ListStorageTaskAssignmentsForAccount.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsList/ListStorageTaskAssignmentsForAccount.json // this example is just showing the usage of "StorageTaskAssignments_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -175,7 +175,7 @@ public async Task GetAll_ListStorageTaskAssignmentsForAccount() [Ignore("Only validating compilation of examples")] public async Task Exists_GetStorageTaskAssignment() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/GetStorageTaskAssignment.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsCrud/GetStorageTaskAssignment.json // this example is just showing the usage of "StorageTaskAssignments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -205,7 +205,7 @@ public async Task Exists_GetStorageTaskAssignment() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetStorageTaskAssignment() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/GetStorageTaskAssignment.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsCrud/GetStorageTaskAssignment.json // this example is just showing the usage of "StorageTaskAssignments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageTaskAssignmentResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageTaskAssignmentResource.cs index d04a326dc47b..6cafb3d404f5 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageTaskAssignmentResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_StorageTaskAssignmentResource.cs @@ -20,7 +20,7 @@ public partial class Sample_StorageTaskAssignmentResource [Ignore("Only validating compilation of examples")] public async Task Get_GetStorageTaskAssignment() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/GetStorageTaskAssignment.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsCrud/GetStorageTaskAssignment.json // this example is just showing the usage of "StorageTaskAssignments_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetStorageTaskAssignment() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteStorageTaskAssignment() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/DeleteStorageTaskAssignment.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsCrud/DeleteStorageTaskAssignment.json // this example is just showing the usage of "StorageTaskAssignments_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_DeleteStorageTaskAssignment() [Ignore("Only validating compilation of examples")] public async Task Update_PatchStorageTaskAssignment() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsCrud/PatchStorageTaskAssignment.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsCrud/PatchStorageTaskAssignment.json // this example is just showing the usage of "StorageTaskAssignments_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -111,7 +111,7 @@ public async Task Update_PatchStorageTaskAssignment() }, Trigger = new ExecutionTriggerUpdate { - TriggerType = ExecutionTriggerType.RunOnce, + TaskExecutionTriggerType = TaskExecutionTriggerType.RunOnce, Parameters = new ExecutionTriggerParametersUpdate { StartOn = DateTimeOffset.Parse("2022-11-15T21:52:47.8145095Z"), @@ -135,7 +135,7 @@ public async Task Update_PatchStorageTaskAssignment() [Ignore("Only validating compilation of examples")] public async Task GetStorageTaskAssignmentInstancesReports_ListStorageTaskAssignmentInstancesReportSummary() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/storageTaskAssignmentsList/ListStorageTaskAssignmentInstancesReportSummary.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/storageTaskAssignmentsList/ListStorageTaskAssignmentInstancesReportSummary.json // this example is just showing the usage of "StorageTaskAssignmentInstancesReport_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 88e3828aa0b7..a20d8224bc8e 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -17,11 +17,38 @@ namespace Azure.ResourceManager.Storage.Samples { public partial class Sample_SubscriptionResourceExtensions { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetSkus_SKUListWithLocationInfo() + { + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/SKUListWithLocationInfo.json + // this example is just showing the usage of "Skus_List" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "{subscription-id}"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation and iterate over the result + await foreach (StorageSkuInformation item in subscriptionResource.GetSkusAsync()) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine("Succeeded"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task GetSkus_SkuList() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/SKUList.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/SKUList.json // this example is just showing the usage of "Skus_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +75,7 @@ public async Task GetSkus_SkuList() [Ignore("Only validating compilation of examples")] public async Task CheckStorageAccountNameAvailability_StorageAccountCheckNameAvailability() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountCheckNameAvailability.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountCheckNameAvailability.json // this example is just showing the usage of "StorageAccounts_CheckNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -73,7 +100,7 @@ public async Task CheckStorageAccountNameAvailability_StorageAccountCheckNameAva [Ignore("Only validating compilation of examples")] public async Task GetStorageAccounts_StorageAccountList() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountList.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountList.json // this example is just showing the usage of "StorageAccounts_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -104,7 +131,7 @@ public async Task GetStorageAccounts_StorageAccountList() [Ignore("Only validating compilation of examples")] public async Task GetDeletedAccounts_DeletedAccountList() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/DeletedAccountList.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/DeletedAccountList.json // this example is just showing the usage of "DeletedAccounts_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -135,7 +162,7 @@ public async Task GetDeletedAccounts_DeletedAccountList() [Ignore("Only validating compilation of examples")] public async Task GetUsagesByLocation_UsageList() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/StorageAccountListLocationUsage.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/StorageAccountListLocationUsage.json // this example is just showing the usage of "Usages_ListByLocation" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_TableCollection.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_TableCollection.cs index 82fdfdb8ffb4..f4017af250b3 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_TableCollection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_TableCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_TableCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_TableOperationPut() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationPut.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationPut.json // this example is just showing the usage of "Table_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task CreateOrUpdate_TableOperationPut() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_TableOperationPutOrPatchAcls() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationPutOrPatchAcls.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationPutOrPatchAcls.json // this example is just showing the usage of "Table_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -109,7 +109,7 @@ public async Task CreateOrUpdate_TableOperationPutOrPatchAcls() [Ignore("Only validating compilation of examples")] public async Task Get_TableOperationGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationGet.json // this example is just showing the usage of "Table_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -143,7 +143,7 @@ public async Task Get_TableOperationGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_TableOperationList() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationList.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationList.json // this example is just showing the usage of "Table_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -179,7 +179,7 @@ public async Task GetAll_TableOperationList() [Ignore("Only validating compilation of examples")] public async Task Exists_TableOperationGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationGet.json // this example is just showing the usage of "Table_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -209,7 +209,7 @@ public async Task Exists_TableOperationGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_TableOperationGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationGet.json // this example is just showing the usage of "Table_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_TableResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_TableResource.cs index d24b5ebcf6d9..7de3809115ef 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_TableResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_TableResource.cs @@ -20,7 +20,7 @@ public partial class Sample_TableResource [Ignore("Only validating compilation of examples")] public async Task Get_TableOperationGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationGet.json // this example is just showing the usage of "Table_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_TableOperationGet() [Ignore("Only validating compilation of examples")] public async Task Delete_TableOperationDelete() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationDelete.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationDelete.json // this example is just showing the usage of "Table_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_TableOperationDelete() [Ignore("Only validating compilation of examples")] public async Task Update_TableOperationPatch() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationPatch.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationPatch.json // this example is just showing the usage of "Table_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -110,7 +110,7 @@ public async Task Update_TableOperationPatch() [Ignore("Only validating compilation of examples")] public async Task Update_TableOperationPutOrPatchAcls() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableOperationPutOrPatchAcls.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableOperationPutOrPatchAcls.json // this example is just showing the usage of "Table_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_TableServiceResource.cs b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_TableServiceResource.cs index 6c68d402f368..fafac0b41fea 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_TableServiceResource.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/tests/Generated/Samples/Sample_TableServiceResource.cs @@ -20,7 +20,7 @@ public partial class Sample_TableServiceResource [Ignore("Only validating compilation of examples")] public async Task Get_TableServicesGet() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableServicesGet.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableServicesGet.json // this example is just showing the usage of "TableServices_GetServiceProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_TableServicesGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_TableServicesPut() { - // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/examples/TableServicesPut.json + // Generated from example definition: specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/examples/TableServicesPut.json // this example is just showing the usage of "TableServices_SetServiceProperties" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line