Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) FlowProductRemind(request *FlowProductRemindRequest) (response *FlowProductRemindResponse, err error)
- func (c *Client) FlowProductRemindWithContext(ctx context.Context, request *FlowProductRemindRequest) (response *FlowProductRemindResponse, err error)
- func (c *Client) GetUsagePlanUsageAmount(request *GetUsagePlanUsageAmountRequest) (response *GetUsagePlanUsageAmountResponse, err error)
- func (c *Client) GetUsagePlanUsageAmountWithContext(ctx context.Context, request *GetUsagePlanUsageAmountRequest) (response *GetUsagePlanUsageAmountResponse, err error)
- type FlowProductRemindRequest
- type FlowProductRemindRequestParams
- type FlowProductRemindResponse
- type FlowProductRemindResponseParams
- type GetUsagePlanUsageAmountRequest
- type GetUsagePlanUsageAmountRequestParams
- type GetUsagePlanUsageAmountResponse
- type GetUsagePlanUsageAmountResponseParams
Constants ¶
const ( // 操作失败。 FAILEDOPERATION = "FailedOperation" // 内部错误。 INTERNALERROR = "InternalError" // 参数错误。 INVALIDPARAMETER = "InvalidParameter" // 资源不存在。 RESOURCENOTFOUND = "ResourceNotFound" // 资源不可用。 RESOURCEUNAVAILABLE = "ResourceUnavailable" )
const APIVersion = "2019-10-10"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) FlowProductRemind ¶
func (c *Client) FlowProductRemind(request *FlowProductRemindRequest) (response *FlowProductRemindResponse, err error)
FlowProductRemind 计量商品用量提醒,用于服务商调用云服务,云服务向客户发送提醒信息
func (*Client) FlowProductRemindWithContext ¶ added in v1.0.324
func (c *Client) FlowProductRemindWithContext(ctx context.Context, request *FlowProductRemindRequest) (response *FlowProductRemindResponse, err error)
FlowProductRemind 计量商品用量提醒,用于服务商调用云服务,云服务向客户发送提醒信息
func (*Client) GetUsagePlanUsageAmount ¶
func (c *Client) GetUsagePlanUsageAmount(request *GetUsagePlanUsageAmountRequest) (response *GetUsagePlanUsageAmountResponse, err error)
GetUsagePlanUsageAmount 该接口可以根据InstanceId查询实例的api的使用情况。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable"
func (*Client) GetUsagePlanUsageAmountWithContext ¶ added in v1.0.324
func (c *Client) GetUsagePlanUsageAmountWithContext(ctx context.Context, request *GetUsagePlanUsageAmountRequest) (response *GetUsagePlanUsageAmountResponse, err error)
GetUsagePlanUsageAmount 该接口可以根据InstanceId查询实例的api的使用情况。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE = "ResourceUnavailable"
type FlowProductRemindRequest ¶
type FlowProductRemindRequest struct { *tchttp.BaseRequest // 服务商uin ProviderUin *string `json:"ProviderUin,omitnil,omitempty" name:"ProviderUin"` // 服务商实例ID SignId *string `json:"SignId,omitnil,omitempty" name:"SignId"` // 云市场实例ID ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` // 实例总流量 TotalFlow *string `json:"TotalFlow,omitnil,omitempty" name:"TotalFlow"` // 剩余流量 LeftFlow *string `json:"LeftFlow,omitnil,omitempty" name:"LeftFlow"` // 流量单位 FlowUnit *string `json:"FlowUnit,omitnil,omitempty" name:"FlowUnit"` }
func NewFlowProductRemindRequest ¶
func NewFlowProductRemindRequest() (request *FlowProductRemindRequest)
func (*FlowProductRemindRequest) FromJsonString ¶
func (r *FlowProductRemindRequest) 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 (*FlowProductRemindRequest) ToJsonString ¶
func (r *FlowProductRemindRequest) ToJsonString() string
type FlowProductRemindRequestParams ¶ added in v1.0.426
type FlowProductRemindRequestParams struct { // 服务商uin ProviderUin *string `json:"ProviderUin,omitnil,omitempty" name:"ProviderUin"` // 服务商实例ID SignId *string `json:"SignId,omitnil,omitempty" name:"SignId"` // 云市场实例ID ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` // 实例总流量 TotalFlow *string `json:"TotalFlow,omitnil,omitempty" name:"TotalFlow"` // 剩余流量 LeftFlow *string `json:"LeftFlow,omitnil,omitempty" name:"LeftFlow"` // 流量单位 FlowUnit *string `json:"FlowUnit,omitnil,omitempty" name:"FlowUnit"` }
Predefined struct for user
type FlowProductRemindResponse ¶
type FlowProductRemindResponse struct { *tchttp.BaseResponse Response *FlowProductRemindResponseParams `json:"Response"` }
func NewFlowProductRemindResponse ¶
func NewFlowProductRemindResponse() (response *FlowProductRemindResponse)
func (*FlowProductRemindResponse) FromJsonString ¶
func (r *FlowProductRemindResponse) 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 (*FlowProductRemindResponse) ToJsonString ¶
func (r *FlowProductRemindResponse) ToJsonString() string
type FlowProductRemindResponseParams ¶ added in v1.0.426
type FlowProductRemindResponseParams struct { // 是否成功 Success *string `json:"Success,omitnil,omitempty" name:"Success"` // 流水号 FlowId *string `json:"FlowId,omitnil,omitempty" name:"FlowId"` // 消息 // 注意:此字段可能返回 null,表示取不到有效值。 Info *string `json:"Info,omitnil,omitempty" name:"Info"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type GetUsagePlanUsageAmountRequest ¶
type GetUsagePlanUsageAmountRequest struct { *tchttp.BaseRequest // 用于查询实例的Id InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"` }
func NewGetUsagePlanUsageAmountRequest ¶
func NewGetUsagePlanUsageAmountRequest() (request *GetUsagePlanUsageAmountRequest)
func (*GetUsagePlanUsageAmountRequest) FromJsonString ¶
func (r *GetUsagePlanUsageAmountRequest) 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 (*GetUsagePlanUsageAmountRequest) ToJsonString ¶
func (r *GetUsagePlanUsageAmountRequest) ToJsonString() string
type GetUsagePlanUsageAmountRequestParams ¶ added in v1.0.426
type GetUsagePlanUsageAmountRequestParams struct { // 用于查询实例的Id InstanceId *string `json:"InstanceId,omitnil,omitempty" name:"InstanceId"` }
Predefined struct for user
type GetUsagePlanUsageAmountResponse ¶
type GetUsagePlanUsageAmountResponse struct { *tchttp.BaseResponse Response *GetUsagePlanUsageAmountResponseParams `json:"Response"` }
func NewGetUsagePlanUsageAmountResponse ¶
func NewGetUsagePlanUsageAmountResponse() (response *GetUsagePlanUsageAmountResponse)
func (*GetUsagePlanUsageAmountResponse) FromJsonString ¶
func (r *GetUsagePlanUsageAmountResponse) 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 (*GetUsagePlanUsageAmountResponse) ToJsonString ¶
func (r *GetUsagePlanUsageAmountResponse) ToJsonString() string
type GetUsagePlanUsageAmountResponseParams ¶ added in v1.0.426
type GetUsagePlanUsageAmountResponseParams struct { // 最大调用量 MaxRequestNum *int64 `json:"MaxRequestNum,omitnil,omitempty" name:"MaxRequestNum"` // 已经调用量 InUseRequestNum *int64 `json:"InUseRequestNum,omitnil,omitempty" name:"InUseRequestNum"` // 剩余调用量 RemainingRequestNum *int64 `json:"RemainingRequestNum,omitnil,omitempty" name:"RemainingRequestNum"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user