vserver

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MPL-2.0 Imports: 21 Imported by: 0

README ¶

Go API client for swagger

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.2
  • 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 "./swagger"

Documentation for API Endpoints

All URIs are relative to https://virtserver.swaggerhub.com/manhtu1997/vserver/1.0.2

Class Method HTTP request Description
AttachmentControllerApi ListAttachmentByServerUsingGET Get /v1/{project_id}/multiVolumeAttachment/server/{server_uuid} Get list attached instance of server
AttachmentControllerApi ListAttachmentUsingGET Get /v1/{project_id}/multiVolumeAttachment/{uuid} Get list attached instance of multi attach volume
BandwidthControllerApi ChangeTypeBandwidthUsingPUT Put /v1/{project_id}/bandwidth/change-type Change type bandwidth
BandwidthControllerApi CreateBandwidthUsingPOST Post /v1/{project_id}/bandwidth Create bandwidth
BandwidthControllerApi DeleteBandwidthUsingDELETE Delete /v1/{project_id}/bandwidth Delete bandwidth
BandwidthControllerApi GetBandwidthUsingGET Get /v1/{project_id}/bandwidth/{uuid} Get Bandwidth
BandwidthControllerApi ListAllTrafficUsingGET Get /v1/{project_id}/bandwidth/traffic List all traffic
BandwidthControllerApi ListBandwidthsUsingGET Get /v1/{project_id}/bandwidth List Bandwidths
BandwidthControllerApi ListPackagesUsingGET Get /v1/{project_id}/bandwidth/packages List Bandwidth Packages
BandwidthControllerApi ListResourceIpsUsingGET Get /v1/{project_id}/bandwidth/IP List resource IPs
BandwidthControllerApi RecoverBandwidthUsingPUT Put /v1/{project_id}/bandwidth/recover Recover bandwidth
BandwidthControllerApi RenewBandwidthUsingPUT Put /v1/{project_id}/bandwidth/renew Renew bandwidth
ElasticIpRestControllerV2Api ListElasticIpUsingGET Get /v2/{projectId}/elastic-ips List elastic-ip
FlavorRestControllerApi GetFlavorUsingGET Get /v1/{project_id}/flavors/{flavor_id} getFlavor
FlavorRestControllerApi ListFlavorByFamilyAndPlatformUsingGET Get /v1/{project_id}/flavors/families/{familyKey}/platforms/{platformKey} List flavor custom for project
FlavorRestControllerApi ListFlavorCustomUsingGET Get /v1/{project_id}/flavors/customs List flavor custom for project
FlavorRestControllerApi ListFlavorForSimpleServerUsingGET Get /v1/{project_id}/flavors/simple-servers List flavor for simple server
FlavorRestControllerApi ListFlavorUsingGET Get /v1/{project_id}/{flavor_zone_id}/flavors listFlavor
FlavorZoneRestControllerApi GetFlavorZoneUsingGET Get /v1/{project_id}/flavor_zones/{flavor_zone_id} getFlavorZone
FlavorZoneRestControllerApi ListCodeUsingGET Get /v1/{project_id}/flavor_zones/codes listCode
FlavorZoneRestControllerApi ListCustomUsingGET Get /v1/{project_id}/flavor_zones/customs listCustom
FlavorZoneRestControllerApi ListFamilyUsingGET Get /v1/{project_id}/flavor_zones/families listFamily
FlavorZoneRestControllerApi ListFlavorZoneUsingGET Get /v1/{project_id}/flavor_zones/product listFlavorZone
FlavorZoneRestControllerApi ListFlavorZoneUsingGET1 Get /v1/{project_id}/flavor_zones/product/{product} listFlavorZone
ImageRestControllerApi ListGPUImageUsingGET Get /v1/{project_id}/images/gpu listGPUImage
ImageRestControllerApi ListOSImageDefaultUsingGET Get /v1/{project_id}/images/os_default listOSImageDefault
ImageRestControllerApi ListOSImageUsingGET Get /v1/{project_id}/images/os listOSImage
K8SClusterRestControllerV2Api ListClusterUsingGET Get /v2/{projectId}/clusters List cluster
LoadBalancerRestControllerApi CreateListenerUsingPOST Post /v1/{project_id}/listeners Create a listener
LoadBalancerRestControllerApi CreateLoadBalancerUsingPOST Post /v1/{project_id}/load-balancers Create a new load balancer
LoadBalancerRestControllerApi CreatePolicyUsingPOST Post /v1/{project_id}/l7-policies Create a l7 policy
LoadBalancerRestControllerApi CreatePoolUsingPOST Post /v1/{project_id}/pools Create a new pool
LoadBalancerRestControllerApi DeleteListenerUsingDELETE Delete /v1/{project_id}/listeners Delete a listener
LoadBalancerRestControllerApi DeleteLoadBalancerUsingDELETE Delete /v1/{project_id}/load-balancers Delete a load balancer
LoadBalancerRestControllerApi DeletePolicyUsingDELETE Delete /v1/{project_id}/l7-policies Delete a policy
LoadBalancerRestControllerApi DeletePoolUsingDELETE Delete /v1/{project_id}/pools Delete a pool
LoadBalancerRestControllerApi GetHeadersUsingGET Get /v1/{project_id}/load-balancers/headers Get list headers
LoadBalancerRestControllerApi GetHealthMonitorFromPoolUsingGET Get /v1/{project_id}/pools/{pool_id}/health-monitors Get the health monitor associated with a specific pool
LoadBalancerRestControllerApi GetHealthMonitorUsingGET Get /v1/{project_id}/health-monitors/{health_monitor_id} getHealthMonitor
LoadBalancerRestControllerApi GetL7PoliciesUsingGET Get /v1/{project_id}/listeners/{listener_id}/l7policies Get list policies of a listener
LoadBalancerRestControllerApi GetListListenersUsingGET Get /v1/{project_id}/load-balancers/{load_balancer_id}/listeners Get list of listeners of a load balancer
LoadBalancerRestControllerApi GetListLoadBalancersUsingGET Get /v1/{project_id}/load-balancers Get list of load balancers
LoadBalancerRestControllerApi GetListPoolsUsingGET Get /v1/{project_id}/load-balancers/{load_balancer_id}/pools Get list of pools of a load balancer
LoadBalancerRestControllerApi GetListenerUsingGET Get /v1/{project_id}/listeners/{listener_id} Get a specific listener
LoadBalancerRestControllerApi GetLoadBalancerUsingGET Get /v1/{project_id}/load-balancers/{load_balancer_id} Get a specific load balancer
LoadBalancerRestControllerApi GetMemberFromPoolUsingGET Get /v1/{project_id}/pools/{pool_id}/members Get members from a pool
LoadBalancerRestControllerApi GetPackagesUsingGET Get /v1/{project_id}/load-balancers/packages Get list packages
LoadBalancerRestControllerApi GetPoolUsingGET Get /v1/{project_id}/pools/{pool_id} Get a specific pool
LoadBalancerRestControllerApi ReorderPoliciesUsingPUT Put /v1/{project_id}/reorder-l7-policies Reorder the L7 policies
LoadBalancerRestControllerApi UpdateAPolicyUsingPUT Put /v1/{project_id}/l7-policies Update a policy
LoadBalancerRestControllerApi UpdateListenerUsingPUT Put /v1/{project_id}/listeners Update a listener
LoadBalancerRestControllerApi UpdateMembersUsingPUT Put /v1/{project_id}/pools/{pool_id}/members Update members
LoadBalancerRestControllerApi UpdatePoolUsingPUT Put /v1/{project_id}/pools Update a pool
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
NetworkInterfaceElasticRestControllerV2Api CreateNetworkInterfaceElasticUsingPOST Post /v2/{projectId}/network-interfaces-elastic Create Network Interface Elastic
NetworkInterfaceElasticRestControllerV2Api DeleteNetworkInterfaceElasticUsingDELETE Delete /v2/{projectId}/network-interfaces-elastic/{networkInterfaceId} Delete Network Interface Elastic
NetworkInterfaceElasticRestControllerV2Api GetNetworkInterfaceElasticUsingGET Get /v2/{projectId}/network-interfaces-elastic/{networkInterfaceId} Get Network Interface Elastic
NetworkInterfaceElasticRestControllerV2Api ListNetworkInterfaceElasticUsingGET Get /v2/{projectId}/network-interfaces-elastic List Network Interface Elastic
NetworkInterfaceElasticRestControllerV2Api RenameNetworkInterfaceElasticUsingPUT Put /v2/{projectId}/network-interfaces-elastic/{networkInterfaceId}/rename Rename Network Interface Elastic
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
NetworkRestControllerV2Api CreateNetworkUsingPOST1 Post /v2/{projectId}/networks Create network
NetworkRestControllerV2Api DeleteNetworkUsingDELETE1 Delete /v2/{projectId}/networks/{networkId} Delete network
NetworkRestControllerV2Api EditNetworkUsingPATCH Patch /v2/{projectId}/networks/{networkId} Edit network
NetworkRestControllerV2Api GetNetworkUsingGET1 Get /v2/{projectId}/networks/{networkId} Get network
NetworkRestControllerV2Api ListNetworkActiveUsingGET Get /v2/{projectId}/networks/active List network active
NetworkRestControllerV2Api ListNetworkUsingGET1 Get /v2/{projectId}/networks List network
ProjectRestControllerApi CreateProjectUsingPOST Post /v1/projects createProject
ProjectRestControllerApi GetProjectUsingGET Get /v1/projects/{project_id} getProject
ProjectRestControllerApi ListProjectUsingGET Get /v1/projects listProject
ProtocolRestControllerV2Api ListProtocolUsingGET Get /v2/protocols List Protocol Supported
QuotaRestControllerApi ListByUserUsingGET Get /v1/{project_id}/quota/user/{user_id} listByUser
QuotaRestControllerApi ListQuotaUsedUsingGET Get /v1/{project_id}/quota-used listQuotaUsed
QuotaRestControllerApi ListUsingGET Get /v1/{project_id}/quota list
QuotaRestControllerV2Api ListQuotaUsedUsingGET1 Get /v2/{projectId}/quotas/quotaUsed List Quota-used
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 Create security group
SecgroupRestControllerApi DeleteSecgroupUsingDELETE Delete /v1/{project_id}/secgroups Delete security group
SecgroupRestControllerApi GetForSimpleServerUsingGET Get /v1/{project_id}/secgroups/simple-servers/{server_id} getForSimpleServer
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
SecgroupRestControllerApi UpdateSecgroupUsingPUT Put /v1/{project_id}/secgroups Update security group
SecgroupRestControllerV2Api CreateSecgroupUsingPOST1 Post /v2/{projectId}/secgroups Create security group
SecgroupRestControllerV2Api DeleteSecgroupUsingDELETE1 Delete /v2/{projectId}/secgroups/{secgroupId} Delete security group
SecgroupRestControllerV2Api GetAlllistSecgroupUsingGET Get /v2/{projectId}/secgroups List All SecurityGroup
SecgroupRestControllerV2Api GetListSecgroupRuleBySecgroupUsingGET Get /v2/{projectId}/secgroups/{secgroupId}/secGroupRules Security Group Rule By Security Group Id
SecgroupRestControllerV2Api GetListServerBySecgroupUsingGET Get /v2/{projectId}/secgroups/{secgroupId}/servers Infomation's Server of Security Group
SecgroupRestControllerV2Api GetSecgroupUsingGET1 Get /v2/{projectId}/secgroups/{secgroupId} Security Group By Security Group Id
SecgroupRestControllerV2Api UpdateSecgroupUsingPUT1 Put /v2/{projectId}/secgroups/{secgroupId} Update security group
SecgroupRuleRestControllerApi CreateSecgroupRuleUsingPOST Post /v1/{project_id}/secgroup-rules Create security group rule
SecgroupRuleRestControllerApi DeleteSecgroupRuleUsingDELETE Delete /v1/{project_id}/secgroup-rules Delete security group rule
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
SecgroupRuleRestControllerApi UpdateUsingPUT Put /v1/{project_id}/secgroup-rules Update security group rule
SecgroupRuleRestControllerV2Api CreateSecgroupRuleUsingPOST1 Post /v2/{projectId}/secgroups/{secgroupId}/secgroupRules Create security group rule
SecgroupRuleRestControllerV2Api DeleteSecgroupRuleUsingDELETE1 Delete /v2/{projectId}/secgroups/{secgroupId}/secgroupRules/{secgroupRuleId} Delete security group rule
SecgroupRuleRestControllerV2Api GetSecGroupRuleSamplesUsingGET Get /v2/{projectId}/secgroups/{secgroupId}/secgroupRules/samples List SecurityGroup Rule Sample
SecgroupRuleRestControllerV2Api GetSecgroupRuleUsingGET1 Get /v2/{projectId}/secgroups/{secgroupId}/secgroupRules/{secgroupRuleId} Security Group By Security Group Id
SecgroupRuleRestControllerV2Api UpdateUsingPUT1 Put /v2/{projectId}/secgroups/{secgroupId}/secgroupRules/{secgroupRuleId} Update security group rule
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
ServerGroupRestControllerV2Api CreateServerGroupUsingPOST1 Post /v2/{projectId}/serverGroups Create server group
ServerGroupRestControllerV2Api DeleteServerGroupUsingDELETE1 Delete /v2/{projectId}/serverGroups/{serverGroupId} Delete server group
ServerGroupRestControllerV2Api GetListServerGroupWithPagingUsingGET Get /v2/{projectId}/serverGroups List server group with Paging
ServerGroupRestControllerV2Api GetServerGroupUsingGET1 Get /v2/{projectId}/serverGroups/{serverGroupId} Get server group
ServerGroupRestControllerV2Api ListServerGroupPolicyUsingGET1 Get /v2/{projectId}/serverGroups/policies List server group policy
ServerGroupRestControllerV2Api UpdateServerGroupUsingPUT1 Put /v2/{projectId}/serverGroups/{serverGroupId} 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 ServerLimitUsingGET Get /v1/{project_id}/servers/limit Server limit
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
ServerRestControllerV2Api AttachExternalNetworkInterfaceUsingPOST Post /v2/{projectId}/servers/{serverId}/external-network-interfaces Attach External Network Interface
ServerRestControllerV2Api AttachNetworkInterfaceUsingPOST Post /v2/{projectId}/servers/{serverId}/internal-network-interfaces Attach Internal Network Interface
ServerRestControllerV2Api AttachWanIPUsingPUT Put /v2/{projectId}/servers/{serverId}/wan-ips/{wanIpId}/attach Attach Wan IP
ServerRestControllerV2Api CreateServerUsingPOST1 Post /v2/{projectId}/servers Create server
ServerRestControllerV2Api DeleteServerUsingDELETE1 Delete /v2/{projectId}/servers/{serverId} Delete Server
ServerRestControllerV2Api DetachExternalNetworkInterfaceUsingDELETE Delete /v2/{projectId}/servers/{serverId}/external-network-interfaces Detach External Network Interface
ServerRestControllerV2Api DetachNetworkInterfaceUsingDELETE Delete /v2/{projectId}/servers/{serverId}/internal-network-interfaces Detach Internal Network Interface
ServerRestControllerV2Api DetachWanIPUsingPUT Put /v2/{projectId}/servers/{serverId}/wan-ips/{wanIpId}/detach Detach Wan IP
ServerRestControllerV2Api GetConsoleLogUsingGET Get /v2/{projectId}/servers/{serverId}/console-log Get console log
ServerRestControllerV2Api GetConsoleUrlUsingGET Get /v2/{projectId}/servers/{serverId}/console-url Get console url
ServerRestControllerV2Api GetServerUsingGET1 Get /v2/{projectId}/servers/{serverId} Get server by id
ServerRestControllerV2Api ListActionUsingGET Get /v2/{projectId}/servers/{serverId}/actions List Action Of Server
ServerRestControllerV2Api ListNetworkInterfaceUsingGET Get /v2/{projectId}/servers/{serverId}/network-interfaces List Network Interface Of Server
ServerRestControllerV2Api ListSecGroupUsingGET Get /v2/{projectId}/servers/{serverId}/sec-groups List Sec Group Of Server
ServerRestControllerV2Api ListServerUsingGET1 Get /v2/{projectId}/servers List server
ServerRestControllerV2Api RebootServerUsingPUT1 Put /v2/{projectId}/servers/{serverId}/reboot Reboot server
ServerRestControllerV2Api RenameServerUsingPUT Put /v2/{projectId}/servers/{serverId}/rename Rename Server
ServerRestControllerV2Api ResizeServerUsingPUT1 Put /v2/{projectId}/servers/{serverId}/resize Change flavor of server
ServerRestControllerV2Api StartServerUsingPUT1 Put /v2/{projectId}/servers/{serverId}/start Start server
ServerRestControllerV2Api StopServerUsingPUT1 Put /v2/{projectId}/servers/{serverId}/stop Stop server
ServerRestControllerV2Api UpdateSecGroupServerUsingPUT1 Put /v2/{projectId}/servers/{serverId}/update-sec-group Update SecGroups of server
SimpleServerRestControllerApi DeleteServerUsingDELETE2 Delete /v1/{project_id}/simple-servers Delete simple server
SimpleServerRestControllerApi GetConsoleServerUsingGET Get /v1/{project_id}/simple-servers/{server_id}/console Get console simple server
SimpleServerRestControllerApi GetServerUsingGET2 Get /v1/{project_id}/simple-servers/{server_id} Get simple server
SimpleServerRestControllerApi ListServerUsingGET2 Get /v1/{project_id}/simple-servers List simple server
SimpleServerRestControllerApi RebootServerUsingPUT2 Put /v1/{project_id}/simple-servers/reboot Reboot simple server
SimpleServerRestControllerApi StartServerUsingPUT2 Put /v1/{project_id}/simple-servers/start Start simple server
SimpleServerRestControllerApi StopServerUsingPUT2 Put /v1/{project_id}/simple-servers/stop Stop simple server
SimpleVolumeRestControllerApi GetVolumeUsingGET Get /v1/{project_id}/simple-volumes/{volume_id} Get simple volume
SimpleVolumeRestControllerApi ListVolumeUsingGET Get /v1/{project_id}/simple-volumes List simple volume
SshKeyRestControllerApi CreateSSHKeyUsingPOST Post /v1/{project_id}/ssh_keys Create SSH key
SshKeyRestControllerApi DeleteSSHKeyUsingDELETE Delete /v1/{project_id}/ssh_keys Delete SSH key
SshKeyRestControllerApi GetSSHKeyUsingGET Get /v1/{project_id}/ssh_keys/{ssh_key_id} Get SSH key
SshKeyRestControllerApi ImportSSHKeyUsingPOST Post /v1/{project_id}/ssh_keys/import Import SSH key
SshKeyRestControllerApi ListSSHKeyUsingGET Get /v1/{project_id}/ssh_keys List SSH key
SshKeyRestControllerV2Api CreateSSHKeyUsingPOST1 Post /v2/{projectId}/sshKeys Create SSH key
SshKeyRestControllerV2Api DeleteSSHKeyUsingDELETE1 Delete /v2/{projectId}/sshKeys/{sshKeyId} Delete SSH key
SshKeyRestControllerV2Api GetListSecgroupWithPagingUsingGET1 Get /v2/{projectId}/sshKeys List SSH key Paging
SshKeyRestControllerV2Api GetSSHKeyUsingGET1 Get /v2/{projectId}/sshKeys/{sshKeyId} Get SSH key
SshKeyRestControllerV2Api ImportSSHKeyUsingPOST1 Post /v2/{projectId}/sshKeys/import Import SSH key
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
SubnetRestControllerV2Api CreateSubnetUsingPOST1 Post /v2/{projectId}/networks/{networkId}/subnets createSubnet
SubnetRestControllerV2Api DeleteNetworkUsingDELETE2 Delete /v2/{projectId}/networks/{networkId}/subnets/{subnetId} Delete subnet
SubnetRestControllerV2Api EditSubnetUsingPATCH Patch /v2/{projectId}/networks/{networkId}/subnets/{subnetId} Edit subnet
SubnetRestControllerV2Api GetSubnetByIdUsingGET Get /v2/{projectId}/networks/{networkId}/subnets/{subnetId} List subnet by id
SubnetRestControllerV2Api ListSubnetOfNetworkUsingGET Get /v2/{projectId}/networks/{networkId}/subnets List subnet of network
UserImageRestControllerV2Api CreateImageUsingPOST Post /v2/{projectId}/user-images/servers/{serverId} Start server
UserImageRestControllerV2Api DeleteImageUsingDELETE Delete /v2/{projectId}/user-images/{imageId} Delete User Image
UserImageRestControllerV2Api ListImageByIdUsingGET Get /v2/{projectId}/user-images/{imageId} List User Image By ID
UserImageRestControllerV2Api ListImageUsingGET Get /v2/{projectId}/user-images List User Image
VirtualIpAddressRestControllerV2Api AddAddressPairUsingPOST Post /v2/{projectId}/virtualIpAddress/{virtualIpAddressId}/addressPairs Create Address Pair
VirtualIpAddressRestControllerV2Api CreateVirtualIpAddressUsingPOST Post /v2/{projectId}/virtualIpAddress Create Virtual Ip Address
VirtualIpAddressRestControllerV2Api DeleteVirtualIpAddressUsingDELETE Delete /v2/{projectId}/virtualIpAddress/{virtualIpAddressId} Delete virtual ip address
VirtualIpAddressRestControllerV2Api GetListAddressPairUsingGET Get /v2/{projectId}/virtualIpAddress/{virtualIpAddressId}/addressPairs List address pair interfaces
VirtualIpAddressRestControllerV2Api ListInternalNetworkInterfaceUsingGET Get /v2/{projectId}/virtualIpAddress/internalNetworkInterfaces List of internal network interface for adding address pair
VirtualIpAddressRestControllerV2Api ListVirtualIpAddressUsingGET Get /v2/{projectId}/virtualIpAddress List All Virtual Ip Address
VirtualIpAddressRestControllerV2Api RemoveAddressPairUsingDELETE Delete /v2/{projectId}/virtualIpAddress/{virtualIpAddressId}/addressPairs/{addressPairId} Delete Address Pair
VirtualIpAddressRestControllerV2Api UpdateUsingPUT2 Put /v2/{projectId}/virtualIpAddress/{virtualIpAddressId} Update virtual ip address
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 GetBootVolumeByInstanceIdUsingGET Get /v1/{project_id}/volumes/servers/{server_id}/boot Get boot volume by server id
VolumeRestControllerApi GetVolumeByInstanceIdUsingGET Get /v1/{project_id}/volumes/servers/{server_id} Get volume by server id
VolumeRestControllerApi GetVolumeUsingGET1 Get /v1/{project_id}/volumes/{volume_id} Get volume by id
VolumeRestControllerApi ListEncryptionUsingGET Get /v1/{project_id}/volumes/encryption_types Get list encryption type
VolumeRestControllerApi ListVolumeUsingGET1 Get /v1/{project_id}/volumes List volume
VolumeRestControllerApi ResizeVolumeUsingPUT Put /v1/{project_id}/volumes/resize Resize volume
VolumeRestControllerV2Api AttachVolumeUsingPUT1 Put /v2/{projectId}/volumes/{volumeId}/servers/{serverId}/attach Attach volume into the server
VolumeRestControllerV2Api CreateVolumeUsingPOST1 Post /v2/{projectId}/volumes Create volume
VolumeRestControllerV2Api DeleteVolumeUsingDELETE1 Delete /v2/{projectId}/volumes/{volumeId} Delete volume
VolumeRestControllerV2Api DetachVolumeUsingPUT1 Put /v2/{projectId}/volumes/{volumeId}/servers/{serverId}/detach Detach volume into the server
VolumeRestControllerV2Api GetBootVolumeByInstanceIdUsingGET1 Get /v2/{projectId}/volumes/servers/{serverId}/boot Get boot volume by server id
VolumeRestControllerV2Api GetVolumeByInstanceIdUsingGET1 Get /v2/{projectId}/volumes/servers/{serverId} Get volume by server id
VolumeRestControllerV2Api GetVolumeUsingGET2 Get /v2/{projectId}/volumes/{volumeId} Get volume by id
VolumeRestControllerV2Api ListVolumeHistoryUsingGET Get /v2/{projectId}/volumes/{volumeId}/history List volume
VolumeRestControllerV2Api ListVolumeUsingGET2 Get /v2/{projectId}/volumes List volume
VolumeRestControllerV2Api ResizeVolumeUsingPUT1 Put /v2/{projectId}/volumes/{volumeId}/resize Resize volume
VolumeTypeRestControllerApi GetVolumeTypeDefaultIdUsingGET Get /v1/{project_id}/volume_default_id getVolumeTypeDefaultId
VolumeTypeRestControllerApi GetVolumeTypeUsingGET Get /v1/{project_id}/volume_types/{volume_type_id} getVolumeType
VolumeTypeRestControllerApi ListAllVolumeTypeUsingGET Get /v1/{project_id}/volume_types listAllVolumeType
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
VpcExternalCallbackControllerApi UpdateStatusUsingPOST Post /v2/external/callback Update status in task table
WanIpRestControllerV2Api DeleteWanIpUsingDELETE Delete /v2/{projectId}/wanIps/{wanIpId} Delete a WAN IP
WanIpRestControllerV2Api ListWanIpUsingGET Get /v2/{projectId}/wanIps List WAN IP

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 {
	AttachmentControllerApi *AttachmentControllerApiService

	BandwidthControllerApi *BandwidthControllerApiService

	ElasticIpRestControllerV2Api *ElasticIpRestControllerV2ApiService

	FlavorRestControllerApi *FlavorRestControllerApiService

	FlavorZoneRestControllerApi *FlavorZoneRestControllerApiService

	ImageRestControllerApi *ImageRestControllerApiService

	K8SClusterRestControllerApi *K8SClusterRestControllerV2ApiService

	NetworkAclRestControllerApi *NetworkAclRestControllerV2ApiService

	NetworkInterfaceElasticRestControllerApi *NetworkInterfaceElasticRestControllerV2ApiService

	NetworkRestControllerApi *NetworkRestControllerV2ApiService

	PersistentVolumeRestControllerApi *PersistentVolumeRestControllerV2ApiService

	ProjectRestControllerApi *ProjectRestControllerApiService

	ProtocolRestControllerApi *ProtocolRestControllerV2ApiService

	QuotaRestControllerApi *QuotaRestControllerV2ApiService

	RouteTableControllerApi *RouteTableRestControllerV2ApiService

	SecgroupRestControllerApi *SecgroupRestControllerV2ApiService

	SecgroupRuleRestControllerApi *SecgroupRuleRestControllerV2ApiService

	ServerGroupRestControllerApi *ServerGroupRestControllerV2ApiService

	ServerRestControllerApi *ServerRestControllerV2ApiService

	SshKeyRestControllerApi *SshKeyRestControllerV2ApiService

	SubnetRestControllerApi *SubnetRestControllerV2ApiService

	UserImageRestControllerV2Api *UserImageRestControllerV2ApiService

	VirtualIpAddressRestControllerV2Api *VirtualIpAddressRestControllerV2ApiService

	VolumeRestControllerApi *VolumeRestControllerV2ApiService

	VolumeTypeRestControllerApi *VolumeTypeRestControllerApiService

	VolumeTypeZoneRestControllerApi *VolumeTypeZoneRestControllerApiService

	NetworkInterfaceRestControllerApi *NetworkInterfaceElasticRestControllerV2ApiService

	VpcExternalCallbackControllerApi *VpcExternalCallbackControllerApiService

	WanIpRestControllerApi *WanIpRestControllerV2ApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Api Documentation API v1.0.5 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              int32     `json:"seqNumber,omitempty"`
	Source                 string    `json:"source,omitempty"`
	Type_                  string    `json:"type,omitempty"`
	Uuid                   string    `json:"uuid,omitempty"`
}

