Documentation
¶
Overview ¶
Package controller has handlers and their request/response bodies for migration APIs
Package controller has handlers and their request/response bodies for migration APIs
Package common is to handle REST API for common funcitonalities ¶
Package common is to handle REST API for common funcitonalities ¶
Package common is to handle REST API for common funcitonalities
Index ¶
- func CreateMigratedSSHKey(c echo.Context) error
- func CreateMigratedSecurityGroup(c echo.Context) error
- func CreateVNet(c echo.Context) error
- func DeleteInfra(c echo.Context) error
- func DeleteMigratedSSHKey(c echo.Context) error
- func DeleteMigratedSecurityGroup(c echo.Context) error
- func DeleteMigratedVNet(c echo.Context) error
- func GetInfra(c echo.Context) error
- func GetMigratedSSHKey(c echo.Context) error
- func GetMigratedSecurityGroup(c echo.Context) error
- func GetMigratedVNet(c echo.Context) error
- func ListInfra(c echo.Context) error
- func ListMigratedSSHKeys(c echo.Context) error
- func ListMigratedSecurityGroups(c echo.Context) error
- func ListMigratedVNets(c echo.Context) error
- func MigrateInfra(c echo.Context) error
- func MigrateInfraWithDefaults(c echo.Context) error
- func RecommendContainerInfra(c echo.Context) error
- func RecommendSecurityGroups(c echo.Context) error
- func RecommendVMInfra(c echo.Context) error
- func RecommendVMInfraWithDefaults(c echo.Context) error
- func RecommendVNet(c echo.Context) error
- func RecommendVmOsImages(c echo.Context) error
- func RecommendVmSpecs(c echo.Context) error
- type FirewallRuleProperty
- type JSONResult
- type MigrateInfraRequest
- type MigrateInfraResponse
- type MigrateInfraWithDefaultsRequest
- type MigrateInfraWithDefaultsResponse
- type RecommendInfraRequest
- type RecommendInfraResponse
- type RecommendSecurityGroupRequest
- type RecommendSecurityGroupResponse
- type RecommendVNetResponse
- type RecommendVmInfraRequest
- type RecommendVmInfraResponse
- type RecommendVmInfraWithDefaultsRequest
- type RecommendVmInfraWithDefaultsResponse
- type RecommendVmOsImageResponse
- type RecommendVmSpecResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMigratedSSHKey ¶ added in v0.3.1
CreateMigratedSSHKey godoc @ID CreateMigratedSSHKey @Summary Create a migrated SSH key @Description Create a new migrated SSH key in the namespace @Tags [Migration] Resources for VM infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Param option query string false "Option: [required params for register] connectionName, name, cspKeyId" Enums(register) @Param sshKeyReq body tbmodel.TbSshKeyReq true "Details for an SSH key object" @Success 200 {object} tbmodel.TbSshKeyInfo @Failure 404 {object} tbmodel.SimpleMsg @Failure 500 {object} tbmodel.SimpleMsg @Router /migration/ns/{nsId}/resources/sshKey [post]
func CreateMigratedSecurityGroup ¶ added in v0.3.1
CreateMigratedSecurityGroup godoc @ID CreateMigratedSecurityGroup @Summary Create a migrated security group @Description Create a new migrated security group in the namespace @Tags [Migration] Resources for VM infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Param option query string false "Option: [required params for register] connectionName, name, vNetId, cspResourceId" Enums(register) @Param securityGroupReq body tbmodel.TbSecurityGroupReq true "Details for an securityGroup object" @Success 200 {object} tbmodel.TbSecurityGroupInfo @Failure 404 {object} tbmodel.SimpleMsg @Failure 500 {object} tbmodel.SimpleMsg @Router /migration/ns/{nsId}/resources/securityGroup [post]
func CreateVNet ¶ added in v0.3.1
CreateVNet godoc @ID CreateVNet @Summary Create a migrated virtual network @Description Create a new migrated virtual network in the namespace @Tags [Migration] Resources for VM infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Param vNetReq body tbmodel.TbVNetReq true "Virtual Network creation request" @Success 200 {object} tbmodel.TbVNetInfo @Failure 400 {object} tbmodel.SimpleMsg @Failure 500 {object} tbmodel.SimpleMsg @Router /migration/ns/{nsId}/resources/vNet [post]
func DeleteInfra ¶ added in v0.1.1
DeleteInfra godoc @ID DeleteInfra @Summary Delete the migrated mult-cloud infrastructure (MCI) @Description Delete the migrated mult-cloud infrastructure (MCI) @Tags [Migration] Infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Param mciId path string true "Migrated Multi-Cloud Infrastructure (MCI) ID" default(mmci01) @Param option query string false "Option for deletion" Enums(terminate,force) default(terminate) @Param X-Request-Id header string false "Custom request ID (NOTE: It will be used as a trace ID.)" @Success 200 {object} model.Response "The result of deleting the migrated multi-cloud infrastructure (MCI)" @Failure 404 {object} model.Response @Failure 500 {object} model.Response @Router /migration/ns/{nsId}/mci/{mciId} [delete]
func DeleteMigratedSSHKey ¶ added in v0.3.1
DeleteMigratedSSHKey godoc @ID DeleteMigratedSSHKey @Summary Delete a migrated SSH key @Description Delete a specific migrated SSH key in the namespace @Tags [Migration] Resources for VM infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Param sshKeyId path string true "SSH Key ID" default(mig-sshkey-01) @Success 200 {object} tbmodel.SimpleMsg @Failure 404 {object} tbmodel.SimpleMsg @Failure 500 {object} tbmodel.SimpleMsg @Router /migration/ns/{nsId}/resources/sshKey/{sshKeyId} [delete]
func DeleteMigratedSecurityGroup ¶ added in v0.3.1
DeleteMigratedSecurityGroup godoc @ID DeleteMigratedSecurityGroup @Summary Delete a migrated security group @Description Delete a specific migrated security group in the namespace @Tags [Migration] Resources for VM infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Param sgId path string true "Security Group ID" default(mig-sg-01) @Success 200 {object} tbmodel.SimpleMsg @Failure 404 {object} tbmodel.SimpleMsg @Failure 500 {object} tbmodel.SimpleMsg @Router /migration/ns/{nsId}/resources/securityGroup/{sgId} [delete]
func DeleteMigratedVNet ¶ added in v0.3.1
DeleteMigratedVNet godoc @ID DeleteMigratedVNet @Summary Delete a migrated virtual network @Description Delete a specific migrated virtual network in the namespace @Tags [Migration] Resources for VM infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Param vNetId path string true "Virtual Network ID" default(mig-vnet-01) @Param action query string false "Action" Enums(withsubnets,refine,force) @Success 200 {object} tbmodel.SimpleMsg @Failure 404 {object} tbmodel.SimpleMsg @Router /migration/ns/{nsId}/resources/vNet/{vNetId} [delete]
func GetInfra ¶ added in v0.1.1
GetInfra godoc @ID GetInfra @Summary Get the migrated multi-cloud infrastructure (MCI) @Description Get the migrated multi-cloud infrastructure (MCI) @Tags [Migration] Infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Param mciId path string true "Migrated Multi-Cloud Infrastructure (MCI) ID" default(mmci01) @Param X-Request-Id header string false "Custom request ID (NOTE: It will be used as a trace ID.)" @Success 200 {object} MigrateInfraResponse "The migrated multi-cloud infrastructure (MCI) information" @Failure 404 {object} model.Response @Failure 500 {object} model.Response @Router /migration/ns/{nsId}/mci/{mciId} [get]
func GetMigratedSSHKey ¶ added in v0.3.1
GetMigratedSSHKey godoc @ID GetMigratedSSHKey @Summary Get a specific migrated SSH key @Description Get details of a specific migrated SSH key in the namespace @Tags [Migration] Resources for VM infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Param sshKeyId path string true "SSH Key ID" default(mig-sshkey-01) @Success 200 {object} tbmodel.TbSshKeyInfo @Failure 404 {object} tbmodel.SimpleMsg @Failure 500 {object} tbmodel.SimpleMsg @Router /migration/ns/{nsId}/resources/sshKey/{sshKeyId} [get]
func GetMigratedSecurityGroup ¶ added in v0.3.1
GetMigratedSecurityGroup godoc @ID GetMigratedSecurityGroup @Summary Get a specific migrated security group @Description Get details of a specific migrated security group in the namespace @Tags [Migration] Resources for VM infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Param sgId path string true "Security Group ID" default(mig-sg-01) @Success 200 {object} tbmodel.TbSecurityGroupInfo @Failure 404 {object} tbmodel.SimpleMsg @Failure 500 {object} tbmodel.SimpleMsg @Router /migration/ns/{nsId}/resources/securityGroup/{sgId} [get]
func GetMigratedVNet ¶ added in v0.3.1
GetMigratedVNet godoc @ID GetMigratedVNet @Summary Get a specific migrated virtual network @Description Get details of a specific virtual network in the namespace @Tags [Migration] Resources for VM infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Param vNetId path string true "Virtual Network ID" default(mig-vnet-01) @Success 200 {object} tbmodel.TbVNetInfo @Failure 404 {object} tbmodel.SimpleMsg @Failure 500 {object} tbmodel.SimpleMsg @Router /migration/ns/{nsId}/resources/vNet/{vNetId} [get]
func ListInfra ¶ added in v0.2.4
ListInfra godoc @ID ListInfra @Summary Get the migrated multi-cloud infrastructure (MCI) @Description Get the migrated multi-cloud infrastructure (MCI) @Tags [Migration] Infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Param option query string false "Option for getting the migrated multi-cloud infrastructure" Enums(id) @Param X-Request-Id header string false "Custom request ID (NOTE: It will be used as a trace ID.)" @Success 200 {object} cloudmodel.MciInfoList "The info list of the migrated multi-cloud infrastructure (MCI)" @Success 200 {object} cloudmodel.IdList "The ID list of The migrated multi-cloud infrastructure (MCI)" @Failure 404 {object} model.Response @Failure 500 {object} model.Response @Router /migration/ns/{nsId}/mci [get]
func ListMigratedSSHKeys ¶ added in v0.3.1
========== SSH Key Resource APIs ========== ListMigratedSSHKeys godoc @ID ListMigratedSSHKeys @Summary List all migrated SSH keys @Description Get the list of all migrated SSH keys in the namespace @Tags [Migration] Resources for VM infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Param option query string false "Option" Enums(id) @Param filterKey query string false "Field key for filtering (ex: systemLabel)" @Param filterVal query string false "Field value for filtering (ex: Registered from CSP resource)" @Success 200 {object} JSONResult{[DEFAULT]=tbresource.RestGetAllSshKeyResponse,[ID]=tbmodel.IdList} "Different return structures by the given option param" @Failure 404 {object} tbmodel.SimpleMsg @Failure 500 {object} tbmodel.SimpleMsg @Router /migration/ns/{nsId}/resources/sshKey [get]
func ListMigratedSecurityGroups ¶ added in v0.3.1
========== Security Group Resource APIs ========== ListMigratedSecurityGroups godoc @ID ListMigratedSecurityGroups @Summary List all migrated security groups @Description Get the list of all migrated security groups in the namespace @Tags [Migration] Resources for VM infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Param option query string false "Option" Enums(id) @Param filterKey query string false "Field key for filtering (ex: systemLabel)" @Param filterVal query string false "Field value for filtering (ex: Registered from CSP resource)" @Success 200 {object} JSONResult{[DEFAULT]=tbresource.RestGetAllSecurityGroupResponse,[ID]=tbmodel.IdList} "Different return structures by the given option param" @Failure 404 {object} tbmodel.SimpleMsg @Failure 500 {object} tbmodel.SimpleMsg @Router /migration/ns/{nsId}/resources/securityGroup [get]
func ListMigratedVNets ¶ added in v0.3.1
ListMigratedVNets godoc @ID ListMigratedVNets @Summary List all migrated virtual networks @Description Get the list of all migrated virtual networks in the namespace @Tags [Migration] Resources for VM infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Success 200 {object} JSONResult{[DEFAULT]=tbresource.RestGetAllVNetResponse,[ID]=tbmodel.IdList} "Different return structures by the given option param" @Failure 404 {object} tbmodel.SimpleMsg @Failure 500 {object} tbmodel.SimpleMsg @Router /migration/ns/{nsId}/resources/vNet [get]
func MigrateInfra ¶
MigrateInfra godoc @ID MigrateInfra @Summary Migrate an infrastructure to the multi-cloud infrastructure (MCI) with defaults @Description Migrate an infrastructure to the multi-cloud infrastructure (MCI) with defaults. @Tags [Migration] Infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Param mciInfo body MigrateInfraRequest true "Specify the information for the targeted mulci-cloud infrastructure (MCI)" @Param X-Request-Id header string false "Custom request ID (NOTE: It will be used as a trace ID.)" @Success 200 {object} MigrateInfraResponse "Successfully migrated to the multi-cloud infrastructure" @Failure 404 {object} model.Response @Failure 500 {object} model.Response @Router /migration/ns/{nsId}/mci [post]
func MigrateInfraWithDefaults ¶ added in v0.3.1
MigrateInfraWithDefaults godoc @ID MigrateInfraWithDefaults @Summary Migrate an infrastructure to the multi-cloud infrastructure (MCI) with defaults @Description Migrate an infrastructure to the multi-cloud infrastructure (MCI) with defaults. @Tags [Migration] Infrastructure @Accept json @Produce json @Param nsId path string true "Namespace ID" default(mig01) @Param mciInfo body MigrateInfraWithDefaultsRequest true "Specify the information for the targeted mulci-cloud infrastructure (MCI)" @Param X-Request-Id header string false "Custom request ID (NOTE: It will be used as a trace ID.)" @Success 200 {object} MigrateInfraWithDefaultsResponse "Successfully migrated to the multi-cloud infrastructure" @Failure 404 {object} model.Response @Failure 500 {object} model.Response @Router /migration/ns/{nsId}/mciWithDefaults [post]
func RecommendContainerInfra ¶ added in v0.3.1
RecommendContainerInfra godoc @ID RecommendContainerInfra @Summary (Under-development) Recommend an appropriate container infrastructure for cloud migration @Description Recommend an appropriate container infrastructure for container-based workloads @Description @Description [Note] `desiredProvider` and `desiredRegion` are required. @Description - `desiredProvider` and `desiredRegion` can be set in the query parameter or the request body. @Description - If both are set, the values in the request body take precedence. @Tags [Recommendation] Infrastructure @Accept json @Produce json @Param UserInfra body RecommendInfraRequest true "Specify the source container infrastructure" @Param desiredProvider query string false "Provider (e.g., aws, azure, gcp)" Enums(aws,azure,gcp,alibaba,ncp) default(aws) @Param desiredRegion query string false "Region (e.g., ap-northeast-2)" default(ap-northeast-2) @Param X-Request-Id header string false "Custom request ID (NOTE: It will be used as a trace ID.)" @Success 200 {object} RecommendInfraResponse "The result of recommended container infrastructure" @Failure 400 {object} common.SimpleMsg @Failure 404 {object} common.SimpleMsg @Failure 500 {object} common.SimpleMsg @Router /recommendation/containerInfra [post]
func RecommendSecurityGroups ¶ added in v0.3.1
RecommendSecurityGroups godoc @ID RecommendSecurityGroups @Summary Recommend an appropriate security group for cloud migration @Description Recommend an appropriate security group for cloud migration @Description @Description [Note] `desiredProvider` and `desiredRegion` are required. @Description - `desiredProvider` and `desiredRegion` can set on the query parameter or the request body. @Description @Description - If desiredProvider and desiredRegion are set on request body, the values in the query parameter will be ignored. @Tags [Recommendation] Resources for VM infrastructure @Accept json @Produce json @Param UserInfra body RecommendVmInfraRequest true "Specify the your infrastructure to be migrated" @Param desiredProvider query string false "Provider (e.g., aws, azure, gcp)" Enums(aws,azure,gcp,alibaba,ncp) default(aws) @Param desiredRegion query string false "Region (e.g., ap-northeast-2)" default(ap-northeast-2) @Param X-Request-Id header string false "Custom request ID (NOTE: It will be used as a trace ID.)" @Success 200 {object} RecommendSecurityGroupResponse "The result of recommended security groups" @Failure 404 {object} common.SimpleMsg @Failure 500 {object} common.SimpleMsg @Router /recommendation/resources/securityGroups [post]
func RecommendVMInfra ¶ added in v0.3.1
RecommendVMInfra godoc @ID RecommendVMInfra @Summary Recommend an appropriate VM infrastructure (i.e., MCI, multi-cloud infrastructure) for cloud migration @Description Recommend an appropriate VM infrastructure (i.e., MCI, multi-cloud infrastructure) for cloud migration @Description @Description [Note] `desiredCsp` and `desiredRegion` are required. @Description - `desiredCsp` and `desiredRegion` can set on the query parameter or the request body. @Description @Description - If desiredCsp and desiredRegion are set on request body, the values in the query parameter will be ignored. @Tags [Recommendation] Infrastructure @Accept json @Produce json @Param UserInfra body RecommendVmInfraRequest true "Specify the your infrastructure to be migrated" @Param desiredCsp query string false "Provider (e.g., aws, azure, gcp)" Enums(aws,azure,gcp,alibaba,ncp) default(aws) @Param desiredRegion query string false "Region (e.g., ap-northeast-2)" default(ap-northeast-2) @Param X-Request-Id header string false "Custom request ID (NOTE: It will be used as a trace ID.)" @Success 200 {object} RecommendVmInfraResponse "The result of recommended infrastructure" @Failure 404 {object} common.SimpleMsg @Failure 500 {object} common.SimpleMsg @Router /recommendation/mci [post]
func RecommendVMInfraWithDefaults ¶ added in v0.3.1
RecommendVMInfraWithDefaults godoc @ID RecommendVMInfraWithDefaults @Summary (To be updated) Recommend an appropriate VM infrastructure (i.e., MCI, multi-cloud infrastructure) with defaults for cloud migration @Description Recommend an appropriate VM infrastructure (i.e., MCI, multi-cloud infrastructure) with defaults for cloud migration @Description @Description [Note] `desiredCsp` and `desiredRegion` are required. @Description - `desiredCsp` and `desiredRegion` can set on the query parameter or the request body. @Description @Description - If desiredCsp and desiredRegion are set on request body, the values in the query parameter will be ignored. @Tags [Recommendation] Infrastructure @Accept json @Produce json @Param UserInfra body RecommendVmInfraWithDefaultsRequest true "Specify the your infrastructure to be migrated" @Param desiredCsp query string false "Provider (e.g., aws, azure, gcp)" Enums(aws,azure,gcp,alibaba,ncp) default(aws) @Param desiredRegion query string false "Region (e.g., ap-northeast-2)" default(ap-northeast-2) @Param X-Request-Id header string false "Custom request ID (NOTE: It will be used as a trace ID.)" @Success 200 {object} RecommendVmInfraWithDefaultsResponse "The result of recommended infrastructure" @Failure 404 {object} common.SimpleMsg @Failure 500 {object} common.SimpleMsg @Router /recommendation/mciWithDefaults [post]
func RecommendVNet ¶ added in v0.3.1
RecommendVNet godoc @ID RecommendVNet @Summary Recommend an appropriate virtual network for cloud migration @Description Recommend an appropriate virtual network for cloud migration @Description @Description [Note] `desiredProvider` and `desiredRegion` are required. @Description - `desiredProvider` and `desiredRegion` can set on the query parameter or the request body. @Description @Description - If desiredProvider and desiredRegion are set on request body, the values in the query parameter will be ignored. @Tags [Recommendation] Resources for VM infrastructure @Accept json @Produce json @Param UserInfra body RecommendVmInfraRequest true "Specify the your infrastructure to be migrated" @Param desiredProvider query string false "Provider (e.g., aws, azure, gcp)" Enums(aws,azure,gcp,alibaba,ncp) default(aws) @Param desiredRegion query string false "Region (e.g., ap-northeast-2)" default(ap-northeast-2) @Param X-Request-Id header string false "Custom request ID (NOTE: It will be used as a trace ID.)" @Success 200 {object} RecommendVNetResponse "The result of recommended vNet" @Failure 404 {object} common.SimpleMsg @Failure 500 {object} common.SimpleMsg @Router /recommendation/resources/vNet [post]
func RecommendVmOsImages ¶ added in v0.3.1
RecommendVmOsImages godoc @ID RecommendVmOsImages @Summary Recommend an appropriate OS image for cloud migration @Description Recommend an appropriate OS image for cloud migration @Description @Description [Note] `desiredProvider` and `desiredRegion` are required. @Description - `desiredProvider` and `desiredRegion` can set on the query parameter or the request body. @Description @Description - If desiredProvider and desiredRegion are set on request body, the values in the query parameter will be ignored. @Tags [Recommendation] Resources for VM infrastructure @Accept json @Produce json @Param UserInfra body RecommendVmInfraRequest true "Specify the your infrastructure to be migrated" @Param desiredProvider query string false "Provider (e.g., aws, azure, gcp)" Enums(aws,azure,gcp,alibaba,ncp) default(aws) @Param desiredRegion query string false "Region (e.g., ap-northeast-2)" default(ap-northeast-2) @Param X-Request-Id header string false "Custom request ID (NOTE: It will be used as a trace ID.)" @Success 200 {object} RecommendVmOsImageResponse "The result of recommended VM OS images" @Failure 404 {object} common.SimpleMsg @Failure 500 {object} common.SimpleMsg @Router /recommendation/resources/vmOsImages [post]
func RecommendVmSpecs ¶ added in v0.3.1
RecommendVmSpecs godoc @ID RecommendVmSpecs @Summary Recommend an appropriate VM specification for cloud migration @Description Recommend an appropriate VM specification for cloud migration @Description @Description [Note] `desiredProvider` and `desiredRegion` are required. @Description - `desiredProvider` and `desiredRegion` can set on the query parameter or the request body. @Description @Description - If desiredProvider and desiredRegion are set on request body, the values in the query parameter will be ignored. @Tags [Recommendation] Resources for VM infrastructure @Accept json @Produce json @Param UserInfra body RecommendVmInfraRequest true "Specify the your infrastructure to be migrated" @Param desiredProvider query string false "Provider (e.g., aws, azure, gcp)" Enums(aws,azure,gcp,alibaba,ncp) default(aws) @Param desiredRegion query string false "Region (e.g., ap-northeast-2)" default(ap-northeast-2) @Param machineID query string false "Machine ID (e.g., TBD, xxxxxx)" @Param X-Request-Id header string false "Custom request ID (NOTE: It will be used as a trace ID.)" @Success 200 {object} RecommendVmSpecResponse "The result of recommended VM specifications" @Failure 404 {object} common.SimpleMsg @Failure 500 {object} common.SimpleMsg @Router /recommendation/resources/vmSpecs [post]
Types ¶
type FirewallRuleProperty ¶ added in v0.3.1
type FirewallRuleProperty struct {
SrcCIDR string `json:"srcCIDR,omitempty"`
DstCIDR string `json:"dstCIDR,omitempty"`
SrcPorts string `json:"srcPorts,omitempty"`
DstPorts string `json:"dstPorts,omitempty"`
Protocol string `json:"protocol,omitempty"` // TCP, UDP, ICMP
Direction string `json:"direction,omitempty"` // inbound, outbound
Action string `json:"action,omitempty"` // allow, deny
}
To be replaced with the actual model
type JSONResult ¶ added in v0.3.1
type JSONResult struct {
}
JSONResult is a dummy struct for Swagger annotations.
type MigrateInfraRequest ¶
type MigrateInfraRequest struct {
cloudmodel.RecommendedVmInfra
}
type MigrateInfraResponse ¶
type MigrateInfraResponse struct {
cloudmodel.VmInfraInfo
}
type MigrateInfraWithDefaultsRequest ¶ added in v0.3.1
type MigrateInfraWithDefaultsRequest struct {
cloudmodel.TbMciDynamicReq
}
type MigrateInfraWithDefaultsResponse ¶ added in v0.3.1
type MigrateInfraWithDefaultsResponse struct {
cloudmodel.VmInfraInfo
}
type RecommendInfraRequest ¶
type RecommendInfraRequest struct {
DesiredProvider string `json:"desiredProvider" example:"aws"`
DesiredRegion string `json:"desiredRegion" example:"ap-northeast-2"`
onpremmodel.OnpremiseInfraModel
}
* Container Infrastructure Recommendation
type RecommendInfraResponse ¶
type RecommendInfraResponse struct {
recommendation.RecommendedInfraInfo
}
type RecommendSecurityGroupRequest ¶ added in v0.3.1
type RecommendSecurityGroupRequest struct {
// ! To be replaced with the actual model
// FirewallRules []inframodel.FirewallRuleProperty `json:"firewallRules" example:""`
FirewallRules []FirewallRuleProperty `json:"firewallRules" example:""`
}
type RecommendSecurityGroupResponse ¶ added in v0.3.1
type RecommendSecurityGroupResponse struct {
cloudmodel.RecommendedSecurityGroupList
}
type RecommendVNetResponse ¶ added in v0.3.1
type RecommendVNetResponse struct {
cloudmodel.RecommendedVNetList
}
type RecommendVmInfraRequest ¶ added in v0.3.1
type RecommendVmInfraRequest struct {
DesiredCspAndRegionPair recommendation.CspRegionPair `json:"desiredCspAndRegionPair"`
OnpremiseInfraModel onpremmodel.OnpremInfra
}
type RecommendVmInfraResponse ¶ added in v0.3.1
type RecommendVmInfraResponse struct {
cloudmodel.RecommendedVmInfra
}
type RecommendVmInfraWithDefaultsRequest ¶ added in v0.3.1
type RecommendVmInfraWithDefaultsRequest struct {
DesiredCspAndRegionPair recommendation.CspRegionPair `json:"desiredCspAndRegionPair"`
OnpremiseInfraModel onpremmodel.OnpremInfra
}
type RecommendVmInfraWithDefaultsResponse ¶ added in v0.3.1
type RecommendVmInfraWithDefaultsResponse struct {
cloudmodel.RecommendedVmInfraDynamicList
}
type RecommendVmOsImageResponse ¶ added in v0.3.1
type RecommendVmOsImageResponse struct {
cloudmodel.RecommendedVmOsImageList
}
type RecommendVmSpecResponse ¶ added in v0.3.1
type RecommendVmSpecResponse struct {
cloudmodel.RecommendedVmSpecList
}