diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/api/Azure.ResourceManager.Marketplace.net8.0.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/api/Azure.ResourceManager.Marketplace.net8.0.cs index d751d38b485c..921e10ad032d 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/api/Azure.ResourceManager.Marketplace.net8.0.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/api/Azure.ResourceManager.Marketplace.net8.0.cs @@ -252,6 +252,7 @@ public PrivateStoreOfferData() { } public System.DateTimeOffset? CreatedOn { get { throw null; } } public Azure.ETag? ETag { get { throw null; } set { } } public System.Collections.Generic.IDictionary IconFileUris { get { throw null; } } + public bool? IsStopSell { get { throw null; } } public bool? IsUpdateSuppressedDueToIdempotence { get { throw null; } set { } } public System.DateTimeOffset? ModifiedOn { get { throw null; } } public string OfferDisplayName { get { throw null; } } @@ -273,6 +274,8 @@ public partial class PrivateStoreOfferResource : Azure.ResourceManager.ArmResour protected PrivateStoreOfferResource() { } public virtual Azure.ResourceManager.Marketplace.PrivateStoreOfferData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } + public virtual Azure.Response ContextsView(Azure.ResourceManager.Marketplace.Models.CollectionOffersByAllContextsPayload payload = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ContextsViewAsync(Azure.ResourceManager.Marketplace.Models.CollectionOffersByAllContextsPayload payload = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(System.Guid privateStoreId, System.Guid collectionId, string offerId) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Delete(Azure.ResourceManager.Marketplace.Models.PrivateStoreOperation? payload = default(Azure.ResourceManager.Marketplace.Models.PrivateStoreOperation?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -415,9 +418,15 @@ public static partial class ArmMarketplaceModelFactory public static Azure.ResourceManager.Marketplace.PrivateStoreCollectionInfoData PrivateStoreCollectionInfoData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? collectionId = default(System.Guid?), string collectionName = null, string claim = null, bool? areAllSubscriptionsSelected = default(bool?), bool? areAllItemsApproved = default(bool?), System.DateTimeOffset? approveAllItemsModifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable subscriptionsList = null, bool? isEnabled = default(bool?), long? numberOfOffers = default(long?), System.Collections.Generic.IEnumerable appliedRules = null) { throw null; } public static Azure.ResourceManager.Marketplace.PrivateStoreData PrivateStoreData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Marketplace.Models.PrivateStoreAvailability? availability = default(Azure.ResourceManager.Marketplace.Models.PrivateStoreAvailability?), System.Guid? privateStoreId = default(System.Guid?), Azure.ETag? eTag = default(Azure.ETag?), string privateStoreName = null, System.Guid? tenantId = default(System.Guid?), bool? isGov = default(bool?), System.Collections.Generic.IEnumerable collectionIds = null, System.Collections.Generic.IDictionary branding = null, System.Collections.Generic.IEnumerable recipients = null, bool? sendToAllMarketplaceAdmins = default(bool?)) { throw null; } public static Azure.ResourceManager.Marketplace.Models.PrivateStoreNotificationsState PrivateStoreNotificationsState(System.Collections.Generic.IEnumerable stopSellNotifications = null, System.Collections.Generic.IEnumerable newNotifications = null, System.Collections.Generic.IEnumerable approvalRequests = null) { throw null; } - public static Azure.ResourceManager.Marketplace.PrivateStoreOfferData PrivateStoreOfferData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string uniqueOfferId = null, string offerDisplayName = null, string publisherDisplayName = null, Azure.ETag? eTag = default(Azure.ETag?), System.Guid? privateStoreId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable specificPlanIdsLimitation = null, bool? isUpdateSuppressedDueToIdempotence = default(bool?), System.Collections.Generic.IDictionary iconFileUris = null, System.Collections.Generic.IEnumerable plans = null) { throw null; } - public static Azure.ResourceManager.Marketplace.Models.PrivateStoreOfferResult PrivateStoreOfferResult(string uniqueOfferId = null, string offerDisplayName = null, string publisherDisplayName = null, Azure.ETag? eTag = default(Azure.ETag?), System.Guid? privateStoreId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable specificPlanIdsLimitation = null, bool? isUpdateSuppressedDueToIdempotence = default(bool?), System.Collections.Generic.IReadOnlyDictionary iconFileUris = null, System.Collections.Generic.IEnumerable plans = null) { throw null; } - public static Azure.ResourceManager.Marketplace.Models.PrivateStorePlan PrivateStorePlan(string skuId = null, string planId = null, string planDisplayName = null, Azure.ResourceManager.Marketplace.Models.PrivateStorePlanAccessibility? accessibility = default(Azure.ResourceManager.Marketplace.Models.PrivateStorePlanAccessibility?), string altStackReference = null, string stackType = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Marketplace.PrivateStoreOfferData PrivateStoreOfferData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string uniqueOfferId, string offerDisplayName, string publisherDisplayName, Azure.ETag? eTag, System.Guid? privateStoreId, System.DateTimeOffset? createdOn, System.DateTimeOffset? modifiedOn, System.Collections.Generic.IEnumerable specificPlanIdsLimitation, bool? isUpdateSuppressedDueToIdempotence, System.Collections.Generic.IDictionary iconFileUris, System.Collections.Generic.IEnumerable plans) { throw null; } + public static Azure.ResourceManager.Marketplace.PrivateStoreOfferData PrivateStoreOfferData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string uniqueOfferId = null, string offerDisplayName = null, string publisherDisplayName = null, Azure.ETag? eTag = default(Azure.ETag?), System.Guid? privateStoreId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable specificPlanIdsLimitation = null, bool? isUpdateSuppressedDueToIdempotence = default(bool?), System.Collections.Generic.IDictionary iconFileUris = null, bool? isStopSell = default(bool?), System.Collections.Generic.IEnumerable plans = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Marketplace.Models.PrivateStoreOfferResult PrivateStoreOfferResult(string uniqueOfferId, string offerDisplayName, string publisherDisplayName, Azure.ETag? eTag, System.Guid? privateStoreId, System.DateTimeOffset? createdOn, System.DateTimeOffset? modifiedOn, System.Collections.Generic.IEnumerable specificPlanIdsLimitation, bool? isUpdateSuppressedDueToIdempotence, System.Collections.Generic.IReadOnlyDictionary iconFileUris, System.Collections.Generic.IEnumerable plans) { throw null; } + public static Azure.ResourceManager.Marketplace.Models.PrivateStoreOfferResult PrivateStoreOfferResult(string uniqueOfferId = null, string offerDisplayName = null, string publisherDisplayName = null, Azure.ETag? eTag = default(Azure.ETag?), System.Guid? privateStoreId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable specificPlanIdsLimitation = null, bool? isUpdateSuppressedDueToIdempotence = default(bool?), System.Collections.Generic.IReadOnlyDictionary iconFileUris = null, bool? isStopSell = default(bool?), System.Collections.Generic.IEnumerable plans = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Marketplace.Models.PrivateStorePlan PrivateStorePlan(string skuId, string planId, string planDisplayName, Azure.ResourceManager.Marketplace.Models.PrivateStorePlanAccessibility? accessibility, string altStackReference, string stackType) { throw null; } + public static Azure.ResourceManager.Marketplace.Models.PrivateStorePlan PrivateStorePlan(string skuId = null, string planId = null, string planDisplayName = null, Azure.ResourceManager.Marketplace.Models.PrivateStorePlanAccessibility? accessibility = default(Azure.ResourceManager.Marketplace.Models.PrivateStorePlanAccessibility?), string altStackReference = null, string stackType = null, bool? isStopSell = default(bool?)) { throw null; } public static Azure.ResourceManager.Marketplace.Models.PrivateStorePlanDetails PrivateStorePlanDetails(string planId = null, Azure.ResourceManager.Marketplace.Models.PrivateStorePlanStatus? status = default(Azure.ResourceManager.Marketplace.Models.PrivateStorePlanStatus?), System.BinaryData requestDate = null, string justification = null, string subscriptionId = null, string subscriptionName = null) { throw null; } public static Azure.ResourceManager.Marketplace.Models.QueryApprovalRequestResult QueryApprovalRequestResult(string uniqueOfferId = null, System.Collections.Generic.IReadOnlyDictionary plansDetails = null, Azure.ETag? eTag = default(Azure.ETag?), long? messageCode = default(long?)) { throw null; } public static Azure.ResourceManager.Marketplace.Models.QueryApprovedPlansDetails QueryApprovedPlansDetails(string planId = null, System.Collections.Generic.IEnumerable subscriptionIds = null, bool? allSubscriptions = default(bool?)) { throw null; } @@ -758,6 +767,7 @@ internal PrivateStoreOfferResult() { } public System.DateTimeOffset? CreatedOn { get { throw null; } } public Azure.ETag? ETag { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary IconFileUris { get { throw null; } } + public bool? IsStopSell { get { throw null; } } public bool? IsUpdateSuppressedDueToIdempotence { get { throw null; } } public System.DateTimeOffset? ModifiedOn { get { throw null; } } public string OfferDisplayName { get { throw null; } } @@ -798,6 +808,7 @@ public partial class PrivateStorePlan : System.ClientModel.Primitives.IJsonModel public PrivateStorePlan() { } public Azure.ResourceManager.Marketplace.Models.PrivateStorePlanAccessibility? Accessibility { get { throw null; } set { } } public string AltStackReference { get { throw null; } } + public bool? IsStopSell { get { throw null; } } public string PlanDisplayName { get { throw null; } } public string PlanId { get { throw null; } } public string SkuId { get { throw null; } } diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/api/Azure.ResourceManager.Marketplace.netstandard2.0.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/api/Azure.ResourceManager.Marketplace.netstandard2.0.cs index d751d38b485c..921e10ad032d 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/api/Azure.ResourceManager.Marketplace.netstandard2.0.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/api/Azure.ResourceManager.Marketplace.netstandard2.0.cs @@ -252,6 +252,7 @@ public PrivateStoreOfferData() { } public System.DateTimeOffset? CreatedOn { get { throw null; } } public Azure.ETag? ETag { get { throw null; } set { } } public System.Collections.Generic.IDictionary IconFileUris { get { throw null; } } + public bool? IsStopSell { get { throw null; } } public bool? IsUpdateSuppressedDueToIdempotence { get { throw null; } set { } } public System.DateTimeOffset? ModifiedOn { get { throw null; } } public string OfferDisplayName { get { throw null; } } @@ -273,6 +274,8 @@ public partial class PrivateStoreOfferResource : Azure.ResourceManager.ArmResour protected PrivateStoreOfferResource() { } public virtual Azure.ResourceManager.Marketplace.PrivateStoreOfferData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } + public virtual Azure.Response ContextsView(Azure.ResourceManager.Marketplace.Models.CollectionOffersByAllContextsPayload payload = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ContextsViewAsync(Azure.ResourceManager.Marketplace.Models.CollectionOffersByAllContextsPayload payload = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(System.Guid privateStoreId, System.Guid collectionId, string offerId) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Delete(Azure.ResourceManager.Marketplace.Models.PrivateStoreOperation? payload = default(Azure.ResourceManager.Marketplace.Models.PrivateStoreOperation?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -415,9 +418,15 @@ public static partial class ArmMarketplaceModelFactory public static Azure.ResourceManager.Marketplace.PrivateStoreCollectionInfoData PrivateStoreCollectionInfoData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Guid? collectionId = default(System.Guid?), string collectionName = null, string claim = null, bool? areAllSubscriptionsSelected = default(bool?), bool? areAllItemsApproved = default(bool?), System.DateTimeOffset? approveAllItemsModifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable subscriptionsList = null, bool? isEnabled = default(bool?), long? numberOfOffers = default(long?), System.Collections.Generic.IEnumerable appliedRules = null) { throw null; } public static Azure.ResourceManager.Marketplace.PrivateStoreData PrivateStoreData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Marketplace.Models.PrivateStoreAvailability? availability = default(Azure.ResourceManager.Marketplace.Models.PrivateStoreAvailability?), System.Guid? privateStoreId = default(System.Guid?), Azure.ETag? eTag = default(Azure.ETag?), string privateStoreName = null, System.Guid? tenantId = default(System.Guid?), bool? isGov = default(bool?), System.Collections.Generic.IEnumerable collectionIds = null, System.Collections.Generic.IDictionary branding = null, System.Collections.Generic.IEnumerable recipients = null, bool? sendToAllMarketplaceAdmins = default(bool?)) { throw null; } public static Azure.ResourceManager.Marketplace.Models.PrivateStoreNotificationsState PrivateStoreNotificationsState(System.Collections.Generic.IEnumerable stopSellNotifications = null, System.Collections.Generic.IEnumerable newNotifications = null, System.Collections.Generic.IEnumerable approvalRequests = null) { throw null; } - public static Azure.ResourceManager.Marketplace.PrivateStoreOfferData PrivateStoreOfferData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string uniqueOfferId = null, string offerDisplayName = null, string publisherDisplayName = null, Azure.ETag? eTag = default(Azure.ETag?), System.Guid? privateStoreId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable specificPlanIdsLimitation = null, bool? isUpdateSuppressedDueToIdempotence = default(bool?), System.Collections.Generic.IDictionary iconFileUris = null, System.Collections.Generic.IEnumerable plans = null) { throw null; } - public static Azure.ResourceManager.Marketplace.Models.PrivateStoreOfferResult PrivateStoreOfferResult(string uniqueOfferId = null, string offerDisplayName = null, string publisherDisplayName = null, Azure.ETag? eTag = default(Azure.ETag?), System.Guid? privateStoreId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable specificPlanIdsLimitation = null, bool? isUpdateSuppressedDueToIdempotence = default(bool?), System.Collections.Generic.IReadOnlyDictionary iconFileUris = null, System.Collections.Generic.IEnumerable plans = null) { throw null; } - public static Azure.ResourceManager.Marketplace.Models.PrivateStorePlan PrivateStorePlan(string skuId = null, string planId = null, string planDisplayName = null, Azure.ResourceManager.Marketplace.Models.PrivateStorePlanAccessibility? accessibility = default(Azure.ResourceManager.Marketplace.Models.PrivateStorePlanAccessibility?), string altStackReference = null, string stackType = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Marketplace.PrivateStoreOfferData PrivateStoreOfferData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string uniqueOfferId, string offerDisplayName, string publisherDisplayName, Azure.ETag? eTag, System.Guid? privateStoreId, System.DateTimeOffset? createdOn, System.DateTimeOffset? modifiedOn, System.Collections.Generic.IEnumerable specificPlanIdsLimitation, bool? isUpdateSuppressedDueToIdempotence, System.Collections.Generic.IDictionary iconFileUris, System.Collections.Generic.IEnumerable plans) { throw null; } + public static Azure.ResourceManager.Marketplace.PrivateStoreOfferData PrivateStoreOfferData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string uniqueOfferId = null, string offerDisplayName = null, string publisherDisplayName = null, Azure.ETag? eTag = default(Azure.ETag?), System.Guid? privateStoreId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable specificPlanIdsLimitation = null, bool? isUpdateSuppressedDueToIdempotence = default(bool?), System.Collections.Generic.IDictionary iconFileUris = null, bool? isStopSell = default(bool?), System.Collections.Generic.IEnumerable plans = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Marketplace.Models.PrivateStoreOfferResult PrivateStoreOfferResult(string uniqueOfferId, string offerDisplayName, string publisherDisplayName, Azure.ETag? eTag, System.Guid? privateStoreId, System.DateTimeOffset? createdOn, System.DateTimeOffset? modifiedOn, System.Collections.Generic.IEnumerable specificPlanIdsLimitation, bool? isUpdateSuppressedDueToIdempotence, System.Collections.Generic.IReadOnlyDictionary iconFileUris, System.Collections.Generic.IEnumerable plans) { throw null; } + public static Azure.ResourceManager.Marketplace.Models.PrivateStoreOfferResult PrivateStoreOfferResult(string uniqueOfferId = null, string offerDisplayName = null, string publisherDisplayName = null, Azure.ETag? eTag = default(Azure.ETag?), System.Guid? privateStoreId = default(System.Guid?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? modifiedOn = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable specificPlanIdsLimitation = null, bool? isUpdateSuppressedDueToIdempotence = default(bool?), System.Collections.Generic.IReadOnlyDictionary iconFileUris = null, bool? isStopSell = default(bool?), System.Collections.Generic.IEnumerable plans = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.Marketplace.Models.PrivateStorePlan PrivateStorePlan(string skuId, string planId, string planDisplayName, Azure.ResourceManager.Marketplace.Models.PrivateStorePlanAccessibility? accessibility, string altStackReference, string stackType) { throw null; } + public static Azure.ResourceManager.Marketplace.Models.PrivateStorePlan PrivateStorePlan(string skuId = null, string planId = null, string planDisplayName = null, Azure.ResourceManager.Marketplace.Models.PrivateStorePlanAccessibility? accessibility = default(Azure.ResourceManager.Marketplace.Models.PrivateStorePlanAccessibility?), string altStackReference = null, string stackType = null, bool? isStopSell = default(bool?)) { throw null; } public static Azure.ResourceManager.Marketplace.Models.PrivateStorePlanDetails PrivateStorePlanDetails(string planId = null, Azure.ResourceManager.Marketplace.Models.PrivateStorePlanStatus? status = default(Azure.ResourceManager.Marketplace.Models.PrivateStorePlanStatus?), System.BinaryData requestDate = null, string justification = null, string subscriptionId = null, string subscriptionName = null) { throw null; } public static Azure.ResourceManager.Marketplace.Models.QueryApprovalRequestResult QueryApprovalRequestResult(string uniqueOfferId = null, System.Collections.Generic.IReadOnlyDictionary plansDetails = null, Azure.ETag? eTag = default(Azure.ETag?), long? messageCode = default(long?)) { throw null; } public static Azure.ResourceManager.Marketplace.Models.QueryApprovedPlansDetails QueryApprovedPlansDetails(string planId = null, System.Collections.Generic.IEnumerable subscriptionIds = null, bool? allSubscriptions = default(bool?)) { throw null; } @@ -758,6 +767,7 @@ internal PrivateStoreOfferResult() { } public System.DateTimeOffset? CreatedOn { get { throw null; } } public Azure.ETag? ETag { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary IconFileUris { get { throw null; } } + public bool? IsStopSell { get { throw null; } } public bool? IsUpdateSuppressedDueToIdempotence { get { throw null; } } public System.DateTimeOffset? ModifiedOn { get { throw null; } } public string OfferDisplayName { get { throw null; } } @@ -798,6 +808,7 @@ public partial class PrivateStorePlan : System.ClientModel.Primitives.IJsonModel public PrivateStorePlan() { } public Azure.ResourceManager.Marketplace.Models.PrivateStorePlanAccessibility? Accessibility { get { throw null; } set { } } public string AltStackReference { get { throw null; } } + public bool? IsStopSell { get { throw null; } } public string PlanDisplayName { get { throw null; } } public string PlanId { get { throw null; } } public string SkuId { get { throw null; } } diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_MarketplaceAdminApprovalRequestCollection.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_MarketplaceAdminApprovalRequestCollection.cs index 6fa8ef2d0642..3885f567c09a 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_MarketplaceAdminApprovalRequestCollection.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_MarketplaceAdminApprovalRequestCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_MarketplaceAdminApprovalRequestCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateAdminRequestApproval() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/UpdateAdminRequestApproval.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/UpdateAdminRequestApproval.json // this example is just showing the usage of "PrivateStore_UpdateAdminRequestApproval" 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 @@ -61,7 +61,7 @@ public async Task CreateOrUpdate_UpdateAdminRequestApproval() [Ignore("Only validating compilation of examples")] public async Task Get_GetAdminRequestApproval() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetAdminRequestApproval.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetAdminRequestApproval.json // this example is just showing the usage of "PrivateStore_GetAdminRequestApproval" 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 Get_GetAdminRequestApproval() [Ignore("Only validating compilation of examples")] public async Task GetAll_AdminRequestApprovalsList() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/AdminRequestApprovalsList.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/AdminRequestApprovalsList.json // this example is just showing the usage of "PrivateStore_AdminRequestApprovalsList" 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 GetAll_AdminRequestApprovalsList() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAdminRequestApproval() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetAdminRequestApproval.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetAdminRequestApproval.json // this example is just showing the usage of "PrivateStore_GetAdminRequestApproval" 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 Exists_GetAdminRequestApproval() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAdminRequestApproval() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetAdminRequestApproval.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetAdminRequestApproval.json // this example is just showing the usage of "PrivateStore_GetAdminRequestApproval" 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/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_MarketplaceAdminApprovalRequestResource.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_MarketplaceAdminApprovalRequestResource.cs index dd8cd4ccce2f..4b9f9f6e3d09 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_MarketplaceAdminApprovalRequestResource.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_MarketplaceAdminApprovalRequestResource.cs @@ -20,7 +20,7 @@ public partial class Sample_MarketplaceAdminApprovalRequestResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAdminRequestApproval() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetAdminRequestApproval.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetAdminRequestApproval.json // this example is just showing the usage of "PrivateStore_GetAdminRequestApproval" 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_GetAdminRequestApproval() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateAdminRequestApproval() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/UpdateAdminRequestApproval.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/UpdateAdminRequestApproval.json // this example is just showing the usage of "PrivateStore_UpdateAdminRequestApproval" 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/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_MarketplaceApprovalRequestCollection.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_MarketplaceApprovalRequestCollection.cs index 6ed255cf9999..ace126a98709 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_MarketplaceApprovalRequestCollection.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_MarketplaceApprovalRequestCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_MarketplaceApprovalRequestCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateApprovalRequest() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/CreateApprovalRequest.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/CreateApprovalRequest.json // this example is just showing the usage of "PrivateStore_CreateApprovalRequest" 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 CreateOrUpdate_CreateApprovalRequest() [Ignore("Only validating compilation of examples")] public async Task Get_GetApprovalRequest() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetRequestApproval.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetRequestApproval.json // this example is just showing the usage of "PrivateStore_GetRequestApproval" 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 Get_GetApprovalRequest() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetApprovalRequestsList() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetApprovalRequestsList.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetApprovalRequestsList.json // this example is just showing the usage of "PrivateStore_GetApprovalRequestsList" 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 GetAll_GetApprovalRequestsList() [Ignore("Only validating compilation of examples")] public async Task Exists_GetApprovalRequest() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetRequestApproval.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetRequestApproval.json // this example is just showing the usage of "PrivateStore_GetRequestApproval" 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 @@ -147,7 +147,7 @@ public async Task Exists_GetApprovalRequest() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetApprovalRequest() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetRequestApproval.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetRequestApproval.json // this example is just showing the usage of "PrivateStore_GetRequestApproval" 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/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_MarketplaceApprovalRequestResource.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_MarketplaceApprovalRequestResource.cs index cf171f006a83..726ed102b43a 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_MarketplaceApprovalRequestResource.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_MarketplaceApprovalRequestResource.cs @@ -20,7 +20,7 @@ public partial class Sample_MarketplaceApprovalRequestResource [Ignore("Only validating compilation of examples")] public async Task Get_GetApprovalRequest() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetRequestApproval.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetRequestApproval.json // this example is just showing the usage of "PrivateStore_GetRequestApproval" 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 @@ -49,7 +49,7 @@ public async Task Get_GetApprovalRequest() [Ignore("Only validating compilation of examples")] public async Task Update_CreateApprovalRequest() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/CreateApprovalRequest.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/CreateApprovalRequest.json // this example is just showing the usage of "PrivateStore_CreateApprovalRequest" 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 @@ -80,7 +80,7 @@ public async Task Update_CreateApprovalRequest() [Ignore("Only validating compilation of examples")] public async Task QueryApprovalRequest_QueryRequestApproval() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/QueryRequestApproval.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/QueryRequestApproval.json // this example is just showing the usage of "PrivateStore_QueryRequestApproval" 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 QueryApprovalRequest_QueryRequestApproval() [Ignore("Only validating compilation of examples")] public async Task WithdrawPlan_WithdrawPlan() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/WithdrawPlan.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/WithdrawPlan.json // this example is just showing the usage of "PrivateStore_WithdrawPlan" 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/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreCollection.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreCollection.cs index 56a1cbe23bd6..b0eb34accc37 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreCollection.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_PrivateStoreCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PrivateStoresUpdate() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/PrivateStores_update.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/PrivateStores_update.json // this example is just showing the usage of "PrivateStore_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 @@ -50,7 +50,7 @@ public async Task CreateOrUpdate_PrivateStoresUpdate() [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateStore() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetPrivateStore.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStore.json // this example is just showing the usage of "PrivateStore_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 @@ -78,7 +78,7 @@ public async Task Get_GetPrivateStore() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetPrivateStores() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetPrivateStores.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStores.json // this example is just showing the usage of "PrivateStore_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 @@ -108,7 +108,7 @@ public async Task GetAll_GetPrivateStores() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPrivateStore() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetPrivateStore.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStore.json // this example is just showing the usage of "PrivateStore_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 Exists_GetPrivateStore() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPrivateStore() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetPrivateStore.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStore.json // this example is just showing the usage of "PrivateStore_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/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreCollectionInfoCollection.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreCollectionInfoCollection.cs index d908fbfd43b8..ed77f3e8d39f 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreCollectionInfoCollection.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreCollectionInfoCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_PrivateStoreCollectionInfoCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatePrivateStoreCollection() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/CreatePrivateStoreCollection.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/CreatePrivateStoreCollection.json // this example is just showing the usage of "PrivateStoreCollection_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 @@ -59,7 +59,7 @@ public async Task CreateOrUpdate_CreatePrivateStoreCollection() [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateStoreCollection() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetPrivateStoreCollection.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStoreCollection.json // this example is just showing the usage of "PrivateStoreCollection_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 @@ -91,7 +91,7 @@ public async Task Get_GetPrivateStoreCollection() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetPrivateStoreCollectionsList() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetPrivateStoreCollectionsList.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStoreCollectionsList.json // this example is just showing the usage of "PrivateStoreCollection_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 @@ -125,7 +125,7 @@ public async Task GetAll_GetPrivateStoreCollectionsList() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPrivateStoreCollection() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetPrivateStoreCollection.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStoreCollection.json // this example is just showing the usage of "PrivateStoreCollection_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 @@ -153,7 +153,7 @@ public async Task Exists_GetPrivateStoreCollection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPrivateStoreCollection() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetPrivateStoreCollection.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStoreCollection.json // this example is just showing the usage of "PrivateStoreCollection_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/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreCollectionInfoResource.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreCollectionInfoResource.cs index e4b0344e9af8..37e151c31332 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreCollectionInfoResource.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreCollectionInfoResource.cs @@ -20,7 +20,7 @@ public partial class Sample_PrivateStoreCollectionInfoResource [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateStoreCollection() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetPrivateStoreCollection.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStoreCollection.json // this example is just showing the usage of "PrivateStoreCollection_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 @@ -49,7 +49,7 @@ public async Task Get_GetPrivateStoreCollection() [Ignore("Only validating compilation of examples")] public async Task Delete_DeletePrivateStoreCollection() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/DeletePrivateStoreCollection.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/DeletePrivateStoreCollection.json // this example is just showing the usage of "PrivateStoreCollection_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 @@ -74,7 +74,7 @@ public async Task Delete_DeletePrivateStoreCollection() [Ignore("Only validating compilation of examples")] public async Task Update_CreatePrivateStoreCollection() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/CreatePrivateStoreCollection.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/CreatePrivateStoreCollection.json // this example is just showing the usage of "PrivateStoreCollection_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 @@ -111,7 +111,7 @@ public async Task Update_CreatePrivateStoreCollection() [Ignore("Only validating compilation of examples")] public async Task SetCollectionRules_SetCollectionRules() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/SetCollectionRules.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/SetCollectionRules.json // this example is just showing the usage of "SetCollectionRules" 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 SetCollectionRules_SetCollectionRules() [Ignore("Only validating compilation of examples")] public async Task QueryRules_GetCollectionRules() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetCollectionRules.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetCollectionRules.json // this example is just showing the usage of "QueryRules" 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 QueryRules_GetCollectionRules() [Ignore("Only validating compilation of examples")] public async Task TransferOffers_TransferOffers() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/TransferOffers.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/TransferOffers.json // this example is just showing the usage of "PrivateStoreCollection_TransferOffers" 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 @@ -202,7 +202,7 @@ public async Task TransferOffers_TransferOffers() [Ignore("Only validating compilation of examples")] public async Task ApproveAllItems_ApproveAllItems() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/ApproveAllItems.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/ApproveAllItems.json // this example is just showing the usage of "PrivateStoreCollection_ApproveAllItems" 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 @@ -231,7 +231,7 @@ public async Task ApproveAllItems_ApproveAllItems() [Ignore("Only validating compilation of examples")] public async Task DisableApproveAllItems_DisableApproveAllItems() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/DisableApproveAllItems.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/DisableApproveAllItems.json // this example is just showing the usage of "PrivateStoreCollection_DisableApproveAllItems" 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 @@ -260,7 +260,7 @@ public async Task DisableApproveAllItems_DisableApproveAllItems() [Ignore("Only validating compilation of examples")] public async Task GetPrivateStoreCollectionOffersByContexts_GetPrivateStoreCollectionOffersWithFullContext() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetPrivateStoreCollectionOffersWithFullContext.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStoreCollectionOffersWithFullContext.json // this example is just showing the usage of "PrivateStoreCollectionOffer_ListByContexts" 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 @@ -292,7 +292,7 @@ public async Task GetPrivateStoreCollectionOffersByContexts_GetPrivateStoreColle [Ignore("Only validating compilation of examples")] public async Task Delete_PostPrivateStoreCollection() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/PostPrivateStoreCollection.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/PostPrivateStoreCollection.json // this example is just showing the usage of "PrivateStoreCollection_Post" 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/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreOfferCollection.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreOfferCollection.cs index 5ef8fb141c69..4544a1c117c8 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreOfferCollection.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreOfferCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_PrivateStoreOfferCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PrivateStoreOfferUpdate() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/PrivateStoreOffer_update.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/PrivateStoreOffer_update.json // this example is just showing the usage of "PrivateStoreCollectionOffer_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 @@ -58,7 +58,7 @@ public async Task CreateOrUpdate_PrivateStoreOfferUpdate() [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateStoreCollectionOffer() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetPrivateStoreCollectionOffer.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStoreCollectionOffer.json // this example is just showing the usage of "PrivateStoreCollectionOffer_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 @@ -91,7 +91,7 @@ public async Task Get_GetPrivateStoreCollectionOffer() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetPrivateStoreOffers() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetPrivateStoreOffers.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStoreOffers.json // this example is just showing the usage of "PrivateStoreCollectionOffer_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 @@ -126,7 +126,7 @@ public async Task GetAll_GetPrivateStoreOffers() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPrivateStoreCollectionOffer() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetPrivateStoreCollectionOffer.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStoreCollectionOffer.json // this example is just showing the usage of "PrivateStoreCollectionOffer_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 @@ -155,7 +155,7 @@ public async Task Exists_GetPrivateStoreCollectionOffer() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPrivateStoreCollectionOffer() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetPrivateStoreCollectionOffer.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStoreCollectionOffer.json // this example is just showing the usage of "PrivateStoreCollectionOffer_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/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreOfferResource.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreOfferResource.cs index cb12742ecf2e..801665e17351 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreOfferResource.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreOfferResource.cs @@ -20,7 +20,7 @@ public partial class Sample_PrivateStoreOfferResource [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateStoreCollectionOffer() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetPrivateStoreCollectionOffer.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStoreCollectionOffer.json // this example is just showing the usage of "PrivateStoreCollectionOffer_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_GetPrivateStoreCollectionOffer() [Ignore("Only validating compilation of examples")] public async Task Delete_DeletePrivateStoreOffer() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/DeletePrivateStoreOffer.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/DeletePrivateStoreOffer.json // this example is just showing the usage of "PrivateStoreCollectionOffer_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 @@ -76,7 +76,7 @@ public async Task Delete_DeletePrivateStoreOffer() [Ignore("Only validating compilation of examples")] public async Task Update_PrivateStoreOfferUpdate() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/PrivateStoreOffer_update.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/PrivateStoreOffer_update.json // this example is just showing the usage of "PrivateStoreCollectionOffer_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,11 +108,45 @@ public async Task Update_PrivateStoreOfferUpdate() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task ContextsView_GetPrivateStoreCollectionOfferContextsView() + { + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStoreCollectionOfferContextsView.json + // this example is just showing the usage of "PrivateStoreCollectionOffer_ContextsView" 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 PrivateStoreOfferResource created on azure + // for more information of creating PrivateStoreOfferResource, please refer to the document of PrivateStoreOfferResource + Guid privateStoreId = Guid.Parse("a0e28e55-90c4-41d8-8e34-bb7ef7775406"); + Guid collectionId = Guid.Parse("56a1a02d-8cf8-45df-bf37-d5f7120fcb3d"); + string offerId = "mktp3pp.kuku-buku"; + ResourceIdentifier privateStoreOfferResourceId = PrivateStoreOfferResource.CreateResourceIdentifier(privateStoreId, collectionId, offerId); + PrivateStoreOfferResource privateStoreOffer = client.GetPrivateStoreOfferResource(privateStoreOfferResourceId); + + // invoke the operation + CollectionOffersByAllContextsPayload payload = new CollectionOffersByAllContextsPayload + { + SubscriptionIds = { "b340914e-353d-453a-85fb-8f9b65b51f91", "f2baa04d-5bfc-461b-b6d8-61b403c9ec48" }, + }; + PrivateStoreOfferResource result = await privateStoreOffer.ContextsViewAsync(payload: payload); + + // 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 + PrivateStoreOfferData 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 UpsertOfferWithMultiContext_UpsertOfferWithMultiContext() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/UpsertOfferWithMultiContext.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/UpsertOfferWithMultiContext.json // this example is just showing the usage of "PrivateStoreCollectionOffer_UpsertOfferWithMultiContext" 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 @@ -156,7 +190,7 @@ public async Task UpsertOfferWithMultiContext_UpsertOfferWithMultiContext() [Ignore("Only validating compilation of examples")] public async Task Delete_PostPrivateStoreCollectionOffer() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/PostPrivateStoreCollectionOffer.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/PostPrivateStoreCollectionOffer.json // this example is just showing the usage of "PrivateStoreCollectionOffer_Post" 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/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreResource.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreResource.cs index cc4f557e63ec..2962286bdb40 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreResource.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/samples/Generated/Samples/Sample_PrivateStoreResource.cs @@ -20,7 +20,7 @@ public partial class Sample_PrivateStoreResource [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateStore() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/GetPrivateStore.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/GetPrivateStore.json // this example is just showing the usage of "PrivateStore_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 @@ -48,7 +48,7 @@ public async Task Get_GetPrivateStore() [Ignore("Only validating compilation of examples")] public async Task Delete_DeletePrivateStores() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/DeletePrivateStore.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/DeletePrivateStore.json // this example is just showing the usage of "PrivateStore_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 @@ -72,7 +72,7 @@ public async Task Delete_DeletePrivateStores() [Ignore("Only validating compilation of examples")] public async Task Update_PrivateStoresUpdate() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/PrivateStores_update.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/PrivateStores_update.json // this example is just showing the usage of "PrivateStore_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 @@ -101,7 +101,7 @@ public async Task Update_PrivateStoresUpdate() [Ignore("Only validating compilation of examples")] public async Task AnyExistingOffersInTheCollections_AnyExistingOffersInTheCollections() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/AnyExistingOffersInTheCollections.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/AnyExistingOffersInTheCollections.json // this example is just showing the usage of "PrivateStore_AnyExistingOffersInTheCollections" 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 @@ -125,7 +125,7 @@ public async Task AnyExistingOffersInTheCollections_AnyExistingOffersInTheCollec [Ignore("Only validating compilation of examples")] public async Task QueryOffers_QueryOffers() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/QueryOffers.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/QueryOffers.json // this example is just showing the usage of "PrivateStore_QueryOffers" 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 @@ -152,7 +152,7 @@ public async Task QueryOffers_QueryOffers() [Ignore("Only validating compilation of examples")] public async Task QueryUserOffers_QueryUserOffers() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/QueryUserOffers.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/QueryUserOffers.json // this example is just showing the usage of "PrivateStore_QueryUserOffers" 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 @@ -184,7 +184,7 @@ public async Task QueryUserOffers_QueryUserOffers() [Ignore("Only validating compilation of examples")] public async Task FetchBillingAccounts_BillingAccounts() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/BillingAccounts.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/BillingAccounts.json // this example is just showing the usage of "PrivateStore_BillingAccounts" 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 @@ -208,7 +208,7 @@ public async Task FetchBillingAccounts_BillingAccounts() [Ignore("Only validating compilation of examples")] public async Task FetchCollectionsToSubscriptionsMapping_CollectionsToSubscriptionsMapping() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/CollectionsToSubscriptionsMapping.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/CollectionsToSubscriptionsMapping.json // this example is just showing the usage of "PrivateStore_CollectionsToSubscriptionsMapping" 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 @@ -236,7 +236,7 @@ public async Task FetchCollectionsToSubscriptionsMapping_CollectionsToSubscripti [Ignore("Only validating compilation of examples")] public async Task QueryApprovedPlans_QueryApprovedPlans() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/QueryApprovedPlans.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/QueryApprovedPlans.json // this example is just showing the usage of "PrivateStore_QueryApprovedPlans" 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 @@ -266,7 +266,7 @@ public async Task QueryApprovedPlans_QueryApprovedPlans() [Ignore("Only validating compilation of examples")] public async Task PerformActionOnBulkCollections_BulkCollectionsAction() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/BulkCollectionsAction.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/BulkCollectionsAction.json // this example is just showing the usage of "PrivateStore_BulkCollectionsAction" 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 @@ -295,7 +295,7 @@ public async Task PerformActionOnBulkCollections_BulkCollectionsAction() [Ignore("Only validating compilation of examples")] public async Task QueryNotificationsState_NotificationsState() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/NotificationsState.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/NotificationsState.json // this example is just showing the usage of "PrivateStore_QueryNotificationsState" 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 QueryNotificationsState_NotificationsState() [Ignore("Only validating compilation of examples")] public async Task AcknowledgeOfferNotification_AcknowledgeNotification() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/AcknowledgeNotification.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/AcknowledgeNotification.json // this example is just showing the usage of "PrivateStore_AcknowledgeOfferNotification" 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 @@ -352,7 +352,7 @@ public async Task AcknowledgeOfferNotification_AcknowledgeNotification() [Ignore("Only validating compilation of examples")] public async Task FetchAllMarketplaceSubscriptions_FetchAllSubscriptionsInTenant() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/FetchAllSubscriptionsInTenant.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/FetchAllSubscriptionsInTenant.json // this example is just showing the usage of "PrivateStore_FetchAllSubscriptionsInTenant" 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 @@ -379,7 +379,7 @@ public async Task FetchAllMarketplaceSubscriptions_FetchAllSubscriptionsInTenant [Ignore("Only validating compilation of examples")] public async Task GetNewPlansNotifications_ListNewPlansNotifications() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/ListNewPlansNotifications.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/ListNewPlansNotifications.json // this example is just showing the usage of "PrivateStore_ListNewPlansNotifications" 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 +403,7 @@ public async Task GetNewPlansNotifications_ListNewPlansNotifications() [Ignore("Only validating compilation of examples")] public async Task GetStopSellOffersPlansNotifications_ListStopSellOffersPlansNotifications() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/ListStopSellOffersPlansNotifications.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/ListStopSellOffersPlansNotifications.json // this example is just showing the usage of "PrivateStore_ListStopSellOffersPlansNotifications" 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 @@ -427,7 +427,7 @@ public async Task GetStopSellOffersPlansNotifications_ListStopSellOffersPlansNot [Ignore("Only validating compilation of examples")] public async Task GetSubscriptionsContext_ListSubscriptionsContext() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/ListSubscriptionsContext.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/ListSubscriptionsContext.json // this example is just showing the usage of "PrivateStore_ListSubscriptionsContext" 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 @@ -451,7 +451,7 @@ public async Task GetSubscriptionsContext_ListSubscriptionsContext() [Ignore("Only validating compilation of examples")] public async Task QueryUserRules_QueryUserRules() { - // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2023-01-01/examples/QueryUserRules.json + // Generated from example definition: specification/marketplace/resource-manager/Microsoft.Marketplace/stable/2025-01-01/examples/QueryUserRules.json // this example is just showing the usage of "QueryUserRules" 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/marketplace/Azure.ResourceManager.Marketplace/src/Generated/ArmMarketplaceModelFactory.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/ArmMarketplaceModelFactory.cs index 781265dbedc9..31311ac88d68 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/ArmMarketplaceModelFactory.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/ArmMarketplaceModelFactory.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using Azure.Core; using Azure.ResourceManager.Models; @@ -85,9 +86,10 @@ public static AnyExistingOffersInTheCollectionsResult AnyExistingOffersInTheColl /// Plan ids limitation for this offer. /// Indicating whether the offer was not updated to db (true = not updated). If the allow list is identical to the existed one in db, the offer would not be updated. /// Icon File Uris. + /// Indicating whether the offer is stop sell or not. /// Offer plans. /// A new instance for mocking. - public static PrivateStoreOfferResult PrivateStoreOfferResult(string uniqueOfferId = null, string offerDisplayName = null, string publisherDisplayName = null, ETag? eTag = null, Guid? privateStoreId = null, DateTimeOffset? createdOn = null, DateTimeOffset? modifiedOn = null, IEnumerable specificPlanIdsLimitation = null, bool? isUpdateSuppressedDueToIdempotence = null, IReadOnlyDictionary iconFileUris = null, IEnumerable plans = null) + public static PrivateStoreOfferResult PrivateStoreOfferResult(string uniqueOfferId = null, string offerDisplayName = null, string publisherDisplayName = null, ETag? eTag = null, Guid? privateStoreId = null, DateTimeOffset? createdOn = null, DateTimeOffset? modifiedOn = null, IEnumerable specificPlanIdsLimitation = null, bool? isUpdateSuppressedDueToIdempotence = null, IReadOnlyDictionary iconFileUris = null, bool? isStopSell = null, IEnumerable plans = null) { specificPlanIdsLimitation ??= new List(); iconFileUris ??= new Dictionary(); @@ -104,6 +106,7 @@ public static PrivateStoreOfferResult PrivateStoreOfferResult(string uniqueOffer specificPlanIdsLimitation?.ToList(), isUpdateSuppressedDueToIdempotence, iconFileUris, + isStopSell, plans?.ToList(), serializedAdditionalRawData: null); } @@ -115,8 +118,9 @@ public static PrivateStoreOfferResult PrivateStoreOfferResult(string uniqueOffer /// Plan accessibility. /// Alternative stack type. /// Stack type (classic or arm). + /// Indicating whether the plan is stop sell or not. /// A new instance for mocking. - public static PrivateStorePlan PrivateStorePlan(string skuId = null, string planId = null, string planDisplayName = null, PrivateStorePlanAccessibility? accessibility = null, string altStackReference = null, string stackType = null) + public static PrivateStorePlan PrivateStorePlan(string skuId = null, string planId = null, string planDisplayName = null, PrivateStorePlanAccessibility? accessibility = null, string altStackReference = null, string stackType = null, bool? isStopSell = null) { return new PrivateStorePlan( skuId, @@ -125,6 +129,7 @@ public static PrivateStorePlan PrivateStorePlan(string skuId = null, string plan accessibility, altStackReference, stackType, + isStopSell, serializedAdditionalRawData: null); } @@ -268,9 +273,10 @@ public static BulkCollectionsActionResult BulkCollectionsActionResult(IEnumerabl /// Plan ids limitation for this offer. /// Indicating whether the offer was not updated to db (true = not updated). If the allow list is identical to the existed one in db, the offer would not be updated. /// Icon File Uris. + /// Indicating whether the offer is stop sell or not. /// Offer plans. /// A new instance for mocking. - public static PrivateStoreOfferData PrivateStoreOfferData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string uniqueOfferId = null, string offerDisplayName = null, string publisherDisplayName = null, ETag? eTag = null, Guid? privateStoreId = null, DateTimeOffset? createdOn = null, DateTimeOffset? modifiedOn = null, IEnumerable specificPlanIdsLimitation = null, bool? isUpdateSuppressedDueToIdempotence = null, IDictionary iconFileUris = null, IEnumerable plans = null) + public static PrivateStoreOfferData PrivateStoreOfferData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string uniqueOfferId = null, string offerDisplayName = null, string publisherDisplayName = null, ETag? eTag = null, Guid? privateStoreId = null, DateTimeOffset? createdOn = null, DateTimeOffset? modifiedOn = null, IEnumerable specificPlanIdsLimitation = null, bool? isUpdateSuppressedDueToIdempotence = null, IDictionary iconFileUris = null, bool? isStopSell = null, IEnumerable plans = null) { specificPlanIdsLimitation ??= new List(); iconFileUris ??= new Dictionary(); @@ -291,6 +297,7 @@ public static PrivateStoreOfferData PrivateStoreOfferData(ResourceIdentifier id specificPlanIdsLimitation?.ToList(), isUpdateSuppressedDueToIdempotence, iconFileUris, + isStopSell, plans?.ToList(), serializedAdditionalRawData: null); } @@ -595,5 +602,61 @@ public static SubscriptionsContextList SubscriptionsContextList(IEnumerable Initializes a new instance of . + /// Offers unique id. + /// It will be displayed prominently in the marketplace. + /// Publisher name that will be displayed prominently in the marketplace. + /// Identifier for purposes of race condition. + /// Private store unique id. + /// Private store offer creation date. + /// Private store offer modification date. + /// Plan ids limitation for this offer. + /// Indicating whether the offer was not updated to db (true = not updated). If the allow list is identical to the existed one in db, the offer would not be updated. + /// Icon File Uris. + /// Offer plans. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static PrivateStoreOfferResult PrivateStoreOfferResult(string uniqueOfferId, string offerDisplayName, string publisherDisplayName, ETag? eTag, Guid? privateStoreId, DateTimeOffset? createdOn, DateTimeOffset? modifiedOn, IEnumerable specificPlanIdsLimitation, bool? isUpdateSuppressedDueToIdempotence, IReadOnlyDictionary iconFileUris, IEnumerable plans) + { + return PrivateStoreOfferResult(uniqueOfferId: uniqueOfferId, offerDisplayName: offerDisplayName, publisherDisplayName: publisherDisplayName, eTag: eTag, privateStoreId: privateStoreId, createdOn: createdOn, modifiedOn: modifiedOn, specificPlanIdsLimitation: specificPlanIdsLimitation, isUpdateSuppressedDueToIdempotence: isUpdateSuppressedDueToIdempotence, iconFileUris: iconFileUris, isStopSell: default, plans: plans); + } + + /// Initializes a new instance of . + /// Identifier for this plan. + /// Text identifier for this plan. + /// Friendly name for the plan for display in the marketplace. + /// Plan accessibility. + /// Alternative stack type. + /// Stack type (classic or arm). + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static PrivateStorePlan PrivateStorePlan(string skuId, string planId, string planDisplayName, PrivateStorePlanAccessibility? accessibility, string altStackReference, string stackType) + { + return PrivateStorePlan(skuId: skuId, planId: planId, planDisplayName: planDisplayName, accessibility: accessibility, altStackReference: altStackReference, stackType: stackType, isStopSell: default); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Offers unique id. + /// It will be displayed prominently in the marketplace. + /// Publisher name that will be displayed prominently in the marketplace. + /// Identifier for purposes of race condition. + /// Private store unique id. + /// Private store offer creation date. + /// Private store offer modification date. + /// Plan ids limitation for this offer. + /// Indicating whether the offer was not updated to db (true = not updated). If the allow list is identical to the existed one in db, the offer would not be updated. + /// Icon File Uris. + /// Offer plans. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static PrivateStoreOfferData PrivateStoreOfferData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string uniqueOfferId, string offerDisplayName, string publisherDisplayName, ETag? eTag, Guid? privateStoreId, DateTimeOffset? createdOn, DateTimeOffset? modifiedOn, IEnumerable specificPlanIdsLimitation, bool? isUpdateSuppressedDueToIdempotence, IDictionary iconFileUris, IEnumerable plans) + { + return PrivateStoreOfferData(id: id, name: name, resourceType: resourceType, systemData: systemData, uniqueOfferId: uniqueOfferId, offerDisplayName: offerDisplayName, publisherDisplayName: publisherDisplayName, eTag: eTag, privateStoreId: privateStoreId, createdOn: createdOn, modifiedOn: modifiedOn, specificPlanIdsLimitation: specificPlanIdsLimitation, isUpdateSuppressedDueToIdempotence: isUpdateSuppressedDueToIdempotence, iconFileUris: iconFileUris, isStopSell: default, plans: plans); + } } } diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Extensions/MarketplaceExtensions.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Extensions/MarketplaceExtensions.cs index 78cad0ff17d6..0e97787392cb 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Extensions/MarketplaceExtensions.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Extensions/MarketplaceExtensions.cs @@ -152,7 +152,7 @@ public static PrivateStoreCollection GetPrivateStores(this TenantResource tenant /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -189,7 +189,7 @@ public static async Task> GetPrivateStoreAsync(th /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Extensions/MockableMarketplaceTenantResource.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Extensions/MockableMarketplaceTenantResource.cs index c45dae4eed16..5e8609de4ccb 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Extensions/MockableMarketplaceTenantResource.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Extensions/MockableMarketplaceTenantResource.cs @@ -53,7 +53,7 @@ public virtual PrivateStoreCollection GetPrivateStores() /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -82,7 +82,7 @@ public virtual async Task> GetPrivateStoreAsync(G /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceAdminApprovalRequestCollection.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceAdminApprovalRequestCollection.cs index fba14b518b5f..34790ecc0e15 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceAdminApprovalRequestCollection.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceAdminApprovalRequestCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpd /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -260,7 +260,7 @@ public virtual Response Get(string admi /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual AsyncPageable GetAllAsyn /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual Pageable GetAll(Cancella /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string adminRequestApprova /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -408,7 +408,7 @@ public virtual Response Exists(string adminRequestApprovalId, string publi /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -455,7 +455,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceAdminApprovalRequestResource.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceAdminApprovalRequestResource.cs index e95afbb220b9..3bc9ef84b1e4 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceAdminApprovalRequestResource.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceAdminApprovalRequestResource.cs @@ -99,7 +99,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual Response Get(string publ /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -235,7 +235,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceApprovalRequestCollection.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceApprovalRequestCollection.cs index 40a6a8be96a3..b7afef49195c 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceApprovalRequestCollection.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceApprovalRequestCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Crea /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(W /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string requestAp /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(Can /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual Pageable GetAll(CancellationT /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -357,7 +357,7 @@ public virtual async Task> ExistsAsync(string requestApprovalId, /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -400,7 +400,7 @@ public virtual Response Exists(string requestApprovalId, CancellationToken /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -445,7 +445,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceApprovalRequestResource.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceApprovalRequestResource.cs index a17be6f88ccf..b078ad16800d 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceApprovalRequestResource.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/MarketplaceApprovalRequestResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(CancellationToke /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task> Upda /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -276,7 +276,7 @@ public virtual ArmOperation Update(WaitUntil /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual async Task> QueryApprovalReq /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -354,7 +354,7 @@ public virtual Response QueryApprovalRequest(QueryAp /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -393,7 +393,7 @@ public virtual async Task WithdrawPlanAsync(WithdrawPlanContent conten /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreOfferResult.Serialization.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreOfferResult.Serialization.cs index 4957f948ee1b..647517cd93d4 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreOfferResult.Serialization.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreOfferResult.Serialization.cs @@ -100,6 +100,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndObject(); } + if (options.Format != "W" && Optional.IsDefined(IsStopSell)) + { + writer.WritePropertyName("isStopSell"u8); + writer.WriteBooleanValue(IsStopSell.Value); + } if (Optional.IsCollectionDefined(Plans)) { writer.WritePropertyName("plans"u8); @@ -157,6 +162,7 @@ internal static PrivateStoreOfferResult DeserializePrivateStoreOfferResult(JsonE IReadOnlyList specificPlanIdsLimitation = default; bool? updateSuppressedDueIdempotence = default; IReadOnlyDictionary iconFileUris = default; + bool? isStopSell = default; IReadOnlyList plans = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -257,6 +263,15 @@ internal static PrivateStoreOfferResult DeserializePrivateStoreOfferResult(JsonE iconFileUris = dictionary; continue; } + if (property.NameEquals("isStopSell"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isStopSell = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("plans"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -288,6 +303,7 @@ internal static PrivateStoreOfferResult DeserializePrivateStoreOfferResult(JsonE specificPlanIdsLimitation ?? new ChangeTrackingList(), updateSuppressedDueIdempotence, iconFileUris ?? new ChangeTrackingDictionary(), + isStopSell, plans ?? new ChangeTrackingList(), serializedAdditionalRawData); } diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreOfferResult.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreOfferResult.cs index e25bd06ed8f4..ec456432403e 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreOfferResult.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStoreOfferResult.cs @@ -64,9 +64,10 @@ internal PrivateStoreOfferResult() /// Plan ids limitation for this offer. /// Indicating whether the offer was not updated to db (true = not updated). If the allow list is identical to the existed one in db, the offer would not be updated. /// Icon File Uris. + /// Indicating whether the offer is stop sell or not. /// Offer plans. /// Keeps track of any properties unknown to the library. - internal PrivateStoreOfferResult(string uniqueOfferId, string offerDisplayName, string publisherDisplayName, ETag? eTag, Guid? privateStoreId, DateTimeOffset? createdOn, DateTimeOffset? modifiedOn, IReadOnlyList specificPlanIdsLimitation, bool? isUpdateSuppressedDueToIdempotence, IReadOnlyDictionary iconFileUris, IReadOnlyList plans, IDictionary serializedAdditionalRawData) + internal PrivateStoreOfferResult(string uniqueOfferId, string offerDisplayName, string publisherDisplayName, ETag? eTag, Guid? privateStoreId, DateTimeOffset? createdOn, DateTimeOffset? modifiedOn, IReadOnlyList specificPlanIdsLimitation, bool? isUpdateSuppressedDueToIdempotence, IReadOnlyDictionary iconFileUris, bool? isStopSell, IReadOnlyList plans, IDictionary serializedAdditionalRawData) { UniqueOfferId = uniqueOfferId; OfferDisplayName = offerDisplayName; @@ -78,6 +79,7 @@ internal PrivateStoreOfferResult(string uniqueOfferId, string offerDisplayName, SpecificPlanIdsLimitation = specificPlanIdsLimitation; IsUpdateSuppressedDueToIdempotence = isUpdateSuppressedDueToIdempotence; IconFileUris = iconFileUris; + IsStopSell = isStopSell; Plans = plans; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -102,6 +104,8 @@ internal PrivateStoreOfferResult(string uniqueOfferId, string offerDisplayName, public bool? IsUpdateSuppressedDueToIdempotence { get; } /// Icon File Uris. public IReadOnlyDictionary IconFileUris { get; } + /// Indicating whether the offer is stop sell or not. + public bool? IsStopSell { get; } /// Offer plans. public IReadOnlyList Plans { get; } } diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStorePlan.Serialization.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStorePlan.Serialization.cs index 6fe194816178..200b2c1bc6cd 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStorePlan.Serialization.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStorePlan.Serialization.cs @@ -64,6 +64,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("stackType"u8); writer.WriteStringValue(StackType); } + if (options.Format != "W" && Optional.IsDefined(IsStopSell)) + { + writer.WritePropertyName("isStopSell"u8); + writer.WriteBooleanValue(IsStopSell.Value); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -107,6 +112,7 @@ internal static PrivateStorePlan DeserializePrivateStorePlan(JsonElement element PrivateStorePlanAccessibility? accessibility = default; string altStackReference = default; string stackType = default; + bool? isStopSell = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -145,6 +151,15 @@ internal static PrivateStorePlan DeserializePrivateStorePlan(JsonElement element stackType = property.Value.GetString(); continue; } + if (property.NameEquals("isStopSell"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isStopSell = property.Value.GetBoolean(); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -158,6 +173,7 @@ internal static PrivateStorePlan DeserializePrivateStorePlan(JsonElement element accessibility, altStackReference, stackType, + isStopSell, serializedAdditionalRawData); } diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStorePlan.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStorePlan.cs index bd2c5835bbb8..9980f57b2c17 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStorePlan.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/Models/PrivateStorePlan.cs @@ -57,8 +57,9 @@ public PrivateStorePlan() /// Plan accessibility. /// Alternative stack type. /// Stack type (classic or arm). + /// Indicating whether the plan is stop sell or not. /// Keeps track of any properties unknown to the library. - internal PrivateStorePlan(string skuId, string planId, string planDisplayName, PrivateStorePlanAccessibility? accessibility, string altStackReference, string stackType, IDictionary serializedAdditionalRawData) + internal PrivateStorePlan(string skuId, string planId, string planDisplayName, PrivateStorePlanAccessibility? accessibility, string altStackReference, string stackType, bool? isStopSell, IDictionary serializedAdditionalRawData) { SkuId = skuId; PlanId = planId; @@ -66,6 +67,7 @@ internal PrivateStorePlan(string skuId, string planId, string planDisplayName, P Accessibility = accessibility; AltStackReference = altStackReference; StackType = stackType; + IsStopSell = isStopSell; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -81,5 +83,7 @@ internal PrivateStorePlan(string skuId, string planId, string planDisplayName, P public string AltStackReference { get; } /// Stack type (classic or arm). public string StackType { get; } + /// Indicating whether the plan is stop sell or not. + public bool? IsStopSell { get; } } } diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollection.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollection.cs index a3fcf2b671c0..6fb03218bc47 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollection.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task CreateOrUpdateAsync(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, Guid privateStor /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -204,7 +204,7 @@ public virtual async Task> GetAsync(Guid privateS /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -245,7 +245,7 @@ public virtual Response Get(Guid privateStoreId, Cancellat /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -276,7 +276,7 @@ public virtual AsyncPageable GetAllAsync(string useCache = /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -307,7 +307,7 @@ public virtual Pageable GetAll(string useCache = null, Can /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -346,7 +346,7 @@ public virtual async Task> ExistsAsync(Guid privateStoreId, Cance /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -385,7 +385,7 @@ public virtual Response Exists(Guid privateStoreId, CancellationToken canc /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -426,7 +426,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollectionInfoCollection.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollectionInfoCollection.cs index 0042cb920d48..99f3960e239c 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollectionInfoCollection.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollectionInfoCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> Crea /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(W /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -203,7 +203,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -244,7 +244,7 @@ public virtual Response Get(Guid collectionI /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -273,7 +273,7 @@ public virtual AsyncPageable GetAllAsync(Can /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -302,7 +302,7 @@ public virtual Pageable GetAll(CancellationT /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -341,7 +341,7 @@ public virtual async Task> ExistsAsync(Guid collectionId, Cancell /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -380,7 +380,7 @@ public virtual Response Exists(Guid collectionId, CancellationToken cancel /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -421,7 +421,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollectionInfoResource.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollectionInfoResource.cs index 5c5004ebbf49..c338ba27497f 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollectionInfoResource.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreCollectionInfoResource.cs @@ -117,7 +117,7 @@ public virtual PrivateStoreOfferCollection GetPrivateStoreOffers() /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -148,7 +148,7 @@ public virtual async Task> GetPrivateStoreOf /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual Response GetPrivateStoreOffer(string o /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -219,7 +219,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -259,7 +259,7 @@ public virtual Response Get(CancellationToke /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -303,7 +303,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -347,7 +347,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -395,7 +395,7 @@ public virtual async Task> Upda /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual ArmOperation Update(WaitUntil /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// @@ -478,7 +478,7 @@ public virtual async Task SetCollectionRulesAsync(SetRulesContent cont /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// @@ -513,7 +513,7 @@ public virtual Response SetCollectionRules(SetRulesContent content = null, Cance /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// @@ -538,7 +538,7 @@ public virtual AsyncPageable QueryRulesAsync(CancellationToken /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// @@ -563,7 +563,7 @@ public virtual Pageable QueryRules(CancellationToken cancellati /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -602,7 +602,7 @@ public virtual async Task> TransferOffersAsync(Tr /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -641,7 +641,7 @@ public virtual Response TransferOffers(TransferOffersConte /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -679,7 +679,7 @@ public virtual async Task> ApproveA /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -717,7 +717,7 @@ public virtual Response ApproveAllItems(Canc /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -755,7 +755,7 @@ public virtual async Task> DisableA /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -793,7 +793,7 @@ public virtual Response DisableApproveAllIte /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -824,7 +824,7 @@ public virtual AsyncPageable GetPrivateStoreCollectio /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -855,7 +855,7 @@ public virtual Pageable GetPrivateStoreCollectionOffe /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -894,7 +894,7 @@ public virtual async Task DeleteAsync(PrivateStoreOperation? payload = /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferCollection.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferCollection.cs index 0b82ae17e68f..aada5a303891 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferCollection.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string o /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string offerId, Cancellat /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string offerId, Cancellati /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string offerId, CancellationToken cancellat /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferData.Serialization.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferData.Serialization.cs index 0941f62b0d67..eda2f8a98892 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferData.Serialization.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferData.Serialization.cs @@ -105,6 +105,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndObject(); } + if (options.Format != "W" && Optional.IsDefined(IsStopSell)) + { + writer.WritePropertyName("isStopSell"u8); + writer.WriteBooleanValue(IsStopSell.Value); + } if (Optional.IsCollectionDefined(Plans)) { writer.WritePropertyName("plans"u8); @@ -152,6 +157,7 @@ internal static PrivateStoreOfferData DeserializePrivateStoreOfferData(JsonEleme IList specificPlanIdsLimitation = default; bool? updateSuppressedDueIdempotence = default; IDictionary iconFileUris = default; + bool? isStopSell = default; IList plans = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -285,6 +291,15 @@ internal static PrivateStoreOfferData DeserializePrivateStoreOfferData(JsonEleme iconFileUris = dictionary; continue; } + if (property0.NameEquals("isStopSell"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isStopSell = property0.Value.GetBoolean(); + continue; + } if (property0.NameEquals("plans"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -323,6 +338,7 @@ internal static PrivateStoreOfferData DeserializePrivateStoreOfferData(JsonEleme specificPlanIdsLimitation ?? new ChangeTrackingList(), updateSuppressedDueIdempotence, iconFileUris ?? new ChangeTrackingDictionary(), + isStopSell, plans ?? new ChangeTrackingList(), serializedAdditionalRawData); } diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferData.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferData.cs index 7b5736f09458..02af09b78aba 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferData.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferData.cs @@ -74,9 +74,10 @@ public PrivateStoreOfferData() /// Plan ids limitation for this offer. /// Indicating whether the offer was not updated to db (true = not updated). If the allow list is identical to the existed one in db, the offer would not be updated. /// Icon File Uris. + /// Indicating whether the offer is stop sell or not. /// Offer plans. /// Keeps track of any properties unknown to the library. - internal PrivateStoreOfferData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string uniqueOfferId, string offerDisplayName, string publisherDisplayName, ETag? eTag, Guid? privateStoreId, DateTimeOffset? createdOn, DateTimeOffset? modifiedOn, IList specificPlanIdsLimitation, bool? isUpdateSuppressedDueToIdempotence, IDictionary iconFileUris, IList plans, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal PrivateStoreOfferData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string uniqueOfferId, string offerDisplayName, string publisherDisplayName, ETag? eTag, Guid? privateStoreId, DateTimeOffset? createdOn, DateTimeOffset? modifiedOn, IList specificPlanIdsLimitation, bool? isUpdateSuppressedDueToIdempotence, IDictionary iconFileUris, bool? isStopSell, IList plans, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { UniqueOfferId = uniqueOfferId; OfferDisplayName = offerDisplayName; @@ -88,6 +89,7 @@ internal PrivateStoreOfferData(ResourceIdentifier id, string name, ResourceType SpecificPlanIdsLimitation = specificPlanIdsLimitation; IsUpdateSuppressedDueToIdempotence = isUpdateSuppressedDueToIdempotence; IconFileUris = iconFileUris; + IsStopSell = isStopSell; Plans = plans; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -112,6 +114,8 @@ internal PrivateStoreOfferData(ResourceIdentifier id, string name, ResourceType public bool? IsUpdateSuppressedDueToIdempotence { get; set; } /// Icon File Uris. public IDictionary IconFileUris { get; } + /// Indicating whether the offer is stop sell or not. + public bool? IsStopSell { get; } /// Offer plans. public IList Plans { get; } } diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferResource.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferResource.cs index 6ef3cd7c185e..5328ae1dd53a 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferResource.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreOfferResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsync(W /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -352,6 +352,84 @@ public virtual ArmOperation Update(WaitUntil waitUnti } } + /// + /// Retrieve offer information with plans under required contexts restrictions. + /// + /// + /// Request Path + /// /providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}/contextsView + /// + /// + /// Operation Id + /// PrivateStoreCollectionOffer_ContextsView + /// + /// + /// Default Api Version + /// 2025-01-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The to use. + /// The cancellation token to use. + public virtual async Task> ContextsViewAsync(CollectionOffersByAllContextsPayload payload = null, CancellationToken cancellationToken = default) + { + using var scope = _privateStoreOfferPrivateStoreCollectionOfferClientDiagnostics.CreateScope("PrivateStoreOfferResource.ContextsView"); + scope.Start(); + try + { + var response = await _privateStoreOfferPrivateStoreCollectionOfferRestClient.ContextsViewAsync(Guid.Parse(Id.Parent.Parent.Name), Guid.Parse(Id.Parent.Name), Id.Name, payload, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new PrivateStoreOfferResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Retrieve offer information with plans under required contexts restrictions. + /// + /// + /// Request Path + /// /providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}/offers/{offerId}/contextsView + /// + /// + /// Operation Id + /// PrivateStoreCollectionOffer_ContextsView + /// + /// + /// Default Api Version + /// 2025-01-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The to use. + /// The cancellation token to use. + public virtual Response ContextsView(CollectionOffersByAllContextsPayload payload = null, CancellationToken cancellationToken = default) + { + using var scope = _privateStoreOfferPrivateStoreCollectionOfferClientDiagnostics.CreateScope("PrivateStoreOfferResource.ContextsView"); + scope.Start(); + try + { + var response = _privateStoreOfferPrivateStoreCollectionOfferRestClient.ContextsView(Guid.Parse(Id.Parent.Parent.Name), Guid.Parse(Id.Parent.Name), Id.Name, payload, cancellationToken); + return Response.FromValue(new PrivateStoreOfferResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Upsert an offer with multiple context details. /// @@ -365,7 +443,7 @@ public virtual ArmOperation Update(WaitUntil waitUnti /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -404,7 +482,7 @@ public virtual async Task> UpsertOfferWithMu /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -443,7 +521,7 @@ public virtual Response UpsertOfferWithMultiContext(M /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -482,7 +560,7 @@ public virtual async Task DeleteAsync(PrivateStoreOperation? payload = /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreResource.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreResource.cs index 8921e478c8d8..4d8c2dd9afe2 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreResource.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/PrivateStoreResource.cs @@ -112,7 +112,7 @@ public virtual MarketplaceApprovalRequestCollection GetMarketplaceApprovalReques /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetMarke /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual MarketplaceAdminApprovalRequestCollection GetMarketplaceAdminAppr /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual PrivateStoreCollectionInfoCollection GetPrivateStoreCollectionInf /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual async Task> GetPriva /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Response GetPrivateStoreColle /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -350,7 +350,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -390,7 +390,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -434,7 +434,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -478,7 +478,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -526,7 +526,7 @@ public virtual async Task UpdateAsync(WaitUntil waitUntil, Private /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -574,7 +574,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, PrivateStoreData data, C /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -612,7 +612,7 @@ public virtual async Task> Any /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -650,7 +650,7 @@ public virtual Response AnyExistingOffe /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -679,7 +679,7 @@ public virtual AsyncPageable QueryOffersAsync(Cancellat /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -708,7 +708,7 @@ public virtual Pageable QueryOffers(CancellationToken c /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -738,7 +738,7 @@ public virtual AsyncPageable QueryUserOffersAsync(Query /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -768,7 +768,7 @@ public virtual Pageable QueryUserOffers(QueryUserOffers /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -806,7 +806,7 @@ public virtual async Task> FetchBill /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -844,7 +844,7 @@ public virtual Response FetchBillingAccounts( /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -883,7 +883,7 @@ public virtual async Task> Fet /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -922,7 +922,7 @@ public virtual Response FetchCollection /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -961,7 +961,7 @@ public virtual async Task> QueryApprovedPlans /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1000,7 +1000,7 @@ public virtual Response QueryApprovedPlans(QueryApprov /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1039,7 +1039,7 @@ public virtual async Task> PerformActionOn /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1078,7 +1078,7 @@ public virtual Response PerformActionOnBulkCollecti /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1116,7 +1116,7 @@ public virtual async Task> QueryNotific /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1154,7 +1154,7 @@ public virtual Response QueryNotificationsState( /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// @@ -1194,7 +1194,7 @@ public virtual async Task AcknowledgeOfferNotificationAsync(string off /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// @@ -1234,7 +1234,7 @@ public virtual Response AcknowledgeOfferNotification(string offerId, Acknowledge /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1264,7 +1264,7 @@ public virtual AsyncPageable FetchAllMarketplaceSubscri /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1294,7 +1294,7 @@ public virtual Pageable FetchAllMarketplaceSubscription /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1332,7 +1332,7 @@ public virtual async Task> GetNewPlansNo /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1370,7 +1370,7 @@ public virtual Response GetNewPlansNotifications( /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1409,7 +1409,7 @@ public virtual async Task> GetSto /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1448,7 +1448,7 @@ public virtual Response GetStopSellOffersP /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1486,7 +1486,7 @@ public virtual async Task> GetSubscriptionsCo /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// Resource @@ -1524,7 +1524,7 @@ public virtual Response GetSubscriptionsContext(Cancel /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// @@ -1550,7 +1550,7 @@ public virtual AsyncPageable QueryUserRulesAsync(QueryUserRules /// /// /// Default Api Version - /// 2023-01-01 + /// 2025-01-01 /// /// /// diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/MarketplaceRPServiceRestOperations.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/MarketplaceRPServiceRestOperations.cs index 038602665fea..ed71f322cc79 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/MarketplaceRPServiceRestOperations.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/MarketplaceRPServiceRestOperations.cs @@ -32,7 +32,7 @@ public MarketplaceRPServiceRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreCollectionOfferRestOperations.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreCollectionOfferRestOperations.cs index 6cbd1a192d85..fdeb96a9794a 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreCollectionOfferRestOperations.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreCollectionOfferRestOperations.cs @@ -32,7 +32,7 @@ public PrivateStoreCollectionOfferRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -552,6 +552,105 @@ public Response Post(Guid privateStoreId, Guid collectionId, string offerId, Pri } } + internal RequestUriBuilder CreateContextsViewRequestUri(Guid privateStoreId, Guid collectionId, string offerId, CollectionOffersByAllContextsPayload payload) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendPath("/offers/", false); + uri.AppendPath(offerId, true); + uri.AppendPath("/contextsView", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateContextsViewRequest(Guid privateStoreId, Guid collectionId, string offerId, CollectionOffersByAllContextsPayload payload) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/providers/Microsoft.Marketplace/privateStores/", false); + uri.AppendPath(privateStoreId, true); + uri.AppendPath("/collections/", false); + uri.AppendPath(collectionId, true); + uri.AppendPath("/offers/", false); + uri.AppendPath(offerId, true); + uri.AppendPath("/contextsView", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + if (payload != null) + { + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(payload, ModelSerializationExtensions.WireOptions); + request.Content = content; + } + _userAgent.Apply(message); + return message; + } + + /// Retrieve offer information with plans under required contexts restrictions. + /// The store ID - must use the tenant ID. + /// The collection ID. + /// The offer ID to update or delete. + /// The to use. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ContextsViewAsync(Guid privateStoreId, Guid collectionId, string offerId, CollectionOffersByAllContextsPayload payload = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(offerId, nameof(offerId)); + + using var message = CreateContextsViewRequest(privateStoreId, collectionId, offerId, payload); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + PrivateStoreOfferData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = PrivateStoreOfferData.DeserializePrivateStoreOfferData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Retrieve offer information with plans under required contexts restrictions. + /// The store ID - must use the tenant ID. + /// The collection ID. + /// The offer ID to update or delete. + /// The to use. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response ContextsView(Guid privateStoreId, Guid collectionId, string offerId, CollectionOffersByAllContextsPayload payload = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(offerId, nameof(offerId)); + + using var message = CreateContextsViewRequest(privateStoreId, collectionId, offerId, payload); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + PrivateStoreOfferData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = PrivateStoreOfferData.DeserializePrivateStoreOfferData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreateUpsertOfferWithMultiContextRequestUri(Guid privateStoreId, Guid collectionId, string offerId, MultiContextAndPlansContent content) { var uri = new RawRequestUriBuilder(); diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreCollectionRestOperations.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreCollectionRestOperations.cs index bed674d9b428..0fcba4c2c3f8 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreCollectionRestOperations.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreCollectionRestOperations.cs @@ -32,7 +32,7 @@ public PrivateStoreCollectionRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreRestOperations.cs b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreRestOperations.cs index 3d251445fbd3..27c6750ac2ff 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreRestOperations.cs +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/Generated/RestOperations/PrivateStoreRestOperations.cs @@ -32,7 +32,7 @@ public PrivateStoreRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-01-01"; + _apiVersion = apiVersion ?? "2025-01-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/autorest.md b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/autorest.md index b262196edc6a..0d9bc97c0991 100644 --- a/sdk/marketplace/Azure.ResourceManager.Marketplace/src/autorest.md +++ b/sdk/marketplace/Azure.ResourceManager.Marketplace/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: Marketplace namespace: Azure.ResourceManager.Marketplace -require: https://github.com/Azure/azure-rest-api-specs/blob/a54263176acce91199a19333d6c4717367a3317e/specification/marketplace/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/marketplace/resource-manager/readme.md #tag: package-2023-01-01 output-folder: $(this-folder)/Generated clear-output-folder: true diff --git a/sdk/storage/ci.yml b/sdk/storage/ci.yml index 2ca0501b60bd..4e749e6b85b1 100644 --- a/sdk/storage/ci.yml +++ b/sdk/storage/ci.yml @@ -12,6 +12,8 @@ trigger: - sdk/storage/Azure.Storage.DataMovement/ - sdk/storage/Azure.Storage.DataMovement.Blobs/ - sdk/storage/Azure.Storage.DataMovement.Files/ + exclude: + - sdk/storage/Azure.ResourceManager.Storage/ - sdk/storage/Azure.Storage.DataMovement.Blobs.Files.Shares/ exclude: - sdk/storage/Azure.ResourceManager.Storage/