type AddressPairDto ¶ added in v0.0.15

type AddressPairDto struct {
	CreatedAt          time.Time `json:"createdAt"`
	NetworkInterfaceId string    `json:"networkInterfaceId"`
	NetworkInterfaceIp string    `json:"networkInterfaceIp"`
	Uuid               string    `json:"uuid"`
	VirtualIpAddressId string    `json:"virtualIpAddressId"`
}

type AttachDetachWanIpRequest ¶ added in v0.0.15

type AttachDetachWanIpRequest struct {
	// Id of network interface
	NetworkInterfaceId string `json:"networkInterfaceId,omitempty"`
}

Attach Detach Wan IP Request

type AttachExternalNetworkInterfaceRequest ¶ added in v0.0.15

type AttachExternalNetworkInterfaceRequest struct {
	// External network interface id
	ExternalNetworkInterfaceId string `json:"externalNetworkInterfaceId,omitempty"`
}

Attach External Network Interface Request

type AttachNetworkInterfaceRequest ¶ added in v0.0.15

type AttachNetworkInterfaceRequest struct {
	// List Id of subnet
	SubnetIds []string `json:"subnetIds,omitempty"`
}

Attach Network Interface Request

type AttachNetworkInterfaceWithWanIpRequest ¶ added in v1.2.0

type AttachNetworkInterfaceWithWanIpRequest struct {
	// IP of subnet
	Ip string `json:"ip,omitempty"`
	// Id of server
	ServerId string `json:"serverId,omitempty"`
	// Id of subnet
	SubnetId string `json:"subnetId,omitempty"`
	// Tags of resource
	Tags []TagRequest `json:"tags,omitempty"`
	// Id of wan IP
	WanIpId string `json:"wanIpId,omitempty"`
}

Attach Network Interface With Subnet And Floating Ip Request

type AttachToLoadBalancerBackendRequest ¶ added in v1.2.0

type AttachToLoadBalancerBackendRequest struct {
	// Id of cluster
	ClusterId                        string             `json:"clusterId,omitempty"`
	LoadBalancers                    []LoadBalancerItem `json:"loadBalancers,omitempty"`
	RemovePoolWithAnotherMonitorPort bool               `json:"removePoolWithAnotherMonitorPort,omitempty"`
}

Attach To Load Balancer Request

type AttachVolumeRequest ¶

type AttachVolumeRequest struct {
}

Attach Volume Request

type AttachmentControllerApiService ¶ added in v0.0.15

type AttachmentControllerApiService service

func (*AttachmentControllerApiService) ListAttachmentByServerUsingGET ¶ added in v0.0.15

func (a *AttachmentControllerApiService) ListAttachmentByServerUsingGET(ctx context.Context, projectId string, serverUuid string) (AttachmentResponse, *http.Response, error)

AttachmentControllerApiService Get list attached instance 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 serverUuid The server id

@return AttachmentResponse

func (*AttachmentControllerApiService) ListAttachmentUsingGET ¶ added in v0.0.15

func (a *AttachmentControllerApiService) ListAttachmentUsingGET(ctx context.Context, projectId string, uuid string) (AttachmentResponse, *http.Response, error)

AttachmentControllerApiService Get list attached instance of multi attach 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 uuid The volume id

@return AttachmentResponse

type AttachmentEntity ¶ added in v0.0.15

type AttachmentEntity struct {
	CreatedAt             *Timestamp `json:"createdAt,omitempty"`
	DeletedAt             *Timestamp `json:"deletedAt,omitempty"`
	Id                    int32      `json:"id,omitempty"`
	InterfaceInstanceUuid string     `json:"interfaceInstanceUuid,omitempty"`
	InterfaceVolumeUuid   string     `json:"interfaceVolumeUuid,omitempty"`
	ProjectId             string     `json:"projectId,omitempty"`
}

type AttachmentResponse ¶ added in v0.0.15

type AttachmentResponse struct {
	AttachmentList []AttachmentEntity `json:"attachmentList,omitempty"`
	ErrorCode      int32              `json:"errorCode,omitempty"`
	ErrorMsg       string             `json:"errorMsg,omitempty"`
	Extra          interface{}        `json:"extra,omitempty"`
	Success        bool               `json:"success,omitempty"`
}

type BandwidthControllerApiService ¶ added in v1.2.0

type BandwidthControllerApiService service

func (*BandwidthControllerApiService) ChangeTypeBandwidthUsingPUT ¶ added in v1.2.0

func (a *BandwidthControllerApiService) ChangeTypeBandwidthUsingPUT(ctx context.Context, changeTypeBandwidthRequest ChangeTypeBandwidthRequest, projectId string) (BandwidthResponse, *http.Response, error)

BandwidthControllerApiService Change type bandwidth

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

@return BandwidthResponse

func (*BandwidthControllerApiService) CreateBandwidthUsingPOST ¶ added in v1.2.0

func (a *BandwidthControllerApiService) CreateBandwidthUsingPOST(ctx context.Context, createBandwidthRequest CreateBandwidthRequest, projectId string) (BandwidthResponse, *http.Response, error)

BandwidthControllerApiService Create bandwidth

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

@return BandwidthResponse

func (*BandwidthControllerApiService) DeleteBandwidthUsingDELETE ¶ added in v1.2.0

func (a *BandwidthControllerApiService) DeleteBandwidthUsingDELETE(ctx context.Context, deleteBandwidthRequest DeleteBandwidthRequest, projectId string) (BaseResponse, *http.Response, error)

BandwidthControllerApiService Delete bandwidth

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

@return BaseResponse

func (*BandwidthControllerApiService) GetBandwidthUsingGET ¶ added in v1.2.0

func (a *BandwidthControllerApiService) GetBandwidthUsingGET(ctx context.Context, projectId string, uuid string) (BandwidthResponse, *http.Response, error)

BandwidthControllerApiService Get Bandwidth

  • @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 bandwidth id

@return BandwidthResponse

func (*BandwidthControllerApiService) ListAllTrafficUsingGET ¶ added in v1.2.0

func (a *BandwidthControllerApiService) ListAllTrafficUsingGET(ctx context.Context, projectId string) (BandwidthTrafficResponse, *http.Response, error)

BandwidthControllerApiService List all traffic

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

@return BandwidthTrafficResponse

func (*BandwidthControllerApiService) ListBandwidthsUsingGET ¶ added in v1.2.0

func (a *BandwidthControllerApiService) ListBandwidthsUsingGET(ctx context.Context, projectId string) (BandwidthResponse, *http.Response, error)

BandwidthControllerApiService List Bandwidths

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

@return BandwidthResponse

func (*BandwidthControllerApiService) ListPackagesUsingGET ¶ added in v1.2.0

func (a *BandwidthControllerApiService) ListPackagesUsingGET(ctx context.Context, projectId string) (BandwidthPackageResponse, *http.Response, error)

BandwidthControllerApiService List Bandwidth Packages

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

@return BandwidthPackageResponse

func (*BandwidthControllerApiService) ListResourceIpsUsingGET ¶ added in v1.2.0

func (a *BandwidthControllerApiService) ListResourceIpsUsingGET(ctx context.Context, listResourceIpRequest ListResourceIpRequest, projectId string) (BandwidthResourceIpResponse, *http.Response, error)

BandwidthControllerApiService List resource IPs

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

@return BandwidthResourceIpResponse

func (*BandwidthControllerApiService) RecoverBandwidthUsingPUT ¶ added in v1.2.0

func (a *BandwidthControllerApiService) RecoverBandwidthUsingPUT(ctx context.Context, projectId string, recoverBandwidthRequest RecoverBandwidthRequest) (BandwidthResponse, *http.Response, error)

BandwidthControllerApiService Recover bandwidth

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

@return BandwidthResponse

func (*BandwidthControllerApiService) RenewBandwidthUsingPUT ¶ added in v1.2.0

func (a *BandwidthControllerApiService) RenewBandwidthUsingPUT(ctx context.Context, projectId string, renewBandwidthRequest RenewBandwidthRequest) (BaseResponse, *http.Response, error)

BandwidthControllerApiService Renew bandwidth

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

@return BaseResponse

type BandwidthModel ¶ added in v0.0.15

type BandwidthModel struct {
	Area                              string    `json:"area,omitempty"`
	BackendEnable                     bool      `json:"backendEnable,omitempty"`
	BackendType                       string    `json:"backendType,omitempty"`
	CreatedAt                         time.Time `json:"createdAt,omitempty"`
	Description                       string    `json:"description,omitempty"`
	Id                                int64     `json:"id,omitempty"`
	Ip                                string    `json:"ip,omitempty"`
	OldSystemBandwidthVolume          string    `json:"oldSystemBandwidthVolume,omitempty"`
	OldSystemBandwidthVolumeUpdatedAt time.Time `json:"oldSystemBandwidthVolumeUpdatedAt,omitempty"`
	PackageDomDedi                    string    `json:"packageDomDedi,omitempty"`
	PackageIntDedi                    string    `json:"packageIntDedi,omitempty"`
	PackagePayg                       string    `json:"packagePayg,omitempty"`
	PackageType                       string    `json:"packageType,omitempty"`
	ProjectUuid                       string    `json:"projectUuid,omitempty"`
	ResourceType                      string    `json:"resourceType,omitempty"`
	Status                            string    `json:"status,omitempty"`
	TotalVolume                       int64     `json:"totalVolume,omitempty"`
	Trash                             int64     `json:"trash,omitempty"`
	UpdatedAt                         time.Time `json:"updatedAt,omitempty"`
	UsedVolume                        int64     `json:"usedVolume,omitempty"`
	UserId                            int64     `json:"userId,omitempty"`
	Uuid                              string    `json:"uuid,omitempty"`
}

type BandwidthPackageModel ¶ added in v0.0.15

type BandwidthPackageModel struct {
	Area        string  `json:"area,omitempty"`
	DisplayArea string  `json:"displayArea,omitempty"`
	DisplayName string  `json:"displayName,omitempty"`
	Id          int32   `json:"id,omitempty"`
	In          int64   `json:"in,omitempty"`
	MonthlyCost float64 `json:"monthlyCost,omitempty"`
	Name        string  `json:"name,omitempty"`
	Out         int64   `json:"out,omitempty"`
	PriceKey    string  `json:"priceKey,omitempty"`
	PriceValue  int64   `json:"priceValue,omitempty"`
	Type_       string  `json:"type,omitempty"`
	Unit        string  `json:"unit,omitempty"`
	UserType    string  `json:"userType,omitempty"`
	Volume      int64   `json:"volume,omitempty"`
}

type BandwidthPackageResponse ¶ added in v0.0.15

type BandwidthPackageResponse struct {
	BandwidthPackage  *BandwidthPackageModel  `json:"bandwidthPackage,omitempty"`
	BandwidthPackages []BandwidthPackageModel `json:"bandwidthPackages,omitempty"`
	ErrorCode         int32                   `json:"errorCode,omitempty"`
	ErrorMsg          string                  `json:"errorMsg,omitempty"`
	Extra             interface{}             `json:"extra,omitempty"`
	Success           bool                    `json:"success,omitempty"`
}

type BandwidthResourceIpResponse ¶ added in v0.0.15

type BandwidthResourceIpResponse struct {
	ErrorCode   int32        `json:"errorCode,omitempty"`
	ErrorMsg    string       `json:"errorMsg,omitempty"`
	Extra       interface{}  `json:"extra,omitempty"`
	ResourceIps []ResourceIp `json:"resourceIps,omitempty"`
	Success     bool         `json:"success,omitempty"`
}

type BandwidthResponse ¶ added in v0.0.15

type BandwidthResponse struct {
	Bandwidth  *BandwidthModel  `json:"bandwidth,omitempty"`
	Bandwidths []BandwidthModel `json:"bandwidths,omitempty"`
	ErrorCode  int32            `json:"errorCode,omitempty"`
	ErrorMsg   string           `json:"errorMsg,omitempty"`
	Extra      interface{}      `json:"extra,omitempty"`
	Success    bool             `json:"success,omitempty"`
}

type BandwidthTrafficHistoryModel ¶ added in v0.0.15

type BandwidthTrafficHistoryModel struct {
	BandwidthUuid string    `json:"bandwidthUuid,omitempty"`
	CreatedAt     string    `json:"createdAt,omitempty"`
	Id            int32     `json:"id,omitempty"`
	RemainVolume  int64     `json:"remainVolume,omitempty"`
	UpdatedAt     time.Time `json:"updatedAt,omitempty"`
	UsedVolume    int64     `json:"usedVolume,omitempty"`
}

type BandwidthTrafficResponse ¶ added in v0.0.15

type BandwidthTrafficResponse struct {
	BandwidthTrafficHistories []BandwidthTrafficHistoryModel `json:"bandwidthTrafficHistories,omitempty"`
	BandwidthTrafficHistory   *BandwidthTrafficHistoryModel  `json:"bandwidthTrafficHistory,omitempty"`
	ErrorCode                 int32                          `json:"errorCode,omitempty"`
	ErrorMsg                  string                         `json:"errorMsg,omitempty"`
	Extra                     interface{}                    `json:"extra,omitempty"`
	Success                   bool                           `json:"success,omitempty"`
}

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 CallbackResponse ¶ added in v0.0.15

type CallbackResponse struct {
	Code     int32  `json:"code,omitempty"`
	ErrorMsg string `json:"errorMsg,omitempty"`
	Success  bool   `json:"success,omitempty"`
	Total    int32  `json:"total,omitempty"`
}

type ChangeRoutesRequest ¶ added in v1.2.0

type ChangeRoutesRequest struct {
	// The updated routes list of route-table
	Routes []RouteRequest `json:"routes,omitempty"`
}

type ChangeSecGroupRequest ¶

type ChangeSecGroupRequest struct {
	// Id of the SecGroups
	SecurityGroup []string `json:"securityGroup,omitempty"`
	// Id of server
	ServerId string `json:"serverId"`
}

Update Server Request

type ChangeTypeBandwidthRequest ¶ added in v0.0.15

type ChangeTypeBandwidthRequest struct {
	DediDomPackageName string `json:"dediDomPackageName,omitempty"`
	DediIntPackageName string `json:"dediIntPackageName,omitempty"`
	Ip                 string `json:"ip,omitempty"`
	UpdateTimestamp    bool   `json:"updateTimestamp,omitempty"`
	Uuid               string `json:"uuid,omitempty"`
}

type ClusterConfigResultDto ¶ added in v1.2.0

type ClusterConfigResultDto struct {
	Configuration string `json:"configuration,omitempty"`
}

type ClusterDto ¶ added in v1.2.0

type ClusterDto struct {
	AclId                       string    `json:"aclId,omitempty"`
	AutoHealingEnabled          bool      `json:"autoHealingEnabled,omitempty"`
	AutoMonitoringEnabled       bool      `json:"autoMonitoringEnabled,omitempty"`
	AutoScalingEnabled          bool      `json:"autoScalingEnabled,omitempty"`
	BootVolumeSize              int32     `json:"bootVolumeSize,omitempty"`
	BootVolumeTypeId            string    `json:"bootVolumeTypeId,omitempty"`
	CalicoCidr                  string    `json:"calicoCidr,omitempty"`
	ClusterId                   int32     `json:"clusterId,omitempty"`
	CreatedAt                   time.Time `json:"createdAt,omitempty"`
	Description                 string    `json:"description,omitempty"`
	DockerVolumeSize            int32     `json:"dockerVolumeSize,omitempty"`
	DockerVolumeTypeId          string    `json:"dockerVolumeTypeId,omitempty"`
	EnabledLb                   bool      `json:"enabledLb,omitempty"`
	Endpoint                    string    `json:"endpoint,omitempty"`
	EtcdVolumeSize              int32     `json:"etcdVolumeSize,omitempty"`
	EtcdVolumeTypeId            string    `json:"etcdVolumeTypeId,omitempty"`
	IngressControllerEnabled    bool      `json:"ingressControllerEnabled,omitempty"`
	K8sNetworkType              string    `json:"k8sNetworkType,omitempty"`
	K8sNetworkTypeId            string    `json:"k8sNetworkTypeId,omitempty"`
	K8sVersion                  string    `json:"k8sVersion,omitempty"`
	K8sVersionId                string    `json:"k8sVersionId,omitempty"`
	MasterClusterSecGroupIdList []string  `json:"masterClusterSecGroupIdList,omitempty"`
	MasterCount                 int32     `json:"masterCount,omitempty"`
	MasterFlavorId              string    `json:"masterFlavorId,omitempty"`
	MasterFlavorName            string    `json:"masterFlavorName,omitempty"`
	MasterInstanceTypeId        string    `json:"masterInstanceTypeId,omitempty"`
	MaxNodeCount                int32     `json:"maxNodeCount,omitempty"`
	MinNodeCount                int32     `json:"minNodeCount,omitempty"`
	MinionClusterSecGroupIdList []string  `json:"minionClusterSecGroupIdList,omitempty"`
	Name                        string    `json:"name,omitempty"`
	NetworkId                   string    `json:"networkId,omitempty"`
	NodeCount                   int32     `json:"nodeCount,omitempty"`
	NodeFlavorId                string    `json:"nodeFlavorId,omitempty"`
	NodeFlavorName              string    `json:"nodeFlavorName,omitempty"`
	NodeInstanceTypeId          string    `json:"nodeInstanceTypeId,omitempty"`
	NodegroupDefaultId          string    `json:"nodegroupDefaultId,omitempty"`
	ProjectId                   string    `json:"projectId,omitempty"`
	SshKeyId                    string    `json:"sshKeyId,omitempty"`
	SshKeyName                  string    `json:"sshKeyName,omitempty"`
	Status                      string    `json:"status,omitempty"`
	SubnetId                    string    `json:"subnetId,omitempty"`
	Uuid                        string    `json:"uuid,omitempty"`
}

type ClusterNodeDto ¶ added in v1.2.0

type ClusterNodeDto struct {
	ClusterId   int64       `json:"clusterId,omitempty"`
	DateCreated string      `json:"dateCreated,omitempty"`
	DateDeleted string      `json:"dateDeleted,omitempty"`
	FixedIp     string      `json:"fixedIp,omitempty"`
	FloatingIp  string      `json:"floatingIp,omitempty"`
	IsMaster    int64       `json:"isMaster,omitempty"`
	Name        string      `json:"name,omitempty"`
	NodeGroupId int32       `json:"nodeGroupId,omitempty"`
	ProjectId   int64       `json:"projectId,omitempty"`
	Secgroup    interface{} `json:"secgroup,omitempty"`
	Status      string      `json:"status,omitempty"`
	VmUuid      string      `json:"vmUuid,omitempty"`
}

type ClusterNodeGroupDto ¶ added in v1.2.0

