예제 #1
0
 /// <summary>
 /// Initializes a new instance of the ReservationResponse class.
 /// </summary>
 /// <param name="location">The Azure Region where the reserved resource
 /// lives.</param>
 /// <param name="id">Identifier of the reservation</param>
 /// <param name="name">Name of the reservation</param>
 /// <param name="type">Type of resource.
 /// "Microsoft.Capacity/reservationOrders/reservations"</param>
 public ReservationResponse(string location = default(string), int?etag = default(int?), string id = default(string), string name = default(string), SkuName sku = default(SkuName), ReservationProperties properties = default(ReservationProperties), string type = default(string))
 {
     Location   = location;
     Etag       = etag;
     Id         = id;
     Name       = name;
     Sku        = sku;
     Properties = properties;
     Type       = type;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the ReservationResponse class.
 /// </summary>
 /// <param name="location">The Azure Region where the reserved resource
 /// lives.</param>
 /// <param name="id">Identifier of the reservation</param>
 /// <param name="name">Name of the reservation</param>
 /// <param name="sku">The sku information associated to this
 /// reservation </param>
 /// <param name="properties">The properties associated to this
 /// reservation </param>
 /// <param name="type">Type of resource.
 /// "Microsoft.Capacity/reservationOrders/reservations"</param>
 /// <param name="kind">Resource Provider type to be reserved. Possible
 /// values include: 'Microsoft.Compute'</param>
 public ReservationResponse(string location = default(string), int?etag = default(int?), string id = default(string), string name = default(string), SkuName sku = default(SkuName), ReservationsProperties properties = default(ReservationsProperties), string type = default(string), Kind?kind = default(Kind?), SystemData systemData = default(SystemData))
 {
     Location   = location;
     Etag       = etag;
     Id         = id;
     Name       = name;
     Sku        = sku;
     Properties = properties;
     Type       = type;
     Kind       = kind;
     SystemData = systemData;
     CustomInit();
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the PurchaseRequest class.
 /// </summary>
 /// <param name="location">The Azure Region where the reserved resource
 /// lives.</param>
 /// <param name="reservedResourceType">Possible values include:
 /// 'VirtualMachines', 'SqlDatabases', 'SuseLinux', 'CosmosDb'</param>
 /// <param name="term">Possible values include: 'P1Y', 'P3Y'</param>
 /// <param name="displayName">Friendly name of the Reservation</param>
 /// <param name="appliedScopeType">Possible values include: 'Single',
 /// 'Shared'</param>
 /// <param name="reservedResourceProperties">Properties specific to
 /// each reserved resource type. Not required if not
 /// applicable.</param>
 public PurchaseRequest(SkuName sku = default(SkuName), string location = default(string), string reservedResourceType = default(string), string billingScopeId = default(string), string term = default(string), int?quantity = default(int?), string displayName = default(string), string appliedScopeType = default(string), IList <string> appliedScopes = default(IList <string>), PurchaseRequestPropertiesReservedResourceProperties reservedResourceProperties = default(PurchaseRequestPropertiesReservedResourceProperties))
 {
     Sku                        = sku;
     Location                   = location;
     ReservedResourceType       = reservedResourceType;
     BillingScopeId             = billingScopeId;
     Term                       = term;
     Quantity                   = quantity;
     DisplayName                = displayName;
     AppliedScopeType           = appliedScopeType;
     AppliedScopes              = appliedScopes;
     ReservedResourceProperties = reservedResourceProperties;
     CustomInit();
 }