apis

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 2 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryBillDetailRequest added in v1.6.0

type QueryBillDetailRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 计费开始时间  */
	StartTime string `json:"startTime"`

	/* 计费结束时间  */
	EndTime string `json:"endTime"`

	/* 产品线代码 (Optional) */
	AppCode *string `json:"appCode"`

	/* 产品代码 (Optional) */
	ServiceCode *string `json:"serviceCode"`

	/* 计费类型 1、按配置 2、按用量 3、包年包月 4、按次 (Optional) */
	BillingType *int `json:"billingType"`

	/* 资源单id列表 (Optional) */
	ResourceIds []string `json:"resourceIds"`

	/* pageIndex (Optional) */
	PageIndex *int `json:"pageIndex"`

	/* pageSize (Optional) */
	PageSize *int `json:"pageSize"`
}

func NewQueryBillDetailRequest added in v1.6.0

func NewQueryBillDetailRequest(
	regionId string,
	startTime string,
	endTime string,
) *QueryBillDetailRequest

* param regionId: Region ID (Required) * param startTime: 计费开始时间 (Required) * param endTime: 计费结束时间 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewQueryBillDetailRequestWithAllParams added in v1.6.0

func NewQueryBillDetailRequestWithAllParams(
	regionId string,
	startTime string,
	endTime string,
	appCode *string,
	serviceCode *string,
	billingType *int,
	resourceIds []string,
	pageIndex *int,
	pageSize *int,
) *QueryBillDetailRequest

* param regionId: Region ID (Required) * param startTime: 计费开始时间 (Required) * param endTime: 计费结束时间 (Required) * param appCode: 产品线代码 (Optional) * param serviceCode: 产品代码 (Optional) * param billingType: 计费类型 1、按配置 2、按用量 3、包年包月 4、按次 (Optional) * param resourceIds: 资源单id列表 (Optional) * param pageIndex: pageIndex (Optional) * param pageSize: pageSize (Optional)

func NewQueryBillDetailRequestWithoutParam added in v1.6.0

func NewQueryBillDetailRequestWithoutParam() *QueryBillDetailRequest

This constructor has better compatible ability when API parameters changed

func (QueryBillDetailRequest) GetRegionId added in v1.6.0

func (r QueryBillDetailRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*QueryBillDetailRequest) SetAppCode added in v1.6.0

func (r *QueryBillDetailRequest) SetAppCode(appCode string)

param appCode: 产品线代码(Optional)

func (*QueryBillDetailRequest) SetBillingType added in v1.6.0

func (r *QueryBillDetailRequest) SetBillingType(billingType int)

param billingType: 计费类型 1、按配置 2、按用量 3、包年包月 4、按次(Optional)

func (*QueryBillDetailRequest) SetEndTime added in v1.6.0

func (r *QueryBillDetailRequest) SetEndTime(endTime string)

param endTime: 计费结束时间(Required)

func (*QueryBillDetailRequest) SetPageIndex added in v1.6.0

func (r *QueryBillDetailRequest) SetPageIndex(pageIndex int)

param pageIndex: pageIndex(Optional)

func (*QueryBillDetailRequest) SetPageSize added in v1.6.0

func (r *QueryBillDetailRequest) SetPageSize(pageSize int)

param pageSize: pageSize(Optional)

func (*QueryBillDetailRequest) SetRegionId added in v1.6.0

func (r *QueryBillDetailRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*QueryBillDetailRequest) SetResourceIds added in v1.6.0

func (r *QueryBillDetailRequest) SetResourceIds(resourceIds []string)

param resourceIds: 资源单id列表(Optional)

func (*QueryBillDetailRequest) SetServiceCode added in v1.6.0

func (r *QueryBillDetailRequest) SetServiceCode(serviceCode string)

param serviceCode: 产品代码(Optional)

func (*QueryBillDetailRequest) SetStartTime added in v1.6.0

func (r *QueryBillDetailRequest) SetStartTime(startTime string)

param startTime: 计费开始时间(Required)

type QueryBillDetailResponse added in v1.6.0

type QueryBillDetailResponse struct {
	RequestID string                `json:"requestId"`
	Error     core.ErrorResponse    `json:"error"`
	Result    QueryBillDetailResult `json:"result"`
}

type QueryBillDetailResult added in v1.6.0

type QueryBillDetailResult struct {
	Pagination billing.Pagination    `json:"pagination"`
	Result     []billing.BillSummary `json:"result"`
}