type ClusterNodeGroupDto struct {
	ClusterId          string    `json:"clusterId,omitempty"`
	ClusterNodeGroupId int32     `json:"clusterNodeGroupId,omitempty"`
	CreatedAt          time.Time `json:"createdAt,omitempty"`
	FlavorId           string    `json:"flavorId,omitempty"`
	FlavorName         string    `json:"flavorName,omitempty"`
	Name               string    `json:"name,omitempty"`
	NodeCount          int32     `json:"nodeCount,omitempty"`
	NodeGroupDefault   bool      `json:"nodeGroupDefault,omitempty"`
	ProjectId          string    `json:"projectId,omitempty"`
	Status             string    `json:"status,omitempty"`
	Uuid               string    `json:"uuid,omitempty"`
}

type ClusterPoolDto ¶ added in v1.2.0

type ClusterPoolDto struct {
	ClusterId      string    `json:"clusterId,omitempty"`
	CreatedAt      time.Time `json:"createdAt,omitempty"`
	Id             int32     `json:"id,omitempty"`
	LoadBalancerId string    `json:"loadBalancerId,omitempty"`
	MonitorPort    int32     `json:"monitorPort,omitempty"`
	PoolId         string    `json:"poolId,omitempty"`
	PoolName       string    `json:"poolName,omitempty"`
	Port           int32     `json:"port,omitempty"`
	ProjectId      string    `json:"projectId,omitempty"`
	UpdatedAt      time.Time `json:"updatedAt,omitempty"`
	Uuid           string    `json:"uuid,omitempty"`
}

type ClusterSecGroupDefaultDto ¶ added in v1.2.0

type ClusterSecGroupDefaultDto struct {
	Master *SecGroupDefault `json:"master,omitempty"`
	Minion *SecGroupDefault `json:"minion,omitempty"`
}

type ClusterSecGroupDto ¶ added in v1.2.0

type ClusterSecGroupDto struct {
	ClusterId    string    `json:"clusterId,omitempty"`
	CreatedAt    time.Time `json:"createdAt,omitempty"`
	Master       bool      `json:"master,omitempty"`
	ProjectId    string    `json:"projectId,omitempty"`
	SecGroupId   string    `json:"secGroupId,omitempty"`
	SecGroupName string    `json:"secGroupName,omitempty"`
	UpdatedAt    time.Time `json:"updatedAt,omitempty"`
	Uuid         string    `json:"uuid,omitempty"`
}

type ClusterSecgroupDefault ¶ added in v1.2.0

type ClusterSecgroupDefault struct {
	Master *SecGroupDefault `json:"master,omitempty"`
	Minion *SecGroupDefault `json:"minion,omitempty"`
}

type ClusterVolumeDto ¶ added in v1.2.0

type ClusterVolumeDto struct {
	ClusterId          int64  `json:"clusterId,omitempty"`
	DateCreated        string `json:"dateCreated,omitempty"`
	Iops               int32  `json:"iops,omitempty"`
	Name               string `json:"name,omitempty"`
	ProjectId          int64  `json:"projectId,omitempty"`
	Size               int64  `json:"size,omitempty"`
	Status             string `json:"status,omitempty"`
	VmUuid             string `json:"vmUuid,omitempty"`
	VolumeTypeId       string `json:"volumeTypeId,omitempty"`
	VolumeTypeZoneName string `json:"volumeTypeZoneName,omitempty"`
	VolumeUuid         string `json:"volumeUuid,omitempty"`
}

type Code ¶ added in v0.0.15

type Code struct {
	Description string `json:"description,omitempty"`
	Key         string `json:"key,omitempty"`
	Value       string `json:"value,omitempty"`
}

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)
func NewConfiguration(BasePath string, HTTPClient *http.Client) *Configuration {
	cfg := &Configuration{
		BasePath:      BasePath,
		DefaultHeader: map[string]string{"portal-user-id": "11212"},
		HTTPClient:    HTTPClient,
		UserAgent:     "terraform",
	}
	return cfg
}

type CreateAddressPairRequest ¶ added in v0.0.15

type CreateAddressPairRequest struct {
	// Id of the network interface
	InternalNetworkInterfaceId string `json:"internalNetworkInterfaceId"`
}

type CreateBandwidthRequest ¶ added in v0.0.15

type CreateBandwidthRequest struct {
	// Description of Bandwidth
	Description string `json:"description,omitempty"`
	// Ip of Bandwidth
	Ip string `json:"ip"`
	// Package Name Dom of Bandwidth
	PackageNameDom string `json:"packageNameDom"`
	// Package Name Int of Bandwidth
	PackageNameInt string `json:"packageNameInt"`
	// Package Name Pay Type of Bandwidth
	PackageNamePayG string `json:"packageNamePayG"`
	// Package Type of Bandwidth
	PackageType string `json:"packageType"`
	// Resource Type of Bandwidth
	ResourceType string `json:"resourceType"`
}

Create Bandwidth Request

type CreateClusterRequest ¶ added in v1.2.0

type CreateClusterRequest struct {
	// Auto-healing feature is enable
	AutoHealingEnabled bool `json:"autoHealingEnabled,omitempty"`
	// Auto monitoring feature is enable
	AutoMonitoringEnabled bool `json:"autoMonitoringEnabled,omitempty"`
	// Auto scaling feature is enable
	AutoScalingEnabled bool `json:"autoScalingEnabled,omitempty"`
	// Size of boot volume
	BootVolumeSize int32 `json:"bootVolumeSize"`
	// Id of boot volume type
	BootVolumeTypeId string `json:"bootVolumeTypeId"`
	// Cidr of Calico
	CalicoCidr string `json:"calicoCidr"`
	// Description of the Cluster
	Description string `json:"description,omitempty"`
	// Size of docker volume
	DockerVolumeSize int32 `json:"dockerVolumeSize"`
	// Id of docker volume type
	DockerVolumeTypeId string `json:"dockerVolumeTypeId"`
	// Enable Load Balancer or Not
	EnabledLb bool `json:"enabledLb"`
	// Size of etcd volume
	EtcdVolumeSize int32 `json:"etcdVolumeSize"`
	// Id of etcd volume type
	EtcdVolumeTypeId string `json:"etcdVolumeTypeId"`
	// Ingress Controller feature is enable
	IngressControllerEnabled bool `json:"ingressControllerEnabled,omitempty"`
	// IpIp Mode
	IpipMode string `json:"ipipMode"`
	// Id of K8s Version of the Cluster
	K8sVersion string `json:"k8sVersion"`
	// Number of Master Node
	MasterCount int32 `json:"masterCount"`
	// Id of the flavor of master
	MasterFlavorId string `json:"masterFlavorId"`
	// Id of the image of master
	MasterInstanceTypeId string `json:"masterInstanceTypeId"`
	// Maximum number of node count
	MaxNodeCount int32 `json:"maxNodeCount"`
	// Minimum number of node Count
	MinNodeCount int32 `json:"minNodeCount"`
	// Name of the Cluster
	Name string `json:"name"`
	// Id of the network
	NetworkId string `json:"networkId"`
	// Type of the network
	NetworkType string `json:"networkType"`
	// Number of Minion node
	NodeCount int32 `json:"nodeCount"`
	// Id of the flavor of minion
	NodeFlavorId string `json:"nodeFlavorId"`
	// List of Node Group want to create
	NodeGroupRequestModelList []NodeGroupRequestModel `json:"nodeGroupRequestModelList,omitempty"`
	// Id of the image of minion
	NodeInstanceTypeId string `json:"nodeInstanceTypeId"`
	// List of Id of the secGroup
	SecGroupIds []string `json:"secGroupIds,omitempty"`
	// Id of the sshKey
	SshKeyId string `json:"sshKeyId,omitempty"`
	// Id of the subnet
	SubnetId string `json:"subnetId"`
}

Create K8s Cluster Request

type CreateNetworkAclRequest ¶ added in v0.0.9

type CreateNetworkAclRequest struct {
	// Name of The Network Acl table
	Name string `json:"name"`
	// Uuid of The VPC
	Vpc string `json:"vpc"`
}

type CreateNetworkInterfaceRequest ¶ added in v0.0.15

type CreateNetworkInterfaceRequest struct {
	// Name of network interface
	Name string `json:"name"`
}

Create Network Interface Request

type CreateNetworkRequest ¶

type CreateNetworkRequest struct {
	// Subnet of Network (/16).
	Cidr string `json:"cidr"`
	// Name of the Network
	Name string `json:"name"`
}

Create Network Request

type CreateNodeGroupBackendRequest ¶ added in v1.2.0

type CreateNodeGroupBackendRequest struct {
	// Id of cluster
	ClusterId string `json:"clusterId"`
	// Id of the flavor
	FlavorId string `json:"flavorId"`
	// Name of the node group
	Name string `json:"name"`
	// number of the node in node group
	NodeCount int32 `json:"nodeCount"`
}

type CreateRouteTableRequest ¶ added in v0.0.9

type CreateRouteTableRequest struct {
	// Name of The route table
	Name string `json:"name"`
	// UUID of The VPC
	NetworkId string `json:"networkId"`
	// List of routes for the Route Table
	Routes []RouteRequest `json:"routes,omitempty"`
}

Request object for creating a Route Table

type CreateSecurityGroupRequest ¶

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

type CreateSecurityGroupRuleRequest ¶

type CreateSecurityGroupRuleRequest struct {
	// Description for security group 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"`
	// Lower 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"`
}

Create Server Group Request

type CreateServerRequest ¶

type CreateServerRequest struct {
	// Attach floating IP
	AttachFloating bool `json:"attachFloating,omitempty"`
	// Type encryption of data volume
	DataDiskEncryptionType string `json:"dataDiskEncryptionType,omitempty"`
	// Name of data volume
	DataDiskName string `json:"dataDiskName,omitempty"`
	DataDiskSize int32  `json:"dataDiskSize,omitempty"`
	// Id of data volume type
	DataDiskTypeId string `json:"dataDiskTypeId,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"`
	// 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"`
	// Id of SSH key
	SshKeyId string `json:"sshKeyId,omitempty"`
	// Id of the subnet
	SubnetId string `json:"subnetId"`
	// User data
	UserData string `json:"userData,omitempty"`
	// User data has already been base64 encoded
	UserDataBase64Encoded bool `json:"userDataBase64Encoded,omitempty"`
	// name of user
	UserName string `json:"userName,omitempty"`
	// password of user
	UserPassword string `json:"userPassword,omitempty"`
	// Zone of flavor. You can choose if having multiple zone
	HostGroupId string `json:"hostGroupId,omitempty"`
	// is POC
	IsPoc bool `json:"isPoc,omitempty"`
}

Create Server Request

type CreateSshKeyRequest ¶

type CreateSshKeyRequest struct {
	// Name of the SSH key
	Name string `json:"name"`
}

type CreateSubnetRequest ¶

type CreateSubnetRequest struct {
	// CIDR of Subnet, must be contained in its network.
	Cidr string `json:"cidr"`
	// Name of the Subnet
	Name string `json:"name"`
}

type CreateUserImageRequest ¶ added in v0.0.15

type CreateUserImageRequest struct {
	// Name of image
	Name string `json:"name"`
}

Create User Image Request

type CreateVirtualIpAddressRequest ¶ added in v0.0.15

type CreateVirtualIpAddressRequest struct {
	// description for Virtual IP Address.
	Description string `json:"description,omitempty"`
	// Name of the Virtual IP Address
	Name string `json:"name"`
	// Id of the subnet
	SubnetId string `json:"subnetId"`
}

type CreateVolumeRequest ¶

type CreateVolumeRequest struct {
	// Type encryption of volume
	EncryptionType string `json:"encryptionType,omitempty"`
	// Id of image
	ImageId string `json:"imageId,omitempty"`
	// Multi attach volume or not
	MultiAttach bool `json:"multiAttach,omitempty"`
	// Name of the volume
	Name string `json:"name"`
	// Size of volume
	Size int32 `json:"size"`
	// Id of volume type
	VolumeTypeId string `json:"volumeTypeId"`
	// is POC
	IsPoc bool `json:"isPoc,omitempty"`
}

Create Volume Request

type DataDiskLimit ¶ added in v0.0.15

type DataDiskLimit struct {
	MaxIOPS int32 `json:"maxIOPS,omitempty"`
	MaxSize int32 `json:"maxSize,omitempty"`
	MinSize int32 `json:"minSize,omitempty"`
}

type DataResponse ¶ added in v0.0.15

type DataResponse struct {
	Data interface{} `json:"data,omitempty"`
}

type DataResponseAddressPairDto ¶ added in v1.2.0

type DataResponseAddressPairDto struct {
	Data *AddressPairDto `json:"data,omitempty"`
}

type DataResponseClusterDto ¶ added in v1.2.0

type DataResponseClusterDto struct {
	Data *ClusterDto `json:"data,omitempty"`
}

type DataResponseClusterNodeGroupDto ¶ added in v1.2.0

type DataResponseClusterNodeGroupDto struct {
	Data *ClusterNodeGroupDto `json:"data,omitempty"`
}

type DataResponseCreateAddressPairRequest ¶ added in v1.2.0

type DataResponseCreateAddressPairRequest struct {
	Data *CreateAddressPairRequest `json:"data,omitempty"`
}

type DataResponseInterfaceClusterNodeGroupEntity ¶ added in v1.2.0

type DataResponseInterfaceClusterNodeGroupEntity struct {
	Data *InterfaceClusterNodeGroupEntity `json:"data,omitempty"`
}

type DataResponseInterfaceK8sClusterEntity ¶ added in v1.2.0

type DataResponseInterfaceK8sClusterEntity struct {
	Data *InterfaceK8sClusterEntity `json:"data,omitempty"`
}

type DataResponseInterfaceNetworkInterface ¶ added in v1.2.0

type DataResponseInterfaceNetworkInterface struct {
	Data *InterfaceNetworkInterface `json:"data,omitempty"`
}

type DataResponseJsonObject ¶ added in v0.0.15

type DataResponseJsonObject struct {
	Data map[string]interface{} `json:"data,omitempty"`
}

type DataResponseListAddressPairDto ¶ added in v0.0.15

type DataResponseListAddressPairDto struct {
	Data []AddressPairDto `json:"data,omitempty"`
}

type DataResponseListClusterSecGroupDto ¶ added in v1.2.0

type DataResponseListClusterSecGroupDto struct {
	Data []ClusterSecGroupDto `json:"data,omitempty"`
}

type DataResponseListInternalNetworkInterfaceDto ¶ added in v0.0.15

type DataResponseListInternalNetworkInterfaceDto struct {
	Data []InternalNetworkInterfaceDto `json:"data,omitempty"`
}

type DataResponseListNetworkAclPolicyRuleDto ¶ added in v1.2.0

type DataResponseListNetworkAclPolicyRuleDto struct {
	Data []NetworkAclPolicyRuleDto `json:"data,omitempty"`
}

type DataResponseListQuotaUsedDto ¶ added in v0.0.15

type DataResponseListQuotaUsedDto struct {
	Data []QuotaUsedDto `json:"data,omitempty"`
}

type DataResponseListRegionDto ¶ added in v1.2.0

type DataResponseListRegionDto struct {
	Data []RegionDto `json:"data,omitempty"`
}

type DataResponseListRoutesDto ¶ added in v1.2.0

type DataResponseListRoutesDto struct {
	Data []RoutesDto `json:"data,omitempty"`
}

type DataResponseListSecgroupruleDto ¶ added in v0.0.15

type DataResponseListSecgroupruleDto struct {
	Data []SecgroupruleDto `json:"data,omitempty"`
}

type DataResponseListSecurityGroupRulesSampleEntity ¶ added in v0.0.15

type DataResponseListSecurityGroupRulesSampleEntity struct {
	Data []SecurityGroupRulesSampleEntity `json:"data,omitempty"`
}

type DataResponseListServerAction ¶ added in v0.0.15

type DataResponseListServerAction struct {
	Data []ServerAction `json:"data,omitempty"`
}

type DataResponseListServerGroupPolicy ¶ added in v0.0.15

type DataResponseListServerGroupPolicy struct {
	Data []ServerGroupPolicy `json:"data,omitempty"`
}

type DataResponseListServerOfSecgroupDto ¶ added in v0.0.15

type DataResponseListServerOfSecgroupDto struct {
	Data []ServerOfSecgroupDto `json:"data,omitempty"`
}

type DataResponseListstring ¶ added in v0.0.15

type DataResponseListstring struct {
	Data []string `json:"data,omitempty"`
}

type DataResponseNetworkAclDetailDto ¶ added in v1.2.0

type DataResponseNetworkAclDetailDto struct {
	Data *NetworkAclDetailDto `json:"data,omitempty"`
}

type DataResponseNetworkAclDto ¶ added in v1.2.0

type DataResponseNetworkAclDto struct {
	Data *NetworkAclDto `json:"data,omitempty"`
}

type DataResponseNetworkAclModel ¶ added in v1.2.0

type DataResponseNetworkAclModel struct {
	Data *NetworkAclModel `json:"data,omitempty"`
}

type DataResponseNetworkDto ¶ added in v0.0.15

type DataResponseNetworkDto struct {
	Data *NetworkDto `json:"data,omitempty"`
}

type DataResponseNetworkInterfaceElastic ¶ added in v1.2.0

type DataResponseNetworkInterfaceElastic struct {
	Data *NetworkInterfaceElastic `json:"data,omitempty"`
}

type DataResponseRouteTableDto ¶ added in v1.2.0

type DataResponseRouteTableDto struct {
	Data *RouteTableDto `json:"data,omitempty"`
}

type DataResponseSecgroupDto ¶ added in v0.0.15

type DataResponseSecgroupDto struct {
	Data *SecgroupDto `json:"data,omitempty"`
}

type DataResponseSecgroupEntity ¶ added in v0.0.15

type DataResponseSecgroupEntity struct {
	Data *SecgroupEntity `json:"data,omitempty"`
}

type DataResponseSecgroupRuleEntity ¶ added in v0.0.15

type DataResponseSecgroupRuleEntity struct {
	Data *SecgroupRuleEntity `json:"data,omitempty"`
}

type DataResponseSecgroupruleDto ¶ added in v0.0.15

type DataResponseSecgroupruleDto struct {
	Data *SecgroupruleDto `json:"data,omitempty"`
}

type DataResponseServer ¶ added in v0.0.15

type DataResponseServer struct {
	Data *Server `json:"data,omitempty"`
}

type DataResponseServerGroupDto ¶ added in v0.0.15

type DataResponseServerGroupDto struct {
	Data *ServerGroupDto `json:"data,omitempty"`
}

type DataResponseServerNetworkInterfaceDetail ¶ added in v0.0.15

type DataResponseServerNetworkInterfaceDetail struct {
	Data *ServerNetworkInterfaceDetail `json:"data,omitempty"`
}

type DataResponseServerSecGroupDetail ¶ added in v0.0.15

type DataResponseServerSecGroupDetail struct {
	Data *ServerSecGroupDetail `json:"data,omitempty"`
}

type DataResponseSimpleServer ¶ added in v0.0.15

type DataResponseSimpleServer struct {
	Data *SimpleServer `json:"data,omitempty"`
}

type DataResponseSimpleServerTaskDto ¶ added in v1.2.0

type DataResponseSimpleServerTaskDto struct {
	Data *SimpleServerTaskDto `json:"data,omitempty"`
}

type DataResponseSshKeyDto ¶ added in v0.0.15

type DataResponseSshKeyDto struct {
	Data *SshKeyDto `json:"data,omitempty"`
}

type DataResponseSubnetDto ¶ added in v0.0.15

type DataResponseSubnetDto struct {
	Data *SubnetDto `json:"data,omitempty"`
}

type DataResponseVipDto ¶ added in v1.2.0

type DataResponseVipDto struct {
	Data *VipDto `json:"data,omitempty"`
}

type DataResponseVirtualIpAddressDto ¶ added in v0.0.15

type DataResponseVirtualIpAddressDto struct {
	Data *VirtualIpAddressDto `json:"data,omitempty"`
}

type DataResponseVirtualIpAddressNetworkEntity ¶ added in v0.0.15

type DataResponseVirtualIpAddressNetworkEntity struct {
	Data *VirtualIpAddressNetworkEntity `json:"data,omitempty"`
}

type DataResponseVolume ¶ added in v0.0.15

type DataResponseVolume struct {
	Data *Volume `json:"data,omitempty"`
}

type DataResponseboolean ¶ added in v1.2.0

type DataResponseboolean struct {
	Data bool `json:"data,omitempty"`
}

type DataResponsestring ¶ added in v0.0.15

type DataResponsestring struct {
	Data string `json:"data,omitempty"`
}

type DeleteBandwidthRequest ¶ added in v0.0.15

type DeleteBandwidthRequest struct {
	// Id of Bandwidth
	Id string `json:"id"`
	// Ip of Bandwidth
	Ip string `json:"ip"`
}

Delete Bandwidth Request

type DeleteNetworkRequest ¶

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

Delete Network Request

type DeleteNodeGroupBackendRequest ¶ added in v1.2.0

type DeleteNodeGroupBackendRequest struct {
	// Id of cluster
	ClusterId string `json:"clusterId"`
	// Id of nodegroup
	NodeGroupId string `json:"nodeGroupId"`
}

type DeleteSecurityGroupRequest ¶

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

type DeleteSecurityGroupRuleRequest ¶

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

type DeleteServerGroupRequest ¶ added in v0.0.9

type DeleteServerGroupRequest struct {
	// Id of the server group
	ServerGroupId string `json:"serverGroupId"`
}

Delete Server Group Request

type DeleteServerRequest ¶

type DeleteServerRequest struct {
	// Delete all volume are attached
	DeleteAllVolume bool `json:"deleteAllVolume,omitempty"`
}

Delete Server Request

type DeleteSshKeyRequest ¶ added in v0.0.15

type DeleteSshKeyRequest struct {
	Id string `json:"id,omitempty"`
}

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 {
}

Delete Volume Request

type DetachExternalNetworkInterfaceRequest ¶ added in v0.0.15

type DetachExternalNetworkInterfaceRequest struct {
	// Network interface id
	NetworkInterfaceId string `json:"networkInterfaceId,omitempty"`
}

Detach External Network Interface Request

type DetachNetworkInterfaceRequest ¶ added in v0.0.15

type DetachNetworkInterfaceRequest struct {
	// List Id of network interface
	NetworkInterfaceIds []string `json:"networkInterfaceIds,omitempty"`
}

Detach Network Interface Request

type DetachNetworkInterfaceWithWanIpRequest ¶ added in v1.2.0

type DetachNetworkInterfaceWithWanIpRequest struct {
	// List Id of network interface
	NetworkInterfaceId string `json:"networkInterfaceId,omitempty"`
	// Id of server
	ServerId string `json:"serverId,omitempty"`
	// Tags of resource
	Tags []TagRequest `json:"tags,omitempty"`
}

Detach Network Interface With Subnet And Floating Ip Request

type DetachVolumeRequest ¶

type DetachVolumeRequest struct {
}

Detach Volume Request

type EditSecurityGroupRequest ¶

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

type ElasticIpDetail ¶ added in v0.0.15

