GetCurrentMonthUsageResponse constructor
GetCurrentMonthUsageResponse({
- Timestamp? startDate,
- Timestamp? endDate,
- @Deprecated('This field is deprecated.') double? cloudStorageUsageCost,
- @Deprecated('This field is deprecated.') double? dataUploadUsageCost,
- @Deprecated('This field is deprecated.') double? dataEgresUsageCost,
- @Deprecated('This field is deprecated.') double? remoteControlUsageCost,
- @Deprecated('This field is deprecated.') double? standardComputeUsageCost,
- @Deprecated('This field is deprecated.') double? discountAmount,
- @Deprecated('This field is deprecated.') double? totalUsageWithDiscount,
- @Deprecated('This field is deprecated.') double? totalUsageWithoutDiscount,
- @Deprecated('This field is deprecated.') double? perMachineUsageCost,
- @Deprecated('This field is deprecated.') double? binaryDataCloudStorageUsageCost,
- @Deprecated('This field is deprecated.') double? otherCloudStorageUsageCost,
- Iterable<
ResourceUsageCostsBySource> ? resourceUsageCostsBySource, - double? subtotal,
Implementation
factory GetCurrentMonthUsageResponse({
$44.Timestamp? startDate,
$44.Timestamp? endDate,
@$core.Deprecated('This field is deprecated.')
$core.double? cloudStorageUsageCost,
@$core.Deprecated('This field is deprecated.')
$core.double? dataUploadUsageCost,
@$core.Deprecated('This field is deprecated.')
$core.double? dataEgresUsageCost,
@$core.Deprecated('This field is deprecated.')
$core.double? remoteControlUsageCost,
@$core.Deprecated('This field is deprecated.')
$core.double? standardComputeUsageCost,
@$core.Deprecated('This field is deprecated.')
$core.double? discountAmount,
@$core.Deprecated('This field is deprecated.')
$core.double? totalUsageWithDiscount,
@$core.Deprecated('This field is deprecated.')
$core.double? totalUsageWithoutDiscount,
@$core.Deprecated('This field is deprecated.')
$core.double? perMachineUsageCost,
@$core.Deprecated('This field is deprecated.')
$core.double? binaryDataCloudStorageUsageCost,
@$core.Deprecated('This field is deprecated.')
$core.double? otherCloudStorageUsageCost,
$core.Iterable<ResourceUsageCostsBySource>? resourceUsageCostsBySource,
$core.double? subtotal,
}) {
final $result = create();
if (startDate != null) {
$result.startDate = startDate;
}
if (endDate != null) {
$result.endDate = endDate;
}
if (cloudStorageUsageCost != null) {
// ignore: deprecated_member_use_from_same_package
$result.cloudStorageUsageCost = cloudStorageUsageCost;
}
if (dataUploadUsageCost != null) {
// ignore: deprecated_member_use_from_same_package
$result.dataUploadUsageCost = dataUploadUsageCost;
}
if (dataEgresUsageCost != null) {
// ignore: deprecated_member_use_from_same_package
$result.dataEgresUsageCost = dataEgresUsageCost;
}
if (remoteControlUsageCost != null) {
// ignore: deprecated_member_use_from_same_package
$result.remoteControlUsageCost = remoteControlUsageCost;
}
if (standardComputeUsageCost != null) {
// ignore: deprecated_member_use_from_same_package
$result.standardComputeUsageCost = standardComputeUsageCost;
}
if (discountAmount != null) {
// ignore: deprecated_member_use_from_same_package
$result.discountAmount = discountAmount;
}
if (totalUsageWithDiscount != null) {
// ignore: deprecated_member_use_from_same_package
$result.totalUsageWithDiscount = totalUsageWithDiscount;
}
if (totalUsageWithoutDiscount != null) {
// ignore: deprecated_member_use_from_same_package
$result.totalUsageWithoutDiscount = totalUsageWithoutDiscount;
}
if (perMachineUsageCost != null) {
// ignore: deprecated_member_use_from_same_package
$result.perMachineUsageCost = perMachineUsageCost;
}
if (binaryDataCloudStorageUsageCost != null) {
// ignore: deprecated_member_use_from_same_package
$result.binaryDataCloudStorageUsageCost = binaryDataCloudStorageUsageCost;
}
if (otherCloudStorageUsageCost != null) {
// ignore: deprecated_member_use_from_same_package
$result.otherCloudStorageUsageCost = otherCloudStorageUsageCost;
}
if (resourceUsageCostsBySource != null) {
$result.resourceUsageCostsBySource.addAll(resourceUsageCostsBySource);
}
if (subtotal != null) {
$result.subtotal = subtotal;
}
return $result;
}