public CapacityReservationUpdate(IDictionary <string, string> tags, string reservationId, IList <SubResourceReadOnly> virtualMachinesAssociated, System.DateTime?provisioningTime, string provisioningState, CapacityReservationInstanceView instanceView, Sku sku)
     : base(tags)
 {
     ReservationId             = reservationId;
     VirtualMachinesAssociated = virtualMachinesAssociated;
     ProvisioningTime          = provisioningTime;
     ProvisioningState         = provisioningState;
     InstanceView = instanceView;
     Sku          = sku;
     CustomInit();
 }
示例#2
0
 public CapacityReservation(string location, Sku sku, string id, string name, string type, IDictionary <string, string> tags, string reservationId, IList <SubResourceReadOnly> virtualMachinesAssociated, System.DateTime?provisioningTime, string provisioningState, CapacityReservationInstanceView instanceView, IList <string> zones)
     : base(location, id, name, type, tags)
 {
     ReservationId             = reservationId;
     VirtualMachinesAssociated = virtualMachinesAssociated;
     ProvisioningTime          = provisioningTime;
     ProvisioningState         = provisioningState;
     InstanceView = instanceView;
     Sku          = sku;
     Zones        = zones;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the CapacityReservationUpdate class.
 /// </summary>
 /// <param name="tags">Resource tags</param>
 /// <param name="reservationId">A unique id generated and assigned to
 /// the capacity reservation by the platform which does not change
 /// throughout the lifetime of the resource.</param>
 /// <param name="virtualMachinesAssociated">A list of all virtual
 /// machine resource ids that are associated with the capacity
 /// reservation.</param>
 /// <param name="provisioningTime">The date time when the capacity
 /// reservation was last updated.</param>
 /// <param name="provisioningState">The provisioning state, which only
 /// appears in the response.</param>
 /// <param name="instanceView">The Capacity reservation instance
 /// view.</param>
 /// <param name="timeCreated">Specifies the time at which the Capacity
 /// Reservation resource was created.&lt;br&gt;&lt;br&gt;Minimum
 /// api-version: 2022-03-01.</param>
 /// <param name="sku">SKU of the resource for which capacity needs be
 /// reserved. The SKU name and capacity is required to be set.
 /// Currently VM Skus with the capability called
 /// 'CapacityReservationSupported' set to true are supported. Refer to
 /// List Microsoft.Compute SKUs in a region
 /// (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for
 /// supported values.</param>
 public CapacityReservationUpdate(IDictionary <string, string> tags = default(IDictionary <string, string>), string reservationId = default(string), IList <SubResourceReadOnly> virtualMachinesAssociated = default(IList <SubResourceReadOnly>), System.DateTime?provisioningTime = default(System.DateTime?), string provisioningState = default(string), CapacityReservationInstanceView instanceView = default(CapacityReservationInstanceView), System.DateTime?timeCreated = default(System.DateTime?), Sku sku = default(Sku))
     : base(tags)
 {
     ReservationId             = reservationId;
     VirtualMachinesAssociated = virtualMachinesAssociated;
     ProvisioningTime          = provisioningTime;
     ProvisioningState         = provisioningState;
     InstanceView = instanceView;
     TimeCreated  = timeCreated;
     Sku          = sku;
     CustomInit();
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the CapacityReservation class.
 /// </summary>
 /// <param name="location">Resource location</param>
 /// <param name="sku">SKU of the resource for which capacity needs be
 /// reserved. The SKU name and capacity is required to be set.
 /// Currently VM Skus with the capability called
 /// 'CapacityReservationSupported' set to true are supported. Refer to
 /// List Microsoft.Compute SKUs in a region
 /// (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for
 /// supported values.</param>
 /// <param name="id">Resource Id</param>
 /// <param name="name">Resource name</param>
 /// <param name="type">Resource type</param>
 /// <param name="tags">Resource tags</param>
 /// <param name="reservationId">A unique id generated and assigned to
 /// the capacity reservation by the platform which does not change
 /// throughout the lifetime of the resource.</param>
 /// <param name="virtualMachinesAssociated">A list of all virtual
 /// machine resource ids that are associated with the capacity
 /// reservation.</param>
 /// <param name="provisioningTime">The date time when the capacity
 /// reservation was last updated.</param>
 /// <param name="provisioningState">The provisioning state, which only
 /// appears in the response.</param>
 /// <param name="instanceView">The Capacity reservation instance
 /// view.</param>
 /// <param name="timeCreated">Specifies the time at which the Capacity
 /// Reservation resource was created.&lt;br&gt;&lt;br&gt;Minimum
 /// api-version: 2022-03-01.</param>
 /// <param name="zones">Availability Zone to use for this capacity
 /// reservation. The zone has to be single value and also should be
 /// part for the list of zones specified during the capacity
 /// reservation group creation. The zone can be assigned only during
 /// creation. If not provided, the reservation supports only non-zonal
 /// deployments. If provided, enforces VM/VMSS using this capacity
 /// reservation to be in same zone.</param>
 public CapacityReservation(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string reservationId = default(string), IList <SubResourceReadOnly> virtualMachinesAssociated = default(IList <SubResourceReadOnly>), System.DateTime?provisioningTime = default(System.DateTime?), string provisioningState = default(string), CapacityReservationInstanceView instanceView = default(CapacityReservationInstanceView), System.DateTime?timeCreated = default(System.DateTime?), IList <string> zones = default(IList <string>))
     : base(location, id, name, type, tags)
 {
     ReservationId             = reservationId;
     VirtualMachinesAssociated = virtualMachinesAssociated;
     ProvisioningTime          = provisioningTime;
     ProvisioningState         = provisioningState;
     InstanceView = instanceView;
     TimeCreated  = timeCreated;
     Sku          = sku;
     Zones        = zones;
     CustomInit();
 }