vserver

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MPL-2.0 Imports: 20 Imported by: 0

README

Go API client for vserver

Api Documentation

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

  • API version: 1.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.GoClientCodegen

Installation

Put the package under your project folder and add the following in import:

import "./vserver"

Documentation for API Endpoints

All URIs are relative to https://api.vngcloud.tech

Class Method HTTP request Description
FlavorRestControllerApi GetFlavorUsingGET Get /v1/{project_id}/flavors/{flavor_id} getFlavor
FlavorRestControllerApi ListFlavorUsingGET Get /v1/{project_id}/{flavor_zone_id}/flavors listFlavor
FlavorZoneRestControllerApi GetFlavorZoneUsingGET Get /v1/{project_id}/flavor_zones/{flavor_zone_id} getFlavorZone
FlavorZoneRestControllerApi ListFlavorZoneUsingGET Get /v1/{project_id}/flavor_zones listFlavorZone
ImageRestControllerApi ListOSImageUsingGET Get /v1/{project_id}/images/os listOSImage
NetworkAclRestControllerApi CreateNetworkAclUsingPOST Post /v1/{project_id}/policies Create network-acl
NetworkAclRestControllerApi DeleteNetworkAclUsingDELETE Delete /v1/{project_id}/policies/{uuid} Delete Network-acl
NetworkAclRestControllerApi GetNetworkAclUsingGET Get /v1/{project_id}/policies/{uuid} Get network-acl by uuid
NetworkAclRestControllerApi ListNetworkAclUsingGET Get /v1/{project_id}/policies List network-acl
NetworkAclRestControllerApi UpdateAssociatedSubnetsUsingPUT Put /v1/{project_id}/policies/{uuid}/subnets Update ACL Rule of Network-acl
NetworkAclRestControllerApi UpdateRulesUsingPUT Put /v1/{project_id}/policies/{uuid}/rules Update Inbound/Outbound Rules of Network-acl
NetworkRestControllerApi CreateNetworkUsingPOST Post /v1/{project_id}/networks createNetwork
NetworkRestControllerApi DeleteNetworkUsingDELETE Delete /v1/{project_id}/networks deleteNetwork
NetworkRestControllerApi EditNetworkUsingPUT Put /v1/{project_id}/networks editNetwork
NetworkRestControllerApi GetNetworkUsingGET Get /v1/{project_id}/networks/{network_id} getNetwork
NetworkRestControllerApi ListNetworkUsingGET Get /v1/{project_id}/networks listNetwork
ProjectRestControllerApi GetProjectUsingGET Get /v1/projects/{project_id} getProject
ProjectRestControllerApi ListProjectUsingGET Get /v1/projects listProject
QuotaRestControllerApi InitUsedUsingPUT Put /v1/{project_id}/quota/init-used initUsed
QuotaRestControllerApi ListByUserUsingGET Get /v1/{project_id}/quota/user/{user_id} listByUser
QuotaRestControllerApi ListQuotaUsedUsingGET Get /v1/{project_id}/quote-used listQuotaUsed
QuotaRestControllerApi ListUsingGET Get /v1/{project_id}/quota list
QuotaRestControllerApi UpdateUsingPUT Put /v1/{project_id}/quota update
RouteTableControllerApi CreateRouteTableUsingPOST Post /v1/{project_id}/route-table Create route-table
RouteTableControllerApi DeleteRouteTableUsingDELETE Delete /v1/{project_id}/route-table/{uuid} Delete Route Table
RouteTableControllerApi DeleteRouteTablesUsingDELETE Delete /v1/{project_id}/route-table Delete all route-tables
RouteTableControllerApi GetRouteTableUsingGET Get /v1/{project_id}/route-table/{uuid} Get route-table by uuid
RouteTableControllerApi ListRouteTablesUsingGET Get /v1/{project_id}/route-table List route-tables
RouteTableControllerApi UpdateRouteTableRoutesUsingPUT Put /v1/{project_id}/route-table/{uuid}/routes Add/remove routes of route-table
RouteTableControllerApi UpdateRouteTableSubnetsUsingPUT Put /v1/{project_id}/route-table/{uuid}/subnets Add/remove subnets of route-table
SecgroupRestControllerApi CreateSecgroupUsingPOST Post /v1/{project_id}/secgroups createSecgroup
SecgroupRestControllerApi DeleteSecgroupUsingDELETE Delete /v1/{project_id}/secgroups deleteSecgroup
SecgroupRestControllerApi EditSecgroupUsingPUT Put /v1/{project_id}/secgroups editSecgroup
SecgroupRestControllerApi GetSecgroupUsingGET Get /v1/{project_id}/secgroups/{secgroup_id} getSecgroup
SecgroupRestControllerApi ListSecgroupByInstanceUsingGET Get /v1/{project_id}/secgroups/vm-ids/{vm_id} listSecgroupByInstance
SecgroupRestControllerApi ListSecgroupUsingGET Get /v1/{project_id}/secgroups listSecgroup
SecgroupRuleRestControllerApi CreateSecgroupRuleUsingPOST Post /v1/{project_id}/secgroup-rules createSecgroupRule
SecgroupRuleRestControllerApi DeleteSecgroupRuleUsingDELETE Delete /v1/{project_id}/secgroup-rules deleteSecgroupRule
SecgroupRuleRestControllerApi GetSecgroupRuleUsingGET Get /v1/{project_id}/secgroup-rules/{secgroup_rule_id} getSecgroupRule
SecgroupRuleRestControllerApi ListSecgroupRuleBySecgroupUsingGET Get /v1/{project_id}/secgroup-rules/secgroup-ids/{secgroup_id} listSecgroupRuleBySecgroup
ServerGroupRestControllerApi CreateServerGroupUsingPOST Post /v1/{project_id}/server-groups Create server group
ServerGroupRestControllerApi DeleteServerGroupUsingDELETE Delete /v1/{project_id}/server-groups Delete server group
ServerGroupRestControllerApi GetServerGroupUsingGET Get /v1/{project_id}/server-groups/{server_group_id} Get server group
ServerGroupRestControllerApi ListServerGroupPolicyUsingGET Get /v1/{project_id}/server-groups/policies List server group policy
ServerGroupRestControllerApi ListServerGroupUsingGET Get /v1/{project_id}/server-groups List server group
ServerGroupRestControllerApi UpdateServerGroupUsingPUT Put /v1/{project_id}/server-groups Update server group
ServerRestControllerApi CreateServerUsingPOST Post /v1/{project_id}/servers Create server
ServerRestControllerApi DeleteServerUsingDELETE Delete /v1/{project_id}/servers Delete Server
ServerRestControllerApi GetServerUsingGET Get /v1/{project_id}/servers/{server_id} Get server by id
ServerRestControllerApi ListServerUsingGET Get /v1/{project_id}/servers List server
ServerRestControllerApi RebootServerUsingPUT Put /v1/{project_id}/servers/reboot Reboot server
ServerRestControllerApi ResizeServerUsingPUT Put /v1/{project_id}/servers/resize Change flavor of server
ServerRestControllerApi StartServerUsingPUT Put /v1/{project_id}/servers/start Start server
ServerRestControllerApi StopServerUsingPUT Put /v1/{project_id}/servers/stop Stop server
ServerRestControllerApi UpdateSecGroupServerUsingPUT Put /v1/{project_id}/servers/update_sec_group Update SecGroups of server
SshKeyRestControllerApi CreateSSHKeyUsingPOST Post /v1/{project_id}/ssh_keys createSSHKey
SshKeyRestControllerApi DeleteSSHKeyUsingDELETE Delete /v1/{project_id}/ssh_keys deleteSSHKey
SshKeyRestControllerApi GetSSHKeyUsingGET Get /v1/{project_id}/ssh_keys/{ssh_key_id} getSSHKey
SshKeyRestControllerApi ImportSSHKeyUsingPOST Post /v1/{project_id}/ssh_keys/import importSSHKey
SshKeyRestControllerApi ListSSHKeyUsingGET Get /v1/{project_id}/ssh_keys listSSHKey
SubnetRestControllerApi CreateSubnetUsingPOST Post /v1/{project_id}/subnets createSubnet
SubnetRestControllerApi DeleteSubnetUsingDELETE Delete /v1/{project_id}/subnets deleteSubnet
SubnetRestControllerApi GetMpPublicInterfaceUsingGET Get /v1/{project_id}/subnets/mp-public-interfaces getMpPublicInterface
SubnetRestControllerApi GetSubnetUsingGET Get /v1/{project_id}/subnets/{subnet_id} getSubnet
SubnetRestControllerApi ListSubnetsByNetworkUsingGET Get /v1/{project_id}/subnets/networks/{network_id} listSubnetsByNetwork
VolumeRestControllerApi AttachVolumeUsingPUT Put /v1/{project_id}/volumes/attach Attach volume into the server
VolumeRestControllerApi CreateVolumeUsingPOST Post /v1/{project_id}/volumes Create volume
VolumeRestControllerApi DeleteVolumeUsingDELETE Delete /v1/{project_id}/volumes Delete volume
VolumeRestControllerApi DetachVolumeUsingPUT Put /v1/{project_id}/volumes/detach Detach volume into the server
VolumeRestControllerApi GetVolumeUsingGET Get /v1/{project_id}/volumes/{volume_id} Get volume by id
VolumeRestControllerApi ListVolumeUsingGET Get /v1/{project_id}/volumes List volume
VolumeRestControllerApi ResizeVolumeUsingPUT Put /v1/{project_id}/volumes/resize Resize volume
VolumeTypeRestControllerApi GetVolumeTypeUsingGET Get /v1/{project_id}/volume_types/{volume_type_id} getVolumeType
VolumeTypeRestControllerApi ListVolumeTypeUsingGET Get /v1/{project_id}/{volume_type_zone_id}/volume_types listVolumeType
VolumeTypeZoneRestControllerApi GetVolumeTypeZoneUsingGET Get /v1/{project_id}/volume_type_zones/{volume_type_zone_id} getVolumeTypeZone
VolumeTypeZoneRestControllerApi ListVolumeTypeZoneUsingGET Get /v1/{project_id}/volume_type_zones listVolumeTypeZone

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKey takes an APIKey as authentication for the request
	ContextAPIKey = contextKey("apikey")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

