-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
ReservationDetailPatch.cs
52 lines (46 loc) · 2.57 KB
/
ReservationDetailPatch.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.Reservations.Models
{
/// <summary> The request for reservation patch. </summary>
public partial class ReservationDetailPatch
{
/// <summary> Initializes a new instance of <see cref="ReservationDetailPatch"/>. </summary>
public ReservationDetailPatch()
{
AppliedScopes = new ChangeTrackingList<string>();
}
/// <summary> Type of the Applied Scope. </summary>
public AppliedScopeType? AppliedScopeType { get; set; }
/// <summary> List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared. This property will be deprecated and replaced by appliedScopeProperties instead for Single AppliedScopeType. </summary>
public IList<string> AppliedScopes { get; }
/// <summary> Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId if AppliedScopeType is ManagementGroup. </summary>
public AppliedScopeProperties AppliedScopeProperties { get; set; }
/// <summary> Turning this on will apply the reservation discount to other VMs in the same VM size group. Only specify for VirtualMachines reserved resource type. </summary>
public InstanceFlexibility? InstanceFlexibility { get; set; }
/// <summary> Display name of the reservation. </summary>
public string Name { get; set; }
/// <summary> Setting this to true will automatically purchase a new reservation on the expiration date time. </summary>
public bool? IsRenewEnabled { get; set; }
/// <summary> Gets or sets the renew properties. </summary>
internal PatchPropertiesRenewProperties RenewProperties { get; set; }
/// <summary> The request for reservation purchase. </summary>
public ReservationPurchaseContent RenewPurchaseProperties
{
get => RenewProperties is null ? default : RenewProperties.PurchaseProperties;
set
{
if (RenewProperties is null)
RenewProperties = new PatchPropertiesRenewProperties();
RenewProperties.PurchaseProperties = value;
}
}
/// <summary> This is the date-time when the Azure hybrid benefit needs to be reviewed. </summary>
public DateTimeOffset? ReviewOn { get; set; }
}
}