Documentation ¶
Index ¶
- type DisableAutoRenewOpts
- type DisableAutoRenewOptsBuilder
- type DisableAutoRenewResp
- type DisableAutoRenewResult
- type EnableAutoRenewOpts
- type EnableAutoRenewOptsBuilder
- type EnableAutoRenewResp
- type EnableAutoRenewResult
- type QueryCustomerPeriodResourcesListOpts
- type QueryCustomerPeriodResourcesListOptsBuilder
- type QueryCustomerPeriodResourcesListResp
- type QueryCustomerPeriodResourcesListResult
- type RenewSubscriptionByResourceIdOpts
- type RenewSubscriptionByResourceIdOptsBuilder
- type RenewSubscriptionByResourceIdResp
- type RenewSubscriptionByResourceIdResult
- type ResourceInstance
- type UnsubscribeByResourceIdOpts
- type UnsubscribeByResourceIdOptsBuilder
- type UnsubscribeByResourceIdResp
- type UnsubscribeByResourceIdResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DisableAutoRenewOpts ¶
type DisableAutoRenewOpts struct { //Operation ID. ActionId string `json:"action_id" required:"true"` }
func (DisableAutoRenewOpts) ToDisableAutoRenewMap ¶
func (opts DisableAutoRenewOpts) ToDisableAutoRenewMap() (map[string]interface{}, error)
type DisableAutoRenewResp ¶
type DisableAutoRenewResult ¶
type DisableAutoRenewResult struct {
gophercloud.Result
}
func DisableAutoRenew ¶
func DisableAutoRenew(client *gophercloud.ServiceClient, opts DisableAutoRenewOptsBuilder, resourceId string) (r DisableAutoRenewResult)
*
- A customer can disable automatic renewal for its yearly/monthly resources on the customer platform.
- This API can be invoked using the customer AK/SK or token only.
func (DisableAutoRenewResult) Extract ¶
func (r DisableAutoRenewResult) Extract() (*DisableAutoRenewResp, error)
type EnableAutoRenewOpts ¶
type EnableAutoRenewOpts struct { //Operation ID. ActionId string `json:"action_id" required:"true"` }
func (EnableAutoRenewOpts) ToEnableAutoRenewMap ¶
func (opts EnableAutoRenewOpts) ToEnableAutoRenewMap() (map[string]interface{}, error)
type EnableAutoRenewResp ¶
type EnableAutoRenewResult ¶
type EnableAutoRenewResult struct {
gophercloud.Result
}
func EnableAutoRenew ¶
func EnableAutoRenew(client *gophercloud.ServiceClient, opts EnableAutoRenewOptsBuilder, resourceId string) (r EnableAutoRenewResult)
*
- A customer can enable automatic renewal for its yearly/monthly resources on the customer platform.
- This API can be invoked using the customer AK/SK or token only.
func (EnableAutoRenewResult) Extract ¶
func (r EnableAutoRenewResult) Extract() (*EnableAutoRenewResp, error)
type QueryCustomerPeriodResourcesListOpts ¶
type QueryCustomerPeriodResourcesListOpts struct { //Resource IDs. ResourceIds string `q:"resource_ids,omitempty"` //Order ID. OrderId string `q:"order_id,omitempty"` //Whether to query only primary resources. OnlyMainResource *int `q:"only_main_resource,omitempty"` //Resource status StatusList string `q:"status_list,omitempty"` //Page number. PageNo *int `q:"page_no,omitempty"` //Number of records per page. PageSize *int `q:"page_size,omitempty"` }
func (QueryCustomerPeriodResourcesListOpts) ToQueryCustomerPeriodResourcesListMap ¶
func (opts QueryCustomerPeriodResourcesListOpts) ToQueryCustomerPeriodResourcesListMap() (string, error)
type QueryCustomerPeriodResourcesListResp ¶
type QueryCustomerPeriodResourcesListResp struct { //Status code. ErrorCode string `json:"error_code"` //Error description. ErrorMsg string `json:"error_msg"` //Resource list. Data []ResourceInstance `json:"data"` //Total number of records TotalCount *int `json:"total_count,omitempty"` }
type QueryCustomerPeriodResourcesListResult ¶
type QueryCustomerPeriodResourcesListResult struct {
gophercloud.Result
}
func QueryCustomerPeriodResourcesList ¶
func QueryCustomerPeriodResourcesList(client *gophercloud.ServiceClient, opts QueryCustomerPeriodResourcesListOptsBuilder) (r QueryCustomerPeriodResourcesListResult)
*
- A customer can query one or all yearly/monthly resources on the customer platform.
- This API can be invoked only by the customer AK/SK or token.
func (QueryCustomerPeriodResourcesListResult) Extract ¶
func (r QueryCustomerPeriodResourcesListResult) Extract() (*QueryCustomerPeriodResourcesListResp, error)
type RenewSubscriptionByResourceIdOpts ¶
type RenewSubscriptionByResourceIdOpts struct { //Resource IDs. ResourceIds []string `json:"resource_ids" required:"true"` //Period type. PeriodType *int `json:"period_type" required:"true"` //Number of periods PeriodNum *int `json:"period_num" required:"true"` //Expiration policy. ExpireMode *int `json:"expire_mode" required:"true"` //Whether enable automatic payment. IsAutoPay *int `json:"isAutoPay,omitempty"` }
func (RenewSubscriptionByResourceIdOpts) ToRenewSubscriptionByResourceIdMap ¶
func (opts RenewSubscriptionByResourceIdOpts) ToRenewSubscriptionByResourceIdMap() (map[string]interface{}, error)
type RenewSubscriptionByResourceIdResult ¶
type RenewSubscriptionByResourceIdResult struct {
gophercloud.Result
}
func RenewSubscriptionByResourceId ¶
func RenewSubscriptionByResourceId(client *gophercloud.ServiceClient, opts RenewSubscriptionByResourceIdOptsBuilder) (r RenewSubscriptionByResourceIdResult)
*
- A customer can renew its yearly/monthly resources on the customer platform.
- This API can be invoked using the customer AK/SK or token only.
func (RenewSubscriptionByResourceIdResult) Extract ¶
func (r RenewSubscriptionByResourceIdResult) Extract() (*RenewSubscriptionByResourceIdResp, error)
type ResourceInstance ¶
type ResourceInstance struct { //Internal ID of the resource to be provisioned Id string `json:"id"` //Resource instance ID. ResourceId string `json:"resource_id"` //Resource instance name. ResourceName string `json:"resource_name"` //Resource pool region ID of cloud services. RegionCode string `json:"region_code"` //Resource type code ResourceTypeCode string `json:"resource_type_code"` //resource_spec_code ResourceSpecCode string `json:"resource_spec_code"` //Resource project ID. ProjectCode string `json:"project_code"` //Product ID. ProductId string `json:"product_id"` //Primary resource ID. MainResourceId string `json:"main_resource_id"` //Whether a primary resource. IsMainResource *int `json:"is_main_resource,omitempty"` //Resource status. Status *int `json:"status,omitempty"` //Effective time of a resource. ValidTime string `json:"valid_time"` //Expiration time of a resource. ExpireTime string `json:"expire_time"` //Next billing policy. NextOperationPolicy *int `json:"next_operation_policy,omitempty"` // contains filtered or unexported fields }
type UnsubscribeByResourceIdOpts ¶
type UnsubscribeByResourceIdOpts struct { //Resource IDs. ResourceIds []string `json:"resourceIds" required:"true"` //Unsubscription type. UnSubType *int `json:"unSubType" required:"true"` //Unsubscription cause UnsubscribeReasonType *int `json:"unsubscribeReasonType,omitempty"` //Unsubscription reason, which is generally specified by the customer. UnsubscribeReason string `json:"unsubscribeReason,omitempty"` }
func (UnsubscribeByResourceIdOpts) ToUnsubscribeByResourceIdMap ¶
func (opts UnsubscribeByResourceIdOpts) ToUnsubscribeByResourceIdMap() (map[string]interface{}, error)
type UnsubscribeByResourceIdResult ¶
type UnsubscribeByResourceIdResult struct {
gophercloud.Result
}
func UnsubscribeByResourceId ¶
func UnsubscribeByResourceId(client *gophercloud.ServiceClient, opts UnsubscribeByResourceIdOptsBuilder) (r UnsubscribeByResourceIdResult)
*
- A customer can unsubscribe from its yearly/monthly resources on the customer platform.
- This API can be invoked using the customer AK/SK or token only.
func (UnsubscribeByResourceIdResult) Extract ¶
func (r UnsubscribeByResourceIdResult) Extract() (*UnsubscribeByResourceIdResp, error)
Click to show internal directories.
Click to hide internal directories.