Types

type APIClient

type APIClient struct {
	FlavorRestControllerApi *FlavorRestControllerApiService

	FlavorZoneRestControllerApi *FlavorZoneRestControllerApiService

	ImageRestControllerApi *ImageRestControllerApiService

	NetworkAclRestControllerApi *NetworkAclRestControllerApiService

	NetworkRestControllerApi *NetworkRestControllerApiService

	ProjectRestControllerApi *ProjectRestControllerApiService

	QuotaRestControllerApi *QuotaRestControllerApiService

	RouteTableControllerApi *RouteTableControllerApiService

	SecgroupRestControllerApi *SecgroupRestControllerApiService

	SecgroupRuleRestControllerApi *SecgroupRuleRestControllerApiService

	ServerGroupRestControllerApi *ServerGroupRestControllerApiService

	ServerRestControllerApi *ServerRestControllerApiService

	SshKeyRestControllerApi *SshKeyRestControllerApiService

	SubnetRestControllerApi *SubnetRestControllerApiService

	VolumeRestControllerApi *VolumeRestControllerApiService

	VolumeTypeRestControllerApi *VolumeTypeRestControllerApiService

	VolumeTypeZoneRestControllerApi *VolumeTypeZoneRestControllerApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Api Documentation API v1.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) ChangeBasePath

func (c *APIClient) ChangeBasePath(path string)

Change base path to allow switching to mocks

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the swagger operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

type AclPolicyRule added in v0.0.9

type AclPolicyRule struct {
	Action                 string    `json:"action,omitempty"`
	CreatedAt              time.Time `json:"createdAt,omitempty"`
	InterfaceAclPolicyUuid string    `json:"interfaceAclPolicyUuid,omitempty"`
	Port                   string    `json:"port,omitempty"`
	Protocol               string    `json:"protocol,omitempty"`
	SeqNumber              string    `json:"seqNumber,omitempty"`
	Source                 string    `json:"source,omitempty"`
	Type_                  string    `json:"type,omitempty"`
	Uuid                   string    `json:"uuid,omitempty"`
}

type AttachVolumeRequest

type AttachVolumeRequest struct {
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Id of server
	ServerId string `json:"serverId"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
	// Id of volume
	VolumeId string `json:"volumeId"`
}

Attach Volume Request

type BaseResponse

type BaseResponse struct {
	ErrorCode int32       `json:"errorCode,omitempty"`
	ErrorMsg  string      `json:"errorMsg,omitempty"`
	Extra     interface{} `json:"extra,omitempty"`
	Success   bool        `json:"success,omitempty"`
}

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type ChangeSecGroupRequest

type ChangeSecGroupRequest struct {
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Id of the SecGroups
	SecurityGroup []string `json:"securityGroup,omitempty"`
	// Id of server
	ServerId string `json:"serverId"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
}

Update Server Request

type Configuration

type Configuration struct {
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	HTTPClient    *http.Client
}

func NewConfiguration

func NewConfiguration(BasePath string, HTTPClient *http.Client) *Configuration

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

type CreateNetworkAclRequest added in v0.0.9

type CreateNetworkAclRequest struct {
	// Name of The Network Acl table
	Name string `json:"name"`
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
	// Uuid of The VPC
	Vpc string `json:"vpc"`
}

type CreateNetworkRequest

type CreateNetworkRequest struct {
	// Subnet of Network (/16).
	Cidr  string      `json:"cidr"`
	Extra interface{} `json:"extra,omitempty"`
	// Name of the Network
	Name string `json:"name"`
	// Id of default route table.
	RouteTableDefaultId string `json:"routeTableDefaultId,omitempty"`
}

Create Network Request

type CreateRouteTableRequest added in v0.0.9

type CreateRouteTableRequest struct {
	// Name of The route table
	Name string `json:"name"`
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
	// Uuid of The VPC
	VpcUuid string `json:"vpcUuid"`
}

type CreateSecurityGroupRequest

type CreateSecurityGroupRequest struct {
	// description for secgroup.
	Description string      `json:"description,omitempty"`
	Extra       interface{} `json:"extra,omitempty"`
	// Name of the Secgroup
	Name string `json:"name"`
}

type CreateSecurityGroupRuleRequest

type CreateSecurityGroupRuleRequest struct {
	// description for secgoup rule.
	Description string `json:"description,omitempty"`
	// \"ingress\" or \"egress\"
	Direction string `json:"direction"`
	// \"IPV4\" or \"IPv6\"
	Ethertype string `json:"ethertype"`
	// upper bound of range port.
	PortRangeMax int32 `json:"portRangeMax"`
	// upper bound of range port.
	PortRangeMin int32 `json:"portRangeMin"`
	// \"TCP\", \"UDP\", \"ICMP\", ...
	Protocol string `json:"protocol"`
	// Ip Prefix of source/target.
	RemoteIpPrefix string `json:"remoteIpPrefix"`
	// Id of security group that rules are attached.
	SecurityGroupId string `json:"securityGroupId"`
}

type CreateServerGroupRequest

type CreateServerGroupRequest struct {
	// Description of server group
	Description string `json:"description,omitempty"`
	// Name of the server group
	Name string `json:"name"`
	// Policy id of server group
	PolicyId string `json:"policyId"`
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
}

Create Server Group Request

type CreateServerRequest

type CreateServerRequest struct {
	// Attach floating IP
	AttachFloating bool `json:"attachFloating,omitempty"`
	// Encryption volume
	EncryptionVolume bool `json:"encryptionVolume"`
	// Skip change password: false, else: true
	ExpirePassword bool `json:"expirePassword,omitempty"`
	// Id of the flavor
	FlavorId string `json:"flavorId"`
	// Id of the image
	ImageId string `json:"imageId"`
	// Name of the server
	Name string `json:"name"`
	// Id of the network
	NetworkId string `json:"networkId"`
	// Licence of OS
	OsLicence bool `json:"osLicence,omitempty"`
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Type encryption of boot volume
	RootDiskEncryptionType string `json:"rootDiskEncryptionType,omitempty"`
	// Size of boot volume
	RootDiskSize int32 `json:"rootDiskSize"`
	// Id of boot volume type
	RootDiskTypeId string `json:"rootDiskTypeId"`
	// Id of the SecGroups
	SecurityGroup []string `json:"securityGroup,omitempty"`
	// Server group id
	ServerGroupId string `json:"serverGroupId,omitempty"`
	SourceType    string `json:"sourceType,omitempty"`
	// Id of SSH key
	SshKeyId string `json:"sshKeyId,omitempty"`
	// Id of the subnet
	SubnetId string `json:"subnetId"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
	// name of user
	UserName string `json:"userName,omitempty"`
	// password of user
	UserPassword string `json:"userPassword,omitempty"`
}

Create Server Request

type CreateSshKeyRequest

type CreateSshKeyRequest struct {
	Name string `json:"name,omitempty"`
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
}

type CreateSubnetRequest

type CreateSubnetRequest struct {
	// CIDR of Subnet, must be contained in its network.
	Cidr  string      `json:"cidr"`
	Extra interface{} `json:"extra,omitempty"`
	// Name of the Subnet
	Name string `json:"name"`
	// Id of Network.
	NetworkId string `json:"networkId"`
}

type CreateVolumeRequest

type CreateVolumeRequest struct {
	// Type encryption of volume
	EncryptionType string `json:"encryptionType,omitempty"`
	// Id of image
	ImageId string `json:"imageId,omitempty"`
	// Name of the server
	Name string `json:"name"`
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Size of volume
	Size int32 `json:"size"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
	// Id of volume type
	VolumeTypeId string `json:"volumeTypeId"`
}

Create Volume Request

type DeleteNetworkRequest

type DeleteNetworkRequest struct {
	Extra interface{} `json:"extra,omitempty"`
	// Id of Network to be deleted.
	NetworkId string `json:"networkId"`
}

type DeleteSecurityGroupRequest

type DeleteSecurityGroupRequest struct {
	Extra interface{} `json:"extra,omitempty"`
	// Id of Secgroup to be deleted.
	SecgroupId string `json:"secgroupId"`
}

type DeleteSecurityGroupRuleRequest

type DeleteSecurityGroupRuleRequest struct {
	Extra interface{} `json:"extra,omitempty"`
	// Id of Secgroup rule to be deleted.
	SecgroupRuleId string `json:"secgroupRuleId"`
}

type DeleteServerGroupRequest added in v0.0.9

type DeleteServerGroupRequest struct {
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Id of the server group
	ServerGroupId string `json:"serverGroupId"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
}

Delete Server Group Request

type DeleteServerRequest

type DeleteServerRequest struct {
	// Skip step move into the trash
	ForceDelete bool `json:"forceDelete,omitempty"`
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Id of server
	ServerId string `json:"serverId"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
}

Delete Server Request

type DeleteSubnetRequest

type DeleteSubnetRequest struct {
	Extra interface{} `json:"extra,omitempty"`
	// Id of Network to be deleted.
	NetworkId string `json:"networkId"`
	// Id of Subnet to be deleted.
	SubnetId string `json:"subnetId"`
}

type DeleteVolumeRequest

type DeleteVolumeRequest struct {
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
	// Id of volume
	VolumeId string `json:"volumeId"`
}

Delete Volume Request

type DetachVolumeRequest

