periodresource

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 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 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 DisableAutoRenewOptsBuilder

type DisableAutoRenewOptsBuilder interface {
	ToDisableAutoRenewMap() (map[string]interface{}, error)
}

type DisableAutoRenewResp

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

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

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

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 EnableAutoRenewOptsBuilder

type EnableAutoRenewOptsBuilder interface {
	ToEnableAutoRenewMap() (map[string]interface{}, error)
}

type EnableAutoRenewResp

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

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

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

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 QueryCustomerPeriodResourcesListOptsBuilder

type QueryCustomerPeriodResourcesListOptsBuilder interface {
	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

*

  • 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

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 RenewSubscriptionByResourceIdOptsBuilder

type RenewSubscriptionByResourceIdOptsBuilder interface {
	ToRenewSubscriptionByResourceIdMap() (map[string]interface{}, error)
}

type RenewSubscriptionByResourceIdResp

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

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

	//List of order IDs generated when resource subscription is renewed.
	OrderIds []string `json:"order_ids"`
}

type RenewSubscriptionByResourceIdResult

type RenewSubscriptionByResourceIdResult struct {
	gophercloud.Result
}

func RenewSubscriptionByResourceId

*

  • 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

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 UnsubscribeByResourceIdOptsBuilder

type UnsubscribeByResourceIdOptsBuilder interface {
	ToUnsubscribeByResourceIdMap() (map[string]interface{}, error)
}

type UnsubscribeByResourceIdResp

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

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

	//Unsubscription order IDs.
	OrderIds []string `json:"order_ids"`
}

type UnsubscribeByResourceIdResult

type UnsubscribeByResourceIdResult struct {
	gophercloud.Result
}

func UnsubscribeByResourceId

*

  • 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

Jump to

Keyboard shortcuts

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