ossadmin

package
v0.0.0-...-0b043e4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Product = "OssAdmin"
	Style   = "RPC"
	Version = "2013-07-12"
)

Variables

This section is empty.

Functions

func NewParams

func NewParams() openapi.Params

Types

type API

type API struct {
	openapi.Service
}

func New

func New(accessKeyId, accessKeySecret string) API

func (API) CreateOssInstance

func (api API) CreateOssInstance(optional openapi.M) (*CreateOssInstanceResponse, error)

CreateOssInstance version 2013-07-12

optional parameters:

name: OwnerAccount, type: string
name: OwnerId, type: int64
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https
name: aliUid, type: int
name: region, type: string

func (API) GetBucketPolicy

func (api API) GetBucketPolicy(BucketName string, optional openapi.M) (*GetBucketPolicyResponse, error)

GetBucketPolicy version 2013-07-12

required parameters:

name: BucketName, type: string

optional parameters:

name: OwnerAccount, type: string
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https
name: bid, type: string
name: uid, type: string

func (API) PutBucketLimit

func (api API) PutBucketLimit(BucketLimit int, optional openapi.M) (*PutBucketLimitResponse, error)

PutBucketLimit version 2013-07-12

required parameters:

name: BucketLimit, type: int

optional parameters:

name: OwnerAccount, type: string
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https
name: bid, type: string
name: uid, type: string

func (API) PutBucketPolicy

func (api API) PutBucketPolicy(BucketName string, optional openapi.M) (*PutBucketPolicyResponse, error)

PutBucketPolicy version 2013-07-12

required parameters:

name: BucketName, type: string

optional parameters:

name: DisallowEmptyRefer, type: bool
name: EnableDualCluster, type: bool
name: ErrorFile, type: string
name: IamPolicy, type: string
name: IndexFile, type: string
name: Location, type: string
name: LogBucket, type: string
name: LogPrefix, type: string
name: OwnerAccount, type: string
name: WhiteReferList, type: string
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https
name: bid, type: string
name: uid, type: string

func (API) PutBucketStatus

func (api API) PutBucketStatus(Bucket, Status string, optional openapi.M) (*PutBucketStatusResponse, error)

PutBucketStatus version 2013-07-12

required parameters:

name: Bucket, type: string
name: Status, type: string

optional parameters:

name: OwnerAccount, type: string
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https
name: bid, type: string
name: uid, type: string

type CreateOssInstanceResponse

type CreateOssInstanceResponse struct {
	AliUid         int64 `json:"aliUid" xml:"aliUid"`
	Code           string
	EndTime        string `json:"endTime" xml:"endTime"`
	InstacneStatus string `json:"instacneStatus" xml:"instacneStatus"`
	InstanceId     string `json:"instanceId" xml:"instanceId"`
	InstanceName   string `json:"instanceName" xml:"instanceName"`
	Message        string
	StartTime      string `json:"startTime" xml:"startTime"`
	Success        bool
}

CreateOssInstanceResponse represents the response of the api CreateOssInstance.

type GetBucketPolicyResponse

type GetBucketPolicyResponse struct {
	DisallowEmptyRefer bool
	EnableDualCluster  bool
	ErrorFile          string
	IamPolicy          string
	IndexFile          string
	Location           string
	LogBucket          string
	LogPrefix          string
	WhiteReferList     struct {
	}
}

GetBucketPolicyResponse represents the response of the api GetBucketPolicy.

type PutBucketLimitResponse

type PutBucketLimitResponse struct {
	Code    string
	Message string
	Success bool
}

PutBucketLimitResponse represents the response of the api PutBucketLimit.

type PutBucketPolicyResponse

type PutBucketPolicyResponse struct {
	Code    string
	Message string
	Success bool
}

PutBucketPolicyResponse represents the response of the api PutBucketPolicy.

type PutBucketStatusResponse

type PutBucketStatusResponse struct {
	Code    string
	Message string
	Success bool
}

PutBucketStatusResponse represents the response of the api PutBucketStatus.

Jump to

Keyboard shortcuts

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