type ElasticIpDetail struct {
	AllocationType            string                           `json:"allocationType,omitempty"`
	CreatedAt                 time.Time                        `json:"createdAt,omitempty"`
	ElasticIpPackage          int32                            `json:"elasticIpPackage,omitempty"`
	InterfaceNetworkInterface *InterfaceNetworkInterfaceEntity `json:"interfaceNetworkInterface,omitempty"`
	InterfacePublicIp         *InterfacePublicIpEntity         `json:"interfacePublicIp,omitempty"`
	InterfacePublicSubnet     *InterfacePublicSubnetEntity     `json:"interfacePublicSubnet,omitempty"`
	Name                      string                           `json:"name,omitempty"`
	ProjectId                 string                           `json:"projectId,omitempty"`
	PublicIpId                string                           `json:"publicIpId,omitempty"`
	PublicSubnetId            string                           `json:"publicSubnetId,omitempty"`
	Status                    string                           `json:"status,omitempty"`
	TargetId                  string                           `json:"targetId,omitempty"`
	UpdatedAt                 time.Time                        `json:"updatedAt,omitempty"`
	UsageType                 string                           `json:"usageType,omitempty"`
	Uuid                      string                           `json:"uuid,omitempty"`
	VpcId                     string                           `json:"vpcId,omitempty"`
	VpcName                   string                           `json:"vpcName,omitempty"`
}

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 ElasticIpRestControllerV2ApiListElasticIpUsingGETOpts ¶ added in v0.0.15

type ElasticIpRestControllerV2ApiListElasticIpUsingGETOpts struct {
	Name optional.String
	Page optional.Int32
	Size optional.Int32
}

type ElasticIpRestControllerV2ApiService ¶ added in v0.0.15

type ElasticIpRestControllerV2ApiService service

func (*ElasticIpRestControllerV2ApiService) ListElasticIpUsingGET ¶ added in v0.0.15

type ElasticOfNetworkDto ¶ added in v0.0.15

type ElasticOfNetworkDto struct {
	AllocationType        string                    `json:"allocationType,omitempty"`
	CreatedAt             time.Time                 `json:"createdAt,omitempty"`
	InterfacePublicSubnet *InterfacePublicSubnetDto `json:"interfacePublicSubnet,omitempty"`
	Name                  string                    `json:"name,omitempty"`
	UsageType             string                    `json:"usageType,omitempty"`
	Uuid                  string                    `json:"uuid,omitempty"`
}

type EncryptionType ¶ added in v0.0.15

type EncryptionType struct {
	DisplayKey string `json:"displayKey,omitempty"`
	Key        string `json:"key,omitempty"`
}

type Family ¶ added in v0.0.15

type Family struct {
	Condition   *FamilyCondition `json:"condition,omitempty"`
	Description string           `json:"description,omitempty"`
	Key         string           `json:"key,omitempty"`
	Types       []TypesItem      `json:"types,omitempty"`
	Value       string           `json:"value,omitempty"`
}

type FamilyCondition ¶ added in v0.0.15

type FamilyCondition struct {
	Codes []string `json:"codes,omitempty"`
}

type Flavor ¶

