live_v20200801

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName    = "live"
	DefaultTimeout = 10 * time.Second
)

Variables

View Source
var (
	ServiceInfoMap = map[string]common.ServiceInfo{
		"cn-north-1": {
			Timeout: DefaultTimeout,
			Scheme:  "https",
			Host:    "open.byteplusapi.com",
			Header: http.Header{
				"Accept": []string{"application/json"},
			},
			Credentials: common.Credentials{
				Region:  "cn-north-1",
				Service: ServiceName,
			},
		},
	}
	ApiListInfo = map[string]*common.ApiInfo{

		"ListStorageSpace": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListStorageSpace"},
				"Version": []string{"2020-08-01"},
			},
		},
		"ListStorageSpaceDetail": {
			Method: http.MethodPost,
			Path:   "/",
			Query: url.Values{
				"Action":  []string{"ListStorageSpaceDetail"},
				"Version": []string{"2020-08-01"},
			},
		},
	}
)

Functions

This section is empty.

Types

type ListStorageSpace

type ListStorageSpace struct{}

type ListStorageSpaceBody

type ListStorageSpaceBody struct {

	// REQUIRED
	PageNum int32 `json:"PageNum"`

	// REQUIRED
	PageSize int32 `json:"PageSize"`
}

type ListStorageSpaceDetail

type ListStorageSpaceDetail struct{}

type ListStorageSpaceDetailBody

type ListStorageSpaceDetailBody struct {
	StorageSpaceList []*string `json:"StorageSpaceList,omitempty"`
}

type ListStorageSpaceDetailQuery

type ListStorageSpaceDetailQuery struct{}

type ListStorageSpaceDetailReq

type ListStorageSpaceDetailReq struct {
	*ListStorageSpaceDetailQuery
	*ListStorageSpaceDetailBody
}

type ListStorageSpaceDetailRes

type ListStorageSpaceDetailRes struct {

	// REQUIRED
	ResponseMetadata ListStorageSpaceDetailResResponseMetadata `json:"ResponseMetadata"`

	// REQUIRED
	Result ListStorageSpaceDetailResResult `json:"Result"`
}

type ListStorageSpaceDetailResResponseMetadata

type ListStorageSpaceDetailResResponseMetadata struct {

	// REQUIRED
	Action string `json:"Action"`

	// REQUIRED
	Region string `json:"Region"`

	// REQUIRED
	RequestID string `json:"RequestId"`

	// REQUIRED
	Service string `json:"Service"`

	// REQUIRED
	Version string `json:"Version"`
}

type ListStorageSpaceDetailResResult

type ListStorageSpaceDetailResResult struct {

	// REQUIRED
	StorageSpaceListDetail []ListStorageSpaceDetailResResultStorageSpaceListDetailItem `json:"StorageSpaceListDetail"`
}

type ListStorageSpaceDetailResResultStorageSpaceListDetailItem

type ListStorageSpaceDetailResResultStorageSpaceListDetailItem struct {
	AccountID    *string `json:"AccountID,omitempty"`
	CnameDomain  *string `json:"CnameDomain,omitempty"`
	Name         *string `json:"Name,omitempty"`
	PublicDomain *string `json:"PublicDomain,omitempty"`
	TTL          *int32  `json:"TTL,omitempty"`
}

type ListStorageSpaceQuery

type ListStorageSpaceQuery struct{}

type ListStorageSpaceReq

type ListStorageSpaceReq struct {
	*ListStorageSpaceQuery
	*ListStorageSpaceBody
}

type ListStorageSpaceRes

type ListStorageSpaceRes struct {

	// REQUIRED
	ResponseMetadata ListStorageSpaceResResponseMetadata `json:"ResponseMetadata"`

	// REQUIRED
	Result ListStorageSpaceResResult `json:"Result"`
}

type ListStorageSpaceResResponseMetadata

type ListStorageSpaceResResponseMetadata struct {

	// REQUIRED
	Action string `json:"Action"`

	// REQUIRED
	Region string `json:"Region"`

	// REQUIRED
	RequestID string `json:"RequestId"`

	// REQUIRED
	Service string `json:"Service"`

	// REQUIRED
	Version string `json:"Version"`
}

type ListStorageSpaceResResult

type ListStorageSpaceResResult struct {

	// REQUIRED
	CurPage int32 `json:"CurPage"`

	// REQUIRED
	StorageSpace []string `json:"StorageSpace"`

	// REQUIRED
	Total int32 `json:"Total"`
}

type Live

type Live struct {
	*common.Client
}

func NewInstance

func NewInstance() *Live

func NewInstanceWithRegion

func NewInstanceWithRegion(region string) *Live

func (*Live) ListStorageSpace

func (c *Live) ListStorageSpace(arg *ListStorageSpaceBody) (*ListStorageSpaceRes, error)

func (*Live) ListStorageSpaceDetail

func (c *Live) ListStorageSpaceDetail(arg *ListStorageSpaceDetailBody) (*ListStorageSpaceDetailRes, error)

Jump to

Keyboard shortcuts

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