コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the UsageDetail class.
 /// </summary>
 /// <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="billingPeriodId">The id of the billing period resource
 /// that the usage belongs to.</param>
 /// <param name="invoiceId">The id of the invoice resource that the
 /// usage belongs to.</param>
 /// <param name="usageStart">The start of the date time range covered
 /// by the usage detail.</param>
 /// <param name="usageEnd">The end of the date time range covered by
 /// the usage detail.</param>
 /// <param name="instanceName">The name of the resource instance that
 /// the usage is about.</param>
 /// <param name="instanceId">The uri of the resource instance that the
 /// usage is about.</param>
 /// <param name="instanceLocation">The location of the resource
 /// instance that the usage is about.</param>
 /// <param name="currency">The ISO currency in which the meter is
 /// charged, for example, USD.</param>
 /// <param name="usageQuantity">The quantity of usage.</param>
 /// <param name="billableQuantity">The billable usage quantity.</param>
 /// <param name="pretaxCost">The amount of cost before tax.</param>
 /// <param name="isEstimated">The estimated usage is subject to
 /// change.</param>
 /// <param name="meterId">The meter id.</param>
 /// <param name="meterDetails">The details about the meter. By default
 /// this is not populated, unless it's specified in $expand.</param>
 /// <param name="subscriptionGuid">Subscription guid.</param>
 /// <param name="subscriptionName">Subscription name.</param>
 /// <param name="accountName">Account name.</param>
 /// <param name="departmentName">Department name.</param>
 /// <param name="product">Product name.</param>
 /// <param name="consumedService">Consumed service name.</param>
 /// <param name="costCenter">The cost center of this department if it
 /// is a department and a costcenter exists</param>
 /// <param name="additionalProperties">Additional details of this usage
 /// item. By default this is not populated, unless it's specified in
 /// $expand.</param>
 public UsageDetail(string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string billingPeriodId = default(string), string invoiceId = default(string), System.DateTime?usageStart = default(System.DateTime?), System.DateTime?usageEnd = default(System.DateTime?), string instanceName = default(string), string instanceId = default(string), string instanceLocation = default(string), string currency = default(string), decimal?usageQuantity = default(decimal?), decimal?billableQuantity = default(decimal?), decimal?pretaxCost = default(decimal?), bool?isEstimated = default(bool?), string meterId = default(string), MeterDetails meterDetails = default(MeterDetails), string subscriptionGuid = default(string), string subscriptionName = default(string), string accountName = default(string), string departmentName = default(string), string product = default(string), string consumedService = default(string), string costCenter = default(string), string additionalProperties = default(string))
     : base(id, name, type, tags)
 {
     BillingPeriodId      = billingPeriodId;
     InvoiceId            = invoiceId;
     UsageStart           = usageStart;
     UsageEnd             = usageEnd;
     InstanceName         = instanceName;
     InstanceId           = instanceId;
     InstanceLocation     = instanceLocation;
     Currency             = currency;
     UsageQuantity        = usageQuantity;
     BillableQuantity     = billableQuantity;
     PretaxCost           = pretaxCost;
     IsEstimated          = isEstimated;
     MeterId              = meterId;
     MeterDetails         = meterDetails;
     SubscriptionGuid     = subscriptionGuid;
     SubscriptionName     = subscriptionName;
     AccountName          = accountName;
     DepartmentName       = departmentName;
     Product              = product;
     ConsumedService      = consumedService;
     CostCenter           = costCenter;
     AdditionalProperties = additionalProperties;
     CustomInit();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the PriceSheetProperties class.
 /// </summary>
 /// <param name="billingPeriodId">The id of the billing period resource
 /// that the usage belongs to.</param>
 /// <param name="meterId">The meter id</param>
 /// <param name="meterDetails">The details about the meter. By default
 /// this is not populated, unless it's specified in $expand.</param>
 /// <param name="unitOfMeasure">Unit of measure</param>
 /// <param name="includedQuantity">Included quality for an
 /// offer</param>
 /// <param name="partNumber">Part Number</param>
 /// <param name="unitPrice">Unit Price</param>
 /// <param name="currencyCode">Currency Code</param>
 public PriceSheetProperties(string billingPeriodId = default(string), string meterId = default(string), MeterDetails meterDetails = default(MeterDetails), string unitOfMeasure = default(string), decimal?includedQuantity = default(decimal?), string partNumber = default(string), decimal?unitPrice = default(decimal?), string currencyCode = default(string))
 {
     BillingPeriodId  = billingPeriodId;
     MeterId          = meterId;
     MeterDetails     = meterDetails;
     UnitOfMeasure    = unitOfMeasure;
     IncludedQuantity = includedQuantity;
     PartNumber       = partNumber;
     UnitPrice        = unitPrice;
     CurrencyCode     = currencyCode;
     CustomInit();
 }