type Flavor struct {
	Bandwidth              int32  `json:"bandwidth,omitempty"`
	BandwidthUnit          string `json:"bandwidthUnit,omitempty"`
	Cpu                    int32  `json:"cpu,omitempty"`
	CpuPlatformDescription string `json:"cpuPlatformDescription,omitempty"`
	FlavorId               string `json:"flavorId,omitempty"`
	Gpu                    int32  `json:"gpu,omitempty"`
	Group                  string `json:"group,omitempty"`
	Memory                 int32  `json:"memory,omitempty"`
	Name                   string `json:"name,omitempty"`
	RemainingVms           int32  `json:"remainingVms,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) ListFlavorByFamilyAndPlatformUsingGET ¶ added in v0.0.15

func (a *FlavorRestControllerApiService) ListFlavorByFamilyAndPlatformUsingGET(ctx context.Context, familyKey string, platformKey string, projectId string) ([]Flavor, *http.Response, error)

FlavorRestControllerApiService List flavor custom for project

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

@return []Flavor

func (*FlavorRestControllerApiService) ListFlavorCustomUsingGET ¶ added in v0.0.15

func (a *FlavorRestControllerApiService) ListFlavorCustomUsingGET(ctx context.Context, projectId string) ([]Flavor, *http.Response, error)

FlavorRestControllerApiService List flavor custom for project

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

@return []Flavor

func (*FlavorRestControllerApiService) ListFlavorForSimpleServerUsingGET ¶ added in v0.0.15

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

FlavorRestControllerApiService List flavor for simple 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 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 {
	Description string `json:"description,omitempty"`
	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) ListCodeUsingGET ¶ added in v0.0.15

func (a *FlavorZoneRestControllerApiService) ListCodeUsingGET(ctx context.Context, projectId string) ([]Code, *http.Response, error)

FlavorZoneRestControllerApiService listCode

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

@return []Code

func (*FlavorZoneRestControllerApiService) ListCustomUsingGET ¶ added in v0.0.15

func (a *FlavorZoneRestControllerApiService) ListCustomUsingGET(ctx context.Context, projectId string) ([]FlavorZone, *http.Response, error)

FlavorZoneRestControllerApiService listCustom

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

@return []FlavorZone

func (*FlavorZoneRestControllerApiService) ListFamilyUsingGET ¶ added in v0.0.15

func (a *FlavorZoneRestControllerApiService) ListFamilyUsingGET(ctx context.Context, projectId string) ([]Family, *http.Response, error)

FlavorZoneRestControllerApiService listFamily

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

@return []Family

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

func (*FlavorZoneRestControllerApiService) ListFlavorZoneUsingGET1 ¶ added in v0.0.15

func (a *FlavorZoneRestControllerApiService) ListFlavorZoneUsingGET1(ctx context.Context, product string, 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 product product
  • @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) ListGPUImageUsingGET ¶ added in v0.0.15

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

ImageRestControllerApiService listGPUImage

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

@return OsImageBaseResponse

func (*ImageRestControllerApiService) ListOSImageDefaultUsingGET ¶ added in v0.0.15

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

ImageRestControllerApiService listOSImageDefault

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

@return string

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 of the SSH key
	Name   string `json:"name"`
	PubKey string `json:"pubKey,omitempty"`
}

type InterfaceClusterNodeGroupEntity ¶ added in v1.2.0

type InterfaceClusterNodeGroupEntity struct {
	BackendStatus      string    `json:"backendStatus,omitempty"`
	ClusterId          string    `json:"clusterId,omitempty"`
	ClusterNodeGroupId int32     `json:"clusterNodeGroupId,omitempty"`
	CreatedAt          time.Time `json:"createdAt,omitempty"`
	DeletedAt          time.Time `json:"deletedAt,omitempty"`
	FlavorId           string    `json:"flavorId,omitempty"`
	Id                 int32     `json:"id,omitempty"`
	Name               string    `json:"name,omitempty"`
	NodeCount          int32     `json:"nodeCount,omitempty"`
	NodeGroupDefault   bool      `json:"nodeGroupDefault,omitempty"`
	ProjectId          string    `json:"projectId,omitempty"`
	Status             string    `json:"status,omitempty"`
	UpdatedAt          time.Time `json:"updatedAt,omitempty"`
	Uuid               string    `json:"uuid,omitempty"`
}

type InterfaceK8SClusterDetail ¶ added in v0.0.15

type InterfaceK8SClusterDetail struct {
	AclId                    string    `json:"aclId,omitempty"`
	AutoHealingEnabled       bool      `json:"autoHealingEnabled,omitempty"`
	AutoMonitoringEnabled    bool      `json:"autoMonitoringEnabled,omitempty"`
	AutoScalingEnabled       bool      `json:"autoScalingEnabled,omitempty"`
	BackendStatus            string    `json:"backendStatus,omitempty"`
	BootVolumeSize           int32     `json:"bootVolumeSize,omitempty"`
	BootVolumeTypeId         string    `json:"bootVolumeTypeId,omitempty"`
	CalicoCidr               string    `json:"calicoCidr,omitempty"`
	ClusterId                int32     `json:"clusterId,omitempty"`
	CreatedAt                time.Time `json:"createdAt,omitempty"`
	DeletedAt                time.Time `json:"deletedAt,omitempty"`
	Description              string    `json:"description,omitempty"`
	DockerVolumeSize         int32     `json:"dockerVolumeSize,omitempty"`
	DockerVolumeTypeId       string    `json:"dockerVolumeTypeId,omitempty"`
	EnabledLb                bool      `json:"enabledLb,omitempty"`
	Endpoint                 string    `json:"endpoint,omitempty"`
	EtcdVolumeSize           int32     `json:"etcdVolumeSize,omitempty"`
	EtcdVolumeTypeId         string    `json:"etcdVolumeTypeId,omitempty"`
	Id                       int32     `json:"id,omitempty"`
	IngressControllerEnabled bool      `json:"ingressControllerEnabled,omitempty"`
	K8sNetworkType           string    `json:"k8sNetworkType,omitempty"`
	K8sNetworkTypeId         string    `json:"k8sNetworkTypeId,omitempty"`
	K8sVersion               string    `json:"k8sVersion,omitempty"`
	K8sVersionId             string    `json:"k8sVersionId,omitempty"`
	MasterCount              int32     `json:"masterCount,omitempty"`
	MasterFlavorId           string    `json:"masterFlavorId,omitempty"`
	MasterFlavorName         string    `json:"masterFlavorName,omitempty"`
	MasterInstanceTypeId     string    `json:"masterInstanceTypeId,omitempty"`
	MaxNodeCount             int32     `json:"maxNodeCount,omitempty"`
	MinNodeCount             int32     `json:"minNodeCount,omitempty"`
	Name                     string    `json:"name,omitempty"`
	NetworkId                string    `json:"networkId,omitempty"`
	NodeCount                int32     `json:"nodeCount,omitempty"`
	NodeFlavorId             string    `json:"nodeFlavorId,omitempty"`
	NodeFlavorName           string    `json:"nodeFlavorName,omitempty"`
	NodeInstanceTypeId       string    `json:"nodeInstanceTypeId,omitempty"`
	ProjectId                string    `json:"projectId,omitempty"`
	SshKeyId                 string    `json:"sshKeyId,omitempty"`
	SshKeyName               string    `json:"sshKeyName,omitempty"`
	Status                   string    `json:"status,omitempty"`
	SubnetId                 string    `json:"subnetId,omitempty"`
	UpdatedAt                time.Time `json:"updatedAt,omitempty"`
	Uuid                     string    `json:"uuid,omitempty"`
}

type InterfaceK8SClusterDto ¶ added in v1.2.0

type InterfaceK8SClusterDto struct {
	AclId                    string    `json:"aclId,omitempty"`
	AutoHealingEnabled       bool      `json:"autoHealingEnabled,omitempty"`
	AutoMonitoringEnabled    bool      `json:"autoMonitoringEnabled,omitempty"`
	AutoScalingEnabled       bool      `json:"autoScalingEnabled,omitempty"`
	BackendStatus            string    `json:"backendStatus,omitempty"`
	BootVolumeSize           int32     `json:"bootVolumeSize,omitempty"`
	BootVolumeTypeId         string    `json:"bootVolumeTypeId,omitempty"`
	CalicoCidr               string    `json:"calicoCidr,omitempty"`
	ClusterId                int32     `json:"clusterId,omitempty"`
	CreatedAt                time.Time `json:"createdAt,omitempty"`
	Description              string    `json:"description,omitempty"`
	DockerVolumeSize         int32     `json:"dockerVolumeSize,omitempty"`
	DockerVolumeTypeId       string    `json:"dockerVolumeTypeId,omitempty"`
	EnabledLb                bool      `json:"enabledLb,omitempty"`
	Endpoint                 string    `json:"endpoint,omitempty"`
	EtcdVolumeSize           int32     `json:"etcdVolumeSize,omitempty"`
	EtcdVolumeTypeId         string    `json:"etcdVolumeTypeId,omitempty"`
	Id                       int32     `json:"id,omitempty"`
	IngressControllerEnabled bool      `json:"ingressControllerEnabled,omitempty"`
	K8sNetworkType           string    `json:"k8sNetworkType,omitempty"`
	K8sNetworkTypeId         string    `json:"k8sNetworkTypeId,omitempty"`
	K8sVersion               string    `json:"k8sVersion,omitempty"`
	K8sVersionId             string    `json:"k8sVersionId,omitempty"`
	MasterCount              int32     `json:"masterCount,omitempty"`
	MasterFlavorId           string    `json:"masterFlavorId,omitempty"`
	MasterFlavorName         string    `json:"masterFlavorName,omitempty"`
	MasterInstanceTypeId     string    `json:"masterInstanceTypeId,omitempty"`
	MaxNodeCount             int32     `json:"maxNodeCount,omitempty"`
	MinNodeCount             int32     `json:"minNodeCount,omitempty"`
	Name                     string    `json:"name,omitempty"`
	NetworkId                string    `json:"networkId,omitempty"`
	NodeCount                int32     `json:"nodeCount,omitempty"`
	NodeFlavorId             string    `json:"nodeFlavorId,omitempty"`
	NodeFlavorName           string    `json:"nodeFlavorName,omitempty"`
	NodeInstanceTypeId       string    `json:"nodeInstanceTypeId,omitempty"`
	ProjectId                string    `json:"projectId,omitempty"`
	SshKeyId                 string    `json:"sshKeyId,omitempty"`
	SshKeyName               string    `json:"sshKeyName,omitempty"`
	Status                   string    `json:"status,omitempty"`
	SubnetId                 string    `json:"subnetId,omitempty"`
	UpdatedAt                time.Time `json:"updatedAt,omitempty"`
	Uuid                     string    `json:"uuid,omitempty"`
}

type InterfaceK8sClusterEntity ¶ added in v1.2.0

type InterfaceK8sClusterEntity struct {
	AclId                    string    `json:"aclId,omitempty"`
	AutoHealingEnabled       bool      `json:"autoHealingEnabled,omitempty"`
	AutoMonitoringEnabled    bool      `json:"autoMonitoringEnabled,omitempty"`
	AutoScalingEnabled       bool      `json:"autoScalingEnabled,omitempty"`
	BackendStatus            string    `json:"backendStatus,omitempty"`
	BootVolumeSize           int32     `json:"bootVolumeSize,omitempty"`
	BootVolumeTypeId         string    `json:"bootVolumeTypeId,omitempty"`
	CalicoCidr               string    `json:"calicoCidr,omitempty"`
	ClusterId                int32     `json:"clusterId,omitempty"`
	CreatedAt                time.Time `json:"createdAt,omitempty"`
	DeletedAt                time.Time `json:"deletedAt,omitempty"`
	Description              string    `json:"description,omitempty"`
	DockerVolumeSize         int32     `json:"dockerVolumeSize,omitempty"`
	DockerVolumeTypeId       string    `json:"dockerVolumeTypeId,omitempty"`
	EnabledLb                bool      `json:"enabledLb,omitempty"`
	Endpoint                 string    `json:"endpoint,omitempty"`
	EtcdVolumeSize           int32     `json:"etcdVolumeSize,omitempty"`
	EtcdVolumeTypeId         string    `json:"etcdVolumeTypeId,omitempty"`
	Id                       int32     `json:"id,omitempty"`
	IngressControllerEnabled bool      `json:"ingressControllerEnabled,omitempty"`
	K8sNetworkTypeId         string    `json:"k8sNetworkTypeId,omitempty"`
	K8sVersionId             string    `json:"k8sVersionId,omitempty"`
	MasterCount              int32     `json:"masterCount,omitempty"`
	MasterFlavorId           string    `json:"masterFlavorId,omitempty"`
	MasterInstanceTypeId     string    `json:"masterInstanceTypeId,omitempty"`
	MaxNodeCount             int32     `json:"maxNodeCount,omitempty"`
	MinNodeCount             int32     `json:"minNodeCount,omitempty"`
	Name                     string    `json:"name,omitempty"`
	NetworkId                string    `json:"networkId,omitempty"`
	NodeCount                int32     `json:"nodeCount,omitempty"`
	NodeFlavorId             string    `json:"nodeFlavorId,omitempty"`
	NodeInstanceTypeId       string    `json:"nodeInstanceTypeId,omitempty"`
	ProjectId                string    `json:"projectId,omitempty"`
	SshKeyId                 string    `json:"sshKeyId,omitempty"`
	Status                   string    `json:"status,omitempty"`
	SubnetId                 string    `json:"subnetId,omitempty"`
	UpdatedAt                time.Time `json:"updatedAt,omitempty"`
	Uuid                     string    `json:"uuid,omitempty"`
}

type InterfaceNetworkInterface ¶

type InterfaceNetworkInterface struct {
	CreatedAt     time.Time `json:"createdAt,omitempty"`
	FixedIp       string    `json:"fixedIp,omitempty"`
	FloatingIp    string    `json:"floatingIp,omitempty"`
	FloatingIpId  string    `json:"floatingIpId,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 InterfaceNetworkInterfaceEntity ¶ added in v0.0.15

type InterfaceNetworkInterfaceEntity struct {
	CreatedAt     time.Time `json:"createdAt,omitempty"`
	DeletedAt     time.Time `json:"deletedAt,omitempty"`
	FixedIp       string    `json:"fixedIp,omitempty"`
	FloatingIp    string    `json:"floatingIp,omitempty"`
	Id            int32     `json:"id,omitempty"`
	InterfaceId   int32     `json:"interfaceId,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 InterfacePublicIpEntity ¶ added in v0.0.15

type InterfacePublicIpEntity 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 InterfacePublicSubnetDto ¶ added in v0.0.15

type InterfacePublicSubnetDto 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 InterfacePublicSubnetEntity ¶ added in v0.0.15

type InterfacePublicSubnetEntity 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 InternalNetworkInterfaceDto ¶ added in v0.0.15

type InternalNetworkInterfaceDto struct {
	FixedIp    string `json:"fixedIp,omitempty"`
	SubnetUuid string `json:"subnetUuid,omitempty"`
	Uuid       string `json:"uuid,omitempty"`
}

type JsonObject ¶ added in v0.0.15

type JsonObject struct {
}

type K8SClusterRestControllerV2ApiListClusterUsingGETOpts ¶ added in v0.0.15

type K8SClusterRestControllerV2ApiListClusterUsingGETOpts struct {
	Name optional.String
	Page optional.Int32
	Size optional.Int32
}

type K8SClusterRestControllerV2ApiService ¶ added in v0.0.15

type K8SClusterRestControllerV2ApiService service

func (*K8SClusterRestControllerV2ApiService) AttachToLbUsingPOST ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) AttachToLbUsingPOST(ctx context.Context, attachToLoadBalancerBackendRequest AttachToLoadBalancerBackendRequest, clusterId string, projectId string) (DataResponseSimpleServerTaskDto, *http.Response, error)

K8SClusterRestControllerV2ApiService Attach Load Balancer

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

@return DataResponseSimpleServerTaskDto

func (*K8SClusterRestControllerV2ApiService) CreateClusterNodeGroupUsingPOST ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) CreateClusterNodeGroupUsingPOST(ctx context.Context, clusterId string, createNodeGroupBackendRequest CreateNodeGroupBackendRequest, projectId string) (DataResponseClusterNodeGroupDto, *http.Response, error)

K8SClusterRestControllerV2ApiService Create Cluster Node Group

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

@return DataResponseClusterNodeGroupDto

func (*K8SClusterRestControllerV2ApiService) CreateClusterUsingPOST ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) CreateClusterUsingPOST(ctx context.Context, createClusterRequest CreateClusterRequest, projectId string) (DataResponseClusterDto, *http.Response, error)

K8SClusterRestControllerV2ApiService Create cluster

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

@return DataResponseClusterDto

func (*K8SClusterRestControllerV2ApiService) DeleteClusterNodeGroupUsingDELETE ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) DeleteClusterNodeGroupUsingDELETE(ctx context.Context, nodeGroupId string, projectId string) (DataResponseClusterNodeGroupDto, *http.Response, error)

K8SClusterRestControllerV2ApiService Delete Cluster Node Group

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

@return DataResponseClusterNodeGroupDto

func (*K8SClusterRestControllerV2ApiService) DeleteClusterUsingDELETE ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) DeleteClusterUsingDELETE(ctx context.Context, clusterId string, projectId string) (DataResponseClusterDto, *http.Response, error)

K8SClusterRestControllerV2ApiService Delete Cluster

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

@return DataResponseClusterDto

func (*K8SClusterRestControllerV2ApiService) GetClusterNodeGroupUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) GetClusterNodeGroupUsingGET(ctx context.Context, nodegroupId string, projectId string) (DataResponseClusterNodeGroupDto, *http.Response, error)

K8SClusterRestControllerV2ApiService Get Cluster Node Group

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

@return ClusterNodeGroupDto

func (*K8SClusterRestControllerV2ApiService) GetClusterUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) GetClusterUsingGET(ctx context.Context, clusterId string, projectId string) (DataResponseClusterDto, *http.Response, error)

K8SClusterRestControllerV2ApiService Get cluster

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

@return DataResponseClusterDto

func (*K8SClusterRestControllerV2ApiService) GetConfigUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) GetConfigUsingGET(ctx context.Context, clusterId string, projectId string) (ClusterConfigResultDto, *http.Response, error)

K8SClusterRestControllerV2ApiService Get Config

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

@return ClusterConfigResultDto

func (*K8SClusterRestControllerV2ApiService) GetConsoleUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) GetConsoleUsingGET(ctx context.Context, projectId string, serverId string) (NodeConsoleResultDto, *http.Response, error)

K8SClusterRestControllerV2ApiService Get Console

  • @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 NodeConsoleResultDto

func (*K8SClusterRestControllerV2ApiService) GetEtcdPackageUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) GetEtcdPackageUsingGET(ctx context.Context, projectId string) ([]K8SEtcdPackageEntity, *http.Response, error)

K8SClusterRestControllerV2ApiService List K8s ETCD Package

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

@return []K8SEtcdPackageEntity

func (*K8SClusterRestControllerV2ApiService) GetFlavorLimitUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) GetFlavorLimitUsingGET(ctx context.Context, projectId string) (string, *http.Response, error)

K8SClusterRestControllerV2ApiService Get Flavor Limit

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

@return string

func (*K8SClusterRestControllerV2ApiService) GetK8sConfigUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) GetK8sConfigUsingGET(ctx context.Context, projectId string) (string, *http.Response, error)

K8SClusterRestControllerV2ApiService Get K8s Config

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

@return string

func (*K8SClusterRestControllerV2ApiService) GetK8sDefaultFlavorIdUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) GetK8sDefaultFlavorIdUsingGET(ctx context.Context, projectId string) (string, *http.Response, error)

K8SClusterRestControllerV2ApiService Get K8s Default Flavor Id

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

@return string

func (*K8SClusterRestControllerV2ApiService) GetK8sVolumeConfigUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) GetK8sVolumeConfigUsingGET(ctx context.Context, projectId string) (string, *http.Response, error)

K8SClusterRestControllerV2ApiService Get K8s Volume Config

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

@return string

func (*K8SClusterRestControllerV2ApiService) GetMaxNodeCountUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) GetMaxNodeCountUsingGET(ctx context.Context, projectId string) (int32, *http.Response, error)

K8SClusterRestControllerV2ApiService Get max node count

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

@return int32

func (*K8SClusterRestControllerV2ApiService) GetNodeByIdUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) GetNodeByIdUsingGET(ctx context.Context, clusterId string, nodeGroupId string, projectId string) ([]ClusterNodeDto, *http.Response, error)

K8SClusterRestControllerV2ApiService List node

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

@return []ClusterNodeDto

func (*K8SClusterRestControllerV2ApiService) GetServerTaskStatusUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) GetServerTaskStatusUsingGET(ctx context.Context, clusterId string, projectId string, serverTaskId string) (string, *http.Response, error)

K8SClusterRestControllerV2ApiService Get Server Task Status

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

@return string

func (*K8SClusterRestControllerV2ApiService) ListClusterNodeGroupUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) ListClusterNodeGroupUsingGET(ctx context.Context, clusterId string, projectId string) ([]SimpleClusterNodeGroupDto, *http.Response, error)

K8SClusterRestControllerV2ApiService List Cluster Node Group

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

@return []SimpleClusterNodeGroupDto

func (*K8SClusterRestControllerV2ApiService) ListClusterPoolByClusterUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) ListClusterPoolByClusterUsingGET(ctx context.Context, clusterId string, projectId string) ([]ClusterPoolDto, *http.Response, error)

K8SClusterRestControllerV2ApiService List cluster pools

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

@return []ClusterPoolDto

func (*K8SClusterRestControllerV2ApiService) ListClusterUsingGET ¶ added in v0.0.15

func (*K8SClusterRestControllerV2ApiService) ListK8sNetworkTypeUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) ListK8sNetworkTypeUsingGET(ctx context.Context, projectId string) ([]K8sNetworkTypeDto, *http.Response, error)

K8SClusterRestControllerV2ApiService List K8s Networks Type

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

@return []K8sNetworkTypeDto

func (*K8SClusterRestControllerV2ApiService) ListK8sVersionUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) ListK8sVersionUsingGET(ctx context.Context, projectId string) ([]K8sVersionDto, *http.Response, error)

K8SClusterRestControllerV2ApiService List K8s Version

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

@return []K8sVersionDto

func (*K8SClusterRestControllerV2ApiService) ListNodeUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) ListNodeUsingGET(ctx context.Context, clusterId string, projectId string) ([]ClusterNodeDto, *http.Response, error)

K8SClusterRestControllerV2ApiService List node

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

@return []ClusterNodeDto

func (*K8SClusterRestControllerV2ApiService) ListSecGroupUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) ListSecGroupUsingGET(ctx context.Context, clusterId string, projectId string, type_ bool) ([]ClusterSecGroupDto, *http.Response, error)

K8SClusterRestControllerV2ApiService Get Cluster Sec Group Detail

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

@return []ClusterSecGroupDto

func (*K8SClusterRestControllerV2ApiService) ListSecgroupDefaultUsingGET ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) ListSecgroupDefaultUsingGET(ctx context.Context, clusterId string, projectId string) ([]ClusterSecgroupDefault, *http.Response, error)

K8SClusterRestControllerV2ApiService List Secgroup Default

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

@return []ClusterSecgroupDefault

func (*K8SClusterRestControllerV2ApiService) ListVolumeUsingGET3 ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) ListVolumeUsingGET3(ctx context.Context, clusterId string, projectId string) ([]ClusterVolumeDto, *http.Response, error)

K8SClusterRestControllerV2ApiService List volume

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

@return []ClusterVolumeDto

func (*K8SClusterRestControllerV2ApiService) ScaleMinionUsingPOST ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) ScaleMinionUsingPOST(ctx context.Context, clusterId string, projectId string, nodeGroupId string, scaleMinionBackendRequest ScaleMinionBackendRequest) (DataResponseSimpleServerTaskDto, *http.Response, error)

K8SClusterRestControllerV2ApiService Scale Minion

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

@return DataResponseSimpleServerTaskDto

func (*K8SClusterRestControllerV2ApiService) UpdateClusterDescriptionUsingPut ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) UpdateClusterDescriptionUsingPut(ctx context.Context, projectId string, clusterId string, updateClusterDescriptionRequest UpdateClusterDescriptionRequest) (DataResponseClusterDto, *http.Response, error)

K8SClusterRestControllerV2ApiService Update Cluster Description

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

@return DataResponseClusterDto

func (*K8SClusterRestControllerV2ApiService) UpdateSecGroupUsingPUT ¶ added in v1.2.0

func (a *K8SClusterRestControllerV2ApiService) UpdateSecGroupUsingPUT(ctx context.Context, projectId string, clusterId string, updateClusterSecGroupRequest UpdateClusterSecGroupRequest) (DataResponseListClusterSecGroupDto, *http.Response, error)

K8SClusterRestControllerV2ApiService Update sec 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 updateClusterSecGroupRequest updateClusterSecGroupRequest

@return DataResponseListClusterSecGroupDto

type K8SEtcdPackageEntity ¶ added in v1.2.0

type K8SEtcdPackageEntity struct {
	Description   string `json:"description,omitempty"`
	DescriptionVi string `json:"descriptionVi,omitempty"`
	Name          string `json:"name,omitempty"`
	Size          int32  `json:"size,omitempty"`
	Status        string `json:"status,omitempty"`
	Uuid          string `json:"uuid,omitempty"`
	VolumeTypeId  string `json:"volumeTypeId,omitempty"`
}

type K8sNetworkTypeDto ¶ added in v1.2.0

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

type K8sVersionDto ¶ added in v1.2.0

type K8sVersionDto struct {
	Name   string `json:"name,omitempty"`
	Status string `json:"status,omitempty"`
	Uuid   string `json:"uuid,omitempty"`
	Weight string `json:"weight,omitempty"`
}

type ListResourceIpRequest ¶ added in v0.0.15

type ListResourceIpRequest struct {
	// Types of resources. (if you want to get ips of all resources, let it be null)
	TypeOfResources []string `json:"typeOfResources"`
}

Get Resource Ips

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 LoadBalancerItem ¶ added in v1.2.0

type LoadBalancerItem struct {
	LoadBalancerId string     `json:"loadBalancerId,omitempty"`
	Pools          []PoolItem `json:"pools,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 NetworkAclDetailDto ¶ added in v1.2.0

type NetworkAclDetailDto struct {
	AclPolicyId           string          `json:"aclPolicyId,omitempty"`
	AclPolicyRules        []AclPolicyRule `json:"aclPolicyRules,omitempty"`
	CreatedAt             time.Time       `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 NetworkAclDto ¶ added in v1.2.0

type NetworkAclDto struct {
	CreatedAt            time.Time `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"`
	Uuid                 string    `json:"uuid,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             time.Time       `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 NetworkAclPolicyRuleDto ¶ added in v1.2.0

type NetworkAclPolicyRuleDto 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              int32     `json:"seqNumber,omitempty"`
	Source                 string    `json:"source,omitempty"`
	Type_                  string    `json:"type,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 NetworkAclRestControllerV2ApiService ¶ added in v1.2.0

type NetworkAclRestControllerV2ApiService service

func (*NetworkAclRestControllerV2ApiService) CreateNetworkAclUsingPOST1 ¶ added in v1.2.0

func (a *NetworkAclRestControllerV2ApiService) CreateNetworkAclUsingPOST1(ctx context.Context, createNetworkAclRequest CreateNetworkAclRequest, projectId string) (DataResponseNetworkAclDto, *http.Response, error)

NetworkAclRestControllerV2ApiService 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 DataResponseNetworkAclDto

func (*NetworkAclRestControllerV2ApiService) DeleteNetworkAclUsingDELETE1 ¶ added in v1.2.0

func (a *NetworkAclRestControllerV2ApiService) DeleteNetworkAclUsingDELETE1(ctx context.Context, networkAclUuid string, projectId string) (*http.Response, error)

NetworkAclRestControllerV2ApiService Delete Network-acl

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

func (*NetworkAclRestControllerV2ApiService) GetNetworkAclPolicyRulesUsingGET ¶ added in v1.2.0

func (a *NetworkAclRestControllerV2ApiService) GetNetworkAclPolicyRulesUsingGET(ctx context.Context, projectId string, uuid string) (DataResponseListNetworkAclPolicyRuleDto, *http.Response, error)

NetworkAclRestControllerV2ApiService Get Network-Acl Policy rules (inbound/outbound) 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 DataResponseListNetworkAclPolicyRuleDto

func (*NetworkAclRestControllerV2ApiService) GetNetworkAclUsingGET1 ¶ added in v1.2.0

NetworkAclRestControllerV2ApiService Get Detail 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 DataResponseNetworkAclDetailDto

func (*NetworkAclRestControllerV2ApiService) GetNetworkAclsUsingGET ¶ added in v1.2.0

func (a *NetworkAclRestControllerV2ApiService) GetNetworkAclsUsingGET(ctx context.Context, name string, page string, projectId string, size string) (PagingNetworkAclDto, *http.Response, error)

NetworkAclRestControllerV2ApiService List network-acl by project id and network acl uuid

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

@return PagingNetworkAclDto

func (*NetworkAclRestControllerV2ApiService) UpdateAssociatedSubnetsUsingPUT1 ¶ added in v1.2.0

func (a *NetworkAclRestControllerV2ApiService) UpdateAssociatedSubnetsUsingPUT1(ctx context.Context, projectId string, updateSubnetsRequest UpdateNetworkAclSubnetsRequest, uuid string) (DataResponseNetworkAclDto, *http.Response, error)

NetworkAclRestControllerV2ApiService Update associated Subnets ACL 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 DataResponseNetworkAclDto

func (*NetworkAclRestControllerV2ApiService) UpdateRulesUsingPUT1 ¶ added in v1.2.0

func (a *NetworkAclRestControllerV2ApiService) UpdateRulesUsingPUT1(ctx context.Context, projectId string, updateAclRulesRequest UpdateNetworkAclRulesRequest, uuid string) (DataResponseNetworkAclModel, *http.Response, error)

NetworkAclRestControllerV2ApiService 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 DataResponseNetworkAclModel

type NetworkDto ¶ added in v0.0.15

type NetworkDto struct {
	Cidr        string                `json:"cidr,omitempty"`
	CreatedAt   time.Time             `json:"createdAt,omitempty"`
	DisplayName string                `json:"displayName,omitempty"`
	ElasticIps  []ElasticOfNetworkDto `json:"elasticIps,omitempty"`
	Id          string                `json:"id,omitempty"`
	Status      string                `json:"status,omitempty"`
}

type NetworkInterfaceElastic ¶ added in v0.0.15

type NetworkInterfaceElastic struct {
	CreatedAt   time.Time `json:"createdAt,omitempty"`
	ElasticIpId string    `json:"elasticIpId,omitempty"`
	Ip          string    `json:"ip,omitempty"`
	Name        string    `json:"name,omitempty"`
	ProjectId   string    `json:"projectId,omitempty"`
	ServerId    string    `json:"serverId,omitempty"`
	ServerName  string    `json:"serverName,omitempty"`
	Status      string    `json:"status,omitempty"`
	UpdatedAt   time.Time `json:"updatedAt,omitempty"`
	Uuid        string    `json:"uuid,omitempty"`
	VpcId       string    `json:"vpcId,omitempty"`
	VpcName     string    `json:"vpcName,omitempty"`
}

type NetworkInterfaceElasticRestControllerV2ApiListNetworkInterfaceElasticUsingGETOpts ¶ added in v0.0.15

type NetworkInterfaceElasticRestControllerV2ApiListNetworkInterfaceElasticUsingGETOpts struct {
	Name optional.String
	Page optional.Int32
	Size optional.Int32
}

type NetworkInterfaceElasticRestControllerV2ApiService ¶ added in v0.0.15

type NetworkInterfaceElasticRestControllerV2ApiService service

func (*NetworkInterfaceElasticRestControllerV2ApiService) CreateNetworkInterfaceElasticUsingPOST ¶ added in v0.0.15

func (a *NetworkInterfaceElasticRestControllerV2ApiService) CreateNetworkInterfaceElasticUsingPOST(ctx context.Context, createNetworkInterfaceRequest CreateNetworkInterfaceRequest, projectId string) (DataResponseNetworkInterfaceElastic, *http.Response, error)

NetworkInterfaceElasticRestControllerV2ApiService Create Network Interface Elastic

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

@return DataResponseNetworkInterfaceElastic

func (*NetworkInterfaceElasticRestControllerV2ApiService) DeleteNetworkInterfaceElasticUsingDELETE ¶ added in v0.0.15

func (a *NetworkInterfaceElasticRestControllerV2ApiService) DeleteNetworkInterfaceElasticUsingDELETE(ctx context.Context, networkInterfaceId string, projectId string) (*http.Response, error)

NetworkInterfaceElasticRestControllerV2ApiService Delete Network Interface Elastic

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

func (*NetworkInterfaceElasticRestControllerV2ApiService) GetNetworkInterfaceElasticUsingGET ¶ added in v0.0.15

func (a *NetworkInterfaceElasticRestControllerV2ApiService) GetNetworkInterfaceElasticUsingGET(ctx context.Context, networkInterfaceId string, projectId string) (DataResponseNetworkInterfaceElastic, *http.Response, error)

NetworkInterfaceElasticRestControllerV2ApiService Get Network Interface Elastic

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

@return DataResponseNetworkInterfaceElastic

func (*NetworkInterfaceElasticRestControllerV2ApiService) ListNetworkInterfaceElasticUsingGET ¶ added in v0.0.15

func (*NetworkInterfaceElasticRestControllerV2ApiService) RenameNetworkInterfaceElasticUsingPUT ¶ added in v0.0.15

func (a *NetworkInterfaceElasticRestControllerV2ApiService) RenameNetworkInterfaceElasticUsingPUT(ctx context.Context, networkInterfaceId string, projectId string, renameNetworkInterfaceRequest RenameNetworkInterfaceRequest) (DataResponseNetworkInterfaceElastic, *http.Response, error)

NetworkInterfaceElasticRestControllerV2ApiService Rename Network Interface Elastic

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

@return DataResponseNetworkInterfaceElastic

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 NetworkRestControllerV2ApiListNetworkActiveUsingGETOpts ¶ added in v0.0.15

type NetworkRestControllerV2ApiListNetworkActiveUsingGETOpts struct {
	Page optional.Int32
	Size optional.Int32
}

type NetworkRestControllerV2ApiListNetworkUsingGET1Opts ¶ added in v0.0.15

type NetworkRestControllerV2ApiListNetworkUsingGET1Opts struct {
	Name optional.String
	Page optional.Int32
	Size optional.Int32
}

type NetworkRestControllerV2ApiService ¶ added in v0.0.15

type NetworkRestControllerV2ApiService service

func (*NetworkRestControllerV2ApiService) CreateNetworkUsingPOST1 ¶ added in v0.0.15

func (a *NetworkRestControllerV2ApiService) CreateNetworkUsingPOST1(ctx context.Context, createNetworkRequest CreateNetworkRequest, projectId string) (DataResponseNetworkDto, *http.Response, error)

NetworkRestControllerV2ApiService Create network

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

@return DataResponseNetworkDto

func (*NetworkRestControllerV2ApiService) DeleteNetworkUsingDELETE1 ¶ added in v0.0.15

func (a *NetworkRestControllerV2ApiService) DeleteNetworkUsingDELETE1(ctx context.Context, networkId string, projectId string) (*http.Response, error)

NetworkRestControllerV2ApiService Delete network

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

func (*NetworkRestControllerV2ApiService) EditNetworkUsingPATCH ¶ added in v0.0.15

func (a *NetworkRestControllerV2ApiService) EditNetworkUsingPATCH(ctx context.Context, networkId string, projectId string, updateNetworkRequest UpdateNetworkRequest) (DataResponseNetworkDto, *http.Response, error)

NetworkRestControllerV2ApiService Edit network

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

@return DataResponseNetworkDto

func (*NetworkRestControllerV2ApiService) GetNetworkUsingGET1 ¶ added in v0.0.15

func (a *NetworkRestControllerV2ApiService) GetNetworkUsingGET1(ctx context.Context, networkId string, projectId string) (NetworkDto, *http.Response, error)

NetworkRestControllerV2ApiService Get network

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

@return NetworkDto

func (*NetworkRestControllerV2ApiService) ListNetworkActiveUsingGET ¶ added in v0.0.15

func (*NetworkRestControllerV2ApiService) ListNetworkUsingGET1 ¶ added in v0.0.15

type NodeConsoleResultDto ¶ added in v1.2.0

type NodeConsoleResultDto struct {
	Url string `json:"url,omitempty"`
}

type NodeGroupRequestModel ¶ added in v1.2.0

type NodeGroupRequestModel struct {
	FlavorId  string `json:"flavorId,omitempty"`
	Name      string `json:"name,omitempty"`
	NodeCount int    `json:"nodeCount,omitempty"`
}

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"`
	PackageLimit  *PackageLimit `json:"packageLimit,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 PackageLimit ¶ added in v0.0.15

type PackageLimit struct {
	Cpu      int32 `json:"cpu,omitempty"`
	DiskSize int32 `json:"diskSize,omitempty"`
	Memory   int32 `json:"memory,omitempty"`
}

type PagingClusterDto ¶ added in v1.2.0

type PagingClusterDto struct {
	ListData  []ClusterDto `json:"listData,omitempty"`
	Page      int32        `json:"page,omitempty"`
	PageSize  int32        `json:"pageSize,omitempty"`
	TotalItem int64        `json:"totalItem,omitempty"`
	TotalPage int32        `json:"totalPage,omitempty"`
}

type PagingElasticIpDetail ¶ added in v0.0.15

type PagingElasticIpDetail struct {
	ListData  []ElasticIpDetail `json:"listData,omitempty"`
	Page      int32             `json:"page,omitempty"`
	PageSize  int32             `json:"pageSize,omitempty"`
	TotalItem int64             `json:"totalItem,omitempty"`
	TotalPage int32             `json:"totalPage,omitempty"`
}

type PagingInterfaceK8SClusterDetail ¶ added in v0.0.15

type PagingInterfaceK8SClusterDetail struct {
	ListData  []InterfaceK8SClusterDetail `json:"listData,omitempty"`
	Page      int32                       `json:"page,omitempty"`
	PageSize  int32                       `json:"pageSize,omitempty"`
	TotalItem int64                       `json:"totalItem,omitempty"`
	TotalPage int32                       `json:"totalPage,omitempty"`
}

type PagingInterfaceK8SClusterDto ¶ added in v1.2.0

type PagingInterfaceK8SClusterDto struct {
	ListData  []InterfaceK8SClusterDto `json:"listData,omitempty"`
	Page      int32                    `json:"page,omitempty"`
	PageSize  int32                    `json:"pageSize,omitempty"`
	TotalItem int64                    `json:"totalItem,omitempty"`
	TotalPage int32                    `json:"totalPage,omitempty"`
}

type PagingNetworkAclDto ¶ added in v1.2.0

type PagingNetworkAclDto struct {
	ListData  []NetworkAclDto `json:"listData,omitempty"`
	Page      int32           `json:"page,omitempty"`
	PageSize  int32           `json:"pageSize,omitempty"`
	TotalItem int64           `json:"totalItem,omitempty"`
	TotalPage int32           `json:"totalPage,omitempty"`
}

type PagingNetworkDto ¶ added in v0.0.15

type PagingNetworkDto struct {
	ListData  []NetworkDto `json:"listData,omitempty"`
	Page      int32        `json:"page,omitempty"`
	PageSize  int32        `json:"pageSize,omitempty"`
	TotalItem int64        `json:"totalItem,omitempty"`
	TotalPage int32        `json:"totalPage,omitempty"`
}

type PagingNetworkInterfaceElastic ¶ added in v0.0.15

type PagingNetworkInterfaceElastic struct {
	ListData  []NetworkInterfaceElastic `json:"listData,omitempty"`
	Page      int32                     `json:"page,omitempty"`
	PageSize  int32                     `json:"pageSize,omitempty"`
	TotalItem int64                     `json:"totalItem,omitempty"`
	TotalPage int32                     `json:"totalPage,omitempty"`
}

type PagingPersistentVolumeDto ¶ added in v1.2.0

type PagingPersistentVolumeDto struct {
	ListData  []PersistentVolumeDto `json:"listData,omitempty"`
	Page      int32                 `json:"page,omitempty"`
	PageSize  int32                 `json:"pageSize,omitempty"`
	TotalItem int64                 `json:"totalItem,omitempty"`
	TotalPage int32                 `json:"totalPage,omitempty"`
}

type PagingRouteTableDto ¶ added in v1.2.0

type PagingRouteTableDto struct {
	ListData  []RouteTableDto `json:"listData,omitempty"`
	Page      int32           `json:"page,omitempty"`
	PageSize  int32           `json:"pageSize,omitempty"`
	TotalItem int64           `json:"totalItem,omitempty"`
	TotalPage int32           `json:"totalPage,omitempty"`
}

type PagingSecgroupDto ¶ added in v0.0.15

type PagingSecgroupDto struct {
	ListData  []SecgroupDto `json:"listData,omitempty"`
	Page      int32         `json:"page,omitempty"`
	PageSize  int32         `json:"pageSize,omitempty"`
	TotalItem int64         `json:"totalItem,omitempty"`
	TotalPage int32         `json:"totalPage,omitempty"`
}

type PagingServer ¶ added in v0.0.15

type PagingServer struct {
	ListData  []Server `json:"listData,omitempty"`
	Page      int32    `json:"page,omitempty"`
	PageSize  int32    `json:"pageSize,omitempty"`
	TotalItem int64    `json:"totalItem,omitempty"`
	TotalPage int32    `json:"totalPage,omitempty"`
}

type PagingServerGroupDetail ¶ added in v0.0.15

type PagingServerGroupDetail struct {
	ListData  []ServerGroupDetail `json:"listData,omitempty"`
	Page      int32               `json:"page,omitempty"`
	PageSize  int32               `json:"pageSize,omitempty"`
	TotalItem int64               `json:"totalItem,omitempty"`
	TotalPage int32               `json:"totalPage,omitempty"`
}

type PagingSimpleServer ¶ added in v0.0.15

type PagingSimpleServer struct {
	ListData  []SimpleServer `json:"listData,omitempty"`
	Page      int32          `json:"page,omitempty"`
	PageSize  int32          `json:"pageSize,omitempty"`
	TotalItem int64          `json:"totalItem,omitempty"`
	TotalPage int32          `json:"totalPage,omitempty"`
}

type PagingSimpleVolume ¶ added in v0.0.15

type PagingSimpleVolume struct {
	ListData  []SimpleVolume `json:"listData,omitempty"`
	Page      int32          `json:"page,omitempty"`
	PageSize  int32          `json:"pageSize,omitempty"`
	TotalItem int64          `json:"totalItem,omitempty"`
	TotalPage int32          `json:"totalPage,omitempty"`
}

type PagingSshKeyDto ¶ added in v0.0.15

type PagingSshKeyDto struct {
	ListData  []SshKeyDto `json:"listData,omitempty"`
	Page      int32       `json:"page,omitempty"`
	PageSize  int32       `json:"pageSize,omitempty"`
	TotalItem int64       `json:"totalItem,omitempty"`
	TotalPage int32       `json:"totalPage,omitempty"`
}

type PagingUserImage ¶ added in v0.0.15

type PagingUserImage struct {
	ListData  []UserImage `json:"listData,omitempty"`
	Page      int32       `json:"page,omitempty"`
	PageSize  int32       `json:"pageSize,omitempty"`
	TotalItem int64       `json:"totalItem,omitempty"`
	TotalPage int32       `json:"totalPage,omitempty"`
}

type PagingVipDto ¶ added in v1.2.0

type PagingVipDto struct {
	ListData  []VipDto `json:"listData,omitempty"`
	Page      int32    `json:"page,omitempty"`
	PageSize  int32    `json:"pageSize,omitempty"`
	TotalItem int64    `json:"totalItem,omitempty"`
	TotalPage int32    `json:"totalPage,omitempty"`
}

type PagingVirtualIpAddressDto ¶ added in v0.0.15

type PagingVirtualIpAddressDto struct {
	ListData  []VirtualIpAddressDto `json:"listData,omitempty"`
	Page      int32                 `json:"page,omitempty"`
	PageSize  int32                 `json:"pageSize,omitempty"`
	TotalItem int64                 `json:"totalItem,omitempty"`
	TotalPage int32                 `json:"totalPage,omitempty"`
}

type PagingVolume ¶ added in v0.0.15

type PagingVolume struct {
	ListData  []Volume `json:"listData,omitempty"`
	Page      int32    `json:"page,omitempty"`
	PageSize  int32    `json:"pageSize,omitempty"`
	TotalItem int64    `json:"totalItem,omitempty"`
	TotalPage int32    `json:"totalPage,omitempty"`
}

type PagingWanIpDto ¶ added in v0.0.15

type PagingWanIpDto struct {
	ListData  []WanIpDto `json:"listData,omitempty"`
	Page      int32      `json:"page,omitempty"`
	PageSize  int32      `json:"pageSize,omitempty"`
	TotalItem int64      `json:"totalItem,omitempty"`
	TotalPage int32      `json:"totalPage,omitempty"`
}

type PersistentVolumeDto ¶ added in v1.2.0

type PersistentVolumeDto struct {
	ClusterId string `json:"clusterId,omitempty"`
	CreatedAt string `json:"createdAt,omitempty"`
	DeletedAt string `json:"deletedAt,omitempty"`
	IopsId    int64  `json:"iopsId,omitempty"`
	Name      string `json:"name,omitempty"`
	Size      int32  `json:"size,omitempty"`
	Status    string `json:"status,omitempty"`
	UpdatedAt string `json:"updatedAt,omitempty"`
	VmId      string `json:"vmId,omitempty"`
	VolumeId  string `json:"volumeId,omitempty"`
}

type PersistentVolumeRestControllerV2ApiListPersistentVolumeUsingGETOpts ¶ added in v1.2.0

type PersistentVolumeRestControllerV2ApiListPersistentVolumeUsingGETOpts struct {
	Name optional.String
	Page optional.Int32
	Size optional.Int32
}

type PersistentVolumeRestControllerV2ApiService ¶ added in v1.2.0

type PersistentVolumeRestControllerV2ApiService service

func (*PersistentVolumeRestControllerV2ApiService) DeletePersistentVolumeUsingDELETE ¶ added in v1.2.0

func (a *PersistentVolumeRestControllerV2ApiService) DeletePersistentVolumeUsingDELETE(ctx context.Context, authorization string, portalUserId int32, projectId string, pvId string) (DataResponse, *http.Response, error)

PersistentVolumeRestControllerV2ApiService Delete Persistent Volume

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param authorization Access Token
  • @param portalUserId portal-user-id
  • @param projectId The project id
  • @param pvId The persistent volume id

@return DataResponse

func (*PersistentVolumeRestControllerV2ApiService) ListPersistentVolumeUsingGET ¶ added in v1.2.0

type PoolItem ¶ added in v1.2.0

type PoolItem struct {
	MonitorPort int32  `json:"monitorPort,omitempty"`
	Name        string `json:"name,omitempty"`
	PoolId      string `json:"poolId,omitempty"`
	Port        int32  `json:"port,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) CreateProjectUsingPOST ¶ added in v0.0.15

ProjectRestControllerApiService createProject

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

@return ProjectResponse

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 ProtocolRestControllerV2ApiService ¶ added in v0.0.15

type ProtocolRestControllerV2ApiService service

func (*ProtocolRestControllerV2ApiService) ListProtocolUsingGET ¶ added in v0.0.15

ProtocolRestControllerV2ApiService List Protocol Supported

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

@return DataResponseJsonObject

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

type QuotaRestControllerV2ApiService ¶ added in v0.0.15

type QuotaRestControllerV2ApiService service

func (*QuotaRestControllerV2ApiService) ListQuotaUsedUsingGET1 ¶ added in v0.0.15

QuotaRestControllerV2ApiService List Quota-used

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

@return DataResponseListQuotaUsedDto

type QuotaUsedDto ¶ added in v0.0.15

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

type RecoverBandwidthRequest ¶ added in v0.0.15

type RecoverBandwidthRequest struct {
	Ip   string `json:"ip,omitempty"`
	Uuid string `json:"uuid,omitempty"`
}

type RegionControllerV2ApiService ¶ added in v1.2.0

type RegionControllerV2ApiService service

func (*RegionControllerV2ApiService) GetALlRegionUsingGET ¶ added in v1.2.0

func (a *RegionControllerV2ApiService) GetALlRegionUsingGET(ctx context.Context, projectId string) (DataResponseListRegionDto, *http.Response, error)

RegionControllerV2ApiService Get All Region

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

@return DataResponseListRegionDto

func (*RegionControllerV2ApiService) ListQuotaUsedUsingGET2 ¶ added in v1.2.0

func (a *RegionControllerV2ApiService) ListQuotaUsedUsingGET2(ctx context.Context, projectId string, regionId string) (DataResponseboolean, *http.Response, error)

RegionControllerV2ApiService Check userId belong to Region

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

@return DataResponseboolean

type RegionDto ¶ added in v1.2.0

type RegionDto struct {
	Description string `json:"description,omitempty"`
	Id          string `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	UserId      string `json:"userId,omitempty"`
}

type RenameNetworkInterfaceRequest ¶ added in v0.0.15

type RenameNetworkInterfaceRequest struct {
	// Name of network interface
	Name string `json:"name"`
}

Rename Network Interface Request

type RenameServerRequest ¶ added in v0.0.15

type RenameServerRequest struct {
	// New name of server
	NewName string `json:"newName"`
	// Id of server
	ServerId string `json:"serverId"`
}

Rename Server Request

type RenewBandwidthRequest ¶ added in v0.0.15

type RenewBandwidthRequest struct {
	Ip   string `json:"ip,omitempty"`
	Uuid string `json:"uuid,omitempty"`
}

type ResizeServerRequest ¶

type ResizeServerRequest struct {
	// Id of flavor
	FlavorId string `json:"flavorId"`
	// Id of server
	ServerId string `json:"serverId"`
	// Zone of flavor. You can choose if having multiple zone
	HostGroupId string `json:"hostGroupId,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"`
}

Resize Volume Request

type ResourceIp ¶ added in v0.0.15

type ResourceIp struct {
	Ip           string `json:"ip,omitempty"`
	ResourceType string `json:"resourceType,omitempty"`
}

type RootDiskLimit ¶ added in v0.0.15

type RootDiskLimit struct {
	MaxIOPS int32 `json:"maxIOPS,omitempty"`
	MaxSize int32 `json:"maxSize,omitempty"`
	MinSize int32 `json:"minSize,omitempty"`
}

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 RouteRequest ¶ added in v1.2.0

type RouteRequest struct {
	// Specifies the destination in CIDR notation for the route. This is used to match the destination IP addresses of network traffic.
	DestinationCidrBlock string `json:"destinationCidrBlock"`
	// Unique identifier for the target of the route, such as a virtual machine or a gateway.
	Target string `json:"target"`
}

type RouteTableDto ¶ added in v1.2.0

type RouteTableDto struct {
	CreatedAt time.Time   `json:"createdAt,omitempty"`
	Name      string      `json:"name,omitempty"`
	NetworkId string      `json:"networkId,omitempty"`
	Routes    []RoutesDto `json:"routes,omitempty"`
	Status    string      `json:"status,omitempty"`
	Uuid      string      `json:"uuid,omitempty"`
}

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 RouteTableRestControllerV2ApiService ¶ added in v1.2.0

type RouteTableRestControllerV2ApiService service

func (*RouteTableRestControllerV2ApiService) CreateRouteTableUsingPOST1 ¶ added in v1.2.0

func (a *RouteTableRestControllerV2ApiService) CreateRouteTableUsingPOST1(ctx context.Context, createReq CreateRouteTableRequest, projectId string) (map[string]string, *http.Response, error)

RouteTableRestControllerV2ApiService Create Route-table

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

@return map[string]string

func (*RouteTableRestControllerV2ApiService) DeleteRouteTableUsingDELETE1 ¶ added in v1.2.0

func (a *RouteTableRestControllerV2ApiService) DeleteRouteTableUsingDELETE1(ctx context.Context, projectId string, routeId string) (*http.Response, error)

RouteTableRestControllerV2ApiService Delete Route Table

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

func (*RouteTableRestControllerV2ApiService) GetRouteTableUsingGET1 ¶ added in v1.2.0

func (a *RouteTableRestControllerV2ApiService) GetRouteTableUsingGET1(ctx context.Context, projectId string, uuid string) (DataResponseRouteTableDto, *http.Response, error)

RouteTableRestControllerV2ApiService 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 project id
  • @param uuid The route-table uuid

@return DataResponseRouteTableDto

func (*RouteTableRestControllerV2ApiService) ListRouteFromRouteTableIdUsingGET ¶ added in v1.2.0

func (a *RouteTableRestControllerV2ApiService) ListRouteFromRouteTableIdUsingGET(ctx context.Context, projectId string, routeTableId string) (DataResponseListRoutesDto, *http.Response, error)

RouteTableRestControllerV2ApiService List Route from Route-Table

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

@return DataResponseListRoutesDto

func (*RouteTableRestControllerV2ApiService) ListRouteTableUsingGET ¶ added in v1.2.0

func (a *RouteTableRestControllerV2ApiService) ListRouteTableUsingGET(ctx context.Context, name string, page string, projectId string, size string) (PagingRouteTableDto, *http.Response, error)

RouteTableRestControllerV2ApiService List Route Table V2

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

@return PagingRouteTableDto

func (*RouteTableRestControllerV2ApiService) UpdateRouteTableDetailUsingPUT ¶ added in v1.2.0

func (a *RouteTableRestControllerV2ApiService) UpdateRouteTableDetailUsingPUT(ctx context.Context, changeRoutesReq ChangeRoutesRequest, projectId string, uuid string) (*http.Response, error)

RouteTableRestControllerV2ApiService Add or remove Route to Route-Table

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

type RouteTableUpdateRouteRequest ¶ added in v0.0.9

type RouteTableUpdateRouteRequest struct {
	// The updated routes list of route-table
	Routes []UpdatedRoute `json:"routes,omitempty"`
}

type RouteTableUpdateSubnetRequest ¶ added in v0.0.9

type RouteTableUpdateSubnetRequest struct {
	// The updated subnet uuid list of route-table
	Subnets []string `json:"subnets,omitempty"`
}

type RoutesDto ¶ added in v1.2.0

type RoutesDto struct {
	DestinationCidrBlock string `json:"destinationCidrBlock,omitempty"`
	RouteTableId         string `json:"routeTableId,omitempty"`
	RoutingType          string `json:"routingType,omitempty"`
	Status               string `json:"status,omitempty"`
	Target               string `json:"target,omitempty"`
	Uuid                 string `json:"uuid,omitempty"`
}

type ScaleMinionBackendRequest ¶ added in v1.2.0

type ScaleMinionBackendRequest struct {
	// Id of Cluster
	ClusterId string `json:"clusterId,omitempty"`
	// Number of node want to scale up
	NodeCount int32 `json:"nodeCount,omitempty"`
	// Id of Node Group
	NodeGroupId string `json:"nodeGroupId,omitempty"`
}

type SdnSshKeyDeleteRequest ¶

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

type SecGroupDefault ¶ added in v1.2.0

type SecGroupDefault struct {
	Rules        []SecGroupRuleDefault `json:"rules,omitempty"`
	SecgroupName string                `json:"secgroup_name,omitempty"`
}

type SecGroupRuleDefault ¶ added in v1.2.0

type SecGroupRuleDefault struct {
	Direction       string `json:"direction,omitempty"`
	Ethertype       string `json:"ethertype,omitempty"`
	PortRangeMax    int64  `json:"port_range_max,omitempty"`
	PortRangeMin    int64  `json:"port_range_min,omitempty"`
	Protocol        string `json:"protocol,omitempty"`
	RemoteGroupName string `json:"remote_group_name,omitempty"`
	RemoteIpPrefix  string `json:"remote_ip_prefix,omitempty"`
}

type SecGroupRuleDetail ¶ added in v0.0.15

type SecGroupRuleDetail struct {
	CreatedAt      time.Time `json:"createdAt,omitempty"`
	Description    string    `json:"description,omitempty"`
	Direction      string    `json:"direction,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"`
	RemoteIpPrefix string    `json:"remoteIpPrefix,omitempty"`
	SecGroupName   string    `json:"secGroupName,omitempty"`
	Status         string    `json:"status,omitempty"`
}

type Secgroup ¶

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

type SecgroupDto ¶ added in v0.0.15

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

type SecgroupEntity ¶ added in v0.0.15

type SecgroupEntity struct {
	CreatedAt    time.Time `json:"createdAt,omitempty"`
	DeletedAt    time.Time `json:"deletedAt,omitempty"`
	Description  string    `json:"description,omitempty"`
	Id           int32     `json:"id,omitempty"`
	IsSystem     bool      `json:"isSystem,omitempty"`
	ProjectUuid  string    `json:"projectUuid,omitempty"`
	SecgroupId   int32     `json:"secgroupId,omitempty"`
	SecgroupName string    `json:"secgroupName,omitempty"`
	Status       string    `json:"status,omitempty"`
	Type_        string    `json:"type,omitempty"`
	UpdatedAt    time.Time `json:"updatedAt,omitempty"`
	Uuid         string    `json:"uuid,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 Create security group

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

@return SecgroupResponse

func (*SecgroupRestControllerApiService) DeleteSecgroupUsingDELETE ¶

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

SecgroupRestControllerApiService Delete security group

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

@return BaseResponse

func (*SecgroupRestControllerApiService) GetForSimpleServerUsingGET ¶ added in v0.0.15

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

SecgroupRestControllerApiService getForSimpleServer

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId project_id
  • @param serverId server_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 The 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 The 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 The project id

@return SecgroupResponse

func (*SecgroupRestControllerApiService) UpdateSecgroupUsingPUT ¶ added in v0.0.15

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

SecgroupRestControllerApiService Update security group

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

@return SecgroupResponse

type SecgroupRestControllerV2ApiGetAlllistSecgroupUsingGETOpts ¶ added in v0.0.15

type SecgroupRestControllerV2ApiGetAlllistSecgroupUsingGETOpts struct {
	Name optional.String
}

type SecgroupRestControllerV2ApiService ¶ added in v0.0.15

type SecgroupRestControllerV2ApiService service

func (*SecgroupRestControllerV2ApiService) CreateSecgroupUsingPOST1 ¶ added in v0.0.15

func (a *SecgroupRestControllerV2ApiService) CreateSecgroupUsingPOST1(ctx context.Context, createSecurityGroupRequest CreateSecurityGroupRequest, projectId string) (DataResponseSecgroupEntity, *http.Response, error)

SecgroupRestControllerV2ApiService Create security group

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

@return DataResponseSecgroupEntity

func (*SecgroupRestControllerV2ApiService) DeleteSecgroupUsingDELETE1 ¶ added in v0.0.15

func (a *SecgroupRestControllerV2ApiService) DeleteSecgroupUsingDELETE1(ctx context.Context, projectId string, secgroupId string) (*http.Response, error)

SecgroupRestControllerV2ApiService Delete security 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 secgroupId The secgroup id

func (*SecgroupRestControllerV2ApiService) GetAlllistSecgroupUsingGET ¶ added in v0.0.15

func (*SecgroupRestControllerV2ApiService) GetListSecgroupRuleBySecgroupUsingGET ¶ added in v0.0.15

func (a *SecgroupRestControllerV2ApiService) GetListSecgroupRuleBySecgroupUsingGET(ctx context.Context, projectId string, secgroupId string) (DataResponseListSecgroupruleDto, *http.Response, error)

SecgroupRestControllerV2ApiService Security Group Rule By Security Group 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 secgroupId The secgroup id

@return DataResponseListSecgroupruleDto

func (*SecgroupRestControllerV2ApiService) GetListServerBySecgroupUsingGET ¶ added in v0.0.15

func (a *SecgroupRestControllerV2ApiService) GetListServerBySecgroupUsingGET(ctx context.Context, projectId string, secgroupId string) (DataResponseListServerOfSecgroupDto, *http.Response, error)

SecgroupRestControllerV2ApiService Infomation's Server of Security 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 secgroupId The secgroup id

@return DataResponseListServerOfSecgroupDto

func (*SecgroupRestControllerV2ApiService) GetSecgroupUsingGET1 ¶ added in v0.0.15

func (a *SecgroupRestControllerV2ApiService) GetSecgroupUsingGET1(ctx context.Context, projectId string, secgroupId string) (DataResponseSecgroupDto, *http.Response, error)

SecgroupRestControllerV2ApiService Security Group By Security Group 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 secgroupId The secgroup id

@return DataResponseSecgroupDto

func (*SecgroupRestControllerV2ApiService) UpdateSecgroupUsingPUT1 ¶ added in v0.0.15

func (a *SecgroupRestControllerV2ApiService) UpdateSecgroupUsingPUT1(ctx context.Context, editSecurityGroupRequest EditSecurityGroupRequest, projectId string, secgroupId string) (DataResponseSecgroupDto, *http.Response, error)

SecgroupRestControllerV2ApiService Update security group

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

@return DataResponseSecgroupDto

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"`
	RemoteIpPrefix   string    `json:"remoteIpPrefix,omitempty"`
	Status           string    `json:"status,omitempty"`
}

type SecgroupRuleEntity ¶ added in v0.0.15

type SecgroupRuleEntity struct {
	CreatedAt      time.Time `json:"createdAt,omitempty"`
	DeletedAt      time.Time `json:"deletedAt,omitempty"`
	Description    string    `json:"description,omitempty"`
	Direction      string    `json:"direction,omitempty"`
	EtherType      string    `json:"etherType,omitempty"`
	Id             int32     `json:"id,omitempty"`
	IsSystem       bool      `json:"isSystem,omitempty"`
	PortRangeMax   int32     `json:"portRangeMax,omitempty"`
	PortRangeMin   int32     `json:"portRangeMin,omitempty"`
	Protocol       string    `json:"protocol,omitempty"`
	RemoteIpPrefix string    `json:"remoteIpPrefix,omitempty"`
	RuleId         int32     `json:"ruleId,omitempty"`
	SecgroupUuid   string    `json:"secgroupUuid,omitempty"`
	Status         string    `json:"status,omitempty"`
	UpdatedAt      time.Time `json:"updatedAt,omitempty"`
	Uuid           string    `json:"uuid,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 Create security group rule

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

@return SecgroupRuleResponse

func (*SecgroupRuleRestControllerApiService) DeleteSecgroupRuleUsingDELETE ¶

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

SecgroupRuleRestControllerApiService Delete security group rule

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param deleteSecurityGroupRuleRequest deleteSecurityGroupRuleRequest
  • @param projectId The 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 The 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 The project id
  • @param secgroupId secgroup_id

@return SecgroupRuleResponse

func (*SecgroupRuleRestControllerApiService) UpdateUsingPUT ¶ added in v0.0.15

func (a *SecgroupRuleRestControllerApiService) UpdateUsingPUT(ctx context.Context, projectId string, updateSecurityGroupRuleRequest UpdateSecurityGroupRuleRequest) (SecgroupRuleResponse, *http.Response, error)

SecgroupRuleRestControllerApiService Update security group rule

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

@return SecgroupRuleResponse

type SecgroupRuleRestControllerV2ApiService ¶ added in v0.0.15

type SecgroupRuleRestControllerV2ApiService service

func (*SecgroupRuleRestControllerV2ApiService) CreateSecgroupRuleUsingPOST1 ¶ added in v0.0.15

func (a *SecgroupRuleRestControllerV2ApiService) CreateSecgroupRuleUsingPOST1(ctx context.Context, createSecurityGroupRuleRequest CreateSecurityGroupRuleRequest, secgroupId string, projectId string) (DataResponseSecgroupRuleEntity, *http.Response, error)

SecgroupRuleRestControllerV2ApiService Create security group rule

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

@return DataResponseSecgroupRuleEntity

func (*SecgroupRuleRestControllerV2ApiService) DeleteSecgroupRuleUsingDELETE1 ¶ added in v0.0.15

func (a *SecgroupRuleRestControllerV2ApiService) DeleteSecgroupRuleUsingDELETE1(ctx context.Context, projectId string, secgroupRuleId string, secgroupId string) (*http.Response, error)

SecgroupRuleRestControllerV2ApiService Delete security group rule

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

func (*SecgroupRuleRestControllerV2ApiService) GetSecGroupRuleSamplesUsingGET ¶ added in v0.0.15

SecgroupRuleRestControllerV2ApiService List SecurityGroup Rule Sample

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

@return DataResponseListSecurityGroupRulesSampleEntity

func (*SecgroupRuleRestControllerV2ApiService) GetSecgroupRuleUsingGET1 ¶ added in v0.0.15

func (a *SecgroupRuleRestControllerV2ApiService) GetSecgroupRuleUsingGET1(ctx context.Context, projectId string, secgroupRuleId string, secgroupId string) (DataResponseListSecgroupruleDto, *http.Response, error)

SecgroupRuleRestControllerV2ApiService Security Group By Security Group 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 secgroupRuleId secgroupRuleId
  • @param secgroupId The secgroup id

@return DataResponseListSecgroupruleDto

func (*SecgroupRuleRestControllerV2ApiService) UpdateUsingPUT1 ¶ added in v0.0.15

func (a *SecgroupRuleRestControllerV2ApiService) UpdateUsingPUT1(ctx context.Context, projectId string, secgroupRuleId string, updateSecurityGroupRuleRequest UpdateSecurityGroupRuleRequest, secgroupId string) (DataResponseSecgroupruleDto, *http.Response, error)

SecgroupRuleRestControllerV2ApiService Update security group rule

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

@return DataResponseSecgroupruleDto

type SecgroupruleDto ¶ added in v0.0.15

type SecgroupruleDto struct {
	CreatedAt      time.Time `json:"createdAt,omitempty"`
	Description    string    `json:"description,omitempty"`
	Direction      string    `json:"direction,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"`
	RemoteIpPrefix string    `json:"remoteIpPrefix,omitempty"`
	Status         string    `json:"status,omitempty"`
}

type SecurityGroupRulesSampleEntity ¶ added in v0.0.15

type SecurityGroupRulesSampleEntity struct {
	Direction  string `json:"direction,omitempty"`
	FromPort   int32  `json:"fromPort,omitempty"`
	Id         int32  `json:"id,omitempty"`
	IpProtocol string `json:"ipProtocol,omitempty"`
	Name       string `json:"name,omitempty"`
	ToPort     int32  `json:"toPort,omitempty"`
}

type Server ¶

type Server struct {
	BootVolumeId       string                      `json:"bootVolumeId,omitempty"`
	CreatedAt          time.Time                   `json:"createdAt,omitempty"`
	EncryptionVolume   bool                        `json:"encryptionVolume,omitempty"`
	ExternalInterfaces []InterfaceNetworkInterface `json:"externalInterfaces,omitempty"`
	Flavor             *Flavor                     `json:"flavor,omitempty"`
	Image              *OsImage                    `json:"image,omitempty"`
	InternalInterfaces []InterfaceNetworkInterface `json:"internalInterfaces,omitempty"`
	Licence            bool                        `json:"licence,omitempty"`
	Name               string                      `json:"name,omitempty"`
	SecGroups          []ServerSecGroup            `json:"secGroups,omitempty"`
	ServerGroupId      string                      `json:"serverGroupId,omitempty"`
	ServerGroupName    string                      `json:"serverGroupName,omitempty"`
	SshKeyName         string                      `json:"sshKeyName,omitempty"`
	Status             string                      `json:"status,omitempty"`
	Uuid               string                      `json:"uuid,omitempty"`
	HostGroupId        string                      `json:"hostGroupId,omitempty"`
}

type ServerAction ¶ added in v0.0.15

type ServerAction struct {
	Action     string    `json:"action,omitempty"`
	StartTime  time.Time `json:"startTime,omitempty"`
	UserAction string    `json:"userAction,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 ServerGroupDetail ¶ added in v0.0.15

type ServerGroupDetail struct {
	CreatedAt     time.Time `json:"createdAt,omitempty"`
	Description   string    `json:"description,omitempty"`
	Name          string    `json:"name,omitempty"`
	PolicyId      string    `json:"policyId,omitempty"`
	PolicyName    string    `json:"policyName,omitempty"`
	ServerGroupId int32     `json:"serverGroupId,omitempty"`
	Servers       []Server  `json:"servers,omitempty"`
	Uuid          string    `json:"uuid,omitempty"`
}

type ServerGroupDto ¶ added in v0.0.15

type ServerGroupDto struct {
	CreatedAt     time.Time `json:"createdAt,omitempty"`
	Description   string    `json:"description,omitempty"`
	Name          string    `json:"name,omitempty"`
	PolicyId      string    `json:"policyId,omitempty"`
	ServerGroupId int32     `json:"serverGroupId,omitempty"`
	Uuid          string    `json:"uuid,omitempty"`
}

type ServerGroupPolicy ¶ added in v0.0.9

type ServerGroupPolicy struct {
	Description   string `json:"description,omitempty"`
	DescriptionVi string `json:"descriptionVi,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 ServerGroupRestControllerV2ApiService ¶ added in v0.0.15

type ServerGroupRestControllerV2ApiService service

func (*ServerGroupRestControllerV2ApiService) CreateServerGroupUsingPOST1 ¶ added in v0.0.15

func (a *ServerGroupRestControllerV2ApiService) CreateServerGroupUsingPOST1(ctx context.Context, createServerGroupRequest CreateServerGroupRequest, projectId string) (DataResponseServerGroupDto, *http.Response, error)

ServerGroupRestControllerV2ApiService 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 DataResponseServerGroupDto

func (*ServerGroupRestControllerV2ApiService) DeleteServerGroupUsingDELETE1 ¶ added in v0.0.15

func (a *ServerGroupRestControllerV2ApiService) DeleteServerGroupUsingDELETE1(ctx context.Context, projectId string, serverGroupId string) (*http.Response, error)

ServerGroupRestControllerV2ApiService Delete 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

func (*ServerGroupRestControllerV2ApiService) GetListServerGroupWithPagingUsingGET ¶ added in v0.0.15

func (a *ServerGroupRestControllerV2ApiService) GetListServerGroupWithPagingUsingGET(ctx context.Context, name string, page string, projectId string, size string) (PagingServerGroupDetail, *http.Response, error)

ServerGroupRestControllerV2ApiService List server group with Paging

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

@return PagingServerGroupDetail

func (*ServerGroupRestControllerV2ApiService) GetServerGroupUsingGET1 ¶ added in v0.0.15

func (a *ServerGroupRestControllerV2ApiService) GetServerGroupUsingGET1(ctx context.Context, projectId string, serverGroupId string) (DataResponseServerGroupDto, *http.Response, error)

ServerGroupRestControllerV2ApiService 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 DataResponseServerGroupDto

func (*ServerGroupRestControllerV2ApiService) ListServerGroupPolicyUsingGET1 ¶ added in v0.0.15

ServerGroupRestControllerV2ApiService 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 DataResponseListServerGroupPolicy

func (*ServerGroupRestControllerV2ApiService) UpdateServerGroupUsingPUT1 ¶ added in v0.0.15

func (a *ServerGroupRestControllerV2ApiService) UpdateServerGroupUsingPUT1(ctx context.Context, projectId string, serverGroupId string, updateServerGroupRequest UpdateServerGroupRequestV2) (DataResponseServerGroupDto, *http.Response, error)

ServerGroupRestControllerV2ApiService 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 serverGroupId The server group id
  • @param updateServerGroupRequest updateServerGroupRequest

@return DataResponseServerGroupDto

type ServerLimit ¶ added in v0.0.15

type ServerLimit struct {
	DataDisk *DataDiskLimit `json:"dataDisk,omitempty"`
	RootDisk *RootDiskLimit `json:"rootDisk,omitempty"`
}

type ServerNetworkInterfaceDetail ¶ added in v0.0.15

type ServerNetworkInterfaceDetail struct {
	ExternalInterfaces []InterfaceNetworkInterface `json:"externalInterfaces,omitempty"`
	InternalInterfaces []InterfaceNetworkInterface `json:"internalInterfaces,omitempty"`
}

type ServerOfSecgroupDto ¶ added in v0.0.15

type ServerOfSecgroupDto struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`
	Name      string    `json:"name,omitempty"`
	Status    string    `json:"status,omitempty"`
	Uuid      string    `json:"uuid,omitempty"`
}

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) ServerLimitUsingGET ¶ added in v0.0.15

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

ServerRestControllerApiService Server limit

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

@return ServerLimit

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 ServerRestControllerV2ApiListServerUsingGET1Opts ¶ added in v0.0.15

type ServerRestControllerV2ApiListServerUsingGET1Opts struct {
	Name optional.String
	Page optional.Int32
	Size optional.Int32
}

type ServerRestControllerV2ApiService ¶ added in v0.0.15

type ServerRestControllerV2ApiService service

func (*ServerRestControllerV2ApiService) AttachExternalNetworkInterfaceUsingPOST ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) AttachExternalNetworkInterfaceUsingPOST(ctx context.Context, attachExternalNetworkInterfaceRequest AttachExternalNetworkInterfaceRequest, projectId string, serverId string) (DataResponseInterfaceNetworkInterface, *http.Response, error)

ServerRestControllerV2ApiService Attach External Network Interface

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

@return DataResponseInterfaceNetworkInterface

func (*ServerRestControllerV2ApiService) AttachNetworkInterfaceUsingPOST ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) AttachNetworkInterfaceUsingPOST(ctx context.Context, attachNetworkInterfaceRequest AttachNetworkInterfaceRequest, projectId string, serverId string) (DataResponse, *http.Response, error)

ServerRestControllerV2ApiService Attach Internal Network Interface

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

@return DataResponse

func (*ServerRestControllerV2ApiService) AttachNetworkInterfaceWithWanIpUsingPOST ¶ added in v1.2.0

func (a *ServerRestControllerV2ApiService) AttachNetworkInterfaceWithWanIpUsingPOST(ctx context.Context, attachNetworkInterfaceWithWanIpRequest AttachNetworkInterfaceWithWanIpRequest, serverId string, projectId string) (DataResponseInterfaceNetworkInterface, *http.Response, error)

ServerRestControllerV2ApiService Attach Internal Network Interface With Floating Ip

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

@return DataResponseInterfaceNetworkInterface

func (*ServerRestControllerV2ApiService) AttachWanIPUsingPUT ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) AttachWanIPUsingPUT(ctx context.Context, attachDetachWanIPRequest AttachDetachWanIpRequest, projectId string, serverId string, wanIpId string) (*http.Response, error)