type DetachVolumeRequest struct {
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Id of server
	ServerId string `json:"serverId"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
	// Id of volume
	VolumeId string `json:"volumeId"`
}

Detach Volume Request

type EditSecurityGroupRequest

type EditSecurityGroupRequest struct {
	Description string      `json:"description,omitempty"`
	Extra       interface{} `json:"extra,omitempty"`
	Name        string      `json:"name,omitempty"`
	// Id of Secgroup to be deleted.
	SecgroupId string `json:"secgroupId"`
}

type ElasticIpEntity

type ElasticIpEntity struct {
	AllocationType            string                     `json:"allocationType,omitempty"`
	CreatedAt                 time.Time                  `json:"createdAt,omitempty"`
	DeletedAt                 time.Time                  `json:"deletedAt,omitempty"`
	DisplayCreatedAt          string                     `json:"displayCreatedAt,omitempty"`
	ElasticIpPackage          int32                      `json:"elasticIpPackage,omitempty"`
	Id                        int32                      `json:"id,omitempty"`
	InterfaceNetworkInterface *InterfaceNetworkInterface `json:"interfaceNetworkInterface,omitempty"`
	InterfacePublicIp         *InterfacePublicIp         `json:"interfacePublicIp,omitempty"`
	InterfacePublicSubnet     *InterfacePublicSubnet     `json:"interfacePublicSubnet,omitempty"`
	Name                      string                     `json:"name,omitempty"`
	ProjectId                 string                     `json:"projectId,omitempty"`
	Status                    string                     `json:"status,omitempty"`
	TargetId                  string                     `json:"targetId,omitempty"`
	UpdatedAt                 time.Time                  `json:"updatedAt,omitempty"`
	UsageType                 string                     `json:"usageType,omitempty"`
	UserService               *UserService               `json:"userService,omitempty"`
	Uuid                      string                     `json:"uuid,omitempty"`
	VpcId                     string                     `json:"vpcId,omitempty"`
	VpcName                   string                     `json:"vpcName,omitempty"`
}

type Flavor

type Flavor struct {
	Bandwidth     int32  `json:"bandwidth,omitempty"`
	BandwidthUnit string `json:"bandwidthUnit,omitempty"`
	Cpu           int32  `json:"cpu,omitempty"`
	FlavorId      string `json:"flavorId,omitempty"`
	Gpu           int32  `json:"gpu,omitempty"`
	Memory        int32  `json:"memory,omitempty"`
	Name          string `json:"name,omitempty"`
	ZoneId        string `json:"zoneId,omitempty"`
}

type FlavorResponse

type FlavorResponse struct {
	ErrorCode int32       `json:"errorCode,omitempty"`
	ErrorMsg  string      `json:"errorMsg,omitempty"`
	Extra     interface{} `json:"extra,omitempty"`
	Flavors   []Flavor    `json:"flavors,omitempty"`
	Success   bool        `json:"success,omitempty"`
}

type FlavorRestControllerApiService

type FlavorRestControllerApiService service

func (*FlavorRestControllerApiService) GetFlavorUsingGET

func (a *FlavorRestControllerApiService) GetFlavorUsingGET(ctx context.Context, flavorId string, projectId string) (FlavorResponse, *http.Response, error)

FlavorRestControllerApiService getFlavor

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param flavorId flavor_id
  • @param projectId project_id

@return FlavorResponse

func (*FlavorRestControllerApiService) ListFlavorUsingGET

func (a *FlavorRestControllerApiService) ListFlavorUsingGET(ctx context.Context, flavorZoneId string, projectId string) (FlavorResponse, *http.Response, error)

FlavorRestControllerApiService listFlavor

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param flavorZoneId flavor_zone_id
  • @param projectId project_id

@return FlavorResponse

type FlavorZone

type FlavorZone struct {
	Id   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type FlavorZoneResponse

type FlavorZoneResponse struct {
	ErrorCode   int32        `json:"errorCode,omitempty"`
	ErrorMsg    string       `json:"errorMsg,omitempty"`
	Extra       interface{}  `json:"extra,omitempty"`
	FlavorZones []FlavorZone `json:"flavorZones,omitempty"`
	Success     bool         `json:"success,omitempty"`
}

type FlavorZoneRestControllerApiService

type FlavorZoneRestControllerApiService service

func (*FlavorZoneRestControllerApiService) GetFlavorZoneUsingGET

func (a *FlavorZoneRestControllerApiService) GetFlavorZoneUsingGET(ctx context.Context, flavorZoneId string, projectId string) (FlavorZoneResponse, *http.Response, error)

FlavorZoneRestControllerApiService getFlavorZone

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param flavorZoneId flavor_zone_id
  • @param projectId project_id

@return FlavorZoneResponse

func (*FlavorZoneRestControllerApiService) ListFlavorZoneUsingGET

func (a *FlavorZoneRestControllerApiService) ListFlavorZoneUsingGET(ctx context.Context, projectId string) (FlavorZoneResponse, *http.Response, error)

FlavorZoneRestControllerApiService listFlavorZone

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id

@return FlavorZoneResponse

type GenericSwaggerError

type GenericSwaggerError struct {
	// contains filtered or unexported fields
}

GenericSwaggerError Provides access to the body, error and model on returned errors.

func (GenericSwaggerError) Body

func (e GenericSwaggerError) Body() []byte

Body returns the raw bytes of the response

func (GenericSwaggerError) Error

func (e GenericSwaggerError) Error() string

Error returns non-empty string if there was an error.

func (GenericSwaggerError) Model

func (e GenericSwaggerError) Model() interface{}

Model returns the unpacked model of the error

type ImageRestControllerApiService

type ImageRestControllerApiService service

func (*ImageRestControllerApiService) ListOSImageUsingGET

func (a *ImageRestControllerApiService) ListOSImageUsingGET(ctx context.Context, projectId string) (OsImageBaseResponse, *http.Response, error)

ImageRestControllerApiService listOSImage

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id

@return OsImageBaseResponse

type ImportSshKeyRequest

type ImportSshKeyRequest struct {
	Name string `json:"name,omitempty"`
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	PubKey    string `json:"pubKey,omitempty"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
}

type InterfaceNetworkInterface

type InterfaceNetworkInterface struct {
	CreatedAt     time.Time `json:"createdAt,omitempty"`
	FixedIp       string    `json:"fixedIp,omitempty"`
	FloatingIp    string    `json:"floatingIp,omitempty"`
	InterfaceType string    `json:"interfaceType,omitempty"`
	Mac           string    `json:"mac,omitempty"`
	NetworkUuid   string    `json:"networkUuid,omitempty"`
	PortUuid      string    `json:"portUuid,omitempty"`
	Product       string    `json:"product,omitempty"`
	ServerUuid    string    `json:"serverUuid,omitempty"`
	Status        string    `json:"status,omitempty"`
	SubnetUuid    string    `json:"subnetUuid,omitempty"`
	Type_         string    `json:"type,omitempty"`
	UpdatedAt     time.Time `json:"updatedAt,omitempty"`
	Uuid          string    `json:"uuid,omitempty"`
}

type InterfaceProjectQuota added in v0.0.9

type InterfaceProjectQuota struct {
	CreatedAt   time.Time `json:"createdAt,omitempty"`
	DeletedAt   time.Time `json:"deletedAt,omitempty"`
	Description string    `json:"description,omitempty"`
	Id          int32     `json:"id,omitempty"`
	ProjectId   string    `json:"projectId,omitempty"`
	Quota       string    `json:"quota,omitempty"`
	Type_       string    `json:"type,omitempty"`
	UpdatedAt   time.Time `json:"updatedAt,omitempty"`
	Used        string    `json:"used,omitempty"`
	Uuid        string    `json:"uuid,omitempty"`
}

type InterfaceProjectQuotaResponse added in v0.0.9

type InterfaceProjectQuotaResponse struct {
	ErrorCode             int32                  `json:"errorCode,omitempty"`
	ErrorMsg              string                 `json:"errorMsg,omitempty"`
	Extra                 interface{}            `json:"extra,omitempty"`
	InterfaceProjectQuota *InterfaceProjectQuota `json:"interfaceProjectQuota,omitempty"`
	Success               bool                   `json:"success,omitempty"`
}

type InterfacePublicIp

type InterfacePublicIp struct {
	BackendStatus string    `json:"backendStatus,omitempty"`
	CreatedAt     time.Time `json:"createdAt,omitempty"`
	DeletedAt     time.Time `json:"deletedAt,omitempty"`
	GatewayIp     string    `json:"gatewayIp,omitempty"`
	Id            int32     `json:"id,omitempty"`
	Ip            string    `json:"ip,omitempty"`
	ProjectId     string    `json:"projectId,omitempty"`
	Status        string    `json:"status,omitempty"`
	UpdatedAt     time.Time `json:"updatedAt,omitempty"`
	Uuid          string    `json:"uuid,omitempty"`
	VpcBackendId  int32     `json:"vpcBackendId,omitempty"`
}

type InterfacePublicSubnet

type InterfacePublicSubnet struct {
	BackendStatus   string    `json:"backendStatus,omitempty"`
	Cidr            string    `json:"cidr,omitempty"`
	CreatedAt       time.Time `json:"createdAt,omitempty"`
	DeletedAt       time.Time `json:"deletedAt,omitempty"`
	GatewayIp       string    `json:"gatewayIp,omitempty"`
	Id              int32     `json:"id,omitempty"`
	ProjectId       string    `json:"projectId,omitempty"`
	Status          string    `json:"status,omitempty"`
	SubnetBackendId int32     `json:"subnetBackendId,omitempty"`
	UpdatedAt       time.Time `json:"updatedAt,omitempty"`
	Uuid            string    `json:"uuid,omitempty"`
	VpcBackendId    int32     `json:"vpcBackendId,omitempty"`
}

type ListRouteTablesResponse added in v0.0.9

type ListRouteTablesResponse struct {
	ErrorCode   int32             `json:"errorCode,omitempty"`
	ErrorMsg    string            `json:"errorMsg,omitempty"`
	Extra       interface{}       `json:"extra,omitempty"`
	RouteTables []RouteTableModel `json:"routeTables,omitempty"`
	Success     bool              `json:"success,omitempty"`
}

type Network

