ocs

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 = "Ocs"
	Style   = "RPC"
	Version = "2015-03-01"
)

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) ActivateInstance

func (api API) ActivateInstance(InstanceId string, optional openapi.M) (*openapi.Response, error)

ActivateInstance version 2015-03-01

required parameters:

name: InstanceId, type: string

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

func (API) AddAuthenticIP

func (api API) AddAuthenticIP(AuthenticIP, InstanceId string, optional openapi.M) (*openapi.Response, error)

AddAuthenticIP version 2015-03-01

required parameters:

name: AuthenticIP, type: string
name: InstanceId, type: string

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

func (API) CreateInstance

func (api API) CreateInstance(Capacity int64, Password string, optional openapi.M) (*CreateInstanceResponse, error)

CreateInstance version 2015-03-01

required parameters:

name: Capacity, type: int64
name: Password, type: string

optional parameters:

name: InstanceName, type: string
name: NetworkType, type: string, optional values: CLASSIC|VPC
name: OwnerAccount, type: string
name: OwnerId, type: int64
name: PrivateIpAddress, type: string
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: Token, type: string
name: VSwitchId, type: string
name: VpcId, type: string
name: ZoneId, type: string
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) DataOperate

func (api API) DataOperate(Command, InstanceId string, optional openapi.M) (*DataOperateResponse, error)

DataOperate version 2015-03-01

required parameters:

name: Command, type: string
name: InstanceId, type: string

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

func (API) DeactivateInstance

func (api API) DeactivateInstance(InstanceId string, optional openapi.M) (*openapi.Response, error)

DeactivateInstance version 2015-03-01

required parameters:

name: InstanceId, type: string

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

func (API) DeleteInstance

func (api API) DeleteInstance(InstanceId string, optional openapi.M) (*openapi.Response, error)

DeleteInstance version 2015-03-01

required parameters:

name: InstanceId, type: string

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

func (API) DescribeAuthenticIP

func (api API) DescribeAuthenticIP(InstanceId string, optional openapi.M) (*DescribeAuthenticIPResponse, error)

DescribeAuthenticIP version 2015-03-01

required parameters:

name: InstanceId, type: string

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

func (API) DescribeHistoryMonitorValues

func (api API) DescribeHistoryMonitorValues(EndTime, InstanceId, IntervalForHistory, StartTime string, optional openapi.M) (*DescribeHistoryMonitorValuesResponse, error)

DescribeHistoryMonitorValues version 2015-03-01

required parameters:

name: EndTime, type: string
name: InstanceId, type: string
name: IntervalForHistory, type: string
name: StartTime, type: string

optional parameters:

name: MonitorKeys, type: string
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

func (API) DescribeInstances

func (api API) DescribeInstances(optional openapi.M) (*DescribeInstancesResponse, error)

DescribeInstances version 2015-03-01

optional parameters:

name: InstanceIds, type: string
name: InstanceStatus, type: string, optional values: Available|Changing|Creating|Unavailable
name: NetworkType, type: string, optional values: CLASSIC|VPC
name: OwnerAccount, type: string
name: OwnerId, type: int64
name: PageNumber, type: int, min value: 1
name: PageSize, type: int, min value: 1, max value: 50
name: PrivateIpAddresses, type: string
name: ResourceOwnerAccount, type: string
name: ResourceOwnerId, type: int64
name: VSwitchId, type: string
name: VpcId, type: string
name: _method, type: string, optional values: GET|POST
name: _region, type: string
name: _scheme, type: string, optional values: http|https

func (API) DescribeMonitorItems

func (api API) DescribeMonitorItems(optional openapi.M) (*DescribeMonitorItemsResponse, error)

DescribeMonitorItems version 2015-03-01

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

func (API) DescribeMonitorValues

func (api API) DescribeMonitorValues(optional openapi.M) (*DescribeMonitorValuesResponse, error)

DescribeMonitorValues version 2015-03-01

optional parameters:

name: InstanceIds, type: string
name: MonitorKeys, type: string
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

func (API) DescribeRegions

func (api API) DescribeRegions(optional openapi.M) (*DescribeRegionsResponse, error)

DescribeRegions version 2015-03-01

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

func (API) DescribeSecurityIps

func (api API) DescribeSecurityIps(InstanceId string, optional openapi.M) (*DescribeSecurityIpsResponse, error)

DescribeSecurityIps version 2015-03-01

required parameters:

name: InstanceId, type: string

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

func (API) DescribeZones

func (api API) DescribeZones(optional openapi.M) (*DescribeZonesResponse, error)

DescribeZones version 2015-03-01

optional parameters:

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

func (API) FlushInstance

func (api API) FlushInstance(InstanceId string, optional openapi.M) (*openapi.Response, error)

FlushInstance version 2015-03-01

required parameters:

name: InstanceId, type: string

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

func (API) ModifyInstanceAttribute

func (api API) ModifyInstanceAttribute(InstanceId string, optional openapi.M) (*openapi.Response, error)

ModifyInstanceAttribute version 2015-03-01

required parameters:

name: InstanceId, type: string

optional parameters:

name: InstanceName, type: string
name: NewPassword, type: string
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

func (API) ModifyInstanceCapacity

func (api API) ModifyInstanceCapacity(Capacity int64, InstanceId string, optional openapi.M) (*openapi.Response, error)

ModifyInstanceCapacity version 2015-03-01

required parameters:

name: Capacity, type: int64
name: InstanceId, type: string

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

func (API) ModifySecurityIps

func (api API) ModifySecurityIps(InstanceId, SecurityIps string, optional openapi.M) (*openapi.Response, error)

ModifySecurityIps version 2015-03-01

required parameters:

name: InstanceId, type: string
name: SecurityIps, type: string

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

func (API) RemoveAuthenticIP

func (api API) RemoveAuthenticIP(AuthenticIP, InstanceId string, optional openapi.M) (*openapi.Response, error)

RemoveAuthenticIP version 2015-03-01

required parameters:

name: AuthenticIP, type: string
name: InstanceId, type: string

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

func (API) ReplaceAuthenticIP

func (api API) ReplaceAuthenticIP(InstanceId, NewAuthenticIP, OldAuthenticIP string, optional openapi.M) (*openapi.Response, error)

ReplaceAuthenticIP version 2015-03-01

required parameters:

name: InstanceId, type: string
name: NewAuthenticIP, type: string
name: OldAuthenticIP, type: string

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

func (API) VerifyPassword

func (api API) VerifyPassword(InstanceId, Password string, optional openapi.M) (*VerifyPasswordResponse, error)

VerifyPassword version 2015-03-01

required parameters:

name: InstanceId, type: string
name: Password, type: string

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

type CreateInstanceResponse

type CreateInstanceResponse struct {
	Bandwidth        int64
	Capacity         int64
	ConnectionDomain string
	Connections      int64
	InstanceId       string
	InstanceName     string
	InstanceStatus   string
	NetworkType      string
	Port             int
	PrivateIpAddress string
	QPS              int64
	RegionId         string
	UserName         string
	ZoneId           string
}

CreateInstanceResponse represents the response of the api CreateInstance.

type DataOperateResponse

type DataOperateResponse struct {
	CommandResult string
}

DataOperateResponse represents the response of the api DataOperate.

type DescribeAuthenticIPResponse

type DescribeAuthenticIPResponse struct {
	AuthenticIPs string
}

DescribeAuthenticIPResponse represents the response of the api DescribeAuthenticIP.

type DescribeHistoryMonitorValuesResponse

type DescribeHistoryMonitorValuesResponse struct {
	MonitorHistory string
}

DescribeHistoryMonitorValuesResponse represents the response of the api DescribeHistoryMonitorValues.

type DescribeInstancesResponse

type DescribeInstancesResponse struct {
	Instances struct {
		OcsInstance []struct {
			Bandwidth        int64
			Capacity         int64
			ConnectionDomain string
			Connections      int64
			CreationTime     string
			InstanceId       string
			InstanceName     string
			InstanceStatus   string
			NetworkType      string
			Port             int
			PrivateIpAddress string
			QPS              int64
			RegionId         string
			UserName         string
			VSwitchId        string
			VpcId            string
			ZoneId           string
		}
	}
	PageNumber int
	PageSize   int
	TotalCount int
}

DescribeInstancesResponse represents the response of the api DescribeInstances.

type DescribeMonitorItemsResponse

type DescribeMonitorItemsResponse struct {
	MonitorItems struct {
		OcsMonitorItem []struct {
			MonitorKey string
			Unit       string
		}
	}
}

DescribeMonitorItemsResponse represents the response of the api DescribeMonitorItems.

type DescribeMonitorValuesResponse

type DescribeMonitorValuesResponse struct {
	Date        string
	InstanceIds struct {
		OcsInstanceMonitor []struct {
			InstanceId  string
			MonitorKeys struct {
				OcsMonitorKey []struct {
					MonitorKey string
					Unit       string
					Value      string
				}
			}
		}
	}
}

DescribeMonitorValuesResponse represents the response of the api DescribeMonitorValues.

type DescribeRegionsResponse

type DescribeRegionsResponse struct {
	RegionIds struct {
		OcsRegion []struct {
			LocalName string
			RegionId  string
			ZoneIds   string
		}
	}
}

DescribeRegionsResponse represents the response of the api DescribeRegions.

type DescribeSecurityIpsResponse

type DescribeSecurityIpsResponse struct {
	SecurityIps string
}

DescribeSecurityIpsResponse represents the response of the api DescribeSecurityIps.

type DescribeZonesResponse

type DescribeZonesResponse struct {
	Zones struct {
		OcsZone []struct {
			Description string
			Name        string
			ZoneId      string
		}
	}
}

DescribeZonesResponse represents the response of the api DescribeZones.

type VerifyPasswordResponse

type VerifyPasswordResponse struct {
	Result bool
}

VerifyPasswordResponse represents the response of the api VerifyPassword.

Jump to

Keyboard shortcuts

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