ServerRestControllerV2ApiService Attach Wan IP

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

func (*ServerRestControllerV2ApiService) CreateServerUsingPOST1 ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) CreateServerUsingPOST1(ctx context.Context, createServerRequest CreateServerRequest, projectId string) (DataResponseServer, *http.Response, error)

ServerRestControllerV2ApiService 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 DataResponse

func (*ServerRestControllerV2ApiService) DeleteServerUsingDELETE1 ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) DeleteServerUsingDELETE1(ctx context.Context, deleteServerRequest DeleteServerRequest, projectId string, serverId string) (DataResponse, *http.Response, error)

ServerRestControllerV2ApiService 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
  • @param serverId The server id

@return DataResponse

func (*ServerRestControllerV2ApiService) DetachExternalNetworkInterfaceUsingDELETE ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) DetachExternalNetworkInterfaceUsingDELETE(ctx context.Context, detachExternalNetworkInterfaceRequest DetachExternalNetworkInterfaceRequest, projectId string, serverId string) (*http.Response, error)

ServerRestControllerV2ApiService Detach External Network Interface

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

func (*ServerRestControllerV2ApiService) DetachNetworkInterfaceUsingDELETE ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) DetachNetworkInterfaceUsingDELETE(ctx context.Context, detachNetworkInterfaceRequest DetachNetworkInterfaceRequest, projectId string, serverId string) (*http.Response, error)