type Network struct {
	Cidr              string            `json:"cidr,omitempty"`
	CreatedAt         time.Time         `json:"createdAt,omitempty"`
	DisplayCreatedAt  string            `json:"displayCreatedAt,omitempty"`
	ElasticIpEntities []ElasticIpEntity `json:"elasticIpEntities,omitempty"`
	Id                string            `json:"id,omitempty"`
	Name              string            `json:"name,omitempty"`
	Status            string            `json:"status,omitempty"`
	Subnets           []Subnet          `json:"subnets,omitempty"`
}

type NetworkAclListResponse added in v0.0.9

type NetworkAclListResponse struct {
	ErrorCode   int32             `json:"errorCode,omitempty"`
	ErrorMsg    string            `json:"errorMsg,omitempty"`
	Extra       interface{}       `json:"extra,omitempty"`
	NetworkAcls []NetworkAclModel `json:"networkAcls,omitempty"`
	Success     bool              `json:"success,omitempty"`
}

type NetworkAclModel added in v0.0.9

type NetworkAclModel struct {
	AclPolicyId           string          `json:"aclPolicyId,omitempty"`
	AclPolicyRules        []AclPolicyRule `json:"aclPolicyRules,omitempty"`
	CreatedAt             *Timestamp      `json:"createdAt,omitempty"`
	DefaultAcl            bool            `json:"defaultAcl,omitempty"`
	InterfaceNetworkUuid  string          `json:"interfaceNetworkUuid,omitempty"`
	Name                  string          `json:"name,omitempty"`
	ProjectUuid           string          `json:"projectUuid,omitempty"`
	Status                string          `json:"status,omitempty"`
	SubnetAssociationList []string        `json:"subnetAssociationList,omitempty"`
	Uuid                  string          `json:"uuid,omitempty"`
}

type NetworkAclResponse added in v0.0.9

type NetworkAclResponse struct {
	ErrorCode  int32            `json:"errorCode,omitempty"`
	ErrorMsg   string           `json:"errorMsg,omitempty"`
	Extra      interface{}      `json:"extra,omitempty"`
	NetworkAcl *NetworkAclModel `json:"networkAcl,omitempty"`
	Success    bool             `json:"success,omitempty"`
}

type NetworkAclRestControllerApiService added in v0.0.9

type NetworkAclRestControllerApiService service

func (*NetworkAclRestControllerApiService) CreateNetworkAclUsingPOST added in v0.0.9

func (a *NetworkAclRestControllerApiService) CreateNetworkAclUsingPOST(ctx context.Context, createNetworkAclRequest CreateNetworkAclRequest, projectId string) (NetworkAclResponse, *http.Response, error)

NetworkAclRestControllerApiService Create network-acl

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param createNetworkAclRequest createNetworkAclRequest
  • @param projectId The project id

@return NetworkAclResponse

func (*NetworkAclRestControllerApiService) DeleteNetworkAclUsingDELETE added in v0.0.9

func (a *NetworkAclRestControllerApiService) DeleteNetworkAclUsingDELETE(ctx context.Context, projectId string, uuid string) (BaseResponse, *http.Response, error)

NetworkAclRestControllerApiService Delete Network-acl

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param uuid The network-acl uuid

@return BaseResponse

func (*NetworkAclRestControllerApiService) GetNetworkAclUsingGET added in v0.0.9

func (a *NetworkAclRestControllerApiService) GetNetworkAclUsingGET(ctx context.Context, projectId string, uuid string) (NetworkAclResponse, *http.Response, error)

NetworkAclRestControllerApiService Get network-acl by uuid

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param uuid The network-acl uuid

@return NetworkAclResponse

func (*NetworkAclRestControllerApiService) ListNetworkAclUsingGET added in v0.0.9

func (a *NetworkAclRestControllerApiService) ListNetworkAclUsingGET(ctx context.Context, projectId string) (NetworkAclListResponse, *http.Response, error)

NetworkAclRestControllerApiService List network-acl

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id

@return NetworkAclListResponse

func (*NetworkAclRestControllerApiService) UpdateAssociatedSubnetsUsingPUT added in v0.0.9

func (a *NetworkAclRestControllerApiService) UpdateAssociatedSubnetsUsingPUT(ctx context.Context, projectId string, updateSubnetsRequest UpdateNetworkAclSubnetsRequest, uuid string) (NetworkAclResponse, *http.Response, error)

NetworkAclRestControllerApiService Update ACL Rule of Network-acl

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param updateSubnetsRequest updateSubnetsRequest
  • @param uuid The network-acl uuid

@return NetworkAclResponse

func (*NetworkAclRestControllerApiService) UpdateRulesUsingPUT added in v0.0.9

func (a *NetworkAclRestControllerApiService) UpdateRulesUsingPUT(ctx context.Context, projectId string, updateAclRulesRequest UpdateNetworkAclRulesRequest, uuid string) (NetworkAclResponse, *http.Response, error)

NetworkAclRestControllerApiService Update Inbound/Outbound Rules of Network-acl

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param updateAclRulesRequest updateAclRulesRequest
  • @param uuid The network-acl uuid

@return NetworkAclResponse

type NetworkResponse

type NetworkResponse struct {
	ErrorCode int32       `json:"errorCode,omitempty"`
	ErrorMsg  string      `json:"errorMsg,omitempty"`
	Extra     interface{} `json:"extra,omitempty"`
	Networks  []Network   `json:"networks,omitempty"`
	Success   bool        `json:"success,omitempty"`
}

type NetworkRestControllerApiService

type NetworkRestControllerApiService service

func (*NetworkRestControllerApiService) CreateNetworkUsingPOST

func (a *NetworkRestControllerApiService) CreateNetworkUsingPOST(ctx context.Context, createNetworkRequest CreateNetworkRequest, projectId string) (NetworkResponse, *http.Response, error)

NetworkRestControllerApiService createNetwork

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param createNetworkRequest createNetworkRequest
  • @param projectId project_id

@return NetworkResponse

func (*NetworkRestControllerApiService) DeleteNetworkUsingDELETE

func (a *NetworkRestControllerApiService) DeleteNetworkUsingDELETE(ctx context.Context, deleteNetworkRequest DeleteNetworkRequest, projectId string) (BaseResponse, *http.Response, error)

NetworkRestControllerApiService deleteNetwork

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param deleteNetworkRequest deleteNetworkRequest
  • @param projectId project_id

@return BaseResponse

func (*NetworkRestControllerApiService) EditNetworkUsingPUT

func (a *NetworkRestControllerApiService) EditNetworkUsingPUT(ctx context.Context, projectId string, updateNetworkRequest UpdateNetworkRequest) (NetworkResponse, *http.Response, error)

NetworkRestControllerApiService editNetwork

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id
  • @param updateNetworkRequest updateNetworkRequest

@return NetworkResponse

func (*NetworkRestControllerApiService) GetNetworkUsingGET

func (a *NetworkRestControllerApiService) GetNetworkUsingGET(ctx context.Context, networkId string, projectId string) (NetworkResponse, *http.Response, error)

NetworkRestControllerApiService getNetwork

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param networkId network_id
  • @param projectId project_id

@return NetworkResponse

func (*NetworkRestControllerApiService) ListNetworkUsingGET

func (a *NetworkRestControllerApiService) ListNetworkUsingGET(ctx context.Context, projectId string) (NetworkResponse, *http.Response, error)

NetworkRestControllerApiService listNetwork

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id

@return NetworkResponse

type OsImage

type OsImage struct {
	FlavorZoneIds []string `json:"flavorZoneIds,omitempty"`
	Id            string   `json:"id,omitempty"`
	ImageType     string   `json:"imageType,omitempty"`
	ImageVersion  string   `json:"imageVersion,omitempty"`
	Licence       bool     `json:"licence,omitempty"`
}

type OsImageBaseResponse

type OsImageBaseResponse struct {
	ErrorCode int32       `json:"errorCode,omitempty"`
	ErrorMsg  string      `json:"errorMsg,omitempty"`
	Extra     interface{} `json:"extra,omitempty"`
	Images    []OsImage   `json:"images,omitempty"`
	Success   bool        `json:"success,omitempty"`
}

type ProjectInfo added in v0.0.9

type ProjectInfo struct {
	ProjectId string `json:"projectId,omitempty"`
	UserId    int32  `json:"userId,omitempty"`
}

type ProjectResponse

type ProjectResponse struct {
	ErrorCode int32         `json:"errorCode,omitempty"`
	ErrorMsg  string        `json:"errorMsg,omitempty"`
	Extra     interface{}   `json:"extra,omitempty"`
	Projects  []ProjectInfo `json:"projects,omitempty"`
	Success   bool          `json:"success,omitempty"`
}

type ProjectRestControllerApiService

type ProjectRestControllerApiService service

func (*ProjectRestControllerApiService) GetProjectUsingGET added in v0.0.9

func (a *ProjectRestControllerApiService) GetProjectUsingGET(ctx context.Context, projectId string) (ProjectResponse, *http.Response, error)

ProjectRestControllerApiService getProject

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id

@return ProjectResponse

func (*ProjectRestControllerApiService) ListProjectUsingGET

ProjectRestControllerApiService listProject

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return ProjectResponse

type Quota added in v0.0.9

type Quota struct {
	Description string `json:"description,omitempty"`
	Limit       int64  `json:"limit,omitempty"`
	ProjectUuid string `json:"projectUuid,omitempty"`
	QuotaName   string `json:"quotaName,omitempty"`
	Type_       string `json:"type,omitempty"`
	Used        string `json:"used,omitempty"`
}

type QuotaResponse added in v0.0.9

type QuotaResponse struct {
	ErrorCode int32       `json:"errorCode,omitempty"`
	ErrorMsg  string      `json:"errorMsg,omitempty"`
	Extra     interface{} `json:"extra,omitempty"`
	Quotas    []Quota     `json:"quotas,omitempty"`
	Success   bool        `json:"success,omitempty"`
}

type QuotaRestControllerApiService added in v0.0.9

type QuotaRestControllerApiService service

func (*QuotaRestControllerApiService) InitUsedUsingPUT added in v0.0.9

QuotaRestControllerApiService initUsed

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id

@return InterfaceProjectQuotaResponse