type QueryBillSummaryRequest added in v1.6.0

type QueryBillSummaryRequest struct {
	core.JDCloudRequest

	/* Region ID  */
	RegionId string `json:"regionId"`

	/* 计费开始时间  */
	StartTime string `json:"startTime"`

	/* 计费结束时间  */
	EndTime string `json:"endTime"`

	/* 产品线代码 (Optional) */
	AppCode *string `json:"appCode"`

	/* 产品代码 (Optional) */
	ServiceCode *string `json:"serviceCode"`

	/* 资源单id列表 (Optional) */
	ResourceIds []string `json:"resourceIds"`

	/* pageIndex (Optional) */
	PageIndex *int `json:"pageIndex"`

	/* pageSize (Optional) */
	PageSize *int `json:"pageSize"`
}

func NewQueryBillSummaryRequest added in v1.6.0

func NewQueryBillSummaryRequest(
	regionId string,
	startTime string,
	endTime string,
) *QueryBillSummaryRequest

* param regionId: Region ID (Required) * param startTime: 计费开始时间 (Required) * param endTime: 计费结束时间 (Required) * * @Deprecated, not compatible when mandatory parameters changed

func NewQueryBillSummaryRequestWithAllParams added in v1.6.0

func NewQueryBillSummaryRequestWithAllParams(
	regionId string,
	startTime string,
	endTime string,
	appCode *string,
	serviceCode *string,
	resourceIds []string,
	pageIndex *int,
	pageSize *int,
) *QueryBillSummaryRequest

* param regionId: Region ID (Required) * param startTime: 计费开始时间 (Required) * param endTime: 计费结束时间 (Required) * param appCode: 产品线代码 (Optional) * param serviceCode: 产品代码 (Optional) * param resourceIds: 资源单id列表 (Optional) * param pageIndex: pageIndex (Optional) * param pageSize: pageSize (Optional)

func NewQueryBillSummaryRequestWithoutParam added in v1.6.0

func NewQueryBillSummaryRequestWithoutParam() *QueryBillSummaryRequest

This constructor has better compatible ability when API parameters changed

func (QueryBillSummaryRequest) GetRegionId added in v1.6.0

func (r QueryBillSummaryRequest) GetRegionId() string

GetRegionId returns path parameter 'regionId' if exist, otherwise return empty string

func (*QueryBillSummaryRequest) SetAppCode added in v1.6.0

func (r *QueryBillSummaryRequest) SetAppCode(appCode string)

param appCode: 产品线代码(Optional)

func (*QueryBillSummaryRequest) SetEndTime added in v1.6.0

func (r *QueryBillSummaryRequest) SetEndTime(endTime string)

param endTime: 计费结束时间(Required)

func (*QueryBillSummaryRequest) SetPageIndex added in v1.6.0

func (r *QueryBillSummaryRequest) SetPageIndex(pageIndex int)

param pageIndex: pageIndex(Optional)

func (*QueryBillSummaryRequest) SetPageSize added in v1.6.0

func (r *QueryBillSummaryRequest) SetPageSize(pageSize int)

param pageSize: pageSize(Optional)

func (*QueryBillSummaryRequest) SetRegionId added in v1.6.0

func (r *QueryBillSummaryRequest) SetRegionId(regionId string)

param regionId: Region ID(Required)

func (*QueryBillSummaryRequest) SetResourceIds added in v1.6.0

func (r *QueryBillSummaryRequest) SetResourceIds(resourceIds []string)

param resourceIds: 资源单id列表(Optional)

func (*QueryBillSummaryRequest) SetServiceCode added in v1.6.0

func (r *QueryBillSummaryRequest) SetServiceCode(serviceCode string)

param serviceCode: 产品代码(Optional)

func (*QueryBillSummaryRequest) SetStartTime added in v1.6.0

func (r *QueryBillSummaryRequest) SetStartTime(startTime string)

param startTime: 计费开始时间(Required)

type QueryBillSummaryResponse added in v1.6.0

type QueryBillSummaryResponse struct {
	RequestID string                 `json:"requestId"`
	Error     core.ErrorResponse     `json:"error"`
	Result    QueryBillSummaryResult `json:"result"`
}

type QueryBillSummaryResult added in v1.6.0

type QueryBillSummaryResult struct {
	Pagination billing.Pagination    `json:"pagination"`
	Result     []billing.BillSummary `json:"result"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL