partnerbill

package
v1.61.1631 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointMap map[string]string

EndpointMap Endpoint Data

View Source
var EndpointType = "regional"

EndpointType regional or central

Functions

func GetEndpointMap

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty

func SetClientProperty(client *Client, propertyName string, propertyValue interface{})

SetClientProperty Set Property by Reflect

func SetEndpointDataToClient

func SetEndpointDataToClient(client *Client)

SetEndpointDataToClient Set EndpointMap and ENdpointType

Types

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithProvider

func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)

NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArnAndPolicy

func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func (*Client) GetPartnerInstancesMonthBill

func (client *Client) GetPartnerInstancesMonthBill(request *GetPartnerInstancesMonthBillRequest) (response *GetPartnerInstancesMonthBillResponse, err error)

GetPartnerInstancesMonthBill invokes the partnerbill.GetPartnerInstancesMonthBill API synchronously api document: https://help.aliyun.com/api/partnerbill/getpartnerinstancesmonthbill.html

func (*Client) GetPartnerInstancesMonthBillWithCallback

func (client *Client) GetPartnerInstancesMonthBillWithCallback(request *GetPartnerInstancesMonthBillRequest, callback func(response *GetPartnerInstancesMonthBillResponse, err error)) <-chan int

GetPartnerInstancesMonthBillWithCallback invokes the partnerbill.GetPartnerInstancesMonthBill API asynchronously api document: https://help.aliyun.com/api/partnerbill/getpartnerinstancesmonthbill.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) GetPartnerInstancesMonthBillWithChan

func (client *Client) GetPartnerInstancesMonthBillWithChan(request *GetPartnerInstancesMonthBillRequest) (<-chan *GetPartnerInstancesMonthBillResponse, <-chan error)

GetPartnerInstancesMonthBillWithChan invokes the partnerbill.GetPartnerInstancesMonthBill API asynchronously api document: https://help.aliyun.com/api/partnerbill/getpartnerinstancesmonthbill.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type Data

type Data struct {
	OssFiles []string `json:"OssFiles" xml:"OssFiles"`
}

Data is a nested struct in partnerbill response

type GetPartnerInstancesMonthBillRequest

type GetPartnerInstancesMonthBillRequest struct {
	*requests.RpcRequest
	AliyunPk            requests.Integer `position:"Query" name:"AliyunPk"`
	ContainRelatedOrder requests.Boolean `position:"Query" name:"ContainRelatedOrder"`
	Test                requests.Boolean `position:"Query" name:"Test"`
	BillPeriod          string           `position:"Query" name:"BillPeriod"`
}

GetPartnerInstancesMonthBillRequest is the request struct for api GetPartnerInstancesMonthBill

func CreateGetPartnerInstancesMonthBillRequest

func CreateGetPartnerInstancesMonthBillRequest() (request *GetPartnerInstancesMonthBillRequest)

CreateGetPartnerInstancesMonthBillRequest creates a request to invoke GetPartnerInstancesMonthBill API

type GetPartnerInstancesMonthBillResponse

type GetPartnerInstancesMonthBillResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	Success   bool   `json:"Success" xml:"Success"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Data      Data   `json:"Data" xml:"Data"`
}

GetPartnerInstancesMonthBillResponse is the response struct for api GetPartnerInstancesMonthBill

func CreateGetPartnerInstancesMonthBillResponse

func CreateGetPartnerInstancesMonthBillResponse() (response *GetPartnerInstancesMonthBillResponse)

CreateGetPartnerInstancesMonthBillResponse creates a response to parse from GetPartnerInstancesMonthBill response

type OssFiles

type OssFiles struct {
	OssFiles []string `json:"OssFiles" xml:"OssFiles"`
}

OssFiles is a nested struct in partnerbill response

Jump to

Keyboard shortcuts

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