ServerRestControllerV2ApiService Detach Internal Network Interface

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

func (*ServerRestControllerV2ApiService) DetachNetworkInterfaceWithWanIpUsingDELETE ¶ added in v1.2.0

func (a *ServerRestControllerV2ApiService) DetachNetworkInterfaceWithWanIpUsingDELETE(ctx context.Context, detachNetworkInterfaceWithWanIpRequest DetachNetworkInterfaceWithWanIpRequest, projectId string, serverId string) (*http.Response, error)

ServerRestControllerV2ApiService Detach Internal Network Interface With Floating Ip

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

func (*ServerRestControllerV2ApiService) DetachWanIPUsingPUT ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) DetachWanIPUsingPUT(ctx context.Context, attachDetachWanIPRequest AttachDetachWanIpRequest, projectId string, serverId string, wanIpId string) (*http.Response, error)

ServerRestControllerV2ApiService Detach Wan IP

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

func (*ServerRestControllerV2ApiService) GetConsoleLogUsingGET ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) GetConsoleLogUsingGET(ctx context.Context, projectId string, serverId string) (DataResponsestring, *http.Response, error)

ServerRestControllerV2ApiService Get console log

  • @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 DataResponsestring

func (*ServerRestControllerV2ApiService) GetConsoleUrlUsingGET ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) GetConsoleUrlUsingGET(ctx context.Context, projectId string, serverId string) (DataResponsestring, *http.Response, error)

ServerRestControllerV2ApiService Get console url

  • @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 DataResponsestring

func (*ServerRestControllerV2ApiService) GetExternalNetworkInterfaceUsingGET ¶ added in v1.2.0

func (a *ServerRestControllerV2ApiService) GetExternalNetworkInterfaceUsingGET(ctx context.Context, interfaceNetworkInterfaceId string, projectId string) (DataResponseInterfaceNetworkInterface, *http.Response, error)

ServerRestControllerV2ApiService Get Attached External network Interface

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

@return DataResponseInterfaceNetworkInterface

func (*ServerRestControllerV2ApiService) GetServerUsingGET1 ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) GetServerUsingGET1(ctx context.Context, projectId string, serverId string) (DataResponseServer, *http.Response, error)

ServerRestControllerV2ApiService 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 DataResponseServer

func (*ServerRestControllerV2ApiService) ListActionUsingGET ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) ListActionUsingGET(ctx context.Context, projectId string, serverId string) (DataResponseListServerAction, *http.Response, error)

ServerRestControllerV2ApiService List Action 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 serverId The server id

@return DataResponseListServerAction

func (*ServerRestControllerV2ApiService) ListNetworkInterfaceUsingGET ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) ListNetworkInterfaceUsingGET(ctx context.Context, projectId string, serverId string) (DataResponseServerNetworkInterfaceDetail, *http.Response, error)

ServerRestControllerV2ApiService List Network Interface 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 serverId The server id

@return DataResponseServerNetworkInterfaceDetail

func (*ServerRestControllerV2ApiService) ListSecGroupUsingGET ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) ListSecGroupUsingGET(ctx context.Context, projectId string, serverId string) (DataResponseServerSecGroupDetail, *http.Response, error)

ServerRestControllerV2ApiService List Sec Group 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 serverId The server id

@return DataResponseServerSecGroupDetail

func (*ServerRestControllerV2ApiService) ListServerUsingGET1 ¶ added in v0.0.15

func (*ServerRestControllerV2ApiService) RebootServerUsingPUT1 ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) RebootServerUsingPUT1(ctx context.Context, projectId string, serverId string) (DataResponse, *http.Response, error)

ServerRestControllerV2ApiService 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 serverId The server id

@return DataResponse

func (*ServerRestControllerV2ApiService) RenameServerUsingPUT ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) RenameServerUsingPUT(ctx context.Context, projectId string, renameServerRequest RenameServerRequest, serverId string) (DataResponseServer, *http.Response, error)

ServerRestControllerV2ApiService Rename 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 renameServerRequest renameServerRequest
  • @param serverId The server id

@return DataResponseServer

func (*ServerRestControllerV2ApiService) ResizeServerUsingPUT1 ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) ResizeServerUsingPUT1(ctx context.Context, projectId string, resizeServerRequest ResizeServerRequest, serverId string) (DataResponse, *http.Response, error)

ServerRestControllerV2ApiService 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
  • @param serverId The server id

@return DataResponse

func (*ServerRestControllerV2ApiService) StartServerUsingPUT1 ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) StartServerUsingPUT1(ctx context.Context, projectId string, serverId string) (DataResponse, *http.Response, error)

ServerRestControllerV2ApiService 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 serverId The server id

@return DataResponse

func (*ServerRestControllerV2ApiService) StopServerUsingPUT1 ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) StopServerUsingPUT1(ctx context.Context, projectId string, serverId string) (DataResponse, *http.Response, error)

ServerRestControllerV2ApiService 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 serverId The server id

@return DataResponse

func (*ServerRestControllerV2ApiService) UpdateSecGroupServerUsingPUT1 ¶ added in v0.0.15

func (a *ServerRestControllerV2ApiService) UpdateSecGroupServerUsingPUT1(ctx context.Context, changeSecGroupRequest ChangeSecGroupRequest, projectId string, serverId string) (DataResponse, *http.Response, error)

ServerRestControllerV2ApiService 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
  • @param serverId The project id

@return DataResponse

type ServerSecGroup ¶ added in v0.0.15

type ServerSecGroup struct {
	Name string `json:"name,omitempty"`
	Uuid string `json:"uuid,omitempty"`
}

type ServerSecGroupDetail ¶ added in v0.0.15

type ServerSecGroupDetail struct {
	Inbounds  []SecGroupRuleDetail `json:"inbounds,omitempty"`
	Outbounds []SecGroupRuleDetail `json:"outbounds,omitempty"`
}

type SimpleClusterNodeGroupDto ¶ added in v1.2.0

type SimpleClusterNodeGroupDto struct {
	ClusterNodeGroupId int32  `json:"clusterNodeGroupId,omitempty"`
	Name               string `json:"name,omitempty"`
	NodeGroupDefault   bool   `json:"nodeGroupDefault,omitempty"`
	Status             string `json:"status,omitempty"`
	Uuid               string `json:"uuid,omitempty"`
}

type SimpleServer ¶ added in v0.0.15

type SimpleServer struct {
	CreatedAt          time.Time                   `json:"createdAt,omitempty"`
	Email              string                      `json:"email,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"`
	NetworkId          string                      `json:"networkId,omitempty"`
	ProjectId          string                      `json:"projectId,omitempty"`
	Status             string                      `json:"status,omitempty"`
	UpdatedAt          time.Time                   `json:"updatedAt,omitempty"`
	Uuid               string                      `json:"uuid,omitempty"`
}

type SimpleServerRestControllerApiListServerUsingGET2Opts ¶ added in v0.0.15

type SimpleServerRestControllerApiListServerUsingGET2Opts struct {
	Name optional.String
	Page optional.Int32
	Size optional.Int32
}

type SimpleServerRestControllerApiService ¶ added in v0.0.15

type SimpleServerRestControllerApiService service

func (*SimpleServerRestControllerApiService) DeleteServerUsingDELETE2 ¶ added in v0.0.15

func (a *SimpleServerRestControllerApiService) DeleteServerUsingDELETE2(ctx context.Context, deleteServerRequest DeleteServerRequest, projectId string) (DataResponseSimpleServer, *http.Response, error)

SimpleServerRestControllerApiService Delete simple server

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

@return DataResponseSimpleServer

func (*SimpleServerRestControllerApiService) GetConsoleServerUsingGET ¶ added in v0.0.15

func (a *SimpleServerRestControllerApiService) GetConsoleServerUsingGET(ctx context.Context, projectId string, serverId string) (DataResponsestring, *http.Response, error)

SimpleServerRestControllerApiService Get console simple server

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

@return DataResponsestring

func (*SimpleServerRestControllerApiService) GetServerUsingGET2 ¶ added in v0.0.15

func (a *SimpleServerRestControllerApiService) GetServerUsingGET2(ctx context.Context, projectId string, serverId string) (DataResponseSimpleServer, *http.Response, error)

SimpleServerRestControllerApiService Get simple server

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

@return DataResponseSimpleServer

func (*SimpleServerRestControllerApiService) ListServerUsingGET2 ¶ added in v0.0.15

func (*SimpleServerRestControllerApiService) RebootServerUsingPUT2 ¶ added in v0.0.15

func (a *SimpleServerRestControllerApiService) RebootServerUsingPUT2(ctx context.Context, projectId string, updateServerRequest UpdateServerRequest) (DataResponseSimpleServer, *http.Response, error)

SimpleServerRestControllerApiService Reboot simple server

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

@return DataResponseSimpleServer

func (*SimpleServerRestControllerApiService) StartServerUsingPUT2 ¶ added in v0.0.15

func (a *SimpleServerRestControllerApiService) StartServerUsingPUT2(ctx context.Context, projectId string, updateServerRequest UpdateServerRequest) (DataResponseSimpleServer, *http.Response, error)

SimpleServerRestControllerApiService Start simple server

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

@return DataResponseSimpleServer

func (*SimpleServerRestControllerApiService) StopServerUsingPUT2 ¶ added in v0.0.15

func (a *SimpleServerRestControllerApiService) StopServerUsingPUT2(ctx context.Context, projectId string, updateServerRequest UpdateServerRequest) (DataResponseSimpleServer, *http.Response, error)

SimpleServerRestControllerApiService Stop simple server

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

@return DataResponseSimpleServer

type SimpleServerTaskDto ¶ added in v1.2.0

type SimpleServerTaskDto struct {
	Id string `json:"id,omitempty"`
}

type SimpleVolume ¶ added in v0.0.15