func (*QuotaRestControllerApiService) ListByUserUsingGET added in v0.0.9

func (a *QuotaRestControllerApiService) ListByUserUsingGET(ctx context.Context, projectId string, userId int32) (InterfaceProjectQuotaResponse, *http.Response, error)

QuotaRestControllerApiService listByUser

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id
  • @param userId user_id

@return InterfaceProjectQuotaResponse

func (*QuotaRestControllerApiService) ListQuotaUsedUsingGET added in v0.0.9

func (a *QuotaRestControllerApiService) ListQuotaUsedUsingGET(ctx context.Context, projectId string) (QuotaResponse, *http.Response, error)

QuotaRestControllerApiService listQuotaUsed

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id

@return QuotaResponse

func (*QuotaRestControllerApiService) ListUsingGET added in v0.0.9

QuotaRestControllerApiService list

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id

@return InterfaceProjectQuotaResponse

func (*QuotaRestControllerApiService) UpdateUsingPUT added in v0.0.9

func (a *QuotaRestControllerApiService) UpdateUsingPUT(ctx context.Context, projectId string, updateQuotaVsgRequest UpdateQuotaVsgRequest) (InterfaceProjectQuotaResponse, *http.Response, error)

QuotaRestControllerApiService update

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id
  • @param updateQuotaVsgRequest updateQuotaVsgRequest

@return InterfaceProjectQuotaResponse

type ResizeServerRequest

type ResizeServerRequest struct {
	// Id of flavor
	FlavorId string `json:"flavorId"`
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Id of server
	ServerId string `json:"serverId"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
}

Resize Server Request

type ResizeVolumeRequest

type ResizeVolumeRequest struct {
	// New size of volume
	NewSize int32 `json:"newSize"`
	// Id of new volume type
	NewVolumeTypeId string `json:"newVolumeTypeId"`
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
	// Id of volume
	VolumeId string `json:"volumeId"`
}

Resize Volume Request

type RouteModel added in v0.0.9

type RouteModel struct {
	CreatedAt      time.Time `json:"createdAt,omitempty"`
	Destination    string    `json:"destination,omitempty"`
	RouteTableUuid string    `json:"routeTableUuid,omitempty"`
	RoutingType    string    `json:"routingType,omitempty"`
	Status         string    `json:"status,omitempty"`
	TargetUuid     string    `json:"targetUuid,omitempty"`
	UpdatedAt      time.Time `json:"updatedAt,omitempty"`
	Uuid           string    `json:"uuid,omitempty"`
}

type RouteTableControllerApiService added in v0.0.9

type RouteTableControllerApiService service

func (*RouteTableControllerApiService) CreateRouteTableUsingPOST added in v0.0.9

func (a *RouteTableControllerApiService) CreateRouteTableUsingPOST(ctx context.Context, createRouteTableRequest CreateRouteTableRequest, projectId string) (BaseResponse, *http.Response, error)

RouteTableControllerApiService Create route-table

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param createRouteTableRequest createRouteTableRequest
  • @param projectId The project id

@return BaseResponse

func (*RouteTableControllerApiService) DeleteRouteTableUsingDELETE added in v0.0.9

func (a *RouteTableControllerApiService) DeleteRouteTableUsingDELETE(ctx context.Context, projectId string, uuid string) (BaseResponse, *http.Response, error)

RouteTableControllerApiService Delete Route Table

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param uuid The route-table uuid

@return BaseResponse

func (*RouteTableControllerApiService) DeleteRouteTablesUsingDELETE added in v0.0.9

func (a *RouteTableControllerApiService) DeleteRouteTablesUsingDELETE(ctx context.Context, projectId string) (BaseResponse, *http.Response, error)

RouteTableControllerApiService Delete all route-tables

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id

@return BaseResponse

func (*RouteTableControllerApiService) GetRouteTableUsingGET added in v0.0.9

func (a *RouteTableControllerApiService) GetRouteTableUsingGET(ctx context.Context, projectId string, uuid string) (RouteTableResponse, *http.Response, error)

RouteTableControllerApiService Get route-table by uuid

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param uuid The route-table uuid

@return RouteTableResponse

func (*RouteTableControllerApiService) ListRouteTablesUsingGET added in v0.0.9

func (a *RouteTableControllerApiService) ListRouteTablesUsingGET(ctx context.Context, projectId string) (ListRouteTablesResponse, *http.Response, error)

RouteTableControllerApiService List route-tables

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id

@return ListRouteTablesResponse

func (*RouteTableControllerApiService) UpdateRouteTableRoutesUsingPUT added in v0.0.9

func (a *RouteTableControllerApiService) UpdateRouteTableRoutesUsingPUT(ctx context.Context, projectId string, updateRouteRequest RouteTableUpdateRouteRequest, uuid string) (RouteTableResponse, *http.Response, error)

RouteTableControllerApiService Add/remove routes of route-table

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param updateRouteRequest updateRouteRequest
  • @param uuid The route-table uuid

@return RouteTableResponse

func (*RouteTableControllerApiService) UpdateRouteTableSubnetsUsingPUT added in v0.0.9

func (a *RouteTableControllerApiService) UpdateRouteTableSubnetsUsingPUT(ctx context.Context, projectId string, updateSubnetRequest RouteTableUpdateSubnetRequest, uuid string) (RouteTableResponse, *http.Response, error)

RouteTableControllerApiService Add/remove subnets of route-table

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param updateSubnetRequest updateSubnetRequest
  • @param uuid The route-table uuid

@return RouteTableResponse

type RouteTableModel added in v0.0.9

type RouteTableModel struct {
	CreatedAt time.Time    `json:"createdAt,omitempty"`
	Name      string       `json:"name,omitempty"`
	Routes    []RouteModel `json:"routes,omitempty"`
	Status    string       `json:"status,omitempty"`
	Subnets   []Subnet     `json:"subnets,omitempty"`
	System    bool         `json:"system,omitempty"`
	Uuid      string       `json:"uuid,omitempty"`
	VpcUuid   string       `json:"vpcUuid,omitempty"`
}

type RouteTableResponse added in v0.0.9

type RouteTableResponse struct {
	ErrorCode  int32            `json:"errorCode,omitempty"`
	ErrorMsg   string           `json:"errorMsg,omitempty"`
	Extra      interface{}      `json:"extra,omitempty"`
	RouteTable *RouteTableModel `json:"routeTable,omitempty"`
	Success    bool             `json:"success,omitempty"`
}

type RouteTableUpdateRouteRequest added in v0.0.9

type RouteTableUpdateRouteRequest struct {
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// The updated routes list of route-table
	Routes []UpdatedRoute `json:"routes,omitempty"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
}

type RouteTableUpdateSubnetRequest added in v0.0.9

