Partager via


PatchProperties Class

Definition

Properties for reservation patch

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.PatchPropertiesTypeConverter))]
public class PatchProperties : Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.IPatchProperties
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.PatchPropertiesTypeConverter))>]
type PatchProperties = class
    interface IPatchProperties
    interface IJsonSerializable
Public Class PatchProperties
Implements IPatchProperties
Inheritance
PatchProperties
Attributes
Implements

Constructors

PatchProperties()

Creates an new PatchProperties instance.

Properties

AppliedScope

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.

AppliedScopePropertyDisplayName

Display name

AppliedScopePropertyManagementGroupId

Fully-qualified identifier of the management group where the benefit must be applied.

AppliedScopePropertyResourceGroupId

Fully-qualified identifier of the resource group.

AppliedScopePropertySubscriptionId

Fully-qualified identifier of the subscription.

AppliedScopePropertyTenantId

Tenant ID where the savings plan should apply benefit.

AppliedScopeType

Type of the Applied Scope.

InstanceFlexibility

Turning this on will apply the reservation discount to other VMs in the same VM size group. Only specify for VirtualMachines reserved resource type.

Name

Display name of the reservation

Renew

Setting this to true will automatically purchase a new reservation on the expiration date time.

RenewProperty
ReviewDateTime

This is the date-time when the Azure hybrid benefit needs to be reviewed.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of PatchProperties.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of PatchProperties.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Reservations.Models.Api20221101.IPatchProperties.

FromJsonString(String)

Creates a new instance of PatchProperties, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of PatchProperties into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to