Delen via


ArmComputeModelFactory.CapacityReservationGroupPatch Method

Definition

Initializes a new instance of CapacityReservationGroupPatch.

public static Azure.ResourceManager.Compute.Models.CapacityReservationGroupPatch CapacityReservationGroupPatch (System.Collections.Generic.IDictionary<string,string> tags = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.SubResource> capacityReservations = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.SubResource> virtualMachinesAssociated = default, Azure.ResourceManager.Compute.Models.CapacityReservationGroupInstanceView instanceView = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WritableSubResource> sharingSubscriptionIds = default);
static member CapacityReservationGroupPatch : System.Collections.Generic.IDictionary<string, string> * seq<Azure.ResourceManager.Resources.Models.SubResource> * seq<Azure.ResourceManager.Resources.Models.SubResource> * Azure.ResourceManager.Compute.Models.CapacityReservationGroupInstanceView * seq<Azure.ResourceManager.Resources.Models.WritableSubResource> -> Azure.ResourceManager.Compute.Models.CapacityReservationGroupPatch
Public Shared Function CapacityReservationGroupPatch (Optional tags As IDictionary(Of String, String) = Nothing, Optional capacityReservations As IEnumerable(Of SubResource) = Nothing, Optional virtualMachinesAssociated As IEnumerable(Of SubResource) = Nothing, Optional instanceView As CapacityReservationGroupInstanceView = Nothing, Optional sharingSubscriptionIds As IEnumerable(Of WritableSubResource) = Nothing) As CapacityReservationGroupPatch

Parameters

tags
IDictionary<String,String>

Resource tags.

capacityReservations
IEnumerable<SubResource>

A list of all capacity reservation resource ids that belong to capacity reservation group.

virtualMachinesAssociated
IEnumerable<SubResource>

A list of references to all virtual machines associated to the capacity reservation group.

instanceView
CapacityReservationGroupInstanceView

The capacity reservation group instance view which has the list of instance views for all the capacity reservations that belong to the capacity reservation group.

sharingSubscriptionIds
IEnumerable<WritableSubResource>

Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. Pls. keep in mind the capacity reservation group resource generally can be shared across subscriptions belonging to a single azure AAD tenant or cross AAD tenant if there is a trust relationship established between the AAD tenants. Note: Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details.

Returns

A new CapacityReservationGroupPatch instance for mocking.

Applies to