ArmComputeModelFactory.CapacityReservationGroupPatch Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.Compute.Models.CapacityReservationGroupPatch CapacityReservationGroupPatch(System.Collections.Generic.IDictionary<string,string> tags = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.ComputeSubResourceData> capacityReservationResources = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.ComputeSubResourceData> associatedVirtualMachineResources = default, Azure.ResourceManager.Compute.Models.CapacityReservationGroupInstanceView instanceView = default, Azure.ResourceManager.Compute.Models.CapacityReservationType? reservationType = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.ComputeWriteableSubResourceData> sharingSubscriptionResources = default);
static member CapacityReservationGroupPatch : System.Collections.Generic.IDictionary<string, string> * seq<Azure.ResourceManager.Compute.Models.ComputeSubResourceData> * seq<Azure.ResourceManager.Compute.Models.ComputeSubResourceData> * Azure.ResourceManager.Compute.Models.CapacityReservationGroupInstanceView * Nullable<Azure.ResourceManager.Compute.Models.CapacityReservationType> * seq<Azure.ResourceManager.Compute.Models.ComputeWriteableSubResourceData> -> Azure.ResourceManager.Compute.Models.CapacityReservationGroupPatch
Public Shared Function CapacityReservationGroupPatch (Optional tags As IDictionary(Of String, String) = Nothing, Optional capacityReservationResources As IEnumerable(Of ComputeSubResourceData) = Nothing, Optional associatedVirtualMachineResources As IEnumerable(Of ComputeSubResourceData) = Nothing, Optional instanceView As CapacityReservationGroupInstanceView = Nothing, Optional reservationType As Nullable(Of CapacityReservationType) = Nothing, Optional sharingSubscriptionResources As IEnumerable(Of ComputeWriteableSubResourceData) = Nothing) As CapacityReservationGroupPatch
Parameters
- tags
- IDictionary<String,String>
Resource tags.
- capacityReservationResources
- IEnumerable<ComputeSubResourceData>
A list of all capacity reservation resource ids that belong to capacity reservation group.
- associatedVirtualMachineResources
- IEnumerable<ComputeSubResourceData>
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.
- reservationType
- Nullable<CapacityReservationType>
Indicates the type of capacity reservation. Allowed values are 'Block' for block capacity reservations and 'Targeted' for reservations that enable a VM to consume a specific capacity reservation when a capacity reservation group is provided. The reservation type is immutable and cannot be changed after it is assigned.
- sharingSubscriptionResources
- IEnumerable<ComputeWriteableSubResourceData>
Specifies an array of subscription resource IDs that capacity reservation group is shared with. Block Capacity Reservations does not support sharing across subscriptions. Note: Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details.
Returns
A new CapacityReservationGroupPatch instance for mocking.