type SimpleVolume struct {
	BootIndex    int32     `json:"bootIndex,omitempty"`
	Bootable     bool      `json:"bootable,omitempty"`
	CreatedAt    time.Time `json:"createdAt,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 SimpleVolumeRestControllerApiListVolumeUsingGETOpts ¶ added in v0.0.15

type SimpleVolumeRestControllerApiListVolumeUsingGETOpts struct {
	Name optional.String
	Page optional.Int32
	Size optional.Int32
}

type SimpleVolumeRestControllerApiService ¶ added in v0.0.15

type SimpleVolumeRestControllerApiService service

func (*SimpleVolumeRestControllerApiService) GetVolumeUsingGET ¶ added in v0.0.15

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

SimpleVolumeRestControllerApiService Get simple volume

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

@return DataResponseSimpleServer

func (*SimpleVolumeRestControllerApiService) ListVolumeUsingGET ¶ added in v0.0.15

type SshKey ¶

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

type SshKeyDto ¶ added in v0.0.15

type SshKeyDto struct {
	CreatedAt  time.Time `json:"createdAt,omitempty"`
	Id         string    `json:"id,omitempty"`
	Name       string    `json:"name,omitempty"`
	PrivateKey string    `json:"privateKey,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 Create SSH key

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

@return SshKeyResponse

func (*SshKeyRestControllerApiService) DeleteSSHKeyUsingDELETE ¶

func (a *SshKeyRestControllerApiService) DeleteSSHKeyUsingDELETE(ctx context.Context, deleteSSHKeyRequest DeleteSshKeyRequest, projectId string) (BaseResponse, *http.Response, error)

SshKeyRestControllerApiService Delete SSH key

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

@return BaseResponse

func (*SshKeyRestControllerApiService) GetSSHKeyUsingGET ¶

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

SshKeyRestControllerApiService Get SSH key

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

@return SshKeyResponse

func (*SshKeyRestControllerApiService) ImportSSHKeyUsingPOST ¶

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

SshKeyRestControllerApiService Import SSH key

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

@return SshKeyResponse

func (*SshKeyRestControllerApiService) ListSSHKeyUsingGET ¶

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

SshKeyRestControllerApiService List SSH key

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

@return SshKeyResponse

type SshKeyRestControllerV2ApiService ¶ added in v0.0.15

type SshKeyRestControllerV2ApiService service

func (*SshKeyRestControllerV2ApiService) CreateSSHKeyUsingPOST1 ¶ added in v0.0.15

func (a *SshKeyRestControllerV2ApiService) CreateSSHKeyUsingPOST1(ctx context.Context, createSSHKeyRequest CreateSshKeyRequest, projectId string) (DataResponseSshKeyDto, *http.Response, error)

SshKeyRestControllerV2ApiService Create SSH key

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

@return DataResponseSshKeyDto

func (*SshKeyRestControllerV2ApiService) DeleteSSHKeyUsingDELETE1 ¶ added in v0.0.15

func (a *SshKeyRestControllerV2ApiService) DeleteSSHKeyUsingDELETE1(ctx context.Context, projectId string, sshKeyId string) (*http.Response, error)

SshKeyRestControllerV2ApiService Delete SSH key

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

func (*SshKeyRestControllerV2ApiService) GetListSecgroupWithPagingUsingGET1 ¶ added in v0.0.15

func (a *SshKeyRestControllerV2ApiService) GetListSecgroupWithPagingUsingGET1(ctx context.Context, name string, page string, projectId string, size string) (PagingSshKeyDto, *http.Response, error)

SshKeyRestControllerV2ApiService List SSH key Paging

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

@return PagingSshKeyDto

func (*SshKeyRestControllerV2ApiService) GetSSHKeyUsingGET1 ¶ added in v0.0.15

func (a *SshKeyRestControllerV2ApiService) GetSSHKeyUsingGET1(ctx context.Context, projectId string, sshKeyId string) (DataResponseSshKeyDto, *http.Response, error)

SshKeyRestControllerV2ApiService Get SSH key

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

@return DataResponseSshKeyDto

func (*SshKeyRestControllerV2ApiService) ImportSSHKeyUsingPOST1 ¶ added in v0.0.15

func (a *SshKeyRestControllerV2ApiService) ImportSSHKeyUsingPOST1(ctx context.Context, importSSHKeyRequest ImportSshKeyRequest, projectId string) (DataResponseSshKeyDto, *http.Response, error)

SshKeyRestControllerV2ApiService Import SSH key

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

@return DataResponseSshKeyDto

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 SubnetDto ¶ added in v0.0.15

type SubnetDto struct {
	Cidr                   string    `json:"cidr,omitempty"`
	CreatedAt              time.Time `json:"createdAt,omitempty"`
	DeletedAt              time.Time `json:"deletedAt,omitempty"`
	InterfaceAclPolicyUuid string    `json:"interfaceAclPolicyUuid,omitempty"`
	Name                   string    `json:"name,omitempty"`
	NetworkUuid            string    `json:"networkUuid,omitempty"`
	RouteTableUuid         string    `json:"routeTableUuid,omitempty"`
	Status                 string    `json:"status,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 SubnetRestControllerV2ApiService ¶ added in v0.0.15

type SubnetRestControllerV2ApiService service

func (*SubnetRestControllerV2ApiService) CreateSubnetUsingPOST1 ¶ added in v0.0.15

func (a *SubnetRestControllerV2ApiService) CreateSubnetUsingPOST1(ctx context.Context, createSubnetRequest CreateSubnetRequest, networkId string, projectId string) (DataResponseSubnetDto, *http.Response, error)

SubnetRestControllerV2ApiService createSubnet

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

@return DataResponseSubnetDto

func (*SubnetRestControllerV2ApiService) DeleteNetworkUsingDELETE2 ¶ added in v0.0.15

func (a *SubnetRestControllerV2ApiService) DeleteNetworkUsingDELETE2(ctx context.Context, projectId string, subnetId string, networkId string) (*http.Response, error)

SubnetRestControllerV2ApiService Delete subnet

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

func (*SubnetRestControllerV2ApiService) EditSubnetUsingPATCH ¶ added in v0.0.15

func (a *SubnetRestControllerV2ApiService) EditSubnetUsingPATCH(ctx context.Context, projectId string, subnetId string, updateSubnetRequest UpdateSubnetRequest, networkId string) (DataResponseSubnetDto, *http.Response, error)

SubnetRestControllerV2ApiService Edit subnet

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

@return DataResponseSubnetDto

func (*SubnetRestControllerV2ApiService) GetSubnetByIdUsingGET ¶ added in v0.0.15

func (a *SubnetRestControllerV2ApiService) GetSubnetByIdUsingGET(ctx context.Context, networkId string, projectId string, subnetId string) (SubnetDto, *http.Response, error)

SubnetRestControllerV2ApiService List subnet by id

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

@return SubnetDto

func (*SubnetRestControllerV2ApiService) ListSubnetOfNetworkUsingGET ¶ added in v0.0.15

func (a *SubnetRestControllerV2ApiService) ListSubnetOfNetworkUsingGET(ctx context.Context, networkId string, projectId string) ([]SubnetDto, *http.Response, error)

SubnetRestControllerV2ApiService List subnet of network

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

@return []SubnetDto

type TagRequest ¶ added in v1.2.0

type TagRequest struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

Create Tag Request

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 TypeItemCondition ¶ added in v0.0.15

type TypeItemCondition struct {
	AggregateInstanceExtraSpecsCpuNcore string `json:"aggregateInstanceExtraSpecsCpuNcore,omitempty"`
	AggregateInstanceExtraSpecsMemory   string `json:"aggregateInstanceExtraSpecsMemory,omitempty"`
	Shared                              bool   `json:"shared,omitempty"`
}

type TypesItem ¶ added in v0.0.15

type TypesItem struct {
	Condition *TypeItemCondition `json:"condition,omitempty"`
	Key       string             `json:"key,omitempty"`
	Value     string             `json:"value,omitempty"`
}

type UpdateClusterDescriptionRequest ¶ added in v1.2.0

type UpdateClusterDescriptionRequest struct {
	// Uuid of K8s Cluster
	ClusterId string `json:"clusterId"`
	// Description K8s Cluster
	Description string `json:"description"`
}

Update Cluster Description Request

type UpdateClusterSecGroupRequest ¶ added in v1.2.0

type UpdateClusterSecGroupRequest struct {
	// Uuid of K8s Cluster
	ClusterId string `json:"clusterId"`
	// Is Master or not
	Master bool `json:"master"`
	// List of Sec Group Uuid
	SecGroupIds []string `json:"secGroupIds"`
}

Update Cluster SecGroup Request

type UpdateNetworkAclRulesRequest ¶ added in v0.0.9

type UpdateNetworkAclRulesRequest struct {
	DetailAclRuleList []UpdatedAclPolicyRule `json:"detailAclRuleList,omitempty"`
}

type UpdateNetworkAclSubnetsRequest ¶ added in v0.0.9

type UpdateNetworkAclSubnetsRequest struct {
	// The updated subnets uuid list of network-acl
	SubnetUuids []string `json:"subnetUuids,omitempty"`
}

type UpdateNetworkRequest ¶

type UpdateNetworkRequest struct {
	// Name of the Network
	Name string `json:"name"`
}

Update Network Request

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 UpdateSecurityGroupRuleRequest ¶ added in v0.0.15

type UpdateSecurityGroupRuleRequest struct {
	// Description for security group rule.
	Description string `json:"description,omitempty"`
}

type UpdateServerGroupRequest ¶ added in v0.0.9

type UpdateServerGroupRequest struct {
	// Description of server group
	Description string `json:"description,omitempty"`
	// Id of the server group
	ServerGroupId string `json:"serverGroupId"`
}

type UpdateServerGroupRequestV2 ¶ added in v0.0.15

type UpdateServerGroupRequestV2 struct {
	// description for  Server Group.
	Description string `json:"description,omitempty"`
	// Name of the Server Group
	Name string `json:"name"`
	// Id of the server group
	ServerGroupId string `json:"serverGroupId"`
}

type UpdateServerRequest ¶

type UpdateServerRequest struct {
	// Id of server
	ServerId string `json:"serverId"`
}

Update Server Request

type UpdateSubnetRequest ¶ added in v0.0.15

type UpdateSubnetRequest struct {
	// Name of the subnet
	Name string `json:"name"`
}

Update Network Request

type UpdateTaskStatusRequest ¶ added in v0.0.15

type UpdateTaskStatusRequest struct {
	Data   *VpcInfo `json:"data,omitempty"`
	Status string   `json:"status,omitempty"`
	TaskID string   `json:"taskID,omitempty"`
}

type UpdateVirtualIpAddressRequest ¶ added in v0.0.15

type UpdateVirtualIpAddressRequest struct {
	// description for Virtual IP Address.
	Description string `json:"description,omitempty"`
	Name        string `json:"name,omitempty"`
}

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 UserImage ¶ added in v0.0.15

type UserImage struct {
	CreatedAt time.Time `json:"createdAt,omitempty"`
	ImageSize float32   `json:"imageSize,omitempty"`
	MinDisk   int32     `json:"minDisk,omitempty"`
	Name      string    `json:"name,omitempty"`
	ProjectId string    `json:"projectId,omitempty"`
	Status    string    `json:"status,omitempty"`
	Uuid      string    `json:"uuid,omitempty"`
}

type UserImageRestControllerV2ApiListImageUsingGETOpts ¶ added in v0.0.15

type UserImageRestControllerV2ApiListImageUsingGETOpts struct {
	Name optional.String
	Page optional.Int32
	Size optional.Int32
}

type UserImageRestControllerV2ApiService ¶ added in v0.0.15

type UserImageRestControllerV2ApiService service

func (*UserImageRestControllerV2ApiService) CreateImageUsingPOST ¶ added in v0.0.15

func (a *UserImageRestControllerV2ApiService) CreateImageUsingPOST(ctx context.Context, createUserImageRequest CreateUserImageRequest, projectId string, serverId string) (DataResponse, *http.Response, error)

UserImageRestControllerV2ApiService Start server

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

@return DataResponse

func (*UserImageRestControllerV2ApiService) DeleteImageUsingDELETE ¶ added in v0.0.15

func (a *UserImageRestControllerV2ApiService) DeleteImageUsingDELETE(ctx context.Context, imageId string, projectId string) (*http.Response, error)

UserImageRestControllerV2ApiService Delete User Image

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

func (*UserImageRestControllerV2ApiService) ListImageByIdUsingGET ¶ added in v0.0.15

func (a *UserImageRestControllerV2ApiService) ListImageByIdUsingGET(ctx context.Context, imageId string, projectId string) (UserImage, *http.Response, error)

UserImageRestControllerV2ApiService List User Image By ID

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

@return UserImage

func (*UserImageRestControllerV2ApiService) ListImageUsingGET ¶ added in v0.0.15

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 VipDto ¶ added in v1.2.0

type VipDto struct {
	AddressPairIps []string  `json:"addressPairIps"`
	CreatedAt      time.Time `json:"createdAt"`
	Description    string    `json:"description"`
	IpAddress      string    `json:"ipAddress"`
	Name           string    `json:"name"`
	NetworkCIDR    string    `json:"networkCIDR"`
	NetworkId      string    `json:"networkId"`
	NetworkName    string    `json:"networkName"`
	SubnetCIDR     string    `json:"subnetCIDR"`
	SubnetId       string    `json:"subnetId"`
	SubnetName     string    `json:"subnetName"`
	Uuid           string    `json:"uuid"`
}

type VirtualIpAddressDto ¶ added in v0.0.15

type VirtualIpAddressDto struct {
	AddressPairIps []string  `json:"addressPairIps,omitempty"`
	CreatedAt      time.Time `json:"createdAt,omitempty"`
	Description    string    `json:"description,omitempty"`
	IpAddress      string    `json:"ipAddress,omitempty"`
	Name           string    `json:"name,omitempty"`
	NetworkCIDR    string    `json:"networkCIDR,omitempty"`
	NetworkName    string    `json:"networkName,omitempty"`
	NetworkUuid    string    `json:"networkUuid,omitempty"`
	SubnetCIDR     string    `json:"subnetCIDR,omitempty"`
	SubnetName     string    `json:"subnetName,omitempty"`
	SubnetUuid     string    `json:"subnetUuid,omitempty"`
	Uuid           string    `json:"uuid,omitempty"`
}

type VirtualIpAddressNetworkEntity ¶ added in v0.0.15

type VirtualIpAddressNetworkEntity struct {
	CreatedAt        time.Time `json:"createdAt,omitempty"`
	DeletedAt        time.Time `json:"deletedAt,omitempty"`
	Id               int64     `json:"id,omitempty"`
	NetInterfaceUuid string    `json:"netInterfaceUuid,omitempty"`
	ProjectUuid      string    `json:"projectUuid,omitempty"`
	Uuid             string    `json:"uuid,omitempty"`
	VipUuid          string    `json:"vipUuid,omitempty"`
}

type VirtualIpAddressRestControllerV2ApiService ¶ added in v0.0.15

type VirtualIpAddressRestControllerV2ApiService service

func (*VirtualIpAddressRestControllerV2ApiService) AddAddressPairUsingPOST ¶ added in v0.0.15

VirtualIpAddressRestControllerV2ApiService Create Address Pair

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param createAddressPairModelRequest createAddressPairModelRequest
  • @param virtualIpAddressId The Virtual Ip Address id

@return DataResponseCreateAddressPairRequest

func (*VirtualIpAddressRestControllerV2ApiService) CreateVirtualIpAddressUsingPOST ¶ added in v0.0.15

func (a *VirtualIpAddressRestControllerV2ApiService) CreateVirtualIpAddressUsingPOST(ctx context.Context, createReq CreateVirtualIpAddressRequest, projectId string) (DataResponseVipDto, *http.Response, error)

VirtualIpAddressRestControllerV2ApiService Create Virtual Ip Address

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

@return DataResponseVipDto

func (*VirtualIpAddressRestControllerV2ApiService) DeleteVirtualIpAddressUsingDELETE ¶ added in v0.0.15

func (a *VirtualIpAddressRestControllerV2ApiService) DeleteVirtualIpAddressUsingDELETE(ctx context.Context, projectId string, virtualIpAddressId string) (*http.Response, error)

VirtualIpAddressRestControllerV2ApiService Delete virtual ip address

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

func (*VirtualIpAddressRestControllerV2ApiService) GetListAddressPairUsingGET ¶ added in v0.0.15

func (a *VirtualIpAddressRestControllerV2ApiService) GetListAddressPairUsingGET(ctx context.Context, projectId string, virtualIpAddressId string) (DataResponseListAddressPairDto, *http.Response, error)

VirtualIpAddressRestControllerV2ApiService List address pair interfaces

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

@return DataResponseListAddressPairDto

func (*VirtualIpAddressRestControllerV2ApiService) GetListVirtualIpAddressWithPagingUsingGET ¶ added in v1.2.0

func (a *VirtualIpAddressRestControllerV2ApiService) GetListVirtualIpAddressWithPagingUsingGET(ctx context.Context, name string, page string, projectId string, size string) (PagingVipDto, *http.Response, error)

VirtualIpAddressRestControllerV2ApiService List Virtual Ip Address Paging

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

@return PagingVipDto

func (*VirtualIpAddressRestControllerV2ApiService) GetSpecificAddressPairUsingGET ¶ added in v1.2.0

func (a *VirtualIpAddressRestControllerV2ApiService) GetSpecificAddressPairUsingGET(ctx context.Context, projectId string, virtualIpAddressId string, addressPairId string) (DataResponseAddressPairDto, *http.Response, error)

VirtualIpAddressRestControllerV2ApiService List specific address pair interfaces

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

@return DataResponseAddressPairDto

func (*VirtualIpAddressRestControllerV2ApiService) GetVirtualIpAddressUsingGET ¶ added in v1.2.0

func (a *VirtualIpAddressRestControllerV2ApiService) GetVirtualIpAddressUsingGET(ctx context.Context, projectId string, vipId string) (DataResponseVipDto, *http.Response, error)

VirtualIpAddressRestControllerV2ApiService Virtual Ip Address By virtual ip address Id

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

@return DataResponseVipDto

func (*VirtualIpAddressRestControllerV2ApiService) ListInternalNetworkInterfaceUsingGET ¶ added in v0.0.15

VirtualIpAddressRestControllerV2ApiService List of internal network interface for adding address pair

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

@return DataResponseListInternalNetworkInterfaceDto

func (*VirtualIpAddressRestControllerV2ApiService) RemoveAddressPairUsingDELETE ¶ added in v0.0.15

func (a *VirtualIpAddressRestControllerV2ApiService) RemoveAddressPairUsingDELETE(ctx context.Context, addressPairId string, projectId string) (*http.Response, error)

VirtualIpAddressRestControllerV2ApiService Delete Address Pair

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

func (*VirtualIpAddressRestControllerV2ApiService) UpdateUsingPUT3 ¶ added in v1.2.0

func (a *VirtualIpAddressRestControllerV2ApiService) UpdateUsingPUT3(ctx context.Context, projectId string, updateReq UpdateVirtualIpAddressRequest, virtualIpAddressId string) (DataResponseVipDto, *http.Response, error)

VirtualIpAddressRestControllerV2ApiService Update virtual ip address

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param updateReq updateReq
  • @param virtualIpAddressId The virtual Ip AddressId id

@return DataResponseVipDto

type Volume ¶

type Volume struct {
	BootIndex          int32     `json:"bootIndex,omitempty"`
	Bootable           bool      `json:"bootable,omitempty"`
	CreatedAt          time.Time `json:"createdAt,omitempty"`
	EncryptionType     string    `json:"encryptionType,omitempty"`
	Iops               string    `json:"iops,omitempty"`
	MultiAttach        bool      `json:"multiAttach,omitempty"`
	Name               string    `json:"name,omitempty"`
	ProjectId          string    `json:"projectId,omitempty"`
	ServerId           string    `json:"serverId,omitempty"`
	ServerIdList       []string  `json:"serverIdList,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"`
	VolumeTypeZoneName string    `json:"volumeTypeZoneName,omitempty"`
}

type VolumeAction ¶ added in v0.0.15

type VolumeAction struct {
	Iops  int32     `json:"iops,omitempty"`
	Size  int32     `json:"size,omitempty"`
	Start time.Time `json:"start,omitempty"`
	Type_ string    `json:"type,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) GetBootVolumeByInstanceIdUsingGET ¶ added in v0.0.15

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

VolumeRestControllerApiService Get boot volume by server 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 VolumeResponse

func (*VolumeRestControllerApiService) GetVolumeByInstanceIdUsingGET ¶ added in v0.0.15

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

VolumeRestControllerApiService Get volume by server 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 VolumeResponse

func (*VolumeRestControllerApiService) GetVolumeUsingGET1 ¶ added in v0.0.15

func (a *VolumeRestControllerApiService) GetVolumeUsingGET1(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 volume id

@return VolumeResponse

func (*VolumeRestControllerApiService) ListEncryptionUsingGET ¶ added in v0.0.15

func (a *VolumeRestControllerApiService) ListEncryptionUsingGET(ctx context.Context, projectId string) ([]EncryptionType, *http.Response, error)

VolumeRestControllerApiService Get list encryption type

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

@return []EncryptionType

func (*VolumeRestControllerApiService) ListVolumeUsingGET1 ¶ added in v0.0.15

func (a *VolumeRestControllerApiService) ListVolumeUsingGET1(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 VolumeRestControllerV2ApiListVolumeUsingGET2Opts ¶ added in v0.0.15

type VolumeRestControllerV2ApiListVolumeUsingGET2Opts struct {
	Name optional.String
	Page optional.Int32
	Size optional.Int32
}

type VolumeRestControllerV2ApiService ¶ added in v0.0.15

type VolumeRestControllerV2ApiService service

func (*VolumeRestControllerV2ApiService) AttachVolumeUsingPUT1 ¶ added in v0.0.15

func (a *VolumeRestControllerV2ApiService) AttachVolumeUsingPUT1(ctx context.Context, attachVolumeRequest AttachVolumeRequest, projectId string, serverId string, volumeId string) (DataResponseVolume, *http.Response, error)

VolumeRestControllerV2ApiService 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
  • @param serverId The server id
  • @param volumeId The volume id

@return DataResponseVolume

func (*VolumeRestControllerV2ApiService) CreateVolumeUsingPOST1 ¶ added in v0.0.15

func (a *VolumeRestControllerV2ApiService) CreateVolumeUsingPOST1(ctx context.Context, createVolumeRequest CreateVolumeRequest, projectId string) (DataResponseVolume, *http.Response, error)

VolumeRestControllerV2ApiService 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 DataResponse

func (*VolumeRestControllerV2ApiService) DeleteVolumeUsingDELETE1 ¶ added in v0.0.15

func (a *VolumeRestControllerV2ApiService) DeleteVolumeUsingDELETE1(ctx context.Context, projectId string, volumeId string) (DataResponseVolume, *http.Response, error)

VolumeRestControllerV2ApiService Delete 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 volumeId The volume id

@return DataResponseVolume

func (*VolumeRestControllerV2ApiService) DetachVolumeUsingPUT1 ¶ added in v0.0.15

func (a *VolumeRestControllerV2ApiService) DetachVolumeUsingPUT1(ctx context.Context, detachVolumeRequest DetachVolumeRequest, projectId string, serverId string, volumeId string) (DataResponseVolume, *http.Response, error)

VolumeRestControllerV2ApiService 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
  • @param serverId The server id
  • @param volumeId The volume id

@return DataResponseVolume

func (*VolumeRestControllerV2ApiService) GetBootVolumeByInstanceIdUsingGET1 ¶ added in v0.0.15

func (a *VolumeRestControllerV2ApiService) GetBootVolumeByInstanceIdUsingGET1(ctx context.Context, projectId string, serverId string) (VolumeResponse, *http.Response, error)

VolumeRestControllerV2ApiService Get boot volume by server 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 volume id

@return VolumeResponse

func (*VolumeRestControllerV2ApiService) GetVolumeByInstanceIdUsingGET1 ¶ added in v0.0.15

func (a *VolumeRestControllerV2ApiService) GetVolumeByInstanceIdUsingGET1(ctx context.Context, projectId string, serverId string) (VolumeResponse, *http.Response, error)

VolumeRestControllerV2ApiService Get volume by server 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 VolumeResponse

func (*VolumeRestControllerV2ApiService) GetVolumeUsingGET2 ¶ added in v0.0.15

func (a *VolumeRestControllerV2ApiService) GetVolumeUsingGET2(ctx context.Context, projectId string, volumeId string) (DataResponseVolume, *http.Response, error)

VolumeRestControllerV2ApiService 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 volume id

@return DataResponseVolume

func (*VolumeRestControllerV2ApiService) ListVolumeHistoryUsingGET ¶ added in v0.0.15

func (a *VolumeRestControllerV2ApiService) ListVolumeHistoryUsingGET(ctx context.Context, projectId string, volumeId string) ([]VolumeAction, *http.Response, error)

VolumeRestControllerV2ApiService 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
  • @param volumeId The volume id

@return []VolumeAction

func (*VolumeRestControllerV2ApiService) ListVolumeUsingGET2 ¶ added in v0.0.15

func (*VolumeRestControllerV2ApiService) ResizeVolumeUsingPUT1 ¶ added in v0.0.15

func (a *VolumeRestControllerV2ApiService) ResizeVolumeUsingPUT1(ctx context.Context, projectId string, resizeVolumeRequest ResizeVolumeRequest, volumeId string) (DataResponseVolume, *http.Response, error)

VolumeRestControllerV2ApiService 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
  • @param volumeId The volume id

@return DataResponseVolume

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

type VpcExternalCallbackControllerApiService ¶ added in v0.0.15

type VpcExternalCallbackControllerApiService service

func (*VpcExternalCallbackControllerApiService) UpdateStatusUsingPOST ¶ added in v0.0.15

func (a *VpcExternalCallbackControllerApiService) UpdateStatusUsingPOST(ctx context.Context, updateTaskStatusRequest UpdateTaskStatusRequest) (CallbackResponse, *http.Response, error)

VpcExternalCallbackControllerApiService Update status in task table

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

@return CallbackResponse

type VpcInfo ¶ added in v0.0.15

type VpcInfo struct {
	PublicIp        string `json:"public_ip,omitempty"`
	VmUuid          string `json:"vmUuid,omitempty"`
	VolumesAttached string `json:"volumes_attached,omitempty"`
}

type WanIpDto ¶ added in v0.0.15

type WanIpDto struct {
	CreatedAt          time.Time `json:"createdAt,omitempty"`
	FixedIp            string    `json:"fixedIp,omitempty"`
	Ip                 string    `json:"ip,omitempty"`
	NetworkInterfaceId string    `json:"networkInterfaceId,omitempty"`
	Status             string    `json:"status,omitempty"`
	Uuid               string    `json:"uuid,omitempty"`
}

type WanIpRestControllerV2ApiListWanIpUsingGETOpts ¶ added in v0.0.15

type WanIpRestControllerV2ApiListWanIpUsingGETOpts struct {
	Name optional.String
}

type WanIpRestControllerV2ApiService ¶ added in v0.0.15

type WanIpRestControllerV2ApiService service

func (*WanIpRestControllerV2ApiService) DeleteWanIpUsingDELETE ¶ added in v0.0.15

func (a *WanIpRestControllerV2ApiService) DeleteWanIpUsingDELETE(ctx context.Context, projectId string, wanIpId string) (*http.Response, error)

WanIpRestControllerV2ApiService Delete a WAN IP

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

func (*WanIpRestControllerV2ApiService) ListWanIpUsingGET ¶ added in v0.0.15

Source Files ¶

Jump to

Keyboard shortcuts

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