type RouteTableUpdateSubnetRequest struct {
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// The updated subnet uuid list of route-table
	Subnets []string `json:"subnets,omitempty"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
}

type SdnSshKeyDeleteRequest

type SdnSshKeyDeleteRequest struct {
	Id     string `json:"id,omitempty"`
	Name   string `json:"name,omitempty"`
	UserId int32  `json:"userId,omitempty"`
}

type Secgroup

type Secgroup struct {
	CreatedAt        time.Time `json:"createdAt,omitempty"`
	Description      string    `json:"description,omitempty"`
	DisplayCreatedAt string    `json:"displayCreatedAt,omitempty"`
	Id               string    `json:"id,omitempty"`
	Name             string    `json:"name,omitempty"`
	Status           string    `json:"status,omitempty"`
	System           bool      `json:"system,omitempty"`
}

type SecgroupResponse

type SecgroupResponse struct {
	ErrorCode int32       `json:"errorCode,omitempty"`
	ErrorMsg  string      `json:"errorMsg,omitempty"`
	Extra     interface{} `json:"extra,omitempty"`
	Secgroups []Secgroup  `json:"secgroups,omitempty"`
	Success   bool        `json:"success,omitempty"`
}

type SecgroupRestControllerApiService

type SecgroupRestControllerApiService service

func (*SecgroupRestControllerApiService) CreateSecgroupUsingPOST

func (a *SecgroupRestControllerApiService) CreateSecgroupUsingPOST(ctx context.Context, createSecurityGroupRequest CreateSecurityGroupRequest, projectId string) (SecgroupResponse, *http.Response, error)

SecgroupRestControllerApiService createSecgroup

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param createSecurityGroupRequest createSecurityGroupRequest
  • @param projectId project_id

@return SecgroupResponse

func (*SecgroupRestControllerApiService) DeleteSecgroupUsingDELETE

func (a *SecgroupRestControllerApiService) DeleteSecgroupUsingDELETE(ctx context.Context, deleteSecurityGroupRequest DeleteSecurityGroupRequest, projectId string) (BaseResponse, *http.Response, error)

SecgroupRestControllerApiService deleteSecgroup

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param deleteSecurityGroupRequest deleteSecurityGroupRequest
  • @param projectId project_id

@return BaseResponse

func (*SecgroupRestControllerApiService) EditSecgroupUsingPUT

func (a *SecgroupRestControllerApiService) EditSecgroupUsingPUT(ctx context.Context, editSecurityGroupRequest EditSecurityGroupRequest, projectId string) (SecgroupResponse, *http.Response, error)

SecgroupRestControllerApiService editSecgroup

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param editSecurityGroupRequest editSecurityGroupRequest
  • @param projectId project_id

@return SecgroupResponse

func (*SecgroupRestControllerApiService) GetSecgroupUsingGET

func (a *SecgroupRestControllerApiService) GetSecgroupUsingGET(ctx context.Context, projectId string, secgroupId string) (SecgroupResponse, *http.Response, error)

SecgroupRestControllerApiService getSecgroup

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id
  • @param secgroupId secgroup_id

@return SecgroupResponse

func (*SecgroupRestControllerApiService) ListSecgroupByInstanceUsingGET

func (a *SecgroupRestControllerApiService) ListSecgroupByInstanceUsingGET(ctx context.Context, projectId string, vmId string) (SecgroupResponse, *http.Response, error)

SecgroupRestControllerApiService listSecgroupByInstance

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id
  • @param vmId vm_id

@return SecgroupResponse

func (*SecgroupRestControllerApiService) ListSecgroupUsingGET

func (a *SecgroupRestControllerApiService) ListSecgroupUsingGET(ctx context.Context, projectId string) (SecgroupResponse, *http.Response, error)

SecgroupRestControllerApiService listSecgroup

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id

@return SecgroupResponse

type SecgroupRule

type SecgroupRule struct {
	CreatedAt        time.Time `json:"createdAt,omitempty"`
	Description      string    `json:"description,omitempty"`
	Direction        string    `json:"direction,omitempty"`
	DisplayCreatedAt string    `json:"displayCreatedAt,omitempty"`
	EtherType        string    `json:"etherType,omitempty"`
	Id               string    `json:"id,omitempty"`
	PortRangeMax     int32     `json:"portRangeMax,omitempty"`
	PortRangeMin     int32     `json:"portRangeMin,omitempty"`
	Protocol         string    `json:"protocol,omitempty"`
	RemoteGroupId    string    `json:"remoteGroupId,omitempty"`
	RemoteGroupName  string    `json:"remoteGroupName,omitempty"`
	RemoteIpPrefix   string    `json:"remoteIpPrefix,omitempty"`
	Status           string    `json:"status,omitempty"`
}

type SecgroupRuleResponse

type SecgroupRuleResponse struct {
	ErrorCode     int32          `json:"errorCode,omitempty"`
	ErrorMsg      string         `json:"errorMsg,omitempty"`
	Extra         interface{}    `json:"extra,omitempty"`
	SecgroupRules []SecgroupRule `json:"secgroupRules,omitempty"`
	Success       bool           `json:"success,omitempty"`
}

type SecgroupRuleRestControllerApiService

type SecgroupRuleRestControllerApiService service

func (*SecgroupRuleRestControllerApiService) CreateSecgroupRuleUsingPOST

func (a *SecgroupRuleRestControllerApiService) CreateSecgroupRuleUsingPOST(ctx context.Context, createSecurityGroupRuleRequest CreateSecurityGroupRuleRequest, projectId string) (SecgroupRuleResponse, *http.Response, error)

SecgroupRuleRestControllerApiService createSecgroupRule

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param createSecurityGroupRuleRequest createSecurityGroupRuleRequest
  • @param projectId project_id

@return SecgroupRuleResponse

func (*SecgroupRuleRestControllerApiService) DeleteSecgroupRuleUsingDELETE

func (a *SecgroupRuleRestControllerApiService) DeleteSecgroupRuleUsingDELETE(ctx context.Context, deleteSecurityGroupRuleRequest DeleteSecurityGroupRuleRequest, projectId string) (BaseResponse, *http.Response, error)

SecgroupRuleRestControllerApiService deleteSecgroupRule

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param deleteSecurityGroupRuleRequest deleteSecurityGroupRuleRequest
  • @param projectId project_id

@return BaseResponse

func (*SecgroupRuleRestControllerApiService) GetSecgroupRuleUsingGET

func (a *SecgroupRuleRestControllerApiService) GetSecgroupRuleUsingGET(ctx context.Context, projectId string, secgroupRuleId string) (SecgroupRuleResponse, *http.Response, error)

SecgroupRuleRestControllerApiService getSecgroupRule

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id
  • @param secgroupRuleId secgroup_rule_id

@return SecgroupRuleResponse

func (*SecgroupRuleRestControllerApiService) ListSecgroupRuleBySecgroupUsingGET

func (a *SecgroupRuleRestControllerApiService) ListSecgroupRuleBySecgroupUsingGET(ctx context.Context, projectId string, secgroupId string) (SecgroupRuleResponse, *http.Response, error)

SecgroupRuleRestControllerApiService listSecgroupRuleBySecgroup

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id
  • @param secgroupId secgroup_id

@return SecgroupRuleResponse

type Server

type Server struct {
	CreatedAt          time.Time                   `json:"createdAt,omitempty"`
	EncryptionVolume   bool                        `json:"encryptionVolume,omitempty"`
	ExternalInterfaces []InterfaceNetworkInterface `json:"externalInterfaces,omitempty"`
	FlavorId           string                      `json:"flavorId,omitempty"`
	ImageId            string                      `json:"imageId,omitempty"`
	InternalInterfaces []InterfaceNetworkInterface `json:"internalInterfaces,omitempty"`
	Licence            bool                        `json:"licence,omitempty"`
	Name               string                      `json:"name,omitempty"`
	OsInfo             string                      `json:"osInfo,omitempty"`
	ServerGroupId      string                      `json:"serverGroupId,omitempty"`
	SshKeyName         string                      `json:"sshKeyName,omitempty"`
	Status             string                      `json:"status,omitempty"`
	Uuid               string                      `json:"uuid,omitempty"`
}

type ServerGroup

type ServerGroup struct {
	CreatedAt   time.Time `json:"createdAt,omitempty"`
	Description string    `json:"description,omitempty"`
	Name        string    `json:"name,omitempty"`
	PolicyId    string    `json:"policyId,omitempty"`
	ProjectId   string    `json:"projectId,omitempty"`
	UpdatedAt   time.Time `json:"updatedAt,omitempty"`
	Uuid        string    `json:"uuid,omitempty"`
}

type ServerGroupPolicy added in v0.0.9

type ServerGroupPolicy struct {
	Description string `json:"description,omitempty"`
	Name        string `json:"name,omitempty"`
	Status      string `json:"status,omitempty"`
	Uuid        string `json:"uuid,omitempty"`
}

type ServerGroupPolicyResponse added in v0.0.9

type ServerGroupPolicyResponse struct {
	ErrorCode           int32               `json:"errorCode,omitempty"`
	ErrorMsg            string              `json:"errorMsg,omitempty"`
	Extra               interface{}         `json:"extra,omitempty"`
	ServerGroupPolicies []ServerGroupPolicy `json:"serverGroupPolicies,omitempty"`
	Success             bool                `json:"success,omitempty"`
}

type ServerGroupResponse

type ServerGroupResponse struct {
	ErrorCode    int32         `json:"errorCode,omitempty"`
	ErrorMsg     string        `json:"errorMsg,omitempty"`
	Extra        interface{}   `json:"extra,omitempty"`
	ServerGroups []ServerGroup `json:"serverGroups,omitempty"`
	Success      bool          `json:"success,omitempty"`
}

type ServerGroupRestControllerApiService

type ServerGroupRestControllerApiService service

func (*ServerGroupRestControllerApiService) CreateServerGroupUsingPOST

func (a *ServerGroupRestControllerApiService) CreateServerGroupUsingPOST(ctx context.Context, createServerGroupRequest CreateServerGroupRequest, projectId string) (ServerGroupResponse, *http.Response, error)

ServerGroupRestControllerApiService Create server group

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param createServerGroupRequest createServerGroupRequest
  • @param projectId The project id

@return ServerGroupResponse

func (*ServerGroupRestControllerApiService) DeleteServerGroupUsingDELETE

func (a *ServerGroupRestControllerApiService) DeleteServerGroupUsingDELETE(ctx context.Context, deleteServerRequest DeleteServerGroupRequest, projectId string) (ServerGroupResponse, *http.Response, error)

ServerGroupRestControllerApiService Delete server group

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param deleteServerRequest deleteServerRequest
  • @param projectId The project id

@return ServerGroupResponse

func (*ServerGroupRestControllerApiService) GetServerGroupUsingGET added in v0.0.9

func (a *ServerGroupRestControllerApiService) GetServerGroupUsingGET(ctx context.Context, projectId string, serverGroupId string) (ServerGroupResponse, *http.Response, error)

ServerGroupRestControllerApiService Get server group

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param serverGroupId The server group id

@return ServerGroupResponse

func (*ServerGroupRestControllerApiService) ListServerGroupPolicyUsingGET added in v0.0.9

func (a *ServerGroupRestControllerApiService) ListServerGroupPolicyUsingGET(ctx context.Context, projectId string) (ServerGroupPolicyResponse, *http.Response, error)

ServerGroupRestControllerApiService List server group policy

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id

@return ServerGroupPolicyResponse

func (*ServerGroupRestControllerApiService) ListServerGroupUsingGET

func (a *ServerGroupRestControllerApiService) ListServerGroupUsingGET(ctx context.Context, projectId string) (ServerGroupResponse, *http.Response, error)

ServerGroupRestControllerApiService List server group

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id

@return ServerGroupResponse

func (*ServerGroupRestControllerApiService) UpdateServerGroupUsingPUT added in v0.0.9

func (a *ServerGroupRestControllerApiService) UpdateServerGroupUsingPUT(ctx context.Context, projectId string, updateServerGroupRequest UpdateServerGroupRequest) (ServerGroupResponse, *http.Response, error)

ServerGroupRestControllerApiService Update server group

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param updateServerGroupRequest updateServerGroupRequest

@return ServerGroupResponse

type ServerResponse

type ServerResponse struct {
	ErrorCode int32       `json:"errorCode,omitempty"`
	ErrorMsg  string      `json:"errorMsg,omitempty"`
	Extra     interface{} `json:"extra,omitempty"`
	Servers   []Server    `json:"servers,omitempty"`
	Success   bool        `json:"success,omitempty"`
}

type ServerRestControllerApiService

type ServerRestControllerApiService service

func (*ServerRestControllerApiService) CreateServerUsingPOST

func (a *ServerRestControllerApiService) CreateServerUsingPOST(ctx context.Context, createServerRequest CreateServerRequest, projectId string) (ServerResponse, *http.Response, error)

ServerRestControllerApiService Create server

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param createServerRequest createServerRequest
  • @param projectId The project id

@return ServerResponse

func (*ServerRestControllerApiService) DeleteServerUsingDELETE

func (a *ServerRestControllerApiService) DeleteServerUsingDELETE(ctx context.Context, deleteServerRequest DeleteServerRequest, projectId string) (ServerResponse, *http.Response, error)

ServerRestControllerApiService Delete Server

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param deleteServerRequest deleteServerRequest
  • @param projectId The project id

@return ServerResponse

func (*ServerRestControllerApiService) GetServerUsingGET

func (a *ServerRestControllerApiService) GetServerUsingGET(ctx context.Context, projectId string, serverId string) (ServerResponse, *http.Response, error)

ServerRestControllerApiService Get server by id

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param serverId The server id

@return ServerResponse

func (*ServerRestControllerApiService) ListServerUsingGET

func (a *ServerRestControllerApiService) ListServerUsingGET(ctx context.Context, projectId string) (ServerResponse, *http.Response, error)

ServerRestControllerApiService List server

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id

@return ServerResponse

func (*ServerRestControllerApiService) RebootServerUsingPUT

func (a *ServerRestControllerApiService) RebootServerUsingPUT(ctx context.Context, projectId string, updateServerRequest UpdateServerRequest) (ServerResponse, *http.Response, error)

ServerRestControllerApiService Reboot server

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param updateServerRequest updateServerRequest

@return ServerResponse

func (*ServerRestControllerApiService) ResizeServerUsingPUT

func (a *ServerRestControllerApiService) ResizeServerUsingPUT(ctx context.Context, projectId string, resizeServerRequest ResizeServerRequest) (ServerResponse, *http.Response, error)

ServerRestControllerApiService Change flavor of server

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param resizeServerRequest resizeServerRequest

@return ServerResponse

func (*ServerRestControllerApiService) StartServerUsingPUT

func (a *ServerRestControllerApiService) StartServerUsingPUT(ctx context.Context, projectId string, updateServerRequest UpdateServerRequest) (ServerResponse, *http.Response, error)

ServerRestControllerApiService Start server

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param updateServerRequest updateServerRequest

@return ServerResponse

func (*ServerRestControllerApiService) StopServerUsingPUT

func (a *ServerRestControllerApiService) StopServerUsingPUT(ctx context.Context, projectId string, updateServerRequest UpdateServerRequest) (ServerResponse, *http.Response, error)

ServerRestControllerApiService Stop server

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param updateServerRequest updateServerRequest

@return ServerResponse

func (*ServerRestControllerApiService) UpdateSecGroupServerUsingPUT

func (a *ServerRestControllerApiService) UpdateSecGroupServerUsingPUT(ctx context.Context, changeSecGroupRequest ChangeSecGroupRequest, projectId string) (ServerResponse, *http.Response, error)

ServerRestControllerApiService Update SecGroups of server

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param changeSecGroupRequest changeSecGroupRequest
  • @param projectId The project id

@return ServerResponse

type SshKey

type SshKey struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`
	Id        string    `json:"id,omitempty"`
	Name      string    `json:"name,omitempty"`
	PubKey    string    `json:"pubKey,omitempty"`
	Status    string    `json:"status,omitempty"`
}

