payperuseresource

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomerResource

type CustomerResource struct {
	//Customer resource ID.。
	CustomerResourceId string `json:"customerResourceId"`

	//Customer ID.
	CustomerId string `json:"customerId"`

	//Cloud service region code
	RegionCode string `json:"regionCode"`

	//Cloud service type code
	CloudServiceTypeCode string `json:"cloudServiceTypeCode"`

	//Resource type code
	ResourceTypeCode string `json:"resourceTypeCode"`

	//Resource ID.
	ResourceId string `json:"resourceId"`

	//Resource instance name.
	ResourceName string `json:"resourceName"`

	//Effective time.
	StartTime string `json:"startTime"`

	//Expiration time.
	EndTime string `json:"endTime"`

	//Resource status.
	Status *int `json:"status,omitempty"`

	//Specifications code of the pay-per-use resource.
	ResourceSpecCode string `json:"resourceSpecCode"`

	//Resource capacity
	ResourceInfo string `json:"resourceInfo"`

	//Whether the billing mode can be changed from pay-per-use to yearly/monthly
	ChargingModeChangeFlag string `json:"chargingModeChangeFlag"`

	//Account type of the last deduction for the resource
	LastDeductType string `json:"lastDeductType"`
	// contains filtered or unexported fields
}

type QueryCustomerResourceOpts

type QueryCustomerResourceOpts struct {
	//Customer resource ID.
	CustomerResourceId string `json:"customerResourceId,omitempty"`

	//Customer ID.
	CustomerId string `json:"customerId" required:"true"`

	//Cloud service region code
	RegionCode string `json:"regionCode,omitempty"`

	//Cloud service type code
	CloudServiceTypeCode string `json:"cloudServiceTypeCode,omitempty"`

	//Resource type code
	ResourceTypeCode string `json:"resourceTypeCode,omitempty"`

	//Queries resource IDs in batches
	ResourceIds []string `json:"resourceIds,omitempty"`

	//Resource instance name
	ResourceName string `json:"resourceName,omitempty"`

	//Start time of the validity period
	StartTimeBegin string `json:"startTimeBegin,omitempty"`

	//End time of the validity period
	StartTimeEnd string `json:"startTimeEnd,omitempty"`

	//Current page
	PageNo int `json:"pageNo,omitempty"`

	//Number of records displayed on each page
	PageSize int `json:"pageSize,omitempty"`
}

func (QueryCustomerResourceOpts) ToQueryCustomerResourceMap

func (opts QueryCustomerResourceOpts) ToQueryCustomerResourceMap() (map[string]interface{}, error)

type QueryCustomerResourceOptsBuilder

type QueryCustomerResourceOptsBuilder interface {
	ToQueryCustomerResourceMap() (map[string]interface{}, error)
}

type QueryCustomerResourceResp

type QueryCustomerResourceResp struct {
	//Status code
	ErrorCode string `json:"error_code"`

	//Error description.
	ErrorMsg string `json:"error_msg"`

	//Customer resources.
	CustomerResource []CustomerResource `json:"customerResources"`

	//Total number of query records.
	TotalCount *int `json:"totalCount"`
}

type QueryCustomerResourceResult

type QueryCustomerResourceResult struct {
	gophercloud.Result
}

func QueryCustomerResource

*

  • A customer can query its pay-per-use resources on the partner sales platform. The on-demand resource data has a latency, and the latency for each cloud service data varies. The data obtained using this API is for reference only.
  • This API can be invoked using the partner AK/SK or token only.

func (QueryCustomerResourceResult) Extract

Jump to

Keyboard shortcuts

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