Documentation ¶
Overview ¶
Package scs defines the SCS services of BCE. The supported APIs are all defined in sub-package
scs.go - the SCS for Redis APIs definition supported by the redis service
util.go - define the utilities for api package of SCS service
Index ¶
- Constants
- func Aes128EncryptUseSecreteKey(sk string, data string) (string, error)
- func Json(v interface{}) string
- type BackupInfo
- type BackupRecord
- type BatchInstanceIds
- type Billing
- type BindingTagArgs
- type Client
- func (c *Client) AddSecurityIp(instanceId string, args *SecurityIpArgs) error
- func (c *Client) BindSecurityGroups(args *SecurityGroupArgs) error
- func (c *Client) BindingTag(instanceId string, args *BindingTagArgs) error
- func (c *Client) CreateInstance(args *CreateInstanceArgs) (*CreateInstanceResult, error)
- func (c *Client) DeleteInstance(instanceId string, clientToken string) error
- func (c *Client) DeleteRecyclerInstances(instanceIds []string) error
- func (c *Client) DeleteSecurityIp(instanceId string, args *SecurityIpArgs) error
- func (c *Client) FlushInstance(instanceId string, args *FlushInstanceArgs) error
- func (c *Client) GetBackupList(instanceId string) (*GetBackupListResult, error)
- func (c *Client) GetInstanceDetail(instanceId string) (*GetInstanceDetailResult, error)
- func (c *Client) GetLogById(instanceId, logId string, args *GetLogArgs) (*LogItem, error)
- func (c *Client) GetMaintainTime(instanceId string) (*GetMaintainTimeResult, error)
- func (c *Client) GetNodeTypeList() (*GetNodeTypeListResult, error)
- func (c *Client) GetParameters(instanceId string) (*GetParametersResult, error)
- func (c *Client) GetSecurityIp(instanceId string) (*GetSecurityIpResult, error)
- func (c *Client) GetZoneList() (*GetZoneListResult, error)
- func (c *Client) ListInstances(args *ListInstancesArgs) (*ListInstancesResult, error)
- func (c *Client) ListLogByInstanceId(instanceId string, args *ListLogArgs) (*ListLogResult, error)
- func (c *Client) ListRecycleInstances(marker *Marker) (*RecyclerInstanceList, error)
- func (c *Client) ListSecurityGroupByInstanceId(instanceId string) (*ListSecurityGroupResult, error)
- func (c *Client) ListSecurityGroupByVpcId(vpcId string) (*ListVpcSecurityGroupsResult, error)
- func (c *Client) ListSubnets(args *ListSubnetsArgs) (*ListSubnetsResult, error)
- func (c *Client) ModifyBackupPolicy(instanceId string, args *ModifyBackupPolicyArgs) error
- func (c *Client) ModifyMaintainTime(instanceId string, args *MaintainTime) error
- func (c *Client) ModifyParameters(instanceId string, args *ModifyParametersArgs) error
- func (c *Client) ModifyPassword(instanceId string, args *ModifyPasswordArgs) error
- func (c *Client) RecoverRecyclerInstances(instanceIds []string) error
- func (c *Client) RenewInstances(args *RenewInstanceArgs) (*OrderIdResult, error)
- func (c *Client) ReplaceSecurityGroups(args *SecurityGroupArgs) error
- func (c *Client) ResizeInstance(instanceId string, args *ResizeInstanceArgs) error
- func (c *Client) RestartInstance(instanceId string, args *RestartInstanceArgs) error
- func (c *Client) UnBindSecurityGroups(args *UnbindSecurityGroupArgs) error
- func (c *Client) UnBindingTag(instanceId string, args *BindingTagArgs) error
- func (c *Client) UpdateInstanceDomainName(instanceId string, args *UpdateInstanceDomainNameArgs) error
- func (c *Client) UpdateInstanceName(instanceId string, args *UpdateInstanceNameArgs) error
- type CreateInstanceArgs
- type CreateInstanceResult
- type FlushInstanceArgs
- type GetBackupListResult
- type GetInstanceDetailResult
- type GetLogArgs
- type GetMaintainTimeResult
- type GetNodeTypeListResult
- type GetParametersResult
- type GetPriceRequest
- type GetPriceResult
- type GetSecurityIpResult
- type GetZoneListResult
- type InstanceModel
- type InstanceParam
- type ListInstancesArgs
- type ListInstancesResult
- type ListLogArgs
- type ListLogResult
- type ListResultWithMarker
- type ListSecurityGroupResult
- type ListSubnetsArgs
- type ListSubnetsResult
- type ListVpcSecurityGroupsResult
- type LogItem
- type MaintainTime
- type Marker
- type ModifyBackupPolicyArgs
- type ModifyParametersArgs
- type ModifyPasswordArgs
- type NodeType
- type OrderIdResult
- type Parameter
- type RecycleInstance
- type RecyclerInstanceList
- type RenewInstanceArgs
- type RequestBuilder
- type Reservation
- type ResizeInstanceArgs
- type RestartInstanceArgs
- type SecurityGroup
- type SecurityGroupArgs
- type SecurityGroupDetail
- type SecurityGroupRule
- type SecurityIpArgs
- type ShardLog
- type Subnet
- type SubnetOriginal
- type UnbindSecurityGroupArgs
- type UpdateInstanceDomainNameArgs
- type UpdateInstanceNameArgs
- type ZoneNames
Constants ¶
const ( KEY_MARKER = "marker" KEY_MAX_KEYS = "maxKeys" INSTANCE_URL_V1 = bce.URI_PREFIX + "v1" + "/instance" INSTANCE_URL_V2 = bce.URI_PREFIX + "v2" + "/instance" URI_PREFIX_V2 = bce.URI_PREFIX + "v2" URI_PREFIX_V1 = bce.URI_PREFIX + "v1" REQUEST_SECURITYGROUP_URL = "/security" REQUEST_RECYCLER_URL = "/recycler" )
const (
DEFAULT_ENDPOINT = "redis." + bce.DEFAULT_REGION + ".baidubce.com"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackupInfo ¶
type BackupInfo struct { BackupType string `json:"backupType"` Comment string `json:"comment"` StartTime string `json:"startTime"` Records []BackupRecord `json:"records"` }
type BackupRecord ¶
type BatchInstanceIds ¶
type BatchInstanceIds struct {
InstanceIds []string `json:"cacheClusterShowIds,omitempty"`
}
type Billing ¶
type Billing struct { PaymentTiming string `json:"paymentTiming"` Reservation *Reservation `json:"reservation,omitempty"` }
type BindingTagArgs ¶
type Client ¶
Client of SCS service is a kind of BceClient, so derived from BceClient
func (*Client) AddSecurityIp ¶
func (c *Client) AddSecurityIp(instanceId string, args *SecurityIpArgs) error
AddSecurityIp - add securityIp to access a specified instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
- args: the arguments to add securityIp
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) BindSecurityGroups ¶
func (c *Client) BindSecurityGroups(args *SecurityGroupArgs) error
BindSecurityGroups - bind SecurityGroup to instances
PARAMS:
- args: http request body
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) BindingTag ¶
func (c *Client) BindingTag(instanceId string, args *BindingTagArgs) error
BindingTags - bind tags to a specified instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
- args: the arguments to bind tags to instance
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) CreateInstance ¶
func (c *Client) CreateInstance(args *CreateInstanceArgs) (*CreateInstanceResult, error)
CreateInstance - create an instance with specified parameters
PARAMS:
- cli: the client agent which can perform sending request
- reqBody: the request body to create instance
RETURNS:
- *CreateInstanceResult: result of the instance ids newly created
- error: nil if success otherwise the specific error
func (*Client) DeleteInstance ¶
DeleteInstance - delete a specified instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance to be deleted
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteRecyclerInstances ¶
DeleteRecyclerInstances - batch delete instances that in recycler
PARAMS:
- instanceIds: instanceId list to delete
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) DeleteSecurityIp ¶
func (c *Client) DeleteSecurityIp(instanceId string, args *SecurityIpArgs) error
DeleteSecurityIp - delete securityIp to access a specified instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
- args: the arguments to delete securityIp
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) FlushInstance ¶
func (c *Client) FlushInstance(instanceId string, args *FlushInstanceArgs) error
FlushInstance - flush a specified instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
- args: the arguments to flush instance
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) GetBackupList ¶
func (c *Client) GetBackupList(instanceId string) (*GetBackupListResult, error)
GetBackupList - get backup list of the instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
RETURNS:
- *GetBackupListResult: result of the backup list
- error: nil if success otherwise the specific error
func (*Client) GetInstanceDetail ¶
func (c *Client) GetInstanceDetail(instanceId string) (*GetInstanceDetailResult, error)
GetInstanceDetail - get details of the specified instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
RETURNS:
- *GetInstanceDetailResult: result of the instance details
- error: nil if success otherwise the specific error
func (*Client) GetLogById ¶
func (c *Client) GetLogById(instanceId, logId string, args *GetLogArgs) (*LogItem, error)
GetLogById - get log's detail of instance
PARAMS:
- instanceId: id of instance
RETURNS:
- *Log:log's detail of instance
- error: nil if success otherwise the specific error
func (*Client) GetMaintainTime ¶
func (c *Client) GetMaintainTime(instanceId string) (*GetMaintainTimeResult, error)
GetMaintainTime - get maintainTime of instance
PARAMS:
- instanceId: id of instance
RETURNS:
- *GetMaintainTimeResult:maintainTime of instance
- error: nil if success otherwise the specific error
func (*Client) GetNodeTypeList ¶
func (c *Client) GetNodeTypeList() (*GetNodeTypeListResult, error)
GetNodeTypeList - list all nodetype
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance to be deleted
- args: the arguments to Update instanceName
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) GetParameters ¶
func (c *Client) GetParameters(instanceId string) (*GetParametersResult, error)
GetParameters - query the configuration parameters and running parameters of redis instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
RETURNS:
- *GetParameterResult: result of the parameters
- error: nil if success otherwise the specific error
func (*Client) GetSecurityIp ¶
func (c *Client) GetSecurityIp(instanceId string) (*GetSecurityIpResult, error)
GetSecurityIp - list all securityIps
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
RETURNS:
- *ListSecurityIp: result of the security IP list
- error: nil if success otherwise the specific error
func (*Client) GetZoneList ¶
func (c *Client) GetZoneList() (*GetZoneListResult, error)
GetZoneList - list all zone
PARAMS:
- cli: the client agent which can perform sending request
RETURNS:
- *GetZoneListResult: result of the zone list
- error: nil if success otherwise the specific error
func (*Client) ListInstances ¶
func (c *Client) ListInstances(args *ListInstancesArgs) (*ListInstancesResult, error)
ListInstances - list all instances with the specified parameters
PARAMS:
- cli: the client agent which can perform sending request
- args: the arguments to list instances
RETURNS:
- *ListInstanceResult: result of the instance list
- error: nil if success otherwise the specific error
func (*Client) ListLogByInstanceId ¶
func (c *Client) ListLogByInstanceId(instanceId string, args *ListLogArgs) (*ListLogResult, error)
ListLogByInstanceId - list error or slow logs of instance
PARAMS:
- instanceId: id of instance
RETURNS:
- *[]Log:logs of instance
- error: nil if success otherwise the specific error
func (*Client) ListRecycleInstances ¶
func (c *Client) ListRecycleInstances(marker *Marker) (*RecyclerInstanceList, error)
ListRecycleInstances - list all instances in recycler with marker
PARAMS:
- marker: marker page
RETURNS:
- *RecyclerInstanceList: the result of instances in recycler
- error: nil if success otherwise the specific error
func (*Client) ListSecurityGroupByInstanceId ¶
func (c *Client) ListSecurityGroupByInstanceId(instanceId string) (*ListSecurityGroupResult, error)
ListSecurityGroupByInstanceId - list security groups by instance id
PARAMS:
- instanceId: id of instance
RETURNS:
- *ListSecurityGroupResult: list secrity groups result of instance
- error: nil if success otherwise the specific error
func (*Client) ListSecurityGroupByVpcId ¶
func (c *Client) ListSecurityGroupByVpcId(vpcId string) (*ListVpcSecurityGroupsResult, error)
ListSecurityGroupByVpcId - list security groups by vpc id
PARAMS:
- vpcId: id of vpc
RETURNS:
- *[]SecurityGroup:security groups of vpc
- error: nil if success otherwise the specific error
func (*Client) ListSubnets ¶
func (c *Client) ListSubnets(args *ListSubnetsArgs) (*ListSubnetsResult, error)
ListsSubnet - list all Subnets
PARAMS:
- cli: the client agent which can perform sending request
- args: the arguments to list all subnets, not necessary
RETURNS:
- *ListSubnetsResult: result of the subnet list
- error: nil if success otherwise the specific error
func (*Client) ModifyBackupPolicy ¶
func (c *Client) ModifyBackupPolicy(instanceId string, args *ModifyBackupPolicyArgs) error
ModifyBackupPolicy - modify the BackupPolicy of a specified instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
- args: the arguments to Modify BackupPolicy
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ModifyMaintainTime ¶
func (c *Client) ModifyMaintainTime(instanceId string, args *MaintainTime) error
ModifyMaintainTime - modify MaintainTime of instance
PARAMS:
- args: new maintainTime
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ModifyParameters ¶
func (c *Client) ModifyParameters(instanceId string, args *ModifyParametersArgs) error
ModifyParameters - modify the parameters of a specified instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
- args: the arguments to modify parameters
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ModifyPassword ¶
func (c *Client) ModifyPassword(instanceId string, args *ModifyPasswordArgs) error
ModifyPassword - modify the password of a specified instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
- args: the arguments to Modify Password
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) RecoverRecyclerInstances ¶
RecoverRecyclerInstances - batch recover instances that in recycler
PARAMS:
- instanceIds: instanceId list to recover
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) RenewInstances ¶
func (c *Client) RenewInstances(args *RenewInstanceArgs) (*OrderIdResult, error)
RenewInstances - batch renew instances
PARAMS:
- args: renew instanceIds and duration
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ReplaceSecurityGroups ¶
func (c *Client) ReplaceSecurityGroups(args *SecurityGroupArgs) error
ReplaceSecurityGroups - replace SecurityGroup to instances
PARAMS:
- args: http request body
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ResizeInstance ¶
func (c *Client) ResizeInstance(instanceId string, args *ResizeInstanceArgs) error
ResizeInstance - resize a specified instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance to be resized
- reqBody: the request body to resize instance
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) RestartInstance ¶
func (c *Client) RestartInstance(instanceId string, args *RestartInstanceArgs) error
RestartInstance - restart a specified instance
PARAMS:
- instanceId: id of the instance to be resized
- args: specify restart immediately or postpone restart to time window
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UnBindSecurityGroups ¶
func (c *Client) UnBindSecurityGroups(args *UnbindSecurityGroupArgs) error
UnBindSecurityGroups - unbind SecurityGroup to instances
PARAMS:
- args: http request body
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UnBindingTag ¶
func (c *Client) UnBindingTag(instanceId string, args *BindingTagArgs) error
UnBindingTags - unbind tags to a specified instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
- args: the arguments to unbind tags to instance
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateInstanceDomainName ¶
func (c *Client) UpdateInstanceDomainName(instanceId string, args *UpdateInstanceDomainNameArgs) error
UpdateInstanceDomainName - update name of a specified instance domain
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance
- args: the arguments to update domainName
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) UpdateInstanceName ¶
func (c *Client) UpdateInstanceName(instanceId string, args *UpdateInstanceNameArgs) error
UpdateInstanceName - update name of a specified instance
PARAMS:
- cli: the client agent which can perform sending request
- instanceId: id of the instance to be deleted
- args: the arguments to Update instanceName
RETURNS:
- error: nil if success otherwise the specific error
type CreateInstanceArgs ¶
type CreateInstanceArgs struct { Billing Billing `json:"billing"` PurchaseCount int `json:"purchaseCount"` InstanceName string `json:"instanceName"` NodeType string `json:"nodeType"` ShardNum int `json:"shardNum"` ProxyNum int `json:"proxyNum"` ClusterType string `json:"clusterType"` ReplicationNum int `json:"replicationNum"` Port int `json:"port"` EngineVersion string `json:"engineVersion"` VpcID string `json:"vpcId"` Subnets []Subnet `json:"subnets,omitempty"` AutoRenewTimeUnit string `json:"autoRenewTimeUnit,omitempty"` AutoRenewTime int `json:"autoRenewTime,omitempty"` BgwGroupId string `json:"bgwGroupId,omitempty"` ClientToken string `json:"-"` }
type CreateInstanceResult ¶
type CreateInstanceResult struct {
InstanceIds []string `json:"instanceIds"`
}
type FlushInstanceArgs ¶
type GetBackupListResult ¶
type GetBackupListResult struct { TotalCount string `json:"totalCount"` Backups []BackupInfo `json:"backups"` }
type GetInstanceDetailResult ¶
type GetInstanceDetailResult struct { InstanceID string `json:"instanceId"` InstanceName string `json:"instanceName"` InstanceStatus string `json:"instanceStatus"` ClusterType string `json:"clusterType"` Engine string `json:"engine"` EngineVersion string `json:"engineVersion"` VnetIP string `json:"vnetIp"` Domain string `json:"domain"` Port int `json:"port"` InstanceCreateTime string `json:"instanceCreateTime"` InstanceExpireTime string `json:"instanceExpireTime"` Capacity int `json:"capacity"` UsedCapacity float64 `json:"usedCapacity"` PaymentTiming string `json:"paymentTiming"` VpcID string `json:"vpcId"` ZoneNames []string `json:"zoneNames"` Subnets []Subnet `json:"subnets"` AutoRenew string `json:"autoRenew"` Tags []model.TagModel `json:"tags"` }
type GetLogArgs ¶
type GetLogArgs struct {
ValidSeconds int `json:"validSeconds"`
}
type GetMaintainTimeResult ¶
type GetMaintainTimeResult struct { CacheClusterShowId string `json:"cacheClusterShowId"` MaintainTime MaintainTime `json:"maintainTime"` }
type GetNodeTypeListResult ¶
type GetParametersResult ¶
type GetParametersResult struct {
Parameters []Parameter `json:"parameters"`
}
type GetPriceRequest ¶
type GetPriceRequest struct { Engine string `json:"engine,omitempty"` ShardNum int `json:"shardNum,omitempty"` Period int `json:"period,omitempty"` ChargeType string `json:"chargeType,omitempty"` NodeType string `json:"nodeType,omitempty"` ReplicationNum int `json:"replicationNum,omitempty"` ClusterType string `json:"clusterType,omitempty"` }
type GetPriceResult ¶
type GetPriceResult struct {
Price float64 `json:"price,omitempty"`
}
type GetSecurityIpResult ¶
type GetSecurityIpResult struct {
SecurityIps []string `json:"securityIps"`
}
type GetZoneListResult ¶
type GetZoneListResult struct {
Zones []ZoneNames `json:"zones"`
}
type InstanceModel ¶
type InstanceModel struct { InstanceID string `json:"instanceId"` InstanceName string `json:"instanceName"` InstanceStatus string `json:"instanceStatus"` ClusterType string `json:"clusterType"` Engine string `json:"engine"` EngineVersion string `json:"engineVersion"` VnetIP string `json:"vnetIp"` Domain string `json:"domain"` Port int `json:"port"` InstanceCreateTime string `json:"instanceCreateTime"` Capacity int `json:"capacity"` UsedCapacity float64 `json:"usedCapacity"` PaymentTiming string `json:"paymentTiming"` ZoneNames []string `json:"zoneNames"` Tags []model.TagModel `json:"tags"` }
type InstanceParam ¶
type ListInstancesArgs ¶
type ListInstancesResult ¶
type ListInstancesResult struct { Marker string `json:"marker"` IsTruncated bool `json:"isTruncated"` NextMarker string `json:"nextMarker"` MaxKeys int `json:"maxKeys"` Instances []InstanceModel `json:"instances"` }
type ListLogArgs ¶
type ListLogResult ¶
type ListLogResult struct {
LogList []ShardLog `json:"logList"`
}
type ListResultWithMarker ¶
type ListSecurityGroupResult ¶
type ListSecurityGroupResult struct {
Groups []SecurityGroupDetail `json:"groups"`
}
type ListSubnetsArgs ¶
type ListSubnetsResult ¶
type ListSubnetsResult struct {
SubnetOriginals []SubnetOriginal `json:"subnets"`
}
type ListVpcSecurityGroupsResult ¶
type ListVpcSecurityGroupsResult struct {
Groups []SecurityGroup `json:"groups"`
}
type MaintainTime ¶
type ModifyBackupPolicyArgs ¶
type ModifyParametersArgs ¶
type ModifyParametersArgs struct { Parameter InstanceParam `json:"parameter"` ClientToken string `json:"-"` }
type ModifyPasswordArgs ¶
type NodeType ¶
type NodeType struct { InstanceFlavor int `json:"instanceFlavor"` NodeType string `json:"nodeType"` CPUNum int `json:"cpuNum"` NetworkThroughputInGbps float64 `json:"networkThroughputInGbps"` PeakQPS int `json:"peakQps"` MaxConnections int `json:"maxConnections"` AllowedNodeNumList []int `json:"allowedNodeNumList"` }
type OrderIdResult ¶
type OrderIdResult struct {
OrderId string `json:"orderId"`
}
type RecycleInstance ¶
type RecycleInstance struct { InstanceID string `json:"cacheClusterShowId"` InstanceName string `json:"instanceName"` InstanceStatus string `json:"instanceStatus"` IsolatedStatus string `json:"isolatedStatus"` ClusterType string `json:"clusterType"` Engine string `json:"engine"` EngineVersion string `json:"engineVersion"` VnetIP string `json:"vnetIp"` Domain string `json:"domain"` Port string `json:"port"` InstanceCreateTime string `json:"instanceCreateTime"` Capacity int `json:"capacity"` UsedCapacity float64 `json:"usedCapacity"` PaymentTiming string `json:"paymentTiming"` ZoneNames []string `json:"zoneNames"` Tags []model.TagModel `json:"tags"` }
type RecyclerInstanceList ¶
type RecyclerInstanceList struct { ListResultWithMarker Result []RecycleInstance `json:"result"` }
type RenewInstanceArgs ¶
type RequestBuilder ¶
type RequestBuilder struct { }
type Reservation ¶
type ResizeInstanceArgs ¶
type RestartInstanceArgs ¶
type RestartInstanceArgs struct {
IsDefer bool `json:"isDefer"`
}
type SecurityGroup ¶
type SecurityGroup struct { Name string `json:"name"` SecurityGroupID string `json:"securityGroupId"` Description string `json:"description"` TenantID string `json:"tenantId"` AssociateNum int `json:"associateNum"` VpcID string `json:"vpcId"` VpcShortID string `json:"vpcShortId"` VpcName string `json:"vpcName"` CreatedTime string `json:"createdTime"` Version int `json:"version"` DefaultSecurityGroup int `json:"defaultSecurityGroup"` }
type SecurityGroupArgs ¶
type SecurityGroupDetail ¶
type SecurityGroupDetail struct { SecurityGroupName string `json:"securityGroupName"` SecurityGroupID string `json:"securityGroupId"` SecurityGroupRemark string `json:"securityGroupRemark"` Inbound []SecurityGroupRule `json:"inbound"` Outbound []SecurityGroupRule `json:"outbound"` VpcName string `json:"vpcName"` VpcID string `json:"vpcId"` ProjectID string `json:"projectId"` }
type SecurityGroupRule ¶
type SecurityGroupRule struct { PortRange string `json:"portRange"` Protocol string `json:"protocol"` RemoteGroupID string `json:"remoteGroupId"` RemoteIP string `json:"remoteIP"` Ethertype string `json:"ethertype"` TenantID string `json:"tenantId"` Name string `json:"name"` ID string `json:"id"` SecurityGroupRuleID string `json:"securityGroupRuleId"` Direction string `json:"direction"` }