type SshKeyResponse

type SshKeyResponse struct {
	ErrorCode int32       `json:"errorCode,omitempty"`
	ErrorMsg  string      `json:"errorMsg,omitempty"`
	Extra     interface{} `json:"extra,omitempty"`
	SshKeys   []SshKey    `json:"sshKeys,omitempty"`
	Success   bool        `json:"success,omitempty"`
}

type SshKeyRestControllerApiService

type SshKeyRestControllerApiService service

func (*SshKeyRestControllerApiService) CreateSSHKeyUsingPOST

func (a *SshKeyRestControllerApiService) CreateSSHKeyUsingPOST(ctx context.Context, createSSHKeyRequest CreateSshKeyRequest, projectId string) (SshKeyResponse, *http.Response, error)

SshKeyRestControllerApiService createSSHKey

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param createSSHKeyRequest createSSHKeyRequest
  • @param projectId project_id

@return SshKeyResponse

func (*SshKeyRestControllerApiService) DeleteSSHKeyUsingDELETE

func (a *SshKeyRestControllerApiService) DeleteSSHKeyUsingDELETE(ctx context.Context, deleteRequest SdnSshKeyDeleteRequest, projectId string) (SshKeyResponse, *http.Response, error)

SshKeyRestControllerApiService deleteSSHKey

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param deleteRequest deleteRequest
  • @param projectId project_id

@return SshKeyResponse

func (*SshKeyRestControllerApiService) GetSSHKeyUsingGET

func (a *SshKeyRestControllerApiService) GetSSHKeyUsingGET(ctx context.Context, projectId string, sshKeyId string) (SshKeyResponse, *http.Response, error)

SshKeyRestControllerApiService getSSHKey

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id
  • @param sshKeyId ssh_key_id

@return SshKeyResponse

func (*SshKeyRestControllerApiService) ImportSSHKeyUsingPOST

func (a *SshKeyRestControllerApiService) ImportSSHKeyUsingPOST(ctx context.Context, importSSHKeyRequest ImportSshKeyRequest, projectId string) (SshKeyResponse, *http.Response, error)

SshKeyRestControllerApiService importSSHKey

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param importSSHKeyRequest importSSHKeyRequest
  • @param projectId project_id

@return SshKeyResponse

func (*SshKeyRestControllerApiService) ListSSHKeyUsingGET

func (a *SshKeyRestControllerApiService) ListSSHKeyUsingGET(ctx context.Context, projectId string) (SshKeyResponse, *http.Response, error)

SshKeyRestControllerApiService listSSHKey

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id

@return SshKeyResponse

type Subnet

type Subnet struct {
	Cidr                 string    `json:"cidr,omitempty"`
	CreatedAt            time.Time `json:"createdAt,omitempty"`
	DisplayCreatedAt     string    `json:"displayCreatedAt,omitempty"`
	InterfaceAclPolicyId string    `json:"interfaceAclPolicyId,omitempty"`
	Name                 string    `json:"name,omitempty"`
	NetworkId            string    `json:"networkId,omitempty"`
	RouteTableId         string    `json:"routeTableId,omitempty"`
	Status               string    `json:"status,omitempty"`
	SubnetId             int32     `json:"subnetId,omitempty"`
	UpdatedAt            time.Time `json:"updatedAt,omitempty"`
	Uuid                 string    `json:"uuid,omitempty"`
}

type SubnetResponse

type SubnetResponse struct {
	ErrorCode int32       `json:"errorCode,omitempty"`
	ErrorMsg  string      `json:"errorMsg,omitempty"`
	Extra     interface{} `json:"extra,omitempty"`
	Subnets   []Subnet    `json:"subnets,omitempty"`
	Success   bool        `json:"success,omitempty"`
}

type SubnetRestControllerApiService

type SubnetRestControllerApiService service

func (*SubnetRestControllerApiService) CreateSubnetUsingPOST

func (a *SubnetRestControllerApiService) CreateSubnetUsingPOST(ctx context.Context, createSubnetRequest CreateSubnetRequest, projectId string) (SubnetResponse, *http.Response, error)

SubnetRestControllerApiService createSubnet

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param createSubnetRequest createSubnetRequest
  • @param projectId project_id

@return SubnetResponse

func (*SubnetRestControllerApiService) DeleteSubnetUsingDELETE

func (a *SubnetRestControllerApiService) DeleteSubnetUsingDELETE(ctx context.Context, deleteSubnetRequest DeleteSubnetRequest, projectId string) (BaseResponse, *http.Response, error)

SubnetRestControllerApiService deleteSubnet

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param deleteSubnetRequest deleteSubnetRequest
  • @param projectId project_id

@return BaseResponse

func (*SubnetRestControllerApiService) GetMpPublicInterfaceUsingGET

func (a *SubnetRestControllerApiService) GetMpPublicInterfaceUsingGET(ctx context.Context, projectId string) (SubnetResponse, *http.Response, error)

SubnetRestControllerApiService getMpPublicInterface

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id

@return SubnetResponse

func (*SubnetRestControllerApiService) GetSubnetUsingGET

func (a *SubnetRestControllerApiService) GetSubnetUsingGET(ctx context.Context, projectId string, subnetId string) (SubnetResponse, *http.Response, error)

SubnetRestControllerApiService getSubnet

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id
  • @param subnetId subnet_id

@return SubnetResponse

func (*SubnetRestControllerApiService) ListSubnetsByNetworkUsingGET

func (a *SubnetRestControllerApiService) ListSubnetsByNetworkUsingGET(ctx context.Context, networkId string, projectId string) (SubnetResponse, *http.Response, error)

SubnetRestControllerApiService listSubnetsByNetwork

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param networkId network_id
  • @param projectId project_id

@return SubnetResponse

type Timestamp added in v0.0.9

type Timestamp struct {
	Date           int32 `json:"date,omitempty"`
	Day            int32 `json:"day,omitempty"`
	Hours          int32 `json:"hours,omitempty"`
	Minutes        int32 `json:"minutes,omitempty"`
	Month          int32 `json:"month,omitempty"`
	Nanos          int32 `json:"nanos,omitempty"`
	Seconds        int32 `json:"seconds,omitempty"`
	Time           int64 `json:"time,omitempty"`
	TimezoneOffset int32 `json:"timezoneOffset,omitempty"`
	Year           int32 `json:"year,omitempty"`
}

type UpdateNetworkAclRulesRequest added in v0.0.9

type UpdateNetworkAclRulesRequest struct {
	DetailAclRuleList []UpdatedAclPolicyRule `json:"detailAclRuleList,omitempty"`
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
}

type UpdateNetworkAclSubnetsRequest added in v0.0.9

type UpdateNetworkAclSubnetsRequest struct {
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// The updated subnets uuid list of network-acl
	SubnetUuids []string `json:"subnetUuids,omitempty"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
}

type UpdateNetworkRequest

type UpdateNetworkRequest struct {
	Extra     interface{} `json:"extra,omitempty"`
	Name      string      `json:"name,omitempty"`
	NetworkId string      `json:"networkId,omitempty"`
}

type UpdateQuota added in v0.0.9

type UpdateQuota struct {
	ProjectId int64                  `json:"projectId,omitempty"`
	Quota     map[string]interface{} `json:"quota,omitempty"`
}

type UpdateQuotaVsgRequest added in v0.0.9

type UpdateQuotaVsgRequest struct {
	// Id of project
	ProjectId          string       `json:"projectId,omitempty"`
	UpdateQuota        *UpdateQuota `json:"updateQuota,omitempty"`
	UpdateQuotaRequest *UpdateQuota `json:"updateQuotaRequest,omitempty"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
}

