Documentation ¶
Index ¶
- Constants
- func NewParams() openapi.Params
- type API
- func (api API) ActivateInstance(InstanceId string, optional openapi.M) (*openapi.Response, error)
- func (api API) AddAuthenticIP(AuthenticIP, InstanceId string, optional openapi.M) (*openapi.Response, error)
- func (api API) CreateInstance(Capacity int64, Password string, optional openapi.M) (*CreateInstanceResponse, error)
- func (api API) DataOperate(Command, InstanceId string, optional openapi.M) (*DataOperateResponse, error)
- func (api API) DeactivateInstance(InstanceId string, optional openapi.M) (*openapi.Response, error)
- func (api API) DeleteInstance(InstanceId string, optional openapi.M) (*openapi.Response, error)
- func (api API) DescribeAuthenticIP(InstanceId string, optional openapi.M) (*DescribeAuthenticIPResponse, error)
- func (api API) DescribeHistoryMonitorValues(EndTime, InstanceId, IntervalForHistory, StartTime string, optional openapi.M) (*DescribeHistoryMonitorValuesResponse, error)
- func (api API) DescribeInstances(optional openapi.M) (*DescribeInstancesResponse, error)
- func (api API) DescribeMonitorItems(optional openapi.M) (*DescribeMonitorItemsResponse, error)
- func (api API) DescribeMonitorValues(optional openapi.M) (*DescribeMonitorValuesResponse, error)
- func (api API) DescribeRegions(optional openapi.M) (*DescribeRegionsResponse, error)
- func (api API) DescribeSecurityIps(InstanceId string, optional openapi.M) (*DescribeSecurityIpsResponse, error)
- func (api API) DescribeZones(optional openapi.M) (*DescribeZonesResponse, error)
- func (api API) FlushInstance(InstanceId string, optional openapi.M) (*openapi.Response, error)
- func (api API) ModifyInstanceAttribute(InstanceId string, optional openapi.M) (*openapi.Response, error)
- func (api API) ModifyInstanceCapacity(Capacity int64, InstanceId string, optional openapi.M) (*openapi.Response, error)
- func (api API) ModifySecurityIps(InstanceId, SecurityIps string, optional openapi.M) (*openapi.Response, error)
- func (api API) RemoveAuthenticIP(AuthenticIP, InstanceId string, optional openapi.M) (*openapi.Response, error)
- func (api API) ReplaceAuthenticIP(InstanceId, NewAuthenticIP, OldAuthenticIP string, optional openapi.M) (*openapi.Response, error)
- func (api API) VerifyPassword(InstanceId, Password string, optional openapi.M) (*VerifyPasswordResponse, error)
- type CreateInstanceResponse
- type DataOperateResponse
- type DescribeAuthenticIPResponse
- type DescribeHistoryMonitorValuesResponse
- type DescribeInstancesResponse
- type DescribeMonitorItemsResponse
- type DescribeMonitorValuesResponse
- type DescribeRegionsResponse
- type DescribeSecurityIpsResponse
- type DescribeZonesResponse
- type VerifyPasswordResponse
Constants ¶
const ( Product = "Ocs" Style = "RPC" Version = "2015-03-01" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
openapi.Service
}
func (API) ActivateInstance ¶
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 ¶
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 ¶
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 ¶
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.