Documentation
¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type APIKey
- type APIResponse
- type AclPolicyRule
- type AttachVolumeRequest
- type BaseResponse
- type BasicAuth
- type ChangeSecGroupRequest
- type Configuration
- type CreateNetworkAclRequest
- type CreateNetworkRequest
- type CreateRouteTableRequest
- type CreateSecurityGroupRequest
- type CreateSecurityGroupRuleRequest
- type CreateServerGroupRequest
- type CreateServerRequest
- type CreateSshKeyRequest
- type CreateSubnetRequest
- type CreateVolumeRequest
- type DeleteNetworkRequest
- type DeleteSecurityGroupRequest
- type DeleteSecurityGroupRuleRequest
- type DeleteServerGroupRequest
- type DeleteServerRequest
- type DeleteSubnetRequest
- type DeleteVolumeRequest
- type DetachVolumeRequest
- type EditSecurityGroupRequest
- type ElasticIpEntity
- type Flavor
- type FlavorResponse
- type FlavorRestControllerApiService
- func (a *FlavorRestControllerApiService) GetFlavorUsingGET(ctx context.Context, flavorId string, projectId string) (FlavorResponse, *http.Response, error)
- func (a *FlavorRestControllerApiService) ListFlavorUsingGET(ctx context.Context, flavorZoneId string, projectId string) (FlavorResponse, *http.Response, error)
- type FlavorZone
- type FlavorZoneResponse
- type FlavorZoneRestControllerApiService
- func (a *FlavorZoneRestControllerApiService) GetFlavorZoneUsingGET(ctx context.Context, flavorZoneId string, projectId string) (FlavorZoneResponse, *http.Response, error)
- func (a *FlavorZoneRestControllerApiService) ListFlavorZoneUsingGET(ctx context.Context, projectId string) (FlavorZoneResponse, *http.Response, error)
- type GenericSwaggerError
- type ImageRestControllerApiService
- type ImportSshKeyRequest
- type InterfaceNetworkInterface
- type InterfaceProjectQuota
- type InterfaceProjectQuotaResponse
- type InterfacePublicIp
- type InterfacePublicSubnet
- type ListRouteTablesResponse
- type Network
- type NetworkAclListResponse
- type NetworkAclModel
- type NetworkAclResponse
- type NetworkAclRestControllerApiService
- func (a *NetworkAclRestControllerApiService) CreateNetworkAclUsingPOST(ctx context.Context, createNetworkAclRequest CreateNetworkAclRequest, ...) (NetworkAclResponse, *http.Response, error)
- func (a *NetworkAclRestControllerApiService) DeleteNetworkAclUsingDELETE(ctx context.Context, projectId string, uuid string) (BaseResponse, *http.Response, error)
- func (a *NetworkAclRestControllerApiService) GetNetworkAclUsingGET(ctx context.Context, projectId string, uuid string) (NetworkAclResponse, *http.Response, error)
- func (a *NetworkAclRestControllerApiService) ListNetworkAclUsingGET(ctx context.Context, projectId string) (NetworkAclListResponse, *http.Response, error)
- func (a *NetworkAclRestControllerApiService) UpdateAssociatedSubnetsUsingPUT(ctx context.Context, projectId string, ...) (NetworkAclResponse, *http.Response, error)
- func (a *NetworkAclRestControllerApiService) UpdateRulesUsingPUT(ctx context.Context, projectId string, ...) (NetworkAclResponse, *http.Response, error)
- type NetworkResponse
- type NetworkRestControllerApiService
- func (a *NetworkRestControllerApiService) CreateNetworkUsingPOST(ctx context.Context, createNetworkRequest CreateNetworkRequest, ...) (NetworkResponse, *http.Response, error)
- func (a *NetworkRestControllerApiService) DeleteNetworkUsingDELETE(ctx context.Context, deleteNetworkRequest DeleteNetworkRequest, ...) (BaseResponse, *http.Response, error)
- func (a *NetworkRestControllerApiService) EditNetworkUsingPUT(ctx context.Context, projectId string, ...) (NetworkResponse, *http.Response, error)
- func (a *NetworkRestControllerApiService) GetNetworkUsingGET(ctx context.Context, networkId string, projectId string) (NetworkResponse, *http.Response, error)
- func (a *NetworkRestControllerApiService) ListNetworkUsingGET(ctx context.Context, projectId string) (NetworkResponse, *http.Response, error)
- type OsImage
- type OsImageBaseResponse
- type ProjectInfo
- type ProjectResponse
- type ProjectRestControllerApiService
- type Quota
- type QuotaResponse
- type QuotaRestControllerApiService
- func (a *QuotaRestControllerApiService) InitUsedUsingPUT(ctx context.Context, projectId string) (InterfaceProjectQuotaResponse, *http.Response, error)
- func (a *QuotaRestControllerApiService) ListByUserUsingGET(ctx context.Context, projectId string, userId int32) (InterfaceProjectQuotaResponse, *http.Response, error)
- func (a *QuotaRestControllerApiService) ListQuotaUsedUsingGET(ctx context.Context, projectId string) (QuotaResponse, *http.Response, error)
- func (a *QuotaRestControllerApiService) ListUsingGET(ctx context.Context, projectId string) (InterfaceProjectQuotaResponse, *http.Response, error)
- func (a *QuotaRestControllerApiService) UpdateUsingPUT(ctx context.Context, projectId string, ...) (InterfaceProjectQuotaResponse, *http.Response, error)
- type ResizeServerRequest
- type ResizeVolumeRequest
- type RouteModel
- type RouteTableControllerApiService
- func (a *RouteTableControllerApiService) CreateRouteTableUsingPOST(ctx context.Context, createRouteTableRequest CreateRouteTableRequest, ...) (BaseResponse, *http.Response, error)
- func (a *RouteTableControllerApiService) DeleteRouteTableUsingDELETE(ctx context.Context, projectId string, uuid string) (BaseResponse, *http.Response, error)
- func (a *RouteTableControllerApiService) DeleteRouteTablesUsingDELETE(ctx context.Context, projectId string) (BaseResponse, *http.Response, error)
- func (a *RouteTableControllerApiService) GetRouteTableUsingGET(ctx context.Context, projectId string, uuid string) (RouteTableResponse, *http.Response, error)
- func (a *RouteTableControllerApiService) ListRouteTablesUsingGET(ctx context.Context, projectId string) (ListRouteTablesResponse, *http.Response, error)
- func (a *RouteTableControllerApiService) UpdateRouteTableRoutesUsingPUT(ctx context.Context, projectId string, ...) (RouteTableResponse, *http.Response, error)
- func (a *RouteTableControllerApiService) UpdateRouteTableSubnetsUsingPUT(ctx context.Context, projectId string, ...) (RouteTableResponse, *http.Response, error)
- type RouteTableModel
- type RouteTableResponse
- type RouteTableUpdateRouteRequest
- type RouteTableUpdateSubnetRequest
- type SdnSshKeyDeleteRequest
- type Secgroup
- type SecgroupResponse
- type SecgroupRestControllerApiService
- func (a *SecgroupRestControllerApiService) CreateSecgroupUsingPOST(ctx context.Context, createSecurityGroupRequest CreateSecurityGroupRequest, ...) (SecgroupResponse, *http.Response, error)
- func (a *SecgroupRestControllerApiService) DeleteSecgroupUsingDELETE(ctx context.Context, deleteSecurityGroupRequest DeleteSecurityGroupRequest, ...) (BaseResponse, *http.Response, error)
- func (a *SecgroupRestControllerApiService) EditSecgroupUsingPUT(ctx context.Context, editSecurityGroupRequest EditSecurityGroupRequest, ...) (SecgroupResponse, *http.Response, error)
- func (a *SecgroupRestControllerApiService) GetSecgroupUsingGET(ctx context.Context, projectId string, secgroupId string) (SecgroupResponse, *http.Response, error)
- func (a *SecgroupRestControllerApiService) ListSecgroupByInstanceUsingGET(ctx context.Context, projectId string, vmId string) (SecgroupResponse, *http.Response, error)
- func (a *SecgroupRestControllerApiService) ListSecgroupUsingGET(ctx context.Context, projectId string) (SecgroupResponse, *http.Response, error)
- type SecgroupRule
- type SecgroupRuleResponse
- type SecgroupRuleRestControllerApiService
- func (a *SecgroupRuleRestControllerApiService) CreateSecgroupRuleUsingPOST(ctx context.Context, ...) (SecgroupRuleResponse, *http.Response, error)
- func (a *SecgroupRuleRestControllerApiService) DeleteSecgroupRuleUsingDELETE(ctx context.Context, ...) (BaseResponse, *http.Response, error)
- func (a *SecgroupRuleRestControllerApiService) GetSecgroupRuleUsingGET(ctx context.Context, projectId string, secgroupRuleId string) (SecgroupRuleResponse, *http.Response, error)
- func (a *SecgroupRuleRestControllerApiService) ListSecgroupRuleBySecgroupUsingGET(ctx context.Context, projectId string, secgroupId string) (SecgroupRuleResponse, *http.Response, error)
- type Server
- type ServerGroup
- type ServerGroupPolicy
- type ServerGroupPolicyResponse
- type ServerGroupResponse
- type ServerGroupRestControllerApiService
- func (a *ServerGroupRestControllerApiService) CreateServerGroupUsingPOST(ctx context.Context, createServerGroupRequest CreateServerGroupRequest, ...) (ServerGroupResponse, *http.Response, error)
- func (a *ServerGroupRestControllerApiService) DeleteServerGroupUsingDELETE(ctx context.Context, deleteServerRequest DeleteServerGroupRequest, ...) (ServerGroupResponse, *http.Response, error)
- func (a *ServerGroupRestControllerApiService) GetServerGroupUsingGET(ctx context.Context, projectId string, serverGroupId string) (ServerGroupResponse, *http.Response, error)
- func (a *ServerGroupRestControllerApiService) ListServerGroupPolicyUsingGET(ctx context.Context, projectId string) (ServerGroupPolicyResponse, *http.Response, error)
- func (a *ServerGroupRestControllerApiService) ListServerGroupUsingGET(ctx context.Context, projectId string) (ServerGroupResponse, *http.Response, error)
- func (a *ServerGroupRestControllerApiService) UpdateServerGroupUsingPUT(ctx context.Context, projectId string, ...) (ServerGroupResponse, *http.Response, error)
- type ServerResponse
- type ServerRestControllerApiService
- func (a *ServerRestControllerApiService) CreateServerUsingPOST(ctx context.Context, createServerRequest CreateServerRequest, projectId string) (ServerResponse, *http.Response, error)
- func (a *ServerRestControllerApiService) DeleteServerUsingDELETE(ctx context.Context, deleteServerRequest DeleteServerRequest, projectId string) (ServerResponse, *http.Response, error)
- func (a *ServerRestControllerApiService) GetServerUsingGET(ctx context.Context, projectId string, serverId string) (ServerResponse, *http.Response, error)
- func (a *ServerRestControllerApiService) ListServerUsingGET(ctx context.Context, projectId string) (ServerResponse, *http.Response, error)
- func (a *ServerRestControllerApiService) RebootServerUsingPUT(ctx context.Context, projectId string, updateServerRequest UpdateServerRequest) (ServerResponse, *http.Response, error)
- func (a *ServerRestControllerApiService) ResizeServerUsingPUT(ctx context.Context, projectId string, resizeServerRequest ResizeServerRequest) (ServerResponse, *http.Response, error)
- func (a *ServerRestControllerApiService) StartServerUsingPUT(ctx context.Context, projectId string, updateServerRequest UpdateServerRequest) (ServerResponse, *http.Response, error)
- func (a *ServerRestControllerApiService) StopServerUsingPUT(ctx context.Context, projectId string, updateServerRequest UpdateServerRequest) (ServerResponse, *http.Response, error)
- func (a *ServerRestControllerApiService) UpdateSecGroupServerUsingPUT(ctx context.Context, changeSecGroupRequest ChangeSecGroupRequest, ...) (ServerResponse, *http.Response, error)
- type SshKey
- type SshKeyResponse
- type SshKeyRestControllerApiService
- func (a *SshKeyRestControllerApiService) CreateSSHKeyUsingPOST(ctx context.Context, createSSHKeyRequest CreateSshKeyRequest, projectId string) (SshKeyResponse, *http.Response, error)
- func (a *SshKeyRestControllerApiService) DeleteSSHKeyUsingDELETE(ctx context.Context, deleteRequest SdnSshKeyDeleteRequest, projectId string) (SshKeyResponse, *http.Response, error)
- func (a *SshKeyRestControllerApiService) GetSSHKeyUsingGET(ctx context.Context, projectId string, sshKeyId string) (SshKeyResponse, *http.Response, error)
- func (a *SshKeyRestControllerApiService) ImportSSHKeyUsingPOST(ctx context.Context, importSSHKeyRequest ImportSshKeyRequest, projectId string) (SshKeyResponse, *http.Response, error)
- func (a *SshKeyRestControllerApiService) ListSSHKeyUsingGET(ctx context.Context, projectId string) (SshKeyResponse, *http.Response, error)
- type Subnet
- type SubnetResponse
- type SubnetRestControllerApiService
- func (a *SubnetRestControllerApiService) CreateSubnetUsingPOST(ctx context.Context, createSubnetRequest CreateSubnetRequest, projectId string) (SubnetResponse, *http.Response, error)
- func (a *SubnetRestControllerApiService) DeleteSubnetUsingDELETE(ctx context.Context, deleteSubnetRequest DeleteSubnetRequest, projectId string) (BaseResponse, *http.Response, error)
- func (a *SubnetRestControllerApiService) GetMpPublicInterfaceUsingGET(ctx context.Context, projectId string) (SubnetResponse, *http.Response, error)
- func (a *SubnetRestControllerApiService) GetSubnetUsingGET(ctx context.Context, projectId string, subnetId string) (SubnetResponse, *http.Response, error)
- func (a *SubnetRestControllerApiService) ListSubnetsByNetworkUsingGET(ctx context.Context, networkId string, projectId string) (SubnetResponse, *http.Response, error)
- type Timestamp
- type UpdateNetworkAclRulesRequest
- type UpdateNetworkAclSubnetsRequest
- type UpdateNetworkRequest
- type UpdateQuota
- type UpdateQuotaVsgRequest
- type UpdateServerGroupRequest
- type UpdateServerRequest
- type UpdatedAclPolicyRule
- type UpdatedRoute
- type UserService
- type Volume
- type VolumeResponse
- type VolumeRestControllerApiService
- func (a *VolumeRestControllerApiService) AttachVolumeUsingPUT(ctx context.Context, attachVolumeRequest AttachVolumeRequest, projectId string) (VolumeResponse, *http.Response, error)
- func (a *VolumeRestControllerApiService) CreateVolumeUsingPOST(ctx context.Context, createVolumeRequest CreateVolumeRequest, projectId string) (VolumeResponse, *http.Response, error)
- func (a *VolumeRestControllerApiService) DeleteVolumeUsingDELETE(ctx context.Context, deleteVolumeRequest DeleteVolumeRequest, projectId string) (VolumeResponse, *http.Response, error)
- func (a *VolumeRestControllerApiService) DetachVolumeUsingPUT(ctx context.Context, detachVolumeRequest DetachVolumeRequest, projectId string) (VolumeResponse, *http.Response, error)
- func (a *VolumeRestControllerApiService) GetVolumeUsingGET(ctx context.Context, projectId string, volumeId string) (VolumeResponse, *http.Response, error)
- func (a *VolumeRestControllerApiService) ListVolumeUsingGET(ctx context.Context, projectId string) (VolumeResponse, *http.Response, error)
- func (a *VolumeRestControllerApiService) ResizeVolumeUsingPUT(ctx context.Context, projectId string, resizeVolumeRequest ResizeVolumeRequest) (VolumeResponse, *http.Response, error)
- type VolumeType
- type VolumeTypeResponse
- type VolumeTypeRestControllerApiService
- func (a *VolumeTypeRestControllerApiService) GetVolumeTypeUsingGET(ctx context.Context, projectId string, volumeTypeId string) (VolumeTypeResponse, *http.Response, error)
- func (a *VolumeTypeRestControllerApiService) ListVolumeTypeUsingGET(ctx context.Context, projectId string, volumeTypeZoneId string) (VolumeTypeResponse, *http.Response, error)
- type VolumeTypeZone
- type VolumeTypeZoneResponse
- type VolumeTypeZoneRestControllerApiService
- func (a *VolumeTypeZoneRestControllerApiService) GetVolumeTypeZoneUsingGET(ctx context.Context, projectId string, volumeTypeZoneId string) (VolumeTypeZoneResponse, *http.Response, error)
- func (a *VolumeTypeZoneRestControllerApiService) ListVolumeTypeZoneUsingGET(ctx context.Context, projectId string) (VolumeTypeZoneResponse, *http.Response, error)
Constants ¶
This section is empty.
Variables ¶
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 ¶
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 ¶
Change base path to allow switching to mocks
type APIKey ¶
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 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 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 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 CreateSubnetRequest ¶
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 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 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 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 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 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 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 OsImageBaseResponse ¶
type ProjectInfo ¶ added in v0.0.9
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 ¶
func (a *ProjectRestControllerApiService) ListProjectUsingGET(ctx context.Context) (ProjectResponse, *http.Response, error)
ProjectRestControllerApiService listProject
- @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ProjectResponse
type QuotaResponse ¶ added in v0.0.9
type QuotaRestControllerApiService ¶ added in v0.0.9
type QuotaRestControllerApiService service
func (*QuotaRestControllerApiService) InitUsedUsingPUT ¶ added in v0.0.9
func (a *QuotaRestControllerApiService) InitUsedUsingPUT(ctx context.Context, projectId string) (InterfaceProjectQuotaResponse, *http.Response, error)
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
func (a *QuotaRestControllerApiService) ListUsingGET(ctx context.Context, projectId string) (InterfaceProjectQuotaResponse, *http.Response, error)
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 SdnSshKeyDeleteRequest ¶
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 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 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 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 SshKeyResponse ¶
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 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 UpdateNetworkRequest ¶
type UpdateQuota ¶ added in v0.0.9
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 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 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 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 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
¶
- api_flavor_rest_controller.go
- api_flavor_zone_rest_controller.go
- api_image_rest_controller.go
- api_network_acl_rest_controller.go
- api_network_rest_controller.go
- api_project_rest_controller.go
- api_quota_rest_controller.go
- api_route_table_controller.go
- api_secgroup_rest_controller.go
- api_secgroup_rule_rest_controller.go
- api_server_group_rest_controller.go
- api_server_rest_controller.go
- api_ssh_key_rest_controller.go
- api_subnet_rest_controller.go
- api_volume_rest_controller.go
- api_volume_type_rest_controller.go
- api_volume_type_zone_rest_controller.go
- client.go
- configuration.go
- model_acl_policy_rule.go
- model_attach_volume_request.go
- model_base_response.go
- model_change_sec_group_request.go
- model_create_network_acl_request.go
- model_create_network_request.go
- model_create_route_table_request.go
- model_create_security_group_request.go
- model_create_security_group_rule_request.go
- model_create_server_group_request.go
- model_create_server_request.go
- model_create_ssh_key_request.go
- model_create_subnet_request.go
- model_create_volume_request.go
- model_delete_network_request.go
- model_delete_security_group_request.go
- model_delete_security_group_rule_request.go
- model_delete_server_group_request.go
- model_delete_server_request.go
- model_delete_subnet_request.go
- model_delete_volume_request.go
- model_detach_volume_request.go
- model_edit_security_group_request.go
- model_elastic_ip_entity.go
- model_flavor.go
- model_flavor_response.go
- model_flavor_zone.go
- model_flavor_zone_response.go
- model_import_ssh_key_request.go
- model_interface_network_interface.go
- model_interface_project_quota.go
- model_interface_project_quota_response.go
- model_interface_public_ip.go
- model_interface_public_subnet.go
- model_list_route_tables_response.go
- model_network.go
- model_network_acl_list_response.go
- model_network_acl_model.go
- model_network_acl_response.go
- model_network_response.go
- model_os_image.go
- model_os_image_base_response.go
- model_project_info.go
- model_project_response.go
- model_quota.go
- model_quota_response.go
- model_resize_server_request.go
- model_resize_volume_request.go
- model_route_model.go
- model_route_table_model.go
- model_route_table_response.go
- model_route_table_update_route_request.go
- model_route_table_update_subnet_request.go
- model_sdn_ssh_key_delete_request.go
- model_secgroup.go
- model_secgroup_response.go
- model_secgroup_rule.go
- model_secgroup_rule_response.go
- model_server.go
- model_server_group.go
- model_server_group_policy.go
- model_server_group_policy_response.go
- model_server_group_response.go
- model_server_response.go
- model_ssh_key.go
- model_ssh_key_response.go
- model_subnet.go
- model_subnet_response.go
- model_timestamp.go
- model_update_network_acl_rules_request.go
- model_update_network_acl_subnets_request.go
- model_update_network_request.go
- model_update_quota.go
- model_update_quota_vsg_request.go
- model_update_server_group_request.go
- model_update_server_request.go
- model_updated_acl_policy_rule.go
- model_updated_route.go
- model_user_service.go
- model_volume.go
- model_volume_response.go
- model_volume_type.go
- model_volume_type_response.go
- model_volume_type_zone.go
- model_volume_type_zone_response.go
- response.go