type UpdateServerGroupRequest added in v0.0.9

type UpdateServerGroupRequest struct {
	// Description of server group
	Description string `json:"description,omitempty"`
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Id of the server group
	ServerGroupId string `json:"serverGroupId"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
}

type UpdateServerRequest

type UpdateServerRequest struct {
	// Id of project
	ProjectId string `json:"projectId,omitempty"`
	// Id of server
	ServerId string `json:"serverId"`
	// Id of user
	UserId int32 `json:"userId,omitempty"`
}

Update Server Request

type UpdatedAclPolicyRule added in v0.0.9

type UpdatedAclPolicyRule struct {
	Action                 string `json:"action,omitempty"`
	InterfaceAclPolicyUuid string `json:"interfaceAclPolicyUuid,omitempty"`
	Port                   string `json:"port,omitempty"`
	Protocol               string `json:"protocol,omitempty"`
	SeqNumber              int32  `json:"seqNumber,omitempty"`
	Source                 string `json:"source,omitempty"`
	System                 bool   `json:"system,omitempty"`
	Type_                  string `json:"type,omitempty"`
}

type UpdatedRoute added in v0.0.9

type UpdatedRoute struct {
	Destination string `json:"destination,omitempty"`
	TargetUuid  string `json:"targetUuid,omitempty"`
	Type_       string `json:"type,omitempty"`
}

type UserService

type UserService struct {
	ArtifactId       string  `json:"artifactId,omitempty"`
	ArtifactName     string  `json:"artifactName,omitempty"`
	ArtifactType     string  `json:"artifactType,omitempty"`
	CreatedTime      int64   `json:"createdTime,omitempty"`
	CreatedTimeFmt   string  `json:"createdTimeFmt,omitempty"`
	EndBillingTime   int64   `json:"endBillingTime,omitempty"`
	EndTimeFmt       string  `json:"endTimeFmt,omitempty"`
	IsPoc            bool    `json:"isPoc,omitempty"`
	MonthlyCost      float64 `json:"monthlyCost,omitempty"`
	StartBillingTime int64   `json:"startBillingTime,omitempty"`
	StartTimeFmt     string  `json:"startTimeFmt,omitempty"`
	Trial            bool    `json:"trial,omitempty"`
	UserServiceId    int32   `json:"userServiceId,omitempty"`
}

type Volume

type Volume struct {
	Bootable       bool      `json:"bootable,omitempty"`
	CreatedAt      time.Time `json:"createdAt,omitempty"`
	EncryptionType string    `json:"encryptionType,omitempty"`
	Name           string    `json:"name,omitempty"`
	ProjectId      string    `json:"projectId,omitempty"`
	ServerId       string    `json:"serverId,omitempty"`
	Size           int32     `json:"size,omitempty"`
	Status         string    `json:"status,omitempty"`
	UpdatedAt      time.Time `json:"updatedAt,omitempty"`
	Uuid           string    `json:"uuid,omitempty"`
	VolumeTypeId   string    `json:"volumeTypeId,omitempty"`
}

type VolumeResponse

type VolumeResponse struct {
	ErrorCode int32       `json:"errorCode,omitempty"`
	ErrorMsg  string      `json:"errorMsg,omitempty"`
	Extra     interface{} `json:"extra,omitempty"`
	Success   bool        `json:"success,omitempty"`
	Volumes   []Volume    `json:"volumes,omitempty"`
}

type VolumeRestControllerApiService

type VolumeRestControllerApiService service

func (*VolumeRestControllerApiService) AttachVolumeUsingPUT

func (a *VolumeRestControllerApiService) AttachVolumeUsingPUT(ctx context.Context, attachVolumeRequest AttachVolumeRequest, projectId string) (VolumeResponse, *http.Response, error)

VolumeRestControllerApiService Attach volume into the server

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param attachVolumeRequest attachVolumeRequest
  • @param projectId The project id

@return VolumeResponse

func (*VolumeRestControllerApiService) CreateVolumeUsingPOST

func (a *VolumeRestControllerApiService) CreateVolumeUsingPOST(ctx context.Context, createVolumeRequest CreateVolumeRequest, projectId string) (VolumeResponse, *http.Response, error)

VolumeRestControllerApiService Create volume

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param createVolumeRequest createVolumeRequest
  • @param projectId The project id

@return VolumeResponse

func (*VolumeRestControllerApiService) DeleteVolumeUsingDELETE

func (a *VolumeRestControllerApiService) DeleteVolumeUsingDELETE(ctx context.Context, deleteVolumeRequest DeleteVolumeRequest, projectId string) (VolumeResponse, *http.Response, error)

VolumeRestControllerApiService Delete volume

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param deleteVolumeRequest deleteVolumeRequest
  • @param projectId The project id

@return VolumeResponse

func (*VolumeRestControllerApiService) DetachVolumeUsingPUT

func (a *VolumeRestControllerApiService) DetachVolumeUsingPUT(ctx context.Context, detachVolumeRequest DetachVolumeRequest, projectId string) (VolumeResponse, *http.Response, error)

VolumeRestControllerApiService Detach volume into the server

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param detachVolumeRequest detachVolumeRequest
  • @param projectId The project id

@return VolumeResponse

func (*VolumeRestControllerApiService) GetVolumeUsingGET

func (a *VolumeRestControllerApiService) GetVolumeUsingGET(ctx context.Context, projectId string, volumeId string) (VolumeResponse, *http.Response, error)

VolumeRestControllerApiService Get volume by id

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param volumeId The project id

@return VolumeResponse

func (*VolumeRestControllerApiService) ListVolumeUsingGET

func (a *VolumeRestControllerApiService) ListVolumeUsingGET(ctx context.Context, projectId string) (VolumeResponse, *http.Response, error)

VolumeRestControllerApiService List volume

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id

@return VolumeResponse

func (*VolumeRestControllerApiService) ResizeVolumeUsingPUT

func (a *VolumeRestControllerApiService) ResizeVolumeUsingPUT(ctx context.Context, projectId string, resizeVolumeRequest ResizeVolumeRequest) (VolumeResponse, *http.Response, error)

VolumeRestControllerApiService Resize volume

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId The project id
  • @param resizeVolumeRequest resizeVolumeRequest

@return VolumeResponse

type VolumeType

type VolumeType struct {
	Id         string `json:"id,omitempty"`
	Iops       int32  `json:"iops,omitempty"`
	MaxSize    int32  `json:"maxSize,omitempty"`
	MinSize    int32  `json:"minSize,omitempty"`
	Name       string `json:"name,omitempty"`
	ThroughPut int32  `json:"throughPut,omitempty"`
	ZoneId     string `json:"zoneId,omitempty"`
}

type VolumeTypeResponse

type VolumeTypeResponse struct {
	ErrorCode   int32        `json:"errorCode,omitempty"`
	ErrorMsg    string       `json:"errorMsg,omitempty"`
	Extra       interface{}  `json:"extra,omitempty"`
	Success     bool         `json:"success,omitempty"`
	VolumeTypes []VolumeType `json:"volumeTypes,omitempty"`
}

type VolumeTypeRestControllerApiService

type VolumeTypeRestControllerApiService service

func (*VolumeTypeRestControllerApiService) GetVolumeTypeUsingGET

func (a *VolumeTypeRestControllerApiService) GetVolumeTypeUsingGET(ctx context.Context, projectId string, volumeTypeId string) (VolumeTypeResponse, *http.Response, error)

VolumeTypeRestControllerApiService getVolumeType

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id
  • @param volumeTypeId volume_type_id

@return VolumeTypeResponse

func (*VolumeTypeRestControllerApiService) ListVolumeTypeUsingGET

func (a *VolumeTypeRestControllerApiService) ListVolumeTypeUsingGET(ctx context.Context, projectId string, volumeTypeZoneId string) (VolumeTypeResponse, *http.Response, error)

VolumeTypeRestControllerApiService listVolumeType

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id
  • @param volumeTypeZoneId volume_type_zone_id

@return VolumeTypeResponse

type VolumeTypeZone

type VolumeTypeZone struct {
	Id   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type VolumeTypeZoneResponse

type VolumeTypeZoneResponse struct {
	ErrorCode       int32            `json:"errorCode,omitempty"`
	ErrorMsg        string           `json:"errorMsg,omitempty"`
	Extra           interface{}      `json:"extra,omitempty"`
	Success         bool             `json:"success,omitempty"`
	VolumeTypeZones []VolumeTypeZone `json:"volumeTypeZones,omitempty"`
}

type VolumeTypeZoneRestControllerApiService

type VolumeTypeZoneRestControllerApiService service

func (*VolumeTypeZoneRestControllerApiService) GetVolumeTypeZoneUsingGET

func (a *VolumeTypeZoneRestControllerApiService) GetVolumeTypeZoneUsingGET(ctx context.Context, projectId string, volumeTypeZoneId string) (VolumeTypeZoneResponse, *http.Response, error)

VolumeTypeZoneRestControllerApiService getVolumeTypeZone

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id
  • @param volumeTypeZoneId volume_type_zone_id

@return VolumeTypeZoneResponse

func (*VolumeTypeZoneRestControllerApiService) ListVolumeTypeZoneUsingGET

func (a *VolumeTypeZoneRestControllerApiService) ListVolumeTypeZoneUsingGET(ctx context.Context, projectId string) (VolumeTypeZoneResponse, *http.Response, error)

VolumeTypeZoneRestControllerApiService listVolumeTypeZone

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id

@return VolumeTypeZoneResponse

Source Files

Jump to

Keyboard shortcuts

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