Documentation ¶
Index ¶
- Constants
- type ActionSummaryOverviewItem
- type ApplicableProducts
- type BillDetail
- type BillDetailComponent
- type BillResourceSummary
- type BillTagInfo
- type BusinessSummaryInfo
- type BusinessSummaryOverviewItem
- type BusinessSummaryTotal
- type Client
- func (c *Client) DescribeAccountBalance(request *DescribeAccountBalanceRequest) (response *DescribeAccountBalanceResponse, err error)
- func (c *Client) DescribeAccountBalanceWithContext(ctx context.Context, request *DescribeAccountBalanceRequest) (response *DescribeAccountBalanceResponse, err error)
- func (c *Client) DescribeBillDetail(request *DescribeBillDetailRequest) (response *DescribeBillDetailResponse, err error)
- func (c *Client) DescribeBillDetailWithContext(ctx context.Context, request *DescribeBillDetailRequest) (response *DescribeBillDetailResponse, err error)
- func (c *Client) DescribeBillResourceSummary(request *DescribeBillResourceSummaryRequest) (response *DescribeBillResourceSummaryResponse, err error)
- func (c *Client) DescribeBillResourceSummaryWithContext(ctx context.Context, request *DescribeBillResourceSummaryRequest) (response *DescribeBillResourceSummaryResponse, err error)
- func (c *Client) DescribeBillSummary(request *DescribeBillSummaryRequest) (response *DescribeBillSummaryResponse, err error)
- func (c *Client) DescribeBillSummaryByPayMode(request *DescribeBillSummaryByPayModeRequest) (response *DescribeBillSummaryByPayModeResponse, err error)
- func (c *Client) DescribeBillSummaryByPayModeWithContext(ctx context.Context, request *DescribeBillSummaryByPayModeRequest) (response *DescribeBillSummaryByPayModeResponse, err error)
- func (c *Client) DescribeBillSummaryByProduct(request *DescribeBillSummaryByProductRequest) (response *DescribeBillSummaryByProductResponse, err error)
- func (c *Client) DescribeBillSummaryByProductWithContext(ctx context.Context, request *DescribeBillSummaryByProductRequest) (response *DescribeBillSummaryByProductResponse, err error)
- func (c *Client) DescribeBillSummaryByProject(request *DescribeBillSummaryByProjectRequest) (response *DescribeBillSummaryByProjectResponse, err error)
- func (c *Client) DescribeBillSummaryByProjectWithContext(ctx context.Context, request *DescribeBillSummaryByProjectRequest) (response *DescribeBillSummaryByProjectResponse, err error)
- func (c *Client) DescribeBillSummaryByRegion(request *DescribeBillSummaryByRegionRequest) (response *DescribeBillSummaryByRegionResponse, err error)
- func (c *Client) DescribeBillSummaryByRegionWithContext(ctx context.Context, request *DescribeBillSummaryByRegionRequest) (response *DescribeBillSummaryByRegionResponse, err error)
- func (c *Client) DescribeBillSummaryByTag(request *DescribeBillSummaryByTagRequest) (response *DescribeBillSummaryByTagResponse, err error)
- func (c *Client) DescribeBillSummaryByTagWithContext(ctx context.Context, request *DescribeBillSummaryByTagRequest) (response *DescribeBillSummaryByTagResponse, err error)
- func (c *Client) DescribeBillSummaryWithContext(ctx context.Context, request *DescribeBillSummaryRequest) (response *DescribeBillSummaryResponse, err error)
- func (c *Client) DescribeDosageCosDetailByDate(request *DescribeDosageCosDetailByDateRequest) (response *DescribeDosageCosDetailByDateResponse, err error)
- func (c *Client) DescribeDosageCosDetailByDateWithContext(ctx context.Context, request *DescribeDosageCosDetailByDateRequest) (response *DescribeDosageCosDetailByDateResponse, err error)
- func (c *Client) DescribeVoucherInfo(request *DescribeVoucherInfoRequest) (response *DescribeVoucherInfoResponse, err error)
- func (c *Client) DescribeVoucherInfoWithContext(ctx context.Context, request *DescribeVoucherInfoRequest) (response *DescribeVoucherInfoResponse, err error)
- func (c *Client) DescribeVoucherUsageDetails(request *DescribeVoucherUsageDetailsRequest) (response *DescribeVoucherUsageDetailsResponse, err error)
- func (c *Client) DescribeVoucherUsageDetailsWithContext(ctx context.Context, request *DescribeVoucherUsageDetailsRequest) (response *DescribeVoucherUsageDetailsResponse, err error)
- type CosDetailSets
- type DescribeAccountBalanceRequest
- type DescribeAccountBalanceRequestParams
- type DescribeAccountBalanceResponse
- type DescribeAccountBalanceResponseParams
- type DescribeBillDetailRequest
- type DescribeBillDetailRequestParams
- type DescribeBillDetailResponse
- type DescribeBillDetailResponseParams
- type DescribeBillResourceSummaryRequest
- type DescribeBillResourceSummaryRequestParams
- type DescribeBillResourceSummaryResponse
- type DescribeBillResourceSummaryResponseParams
- type DescribeBillSummaryByPayModeRequest
- type DescribeBillSummaryByPayModeRequestParams
- type DescribeBillSummaryByPayModeResponse
- type DescribeBillSummaryByPayModeResponseParams
- type DescribeBillSummaryByProductRequest
- type DescribeBillSummaryByProductRequestParams
- type DescribeBillSummaryByProductResponse
- type DescribeBillSummaryByProductResponseParams
- type DescribeBillSummaryByProjectRequest
- type DescribeBillSummaryByProjectRequestParams
- type DescribeBillSummaryByProjectResponse
- type DescribeBillSummaryByProjectResponseParams
- type DescribeBillSummaryByRegionRequest
- type DescribeBillSummaryByRegionRequestParams
- type DescribeBillSummaryByRegionResponse
- type DescribeBillSummaryByRegionResponseParams
- type DescribeBillSummaryByTagRequest
- type DescribeBillSummaryByTagRequestParams
- type DescribeBillSummaryByTagResponse
- type DescribeBillSummaryByTagResponseParams
- type DescribeBillSummaryRequest
- type DescribeBillSummaryRequestParams
- type DescribeBillSummaryResponse
- type DescribeBillSummaryResponseParams
- type DescribeDosageCosDetailByDateRequest
- type DescribeDosageCosDetailByDateRequestParams
- type DescribeDosageCosDetailByDateResponse
- type DescribeDosageCosDetailByDateResponseParams
- type DescribeVoucherInfoRequest
- type DescribeVoucherInfoRequestParams
- type DescribeVoucherInfoResponse
- type DescribeVoucherInfoResponseParams
- type DescribeVoucherUsageDetailsRequest
- type DescribeVoucherUsageDetailsRequestParams
- type DescribeVoucherUsageDetailsResponse
- type DescribeVoucherUsageDetailsResponseParams
- type ExcludedProducts
- type PayModeSummaryOverviewItem
- type ProjectSummaryOverviewItem
- type RegionSummaryOverviewItem
- type SummaryDetail
- type SummaryTotal
- type TagSummaryOverviewItem
- type UsageDetails
- type UsageRecords
- type VoucherInfos
Constants ¶
const ( // No permission. AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // Operation failed. FAILEDOPERATION = "FailedOperation" // Invalid App ID. FAILEDOPERATION_INVALIDAPPID = "FailedOperation.InvalidAppId" // Payment failed. Please contact Tencent Cloud to resolve this issue. FAILEDOPERATION_PAYPRICEERROR = "FailedOperation.PayPriceError" // Failed to get the number of data entries. FAILEDOPERATION_QUERYCOUNTFAILED = "FailedOperation.QueryCountFailed" // Summary is being built. Please try again later. FAILEDOPERATION_SUMMARYDATANOTREADY = "FailedOperation.SummaryDataNotReady" // This cost allocation tag key does not exist. FAILEDOPERATION_TAGKEYNOTEXIST = "FailedOperation.TagKeyNotExist" // Internal error. INTERNALERROR = "InternalError" // Gateway error. INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" // Undefined exception. INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" // Invalid parameter. INVALIDPARAMETER = "InvalidParameter" // Invalid parameter value. INVALIDPARAMETERVALUE = "InvalidParameterValue" // The account does not have CAM permission. UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" // Operation unsupported. UNSUPPORTEDOPERATION = "UnsupportedOperation" )
const APIVersion = "2018-07-09"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionSummaryOverviewItem ¶
type ActionSummaryOverviewItem struct { // Transaction type code ActionType *string `json:"ActionType,omitnil" name:"ActionType"` // Transaction type, which can be monthly subscription purchase, monthly subscription renewal, or pay-as-you-go deduction. ActionTypeName *string `json:"ActionTypeName,omitnil" name:"ActionTypeName"` // Cost ratio, to two decimal points RealTotalCostRatio *string `json:"RealTotalCostRatio,omitnil" name:"RealTotalCostRatio"` // Total amount after discount RealTotalCost *string `json:"RealTotalCost,omitnil" name:"RealTotalCost"` // Cash credit: The amount paid from the user’s cash account CashPayAmount *string `json:"CashPayAmount,omitnil" name:"CashPayAmount"` // Free credit: The amount paid with the user’s free credit IncentivePayAmount *string `json:"IncentivePayAmount,omitnil" name:"IncentivePayAmount"` // Voucher payment: The voucher deduction amount VoucherPayAmount *string `json:"VoucherPayAmount,omitnil" name:"VoucherPayAmount"` // Commission credit: The amount paid with the user’s commission credit. Note: This field may return null, indicating that no valid values can be obtained. TransferPayAmount *string `json:"TransferPayAmount,omitnil" name:"TransferPayAmount"` // Billing month, e.g. `2019-08` BillMonth *string `json:"BillMonth,omitnil" name:"BillMonth"` // The original cost in USD. This parameter has become valid since v3.0 bills took effect in May 2021, and before that `-` was returned for this parameter. If a customer uses a contract price different from the published price, `-` will also be returned for this parameter. TotalCost *string `json:"TotalCost,omitnil" name:"TotalCost"` }
type ApplicableProducts ¶
type ApplicableProducts struct { // Valid values: `all products` or names of the applicable products (string). Multiple names are separated by commas. GoodsName *string `json:"GoodsName,omitnil" name:"GoodsName"` // Valid values: `postPay`: pay-as-you-go; `prePay`: prepaid; `riPay`: reserved instance; empty or `*`: all. If `GoodsName` contains multiple product names and `PayMode` is `*`, it indicates that the voucher can be used in all billing modes for each of the products. PayMode *string `json:"PayMode,omitnil" name:"PayMode"` }
type BillDetail ¶
type BillDetail struct { // Product name: The name of a Tencent Cloud product purchased by the user, such as CVM. BusinessCodeName *string `json:"BusinessCodeName,omitnil" name:"BusinessCodeName"` // Subproduct name: The subcategory of a Tencent Cloud product purchased by the user, such as CVM – Standard S1. ProductCodeName *string `json:"ProductCodeName,omitnil" name:"ProductCodeName"` // Billing mode, which can be monthly subscription or pay-as-you-go. PayModeName *string `json:"PayModeName,omitnil" name:"PayModeName"` // Project name: The project to which a resource belongs, which is user-designated. If a resource has not been assigned to a project, it will automatically belong to the default project. ProjectName *string `json:"ProjectName,omitnil" name:"ProjectName"` // Region: The region to which a resource belongs, such as South China (Guangzhou). RegionName *string `json:"RegionName,omitnil" name:"RegionName"` // Availability zone: availability zone of a resource, e.g. Guangzhou Zone 3 ZoneName *string `json:"ZoneName,omitnil" name:"ZoneName"` // Instance ID: The object ID of a billed resource, such as a CVM instance ID. This object ID may vary due to various forms and contents of resources in different products. ResourceId *string `json:"ResourceId,omitnil" name:"ResourceId"` // Instance name: The resource name set by the user in the console. If it is not set, it will be empty by default. ResourceName *string `json:"ResourceName,omitnil" name:"ResourceName"` // Transaction type, which can be monthly subscription purchase, monthly subscription renewal, or pay-as-you-go deduction. ActionTypeName *string `json:"ActionTypeName,omitnil" name:"ActionTypeName"` // Order ID: The order number for a monthly subscription purchase OrderId *string `json:"OrderId,omitnil" name:"OrderId"` // Transaction ID: The bill number for a deducted payment BillId *string `json:"BillId,omitnil" name:"BillId"` // Transaction time: The time at which a payment was deducted PayTime *string `json:"PayTime,omitnil" name:"PayTime"` // Usage start time: The time at which product or service usage starts FeeBeginTime *string `json:"FeeBeginTime,omitnil" name:"FeeBeginTime"` // Usage end time: The time at which product or service usage ends FeeEndTime *string `json:"FeeEndTime,omitnil" name:"FeeEndTime"` // Component list ComponentSet []*BillDetailComponent `json:"ComponentSet,omitnil" name:"ComponentSet"` // Payer account ID: The account ID of the payer, which is the unique identifier of a Tencent Cloud user. PayerUin *string `json:"PayerUin,omitnil" name:"PayerUin"` // Owner account ID: The account ID of the actual resource user OwnerUin *string `json:"OwnerUin,omitnil" name:"OwnerUin"` // Operator account ID: The account or role ID of the operator who purchases or activates a resource OperateUin *string `json:"OperateUin,omitnil" name:"OperateUin"` // Tag information. Note: This field may return null, indicating that no valid values can be obtained. Tags []*BillTagInfo `json:"Tags,omitnil" name:"Tags"` // Product code. Note: This field may return null, indicating that no valid values can be obtained. BusinessCode *string `json:"BusinessCode,omitnil" name:"BusinessCode"` // Subproduct code. Note: This field may return null, indicating that no valid values can be obtained. ProductCode *string `json:"ProductCode,omitnil" name:"ProductCode"` // Transaction type code. Note: This field may return null, indicating that no valid values can be obtained. ActionType *string `json:"ActionType,omitnil" name:"ActionType"` // Region ID. Note: This field may return null, indicating that no valid values can be obtained. RegionId *string `json:"RegionId,omitnil" name:"RegionId"` // Project ID ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // Price attribute // Note: This field may return null, indicating that no valid values can be obtained. PriceInfo []*string `json:"PriceInfo,omitnil" name:"PriceInfo"` }
type BillDetailComponent ¶
type BillDetailComponent struct { // Component type: The component type of a product or service purchased, such as CVM instance components including CPU and memory. ComponentCodeName *string `json:"ComponentCodeName,omitnil" name:"ComponentCodeName"` // Component name: The specific component of a product or service purchased ItemCodeName *string `json:"ItemCodeName,omitnil" name:"ItemCodeName"` // Component list price: The listed unit price of a component. If a customer has applied for a fixed preferential price or contract price, this parameter will not be displayed by default. SinglePrice *string `json:"SinglePrice,omitnil" name:"SinglePrice"` // Specified price of a component. This parameter has been deprecated. // // Deprecated: SpecifiedPrice is deprecated. SpecifiedPrice *string `json:"SpecifiedPrice,omitnil" name:"SpecifiedPrice"` // Component price measurement unit: The unit of measurement for a component price, which is composed of USD, usage unit, and duration unit. PriceUnit *string `json:"PriceUnit,omitnil" name:"PriceUnit"` // Component usage: The actually settled usage of a component, which is "Raw usage - Deducted usage (including packages)". UsedAmount *string `json:"UsedAmount,omitnil" name:"UsedAmount"` // Component usage unit: The unit of measurement for component usage UsedAmountUnit *string `json:"UsedAmountUnit,omitnil" name:"UsedAmountUnit"` // Raw usage/duration: The raw usage/duration of a component before deduction. Note: This field may return null, indicating that no valid values can be obtained. RealTotalMeasure *string `json:"RealTotalMeasure,omitnil" name:"RealTotalMeasure"` // Deducted usage/duration (including packages): The usage/duration deducted with a package. Note: This field may return null, indicating that no valid values can be obtained. DeductedMeasure *string `json:"DeductedMeasure,omitnil" name:"DeductedMeasure"` // Usage duration: The resource usage duration TimeSpan *string `json:"TimeSpan,omitnil" name:"TimeSpan"` // Duration unit: The unit of measurement for usage duration TimeUnitName *string `json:"TimeUnitName,omitnil" name:"TimeUnitName"` // Original cost: The original cost of a resource, which is "List price x Usage x Usage duration". If a customer has applied for a fixed preferential price or contract price or is in a refund scenario, this parameter will not be displayed by default. Cost *string `json:"Cost,omitnil" name:"Cost"` // Discount multiplier: The discount multiplier applied to the cost of the resource. If a customer has applied for a fixed preferential price or contract price or is in a refund scenario, this parameter will not be displayed by default. Discount *string `json:"Discount,omitnil" name:"Discount"` // Offer type ReduceType *string `json:"ReduceType,omitnil" name:"ReduceType"` // Total amount after discount: Total amount after discount = (Original cost - RI deduction (cost) - SP deduction (cost)) x Discount multiplier RealCost *string `json:"RealCost,omitnil" name:"RealCost"` // Voucher payment: The voucher deduction amount VoucherPayAmount *string `json:"VoucherPayAmount,omitnil" name:"VoucherPayAmount"` // Cash credit: The amount paid from the user’s cash account CashPayAmount *string `json:"CashPayAmount,omitnil" name:"CashPayAmount"` // Free credit: The amount paid with the user’s free credit IncentivePayAmount *string `json:"IncentivePayAmount,omitnil" name:"IncentivePayAmount"` // Commission credit: The amount paid with the user’s commission credit. Note: This field may return null, indicating that no valid values can be obtained. TransferPayAmount *string `json:"TransferPayAmount,omitnil" name:"TransferPayAmount"` // Component type code. Note: This field may return null, indicating that no valid values can be obtained. ItemCode *string `json:"ItemCode,omitnil" name:"ItemCode"` // Component name code. Note: This field may return null, indicating that no valid values can be obtained. ComponentCode *string `json:"ComponentCode,omitnil" name:"ComponentCode"` // Component contracted price: The contracted unit price of a component, which is "List price x Discount". Note: This field may return null, indicating that no valid values can be obtained. ContractPrice *string `json:"ContractPrice,omitnil" name:"ContractPrice"` // Instance type: The instance type of a product or service purchased, which can be resource package, RI, SP, or spot instance. Other instance types are not displayed by default. Note: This field may return null, indicating that no valid values can be obtained. InstanceType *string `json:"InstanceType,omitnil" name:"InstanceType"` // RI deduction (duration): The usage duration deducted by RI. Note: This field may return null, indicating that no valid values can be obtained. RiTimeSpan *string `json:"RiTimeSpan,omitnil" name:"RiTimeSpan"` // RI deduction (cost): The amount deducted from the original cost by RI. Note: This field may return null, indicating that no valid values can be obtained. OriginalCostWithRI *string `json:"OriginalCostWithRI,omitnil" name:"OriginalCostWithRI"` // Savings plan deduction rate: The discount multiplier that applies to the component based on the remaining commitment of the savings plan. Note: This field may return null, indicating that no valid values can be obtained. SPDeductionRate *string `json:"SPDeductionRate,omitnil" name:"SPDeductionRate"` // Cost deduction by SP. This parameter has been deprecated. Note: This field may return null, indicating that no valid values can be obtained. // // Deprecated: SPDeduction is deprecated. SPDeduction *string `json:"SPDeduction,omitnil" name:"SPDeduction"` // SP deduction (cost): SP deduction (cost) = Cost deduction by SP / SP deduction rate. Note: This field may return null, indicating that no valid values can be obtained. OriginalCostWithSP *string `json:"OriginalCostWithSP,omitnil" name:"OriginalCostWithSP"` // Blended discount multiplier: The final discount multiplier that is applied after combining multiple discount types, which is "Total amount after discount / Original cost". Note: This field may return null, indicating that no valid values can be obtained. BlendedDiscount *string `json:"BlendedDiscount,omitnil" name:"BlendedDiscount"` }
type BillResourceSummary ¶
type BillResourceSummary struct { // Product name: The name of a Tencent Cloud product purchased by the user, such as CVM. BusinessCodeName *string `json:"BusinessCodeName,omitnil" name:"BusinessCodeName"` // Subproduct name: The subcategory of a Tencent Cloud product purchased by the user, such as CVM – Standard S1. ProductCodeName *string `json:"ProductCodeName,omitnil" name:"ProductCodeName"` // Billing mode, which can be monthly subscription or pay-as-you-go. PayModeName *string `json:"PayModeName,omitnil" name:"PayModeName"` // Project name: The project to which a resource belongs, which is user-designated. If a resource has not been assigned to a project, it will automatically belong to the default project. ProjectName *string `json:"ProjectName,omitnil" name:"ProjectName"` // Region: The region to which a resource belongs, such as South China (Guangzhou). RegionName *string `json:"RegionName,omitnil" name:"RegionName"` // Availability zone: The availability zone to which a resource belongs, such as Guangzhou Zone 3. ZoneName *string `json:"ZoneName,omitnil" name:"ZoneName"` // Instance ID: The object ID of a billed resource, such as a CVM instance ID. This object ID may vary due to various forms and contents of resources in different products. ResourceId *string `json:"ResourceId,omitnil" name:"ResourceId"` // Instance name: The resource name set by the user in the console. If it is not set, it will be empty by default. ResourceName *string `json:"ResourceName,omitnil" name:"ResourceName"` // Transaction type, which can be monthly subscription purchase, monthly subscription renewal, or pay-as-you-go deduction. ActionTypeName *string `json:"ActionTypeName,omitnil" name:"ActionTypeName"` // Order ID: The order number for a monthly subscription purchase OrderId *string `json:"OrderId,omitnil" name:"OrderId"` // Transaction time: The time at which a payment was deducted PayTime *string `json:"PayTime,omitnil" name:"PayTime"` // Usage start time: The time at which product or service usage starts FeeBeginTime *string `json:"FeeBeginTime,omitnil" name:"FeeBeginTime"` // Usage end time: The time at which product or service usage ends FeeEndTime *string `json:"FeeEndTime,omitnil" name:"FeeEndTime"` // Configuration description: The billable item names and usage of a resource, which are displayed on the resource bill only. ConfigDesc *string `json:"ConfigDesc,omitnil" name:"ConfigDesc"` // Extended field 1: Extended attribute information of a product, which is displayed on the resource bill only. ExtendField1 *string `json:"ExtendField1,omitnil" name:"ExtendField1"` // Extended field 2: Extended attribute information of a product, which is displayed on the resource bill only. ExtendField2 *string `json:"ExtendField2,omitnil" name:"ExtendField2"` // Original cost: The original cost of a resource, which is "List price x Usage x Usage duration". If a customer has applied for a fixed preferential price or contract price or applied for a refund, this parameter will not be displayed by default. TotalCost *string `json:"TotalCost,omitnil" name:"TotalCost"` // Discount multiplier: The discount multiplier applied to the cost of the resource. If a customer has applied for a fixed preferential price or contract price or applied for a refund, this parameter will not be displayed by default. Discount *string `json:"Discount,omitnil" name:"Discount"` // Offer type ReduceType *string `json:"ReduceType,omitnil" name:"ReduceType"` // Total amount after discount RealTotalCost *string `json:"RealTotalCost,omitnil" name:"RealTotalCost"` // Voucher payment: The voucher deduction amount VoucherPayAmount *string `json:"VoucherPayAmount,omitnil" name:"VoucherPayAmount"` // Cash credit: The amount paid from the user’s cash account CashPayAmount *string `json:"CashPayAmount,omitnil" name:"CashPayAmount"` // Free credit: The amount paid with the user’s free credit IncentivePayAmount *string `json:"IncentivePayAmount,omitnil" name:"IncentivePayAmount"` // Commission credit: The amount paid with the user’s commission credit. Note: This field may return null, indicating that no valid values can be obtained. TransferPayAmount *string `json:"TransferPayAmount,omitnil" name:"TransferPayAmount"` // Extended field 3: Extended attribute information of a product, which is displayed on the resource bill only. ExtendField3 *string `json:"ExtendField3,omitnil" name:"ExtendField3"` // Extended field 4: Extended attribute information of a product, which is displayed on the resource bill only. ExtendField4 *string `json:"ExtendField4,omitnil" name:"ExtendField4"` // Extended field 5: Extended attribute information of a product, which is displayed on the resource bill only. ExtendField5 *string `json:"ExtendField5,omitnil" name:"ExtendField5"` // Tag information. Note: This field may return null, indicating that no valid values can be obtained. Tags []*BillTagInfo `json:"Tags,omitnil" name:"Tags"` // Payer account ID: The account ID of the payer, which is the unique identifier of a Tencent Cloud user. PayerUin *string `json:"PayerUin,omitnil" name:"PayerUin"` // Owner account ID: The account ID of the actual resource user OwnerUin *string `json:"OwnerUin,omitnil" name:"OwnerUin"` // Operator account ID: The account or role ID of the operator who purchases or activates a resource. OperateUin *string `json:"OperateUin,omitnil" name:"OperateUin"` // Product code BusinessCode *string `json:"BusinessCode,omitnil" name:"BusinessCode"` // Subproduct code ProductCode *string `json:"ProductCode,omitnil" name:"ProductCode"` // Region ID RegionId *int64 `json:"RegionId,omitnil" name:"RegionId"` // Instance type: The instance type of a product or service purchased, which can be resource package, RI, SP, or spot instance. Other instance types are not displayed by default. InstanceType *string `json:"InstanceType,omitnil" name:"InstanceType"` // RI deduction (cost): The amount deducted from the original cost by RI OriginalCostWithRI *string `json:"OriginalCostWithRI,omitnil" name:"OriginalCostWithRI"` // Cost deduction by SP. This parameter has been deprecated. // // Deprecated: SPDeduction is deprecated. SPDeduction *string `json:"SPDeduction,omitnil" name:"SPDeduction"` // SP deduction (cost): SP deduction (cost) = Cost deduction by SP / SP deduction rate OriginalCostWithSP *string `json:"OriginalCostWithSP,omitnil" name:"OriginalCostWithSP"` }
type BillTagInfo ¶
type BusinessSummaryInfo ¶
type BusinessSummaryInfo struct { // Product code BusinessCode *string `json:"BusinessCode,omitnil" name:"BusinessCode"` // Product name: The name of a Tencent Cloud product purchased by the user, such as CVM. BusinessCodeName *string `json:"BusinessCodeName,omitnil" name:"BusinessCodeName"` // Original cost in USD. This parameter became valid when Bill 3.0 took effect in May 2021. Before that, `-` was returned for this parameter. If a customer has applied for a contract price different from the prices listed on the official website, `-` will also be returned for this parameter. // Note: This field may return null, indicating that no valid values can be obtained. TotalCost *string `json:"TotalCost,omitnil" name:"TotalCost"` // Total amount after discount RealTotalCost *string `json:"RealTotalCost,omitnil" name:"RealTotalCost"` // Cash credit: The amount paid from the user’s cash account CashPayAmount *string `json:"CashPayAmount,omitnil" name:"CashPayAmount"` // Free credit: The amount paid with the user’s free credit IncentivePayAmount *string `json:"IncentivePayAmount,omitnil" name:"IncentivePayAmount"` // Voucher payment: The voucher deduction amount VoucherPayAmount *string `json:"VoucherPayAmount,omitnil" name:"VoucherPayAmount"` // Commission credit: The amount paid with the user’s commission credit. Note: This field may return null, indicating that no valid values can be obtained. TransferPayAmount *string `json:"TransferPayAmount,omitnil" name:"TransferPayAmount"` }
type BusinessSummaryOverviewItem ¶
type BusinessSummaryOverviewItem struct { // Product code. Note: This field may return null, indicating that no valid values can be obtained. BusinessCode *string `json:"BusinessCode,omitnil" name:"BusinessCode"` // Product name: The name of a Tencent Cloud product purchased by the user, such as CVM. BusinessCodeName *string `json:"BusinessCodeName,omitnil" name:"BusinessCodeName"` // Cost ratio, to two decimal points RealTotalCostRatio *string `json:"RealTotalCostRatio,omitnil" name:"RealTotalCostRatio"` // Total amount after discount RealTotalCost *string `json:"RealTotalCost,omitnil" name:"RealTotalCost"` // Cash credit: The amount paid from the user’s cash account CashPayAmount *string `json:"CashPayAmount,omitnil" name:"CashPayAmount"` // Free credit: The amount paid with the user’s free credit IncentivePayAmount *string `json:"IncentivePayAmount,omitnil" name:"IncentivePayAmount"` // Voucher payment: The voucher deduction amount VoucherPayAmount *string `json:"VoucherPayAmount,omitnil" name:"VoucherPayAmount"` // Commission credit: The amount paid with the user’s commission credit. TransferPayAmount *string `json:"TransferPayAmount,omitnil" name:"TransferPayAmount"` // Billing month, e.g. `2019-08` BillMonth *string `json:"BillMonth,omitnil" name:"BillMonth"` // The original cost in USD. This parameter has become valid since v3.0 bills took effect in May 2021, and before that `-` was returned for this parameter. If a customer uses a contract price different from the published price, `-` will also be returned for this parameter. TotalCost *string `json:"TotalCost,omitnil" name:"TotalCost"` }
type BusinessSummaryTotal ¶
type BusinessSummaryTotal struct { // Total amount after discount RealTotalCost *string `json:"RealTotalCost,omitnil" name:"RealTotalCost"` // Voucher payment: The voucher deduction amount VoucherPayAmount *string `json:"VoucherPayAmount,omitnil" name:"VoucherPayAmount"` // Free credit: The amount paid with the user’s free credit IncentivePayAmount *string `json:"IncentivePayAmount,omitnil" name:"IncentivePayAmount"` // Cash credit: The amount paid from the user’s cash account CashPayAmount *string `json:"CashPayAmount,omitnil" name:"CashPayAmount"` // Commission credit: The amount paid with the user’s commission credit. TransferPayAmount *string `json:"TransferPayAmount,omitnil" name:"TransferPayAmount"` // The original cost in USD. This parameter has become valid since v3.0 bills took effect in May 2021, and before that `-` was returned for this parameter. If a customer uses a contract price different from the published price, `-` will also be returned for this parameter. TotalCost *string `json:"TotalCost,omitnil" name:"TotalCost"` }
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) DescribeAccountBalance ¶
func (c *Client) DescribeAccountBalance(request *DescribeAccountBalanceRequest) (response *DescribeAccountBalanceResponse, err error)
DescribeAccountBalance This API is used to check the Tencent Cloud account balance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_PAYPRICEERROR = "FailedOperation.PayPriceError" INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeAccountBalanceWithContext ¶
func (c *Client) DescribeAccountBalanceWithContext(ctx context.Context, request *DescribeAccountBalanceRequest) (response *DescribeAccountBalanceResponse, err error)
DescribeAccountBalance This API is used to check the Tencent Cloud account balance.
error code that may be returned:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_PAYPRICEERROR = "FailedOperation.PayPriceError" INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeBillDetail ¶
func (c *Client) DescribeBillDetail(request *DescribeBillDetailRequest) (response *DescribeBillDetailResponse, err error)
DescribeBillDetail This API is used to get bill details.
Notes: 1. The API request may fail due to network instability or other network exceptions. In this case, we recommend you manually retry the request when the API request fails. 2. If the volume of your bill data is high (for example, if over 200 thousand bill entries are generated for a month), querying bill data via APIs may be slow. We recommend you enable bill storage so that you can obtain bill files from COS buckets for analysis. For details, see [Saving Bills to COS](https://intl.cloud.tencent.com/document/product/555/61275?from_cn_redirect=1).
error code that may be returned:
FAILEDOPERATION_QUERYCOUNTFAILED = "FailedOperation.QueryCountFailed" INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeBillDetailWithContext ¶
func (c *Client) DescribeBillDetailWithContext(ctx context.Context, request *DescribeBillDetailRequest) (response *DescribeBillDetailResponse, err error)
DescribeBillDetail This API is used to get bill details.
Notes: 1. The API request may fail due to network instability or other network exceptions. In this case, we recommend you manually retry the request when the API request fails. 2. If the volume of your bill data is high (for example, if over 200 thousand bill entries are generated for a month), querying bill data via APIs may be slow. We recommend you enable bill storage so that you can obtain bill files from COS buckets for analysis. For details, see [Saving Bills to COS](https://intl.cloud.tencent.com/document/product/555/61275?from_cn_redirect=1).
error code that may be returned:
FAILEDOPERATION_QUERYCOUNTFAILED = "FailedOperation.QueryCountFailed" INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DescribeBillResourceSummary ¶
func (c *Client) DescribeBillResourceSummary(request *DescribeBillResourceSummaryRequest) (response *DescribeBillResourceSummaryResponse, err error)
DescribeBillResourceSummary This API is used to query bill resources summary.
error code that may be returned:
FAILEDOPERATION_SUMMARYDATANOTREADY = "FailedOperation.SummaryDataNotReady" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
func (*Client) DescribeBillResourceSummaryWithContext ¶
func (c *Client) DescribeBillResourceSummaryWithContext(ctx context.Context, request *DescribeBillResourceSummaryRequest) (response *DescribeBillResourceSummaryResponse, err error)
DescribeBillResourceSummary This API is used to query bill resources summary.
error code that may be returned:
FAILEDOPERATION_SUMMARYDATANOTREADY = "FailedOperation.SummaryDataNotReady" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError"
func (*Client) DescribeBillSummary ¶
func (c *Client) DescribeBillSummary(request *DescribeBillSummaryRequest) (response *DescribeBillSummaryResponse, err error)
DescribeBillSummary This API is used to get bill details by product, project, region, billing mode, and tag by passing in parameters.
error code that may be returned:
FAILEDOPERATION_TAGKEYNOTEXIST = "FailedOperation.TagKeyNotExist" INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeBillSummaryByPayMode ¶
func (c *Client) DescribeBillSummaryByPayMode(request *DescribeBillSummaryByPayModeRequest) (response *DescribeBillSummaryByPayModeResponse, err error)
DescribeBillSummaryByPayMode This API is used to get the bill summarized by billing mode.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeBillSummaryByPayModeWithContext ¶
func (c *Client) DescribeBillSummaryByPayModeWithContext(ctx context.Context, request *DescribeBillSummaryByPayModeRequest) (response *DescribeBillSummaryByPayModeResponse, err error)
DescribeBillSummaryByPayMode This API is used to get the bill summarized by billing mode.
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeBillSummaryByProduct ¶
func (c *Client) DescribeBillSummaryByProduct(request *DescribeBillSummaryByProductRequest) (response *DescribeBillSummaryByProductResponse, err error)
DescribeBillSummaryByProduct Gets the bill summarized according to product
error code that may be returned:
AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeBillSummaryByProductWithContext ¶
func (c *Client) DescribeBillSummaryByProductWithContext(ctx context.Context, request *DescribeBillSummaryByProductRequest) (response *DescribeBillSummaryByProductResponse, err error)
DescribeBillSummaryByProduct Gets the bill summarized according to product
error code that may be returned:
AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeBillSummaryByProject ¶
func (c *Client) DescribeBillSummaryByProject(request *DescribeBillSummaryByProjectRequest) (response *DescribeBillSummaryByProjectResponse, err error)
DescribeBillSummaryByProject Gets the bill summarized according to project
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeBillSummaryByProjectWithContext ¶
func (c *Client) DescribeBillSummaryByProjectWithContext(ctx context.Context, request *DescribeBillSummaryByProjectRequest) (response *DescribeBillSummaryByProjectResponse, err error)
DescribeBillSummaryByProject Gets the bill summarized according to project
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeBillSummaryByRegion ¶
func (c *Client) DescribeBillSummaryByRegion(request *DescribeBillSummaryByRegionRequest) (response *DescribeBillSummaryByRegionResponse, err error)
DescribeBillSummaryByRegion Gets the bill summarized according to region
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeBillSummaryByRegionWithContext ¶
func (c *Client) DescribeBillSummaryByRegionWithContext(ctx context.Context, request *DescribeBillSummaryByRegionRequest) (response *DescribeBillSummaryByRegionResponse, err error)
DescribeBillSummaryByRegion Gets the bill summarized according to region
error code that may be returned:
INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INTERNALERROR_UNKNOWNERROR = "InternalError.UnknownError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeBillSummaryByTag ¶
func (c *Client) DescribeBillSummaryByTag(request *DescribeBillSummaryByTagRequest) (response *DescribeBillSummaryByTagResponse, err error)
DescribeBillSummaryByTag This API is used to get the cost distribution over different tags.
error code that may be returned:
FAILEDOPERATION_TAGKEYNOTEXIST = "FailedOperation.TagKeyNotExist" INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeBillSummaryByTagWithContext ¶
func (c *Client) DescribeBillSummaryByTagWithContext(ctx context.Context, request *DescribeBillSummaryByTagRequest) (response *DescribeBillSummaryByTagResponse, err error)
DescribeBillSummaryByTag This API is used to get the cost distribution over different tags.
error code that may be returned:
FAILEDOPERATION_TAGKEYNOTEXIST = "FailedOperation.TagKeyNotExist" INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeBillSummaryWithContext ¶
func (c *Client) DescribeBillSummaryWithContext(ctx context.Context, request *DescribeBillSummaryRequest) (response *DescribeBillSummaryResponse, err error)
DescribeBillSummary This API is used to get bill details by product, project, region, billing mode, and tag by passing in parameters.
error code that may be returned:
FAILEDOPERATION_TAGKEYNOTEXIST = "FailedOperation.TagKeyNotExist" INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeDosageCosDetailByDate ¶
func (c *Client) DescribeDosageCosDetailByDate(request *DescribeDosageCosDetailByDateRequest) (response *DescribeDosageCosDetailByDateResponse, err error)
DescribeDosageCosDetailByDate This API is used to query COS usage details.
error code that may be returned:
INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError"
func (*Client) DescribeDosageCosDetailByDateWithContext ¶
func (c *Client) DescribeDosageCosDetailByDateWithContext(ctx context.Context, request *DescribeDosageCosDetailByDateRequest) (response *DescribeDosageCosDetailByDateResponse, err error)
DescribeDosageCosDetailByDate This API is used to query COS usage details.
error code that may be returned:
INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError"
func (*Client) DescribeVoucherInfo ¶
func (c *Client) DescribeVoucherInfo(request *DescribeVoucherInfoRequest) (response *DescribeVoucherInfoResponse, err error)
DescribeVoucherInfo This API is used to query vouchers.
error code that may be returned:
FAILEDOPERATION_INVALIDAPPID = "FailedOperation.InvalidAppId" INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INVALIDPARAMETER = "InvalidParameter" UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth"
func (*Client) DescribeVoucherInfoWithContext ¶
func (c *Client) DescribeVoucherInfoWithContext(ctx context.Context, request *DescribeVoucherInfoRequest) (response *DescribeVoucherInfoResponse, err error)
DescribeVoucherInfo This API is used to query vouchers.
error code that may be returned:
FAILEDOPERATION_INVALIDAPPID = "FailedOperation.InvalidAppId" INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INVALIDPARAMETER = "InvalidParameter" UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth"
func (*Client) DescribeVoucherUsageDetails ¶
func (c *Client) DescribeVoucherUsageDetails(request *DescribeVoucherUsageDetailsRequest) (response *DescribeVoucherUsageDetailsResponse, err error)
DescribeVoucherUsageDetails This API is used to query voucher usage details.
error code that may be returned:
FAILEDOPERATION_INVALIDAPPID = "FailedOperation.InvalidAppId" INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INVALIDPARAMETER = "InvalidParameter" UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth"
func (*Client) DescribeVoucherUsageDetailsWithContext ¶
func (c *Client) DescribeVoucherUsageDetailsWithContext(ctx context.Context, request *DescribeVoucherUsageDetailsRequest) (response *DescribeVoucherUsageDetailsResponse, err error)
DescribeVoucherUsageDetails This API is used to query voucher usage details.
error code that may be returned:
FAILEDOPERATION_INVALIDAPPID = "FailedOperation.InvalidAppId" INTERNALERROR = "InternalError" INTERNALERROR_GATEWAYERROR = "InternalError.GatewayError" INVALIDPARAMETER = "InvalidParameter" UNAUTHORIZEDOPERATION_CAMNOAUTH = "UnauthorizedOperation.CamNoAuth"
type CosDetailSets ¶
type CosDetailSets struct { // Bucket name BucketName *string `json:"BucketName,omitnil" name:"BucketName"` // The start time of the usage DosageBeginTime *string `json:"DosageBeginTime,omitnil" name:"DosageBeginTime"` // The end time of the usage DosageEndTime *string `json:"DosageEndTime,omitnil" name:"DosageEndTime"` // Subproduct name SubProductCodeName *string `json:"SubProductCodeName,omitnil" name:"SubProductCodeName"` // Billable item name BillingItemCodeName *string `json:"BillingItemCodeName,omitnil" name:"BillingItemCodeName"` // Usage DosageValue *string `json:"DosageValue,omitnil" name:"DosageValue"` // Unit of the billable item Unit *string `json:"Unit,omitnil" name:"Unit"` }
type DescribeAccountBalanceRequest ¶
type DescribeAccountBalanceRequest struct {
*tchttp.BaseRequest
}
func NewDescribeAccountBalanceRequest ¶
func NewDescribeAccountBalanceRequest() (request *DescribeAccountBalanceRequest)
func (*DescribeAccountBalanceRequest) FromJsonString ¶
func (r *DescribeAccountBalanceRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAccountBalanceRequest) ToJsonString ¶
func (r *DescribeAccountBalanceRequest) ToJsonString() string
type DescribeAccountBalanceRequestParams ¶
type DescribeAccountBalanceRequestParams struct { }
Predefined struct for user
type DescribeAccountBalanceResponse ¶
type DescribeAccountBalanceResponse struct { *tchttp.BaseResponse Response *DescribeAccountBalanceResponseParams `json:"Response"` }
func NewDescribeAccountBalanceResponse ¶
func NewDescribeAccountBalanceResponse() (response *DescribeAccountBalanceResponse)
func (*DescribeAccountBalanceResponse) FromJsonString ¶
func (r *DescribeAccountBalanceResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeAccountBalanceResponse) ToJsonString ¶
func (r *DescribeAccountBalanceResponse) ToJsonString() string
type DescribeAccountBalanceResponseParams ¶
type DescribeAccountBalanceResponseParams struct { // Available account balance in cents, which takes the same calculation rules as `RealBalance`, `CreditBalance`, and `RealCreditBalance`. Balance *int64 `json:"Balance,omitnil" name:"Balance"` // The UIN to query. Uin *uint64 `json:"Uin,omitnil" name:"Uin"` // Available account balance in cents, which takes the same calculation rules as `Balance`, `CreditBalance`, and `RealCreditBalance`. RealBalance *float64 `json:"RealBalance,omitnil" name:"RealBalance"` // Cash account balance in cents. Currently, this field is not applied. CashAccountBalance *float64 `json:"CashAccountBalance,omitnil" name:"CashAccountBalance"` // Income account balance in cents. Currently, this field is not applied. IncomeIntoAccountBalance *float64 `json:"IncomeIntoAccountBalance,omitnil" name:"IncomeIntoAccountBalance"` // Present account balance in cents. Currently, this field is not applied. PresentAccountBalance *float64 `json:"PresentAccountBalance,omitnil" name:"PresentAccountBalance"` // Frozen amount in cents. FreezeAmount *float64 `json:"FreezeAmount,omitnil" name:"FreezeAmount"` // Overdue amount in cents, which is when the available credit balance is negative. OweAmount *float64 `json:"OweAmount,omitnil" name:"OweAmount"` // Whether overdue payments are allowed. Currently, this field is not applied. IsAllowArrears *bool `json:"IsAllowArrears,omitnil" name:"IsAllowArrears"` // Whether you have a credit limit. Currently, this field is not applied. IsCreditLimited *bool `json:"IsCreditLimited,omitnil" name:"IsCreditLimited"` // Credit limit in cents. Credit limit-available credit balance = consumption amount CreditAmount *float64 `json:"CreditAmount,omitnil" name:"CreditAmount"` // Available credit balance in cents, which takes the same calculation rules as `Balance`, `RealBalance`, and `RealCreditBalance`. CreditBalance *float64 `json:"CreditBalance,omitnil" name:"CreditBalance"` // Available account balance in cents, which takes the same calculation rules as `Balance`, `RealBalance`, and `CreditBalance`. RealCreditBalance *float64 `json:"RealCreditBalance,omitnil" name:"RealCreditBalance"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBillDetailRequest ¶
type DescribeBillDetailRequest struct { *tchttp.BaseRequest // Offset Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Quantity, maximum is 100 Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // The period type. byUsedTime: By usage period; byPayTime: By payment period. Must be the same as the period of the current monthly bill of the Billing Center. You can check your bill statistics period type at the top of the [Bill Overview](https://console.cloud.tencent.com/expense/bill/overview) page. PeriodType *string `json:"PeriodType,omitnil" name:"PeriodType"` // Month; format: yyyy-mm. You only have to enter either Month or BeginTime and EndTime. When you enter values for BeginTime and EndTime, Month becomes invalid. This value must be no earlier than the month when Bill 2.0 is activated; last 24 months data are available. Month *string `json:"Month,omitnil" name:"Month"` // The start time of the query range, which should be in the format Y-m-d H:i:s . The query range must be in the last 18 months and cannot be earlier than May 2018 (when Bill 2.0 was introduced). The start time and end time must be in the same month. // // Example: tccli billing DescribeBillDetail --cli-unfold-argument --Offset 1 --Limit 100 --BeginTime '2023-04-01 12:05:15' --EndTime '2023-04-18 12:00:10' --ProjectId 1000000731 --version "2018-07-09" // // Alternatively, you can use Month to query the billing details of a month. // Example: // ccli billing DescribeBillDetail --cli-unfold-argument --Offset 1 --Limit 100 --Month 2023-04 --version "2018-07-09" --ResourceId "disk-oj9okstm" BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The end time of the query range, which should be in the format `Y-m-d H:i:s `. The query range must be in the last 18 months and cannot be earlier than May 2018 (when Bill 2.0 was introduced). The start time and end time must be in the same month. // // Example: tccli billing DescribeBillDetail --cli-unfold-argument --Offset 1 --Limit 100 --BeginTime '2023-04-01 12:05:15' --EndTime '2023-04-18 12:00:10' --ProjectId 1000000731 --version "2018-07-09" // // Alternatively, you can use `Month` to query the billing details of a month. // Example: // ccli billing DescribeBillDetail --cli-unfold-argument --Offset 1 --Limit 100 --Month 2023-04 --version "2018-07-09" --ResourceId "disk-oj9okstm" EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Indicates whether or not the total number of records of accessing the list is required, used for frontend pages. // 1 = yes, 0 = no NeedRecordNum *int64 `json:"NeedRecordNum,omitnil" name:"NeedRecordNum"` // Queries information on a specified product ProductCode *string `json:"ProductCode,omitnil" name:"ProductCode"` // Billing mode: prePay/postPay PayMode *string `json:"PayMode,omitnil" name:"PayMode"` // Queries information on a specified resource ResourceId *string `json:"ResourceId,omitnil" name:"ResourceId"` // Action type to query. Valid values: // Purchase // Renewal // Modify // Refund // Deduction // Hourly settlement // Daily settlement // Monthly settlement // Offline project deduction // Offline deduction // adjust-CR // adjust-DR // One-off RI Fee // Spot // Hourly RI fee // New monthly subscription // Monthly subscription renewal // Monthly subscription specification adjustment // Monthly subscription specification adjustment // Monthly subscription refund ActionType *string `json:"ActionType,omitnil" name:"ActionType"` // Project ID: ID of the project to which the resource belongs ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // Product code // Note: To query the product codes used in the current month, call <a href="https://intl.cloud.tencent.com/document/product/555/35761?from_cn_redirect=1">DescribeBillSummaryByProduct</a>. BusinessCode *string `json:"BusinessCode,omitnil" name:"BusinessCode"` // Context information returned by the last request. You can set `Month` to `2023-05` or later to accelerate queries. We recommend users whose data volume is over 100 thousand entries use the paginated query feature, which can help greatly speed up your queries. Context *string `json:"Context,omitnil" name:"Context"` // The account ID of the payer, which is the unique identifier of a Tencent Cloud user. This account is allowed to query its own bills by default. If an organization admin account needs to query the self-pay bills of members, this field should be specified as the member account ID. PayerUin *string `json:"PayerUin,omitnil" name:"PayerUin"` }
func NewDescribeBillDetailRequest ¶
func NewDescribeBillDetailRequest() (request *DescribeBillDetailRequest)
func (*DescribeBillDetailRequest) FromJsonString ¶
func (r *DescribeBillDetailRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillDetailRequest) ToJsonString ¶
func (r *DescribeBillDetailRequest) ToJsonString() string
type DescribeBillDetailRequestParams ¶
type DescribeBillDetailRequestParams struct { // Offset Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Quantity, maximum is 100 Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // The period type. byUsedTime: By usage period; byPayTime: By payment period. Must be the same as the period of the current monthly bill of the Billing Center. You can check your bill statistics period type at the top of the [Bill Overview](https://console.cloud.tencent.com/expense/bill/overview) page. PeriodType *string `json:"PeriodType,omitnil" name:"PeriodType"` // Month; format: yyyy-mm. You only have to enter either Month or BeginTime and EndTime. When you enter values for BeginTime and EndTime, Month becomes invalid. This value must be no earlier than the month when Bill 2.0 is activated; last 24 months data are available. Month *string `json:"Month,omitnil" name:"Month"` // The start time of the query range, which should be in the format Y-m-d H:i:s . The query range must be in the last 18 months and cannot be earlier than May 2018 (when Bill 2.0 was introduced). The start time and end time must be in the same month. // // Example: tccli billing DescribeBillDetail --cli-unfold-argument --Offset 1 --Limit 100 --BeginTime '2023-04-01 12:05:15' --EndTime '2023-04-18 12:00:10' --ProjectId 1000000731 --version "2018-07-09" // // Alternatively, you can use Month to query the billing details of a month. // Example: // ccli billing DescribeBillDetail --cli-unfold-argument --Offset 1 --Limit 100 --Month 2023-04 --version "2018-07-09" --ResourceId "disk-oj9okstm" BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The end time of the query range, which should be in the format `Y-m-d H:i:s `. The query range must be in the last 18 months and cannot be earlier than May 2018 (when Bill 2.0 was introduced). The start time and end time must be in the same month. // // Example: tccli billing DescribeBillDetail --cli-unfold-argument --Offset 1 --Limit 100 --BeginTime '2023-04-01 12:05:15' --EndTime '2023-04-18 12:00:10' --ProjectId 1000000731 --version "2018-07-09" // // Alternatively, you can use `Month` to query the billing details of a month. // Example: // ccli billing DescribeBillDetail --cli-unfold-argument --Offset 1 --Limit 100 --Month 2023-04 --version "2018-07-09" --ResourceId "disk-oj9okstm" EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Indicates whether or not the total number of records of accessing the list is required, used for frontend pages. // 1 = yes, 0 = no NeedRecordNum *int64 `json:"NeedRecordNum,omitnil" name:"NeedRecordNum"` // Queries information on a specified product ProductCode *string `json:"ProductCode,omitnil" name:"ProductCode"` // Billing mode: prePay/postPay PayMode *string `json:"PayMode,omitnil" name:"PayMode"` // Queries information on a specified resource ResourceId *string `json:"ResourceId,omitnil" name:"ResourceId"` // Action type to query. Valid values: // Purchase // Renewal // Modify // Refund // Deduction // Hourly settlement // Daily settlement // Monthly settlement // Offline project deduction // Offline deduction // adjust-CR // adjust-DR // One-off RI Fee // Spot // Hourly RI fee // New monthly subscription // Monthly subscription renewal // Monthly subscription specification adjustment // Monthly subscription specification adjustment // Monthly subscription refund ActionType *string `json:"ActionType,omitnil" name:"ActionType"` // Project ID: ID of the project to which the resource belongs ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // Product code // Note: To query the product codes used in the current month, call <a href="https://intl.cloud.tencent.com/document/product/555/35761?from_cn_redirect=1">DescribeBillSummaryByProduct</a>. BusinessCode *string `json:"BusinessCode,omitnil" name:"BusinessCode"` // Context information returned by the last request. You can set `Month` to `2023-05` or later to accelerate queries. We recommend users whose data volume is over 100 thousand entries use the paginated query feature, which can help greatly speed up your queries. Context *string `json:"Context,omitnil" name:"Context"` // The account ID of the payer, which is the unique identifier of a Tencent Cloud user. This account is allowed to query its own bills by default. If an organization admin account needs to query the self-pay bills of members, this field should be specified as the member account ID. PayerUin *string `json:"PayerUin,omitnil" name:"PayerUin"` }
Predefined struct for user
type DescribeBillDetailResponse ¶
type DescribeBillDetailResponse struct { *tchttp.BaseResponse Response *DescribeBillDetailResponseParams `json:"Response"` }
func NewDescribeBillDetailResponse ¶
func NewDescribeBillDetailResponse() (response *DescribeBillDetailResponse)
func (*DescribeBillDetailResponse) FromJsonString ¶
func (r *DescribeBillDetailResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillDetailResponse) ToJsonString ¶
func (r *DescribeBillDetailResponse) ToJsonString() string
type DescribeBillDetailResponseParams ¶
type DescribeBillDetailResponseParams struct { // Details list DetailSet []*BillDetail `json:"DetailSet,omitnil" name:"DetailSet"` // // Note: This field may return null, indicating that no valid values can be obtained. Total *uint64 `json:"Total,omitnil" name:"Total"` // Context information returned by this request. The value can be passed in as the value of parameters in the next request to accelerate queries. Note: This field may return null, indicating that no valid values can be obtained. Context *string `json:"Context,omitnil" name:"Context"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBillResourceSummaryRequest ¶
type DescribeBillResourceSummaryRequest struct { *tchttp.BaseRequest // Pagination offset. If `Offset` is `0`, it indicates the first page. If `Limit` is `100`, "`Offset` = `100`" indicates the second page, then "`Offset` = `200`" indicates the third page, and so on. Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Quantity, maximum is 1000 Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // Bill month in the format of "yyyy-mm". This value must be no earlier than March 2019, when Bill 2.0 was launched. Month *string `json:"Month,omitnil" name:"Month"` // The period type. byUsedTime: By usage period; byPayTime: by payment period. Must be the same as the period of the current monthly bill of the Billing Center. You can check your bill statistics period type at the top of the [Bill Overview](https://console.cloud.tencent.com/expense/bill/overview) page. PeriodType *string `json:"PeriodType,omitnil" name:"PeriodType"` // Indicates whether or not the total number of records of accessing the list is required, used for frontend pages. // 1 = yes, 0 = no NeedRecordNum *int64 `json:"NeedRecordNum,omitnil" name:"NeedRecordNum"` // Action type to query. Valid values: // Purchase // Renewal // Modify // Refund // Deduction // Hourly settlement // Daily settlement // Monthly settlement // Offline project deduction // Offline deduction // adjust-CR // adjust-DR // One-off RI Fee // Spot // Hourly RI fee // New monthly subscription // Monthly subscription renewal // Monthly subscription specification adjustment // Monthly subscription refund ActionType *string `json:"ActionType,omitnil" name:"ActionType"` // ID of the instance to be queried ResourceId *string `json:"ResourceId,omitnil" name:"ResourceId"` // Billing mode. Valid values: `prePay` (prepaid), `postPay` (postpaid) PayMode *string `json:"PayMode,omitnil" name:"PayMode"` // Product code // Note: To query the product codes used in the current month, call <a href="https://intl.cloud.tencent.com/document/product/555/35761?from_cn_redirect=1">DescribeBillSummaryByProduct</a>. BusinessCode *string `json:"BusinessCode,omitnil" name:"BusinessCode"` // The account ID of the payer, which is the unique identifier of a Tencent Cloud user. This account is allowed to query its own bills by default. If an organization admin account needs to query the self-pay bills of members, this field should be specified as the member account ID. PayerUin *string `json:"PayerUin,omitnil" name:"PayerUin"` }
func NewDescribeBillResourceSummaryRequest ¶
func NewDescribeBillResourceSummaryRequest() (request *DescribeBillResourceSummaryRequest)
func (*DescribeBillResourceSummaryRequest) FromJsonString ¶
func (r *DescribeBillResourceSummaryRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillResourceSummaryRequest) ToJsonString ¶
func (r *DescribeBillResourceSummaryRequest) ToJsonString() string
type DescribeBillResourceSummaryRequestParams ¶
type DescribeBillResourceSummaryRequestParams struct { // Pagination offset. If `Offset` is `0`, it indicates the first page. If `Limit` is `100`, "`Offset` = `100`" indicates the second page, then "`Offset` = `200`" indicates the third page, and so on. Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // Quantity, maximum is 1000 Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // Bill month in the format of "yyyy-mm". This value must be no earlier than March 2019, when Bill 2.0 was launched. Month *string `json:"Month,omitnil" name:"Month"` // The period type. byUsedTime: By usage period; byPayTime: by payment period. Must be the same as the period of the current monthly bill of the Billing Center. You can check your bill statistics period type at the top of the [Bill Overview](https://console.cloud.tencent.com/expense/bill/overview) page. PeriodType *string `json:"PeriodType,omitnil" name:"PeriodType"` // Indicates whether or not the total number of records of accessing the list is required, used for frontend pages. // 1 = yes, 0 = no NeedRecordNum *int64 `json:"NeedRecordNum,omitnil" name:"NeedRecordNum"` // Action type to query. Valid values: // Purchase // Renewal // Modify // Refund // Deduction // Hourly settlement // Daily settlement // Monthly settlement // Offline project deduction // Offline deduction // adjust-CR // adjust-DR // One-off RI Fee // Spot // Hourly RI fee // New monthly subscription // Monthly subscription renewal // Monthly subscription specification adjustment // Monthly subscription refund ActionType *string `json:"ActionType,omitnil" name:"ActionType"` // ID of the instance to be queried ResourceId *string `json:"ResourceId,omitnil" name:"ResourceId"` // Billing mode. Valid values: `prePay` (prepaid), `postPay` (postpaid) PayMode *string `json:"PayMode,omitnil" name:"PayMode"` // Product code // Note: To query the product codes used in the current month, call <a href="https://intl.cloud.tencent.com/document/product/555/35761?from_cn_redirect=1">DescribeBillSummaryByProduct</a>. BusinessCode *string `json:"BusinessCode,omitnil" name:"BusinessCode"` // The account ID of the payer, which is the unique identifier of a Tencent Cloud user. This account is allowed to query its own bills by default. If an organization admin account needs to query the self-pay bills of members, this field should be specified as the member account ID. PayerUin *string `json:"PayerUin,omitnil" name:"PayerUin"` }
Predefined struct for user
type DescribeBillResourceSummaryResponse ¶
type DescribeBillResourceSummaryResponse struct { *tchttp.BaseResponse Response *DescribeBillResourceSummaryResponseParams `json:"Response"` }
func NewDescribeBillResourceSummaryResponse ¶
func NewDescribeBillResourceSummaryResponse() (response *DescribeBillResourceSummaryResponse)
func (*DescribeBillResourceSummaryResponse) FromJsonString ¶
func (r *DescribeBillResourceSummaryResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillResourceSummaryResponse) ToJsonString ¶
func (r *DescribeBillResourceSummaryResponse) ToJsonString() string
type DescribeBillResourceSummaryResponseParams ¶
type DescribeBillResourceSummaryResponseParams struct { // Resource summary list ResourceSummarySet []*BillResourceSummary `json:"ResourceSummarySet,omitnil" name:"ResourceSummarySet"` // Total number of resource summary lists, which will not be returned when `NeedRecordNum` is `0`. This field may return null, indicating that no valid values can be obtained. Total *int64 `json:"Total,omitnil" name:"Total"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBillSummaryByPayModeRequest ¶
type DescribeBillSummaryByPayModeRequest struct { *tchttp.BaseRequest // The value must be of the same month as `EndTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The value must be of the same month as `BeginTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Query bill data user's UIN PayerUin *string `json:"PayerUin,omitnil" name:"PayerUin"` }
func NewDescribeBillSummaryByPayModeRequest ¶
func NewDescribeBillSummaryByPayModeRequest() (request *DescribeBillSummaryByPayModeRequest)
func (*DescribeBillSummaryByPayModeRequest) FromJsonString ¶
func (r *DescribeBillSummaryByPayModeRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillSummaryByPayModeRequest) ToJsonString ¶
func (r *DescribeBillSummaryByPayModeRequest) ToJsonString() string
type DescribeBillSummaryByPayModeRequestParams ¶
type DescribeBillSummaryByPayModeRequestParams struct { // The value must be of the same month as `EndTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The value must be of the same month as `BeginTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Query bill data user's UIN PayerUin *string `json:"PayerUin,omitnil" name:"PayerUin"` }
Predefined struct for user
type DescribeBillSummaryByPayModeResponse ¶
type DescribeBillSummaryByPayModeResponse struct { *tchttp.BaseResponse Response *DescribeBillSummaryByPayModeResponseParams `json:"Response"` }
func NewDescribeBillSummaryByPayModeResponse ¶
func NewDescribeBillSummaryByPayModeResponse() (response *DescribeBillSummaryByPayModeResponse)
func (*DescribeBillSummaryByPayModeResponse) FromJsonString ¶
func (r *DescribeBillSummaryByPayModeResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillSummaryByPayModeResponse) ToJsonString ¶
func (r *DescribeBillSummaryByPayModeResponse) ToJsonString() string
type DescribeBillSummaryByPayModeResponseParams ¶
type DescribeBillSummaryByPayModeResponseParams struct { // Indicates whether the data is ready. `0`: Not ready. `1`: Ready. If `Ready` is `0`, it indicates that the current UIN is initializing billing for the first time. Wait for 5-10 minutes and try again. Ready *uint64 `json:"Ready,omitnil" name:"Ready"` // Detailed cost distribution for all billing modes // Note: This field may return null, indicating that no valid value was found. SummaryOverview []*PayModeSummaryOverviewItem `json:"SummaryOverview,omitnil" name:"SummaryOverview"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBillSummaryByProductRequest ¶
type DescribeBillSummaryByProductRequest struct { *tchttp.BaseRequest // The value must be of the same month as `EndTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The value must be of the same month as `BeginTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Queries bill data user's UIN PayerUin *string `json:"PayerUin,omitnil" name:"PayerUin"` // A bill type, which corresponds to a subtotal type of L0 bills. // This parameter has become valid since v3.0 bills took effect in May 2021. // Valid values: // `consume`: consumption // `refund`: refund // `adjustment`: bill adjustment PayType *string `json:"PayType,omitnil" name:"PayType"` }
func NewDescribeBillSummaryByProductRequest ¶
func NewDescribeBillSummaryByProductRequest() (request *DescribeBillSummaryByProductRequest)
func (*DescribeBillSummaryByProductRequest) FromJsonString ¶
func (r *DescribeBillSummaryByProductRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillSummaryByProductRequest) ToJsonString ¶
func (r *DescribeBillSummaryByProductRequest) ToJsonString() string
type DescribeBillSummaryByProductRequestParams ¶
type DescribeBillSummaryByProductRequestParams struct { // The value must be of the same month as `EndTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The value must be of the same month as `BeginTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Queries bill data user's UIN PayerUin *string `json:"PayerUin,omitnil" name:"PayerUin"` // A bill type, which corresponds to a subtotal type of L0 bills. // This parameter has become valid since v3.0 bills took effect in May 2021. // Valid values: // `consume`: consumption // `refund`: refund // `adjustment`: bill adjustment PayType *string `json:"PayType,omitnil" name:"PayType"` }
Predefined struct for user
type DescribeBillSummaryByProductResponse ¶
type DescribeBillSummaryByProductResponse struct { *tchttp.BaseResponse Response *DescribeBillSummaryByProductResponseParams `json:"Response"` }
func NewDescribeBillSummaryByProductResponse ¶
func NewDescribeBillSummaryByProductResponse() (response *DescribeBillSummaryByProductResponse)
func (*DescribeBillSummaryByProductResponse) FromJsonString ¶
func (r *DescribeBillSummaryByProductResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillSummaryByProductResponse) ToJsonString ¶
func (r *DescribeBillSummaryByProductResponse) ToJsonString() string
type DescribeBillSummaryByProductResponseParams ¶
type DescribeBillSummaryByProductResponseParams struct { // Indicates whether the data is ready. `0`: Not ready. `1`: Ready. If `Ready` is `0`, it indicates that the current UIN is initializing billing for the first time. Wait for 5-10 minutes and try again. Ready *uint64 `json:"Ready,omitnil" name:"Ready"` // Total cost details // Note: This field may return null, indicating that no valid value was found. SummaryTotal *BusinessSummaryTotal `json:"SummaryTotal,omitnil" name:"SummaryTotal"` // Cost distribution of all products // Note: This field may return null, indicating that no valid value was found. SummaryOverview []*BusinessSummaryOverviewItem `json:"SummaryOverview,omitnil" name:"SummaryOverview"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBillSummaryByProjectRequest ¶
type DescribeBillSummaryByProjectRequest struct { *tchttp.BaseRequest // The value must be of the same month as `EndTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The value must be of the same month as `BeginTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Queries bill data user's UIN PayerUin *string `json:"PayerUin,omitnil" name:"PayerUin"` }
func NewDescribeBillSummaryByProjectRequest ¶
func NewDescribeBillSummaryByProjectRequest() (request *DescribeBillSummaryByProjectRequest)
func (*DescribeBillSummaryByProjectRequest) FromJsonString ¶
func (r *DescribeBillSummaryByProjectRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillSummaryByProjectRequest) ToJsonString ¶
func (r *DescribeBillSummaryByProjectRequest) ToJsonString() string
type DescribeBillSummaryByProjectRequestParams ¶
type DescribeBillSummaryByProjectRequestParams struct { // The value must be of the same month as `EndTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The value must be of the same month as `BeginTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Queries bill data user's UIN PayerUin *string `json:"PayerUin,omitnil" name:"PayerUin"` }
Predefined struct for user
type DescribeBillSummaryByProjectResponse ¶
type DescribeBillSummaryByProjectResponse struct { *tchttp.BaseResponse Response *DescribeBillSummaryByProjectResponseParams `json:"Response"` }
func NewDescribeBillSummaryByProjectResponse ¶
func NewDescribeBillSummaryByProjectResponse() (response *DescribeBillSummaryByProjectResponse)
func (*DescribeBillSummaryByProjectResponse) FromJsonString ¶
func (r *DescribeBillSummaryByProjectResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillSummaryByProjectResponse) ToJsonString ¶
func (r *DescribeBillSummaryByProjectResponse) ToJsonString() string
type DescribeBillSummaryByProjectResponseParams ¶
type DescribeBillSummaryByProjectResponseParams struct { // Indicates whether the data is ready. `0`: Not ready. `1`: Ready. If `Ready` is `0`, it indicates that the current UIN is initializing billing for the first time. Wait for 5-10 minutes and try again. Ready *uint64 `json:"Ready,omitnil" name:"Ready"` // Detailed cost distribution for all projects // Note: This field may return null, indicating that no valid value was found. SummaryOverview []*ProjectSummaryOverviewItem `json:"SummaryOverview,omitnil" name:"SummaryOverview"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBillSummaryByRegionRequest ¶
type DescribeBillSummaryByRegionRequest struct { *tchttp.BaseRequest // The value must be of the same month as `EndTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The value must be of the same month as `BeginTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Queries bill data user's UIN PayerUin *string `json:"PayerUin,omitnil" name:"PayerUin"` }
func NewDescribeBillSummaryByRegionRequest ¶
func NewDescribeBillSummaryByRegionRequest() (request *DescribeBillSummaryByRegionRequest)
func (*DescribeBillSummaryByRegionRequest) FromJsonString ¶
func (r *DescribeBillSummaryByRegionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillSummaryByRegionRequest) ToJsonString ¶
func (r *DescribeBillSummaryByRegionRequest) ToJsonString() string
type DescribeBillSummaryByRegionRequestParams ¶
type DescribeBillSummaryByRegionRequestParams struct { // The value must be of the same month as `EndTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The value must be of the same month as `BeginTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Queries bill data user's UIN PayerUin *string `json:"PayerUin,omitnil" name:"PayerUin"` }
Predefined struct for user
type DescribeBillSummaryByRegionResponse ¶
type DescribeBillSummaryByRegionResponse struct { *tchttp.BaseResponse Response *DescribeBillSummaryByRegionResponseParams `json:"Response"` }
func NewDescribeBillSummaryByRegionResponse ¶
func NewDescribeBillSummaryByRegionResponse() (response *DescribeBillSummaryByRegionResponse)
func (*DescribeBillSummaryByRegionResponse) FromJsonString ¶
func (r *DescribeBillSummaryByRegionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillSummaryByRegionResponse) ToJsonString ¶
func (r *DescribeBillSummaryByRegionResponse) ToJsonString() string
type DescribeBillSummaryByRegionResponseParams ¶
type DescribeBillSummaryByRegionResponseParams struct { // Indicates whether the data is ready. `0`: Not ready. `1`: Ready. If `Ready` is `0`, it indicates that the current UIN is initializing billing for the first time. Wait for 5-10 minutes and try again. Ready *uint64 `json:"Ready,omitnil" name:"Ready"` // Detailed cost distribution for all regions // Note: This field may return null, indicating that no valid value was found. SummaryOverview []*RegionSummaryOverviewItem `json:"SummaryOverview,omitnil" name:"SummaryOverview"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBillSummaryByTagRequest ¶
type DescribeBillSummaryByTagRequest struct { *tchttp.BaseRequest // The value must be of the same month as `EndTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The value must be of the same month as `BeginTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Cost allocation tag key, which can be customized. TagKey *string `json:"TagKey,omitnil" name:"TagKey"` // Payer UIN PayerUin *string `json:"PayerUin,omitnil" name:"PayerUin"` // Resource tag value TagValue *string `json:"TagValue,omitnil" name:"TagValue"` }
func NewDescribeBillSummaryByTagRequest ¶
func NewDescribeBillSummaryByTagRequest() (request *DescribeBillSummaryByTagRequest)
func (*DescribeBillSummaryByTagRequest) FromJsonString ¶
func (r *DescribeBillSummaryByTagRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillSummaryByTagRequest) ToJsonString ¶
func (r *DescribeBillSummaryByTagRequest) ToJsonString() string
type DescribeBillSummaryByTagRequestParams ¶
type DescribeBillSummaryByTagRequestParams struct { // The value must be of the same month as `EndTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The value must be of the same month as `BeginTime`. Query period must start and end on the same month and the query result returned will be of the entire month. For example, if both `BeginTime` and `EndTime` are `2018-09`, the data returned will be for the entire month of September 2018. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // Cost allocation tag key, which can be customized. TagKey *string `json:"TagKey,omitnil" name:"TagKey"` // Payer UIN PayerUin *string `json:"PayerUin,omitnil" name:"PayerUin"` // Resource tag value TagValue *string `json:"TagValue,omitnil" name:"TagValue"` }
Predefined struct for user
type DescribeBillSummaryByTagResponse ¶
type DescribeBillSummaryByTagResponse struct { *tchttp.BaseResponse Response *DescribeBillSummaryByTagResponseParams `json:"Response"` }
func NewDescribeBillSummaryByTagResponse ¶
func NewDescribeBillSummaryByTagResponse() (response *DescribeBillSummaryByTagResponse)
func (*DescribeBillSummaryByTagResponse) FromJsonString ¶
func (r *DescribeBillSummaryByTagResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillSummaryByTagResponse) ToJsonString ¶
func (r *DescribeBillSummaryByTagResponse) ToJsonString() string
type DescribeBillSummaryByTagResponseParams ¶
type DescribeBillSummaryByTagResponseParams struct { // Indicates whether the data is ready. `0`: Not ready. `1`: Ready. If `Ready` is `0`, it indicates that the current UIN is initializing billing for the first time. Wait for 5-10 minutes and try again. Ready *uint64 `json:"Ready,omitnil" name:"Ready"` // Details about cost distribution over different tags // Note: This field may return null, indicating that no valid values can be obtained. SummaryOverview []*TagSummaryOverviewItem `json:"SummaryOverview,omitnil" name:"SummaryOverview"` // Total cost // Note: this field may return `null`, indicating that no valid values can be obtained. SummaryTotal *SummaryTotal `json:"SummaryTotal,omitnil" name:"SummaryTotal"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeBillSummaryRequest ¶
type DescribeBillSummaryRequest struct { *tchttp.BaseRequest // Bill month in the format of "yyyy-mm" Month *string `json:"Month,omitnil" name:"Month"` // Bill dimension. Valid values: `business`, `project`, `region`, `payMode`, and `tag` GroupType *string `json:"GroupType,omitnil" name:"GroupType"` // Tag key, which is used when `GroupType` is `tag`. TagKey []*string `json:"TagKey,omitnil" name:"TagKey"` }
func NewDescribeBillSummaryRequest ¶
func NewDescribeBillSummaryRequest() (request *DescribeBillSummaryRequest)
func (*DescribeBillSummaryRequest) FromJsonString ¶
func (r *DescribeBillSummaryRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillSummaryRequest) ToJsonString ¶
func (r *DescribeBillSummaryRequest) ToJsonString() string
type DescribeBillSummaryRequestParams ¶
type DescribeBillSummaryRequestParams struct { // Bill month in the format of "yyyy-mm" Month *string `json:"Month,omitnil" name:"Month"` // Bill dimension. Valid values: `business`, `project`, `region`, `payMode`, and `tag` GroupType *string `json:"GroupType,omitnil" name:"GroupType"` // Tag key, which is used when `GroupType` is `tag`. TagKey []*string `json:"TagKey,omitnil" name:"TagKey"` }
Predefined struct for user
type DescribeBillSummaryResponse ¶
type DescribeBillSummaryResponse struct { *tchttp.BaseResponse Response *DescribeBillSummaryResponseParams `json:"Response"` }
func NewDescribeBillSummaryResponse ¶
func NewDescribeBillSummaryResponse() (response *DescribeBillSummaryResponse)
func (*DescribeBillSummaryResponse) FromJsonString ¶
func (r *DescribeBillSummaryResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeBillSummaryResponse) ToJsonString ¶
func (r *DescribeBillSummaryResponse) ToJsonString() string
type DescribeBillSummaryResponseParams ¶
type DescribeBillSummaryResponseParams struct { // Indicates whether the data is ready. `0`: Not ready. `1`: Ready. If `Ready` is `0`, it indicates that the current UIN is initializing billing for the first time. Wait for 5-10 minutes and try again. Ready *uint64 `json:"Ready,omitnil" name:"Ready"` // Detailed summary of costs by multiple dimensions SummaryDetail []*SummaryDetail `json:"SummaryDetail,omitnil" name:"SummaryDetail"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeDosageCosDetailByDateRequest ¶
type DescribeDosageCosDetailByDateRequest struct { *tchttp.BaseRequest // The start date of the usage query, such as `2020-09-01`. StartDate *string `json:"StartDate,omitnil" name:"StartDate"` // The end date of the usage query (end date must be in the same month as the start date), such as `2020-09-30`. EndDate *string `json:"EndDate,omitnil" name:"EndDate"` // Bucket name. You can use `Get Service` to query the list of all buckets under a requester account. For details, see [GET Service (List Buckets)](https://www.tencentcloud.com/document/product/436/8291). BucketName *string `json:"BucketName,omitnil" name:"BucketName"` }
func NewDescribeDosageCosDetailByDateRequest ¶
func NewDescribeDosageCosDetailByDateRequest() (request *DescribeDosageCosDetailByDateRequest)
func (*DescribeDosageCosDetailByDateRequest) FromJsonString ¶
func (r *DescribeDosageCosDetailByDateRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDosageCosDetailByDateRequest) ToJsonString ¶
func (r *DescribeDosageCosDetailByDateRequest) ToJsonString() string
type DescribeDosageCosDetailByDateRequestParams ¶
type DescribeDosageCosDetailByDateRequestParams struct { // The start date of the usage query, such as `2020-09-01`. StartDate *string `json:"StartDate,omitnil" name:"StartDate"` // The end date of the usage query (end date must be in the same month as the start date), such as `2020-09-30`. EndDate *string `json:"EndDate,omitnil" name:"EndDate"` // Bucket name. You can use `Get Service` to query the list of all buckets under a requester account. For details, see [GET Service (List Buckets)](https://www.tencentcloud.com/document/product/436/8291). BucketName *string `json:"BucketName,omitnil" name:"BucketName"` }
Predefined struct for user
type DescribeDosageCosDetailByDateResponse ¶
type DescribeDosageCosDetailByDateResponse struct { *tchttp.BaseResponse Response *DescribeDosageCosDetailByDateResponseParams `json:"Response"` }
func NewDescribeDosageCosDetailByDateResponse ¶
func NewDescribeDosageCosDetailByDateResponse() (response *DescribeDosageCosDetailByDateResponse)
func (*DescribeDosageCosDetailByDateResponse) FromJsonString ¶
func (r *DescribeDosageCosDetailByDateResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDosageCosDetailByDateResponse) ToJsonString ¶
func (r *DescribeDosageCosDetailByDateResponse) ToJsonString() string
type DescribeDosageCosDetailByDateResponseParams ¶
type DescribeDosageCosDetailByDateResponseParams struct { // Array of usage DetailSets []*CosDetailSets `json:"DetailSets,omitnil" name:"DetailSets"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeVoucherInfoRequest ¶
type DescribeVoucherInfoRequest struct { *tchttp.BaseRequest // The number of records per page. The default is 20, and the maximum is 1,000. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // The page number the records start from. The default is 1. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // The voucher status. Valid values: `unUsed`, `used`, `delivered`, `cancel`, `overdue`. Status *string `json:"Status,omitnil" name:"Status"` // The voucher ID. VoucherId *string `json:"VoucherId,omitnil" name:"VoucherId"` // The voucher order ID. CodeId *string `json:"CodeId,omitnil" name:"CodeId"` // The product code. ProductCode *string `json:"ProductCode,omitnil" name:"ProductCode"` // The campaign ID. ActivityId *string `json:"ActivityId,omitnil" name:"ActivityId"` // The voucher name. VoucherName *string `json:"VoucherName,omitnil" name:"VoucherName"` // The start date of the voucher issuance, such as `2021-01-01`. TimeFrom *string `json:"TimeFrom,omitnil" name:"TimeFrom"` // The end date of the voucher issuance, such as `2021-01-01`. TimeTo *string `json:"TimeTo,omitnil" name:"TimeTo"` // The field used to sort the records. Valid values: BeginTime, EndTime, CreateTime. SortField *string `json:"SortField,omitnil" name:"SortField"` // Whether to sort the records in ascending or descending order. Valid values: desc, asc. SortOrder *string `json:"SortOrder,omitnil" name:"SortOrder"` // The payment mode. Valid values: `postPay`: pay-as-you-go; `prePay`: prepaid; `riPay`: reserved instance; empty or `*`: all. If this parameter is empty or `*`, `productCode` and `subProductCode` must also be empty. PayMode *string `json:"PayMode,omitnil" name:"PayMode"` // If `PayMode` is `postPay`, this parameter may be `spotpay` (spot instance) or `settle account` (regular pay-as-you-go). If `PayMode` is `prePay`, this parameter may be `purchase`, `renew`, or `modify` (downgrade/upgrade). If `PayMode` is `riPay`, this parameter may be `oneOffFee` (prepayment of reserved instance) or `hourlyFee` (hourly billing of reserved instance). `*` means to query vouchers that support all billing scenarios. PayScene *string `json:"PayScene,omitnil" name:"PayScene"` // The operator. The default is the UIN of the current user. Operator *string `json:"Operator,omitnil" name:"Operator"` }
func NewDescribeVoucherInfoRequest ¶
func NewDescribeVoucherInfoRequest() (request *DescribeVoucherInfoRequest)
func (*DescribeVoucherInfoRequest) FromJsonString ¶
func (r *DescribeVoucherInfoRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeVoucherInfoRequest) ToJsonString ¶
func (r *DescribeVoucherInfoRequest) ToJsonString() string
type DescribeVoucherInfoRequestParams ¶
type DescribeVoucherInfoRequestParams struct { // The number of records per page. The default is 20, and the maximum is 1,000. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // The page number the records start from. The default is 1. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // The voucher status. Valid values: `unUsed`, `used`, `delivered`, `cancel`, `overdue`. Status *string `json:"Status,omitnil" name:"Status"` // The voucher ID. VoucherId *string `json:"VoucherId,omitnil" name:"VoucherId"` // The voucher order ID. CodeId *string `json:"CodeId,omitnil" name:"CodeId"` // The product code. ProductCode *string `json:"ProductCode,omitnil" name:"ProductCode"` // The campaign ID. ActivityId *string `json:"ActivityId,omitnil" name:"ActivityId"` // The voucher name. VoucherName *string `json:"VoucherName,omitnil" name:"VoucherName"` // The start date of the voucher issuance, such as `2021-01-01`. TimeFrom *string `json:"TimeFrom,omitnil" name:"TimeFrom"` // The end date of the voucher issuance, such as `2021-01-01`. TimeTo *string `json:"TimeTo,omitnil" name:"TimeTo"` // The field used to sort the records. Valid values: BeginTime, EndTime, CreateTime. SortField *string `json:"SortField,omitnil" name:"SortField"` // Whether to sort the records in ascending or descending order. Valid values: desc, asc. SortOrder *string `json:"SortOrder,omitnil" name:"SortOrder"` // The payment mode. Valid values: `postPay`: pay-as-you-go; `prePay`: prepaid; `riPay`: reserved instance; empty or `*`: all. If this parameter is empty or `*`, `productCode` and `subProductCode` must also be empty. PayMode *string `json:"PayMode,omitnil" name:"PayMode"` // If `PayMode` is `postPay`, this parameter may be `spotpay` (spot instance) or `settle account` (regular pay-as-you-go). If `PayMode` is `prePay`, this parameter may be `purchase`, `renew`, or `modify` (downgrade/upgrade). If `PayMode` is `riPay`, this parameter may be `oneOffFee` (prepayment of reserved instance) or `hourlyFee` (hourly billing of reserved instance). `*` means to query vouchers that support all billing scenarios. PayScene *string `json:"PayScene,omitnil" name:"PayScene"` // The operator. The default is the UIN of the current user. Operator *string `json:"Operator,omitnil" name:"Operator"` }
Predefined struct for user
type DescribeVoucherInfoResponse ¶
type DescribeVoucherInfoResponse struct { *tchttp.BaseResponse Response *DescribeVoucherInfoResponseParams `json:"Response"` }
func NewDescribeVoucherInfoResponse ¶
func NewDescribeVoucherInfoResponse() (response *DescribeVoucherInfoResponse)
func (*DescribeVoucherInfoResponse) FromJsonString ¶
func (r *DescribeVoucherInfoResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeVoucherInfoResponse) ToJsonString ¶
func (r *DescribeVoucherInfoResponse) ToJsonString() string
type DescribeVoucherInfoResponseParams ¶
type DescribeVoucherInfoResponseParams struct { // The total number of vouchers. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // The total voucher balance. The value of this parameter is the total balance (USD, rounded to 8 decimal places) multiplied by 100,000,000. TotalBalance *int64 `json:"TotalBalance,omitnil" name:"TotalBalance"` // The voucher information. // Note: This field may return `null`, indicating that no valid value was found. VoucherInfos []*VoucherInfos `json:"VoucherInfos,omitnil" name:"VoucherInfos"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type DescribeVoucherUsageDetailsRequest ¶
type DescribeVoucherUsageDetailsRequest struct { *tchttp.BaseRequest // The number of records per page. The default is 20, and the maximum is 1,000. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // The page number the records start from. The default is 1. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // The voucher ID. VoucherId *string `json:"VoucherId,omitnil" name:"VoucherId"` // The operator. The default is the UIN of the current. Operator *string `json:"Operator,omitnil" name:"Operator"` }
func NewDescribeVoucherUsageDetailsRequest ¶
func NewDescribeVoucherUsageDetailsRequest() (request *DescribeVoucherUsageDetailsRequest)
func (*DescribeVoucherUsageDetailsRequest) FromJsonString ¶
func (r *DescribeVoucherUsageDetailsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeVoucherUsageDetailsRequest) ToJsonString ¶
func (r *DescribeVoucherUsageDetailsRequest) ToJsonString() string
type DescribeVoucherUsageDetailsRequestParams ¶
type DescribeVoucherUsageDetailsRequestParams struct { // The number of records per page. The default is 20, and the maximum is 1,000. Limit *int64 `json:"Limit,omitnil" name:"Limit"` // The page number the records start from. The default is 1. Offset *int64 `json:"Offset,omitnil" name:"Offset"` // The voucher ID. VoucherId *string `json:"VoucherId,omitnil" name:"VoucherId"` // The operator. The default is the UIN of the current. Operator *string `json:"Operator,omitnil" name:"Operator"` }
Predefined struct for user
type DescribeVoucherUsageDetailsResponse ¶
type DescribeVoucherUsageDetailsResponse struct { *tchttp.BaseResponse Response *DescribeVoucherUsageDetailsResponseParams `json:"Response"` }
func NewDescribeVoucherUsageDetailsResponse ¶
func NewDescribeVoucherUsageDetailsResponse() (response *DescribeVoucherUsageDetailsResponse)
func (*DescribeVoucherUsageDetailsResponse) FromJsonString ¶
func (r *DescribeVoucherUsageDetailsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeVoucherUsageDetailsResponse) ToJsonString ¶
func (r *DescribeVoucherUsageDetailsResponse) ToJsonString() string
type DescribeVoucherUsageDetailsResponseParams ¶
type DescribeVoucherUsageDetailsResponseParams struct { // The total number of vouchers. TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // The total amount used. The value of this parameter is the total amount used (USD, rounded to 8 decimal places) multiplied by 100,000,000. TotalUsedAmount *int64 `json:"TotalUsedAmount,omitnil" name:"TotalUsedAmount"` // The usage details. // Note: This field may return `null`, indicating that no valid value was found. UsageRecords []*UsageRecords `json:"UsageRecords,omitnil" name:"UsageRecords"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitnil" name:"RequestId"` }
Predefined struct for user
type ExcludedProducts ¶
type PayModeSummaryOverviewItem ¶
type PayModeSummaryOverviewItem struct { // Billing mode code PayMode *string `json:"PayMode,omitnil" name:"PayMode"` // Billing mode, which can be monthly subscription or pay-as-you-go. PayModeName *string `json:"PayModeName,omitnil" name:"PayModeName"` // Cost ratio, to two decimal points RealTotalCostRatio *string `json:"RealTotalCostRatio,omitnil" name:"RealTotalCostRatio"` // Total amount after discount RealTotalCost *string `json:"RealTotalCost,omitnil" name:"RealTotalCost"` // Cash credit: The amount paid from the user’s cash balance CashPayAmount *string `json:"CashPayAmount,omitnil" name:"CashPayAmount"` // Free credit: The amount paid with the user’s free credit IncentivePayAmount *string `json:"IncentivePayAmount,omitnil" name:"IncentivePayAmount"` // Voucher payment: The voucher deduction amount VoucherPayAmount *string `json:"VoucherPayAmount,omitnil" name:"VoucherPayAmount"` // Commission credit: The amount paid with the user’s commission credit. TransferPayAmount *string `json:"TransferPayAmount,omitnil" name:"TransferPayAmount"` // The original cost in USD. This parameter has become valid since v3.0 bills took effect in May 2021, and before that `-` was returned for this parameter. If a customer uses a contract price different from the published price, `-` will also be returned for this parameter. TotalCost *string `json:"TotalCost,omitnil" name:"TotalCost"` // Detailed summary of costs by transaction type Detail []*ActionSummaryOverviewItem `json:"Detail,omitnil" name:"Detail"` }
type ProjectSummaryOverviewItem ¶
type ProjectSummaryOverviewItem struct { // Project ID ProjectId *string `json:"ProjectId,omitnil" name:"ProjectId"` // Project name: The project to which a resource belongs, which is user-designated. If a resource has not been assigned to a project, it will automatically belong to the default project. ProjectName *string `json:"ProjectName,omitnil" name:"ProjectName"` // Cost ratio, to two decimal points RealTotalCostRatio *string `json:"RealTotalCostRatio,omitnil" name:"RealTotalCostRatio"` // Total amount after discount RealTotalCost *string `json:"RealTotalCost,omitnil" name:"RealTotalCost"` // Cash credit: The amount paid from the user’s cash account CashPayAmount *string `json:"CashPayAmount,omitnil" name:"CashPayAmount"` // Free credit: The amount paid with the user’s free credit IncentivePayAmount *string `json:"IncentivePayAmount,omitnil" name:"IncentivePayAmount"` // Voucher payment: The voucher deduction amount VoucherPayAmount *string `json:"VoucherPayAmount,omitnil" name:"VoucherPayAmount"` // Commission credit: The amount paid with the user’s commission credit. TransferPayAmount *string `json:"TransferPayAmount,omitnil" name:"TransferPayAmount"` // Billing month, e.g. `2019-08` BillMonth *string `json:"BillMonth,omitnil" name:"BillMonth"` // The original cost in USD. This parameter has become valid since v3.0 bills took effect in May 2021, and before that `-` was returned for this parameter. If a customer uses a contract price different from the published price, `-` will also be returned for this parameter. TotalCost *string `json:"TotalCost,omitnil" name:"TotalCost"` }
type RegionSummaryOverviewItem ¶
type RegionSummaryOverviewItem struct { // Region ID // Note: This field may return null, indicating that no valid value was found. RegionId *string `json:"RegionId,omitnil" name:"RegionId"` // Region: The region to which a resource belongs, such as South China (Guangzhou). RegionName *string `json:"RegionName,omitnil" name:"RegionName"` // Cost ratio, to two decimal points RealTotalCostRatio *string `json:"RealTotalCostRatio,omitnil" name:"RealTotalCostRatio"` // Total amount after discount RealTotalCost *string `json:"RealTotalCost,omitnil" name:"RealTotalCost"` // Cash credit: The amount paid from the user’s cash account CashPayAmount *string `json:"CashPayAmount,omitnil" name:"CashPayAmount"` // Free credit: The amount paid with the user’s free credit IncentivePayAmount *string `json:"IncentivePayAmount,omitnil" name:"IncentivePayAmount"` // Voucher payment: The voucher deduction amount VoucherPayAmount *string `json:"VoucherPayAmount,omitnil" name:"VoucherPayAmount"` // Commission credit: The amount paid with the user’s commission credit. TransferPayAmount *string `json:"TransferPayAmount,omitnil" name:"TransferPayAmount"` // Billing month, e.g. `2019-08` BillMonth *string `json:"BillMonth,omitnil" name:"BillMonth"` // The original cost in USD. This parameter has become valid since v3.0 bills took effect in May 2021, and before that `-` was returned for this parameter. If a customer uses a contract price different from the published price, `-` will also be returned for this parameter. TotalCost *string `json:"TotalCost,omitnil" name:"TotalCost"` }
type SummaryDetail ¶
type SummaryDetail struct { // Bill dimension code. Note: This field may return null, indicating that no valid values can be obtained. GroupKey *string `json:"GroupKey,omitnil" name:"GroupKey"` // Bill dimension value. Note: This field may return null, indicating that no valid values can be obtained. GroupValue *string `json:"GroupValue,omitnil" name:"GroupValue"` // Original cost in USD. This parameter has become valid since Bill 3.0 took effect in May 2021, and before that `-` was returned for this parameter. If a customer has applied for a contract price different from the prices listed on the official website, `-` will also be returned for this parameter. TotalCost *string `json:"TotalCost,omitnil" name:"TotalCost"` // Total amount after discount RealTotalCost *string `json:"RealTotalCost,omitnil" name:"RealTotalCost"` // Cash credit: The amount paid from the user’s cash account CashPayAmount *string `json:"CashPayAmount,omitnil" name:"CashPayAmount"` // Free credit: The amount paid with the user’s free credit IncentivePayAmount *string `json:"IncentivePayAmount,omitnil" name:"IncentivePayAmount"` // Voucher payment: The voucher deduction amount VoucherPayAmount *string `json:"VoucherPayAmount,omitnil" name:"VoucherPayAmount"` // Commission credit: The amount paid with the user’s commission credit. Note: This field may return null, indicating that no valid values can be obtained. TransferPayAmount *string `json:"TransferPayAmount,omitnil" name:"TransferPayAmount"` // Detailed summary of products. Note: This field may return null, indicating that no valid values can be obtained. Business []*BusinessSummaryInfo `json:"Business,omitnil" name:"Business"` }
type SummaryTotal ¶
type SummaryTotal struct { // Total amount after discount. Note: This field may return null, indicating that no valid values can be obtained. RealTotalCost *string `json:"RealTotalCost,omitnil" name:"RealTotalCost"` // The original cost in USD. This parameter has become valid since v3.0 bills took effect in May 2021, and before that `-` was returned for this parameter. If a customer uses a contract price different from the published price, `-` will also be returned for this parameter. // Note: this field may return `null`, indicating that no valid values can be obtained. TotalCost *string `json:"TotalCost,omitnil" name:"TotalCost"` }
type TagSummaryOverviewItem ¶
type TagSummaryOverviewItem struct { // Tag value // Note: This field may return null, indicating that no valid values can be obtained. TagValue *string `json:"TagValue,omitnil" name:"TagValue"` // Cost percentage rounded to two decimal places // Note: This field may return null, indicating that no valid values can be obtained. RealTotalCostRatio *string `json:"RealTotalCostRatio,omitnil" name:"RealTotalCostRatio"` // Total amount after discount. Note: This field may return null, indicating that no valid values can be obtained. RealTotalCost *string `json:"RealTotalCost,omitnil" name:"RealTotalCost"` // Cash credit: The amount paid from the user’s cash account. Note: This field may return null, indicating that no valid values can be obtained. CashPayAmount *string `json:"CashPayAmount,omitnil" name:"CashPayAmount"` // Free credit: The amount paid with the user’s free credit. Note: This field may return null, indicating that no valid values can be obtained. IncentivePayAmount *string `json:"IncentivePayAmount,omitnil" name:"IncentivePayAmount"` // Voucher payment: The amount deducted by using vouchers. Note: This field may return null, indicating that no valid values can be obtained. VoucherPayAmount *string `json:"VoucherPayAmount,omitnil" name:"VoucherPayAmount"` // Commission credit: The amount paid with the user’s commission credit. Note: This field may return null, indicating that no valid values can be obtained. TransferPayAmount *string `json:"TransferPayAmount,omitnil" name:"TransferPayAmount"` // The original cost in USD. This parameter has become valid since v3.0 bills took effect in May 2021, and before that `-` was returned for this parameter. If a customer uses a contract price different from the published price, `-` will also be returned for this parameter. // Note: this field may return `null`, indicating that no valid values can be obtained. TotalCost *string `json:"TotalCost,omitnil" name:"TotalCost"` }
type UsageDetails ¶
type UsageRecords ¶
type UsageRecords struct { // The amount used. The value of this parameter is the amount used (USD, rounded to 8 decimal places) multiplied by 100,000,000. UsedAmount *int64 `json:"UsedAmount,omitnil" name:"UsedAmount"` // The time when the voucher was used. UsedTime *string `json:"UsedTime,omitnil" name:"UsedTime"` // The details of the product purchased. // Note: This field may return `null`, indicating that no valid value was found. UsageDetails []*UsageDetails `json:"UsageDetails,omitnil" name:"UsageDetails"` }
type VoucherInfos ¶
type VoucherInfos struct { // The owner of the voucher. OwnerUin *string `json:"OwnerUin,omitnil" name:"OwnerUin"` // The status of the voucher: `unUsed`, `used`, `delivered`, `cancel`, `overdue` Status *string `json:"Status,omitnil" name:"Status"` // The value of the voucher. The value of this parameter is the voucher value (USD, rounded to 8 decimal places) multiplied by 100,000,000. NominalValue *int64 `json:"NominalValue,omitnil" name:"NominalValue"` // The balance left. The value of this parameter is the balance left (USD, rounded to 8 decimal places) multiplied by 100,000,000. Balance *int64 `json:"Balance,omitnil" name:"Balance"` // The voucher ID. VoucherId *string `json:"VoucherId,omitnil" name:"VoucherId"` // `postPay`: pay-as-you-go; `prePay`: prepaid; `riPay`: reserved instance; empty or `*`: all. PayMode *string `json:"PayMode,omitnil" name:"PayMode"` // If `PayMode` is `postPay`, this parameter may be `spotpay` (spot instance) or `settle account` (regular pay-as-you-go). If `PayMode` is `prePay`, this parameter may be `purchase`, `renew`, or `modify` (downgrade/upgrade). If `PayMode` is `riPay`, this parameter may be `oneOffFee` (prepayment of reserved instance) or `hourlyFee` (hourly billing of reserved instance). `*` means to query vouchers that support all billing scenarios. PayScene *string `json:"PayScene,omitnil" name:"PayScene"` // The start time of the validity period. BeginTime *string `json:"BeginTime,omitnil" name:"BeginTime"` // The end time of the validity period. EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // The products that are applicable. // Note: This field may return `null`, indicating that no valid value was found. ApplicableProducts *ApplicableProducts `json:"ApplicableProducts,omitnil" name:"ApplicableProducts"` // The products that are not applicable. // Note: This field may return `null`, indicating that no valid value was found. ExcludedProducts []*ExcludedProducts `json:"ExcludedProducts,omitnil" name:"ExcludedProducts"` }